{"version":3,"sources":["webpack:///./src/views/vessel/Vessel.vue?bb0f","webpack:///./src/views/vessel/Vessel.vue?8002","webpack:///./src/views/vessel/Vessel.vue?210e","webpack:///./src/views/vessel/Vessel.vue?c398","webpack:///./src/views/vessel/Vessel.vue?7736"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","name","_v","_e","key","$route","fullPath","staticRenderFns","Incidents","getModule","IncidentsModule","Store","Vessels","VesselsModule","Vessel","updateOpenIncidents","currentVessel","vessel","Boolean","isDiagnosticActivated","trendDataMinDate","trendDataMaxDate","logDataMaxDate","logDataMinDate","Vue","Component","beforeRouteEnter","to","from","next","test","path","encodeURI","replace","updateCurrentVesselById","parseInt","params","vesselId","beforeRouteUpdate","redirectedFrom","component","VCard","VContainer","VTab","VTabs"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,YAAY,gBAAgBC,MAAM,CAAC,MAAQ,GAAG,cAAc,KAAK,CAACH,EAAG,SAAS,CAACE,YAAY,2BAA2BC,MAAM,CAAC,YAAY,SAAS,MAAQ,OAAO,OAAS,SAAS,CAACH,EAAG,SAAS,CAACG,MAAM,CAAC,mBAAmB,oBAAoB,eAAe,QAAQ,KAAO,GAAG,cAAc,KAAK,CAACH,EAAG,QAAQ,CAACG,MAAM,CAAC,GAAK,CAAEC,KAAM,QAAQ,eAAe,iBAAiB,CAACR,EAAIS,GAAG,UAAUL,EAAG,QAAQ,CAACG,MAAM,CAAC,GAAK,CAAEC,KAAM,SAAS,eAAe,iBAAiB,CAACR,EAAIS,GAAG,WAAWL,EAAG,QAAQ,CAACG,MAAM,CAAC,GAAK,CAAEC,KAAM,eAAe,eAAe,iBAAiB,CAACR,EAAIS,GAAG,eAAeL,EAAG,QAAQ,CAACG,MAAM,CAAC,GAAK,CAAEC,KAAM,UAAU,eAAe,iBAAiB,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AKuB,OAAOI,oBAZ1E,8BAezB,WACE,QAAK3B,KAAKuB,QACHC,QAAQxB,KAAKuB,OAAOK,gBAAkB5B,KAAKuB,OAAOM,oBAjBlC,GAASC,QAAfV,EAAM,gBAzB1BW,eAAU,CACHC,iBADG,SACcC,EAAWC,EAAaC,GAAI,iJAC7C,KAAKC,KAAKH,EAAGI,MADgC,gBAE/CF,EAAK,CAAEE,KAAMC,UAAUL,EAAGI,MAAOE,SAAS,IAFK,sCAIzCrB,EAAQsB,wBAAwBC,SAASR,EAAGS,OAAOC,WAJV,OAK/CR,IAL+C,8CAQ7CS,kBATG,SASeX,EAAWC,EAAaC,GAAI,gJAE9CD,EAAKQ,OAAOC,WAAaV,EAAGS,OAAOC,SAFW,gCAG1CzB,EAAQsB,wBAAwBC,SAASR,EAAGS,OAAOC,WAHT,OAIhD7B,EAAUO,sBACNa,EAAK3B,MAAQ2B,EAAK3B,OAAS0B,EAAG1B,KAEhC4B,EAAK,CAAEE,KAAM,GAAF,OAAKJ,EAAGY,eAAR,YAA0BX,EAAK3B,MAAQgC,SAAS,IAE3DJ,IAT8C,sBAYhDA,IAZgD,iDAgBjCf,WCrH8X,I,6FCQ/Y0B,EAAY,eACd,EACAhD,EACAe,GACA,EACA,KACA,KACA,MAIa,aAAAiC,EAAiB,QAQhC,IAAkBA,EAAW,CAACC,QAAA,KAAMC,aAAA,KAAWC,OAAA,KAAKC,QAAA,Q,yDC3BpD","file":"js/chunk-07965cde.d6bf527b.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"neutralDark50\",attrs:{\"fluid\":\"\",\"fill-height\":\"\"}},[_c('v-card',{staticClass:\"mx-auto align-self-start\",attrs:{\"max-width\":\"1350px\",\"width\":\"100%\",\"height\":\"100%\"}},[_c('v-tabs',{attrs:{\"background-color\":\"primary lighten-1\",\"slider-color\":\"white\",\"dark\":\"\",\"show-arrows\":\"\"}},[_c('v-tab',{attrs:{\"to\":{ name: 'Info'},\"active-class\":\"selected-tab\"}},[_vm._v(\"Info\")]),_c('v-tab',{attrs:{\"to\":{ name: 'Notes'},\"active-class\":\"selected-tab\"}},[_vm._v(\"Notes\")]),_c('v-tab',{attrs:{\"to\":{ name: 'VesselFiles'},\"active-class\":\"selected-tab\"}},[_vm._v(\"Documents\")]),_c('v-tab',{attrs:{\"to\":{ name: 'Report'},\"active-class\":\"selected-tab\"}},[_vm._v(\"Reports\")]),_c('v-tab',{attrs:{\"to\":{ name: 'Shapoli'},\"active-class\":\"selected-tab\"}},[_vm._v(\"EEXI Shapoli\")]),(_vm.showLoggingHistory)?_c('v-tab',{attrs:{\"to\":{ name: 'LoggingHistory'},\"active-class\":\"selected-tab\"}},[_vm._v(\"Logging history\")]):_vm._e(),(_vm.showLongTrend)?_c('v-tab',{attrs:{\"to\":{ name: 'LongTrend'},\"active-class\":\"selected-tab\"}},[_vm._v(\"Long trend\")]):_vm._e(),_c('v-tab',{attrs:{\"to\":{ name: 'Diagnostics'},\"active-class\":\"selected-tab\"}},[_vm._v(\"Diagnostics\")]),_c('v-tab',{attrs:{\"to\":{ name: 'Fouling'},\"active-class\":\"selected-tab\"}},[_vm._v(\"Fouling\")]),_c('v-tab',{attrs:{\"to\":{ name: 'EmissionReport'},\"active-class\":\"selected-tab\"}},[_vm._v(\"Emission Report\")]),_c('v-tab',{attrs:{\"to\":{ name: 'CharterParty'},\"active-class\":\"selected-tab\"}},[_vm._v(\"Charter party\")]),_c('v-tab',{attrs:{\"to\":{ name: 'DataAnalysis'},\"active-class\":\"selected-tab\"}},[_vm._v(\"Data analysis\")])],1),_c('v-container',[_c('router-view',{key:_vm.$route.fullPath})],1)],1)],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\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 { Route } from \"vue-router\";\nimport { Component, Vue } from \"vue-property-decorator\";\nimport Store from \"@/store\";\nimport { ExtendedVessel } from \"@/types/Vessel\";\nimport { getModule } from \"vuex-module-decorators\";\nimport VesselsModule from \"@/store/clients/Vessels.module\";\nimport IncidentsModule from \"@/store/clients/Incidents.module\";\n\nconst Incidents = getModule(IncidentsModule, Store);\nconst Vessels = getModule(VesselsModule, Store);\n\n@Component({\n async beforeRouteEnter(to: Route, from: Route, next): Promise {\n if (/\\s/.test(to.path)) {\n next({ path: encodeURI(to.path), replace: true });\n } else {\n await Vessels.updateCurrentVesselById(parseInt(to.params.vesselId));\n next();\n }\n },\n async beforeRouteUpdate(to: Route, from: Route, next): Promise {\n //when switching vessel from the sidebar\n if (from.params.vesselId !== to.params.vesselId) {\n await Vessels.updateCurrentVesselById(parseInt(to.params.vesselId));\n Incidents.updateOpenIncidents();\n if (from.name && from.name !== to.name) {\n //redirect to same tab for different vessel\n next({ path: `${to.redirectedFrom}/${from.name}`, replace: true });\n } else {\n next();\n }\n } else {\n next();\n }\n },\n})\nexport default class Vessel extends Vue {\n created(): void {\n Incidents.updateOpenIncidents();\n }\n\n get vessel(): ExtendedVessel | null {\n return Vessels.currentVessel;\n }\n\n //logic from LongTrendNodeVisibilityProvider.cs\n get showLongTrend(): boolean {\n if (!this.vessel) return false;\n return Boolean(!this.vessel.isDiagnosticActivated && this.vessel.trendDataMinDate && this.vessel.trendDataMaxDate);\n }\n //logic from LoggingHistoryNodeVisibilityProvider.cs\n get showLoggingHistory(): boolean {\n if (!this.vessel) return false;\n return Boolean(this.vessel.logDataMaxDate || this.vessel.logDataMinDate);\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!./Vessel.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!./Vessel.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Vessel.vue?vue&type=template&id=55e665cf&\"\nimport script from \"./Vessel.vue?vue&type=script&lang=ts&\"\nexport * from \"./Vessel.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Vessel.vue?vue&type=style&index=0&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 null,\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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VTab } from 'vuetify/lib/components/VTabs';\nimport { VTabs } from 'vuetify/lib/components/VTabs';\ninstallComponents(component, {VCard,VContainer,VTab,VTabs})\n","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!./Vessel.vue?vue&type=style&index=0&lang=css&\""],"sourceRoot":""}