{"version":3,"sources":["webpack:///./src/views/vessel/EmissionReport.vue?0f2d","webpack:///./src/components/knockoutWrappers/EmissionReportWrapper.vue?98c5","webpack:///./src/components/knockoutWrappers/EmissionReportWrapper.vue","webpack:///./src/components/knockoutWrappers/EmissionReportWrapper.vue?05ed","webpack:///./src/components/knockoutWrappers/EmissionReportWrapper.vue?85ba","webpack:///./src/views/vessel/EmissionReport.vue","webpack:///./src/views/vessel/EmissionReport.vue?05f7","webpack:///./src/views/vessel/EmissionReport.vue?d364","webpack:///./src/components/FeatureNotAvailable.vue?94cb","webpack:///./src/components/FeatureNotAvailable.vue","webpack:///./src/components/FeatureNotAvailable.vue?2435","webpack:///./src/components/FeatureNotAvailable.vue?5d99"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticRenderFns","EmissionReportWrapper","instance","currentVesselId","parseInt","$route","params","vesselId","param","koHtmlAndViewModel","viewModel","template","$el","innerHTML","ko","applyBindings","configEmissionReport","configEmissionReportFactory","get","currentVessel","$store","getters","load","cleanNode","dispose","Vue","Component","component","Vessels","getModule","VesselsModule","store","EmissionReport","vessel","features","some","feature","name","components","emissionReportWrapper","featureNotAvailable","staticClass","_v","_t","_s","meta","subTitle","vesselName","attrs","_m","FeatureNotAvailable","Boolean","$slots","text"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAAEJ,EAAkB,eAAEI,EAAG,yBAAyBA,EAAG,wBAAwB,IAClLE,EAAkB,G,8FCDlB,EAAS,WAAa,IAAIN,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAC/F,EAAkB,G,6CCUDG,EAAqB,wDAA1C,iD,0BAEE,EAAAC,SAAgB,GAFlB,EAA0C,8CAIxC,WACEP,KAAKQ,gBAAkBC,SAAST,KAAKU,OAAOC,O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G,iCAAiC5C,EAAG,OAAO,CAACJ,EAAIgD,GAAGhD,EAAIkD,GAAGlD,EAAIqD,eAAerD,EAAIgD,GAAG,KAAK5C,EAAG,MAAMJ,EAAIgD,GAAG,6CAA6C5C,EAAG,IAAI,CAACJ,EAAIgD,GAAG,mCAAmChD,EAAIgD,GAAG,kBAAkB5C,EAAG,MAAMJ,EAAIgD,GAAG,sCAAsC5C,EAAG,IAAI,CAACkD,MAAM,CAAC,KAAO,gEAAgE,OAAS,WAAW,CAACtD,EAAIgD,GAAG,qBAAqBhD,EAAIgD,GAAG,QAAQhD,EAAIuD,GAAG,MAAM,IAC5vBjD,EAAkB,CAAC,WAAa,IAAIN,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,IAAI,CAAC2C,YAAY,QAAQ,CAAC/C,EAAIgD,GAAG,mBAAmB5C,EAAG,IAAI,CAACkD,MAAM,CAAC,KAAO,6BAA6B,CAACtD,EAAIgD,GAAG,uBAAuBhD,EAAIgD,GAAG,oD,wHC0BpPd,EAAUC,eAAUC,OAAeC,QAGpBmB,EAAmB,wDAAxC,iD,0BACE,EAAAjB,OAASL,EAAQT,cADnB,EAAwC,+CAEtC,WACE,QAAKxB,KAAKsC,QACHtC,KAAKsC,OAAOI,OAJiB,uBAOtC,WACE,OAAOc,QAAQxD,KAAKyD,OAAOC,UARS,GAAS5B,QAA5ByB,EAAmB,gBADvCxB,QACoBwB,WC9ByX,I,YCO1YvB,EAAY,eACd,EACAlC,EACAO,GACA,EACA,KACA,WACA,MAIa,OAAA2B,E","file":"js/chunk-781a025e.da3d2bac.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.featureEnabled)?_c('emissionReportWrapper'):_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/emission-report/emission-report\";\nimport configEmissionReportFactory from \"App/config-emission-report\";\n\n@Component\nexport default class EmissionReportWrapper extends Vue {\n currentVesselId: number | undefined;\n instance: any = {};\n\n mounted(): void {\n this.currentVesselId = parseInt(this.$route.params.vesselId);\n\n const param = {\n vesselId: this.currentVesselId,\n };\n\n this.instance = new koHtmlAndViewModel.viewModel(param);\n const { template } = koHtmlAndViewModel;\n this.$el.innerHTML = template;\n\n ko.applyBindings(this.instance, this.$el);\n\n const configEmissionReport = configEmissionReportFactory.get();\n configEmissionReport.currentVessel = this.$store.getters[\"Vessels/currentVessel\"];\n configEmissionReport.load();\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!./EmissionReportWrapper.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!./EmissionReportWrapper.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./EmissionReportWrapper.vue?vue&type=template&id=aca0ef72&scoped=true&\"\nimport script from \"./EmissionReportWrapper.vue?vue&type=script&lang=ts&\"\nexport * from \"./EmissionReportWrapper.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 \"aca0ef72\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport emissionReportWrapper from \"@/components/knockoutWrappers/EmissionReportWrapper.vue\";\nimport featureNotAvailable from \"@/components/FeatureNotAvailable.vue\";\nimport store from \"@/store\";\nimport { getModule } from \"vuex-module-decorators\";\nimport VesselsModule from \"@/store/clients/Vessels.module\";\n\nconst Vessels = getModule(VesselsModule, store);\n\n@Component({\n components: {\n emissionReportWrapper,\n featureNotAvailable,\n },\n})\nexport default class EmissionReport extends Vue {\n vessel = Vessels.currentVessel;\n get featureEnabled(): boolean {\n if (!this.vessel) return false;\n return this.vessel.features.some(feature => feature.name === \"EmissionReport\");\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!./EmissionReport.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!./EmissionReport.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./EmissionReport.vue?vue&type=template&id=4a64e306&\"\nimport script from \"./EmissionReport.vue?vue&type=script&lang=ts&\"\nexport * from \"./EmissionReport.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('div',{staticClass:\"alert alert-info\"},[_c('h1',[_vm._v(\"Feature not available\")]),(_vm.hasSlotData)?_vm._t(\"text\"):_c('div',[_c('p',[_vm._v(\" We are sorry, the \"),_c('strong',[_vm._v(_vm._s(_vm.$route.meta.subTitle))]),_vm._v(\" module is not activated for \"),_c('span',[_vm._v(_vm._s(_vm.vesselName))]),_vm._v(\".\"),_c('br'),_vm._v(\" This module is available as part of the \"),_c('b',[_vm._v(\"«Danelec Fleet Insights Plus»\")]),_vm._v(\" subscription.\"),_c('br'),_vm._v(\" More information is available at \"),_c('a',{attrs:{\"href\":\"https://www.danelec.com/products/ship-performance-monitoring/\",\"target\":\"_blank\"}},[_vm._v(\"www.danelec.com\")]),_vm._v(\". \")]),_vm._m(0)])],2)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:\"mb-0\"},[_vm._v(\"Please contact \"),_c('a',{attrs:{\"href\":\"mailto:sales@danelec.com\"}},[_vm._v(\"sales@danelec.com\")]),_vm._v(\" for a quotation to activate a subscription.\")])}]\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\nimport { Component, Vue } from \"vue-property-decorator\";\nimport store from \"@/store\";\nimport { getModule } from \"vuex-module-decorators\";\nimport VesselsModule from \"@/store/clients/Vessels.module\";\n\nconst Vessels = getModule(VesselsModule, store);\n\n@Component\nexport default class FeatureNotAvailable extends Vue {\n vessel = Vessels.currentVessel;\n get vesselName(): string | boolean {\n if (!this.vessel) return false;\n return this.vessel.name;\n }\n\n get hasSlotData(): boolean {\n return Boolean(this.$slots.text);\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!./FeatureNotAvailable.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!./FeatureNotAvailable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FeatureNotAvailable.vue?vue&type=template&id=37c9e46a&scoped=true&\"\nimport script from \"./FeatureNotAvailable.vue?vue&type=script&lang=ts&\"\nexport * from \"./FeatureNotAvailable.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 \"37c9e46a\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}