{"version":3,"sources":["webpack:///./src/views/vessel/LongTrend.vue?aec1","webpack:///./src/components/LongTrendGraph.vue?a69b","webpack:///./node_modules/highcharts-vue/dist/highcharts-vue.min.js","webpack:///./node_modules/highcharts/modules/no-data-to-display.js","webpack:///./src/components/FeatureNotAvailable.vue?a997","webpack:///./src/components/FeatureNotAvailable.vue","webpack:///./src/components/FeatureNotAvailable.vue?2435","webpack:///./src/components/FeatureNotAvailable.vue?5d99","webpack:///./src/views/vessel/LongTrend.vue?964b","webpack:///./src/components/knockoutWrappers/LongTrendConfigWrapper.vue?ff25","webpack:///./src/components/knockoutWrappers/LongTrendConfigWrapper.vue","webpack:///./src/components/knockoutWrappers/LongTrendConfigWrapper.vue?0869","webpack:///./src/components/knockoutWrappers/LongTrendConfigWrapper.vue?1031","webpack:///./src/components/LongTrendGraph.vue?ab28","webpack:///./src/components/LongTrendGraph.vue?b8f1","webpack:///./src/components/LongTrendGraph.vue?b7bf","webpack:///./src/components/LongTrendGraph.vue?9b9d","webpack:///./src/views/vessel/LongTrend.vue","webpack:///./src/views/vessel/LongTrend.vue?09d6","webpack:///./src/views/vessel/LongTrend.vue?d81a"],"names":["t","e","module","exports","window","r","n","c","o","m","i","d","l","h","a","isObject","isClass","isDOMElement","isArray","forEach","objectEach","Array","Symbol","iterator","from","Object","prototype","toString","call","slice","constructor","name","test","TypeError","length","u","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","apply","s","arguments","defineProperty","value","configurable","writable","getOwnPropertyDescriptors","defineProperties","f","this","chart","destroy","p","split","render","ref","beforeDestroy","beforeUnmount","template","props","constructorType","type","String","default","options","required","callback","Function","updateArgs","highcharts","deepCopyOnUpdate","Boolean","watch","handler","update","concat","deep","mounted","$refs","console","warn","version","component","tagName","get","toStringTag","__esModule","create","bind","hasOwnProperty","b","Highcharts","_modules","getOptions","addEvent","g","extend","lang","noData","attr","zIndex","position","x","y","align","verticalAlign","style","fontWeight","fontSize","color","showNoData","renderer","noDataLabel","label","useHTML","add","styledMode","filterUserAttributes","css","getBBox","hideNoData","hasData","series","isInternal","loadingShown","_vm","_h","$createElement","_c","_self","staticClass","_v","_t","_s","$route","meta","subTitle","vesselName","attrs","_m","staticRenderFns","Vessels","getModule","VesselsModule","store","FeatureNotAvailable","vessel","currentVessel","$slots","text","Vue","Component","model","$$v","configPanelOpen","expression","on","onSubmit","longTrendIds","downloadExcel","_e","_l","index","key","config","onUpdateTimePeriod","LongTrendConfigWrapper","instance","koHtmlAndViewModel","viewModel","$el","innerHTML","$emit","ko","applyBindings","fromDateTime","toDateTime","updateTimePeriod","cleanNode","dispose","scopedSlots","_u","fn","_g","_b","resetZoom","isLoading","hasLongTrend","chartOptions","HighchartsNoData","LongTrendGraph","longTrendsData","loadingState","graphZoomed","selectedXAxisMin","selectedXAxisMax","LongTrendsClient","getLongTrendData","time","useUTC","credits","enabled","marginTop","zoomType","resetZoomButton","theme","display","events","selection","event","setTimeout","resetSelection","target","xAxis","min","max","xAxisMin","Math","ceil","xAxisMax","seriesList","selectedSeriesList","map","longTrendData","data","point","unit","longTrendName","averageValue","fontFamily","title","yAxis","yAxisColors","labels","format","caption","showEmpty","lineWidth","Date","parse","Number","toFixed","zoomOut","dataArray","dataEntry","counter","dataPoint","__decorate","Prop","Ref","Watch","immediate","components","HighCharts","Chart","VBtn","VCard","VProgressCircular","VTooltip","Store","LongTrend","features","some","feature","pop","shift","wrapper","id","beforeRouteEnter","to","next","showLongTrend","isDiagnosticActivated","trendDataMinDate","trendDataMaxDate","replace","VExpansionPanel","VExpansionPanelContent","VExpansionPanelHeader","VExpansionPanels","VIcon"],"mappings":"kHAAA,W,2DCAA,W,sBCAC,SAASA,EAAEC,GAAqDC,EAAOC,QAAQF,EAAE,EAAQ,QAAc,EAAQ,SAA/G,CAA0TG,QAAO,SAASC,EAAEC,GAAG,OAAOC,EAAE,GAAGC,EAAEC,EAAEC,EAAE,CAAC,SAASV,EAAEC,GAAGD,EAAEG,QAAQE,GAAG,SAASL,EA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B,WAAa,MACXoB,OAAiBrC,cAAjB,UAA+BlB,EAAQM,qBAAvC,aAA+B,EAAuBwH,QApC5B,GAASrH,QAM9BiG,gBAANE,kBAAM,8BANYW,EAAS,gBAnB7B7G,eAAU,CACTqG,WAAY,CACVtF,yBACArB,2BACA6C,kBAEF8E,iBANS,SAMQC,EAAWxP,EAAayP,GACvC,SAASC,EAAc7H,GACrB,OAAO3E,UAAQ,OAAC2E,QAAD,IAACA,KAAQ8H,yBAAT,OAAkC9H,QAAlC,IAAkCA,OAAlC,EAAkCA,EAAQ+H,mBAAoB/H,EAAOgI,kBAIlFH,EAAclI,EAAQM,eACxB2H,IAEAA,EAAK,CAAElP,KAAM,OAAQuP,SAAS,QAIff,WCjFiY,I,yECQlZ,GAAY,eACd,EACA9M,EACAsF,GACA,EACA,KACA,WACA,MAIa,gBAAiB,QAUhC,IAAkB,GAAW,CAACmH,OAAA,KAAKqB,kBAAA,KAAgBC,yBAAA,KAAuBC,wBAAA,KAAsBC,mBAAA,KAAiBC,SAAA","file":"js/chunk-20899cdc.ce8ab20b.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LongTrend.vue?vue&type=style&index=0&id=32d3ab00&lang=scss&scoped=true&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LongTrendGraph.vue?vue&type=style&index=0&id=512ddd6a&scoped=true&lang=css&\"","!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e(require(\"highcharts\"),require(\"vue\")):\"function\"==typeof define&&define.amd?define([\"highcharts\",\"vue\"],e):\"object\"==typeof exports?exports.HighchartsVue=e(require(\"highcharts\"),require(\"vue\")):t.HighchartsVue=e(t.Highcharts,t.Vue)}(window,function(r,n){return c={},o.m=i=[function(t,e){t.exports=r},function(t,e){t.exports=n},function(t,e,r){\"use strict\";r.r(e),r.d(e,\"Chart\",function(){return l}),r.d(e,\"default\",function(){return h});var e=r(0),c=r.n(e);function n(t,e){return function r(n,o,i){function t(t,e){!c.a.isObject(t,!i)||c.a.isClass(t)||c.a.isDOMElement(t)?n[e]=o[e]:n[e]=r(n[e]||c.a.isArray(t)?[]:{},t,i)}return c.a.isArray(o)?o.forEach(t):c.a.objectEach(o,t),n}({},t,e)}var o=r(1);function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(t){if(\"string\"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return\"Map\"===(r=\"Object\"===r&&t.constructor?t.constructor.name:r)||\"Set\"===r?Array.from(t):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r',props:{constructorType:{type:String,default:\"chart\"},options:{type:Object,required:!0},callback:Function,updateArgs:{type:Array,default:function(){return[!0,!0]}},highcharts:{type:Object},deepCopyOnUpdate:{type:Boolean,default:!0}},watch:{options:{handler:function(t){var e;(e=this.chart).update.apply(e,[n(t,this.deepCopyOnUpdate)].concat(i(this.updateArgs)))},deep:!0}},mounted:function(){var t=this.highcharts||e;this.options&&t[this.constructorType]?this.chart=t[this.constructorType](this.$refs.chart,n(this.options,!0),this.callback||null):this.options?console.warn(\"'\".concat(this.constructorType,\"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.\")):console.warn('The \"options\" parameter was not passed.')}},t)},l=p(c.a,o.version||r.n(o).a.version);function h(t){var e=1 0)?_c('div',{staticClass:\"download-graphs-buttons\"},[_c('v-btn',{staticClass:\"font-weight-semibold\",attrs:{\"small\":\"\"},on:{\"click\":_vm.downloadExcel}},[_vm._v(\"Export to excel\"),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\"mdi-download\")])],1)],1):_vm._e(),_vm._l((_vm.longTrendIds),function(longTrendIds,index){return _c('div',{key:index},[_c('LongTrendGraph',{attrs:{\"longTrendIds\":longTrendIds,\"config\":_vm.config},on:{\"updateTimePeriod\":_vm.onUpdateTimePeriod}})],1)})],2)],1):_c('FeatureNotAvailable')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport ko from \"knockout\";\nimport koHtmlAndViewModel from \"Components/long-trend-config/long-trend-config\";\nimport { LongTrendConfig } from \"@/types/longTrendConfig\";\n\n@Component\nexport default class LongTrendConfigWrapper extends Vue {\n instance: any = {};\n\n mounted(): void {\n this.instance = new koHtmlAndViewModel.viewModel();\n const { template } = koHtmlAndViewModel;\n this.$el.innerHTML = template;\n\n this.instance.onSubmit = (config: LongTrendConfig) => {\n this.$emit(\"submit\", config);\n };\n\n ko.applyBindings(this.instance, this.$el);\n }\n\n updateTimePeriod(fromDateTime: number, toDateTime: number): void {\n this.instance.updateTimePeriod(fromDateTime, toDateTime);\n }\n\n beforeDestroy(): void {\n ko.cleanNode(this.$el);\n this.instance.dispose();\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LongTrendConfigWrapper.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LongTrendConfigWrapper.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LongTrendConfigWrapper.vue?vue&type=template&id=51c52872&\"\nimport script from \"./LongTrendConfigWrapper.vue?vue&type=script&lang=ts&\"\nexport * from \"./LongTrendConfigWrapper.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{staticClass:\"card\"},[(_vm.graphZoomed)?_c('div',{staticClass:\"d-flex justify-end mb-3\"},[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({staticClass:\"font-weight-semibold\",attrs:{\"color\":\"accent\",\"dark\":\"\",\"small\":\"\"},on:{\"click\":_vm.updateTimePeriod}},'v-btn',attrs,false),on),[_vm._v(\" Update range for all variables \")])]}}],null,false,134326712)},[_c('span',[_vm._v(\"This will replot all graphs with a configuration that spans the current zoom level.\")])]),_c('v-btn',{staticClass:\"ml-2 font-weight-semibold\",attrs:{\"color\":\"accent\",\"dark\":\"\",\"small\":\"\"},on:{\"click\":_vm.resetZoom}},[_vm._v(\" Reset zoom \")])],1):_vm._e(),(!_vm.isLoading && _vm.hasLongTrend)?_c('HighCharts',{ref:\"chart\",attrs:{\"options\":_vm.chartOptions}}):_c('v-progress-circular',{staticClass:\"progress-circle\",attrs:{\"indeterminate\":\"\",\"size\":30,\"color\":\"primary\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch, Ref } from \"vue-property-decorator\";\nimport { LongTrendData } from \"@/types/longTrendData\";\nimport { LongTrendConfig } from \"@/types/longTrendConfig\";\nimport LongTrendsClient from \"Clients/long-trends-client\";\nimport { Chart } from \"highcharts-vue\";\nimport Highcharts from \"highcharts\";\nimport HighchartsNoData from \"highcharts/modules/no-data-to-display\";\nHighchartsNoData(Highcharts);\n\n@Component({\n components: {\n HighCharts: Chart,\n },\n})\nexport default class LongTrendGraph extends Vue {\n @Prop({ type: String }) readonly longTrendIds?: string;\n @Prop({ type: Object }) readonly config?: LongTrendConfig;\n\n @Ref() readonly chart!: any;\n\n longTrendsData: LongTrendData[] | null = null;\n loadingState: \"idle\" | \"loading\" = \"idle\";\n graphZoomed = false;\n selectedXAxisMin = null;\n selectedXAxisMax = null;\n\n get isLoading(): boolean {\n return this.loadingState === \"loading\";\n }\n\n get hasLongTrend(): boolean {\n return this.longTrendsData !== null;\n }\n\n @Watch(\"config\", { immediate: true, deep: true })\n async onConfigChange(): Promise {\n this.loadingState = \"loading\";\n this.graphZoomed = false;\n\n try {\n this.longTrendsData = await LongTrendsClient.getLongTrendData(this.longTrendIds);\n } finally {\n this.loadingState = \"idle\";\n }\n }\n\n get chartOptions(): unknown {\n return {\n time: {\n useUTC: false,\n },\n credits: {\n enabled: false,\n },\n chart: {\n marginTop: 50,\n type: \"line\",\n zoomType: \"x\",\n resetZoomButton: {\n theme: {\n display: \"none\",\n },\n },\n events: {\n //Updates the average value in legend when zooming on the graph\n selection: function (this: any, event: any) {\n setTimeout(() => {\n if (event.resetSelection) {\n this.graphZoomed = false;\n } else {\n this.graphZoomed = true;\n }\n\n //Custom code to update averge value in label when zooming the graph\n this.selectedXAxisMin = event.target.xAxis[0].min;\n this.selectedXAxisMax = event.target.xAxis[0].max;\n\n const xAxisMin = Math.ceil(event.target.xAxis[0].min);\n const xAxisMax = Math.ceil(event.target.xAxis[0].max);\n const seriesList = event.target.series;\n const selectedSeriesList = seriesList.map((series: any, index: number) => {\n return {\n longTrendData: series.data.filter((point: any) => point.x >= xAxisMin && point.x <= xAxisMax),\n unit: this.longTrendsData[index].unit,\n longTrendName: this.longTrendsData[index].longTrendName,\n };\n });\n\n for (const i in selectedSeriesList) {\n seriesList[i].update(\n {\n name: this.averageValue(selectedSeriesList[i]),\n },\n true\n );\n }\n });\n }.bind(this),\n },\n style: {\n fontFamily: \"Arial\",\n },\n },\n title: {\n text: \"\",\n },\n yAxis: this.longTrendsData?.map((longTrendData, index) => ({\n title: {\n text: \"\",\n style: { color: this.yAxisColors[index] },\n },\n labels: {\n format: \"{value} \" + longTrendData?.unit.caption,\n style: {\n color: this.yAxisColors[index],\n },\n },\n })),\n xAxis: {\n type: \"datetime\",\n showEmpty: false,\n },\n series: this.longTrendsData?.map((longTrendData, index) => ({\n name: longTrendData.longTrendName + this.averageValue(longTrendData),\n lineWidth: 2,\n yAxis: index,\n data: longTrendData.longTrendData?.map(data => [Date.parse(data.x), data.y ? Number(data.y.toFixed(2)) : null]),\n })),\n noData: {\n style: {\n color: \"#331714\",\n },\n },\n lang: {\n noData: \"Found no data for selected time period\",\n },\n };\n }\n\n //Highcharts only provide built in colors for the x-axis, so here we manually set the colors of the y-axis to match.\n get yAxisColors(): string[] {\n return [\"#7cb5ec\", \"#434348\", \"#90ed7d\", \"#f7a35c\", \"#8085e9\"];\n }\n\n resetZoom(): void {\n this.chart.chart.zoomOut();\n }\n\n averageValue(longTrendData: LongTrendData): string {\n const dataArray = longTrendData ? longTrendData.longTrendData.map(dataEntry => dataEntry.y) : [];\n let value = 0;\n let counter = 0;\n\n dataArray.forEach(function (dataPoint) {\n if (dataPoint !== null) {\n value += dataPoint;\n counter++;\n }\n });\n\n return counter > 0 ? ` (Avg: ${Number((value / counter).toFixed(2))} ${longTrendData.unit.name})` : \" (No data)\";\n }\n\n updateTimePeriod(): void {\n this.$emit(\"updateTimePeriod\", { fromDateTime: this.selectedXAxisMin, toDateTime: this.selectedXAxisMax });\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LongTrendGraph.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LongTrendGraph.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LongTrendGraph.vue?vue&type=template&id=512ddd6a&scoped=true&\"\nimport script from \"./LongTrendGraph.vue?vue&type=script&lang=ts&\"\nexport * from \"./LongTrendGraph.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./LongTrendGraph.vue?vue&type=style&index=0&id=512ddd6a&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"512ddd6a\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VCard,VProgressCircular,VTooltip})\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Ref } from \"vue-property-decorator\";\nimport { Route } from \"vue-router\";\nimport { getModule } from \"vuex-module-decorators\";\nimport Store from \"@/store\";\nimport LongTrendConfigWrapper from \"@/components/knockoutWrappers/LongTrendConfigWrapper.vue\";\nimport FeatureNotAvailable from \"@/components/FeatureNotAvailable.vue\";\nimport LongTrendGraph from \"@/components/LongTrendGraph.vue\";\nimport VesselsModule from \"@/store/clients/Vessels.module\";\nimport { LongTrendConfig } from \"@/types/longTrendConfig\";\nimport { ExtendedVessel } from \"@/types/Vessel\";\nimport LongTrendsClient from \"@/Scripts/clients/long-trends-client\";\n\nconst Vessels = getModule(VesselsModule, Store);\n\n@Component({\n components: {\n LongTrendConfigWrapper,\n FeatureNotAvailable,\n LongTrendGraph,\n },\n beforeRouteEnter(to: Route, from: Route, next): void {\n function showLongTrend(vessel: ExtendedVessel | null): boolean {\n return Boolean(!vessel?.isDiagnosticActivated && vessel?.trendDataMinDate && vessel.trendDataMaxDate);\n }\n\n //Case: switching to a vessel from sidebar where long trend is not a menu item - redirect to 'Info'\n if (showLongTrend(Vessels.currentVessel)) {\n next();\n } else {\n next({ name: \"Info\", replace: true });\n }\n },\n})\nexport default class LongTrend extends Vue {\n vessel = Vessels.currentVessel;\n configPanelOpen: 0 | null = 0;\n longTrendIds: string[] = [];\n config: LongTrendConfig | null = null;\n\n @Ref() readonly wrapper!: LongTrendConfigWrapper;\n\n get featureEnabled(): boolean {\n if (!this.vessel) return false;\n\n return this.vessel.features.some(feature => feature.name === \"LongTrend\");\n }\n\n onSubmit(config: LongTrendConfig): void {\n this.config = config;\n this.longTrendIds = config.longTrendIds.split(/\\||;/) ?? [];\n\n //If there are no group graphs, the last element will be an empty string we need to remove\n if (!this.longTrendIds[this.longTrendIds.length - 1]) {\n this.longTrendIds.pop();\n }\n\n //If there are no distinct graphs, the first element will be an empty string we need to remove\n if (!this.longTrendIds[0]) {\n this.longTrendIds.shift();\n }\n\n this.configPanelOpen = null;\n }\n\n onUpdateTimePeriod({ fromDateTime, toDateTime }: { fromDateTime: number; toDateTime: number }): void {\n this.wrapper.updateTimePeriod(fromDateTime, toDateTime);\n }\n\n downloadExcel(): void {\n LongTrendsClient.downloadExcel(Vessels.currentVessel?.id);\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LongTrend.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LongTrend.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LongTrend.vue?vue&type=template&id=32d3ab00&scoped=true&\"\nimport script from \"./LongTrend.vue?vue&type=script&lang=ts&\"\nexport * from \"./LongTrend.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./LongTrend.vue?vue&type=style&index=0&id=32d3ab00&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"32d3ab00\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VExpansionPanel } from 'vuetify/lib/components/VExpansionPanel';\nimport { VExpansionPanelContent } from 'vuetify/lib/components/VExpansionPanel';\nimport { VExpansionPanelHeader } from 'vuetify/lib/components/VExpansionPanel';\nimport { VExpansionPanels } from 'vuetify/lib/components/VExpansionPanel';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\ninstallComponents(component, {VBtn,VExpansionPanel,VExpansionPanelContent,VExpansionPanelHeader,VExpansionPanels,VIcon})\n"],"sourceRoot":""}