{"version":3,"sources":["webpack:///./src/views/vessel/FoulingDiagnostics.vue?8574","webpack:///./src/Scripts/clients/fouling-diagnostics-client.js","webpack:///./src/views/vessel/FoulingDiagnostics.vue","webpack:///./src/views/vessel/FoulingDiagnostics.vue?eb1b","webpack:///./src/views/vessel/FoulingDiagnostics.vue?fce8"],"names":["render","_vm","this","_h","$createElement","_c","_self","isLoading","_v","_s","diagnostics","isFoulingEnabled","powerMcr","shaftPowerLogVariables","length","_l","logVariable","key","id","name","logDataMinDate","logDataMaxDate","speedLogVariable","gpsSpeedLogVariable","shipCourseLogVariable","meanDraftLogVariable","windSpeedAbsLogVariable","hasBaseline","deviationsCount","staticRenderFns","FoulingDiagnosticsClient","prototype","getDiagnostics","vesselId","net","get","Vessels","getModule","VesselsModule","store","User","UserModule","FoulingDiagnostics","vessel","currentVessel","isAdmin","Vue","Component","components","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAASD,KAAKK,UAAgnEF,EAAG,OAAxmEA,EAAG,MAAM,CAACA,EAAG,IAAI,CAACJ,EAAIO,GAAG,oBAAoBP,EAAIQ,GAAGR,EAAIS,YAAYC,qBAAqBN,EAAG,IAAI,CAACJ,EAAIO,GAAG,QAAQP,EAAIQ,GAAGR,EAAIS,YAAYE,aAAaP,EAAG,IAAI,CAACJ,EAAIO,GAAG,yCAAyCP,EAAIQ,GAAGR,EAAIS,YAAYG,uBAAuBC,SAAST,EAAG,MAAMJ,EAAIc,GAAId,EAAIS,YAAkC,wBAAE,SAASM,GAAa,OAAOX,EAAG,OAAO,CAACY,IAAID,EAAYE,IAAI,CAACjB,EAAIO,GAAG,UAAUP,EAAIQ,GAAGO,EAAYG,OAAOd,EAAG,MAAMJ,EAAIO,GAAG,cAAcP,EAAIQ,GAAGO,EAAYI,iBAAiBf,EAAG,MAAMJ,EAAIO,GAAG,cAAcP,EAAIQ,GA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AAGR,EAAIS,YAAYgB,wBAAwBN,iBAAiBf,EAAG,MAAMJ,EAAIO,GAAG,cAAcP,EAAIQ,GAAGR,EAAIS,YAAYgB,wBAAwBL,gBAAgB,OAAOhB,EAAG,IAAI,CAACJ,EAAIO,GAAG,6BAA6BP,EAAIQ,GAAGR,EAAIS,YAAYiB,gBAAgBtB,EAAG,IAAI,CAACJ,EAAIO,GAAG,+BAA+BP,EAAIQ,GAAGR,EAAIS,YAAYkB,uBAC7rEC,EAAkB,G,4JCClBC,EAA2B,aAE/BA,EAAyBC,UAAUC,eAAiB,SAAUC,GAC5D,OAAOC,OAAIC,IAAJ,uBAAgC,CAAEF,SAAUA,KAGtC,UAAIH,EC+CbM,EAAUC,eAAUC,OAAeC,QACnCC,EAAOH,eAAUI,OAAYF,QAKdG,EAAkB,wDAAvC,iD,0BACE,EAAAC,OAASP,EAAQQ,cAEjB,EAAArC,WAAY,EAHd,EAAuC,uGAKrC,iGACOiC,EAAKK,QADZ,oDAEO3C,KAAKyC,OAFZ,iEAG2Bb,EAAyBE,eAAe9B,KAAKyC,OAAOzB,IAH/E,OAGEhB,KAAKQ,YAHP,OAIER,KAAKK,WAAY,EAJnB,gDALqC,8DAASuC,QAA3BJ,EAAkB,gBAHtCK,eAAU,CACTC,WAAY,MAEON,WC7D0Y,I,YCO3ZO,EAAY,eACd,EACAjD,EACA6B,GACA,EACA,KACA,KACA,MAIa,aAAAoB,E","file":"js/chunk-2d0cc20a.d768ac06.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!this.isLoading)?_c('div',[_c('p',[_vm._v(\"Fouling enabled: \"+_vm._s(_vm.diagnostics.isFoulingEnabled))]),_c('p',[_vm._v(\"MCR: \"+_vm._s(_vm.diagnostics.powerMcr))]),_c('p',[_vm._v(\" Number of shaft power log variables: \"+_vm._s(_vm.diagnostics.shaftPowerLogVariables.length)),_c('br'),_vm._l((_vm.diagnostics.shaftPowerLogVariables),function(logVariable){return _c('span',{key:logVariable.id},[_vm._v(\" Name: \"+_vm._s(logVariable.name)),_c('br'),_vm._v(\" min date: \"+_vm._s(logVariable.logDataMinDate)),_c('br'),_vm._v(\" max date: \"+_vm._s(logVariable.logDataMaxDate)+\" \")])})],2),_c('p',[_vm._v(\" Speed log variable: \"+_vm._s(_vm.diagnostics.speedLogVariable.name)),_c('br'),_vm._v(\" min date: \"+_vm._s(_vm.diagnostics.speedLogVariable.logDataMinDate)),_c('br'),_vm._v(\" max date: \"+_vm._s(_vm.diagnostics.speedLogVariable.logDataMaxDate)+\" \")]),_c('p',[_vm._v(\" GPS speed log variable: \"+_vm._s(_vm.diagnostics.gpsSpeedLogVariable.name)),_c('br'),_vm._v(\" min date: \"+_vm._s(_vm.diagnostics.gpsSpeedLogVariable.logDataMinDate)),_c('br'),_vm._v(\" max date: \"+_vm._s(_vm.diagnostics.gpsSpeedLogVariable.logDataMaxDate)+\" \")]),_c('p',[_vm._v(\" Ship course log variable: \"+_vm._s(_vm.diagnostics.shipCourseLogVariable.name)),_c('br'),_vm._v(\" min date: \"+_vm._s(_vm.diagnostics.shipCourseLogVariable.logDataMinDate)),_c('br'),_vm._v(\" max date: \"+_vm._s(_vm.diagnostics.shipCourseLogVariable.logDataMaxDate)+\" \")]),_c('p',[_vm._v(\" Mean draft log variable: \"+_vm._s(_vm.diagnostics.meanDraftLogVariable.name)),_c('br'),_vm._v(\" min date: \"+_vm._s(_vm.diagnostics.meanDraftLogVariable.logDataMinDate)),_c('br'),_vm._v(\" max date: \"+_vm._s(_vm.diagnostics.meanDraftLogVariable.logDataMaxDate)+\" \")]),_c('p',[_vm._v(\" Wind speed abs log variable: \"+_vm._s(_vm.diagnostics.windSpeedAbsLogVariable.name)),_c('br'),_vm._v(\" min date: \"+_vm._s(_vm.diagnostics.windSpeedAbsLogVariable.logDataMinDate)),_c('br'),_vm._v(\" max date: \"+_vm._s(_vm.diagnostics.windSpeedAbsLogVariable.logDataMaxDate)+\" \")]),_c('p',[_vm._v(\"Has power-speed baseline: \"+_vm._s(_vm.diagnostics.hasBaseline))]),_c('p',[_vm._v(\"Number of deviations in DB: \"+_vm._s(_vm.diagnostics.deviationsCount))])]):_c('div')}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import net from \"App/net\";\r\n\r\nvar FoulingDiagnosticsClient = function () { };\r\n\r\nFoulingDiagnosticsClient.prototype.getDiagnostics = function (vesselId) {\r\n return net.get(`/Fouling/Diagnostics`, { vesselId: vesselId });\r\n};\r\n\r\nexport default new FoulingDiagnosticsClient();\r\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 } from \"vue-property-decorator\";\nimport store from \"@/store\";\nimport { getModule } from \"vuex-module-decorators\";\nimport VesselsModule from \"@/store/clients/Vessels.module\";\nimport UserModule from \"@/store/clients/User.module\";\nimport FoulingDiagnosticsClient from \"Clients/fouling-diagnostics-client\";\nimport { FoulingDiagnostics as Diagnostics } from \"@/types/FoulingDiagnostics\";\n\nconst Vessels = getModule(VesselsModule, store);\nconst User = getModule(UserModule, store);\n\n@Component({\n components: {},\n})\nexport default class FoulingDiagnostics extends Vue {\n vessel = Vessels.currentVessel;\n diagnostics: Diagnostics | undefined;\n isLoading = true;\n\n async created(): Promise {\n if (!User.isAdmin) return;\n if (!this.vessel) return;\n this.diagnostics = await FoulingDiagnosticsClient.getDiagnostics(this.vessel.id);\n this.isLoading = false;\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!./FoulingDiagnostics.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!./FoulingDiagnostics.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FoulingDiagnostics.vue?vue&type=template&id=615ed1d9&\"\nimport script from \"./FoulingDiagnostics.vue?vue&type=script&lang=ts&\"\nexport * from \"./FoulingDiagnostics.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"],"sourceRoot":""}