{"version":3,"sources":["webpack:///./src/views/components/Sensors/GatewaySensorItem.vue?2d25","webpack:///./src/views/components/Sensors/GatewaySensorItem.vue","webpack:///./src/views/components/Sensors/GatewaySensorItem.vue?044d","webpack:///./src/views/components/Sensors/GatewaySensorItem.vue?5087"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_t","_v","staticClass","voltage","voltageWarning","getBatteryType","on","initReset","reset","model","value","callback","$$v","showResetConfirm","expression","initRestart","restart","showRestartConfirm","staticRenderFns","defineComponent","components","SensorHeader","SensorModule","Battery","ConfirmDialog","props","Object","setup","_","computed","app","processingLabel","isProcessing","countdown","ref","smallVoltageLimit","lowVoltageLimitLiIon","highVoltageLimitLiIon","timer","alarm","alarmStatus","VSupplies","getVoltage","V3","boatPower","V1","gsmCloud","window","setInterval","clearInterval","location","reload","isActive","gpsConnected","lastKnownLocation","gps_lock","isVoltageWarning","parsed","parseFloat","undefined","onBeforeUnmount","component","VBtn","VChip","VCol","VExpansionPanel","VExpansionPanelContent","VImg","VRow"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,oBAAoB,CAACA,EAAG,eAAe,CAACE,MAAM,CAAC,KAAO,YAAY,CAACN,EAAIO,GAAG,WAAU,WAAW,MAAO,CAACP,EAAIQ,GAAG,4BAA2B,GAAGJ,EAAG,4BAA4B,CAACA,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACK,YAAY,mBAAmBH,MAAM,CAAC,KAAO,IAAI,aAAa,QAAQ,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,SAAW,MAAM,YAAY,QAAQ,aAAa,QAAQ,QAAU,GAAG,IAAM,EAAQ,YAAgC,GAAGF,EAAG,QAAQ,CAACK,YAAY,6BAA6BH,MAAM,CAAC,KAAO,MAAM,CAACF,EAAG,QAAQ,CAACK,YAAY,OAAO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CACHzB,mBACAI,qBACAD,UACAR,QACAD,YACAQ,cACAZ,UACAyC,YACAS,eACAP,WACA1C,iBACAC,iBACA+C,eC/Qoa,I,qHCO5aS,EAAY,eACd,EACArE,EACA0B,GACA,EACA,KACA,KACA,MAIa,aAAA2C,EAAiB,QAWhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMC,OAAA,KAAKC,kBAAA,KAAgBC,yBAAA,KAAuBC,OAAA,KAAKC,OAAA","file":"js/chunk-2d0c1b06.599ab1aa.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-expansion-panel',[_c('SensorHeader',{attrs:{\"icon\":\"gateway\"}},[_vm._t(\"default\",function(){return [_vm._v(\"GATEWAY & FUNCTIONS\")]})],2),_c('v-expansion-panel-content',[_c('div',[_c('v-row',[_c('v-col',{staticClass:\"text-center pr-0\",attrs:{\"cols\":\"3\",\"align-self\":\"end\"}},[_c('v-img',{attrs:{\"position\":\"top\",\"max-width\":\"125px\",\"max-height\":\"150px\",\"contain\":\"\",\"src\":require(\"@/assets/img/gateway.png\")}})],1),_c('v-col',{staticClass:\"d-flex justify-center pl-0\",attrs:{\"cols\":\"9\"}},[_c('v-row',{staticClass:\"pl-6\",attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"pa-0\",attrs:{\"cols\":\"4\"}},[_c('v-row',{attrs:{\"no-gutters\":\"\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"text-center text-caption white--text\",attrs:{\"cols\":\"12\"}},[_vm._v(\" Back-up battery \")]),_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('Battery',{attrs:{\"voltage\":_vm.voltage,\"warning\":_vm.voltageWarning,\"batteryType\":_vm.getBatteryType(_vm.voltage)}})],1)],1)],1),_c('v-col',{staticClass:\"pa-0 text-center\",attrs:{\"cols\":\"4\"}},[_c('div',{staticClass:\"text-center text-caption mt-1 white--text\"},[_vm._v(\"Factory reset\")]),_c('v-btn',{staticClass:\"mx-auto mt-1\",attrs:{\"icon\":\"\"},on:{\"click\":_vm.initReset}},[_c('v-img',{attrs:{\"src\":require(\"@/assets/icons/reset.svg\"),\"max-width\":\"40px\",\"width\":\"40px\"}})],1),_c('ConfirmDialog',{attrs:{\"title\":\"Confirm\",\"message\":\"Do you want to reset the gateway to factory settings?\"},on:{\"OnOk\":_vm.reset},model:{value:(_vm.showResetConfirm),callback:function ($$v) {_vm.showResetConfirm=$$v},expression:\"showResetConfirm\"}})],1),_c('v-col',{staticClass:\"pa-0 text-center\",attrs:{\"cols\":\"4\"}},[_c('div',{staticClass:\"text-center text-caption mt-1 white--text\"},[_vm._v(\"Restart gateway\")]),_c('v-btn',{staticClass:\"mx-auto mt-1\",attrs:{\"icon\":\"\"},on:{\"click\":_vm.initRestart}},[_c('v-img',{attrs:{\"src\":require(\"@/assets/icons/restart.svg\"),\"max-width\":\"40px\",\"width\":\"40px\"}})],1),_c('ConfirmDialog',{attrs:{\"title\":\"Confirm\",\"message\":\"Do you want to restart the gateway?\"},on:{\"OnOk\":_vm.restart},model:{value:(_vm.showRestartConfirm),callback:function ($$v) {_vm.showRestartConfirm=$$v},expression:\"showRestartConfirm\"}})],1)],1)],1)],1),_c('v-row',{attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"text-left text-caption py-0 white--text\",attrs:{\"cols\":\"2\"}},[_vm._v(\"12/24V \")]),_c('v-col',{staticClass:\"text-left text-caption py-0\",attrs:{\"cols\":\"4\"}},[(_vm.boatPower)?_c('v-chip',{staticClass:\"pl-5 pr-5\",attrs:{\"color\":\"#81b13e\",\"text-color\":\"white\",\"x-small\":\"\"}},[_vm._v(\" CONNECTED \")]):_c('v-chip',{attrs:{\"color\":\"#c20e1a\",\"text-color\":\"white\",\"x-small\":\"\"}},[_vm._v(\" DISCONNECTED \")])],1),_c('v-col',{staticClass:\"text-left text-caption pr-0 white--text\",attrs:{\"cols\":\"2\"}},[_vm._v(\"GSM\")]),_c('v-col',{staticClass:\"text-left text-caption py-0\",attrs:{\"cols\":\"4\"}},[(_vm.gsmCloud)?_c('v-chip',{staticClass:\"pl-5 pr-5\",attrs:{\"color\":\"#81b13e\",\"text-color\":\"white\",\"x-small\":\"\"}},[_vm._v(\" CONNECTED \")]):_c('v-chip',{attrs:{\"color\":\"#c20e1a\",\"text-color\":\"white\",\"x-small\":\"\"}},[_vm._v(\" DISCONNECTED \")])],1),_c('v-col',{staticClass:\"text-left text-caption pr-0 white--text\",attrs:{\"cols\":\"2\"}},[_vm._v(\"Cloud\")]),_c('v-col',{staticClass:\"text-left text-caption py-0\",attrs:{\"cols\":\"4\"}},[(_vm.gsmCloud)?_c('v-chip',{staticClass:\"pl-5 pr-5\",attrs:{\"color\":\"#81b13e\",\"text-color\":\"white\",\"x-small\":\"\"}},[_vm._v(\" CONNECTED \")]):_c('v-chip',{attrs:{\"color\":\"#c20e1a\",\"text-color\":\"white\",\"x-small\":\"\"}},[_vm._v(\" DISCONNECTED \")])],1),_c('v-col',{staticClass:\"text-left text-caption pr-0 white--text\",attrs:{\"cols\":\"2\"}},[_vm._v(\"GPS\")]),_c('v-col',{staticClass:\"text-left text-caption py-0\",attrs:{\"cols\":\"4\"}},[(_vm.gpsConnected)?_c('v-chip',{staticClass:\"pl-5 pr-5\",attrs:{\"color\":\"#81b13e\",\"text-color\":\"white\",\"x-small\":\"\"}},[_vm._v(\" CONNECTED \")]):_c('v-chip',{attrs:{\"color\":\"#c20e1a\",\"text-color\":\"white\",\"x-small\":\"\"}},[_vm._v(\" DISCONNECTED \")])],1)],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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { computed, defineComponent, PropType, ref, onBeforeUnmount } from \"@vue/composition-api\";\nimport AttachedDeviceModel from \"@/models/AttachedDeviceModel\";\nimport { app, alarm } from \"@/store\";\nimport { ILocationFromParticle } from \"@/models/AlarmStatus\";\nimport differenceInMilliseconds from \"date-fns/differenceInMilliseconds\";\nimport parseISO from \"date-fns/parseISO\";\nimport addMinutes from \"date-fns/addMinutes\";\n\nexport default defineComponent({\n components: {\n SensorHeader: () =>\n import(/* webpackChunkName: \"components\" */ \"./SensorHeader.vue\"),\n SensorModule: () =>\n import(/* webpackChunkName: \"components\" */ \"./SensorModule.vue\"),\n Battery: () =>\n import(\n /* webpackChunkName: \"components\" */ \"@/views/components/BatteryView.vue\"\n ),\n ConfirmDialog: () =>\n import(\n /* webpackChunkName: \"settings\" */ \"@/views/components/Dialogs/ConfirmDialog.vue\"\n )\n },\n props: {\n value: Object as PropType\n },\n setup(_, { attrs }) {\n const processingLabel = computed(() => app.processingLabel);\n const isProcessing = computed(() => app.isProcessing);\n const countdown = computed(() => app.countdown);\n let lastGpsTime: Date | null;\n const showResetConfirm = ref(false);\n const showRestartConfirm = ref(false);\n const smallVoltageLimit = 0.5;\n const lowVoltageLimitLiIon = 3.3;\n const highVoltageLimitLiIon = 4.2;\n let timer: number | null = null;\n\n const voltage = computed(() => {\n return alarm.alarmStatus &&\n alarm.alarmStatus.VSupplies &&\n alarm.alarmStatus.VSupplies[0] &&\n getVoltage(alarm.alarmStatus.VSupplies[0].V3);\n });\n\n const boatPower = computed(() => {\n if (\n alarm.alarmStatus !== null &&\n alarm.alarmStatus.VSupplies[0] !== null\n ) {\n const voltage = alarm.alarmStatus.VSupplies[0].V1;\n return voltage === \"NotPresent\" ? false : true;\n }\n return -1;\n });\n\n const gsmCloud = computed(() => {\n return true;\n });\n\n const reset = () => {\n app.processingLabel = \"Restoring MarineOne to factory settings...\";\n app.isProcessing = true;\n app.countdown = 10;\n alarm.reset();\n showResetConfirm.value = false;\n\n timer = window.setInterval(() => {\n app.countdown--;\n if (app.countdown <= 0) {\n clearInterval(timer!);\n app.isProcessing = false;\n window.location.reload();\n }\n }, 1000);\n };\n\n const restart = () => {\n app.processingLabel = \"Restarting MarineOne...\";\n app.isProcessing = true;\n app.countdown = 10;\n alarm.restart();\n showRestartConfirm.value = false;\n\n timer = window.setInterval(() => {\n app.countdown--;\n if (app.countdown <= 0) {\n clearInterval(timer!);\n app.isProcessing = false;\n window.location.reload();\n }\n }, 1000);\n };\n\n\n const initReset = () => {\n showResetConfirm.value = true;\n };\n const initRestart = () => {\n showRestartConfirm.value = true;\n };\n const isActive = computed(() => {\n return attrs.isActive == null ? false : true;\n });\n\n //const gpsAge = (loc: ILocationFromParticle | null): void => {\n // if (loc) {\n // lastGpsTime = lastGpsTime == null ? loc.location.lastHeard : null;\n // var date = parseISO(loc.location.lastHeard.toString());\n // // Update the count down every 1 second\n // const now = parseISO(new Date().toISOString());\n // // Find the distance between now and the count down date\n // const gpsTime = addMinutes(date, now.getTimezoneOffset() * -1);\n\n // const distance = differenceInMilliseconds(now, gpsTime);\n // // Time calculations for days, hours, minutes and seconds\n // var days = Math.floor(distance / (1000 * 60 * 60 * 24));\n // var hours = Math.floor(\n // (distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)\n // );\n // gpsAgeMinutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));\n // }\n //};\n const gpsConnected = computed(() => {\n return alarm.lastKnownLocation.location ? alarm.lastKnownLocation.location.gps_lock : false;\n //gpsAge(alarm.lastKnownLocation);\n //if (gpsAgeMinutes < 10) {\n // return true;\n //} else {\n // return false;\n //}\n });\n\n function getBatteryType(voltage: number): string {\n if (voltage === -1) return \"Unknown\";\n return \"3.7V\";\n }\n function isVoltageWarning(voltage: number): boolean {\n if (voltage === -1) return false;\n return voltage < lowVoltageLimitLiIon || voltage > highVoltageLimitLiIon;\n }\n\n function getVoltage(value: string | undefined): number {\n if (value === \"NotPresent\") return -1;\n const parsed = parseFloat(value !== undefined && value !== null ? value : \"-1\");\n return parsed < smallVoltageLimit ? -1 : parsed;\n }\n const voltageWarning = computed(() => isVoltageWarning(voltage.value));\n\n onBeforeUnmount(() => {\n if (timer !== null) {\n clearInterval(timer);\n }\n });\n\n return {\n showResetConfirm,\n showRestartConfirm,\n restart,\n reset,\n initReset,\n initRestart,\n voltage,\n boatPower,\n gpsConnected,\n gsmCloud,\n voltageWarning,\n getBatteryType,\n isActive\n };\n }\n});\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GatewaySensorItem.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GatewaySensorItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GatewaySensorItem.vue?vue&type=template&id=7f81c632&\"\nimport script from \"./GatewaySensorItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./GatewaySensorItem.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VChip } from 'vuetify/lib/components/VChip';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VExpansionPanel } from 'vuetify/lib/components/VExpansionPanel';\nimport { VExpansionPanelContent } from 'vuetify/lib/components/VExpansionPanel';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VChip,VCol,VExpansionPanel,VExpansionPanelContent,VImg,VRow})\n"],"sourceRoot":""}