{"version":3,"sources":["webpack:///./node_modules/vuetify/lib/components/VPicker/VPicker.js","webpack:///./node_modules/vuetify/lib/components/VPicker/index.js","webpack:///./node_modules/vuetify/lib/mixins/picker/index.js","webpack:///./node_modules/vuetify/lib/components/VDatePicker/util/pad.js","webpack:///./src/views/components/Dialogs/EnrollDialog.vue?e471","webpack:///./src/views/components/Dialogs/LoadingDialog.vue?80bf","webpack:///./src/views/components/Dialogs/LoadingDialog.vue","webpack:///./src/views/components/Dialogs/LoadingDialog.vue?377a","webpack:///./src/views/components/Dialogs/LoadingDialog.vue?ea5f","webpack:///./src/views/components/Dialogs/ShareDialog.vue?94aa","webpack:///./src/models/ShareJourneyViewModel.ts","webpack:///./src/views/components/Dialogs/ShareDialog.vue","webpack:///./src/views/components/Dialogs/ShareDialog.vue?54c1","webpack:///./src/views/components/Dialogs/ShareDialog.vue?51ec","webpack:///./src/views/components/Dialogs/EditNicknameDialog.vue?24cb","webpack:///./src/views/components/Dialogs/EditNicknameDialog.vue","webpack:///./src/views/components/Dialogs/EditNicknameDialog.vue?1fcf","webpack:///./src/views/components/Dialogs/EditNicknameDialog.vue?062b","webpack:///./src/views/components/Dialogs/ShareDialog.vue?5fa4","webpack:///./src/views/components/Dialogs/ConsumptionDialog.vue?a4cf","webpack:///./src/views/components/Dialogs/EnrollDialog.vue?d460","webpack:///./src/views/components/Dialogs/EnrollDialog.vue","webpack:///./src/views/components/Dialogs/EnrollDialog.vue?0bf8","webpack:///./src/views/components/Dialogs/EnrollDialog.vue?9a40","webpack:///./src/views/components/Dialogs/ConfirmDialog.vue?45bf","webpack:///./src/views/components/Dialogs/ConfirmDialog.vue","webpack:///./src/views/components/Dialogs/ConfirmDialog.vue?aa47","webpack:///./src/views/components/Dialogs/ConfirmDialog.vue?0a9e","webpack:///./node_modules/vuetify/lib/mixins/picker-button/index.js","webpack:///./src/views/components/Dialogs/TimerDialog.vue?5801","webpack:///./node_modules/vuetify/lib/components/VTimePicker/SelectingTimes.js","webpack:///./src/views/components/Dialogs/TimerDialog.vue","webpack:///./src/views/components/Dialogs/TimerDialog.vue?cfaa","webpack:///./node_modules/vuetify/lib/components/VTimePicker/VTimePickerTitle.js","webpack:///./node_modules/vuetify/lib/components/VTimePicker/VTimePickerClock.js","webpack:///./node_modules/vuetify/lib/components/VTimePicker/VTimePicker.js","webpack:///./src/views/components/Dialogs/TimerDialog.vue?d74e","webpack:///./src/views/components/Dialogs/ConsumptionDialog.vue?a35e","webpack:///./src/store/useConsumptionStatistic.ts","webpack:///./src/views/components/Dialogs/ConsumptionDialog.vue","webpack:///./src/views/components/Dialogs/ConsumptionDialog.vue?e844","webpack:///./src/views/components/Dialogs/ConsumptionDialog.vue?f48d"],"names":["mixins","extend","name","props","flat","Boolean","fullWidth","landscape","noTitle","transition","type","String","default","width","Number","computed","defaultTitleColor","this","isDark","color","methods","$createElement","setBackgroundColor","computedTitleColor","staticClass","class","$slots","title","themeClasses","style","undefined","genBodyTransition","actions","h","elevationClasses","genTitle","genBody","genActions","headerColor","$scopedSlots","save","cancel","children","genPickerTitle","push","body","genPickerBody","slot","genPickerActionsSlot","dark","elevation","light","padStart","string","targetLength","padString","length","repeat","slice","render","_vm","_h","_c","_self","staticStyle","attrs","model","value","callback","$$v","expression","_v","_s","message","staticRenderFns","defineComponent","component","VCard","VCardText","VDialog","VProgressLinear","shareModel","headline","text","imageUrl","ref","shareImageAspectRatio","on","updateAspectRatio","nativeOn","$event","close","apply","arguments","share","ShareJourneyViewModel","Object","setup","context","reactive","emit","shareImage","imgElement","image","naturalWidth","naturalHeight","watch","newModel","isOpen","console","log","$nextTick","scrollableContent","$el","querySelector","scrollTop","VBtn","VCardActions","VCardTitle","VCol","VDivider","VIcon","VImg","VRow","VSkeletonLoader","$set","_e","initSave","noconfirm","successOk","showSuccess","components","ConfirmDialog","getUserSettings","updateUserSettings","useUserSettings","then","VSpacer","VTextField","dialog","getName","deviceType","imgSrc","actionText","timeLeft","enrollInProgress","progress","enrollState","EnrollInProgress","StartEnroll","countdownInterval","startCountdown","setInterval","clearInterval","$watch","module","newValue","oldValue","startsWith","useDevice","VFlex","VLayout","VProgressCircular","zIndex","option","indexOf","_k","keyCode","key","directives","rawName","domProps","agree","options","opt","VToolbar","VToolbarTitle","prop","content","readonly","active","click","event","stopPropagation","$emit","trim","Array","isArray","SelectingTimes","open","initClose","timerSchedule","fromTime","scopedSlots","_u","fn","_g","_b","fromModel","toTime","$refs","from_dialog","toModel","to_dialog","initRemove","closeOk","cancelClose","showClose","update","add","get","remove","useTimerSchedule","CORE_ID","attachedDeviceTypeId","mondayActive","tuesdayActive","wednesdayActive","thursdayActive","fridayActive","saturdayActive","sundayActive","repeatActive","enabledActive","tempTimerSchedule","JSON","stringify","app","success","ampm","ampmReadonly","disabled","hour","minute","second","period","validator","useSeconds","selecting","displayedHour","pad","displayedMinute","titleContent","genPickerButton","Hour","Minute","displayedSecond","Second","$vuetify","lang","t","genTime","genAmPm","allowedValues","Function","double","format","val","max","required","min","scrollable","rotate","step","inputValue","isDragging","valueOnMouseDown","valueOnMouseUp","roundCount","degreesPerUnit","Math","PI","count","e","preventDefault","delta","sign","deltaY","displayedValue","isAllowed","isInner","innerRadiusScale","getTransform","innerHTML","scale","handScale","angle","transform","i","x","y","getPosition","left","top","rotateRadians","sin","degrees","cos","onDragMove","clock","getBoundingClientRect","innerWidth","innerClock","clientX","clientY","touches","center","coords","handAngle","round","insideClick","euclidean","checksCount","ceil","angleToValue","setMouseDownValue","p0","p1","dx","dy","sqrt","atan2","abs","data","mousedown","onMouseDown","mouseup","onMouseUp","mouseleave","touchstart","touchend","mousemove","touchmove","wheel","genHand","genValues","rangeHours24","rangeHours12am","rangeHours12pm","map","v","range60","selectingNames","1","2","3","allowedHours","allowedMinutes","allowedSeconds","includes","ampmInTitle","inputHour","inputMinute","inputSecond","lazyInputHour","lazyInputMinute","lazyInputSecond","selectingHour","selectingMinute","selectingSecond","cb","minHour","split","maxHour","isHourAllowed","isAllowedHourCb","minMinute","maxMinute","minTime","maxTime","time","isMinuteAllowed","isAllowedMinuteCb","minSecond","maxSecond","setInputData","$on","setPeriod","genValue","newHour","firstAllowed","emitValue","Date","getHours","getMinutes","getSeconds","toLowerCase","match","convert12to24","parseInt","isAmPm","emitChange","allowedFn","isAllowedSecondCb","range","first","find","convert24to12","size","input","onInput","change","onChange","setTextColor","genClockAmPm","genClock","genPicker","VCheckbox","VContainer","VSwitch","VTimePicker","toggle_chart","consumptionData","getConsumptionData","async","meterId","daysBack","defineHeaderAxios","Axios","result","status","catch","error","Chart","register","registerables","subtitle","chartCanvas","useConsumptionStatistic","chart","getChartConfig","interval","setupChart","ctx","datasets","label","fill","borderColor","tension","pointRadius","pointHitRadius","pointHoverRadius","plugins","display","align","position","padding","bottom","legend","parsing","xAxisKey","yAxisKey","scales","unit","displayFormats","day","week","month","quarter","year","canvas","rebuildChart","destroy","nextTick","onMounted","onUnmounted","VBtnToggle"],"mappings":"2OAWe,SAAAA,EAAA,MAAO,OAAW,OAAY,QAAWC,OAAO,CAC7DC,KAAM,WACNC,MAAO,CACLC,KAAMC,QACNC,UAAWD,QACXE,UAAWF,QACXG,QAASH,QACTI,WAAY,CACVC,KAAMC,OACNC,QAAS,mBAEXC,MAAO,CACLH,KAAM,CAACI,OAAQH,QACfC,QAAS,MAGbG,SAAU,CACR,qBACE,MAAMC,GAAoBC,KAAKC,SAAiBD,KAAKE,OAAS,WAC9D,OAAOF,KAAKE,OAASH,IAIzBI,QAAS,CACP,WACE,OAAOH,KAAKI,eAAe,MAAOJ,KAAKK,mBAAmBL,KAAKM,mBAAoB,CACjFC,YAAa,kBACbC,MAAO,CACL,6BAA8BR,KAAKV,aAEnCU,KAAKS,OAAOC,QAGlB,oBACE,OAAOV,KAAKI,eAAe,aAAc,CACvClB,MAAO,CACLD,KAAMe,KAAKR,aAEZQ,KAAKS,OAAOd,UAGjB,UACE,OAAOK,KAAKI,eAAe,MAAO,CAChCG,YAAa,iBACbC,MAAO,CACL,2BAA4BR,KAAKT,WAC9BS,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SAAS,IAGjBM,QAAS,CACLC,SAAU,OACVC,SAAU,aAEdC,OAAQ,CACJnK,EAAG,CACCvR,KAAM,OACNwW,KAAM,CACFmF,KAAMzK,EACN0K,eAAgB,CACZC,IAAK,SACLC,KAAM,SACNC,MAAO,WACPC,QAAS,WACTC,KAAM,UAIlBzK,EAAG,CACCvQ,MAAO,CACHga,SAAS,EACTxW,KAAM,YAOzB0V,EAAM+B,OAA6B/a,MAAMhB,MAAQ,QAGhDgc,EAAe/C,UACbe,IACAA,EAAMiC,UACNjC,EAAQ,YAENkC,iBACN/B,KAGErV,EAAQA,KACNkV,IACAA,EAAMiC,UACNjC,EAAQ,MAEZ3U,EAAQE,KAAK,SAAS,IAsB1B,OAnBA4W,eAAU,KACF7c,EAAMgE,OAAO6W,MAGrBiC,eAAY,KACJpC,IACAA,EAAMiC,UACNjC,EAAQ,QAIhBnU,eAAM,IAAMvG,EAAMgE,MAAQ8L,IAClBA,GAAK4M,MAGbnW,eAAM,IAAMiT,EAAaxV,MAAO,KAC5B0Y,MAGG,CACHlU,SACAhD,QACAgV,cACAhB,mBCrLoa,I,iICQ5a/U,EAAY,eACd,EACAjB,EACAe,GACA,EACA,KACA,WACA,MAIa,aAAAE,EAAiB,QAYhC,IAAkBA,EAAW,CAACwC,OAAA,KAAK8V,aAAA,KAAWrY,QAAA,KAAMwC,aAAA,OAAaC,WAAA,OAAWvC,UAAA,KAAQkF,UAAA,KAAQxB,UAAA","file":"js/settings.1bfa4f39.js","sourcesContent":["import \"../../../src/components/VPicker/VPicker.sass\";\nimport \"../../../src/components/VCard/VCard.sass\"; // Mixins\n\nimport Colorable from '../../mixins/colorable';\nimport Elevatable from '../../mixins/elevatable';\nimport Themeable from '../../mixins/themeable'; // Helpers\n\nimport { convertToUnit } from '../../util/helpers';\nimport mixins from '../../util/mixins';\n/* @vue/component */\n\nexport default mixins(Colorable, Elevatable, Themeable).extend({\n name: 'v-picker',\n props: {\n flat: Boolean,\n fullWidth: Boolean,\n landscape: Boolean,\n noTitle: Boolean,\n transition: {\n type: String,\n default: 'fade-transition'\n },\n width: {\n type: [Number, String],\n default: 290\n }\n },\n computed: {\n computedTitleColor() {\n const defaultTitleColor = this.isDark ? false : this.color || 'primary';\n return this.color || defaultTitleColor;\n }\n\n },\n methods: {\n genTitle() {\n return this.$createElement('div', this.setBackgroundColor(this.computedTitleColor, {\n staticClass: 'v-picker__title',\n class: {\n 'v-picker__title--landscape': this.landscape\n }\n }), this.$slots.title);\n },\n\n genBodyTransition() {\n return this.$createElement('transition', {\n props: {\n name: this.transition\n }\n }, this.$slots.default);\n },\n\n genBody() {\n return this.$createElement('div', {\n staticClass: 'v-picker__body',\n class: {\n 'v-picker__body--no-title': this.noTitle,\n ...this.themeClasses\n },\n style: this.fullWidth ? undefined : {\n width: convertToUnit(this.width)\n }\n }, [this.genBodyTransition()]);\n },\n\n genActions() {\n return this.$createElement('div', {\n staticClass: 'v-picker__actions v-card__actions',\n class: {\n 'v-picker__actions--no-title': this.noTitle\n }\n }, this.$slots.actions);\n }\n\n },\n\n render(h) {\n return h('div', {\n staticClass: 'v-picker v-card',\n class: {\n 'v-picker--flat': this.flat,\n 'v-picker--landscape': this.landscape,\n 'v-picker--full-width': this.fullWidth,\n ...this.themeClasses,\n ...this.elevationClasses\n }\n }, [this.$slots.title ? this.genTitle() : null, this.genBody(), this.$slots.actions ? this.genActions() : null]);\n }\n\n});\n//# sourceMappingURL=VPicker.js.map","import VPicker from './VPicker';\nexport { VPicker };\nexport default VPicker;\n//# sourceMappingURL=index.js.map","// Components\nimport VPicker from '../../components/VPicker'; // Mixins\n\nimport Colorable from '../colorable';\nimport Elevatable from '../../mixins/elevatable';\nimport Themeable from '../themeable'; // Utils\n\nimport mixins from '../../util/mixins';\nexport default mixins(Colorable, Elevatable, Themeable\n/* @vue/component */\n).extend({\n name: 'picker',\n props: {\n flat: Boolean,\n fullWidth: Boolean,\n headerColor: String,\n landscape: Boolean,\n noTitle: Boolean,\n width: {\n type: [Number, String],\n default: 290\n }\n },\n methods: {\n genPickerTitle() {\n return null;\n },\n\n genPickerBody() {\n return null;\n },\n\n genPickerActionsSlot() {\n return this.$scopedSlots.default ? this.$scopedSlots.default({\n save: this.save,\n cancel: this.cancel\n }) : this.$slots.default;\n },\n\n genPicker(staticClass) {\n const children = [];\n\n if (!this.noTitle) {\n const title = this.genPickerTitle();\n title && children.push(title);\n }\n\n const body = this.genPickerBody();\n body && children.push(body);\n children.push(this.$createElement('template', {\n slot: 'actions'\n }, [this.genPickerActionsSlot()]));\n return this.$createElement(VPicker, {\n staticClass,\n props: {\n color: this.headerColor || this.color,\n dark: this.dark,\n elevation: this.elevation,\n flat: this.flat,\n fullWidth: this.fullWidth,\n landscape: this.landscape,\n light: this.light,\n width: this.width,\n noTitle: this.noTitle\n }\n }, children);\n }\n\n }\n});\n//# sourceMappingURL=index.js.map","const padStart = (string, targetLength, padString) => {\n targetLength = targetLength >> 0;\n string = String(string);\n padString = String(padString);\n\n if (string.length > targetLength) {\n return String(string);\n }\n\n targetLength = targetLength - string.length;\n\n if (targetLength > padString.length) {\n padString += padString.repeat(targetLength / padString.length);\n }\n\n return padString.slice(0, targetLength) + String(string);\n};\n\nexport default ((n, length = 2) => padStart(n, length, '0'));\n//# sourceMappingURL=pad.js.map","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EnrollDialog.vue?vue&type=style&index=0&id=2db6ccb8&prod&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{staticStyle:{\"{ zIndex\":\"9999 }\"},attrs:{\"overlay-color\":\"black\",\"overlay-opacity\":\"0.99\",\"persistent\":\"\",\"width\":\"80%\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('v-card',{attrs:{\"color\":\"indigo darken-4\",\"dark\":\"\"}},[_c('v-card-text',{staticClass:\"openSans\"},[_vm._v(\" \"+_vm._s(_vm.message)+\" \"),_c('v-progress-linear',{staticClass:\"mb-0\",attrs:{\"indeterminate\":\"\",\"color\":\"#00aa87\"}})],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\nimport { defineComponent } from \"@vue/composition-api\";\n\nexport default defineComponent({\n name: \"LoadingDialog\",\n props: {\n message: { type: String, default: \"LOADING ...\" },\n value: { type: Boolean, default: false }\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!./LoadingDialog.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!./LoadingDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LoadingDialog.vue?vue&type=template&id=51211a58&\"\nimport script from \"./LoadingDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./LoadingDialog.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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\ninstallComponents(component, {VCard,VCardText,VDialog,VProgressLinear})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"persistent\":\"\",\"max-height\":\"90%\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('v-card',{staticStyle:{\"background-color\":\"#FFFFFF\"},attrs:{\"loading\":!_vm.shareModel}},[_c('v-card-title',[_c('span',{staticClass:\"headline\"},[_vm._v(\" \"+_vm._s(_vm.shareModel.headline)+\" \")])]),_c('v-divider'),_c('v-card-text',{staticClass:\"text-center px-6 py-4 scrollable-content\"},[_vm._v(\" \"+_vm._s(_vm.shareModel.text)+\" \"),(!_vm.shareModel.imageUrl)?_c('v-skeleton-loader',{attrs:{\"height\":\"150px\",\"type\":\"image\"}}):_c('v-img',{ref:\"shareImage\",attrs:{\"src\":_vm.shareModel.imageUrl,\"aspect-ratio\":_vm.shareImageAspectRatio},on:{\"load\":_vm.updateAspectRatio}})],1),_c('v-divider'),_c('v-card-actions',[_c('v-row',[_c('v-col',{staticClass:\"text-left px-5 py-4\",attrs:{\"cols\":\"6\"}},[_c('v-btn',{attrs:{\"color\":\"error\"},nativeOn:{\"click\":function($event){return _vm.close.apply(null, arguments)}}},[_vm._v(\" RETURN \"),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-arrow-u-left-top \")])],1)],1),_c('v-col',{staticClass:\"text-right px-5 py-4\",attrs:{\"cols\":\"6\"}},[_c('v-btn',{attrs:{\"color\":\"success\"},nativeOn:{\"click\":function($event){return _vm.share.apply(null, arguments)}}},[_vm._v(\" SHARE \"),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-share-variant-outline \")])],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default class ShareJourneyViewModel {\n public headline: string;\n public text: string;\n public imageUrl: string;\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 { defineComponent, reactive, watch, ref } from \"@vue/composition-api\";\nimport ShareJourneyViewModel from \"@/models/ShareJourneyViewModel\";\n\nexport default defineComponent({\n name: \"ShareDialog\",\n props: {\n value: { type: Boolean, default: false },\n model: { type: Object, default: null }\n },\n setup(props, context) {\n const shareModel = reactive(new ShareJourneyViewModel());\n const shareImageAspectRatio = ref(1); // Default to 1:1 aspect ratio\n\n if (props.model) {\n shareModel.headline = props.model.headline || '';\n shareModel.text = props.model.text || '';\n shareModel.imageUrl = props.model.imageUrl || '';\n }\n\n const share = () => {\n context.emit(\"input\", false);\n context.emit(\"OnShare\");\n };\n\n const close = () => {\n context.emit(\"input\", false);\n context.emit(\"OnCancel\");\n };\n\n const shareImage = ref(null);\n\n const updateAspectRatio = () => {\n const imgElement = shareImage.value.image;\n\n if (imgElement && imgElement.naturalWidth && imgElement.naturalHeight) {\n shareImageAspectRatio.value = imgElement.naturalWidth / imgElement.naturalHeight;\n } \n };\n\n watch(() => props.model, (newModel) => {\n if (newModel) {\n if (newModel.headline) shareModel.headline = newModel.headline;\n if (newModel.text) shareModel.text = newModel.text;\n if (newModel.imageUrl) shareModel.imageUrl = newModel.imageUrl;\n }\n });\n\n\n return {\n close,\n shareModel,\n share,\n updateAspectRatio,\n shareImageAspectRatio,\n shareImage\n };\n },\n watch: {\n value(isOpen) {\n if (isOpen) {\n console.log('Share dialog is open');\n // Dialog is being opened, scroll the content to the top of the picture\n this.$nextTick(() => {\n const scrollableContent = this.$el.querySelector('.scrollable-content');\n if (scrollableContent) {\n console.log('Scrolling to top');\n scrollableContent.scrollTop = 0;\n }\n });\n }\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!./ShareDialog.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!./ShareDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ShareDialog.vue?vue&type=template&id=2967adbe&scoped=true&\"\nimport script from \"./ShareDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./ShareDialog.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ShareDialog.vue?vue&type=style&index=0&id=2967adbe&prod&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 \"2967adbe\",\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 { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSkeletonLoader } from 'vuetify/lib/components/VSkeletonLoader';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VCol,VDialog,VDivider,VIcon,VImg,VRow,VSkeletonLoader})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"persistent\":\"\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('v-card',{staticClass:\"backgroundWhite\",attrs:{\"loading\":!_vm.model}},[_c('v-card-title',{staticClass:\"headline text-center\"},[_c('v-icon',{staticClass:\"mr-4\",attrs:{\"large\":\"\",\"left\":\"\"},on:{\"click\":_vm.close}},[_vm._v(\"mdi-arrow-u-left-top\")]),_vm._v(\" Set digital output nickname \")],1),_c('v-card-content',[(_vm.model)?_c('v-text-field',{staticClass:\"px-4\",attrs:{\"counter\":30,\"label\":\"Digital Output Nickname\",\"required\":\"\"},model:{value:(_vm.model.digitalOutputNickname),callback:function ($$v) {_vm.$set(_vm.model, \"digitalOutputNickname\", $$v)},expression:\"model.digitalOutputNickname\"}}):_vm._e()],1),_c('v-card-actions',{staticClass:\"pt-3\"},[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"success\"},on:{\"click\":_vm.initSave}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" mdi-check \")]),_vm._v(\" SAVE \")],1)],1),_c('ConfirmDialog',{attrs:{\"options\":{ noconfirm: true },\"title\":\"Success\",\"message\":\"Changes saved successfully.\"},on:{\"OnOk\":_vm.successOk},model:{value:(_vm.showSuccess),callback:function ($$v) {_vm.showSuccess=$$v},expression:\"showSuccess\"}})],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\nimport { defineComponent, ref, computed } from \"@vue/composition-api\";\nimport useUserSettings from \"@/store/useUserSettings\";\nimport UserSettingsViewModel from \"@/models/UserSettingsViewModel\";\n\nexport default defineComponent({\n name: \"EditNicknameDialog\",\n components: {\n ConfirmDialog: () =>\n import(/* webpackChunkName: \"settings\" */ \"../Dialogs/ConfirmDialog.vue\")\n },\n props: {\n value: { type: Boolean, default: false }\n },\n setup(props, context) {\n const { getUserSettings, updateUserSettings } = useUserSettings();\n const showSuccess = ref(false);\n const model = ref();\n\n const initSave = () => {\n updateUserSettings(model.value).then(() => {\n showSuccess.value = true;\n close();\n context.emit(\"input\", false);\n context.emit(\"OnSaveNickname\", model.value);\n });\n };\n\n const close = () => {\n context.emit(\"input\", false);\n context.emit(\"OnCancel\");\n };\n\n getUserSettings().then((value: UserSettingsViewModel) => {\n model.value = value;\n });\n\n return {\n close,\n model,\n showSuccess,\n initSave,\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!./EditNicknameDialog.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!./EditNicknameDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./EditNicknameDialog.vue?vue&type=template&id=02ecd3bc&\"\nimport script from \"./EditNicknameDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./EditNicknameDialog.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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardTitle,VDialog,VIcon,VSpacer,VTextField})\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ShareDialog.vue?vue&type=style&index=0&id=2967adbe&prod&lang=scss&scoped=true&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConsumptionDialog.vue?vue&type=style&index=0&id=92607798&prod&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"persistent\":\"\",\"max-width\":\"95%\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',{staticClass:\"backgroundWhite\"},[_c('v-card-title',{staticClass:\"headline justify-center\"},[_c('span',{staticClass:\"text-center\"},[_vm._v(\" Pairing \"+_vm._s(_vm.getName(_vm.deviceType)))])]),_c('div',{staticClass:\"pt-2\"},[_c('v-layout',{attrs:{\"row\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"justify-center\":\"\",\"row\":\"\",\"align-center\":\"\"}},[_c('div',{staticClass:\"mb-2\"},[_c('v-img',{attrs:{\"position\":\"center\",\"max-width\":\"100\",\"max-height\":\"150px\",\"Contain\":\"\",\"src\":_vm.imgSrc}})],1)]),_c('v-flex',{staticClass:\"mt-2 mb-2\",attrs:{\"xs12\":\"\",\"justify-center\":\"\",\"row\":\"\",\"align-center\":\"\"}},[(_vm.progress)?[_c('v-progress-circular',{attrs:{\"size\":50,\"color\":\"primary\",\"indeterminate\":\"\"}})]:_vm._e()],2),_c('v-flex',{attrs:{\"xs12\":\"\",\"justify-center\":\"\",\"row\":\"\",\"align-center\":\"\"}},[_c('span',[_vm._v(\" \"+_vm._s(_vm.actionText)+\" \")])]),(_vm.enrollInProgress)?_c('v-flex',{attrs:{\"xs12\":\"\",\"justify-center\":\"\",\"row\":\"\",\"align-center\":\"\"}},[_c('span',[_c('b',[_vm._v(_vm._s(_vm.timeLeft))]),_vm._v(\"s remaining \")])]):_vm._e()],1)],1),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"green darken-1\",\"text\":\"\"},on:{\"click\":_vm.close}},[_vm._v(\" Cancel \")])],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\nimport { defineComponent, computed, ref, watch } from \"@vue/composition-api\";\nimport { enrollState } from \"@/store\";\nimport useDevice from \"@/utilities/useDevice\";\nexport default defineComponent({\n props: {\n imgSrc: { type: String },\n value: { type: Boolean, default: false },\n deviceType: { type: Number, default: 0 }\n },\n setup(props, context) {\n const actionText = ref(\"Preparing enrollment..\");\n const timeLeft = ref(60);\n const enrollInProgress = ref(false);\n const progress = computed(() => !enrollState.EnrollInProgress);\n const dialog = computed(() => {\n return props.value;\n });\n const close = () => {\n actionText.value = \"Preparing enrollment..\";\n timeLeft.value = 60;\n context.emit(\"input\", false);\n };\n watch(\n () => props.value,\n () => {\n if (props.value) {\n enrollState.StartEnroll(props.deviceType);\n } else {\n enrollInProgress.value = false;\n actionText.value = \"Preparing enrollment..\";\n timeLeft.value = 60;\n }\n }\n );\n\n let countdownInterval = null;\n\n function startCountdown() {\n timeLeft.value = 60; // set initial time left to 60 seconds\n actionText.value = \"Ready to enroll!\";\n enrollInProgress.value = true;\n\n countdownInterval = setInterval(() => {\n timeLeft.value--;\n if (timeLeft.value <= 0) {\n clearInterval(countdownInterval);\n countdownInterval = null;\n close();\n } else {\n actionText.value = \"Ready to enroll!\";\n }\n }, 1000);\n }\n\n enrollState.$watch(\n module => module.EnrollInProgress,\n (newValue, oldValue) => {\n if (newValue) {\n if (!countdownInterval) {\n startCountdown();\n }\n } else {\n if (actionText.value.startsWith(\"Ready to enroll!\") && !newValue) {\n clearInterval(countdownInterval);\n countdownInterval = null;\n close();\n }\n }\n }\n );\n\n\n return {\n dialog,\n close,\n actionText,\n timeLeft,\n progress,\n enrollInProgress,\n ...useDevice()\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!./EnrollDialog.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!./EnrollDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./EnrollDialog.vue?vue&type=template&id=2db6ccb8&scoped=true&\"\nimport script from \"./EnrollDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./EnrollDialog.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./EnrollDialog.vue?vue&type=style&index=0&id=2db6ccb8&prod&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 \"2db6ccb8\",\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 { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VFlex } from 'vuetify/lib/components/VGrid';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VLayout } from 'vuetify/lib/components/VGrid';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardTitle,VDialog,VFlex,VImg,VLayout,VProgressCircular,VSpacer})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{style:({ zIndex: _vm.option.zIndex }),attrs:{\"max-width\":_vm.option.width},on:{\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }return _vm.cancel.apply(null, arguments)}},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('v-card',{staticClass:\"backgroundWhite\"},[_c('v-toolbar',{attrs:{\"color\":_vm.option.color,\"dense\":\"\",\"flat\":\"\"}},[_c('v-toolbar-title',{staticClass:\"text-body-2 font-weight-bold grey--text\"},[_vm._v(\" \"+_vm._s(_vm.title)+\" \")])],1),_c('v-card-text',{directives:[{name:\"show\",rawName:\"v-show\",value:(!!_vm.message),expression:\"!!message\"}],staticClass:\"pa-4 black--text\",domProps:{\"innerHTML\":_vm._s(_vm.message)}}),_c('v-card-actions',{staticClass:\"pt-3\"},[_c('v-spacer'),(!_vm.option.noconfirm)?_c('v-btn',{staticClass:\"body-2 font-weight-bold\",attrs:{\"color\":\"grey\",\"text\":\"\"},nativeOn:{\"click\":function($event){return _vm.cancel.apply(null, arguments)}}},[_vm._v(\"Cancel\")]):_vm._e(),_c('v-btn',{staticClass:\"body-2 font-weight-bold\",attrs:{\"color\":\"primary\",\"outlined\":\"\"},nativeOn:{\"click\":function($event){return _vm.agree.apply(null, arguments)}}},[_vm._v(\"OK\")])],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\nimport { defineComponent, reactive } from \"@vue/composition-api\";\n\nexport default defineComponent({\n name: \"ConfirmDialog\",\n props: {\n message: { type: String, default: \"\" },\n title: { type: String, default: \"Confirm\" },\n options: { type: Object, default: null },\n value: { type: Boolean, default: false }\n },\n setup(props, context) {\n const option = reactive({\n color: \"grey lighten-3\",\n width: 400,\n zIndex: 200,\n noconfirm: false\n });\n if (props.options) {\n const opt = props.options;\n if (opt.color) {\n option.color = opt.color;\n }\n if (opt.width) {\n option.width = opt.width;\n }\n if (opt.zIndex) {\n option.zIndex = opt.zIndex;\n }\n if (opt.noconfirm) {\n option.noconfirm = opt.noconfirm;\n }\n }\n const agree = () => {\n context.emit(\"input\", false);\n context.emit(\"OnOk\");\n };\n const cancel = () => {\n context.emit(\"input\", false);\n context.emit(\"OnCancel\");\n };\n return {\n agree,\n cancel,\n option\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!./ConfirmDialog.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!./ConfirmDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ConfirmDialog.vue?vue&type=template&id=edcbbfda&\"\nimport script from \"./ConfirmDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./ConfirmDialog.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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VDialog,VSpacer,VToolbar,VToolbarTitle})\n","// Mixins\nimport Colorable from '../colorable'; // Utilities\n\nimport mixins from '../../util/mixins';\nimport { kebabCase } from '../../util/helpers';\n/* @vue/component */\n\nexport default mixins(Colorable).extend({\n methods: {\n genPickerButton(prop, value, content, readonly = false, staticClass = '') {\n const active = this[prop] === value;\n\n const click = event => {\n event.stopPropagation();\n this.$emit(`update:${kebabCase(prop)}`, value);\n };\n\n return this.$createElement('div', {\n staticClass: `v-picker__title__btn ${staticClass}`.trim(),\n class: {\n 'v-picker__title__btn--active': active,\n 'v-picker__title__btn--readonly': readonly\n },\n on: active || readonly ? undefined : {\n click\n }\n }, Array.isArray(content) ? content : [content]);\n }\n\n }\n});\n//# sourceMappingURL=index.js.map","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"persistent\":\"\"},model:{value:(_vm.open),callback:function ($$v) {_vm.open=$$v},expression:\"open\"}},[_c('v-card',{staticClass:\"backgroundWhite\"},[_c('v-card-title',{staticClass:\"headline text-center\"},[_c('v-icon',{staticClass:\"mr-4\",attrs:{\"large\":\"\",\"left\":\"\"},on:{\"click\":_vm.initClose}},[_vm._v(\"mdi-arrow-u-left-top\")]),_vm._v(\" Set timer schedule \")],1),_c('v-card-actions',{staticClass:\"pt-3 text-center\"},[_c('v-container',[_c('v-row',{staticClass:\"mb-0\",attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-checkbox',{staticClass:\"label_under\",attrs:{\"ripple\":false,\"color\":\"#81b13e\"},model:{value:(_vm.timerSchedule.mondayActive),callback:function ($$v) {_vm.$set(_vm.timerSchedule, \"mondayActive\", $$v)},expression:\"timerSchedule.mondayActive\"}})],1)]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-checkbox',{staticClass:\"label_under\",attrs:{\"ripple\":false,\"color\":\"#81b13e\"},model:{value:(_vm.timerSchedule.tuesdayActive),callback:function ($$v) {_vm.$set(_vm.timerSchedule, \"tuesdayActive\", $$v)},expression:\"timerSchedule.tuesdayActive\"}})],1)]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-checkbox',{staticClass:\"label_under\",attrs:{\"ripple\":false,\"color\":\"#81b13e\"},model:{value:(_vm.timerSchedule.wednesdayActive),callback:function ($$v) {_vm.$set(_vm.timerSchedule, \"wednesdayActive\", $$v)},expression:\"timerSchedule.wednesdayActive\"}})],1)]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-checkbox',{staticClass:\"label_under\",attrs:{\"ripple\":false,\"color\":\"#81b13e\"},model:{value:(_vm.timerSchedule.thursdayActive),callback:function ($$v) {_vm.$set(_vm.timerSchedule, \"thursdayActive\", $$v)},expression:\"timerSchedule.thursdayActive\"}})],1)]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-checkbox',{staticClass:\"label_under\",attrs:{\"ripple\":false,\"color\":\"#81b13e\"},model:{value:(_vm.timerSchedule.fridayActive),callback:function ($$v) {_vm.$set(_vm.timerSchedule, \"fridayActive\", $$v)},expression:\"timerSchedule.fridayActive\"}})],1)]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-checkbox',{staticClass:\"label_under\",attrs:{\"ripple\":false,\"color\":\"#81b13e\"},model:{value:(_vm.timerSchedule.saturdayActive),callback:function ($$v) {_vm.$set(_vm.timerSchedule, \"saturdayActive\", $$v)},expression:\"timerSchedule.saturdayActive\"}})],1)]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-checkbox',{staticClass:\"label_under\",attrs:{\"ripple\":false,\"color\":\"#81b13e\"},model:{value:(_vm.timerSchedule.sundayActive),callback:function ($$v) {_vm.$set(_vm.timerSchedule, \"sundayActive\", $$v)},expression:\"timerSchedule.sundayActive\"}})],1)])],1),_c('v-row',{staticClass:\"mt-0 pb-2\",attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"text-center\"},[_vm._v(\"Mon\")])]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"text-center\"},[_vm._v(\"Tue\")])]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"text-center\"},[_vm._v(\"Wed\")])]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"text-center\"},[_vm._v(\"Thu\")])]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"text-center\"},[_vm._v(\"Fri\")])]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"text-center\"},[_vm._v(\"Sat\")])]),_c('v-col',{staticClass:\"custom7cols pa-0\"},[_c('div',{staticClass:\"text-center\"},[_vm._v(\"Sun\")])])],1),_c('v-row',{attrs:{\"align\":\"center\",\"justify\":\"center\"}},[_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"4\"}},[_c('v-dialog',{ref:\"from_dialog\",attrs:{\"overlay-color\":\"white\",\"overlay-opacity\":\"0.95\",\"return-value\":_vm.fromTime,\"persistent\":\"\",\"width\":\"290px\"},on:{\"update:returnValue\":function($event){_vm.fromTime=$event},\"update:return-value\":function($event){_vm.fromTime=$event}},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-text-field',_vm._g(_vm._b({attrs:{\"label\":\"Start\",\"prepend-icon\":\"mdi-clock-time-four-outline\",\"readonly\":\"\"},model:{value:(_vm.fromTime),callback:function ($$v) {_vm.fromTime=$$v},expression:\"fromTime\"}},'v-text-field',attrs,false),on))]}}]),model:{value:(_vm.fromModel),callback:function ($$v) {_vm.fromModel=$$v},expression:\"fromModel\"}},[(_vm.fromModel)?_c('v-time-picker',{attrs:{\"scrollable\":\"\",\"max\":_vm.toTime,\"format\":\"24hr\",\"full-width\":\"\"},model:{value:(_vm.fromTime),callback:function ($$v) {_vm.fromTime=$$v},expression:\"fromTime\"}},[_c('v-spacer'),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){_vm.fromModel = false}}},[_vm._v(\" Cancel \")]),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.$refs.from_dialog.save(_vm.fromTime)}}},[_vm._v(\" OK \")])],1):_vm._e()],1)],1),_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"4\"}},[_c('v-dialog',{ref:\"to_dialog\",attrs:{\"overlay-color\":\"white\",\"overlay-opacity\":\"0.95\",\"return-value\":_vm.toTime,\"persistent\":\"\",\"width\":\"290px\"},on:{\"update:returnValue\":function($event){_vm.toTime=$event},\"update:return-value\":function($event){_vm.toTime=$event}},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-text-field',_vm._g(_vm._b({attrs:{\"label\":\"End\",\"prepend-icon\":\"mdi-clock-time-four-outline\",\"readonly\":\"\"},model:{value:(_vm.toTime),callback:function ($$v) {_vm.toTime=$$v},expression:\"toTime\"}},'v-text-field',attrs,false),on))]}}]),model:{value:(_vm.toModel),callback:function ($$v) {_vm.toModel=$$v},expression:\"toModel\"}},[(_vm.toModel)?_c('v-time-picker',{attrs:{\"scrollable\":\"\",\"min\":_vm.fromTime,\"format\":\"24hr\",\"full-width\":\"\"},model:{value:(_vm.toTime),callback:function ($$v) {_vm.toTime=$$v},expression:\"toTime\"}},[_c('v-spacer'),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){_vm.toModel = false}}},[_vm._v(\" Cancel \")]),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.$refs.to_dialog.save(_vm.toTime)}}},[_vm._v(\" OK \")])],1):_vm._e()],1)],1),_c('v-col',{staticClass:\"py-0 pt-3\",attrs:{\"cols\":\"4\"}},[_c('v-checkbox',{staticClass:\"mt-0\",attrs:{\"label\":'Repeat',\"ripple\":false,\"color\":\"#81b13e\"},model:{value:(_vm.timerSchedule.repeatActive),callback:function ($$v) {_vm.$set(_vm.timerSchedule, \"repeatActive\", $$v)},expression:\"timerSchedule.repeatActive\"}})],1)],1),_c('v-row',{staticClass:\"pb-2\"},[_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"4\"}},[_c('v-btn',{attrs:{\"color\":\"error\"},on:{\"click\":_vm.initRemove}},[_vm._v(\" CLEAR \"),_c('v-icon',{attrs:{\"right\":\"\"}},[_vm._v(\" mdi-delete \")])],1)],1),_c('v-col',{staticClass:\"pa-0 pl-4\",attrs:{\"cols\":\"4\"}},[_c('v-switch',{staticClass:\"mt-0\",attrs:{\"label\":'Enable',\"color\":'#81b13e'},model:{value:(_vm.timerSchedule.enabledActive),callback:function ($$v) {_vm.$set(_vm.timerSchedule, \"enabledActive\", $$v)},expression:\"timerSchedule.enabledActive\"}})],1),_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"4\"}},[_c('v-btn',{attrs:{\"color\":\"success\"},on:{\"click\":_vm.initSave}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" mdi-check \")]),_vm._v(\" SAVE \")],1)],1)],1)],1)],1),_c('ConfirmDialog',{attrs:{\"title\":\"Close without saving\",\"message\":\"Are you sure you want to close this window without saving your changes?\"},on:{\"OnOk\":_vm.closeOk,\"OnCancel\":_vm.cancelClose},model:{value:(_vm.showClose),callback:function ($$v) {_vm.showClose=$$v},expression:\"showClose\"}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var SelectingTimes;\n\n(function (SelectingTimes) {\n SelectingTimes[SelectingTimes[\"Hour\"] = 1] = \"Hour\";\n SelectingTimes[SelectingTimes[\"Minute\"] = 2] = \"Minute\";\n SelectingTimes[SelectingTimes[\"Second\"] = 3] = \"Second\";\n})(SelectingTimes || (SelectingTimes = {}));\n\nexport { SelectingTimes };\n//# sourceMappingURL=SelectingTimes.js.map","\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\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n import { defineComponent, ref, watch, computed } from \"@vue/composition-api\";\n import useTimerSchedule from \"@/store/useTimerSchedule\";\n import TimerScheduleViewModel from \"@/models/TimerScheduleViewModel\";\n import _ from \"lodash\";\n import { app } from \"@/store\";\nimport ca from \"date-fns/esm/locale/ca/index\";\n\n\n export default defineComponent({\n components: {\n ConfirmDialog: () =>\n import(/* webpackChunkName: \"settings\" */ \"../Dialogs/ConfirmDialog.vue\")\n },\n props: {\n value: { type: Boolean, default: false },\n deviceType: { type: Number, default: 2 }\n },\n setup(props, context) {\n const { update, add, get, remove } = useTimerSchedule();\n //const timerSchedule = ref();\n \n const timerSchedule = ref({\n CORE_ID: null,\n attachedDeviceTypeId: null,\n mondayActive: false,\n tuesdayActive: false,\n wednesdayActive: false,\n thursdayActive: false,\n fridayActive: false,\n saturdayActive: false,\n sundayActive: false,\n repeatActive: false,\n enabledActive: false,\n fromTime: null,\n toTime: null,\n });\n\n const tempTimerSchedule = ref({\n CORE_ID: null,\n attachedDeviceTypeId: null,\n mondayActive: false,\n tuesdayActive: false,\n wednesdayActive: false,\n thursdayActive: false,\n fridayActive: false,\n saturdayActive: false,\n sundayActive: false,\n repeatActive: false,\n enabledActive: false,\n fromTime: null,\n toTime: null,\n });\n\n const open = computed(() => {\n return props.value;\n });\n\n const close = () => {\n context.emit(\"input\", false);\n };\n\n const initClose = () => {\n get(props.deviceType).then((model: TimerScheduleViewModel) => {\n tempTimerSchedule.value = model; // save the current state\n // Check if the model has changed\n if (JSON.stringify(model) == JSON.stringify(timerSchedule.value)) {\n console.log(\"No changes\");\n close();\n } else {\n console.log(\"Changes\");\n showClose.value = true;\n } \n });\n };\n\n const closeOk = () => {\n console.log(\"Ok\");\n timerSchedule.value = tempTimerSchedule.value;\n fromTime.value = tempTimerSchedule.value.fromTime;\n toTime.value = tempTimerSchedule.value.toTime;\n showClose.value = false;\n close();\n };\n\n const cancelClose = () => {\n console.log(\"Cancel\");\n showClose.value = false;\n };\n\n const fromTime = ref(null);\n const toTime = ref(null);\n const fromModel = ref(false);\n const toModel = ref(false);\n const showClose = ref(false);\n\n get(props.deviceType).then((model: TimerScheduleViewModel) => {\n timerSchedule.value = model;\n fromTime.value = model.fromTime;\n toTime.value = model.toTime;\n });\n\n const initSave = () => {\n timerSchedule.value.toTime = toTime.value;\n timerSchedule.value.fromTime = fromTime.value;\n update(timerSchedule.value).then(() => {\n app.success = \"Timer schedule updated successfully.\";\n close();\n })\n };\n\n const initRemove = () => {\n remove(props.deviceType).then(() => {\n app.success = \"Timer schedule cleared successfully.\";\n close();\n get(props.deviceType).then((model: TimerScheduleViewModel) => {\n timerSchedule.value = model;\n fromTime.value = model.fromTime;\n toTime.value = model.toTime;\n });\n })\n };\n\n return {\n open,\n close,\n initClose,\n showClose,\n closeOk,\n cancelClose,\n initSave,\n initRemove,\n timerSchedule,\n fromTime,\n toTime,\n fromModel,\n toModel,\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!./TimerDialog.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!./TimerDialog.vue?vue&type=script&lang=ts&\"","import \"../../../src/components/VTimePicker/VTimePickerTitle.sass\"; // Mixins\n\nimport PickerButton from '../../mixins/picker-button'; // Utils\n\nimport { pad } from '../VDatePicker/util';\nimport mixins from '../../util/mixins';\nimport { SelectingTimes } from './SelectingTimes';\nexport default mixins(PickerButton\n/* @vue/component */\n).extend({\n name: 'v-time-picker-title',\n props: {\n ampm: Boolean,\n ampmReadonly: Boolean,\n disabled: Boolean,\n hour: Number,\n minute: Number,\n second: Number,\n period: {\n type: String,\n validator: period => period === 'am' || period === 'pm'\n },\n readonly: Boolean,\n useSeconds: Boolean,\n selecting: Number\n },\n methods: {\n genTime() {\n let hour = this.hour;\n\n if (this.ampm) {\n hour = hour ? (hour - 1) % 12 + 1 : 12;\n }\n\n const displayedHour = this.hour == null ? '--' : this.ampm ? String(hour) : pad(hour);\n const displayedMinute = this.minute == null ? '--' : pad(this.minute);\n const titleContent = [this.genPickerButton('selecting', SelectingTimes.Hour, displayedHour, this.disabled), this.$createElement('span', ':'), this.genPickerButton('selecting', SelectingTimes.Minute, displayedMinute, this.disabled)];\n\n if (this.useSeconds) {\n const displayedSecond = this.second == null ? '--' : pad(this.second);\n titleContent.push(this.$createElement('span', ':'));\n titleContent.push(this.genPickerButton('selecting', SelectingTimes.Second, displayedSecond, this.disabled));\n }\n\n return this.$createElement('div', {\n class: 'v-time-picker-title__time'\n }, titleContent);\n },\n\n genAmPm() {\n return this.$createElement('div', {\n staticClass: 'v-time-picker-title__ampm',\n class: {\n 'v-time-picker-title__ampm--readonly': this.ampmReadonly\n }\n }, [!this.ampmReadonly || this.period === 'am' ? this.genPickerButton('period', 'am', this.$vuetify.lang.t('$vuetify.timePicker.am'), this.disabled || this.readonly) : null, !this.ampmReadonly || this.period === 'pm' ? this.genPickerButton('period', 'pm', this.$vuetify.lang.t('$vuetify.timePicker.pm'), this.disabled || this.readonly) : null]);\n }\n\n },\n\n render(h) {\n const children = [this.genTime()];\n this.ampm && children.push(this.genAmPm());\n return h('div', {\n staticClass: 'v-time-picker-title'\n }, children);\n }\n\n});\n//# sourceMappingURL=VTimePickerTitle.js.map","import \"../../../src/components/VTimePicker/VTimePickerClock.sass\"; // Mixins\n\nimport Colorable from '../../mixins/colorable';\nimport Themeable from '../../mixins/themeable'; // Types\n\nimport mixins from '../../util/mixins';\nexport default mixins(Colorable, Themeable\n/* @vue/component */\n).extend({\n name: 'v-time-picker-clock',\n props: {\n allowedValues: Function,\n ampm: Boolean,\n disabled: Boolean,\n double: Boolean,\n format: {\n type: Function,\n default: val => val\n },\n max: {\n type: Number,\n required: true\n },\n min: {\n type: Number,\n required: true\n },\n scrollable: Boolean,\n readonly: Boolean,\n rotate: {\n type: Number,\n default: 0\n },\n step: {\n type: Number,\n default: 1\n },\n value: Number\n },\n\n data() {\n return {\n inputValue: this.value,\n isDragging: false,\n valueOnMouseDown: null,\n valueOnMouseUp: null\n };\n },\n\n computed: {\n count() {\n return this.max - this.min + 1;\n },\n\n degreesPerUnit() {\n return 360 / this.roundCount;\n },\n\n degrees() {\n return this.degreesPerUnit * Math.PI / 180;\n },\n\n displayedValue() {\n return this.value == null ? this.min : this.value;\n },\n\n innerRadiusScale() {\n return 0.62;\n },\n\n roundCount() {\n return this.double ? this.count / 2 : this.count;\n }\n\n },\n watch: {\n value(value) {\n this.inputValue = value;\n }\n\n },\n methods: {\n wheel(e) {\n e.preventDefault();\n const delta = Math.sign(-e.deltaY || 1);\n let value = this.displayedValue;\n\n do {\n value = value + delta;\n value = (value - this.min + this.count) % this.count + this.min;\n } while (!this.isAllowed(value) && value !== this.displayedValue);\n\n if (value !== this.displayedValue) {\n this.update(value);\n }\n },\n\n isInner(value) {\n return this.double && value - this.min >= this.roundCount;\n },\n\n handScale(value) {\n return this.isInner(value) ? this.innerRadiusScale : 1;\n },\n\n isAllowed(value) {\n return !this.allowedValues || this.allowedValues(value);\n },\n\n genValues() {\n const children = [];\n\n for (let value = this.min; value <= this.max; value = value + this.step) {\n const color = value === this.value && (this.color || 'accent');\n children.push(this.$createElement('span', this.setBackgroundColor(color, {\n staticClass: 'v-time-picker-clock__item',\n class: {\n 'v-time-picker-clock__item--active': value === this.displayedValue,\n 'v-time-picker-clock__item--disabled': this.disabled || !this.isAllowed(value)\n },\n style: this.getTransform(value),\n domProps: {\n innerHTML: `${this.format(value)}`\n }\n })));\n }\n\n return children;\n },\n\n genHand() {\n const scale = `scaleY(${this.handScale(this.displayedValue)})`;\n const angle = this.rotate + this.degreesPerUnit * (this.displayedValue - this.min);\n const color = this.value != null && (this.color || 'accent');\n return this.$createElement('div', this.setBackgroundColor(color, {\n staticClass: 'v-time-picker-clock__hand',\n class: {\n 'v-time-picker-clock__hand--inner': this.isInner(this.value)\n },\n style: {\n transform: `rotate(${angle}deg) ${scale}`\n }\n }));\n },\n\n getTransform(i) {\n const {\n x,\n y\n } = this.getPosition(i);\n return {\n left: `${50 + x * 50}%`,\n top: `${50 + y * 50}%`\n };\n },\n\n getPosition(value) {\n const rotateRadians = this.rotate * Math.PI / 180;\n return {\n x: Math.sin((value - this.min) * this.degrees + rotateRadians) * this.handScale(value),\n y: -Math.cos((value - this.min) * this.degrees + rotateRadians) * this.handScale(value)\n };\n },\n\n onMouseDown(e) {\n e.preventDefault();\n this.valueOnMouseDown = null;\n this.valueOnMouseUp = null;\n this.isDragging = true;\n this.onDragMove(e);\n },\n\n onMouseUp(e) {\n e.stopPropagation();\n this.isDragging = false;\n\n if (this.valueOnMouseUp !== null && this.isAllowed(this.valueOnMouseUp)) {\n this.$emit('change', this.valueOnMouseUp);\n }\n },\n\n onDragMove(e) {\n e.preventDefault();\n if (!this.isDragging && e.type !== 'click' || !this.$refs.clock) return;\n const {\n width,\n top,\n left\n } = this.$refs.clock.getBoundingClientRect();\n const {\n width: innerWidth\n } = this.$refs.innerClock.getBoundingClientRect();\n const {\n clientX,\n clientY\n } = 'touches' in e ? e.touches[0] : e;\n const center = {\n x: width / 2,\n y: -width / 2\n };\n const coords = {\n x: clientX - left,\n y: top - clientY\n };\n const handAngle = Math.round(this.angle(center, coords) - this.rotate + 360) % 360;\n const insideClick = this.double && this.euclidean(center, coords) < (innerWidth + innerWidth * this.innerRadiusScale) / 4;\n const checksCount = Math.ceil(15 / this.degreesPerUnit);\n let value;\n\n for (let i = 0; i < checksCount; i++) {\n value = this.angleToValue(handAngle + i * this.degreesPerUnit, insideClick);\n if (this.isAllowed(value)) return this.setMouseDownValue(value);\n value = this.angleToValue(handAngle - i * this.degreesPerUnit, insideClick);\n if (this.isAllowed(value)) return this.setMouseDownValue(value);\n }\n },\n\n angleToValue(angle, insideClick) {\n const value = (Math.round(angle / this.degreesPerUnit) + (insideClick ? this.roundCount : 0)) % this.count + this.min; // Necessary to fix edge case when selecting left part of the value(s) at 12 o'clock\n\n if (angle < 360 - this.degreesPerUnit / 2) return value;\n return insideClick ? this.max - this.roundCount + 1 : this.min;\n },\n\n setMouseDownValue(value) {\n if (this.valueOnMouseDown === null) {\n this.valueOnMouseDown = value;\n }\n\n this.valueOnMouseUp = value;\n this.update(value);\n },\n\n update(value) {\n if (this.inputValue !== value) {\n this.inputValue = value;\n this.$emit('input', value);\n }\n },\n\n euclidean(p0, p1) {\n const dx = p1.x - p0.x;\n const dy = p1.y - p0.y;\n return Math.sqrt(dx * dx + dy * dy);\n },\n\n angle(center, p1) {\n const value = 2 * Math.atan2(p1.y - center.y - this.euclidean(center, p1), p1.x - center.x);\n return Math.abs(value * 180 / Math.PI);\n }\n\n },\n\n render(h) {\n const data = {\n staticClass: 'v-time-picker-clock',\n class: {\n 'v-time-picker-clock--indeterminate': this.value == null,\n ...this.themeClasses\n },\n on: this.readonly || this.disabled ? undefined : {\n mousedown: this.onMouseDown,\n mouseup: this.onMouseUp,\n mouseleave: e => this.isDragging && this.onMouseUp(e),\n touchstart: this.onMouseDown,\n touchend: this.onMouseUp,\n mousemove: this.onDragMove,\n touchmove: this.onDragMove\n },\n ref: 'clock'\n };\n\n if (this.scrollable && data.on) {\n data.on.wheel = this.wheel;\n }\n\n return h('div', data, [h('div', {\n staticClass: 'v-time-picker-clock__inner',\n ref: 'innerClock'\n }, [this.genHand(), this.genValues()])]);\n }\n\n});\n//# sourceMappingURL=VTimePickerClock.js.map","// Components\nimport VTimePickerTitle from './VTimePickerTitle';\nimport VTimePickerClock from './VTimePickerClock'; // Mixins\n\nimport Picker from '../../mixins/picker';\nimport PickerButton from '../../mixins/picker-button'; // Utils\n\nimport { createRange } from '../../util/helpers';\nimport pad from '../VDatePicker/util/pad';\nimport mixins from '../../util/mixins';\nimport { SelectingTimes } from './SelectingTimes';\nconst rangeHours24 = createRange(24);\nconst rangeHours12am = createRange(12);\nconst rangeHours12pm = rangeHours12am.map(v => v + 12);\nconst range60 = createRange(60);\nconst selectingNames = {\n 1: 'hour',\n 2: 'minute',\n 3: 'second'\n};\nexport { SelectingTimes };\nexport default mixins(Picker, PickerButton\n/* @vue/component */\n).extend({\n name: 'v-time-picker',\n props: {\n allowedHours: [Function, Array],\n allowedMinutes: [Function, Array],\n allowedSeconds: [Function, Array],\n disabled: Boolean,\n format: {\n type: String,\n default: 'ampm',\n\n validator(val) {\n return ['ampm', '24hr'].includes(val);\n }\n\n },\n min: String,\n max: String,\n readonly: Boolean,\n scrollable: Boolean,\n useSeconds: Boolean,\n value: null,\n ampmInTitle: Boolean\n },\n\n data() {\n return {\n inputHour: null,\n inputMinute: null,\n inputSecond: null,\n lazyInputHour: null,\n lazyInputMinute: null,\n lazyInputSecond: null,\n period: 'am',\n selecting: SelectingTimes.Hour\n };\n },\n\n computed: {\n selectingHour: {\n get() {\n return this.selecting === SelectingTimes.Hour;\n },\n\n set(v) {\n this.selecting = SelectingTimes.Hour;\n }\n\n },\n selectingMinute: {\n get() {\n return this.selecting === SelectingTimes.Minute;\n },\n\n set(v) {\n this.selecting = SelectingTimes.Minute;\n }\n\n },\n selectingSecond: {\n get() {\n return this.selecting === SelectingTimes.Second;\n },\n\n set(v) {\n this.selecting = SelectingTimes.Second;\n }\n\n },\n\n isAllowedHourCb() {\n let cb;\n\n if (this.allowedHours instanceof Array) {\n cb = val => this.allowedHours.includes(val);\n } else {\n cb = this.allowedHours;\n }\n\n if (!this.min && !this.max) return cb;\n const minHour = this.min ? Number(this.min.split(':')[0]) : 0;\n const maxHour = this.max ? Number(this.max.split(':')[0]) : 23;\n return val => {\n return val >= minHour * 1 && val <= maxHour * 1 && (!cb || cb(val));\n };\n },\n\n isAllowedMinuteCb() {\n let cb;\n const isHourAllowed = !this.isAllowedHourCb || this.inputHour === null || this.isAllowedHourCb(this.inputHour);\n\n if (this.allowedMinutes instanceof Array) {\n cb = val => this.allowedMinutes.includes(val);\n } else {\n cb = this.allowedMinutes;\n }\n\n if (!this.min && !this.max) {\n return isHourAllowed ? cb : () => false;\n }\n\n const [minHour, minMinute] = this.min ? this.min.split(':').map(Number) : [0, 0];\n const [maxHour, maxMinute] = this.max ? this.max.split(':').map(Number) : [23, 59];\n const minTime = minHour * 60 + minMinute * 1;\n const maxTime = maxHour * 60 + maxMinute * 1;\n return val => {\n const time = 60 * this.inputHour + val;\n return time >= minTime && time <= maxTime && isHourAllowed && (!cb || cb(val));\n };\n },\n\n isAllowedSecondCb() {\n let cb;\n const isHourAllowed = !this.isAllowedHourCb || this.inputHour === null || this.isAllowedHourCb(this.inputHour);\n const isMinuteAllowed = isHourAllowed && (!this.isAllowedMinuteCb || this.inputMinute === null || this.isAllowedMinuteCb(this.inputMinute));\n\n if (this.allowedSeconds instanceof Array) {\n cb = val => this.allowedSeconds.includes(val);\n } else {\n cb = this.allowedSeconds;\n }\n\n if (!this.min && !this.max) {\n return isMinuteAllowed ? cb : () => false;\n }\n\n const [minHour, minMinute, minSecond] = this.min ? this.min.split(':').map(Number) : [0, 0, 0];\n const [maxHour, maxMinute, maxSecond] = this.max ? this.max.split(':').map(Number) : [23, 59, 59];\n const minTime = minHour * 3600 + minMinute * 60 + (minSecond || 0) * 1;\n const maxTime = maxHour * 3600 + maxMinute * 60 + (maxSecond || 0) * 1;\n return val => {\n const time = 3600 * this.inputHour + 60 * this.inputMinute + val;\n return time >= minTime && time <= maxTime && isMinuteAllowed && (!cb || cb(val));\n };\n },\n\n isAmPm() {\n return this.format === 'ampm';\n }\n\n },\n watch: {\n value: 'setInputData'\n },\n\n mounted() {\n this.setInputData(this.value);\n this.$on('update:period', this.setPeriod);\n },\n\n methods: {\n genValue() {\n if (this.inputHour != null && this.inputMinute != null && (!this.useSeconds || this.inputSecond != null)) {\n return `${pad(this.inputHour)}:${pad(this.inputMinute)}` + (this.useSeconds ? `:${pad(this.inputSecond)}` : '');\n }\n\n return null;\n },\n\n emitValue() {\n const value = this.genValue();\n if (value !== null) this.$emit('input', value);\n },\n\n setPeriod(period) {\n this.period = period;\n\n if (this.inputHour != null) {\n const newHour = this.inputHour + (period === 'am' ? -12 : 12);\n this.inputHour = this.firstAllowed('hour', newHour);\n this.emitValue();\n }\n },\n\n setInputData(value) {\n if (value == null || value === '') {\n this.inputHour = null;\n this.inputMinute = null;\n this.inputSecond = null;\n } else if (value instanceof Date) {\n this.inputHour = value.getHours();\n this.inputMinute = value.getMinutes();\n this.inputSecond = value.getSeconds();\n } else {\n const [, hour, minute,, second, period] = value.trim().toLowerCase().match(/^(\\d+):(\\d+)(:(\\d+))?([ap]m)?$/) || new Array(6);\n this.inputHour = period ? this.convert12to24(parseInt(hour, 10), period) : parseInt(hour, 10);\n this.inputMinute = parseInt(minute, 10);\n this.inputSecond = parseInt(second || 0, 10);\n }\n\n this.period = this.inputHour == null || this.inputHour < 12 ? 'am' : 'pm';\n },\n\n convert24to12(hour) {\n return hour ? (hour - 1) % 12 + 1 : 12;\n },\n\n convert12to24(hour, period) {\n return hour % 12 + (period === 'pm' ? 12 : 0);\n },\n\n onInput(value) {\n if (this.selecting === SelectingTimes.Hour) {\n this.inputHour = this.isAmPm ? this.convert12to24(value, this.period) : value;\n } else if (this.selecting === SelectingTimes.Minute) {\n this.inputMinute = value;\n } else {\n this.inputSecond = value;\n }\n\n this.emitValue();\n },\n\n onChange(value) {\n this.$emit(`click:${selectingNames[this.selecting]}`, value);\n const emitChange = this.selecting === (this.useSeconds ? SelectingTimes.Second : SelectingTimes.Minute);\n\n if (this.selecting === SelectingTimes.Hour) {\n this.selecting = SelectingTimes.Minute;\n } else if (this.useSeconds && this.selecting === SelectingTimes.Minute) {\n this.selecting = SelectingTimes.Second;\n }\n\n if (this.inputHour === this.lazyInputHour && this.inputMinute === this.lazyInputMinute && (!this.useSeconds || this.inputSecond === this.lazyInputSecond)) return;\n const time = this.genValue();\n if (time === null) return;\n this.lazyInputHour = this.inputHour;\n this.lazyInputMinute = this.inputMinute;\n this.useSeconds && (this.lazyInputSecond = this.inputSecond);\n emitChange && this.$emit('change', time);\n },\n\n firstAllowed(type, value) {\n const allowedFn = type === 'hour' ? this.isAllowedHourCb : type === 'minute' ? this.isAllowedMinuteCb : this.isAllowedSecondCb;\n if (!allowedFn) return value; // TODO: clean up\n\n const range = type === 'minute' ? range60 : type === 'second' ? range60 : this.isAmPm ? value < 12 ? rangeHours12am : rangeHours12pm : rangeHours24;\n const first = range.find(v => allowedFn((v + value) % range.length + range[0]));\n return ((first || 0) + value) % range.length + range[0];\n },\n\n genClock() {\n return this.$createElement(VTimePickerClock, {\n props: {\n allowedValues: this.selecting === SelectingTimes.Hour ? this.isAllowedHourCb : this.selecting === SelectingTimes.Minute ? this.isAllowedMinuteCb : this.isAllowedSecondCb,\n color: this.color,\n dark: this.dark,\n disabled: this.disabled,\n double: this.selecting === SelectingTimes.Hour && !this.isAmPm,\n format: this.selecting === SelectingTimes.Hour ? this.isAmPm ? this.convert24to12 : val => val : val => pad(val, 2),\n light: this.light,\n max: this.selecting === SelectingTimes.Hour ? this.isAmPm && this.period === 'am' ? 11 : 23 : 59,\n min: this.selecting === SelectingTimes.Hour && this.isAmPm && this.period === 'pm' ? 12 : 0,\n readonly: this.readonly,\n scrollable: this.scrollable,\n size: Number(this.width) - (!this.fullWidth && this.landscape ? 80 : 20),\n step: this.selecting === SelectingTimes.Hour ? 1 : 5,\n value: this.selecting === SelectingTimes.Hour ? this.inputHour : this.selecting === SelectingTimes.Minute ? this.inputMinute : this.inputSecond\n },\n on: {\n input: this.onInput,\n change: this.onChange\n },\n ref: 'clock'\n });\n },\n\n genClockAmPm() {\n return this.$createElement('div', this.setTextColor(this.color || 'primary', {\n staticClass: 'v-time-picker-clock__ampm'\n }), [this.genPickerButton('period', 'am', this.$vuetify.lang.t('$vuetify.timePicker.am'), this.disabled || this.readonly), this.genPickerButton('period', 'pm', this.$vuetify.lang.t('$vuetify.timePicker.pm'), this.disabled || this.readonly)]);\n },\n\n genPickerBody() {\n return this.$createElement('div', {\n staticClass: 'v-time-picker-clock__container',\n key: this.selecting\n }, [!this.ampmInTitle && this.isAmPm && this.genClockAmPm(), this.genClock()]);\n },\n\n genPickerTitle() {\n return this.$createElement(VTimePickerTitle, {\n props: {\n ampm: this.isAmPm,\n ampmReadonly: this.isAmPm && !this.ampmInTitle,\n disabled: this.disabled,\n hour: this.inputHour,\n minute: this.inputMinute,\n second: this.inputSecond,\n period: this.period,\n readonly: this.readonly,\n useSeconds: this.useSeconds,\n selecting: this.selecting\n },\n on: {\n 'update:selecting': value => this.selecting = value,\n 'update:period': period => this.$emit('update:period', period)\n },\n ref: 'title',\n slot: 'title'\n });\n }\n\n },\n\n render() {\n return this.genPicker('v-picker--time');\n }\n\n});\n//# sourceMappingURL=VTimePicker.js.map","import { render, staticRenderFns } from \"./TimerDialog.vue?vue&type=template&id=420fda74&\"\nimport script from \"./TimerDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./TimerDialog.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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VSwitch } from 'vuetify/lib/components/VSwitch';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VTimePicker } from 'vuetify/lib/components/VTimePicker';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardTitle,VCheckbox,VCol,VContainer,VDialog,VIcon,VRow,VSpacer,VSwitch,VTextField,VTimePicker})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"persistent\":\"\",\"hide-overlay\":\"\",\"transition\":\"dialog-top-transition\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',{staticClass:\"backgroundWhite\"},[_c('v-card-title',{staticClass:\"headline text-center\"},[_c('v-btn-toggle',{attrs:{\"rounded\":\"\"},model:{value:(_vm.toggle_chart),callback:function ($$v) {_vm.toggle_chart=$$v},expression:\"toggle_chart\"}},[_c('v-btn',[_vm._v(\"7 Days\")]),_c('v-btn',[_vm._v(\"30 Days\")]),_c('v-btn',[_vm._v(\"90 Days\")]),_c('v-btn',[_vm._v(\"365 Days\")])],1)],1),_c('v-layout',{staticClass:\"graph-wrapper\",attrs:{\"row\":\"\"}},[_c('div',{staticClass:\"chart-container\"},[_c('div',{staticClass:\"chart-inner-container\"},[_c('canvas',{ref:\"chartCanvas\",staticClass:\"m-2\"})])])]),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"green darken-1\",\"text\":\"\"},on:{\"click\":_vm.close}},[_vm._v(\"Close\")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Axios, { AxiosResponse } from \"axios\";\nimport defineHeaderAxios from \"@/utilities/useAuthToken\";\nimport { ref } from \"@vue/composition-api\";\nexport default function () {\n const consumptionData = ref>([]);\n const getConsumptionData = async (\n meterId: string,\n daysBack: number\n ): Promise> => {\n await defineHeaderAxios();\n return Axios.get(`/api/Consumption/${meterId}/${daysBack}`)\n .then((result: AxiosResponse>) => {\n if (result.status === 200) {\n consumptionData.value = result.data;\n return result.data;\n } else return new Array();\n })\n .catch((error) => {\n console.log(error);\n return new Array();\n });\n };\n return {\n getConsumptionData,\n consumptionData,\n };\n}\n\nexport class ConsumptionDataPoint {\n kilowatts: number;\n date: Date;\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 {\n defineComponent,\n computed,\n ref,\n watch,\n nextTick,\n onMounted,\n onUnmounted\n} from \"@vue/composition-api\";\nimport { Chart, ChartItem, registerables, TimeUnit } from \"chart.js\";\nimport \"chartjs-adapter-date-fns\";\nimport useConsumptionStatistic, { ConsumptionDataPoint } from \"@/store/useConsumptionStatistic\";\n\nChart.register(...registerables);\n\nexport default defineComponent({\n props: {\n imgSrc: { type: String },\n value: { type: Boolean, default: false },\n deviceType: { type: Number, default: 0 },\n meterId: { type: String, required: true },\n subtitle: { type: String, default: \"\" }\n },\n setup(props, context) {\n const chartCanvas = ref();\n const toggle_chart = ref(0);\n const dialog = computed(() => props.value);\n\n const { getConsumptionData } = useConsumptionStatistic();\n let chart: Chart | null = null;\n\n const getChartConfig = (value: number): { scale: TimeUnit; title: string; interval: number } => {\n switch (value) {\n case 0: return { scale: \"day\", title: \"Daily consumption (7 Days)\", interval: 7 };\n case 1: return { scale: \"day\", title: \"Daily consumption (30 Days)\", interval: 30 };\n case 2: return { scale: \"week\", title: \"Weekly consumption (90 Days)\", interval: 90 };\n case 3: return { scale: \"month\", title: \"Monthly consumption (365 Days)\", interval: 365 };\n default: return { scale: \"day\", title: \"Consumption\", interval: 7 };\n }\n };\n\n const setupChart = async () => {\n const ctx = chartCanvas.value as ChartItem;\n if (!ctx) return;\n\n const { scale, title, interval } = getChartConfig(toggle_chart.value);\n const data = await getConsumptionData(props.meterId, interval);\n\n chart = new Chart(ctx, {\n type: \"line\",\n data: {\n datasets: [\n {\n label: \"kWh\",\n data: data,\n fill: true,\n borderColor: \"rgb(75, 192, 192)\",\n tension: 0.1,\n pointRadius: 9,\n pointHitRadius: 3,\n pointHoverRadius: 12\n }\n ]\n } as any,\n options: {\n plugins: {\n title: {\n display: true,\n text: title,\n align: \"center\",\n position: \"top\",\n padding: { top: 10, bottom: 10 }\n },\n subtitle: {\n display: true,\n text: props.subtitle,\n align: \"center\",\n padding: { bottom: 10 }\n },\n legend: {\n display: false\n }\n },\n parsing: {\n xAxisKey: \"date\",\n yAxisKey: \"kilowatts\"\n },\n scales: {\n x: {\n type: \"time\",\n time: {\n unit: scale,\n displayFormats: {\n day: \"dd-MMM\",\n week: \"dd-MMM\",\n month: \"MMM yyyy\",\n quarter: \"MMM yyyy\",\n year: \"yyyy\"\n }\n }\n },\n y: {\n title: {\n display: true,\n text: \"kWh\"\n }\n }\n }\n }\n });\n\n (chart.canvas as HTMLCanvasElement).style.width = \"auto\";\n };\n\n const rebuildChart = async () => {\n if (chart) {\n chart.destroy();\n chart = null;\n }\n await nextTick();\n setupChart();\n };\n\n const close = () => {\n if (chart) {\n chart.destroy();\n chart = null;\n }\n context.emit(\"input\", false);\n };\n\n onMounted(() => {\n if (props.value) setupChart();\n });\n\n onUnmounted(() => {\n if (chart) {\n chart.destroy();\n chart = null;\n }\n });\n\n watch(() => props.value, (val) => {\n if (val) rebuildChart();\n });\n\n watch(() => toggle_chart.value, () => {\n rebuildChart();\n });\n\n return {\n dialog,\n close,\n chartCanvas,\n toggle_chart\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!./ConsumptionDialog.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!./ConsumptionDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ConsumptionDialog.vue?vue&type=template&id=92607798&scoped=true&\"\nimport script from \"./ConsumptionDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./ConsumptionDialog.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ConsumptionDialog.vue?vue&type=style&index=0&id=92607798&prod&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 \"92607798\",\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 { VBtnToggle } from 'vuetify/lib/components/VBtnToggle';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VLayout } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VBtnToggle,VCard,VCardActions,VCardTitle,VDialog,VLayout,VSpacer})\n"],"sourceRoot":""}