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,EAAA,CAFhBC,OAAQlB,EAAAL,MACRwB,QAASnB,EAAAmB,QACTC,MAAOpB,EAAAoB,O,wCAGZvC,EAAAA,EAAAA,GAEM,MAFNwC,EAEM,EADJxC,EAAAA,EAAAA,GAAwC,OAAnCC,MAAM,O,aAAOwC,EAAAA,EAAAA,IAAQtB,EAAWL,MAALQ,O,aAGlCtB,EAAAA,EAAAA,GAMM,OANDC,OAAKE,EAAAA,EAAAA,IAAA,CAAC,kBAAiB,iBAA2BgB,EAAAL,OAAO4B,cAAcC,W,EAC1ER,EAAAA,EAAAA,IAIgBS,EAAA,CAHb9B,MAAOK,EAAAL,MAAM+B,UACbzC,SAAUe,EAAAmB,QACV3B,QAAOD,EAAAoC,QACPxC,QAAKC,EAAA,KAAAA,EAAA,IAAAC,EAAAA,EAAAA,KAAN,QAAW,Y,gFAWrB,GACEc,KAAM,kBACNyB,WAAY,CAACC,WAAU,aAAEC,aAAYA,EAAAA,GACrCC,OAAQ,CAACC,EAAAA,YAETvB,QAAS,CACP,aAAMkB,CAAQjB,GACZA,EAAMuB,kBACNtB,KAAKC,MAAM,WAAW,GACtB,MAAMsB,EACJ,cACCvB,KAAKhB,MAAM+B,UAAY,aAAe,WAGzC,UACQf,KAAKwB,QAAQD,EAAQ,CACzBE,OAAQzB,KAAKhB,MAAM0C,SAEvB,CAAE,QACA1B,KAAKC,MAAM,WAAW,EACxB,CACF,I,UC5CJ,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Entities/BluetoothDevice.vue","webpack://platypush/./src/components/panels/Entities/BluetoothDevice.vue?49c5"],"sourcesContent":["<template>\n <div class=\"power-switch\" :class=\"{disabled: disabled}\" @click.stop=\"onInput\">\n <!--suppress HtmlFormInputWithoutLabel -->\n <input type=\"checkbox\" :checked=\"value\" :id=\"id\">\n <label>\n <!--suppress HtmlUnknownTag -->\n <div class=\"switch\">\n <div class=\"dot\" />\n </div>\n <span class=\"label\">\n <slot />\n </span>\n </label>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"ToggleSwitch\",\n emits: ['input'],\n props: {\n id: {\n type: String,\n },\n\n value: {\n type: Boolean,\n default: false,\n },\n\n disabled: {\n type: Boolean,\n default: false,\n },\n },\n\n methods: {\n onInput(event) {\n if (this.disabled)\n return false\n\n this.$emit('input', event)\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.power-switch {\n position: relative;\n transition: transform .3s;\n transform: scale(var(--scale, 1)) translateZ(0);\n\n &:active {\n --scale: .96;\n }\n\n &.disabled {\n opacity: 0.6;\n }\n\n input {\n display: none;\n & + label {\n border-radius: 1em;\n display: inline-flex;\n cursor: pointer;\n position: relative;\n transition: box-shadow .4s;\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: inherit;\n background: none;\n opacity: var(--gradient, 0);\n transition: opacity .4s;\n }\n\n .switch {\n position: relative;\n display: inline-block;\n vertical-align: top;\n height: 1.4em;\n width: 2.5em;\n border-radius: 1em;\n background: $slider-bg;\n box-shadow: inset 1px 0px 3px 0 $slider-track-shadow;\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: inherit;\n background: $slider-progress-bg;\n opacity: var(--gradient, 0);\n transition: opacity .4s;\n }\n\n .dot {\n background: $toggle-dot-bg;\n position: absolute;\n width: 1.5em;\n height: 1.5em;\n border-radius: 50%;\n box-shadow: 1px 0px 3.5px 0 $slider-thumb-shadow;\n left: -0.25em;\n top: -0.05em;\n transform: translateX(var(--offset, 0));\n transition: transform .4s, box-shadow .4s;\n\n &:before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: inherit;\n background: $toggle-selected-dot-bg;\n opacity: var(--gradient, 0);\n transition: opacity .4s;\n }\n }\n }\n\n span {\n line-height: 2em;\n font-size: 1.2em;\n color: var(--text, #646B8C);\n font-weight: 500;\n display: inline-block;\n vertical-align: top;\n position: relative;\n margin-left: 0.5em;\n transition: color .4s;\n }\n\n & + span {\n text-align: center;\n display: block;\n position: absolute;\n left: 0;\n right: 0;\n top: 100%;\n opacity: 0;\n font-size: 1em;\n font-weight: 500;\n color: $slider-bg;\n transform: translateY(0.2em);\n transition: opacity .4s, transform .4s;\n }\n }\n\n &:not(:checked) {\n & + label {\n pointer-events: none;\n & + span {\n opacity: 1;\n transform: translateY(0.6em);\n }\n }\n }\n\n &:checked {\n & + label {\n --offset: 1.5em;\n --text: $slider-progress-bg;\n --gradient: 1;\n --shadow: rgba(0, 39, 6, .1);\n }\n }\n }\n}\n</style>\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=eff375b6&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=eff375b6&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-eff375b6\"]])\n\nexport default __exports__","<template>\n <div class=\"entity device-container\">\n <div class=\"head\">\n <div class=\"icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"value-container\" :class=\"{'with-children': value?.children_ids?.length}\">\n <ToggleSwitch\n :value=\"value.connected\"\n :disabled=\"loading\" \n @input=\"connect\"\n @click.stop />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\nimport ToggleSwitch from \"@/components/elements/ToggleSwitch\"\n\nexport default {\n name: 'BluetoothDevice',\n components: {EntityIcon, ToggleSwitch},\n mixins: [EntityMixin],\n\n methods: {\n async connect(event) {\n event.stopPropagation()\n this.$emit('loading', true)\n const method = (\n 'bluetooth.' +\n (this.value.connected ? 'disconnect' : 'connect')\n )\n\n try {\n await this.request(method, {\n device: this.value.address,\n })\n } finally {\n this.$emit('loading', false)\n }\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.device-container {\n display: flex;\n justify-content: center;\n\n .value-container {\n &:not(.with-children) {\n margin-right: 2.5em;\n }\n }\n}\n</style>\n","import { render } from \"./BluetoothDevice.vue?vue&type=template&id=6aff1eff&scoped=true\"\nimport script from \"./BluetoothDevice.vue?vue&type=script&lang=js\"\nexport * from \"./BluetoothDevice.vue?vue&type=script&lang=js\"\n\nimport \"./BluetoothDevice.vue?vue&type=style&index=0&id=6aff1eff&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6aff1eff\"]])\n\nexport default __exports__"],"names":["_createElementVNode","class","_createElementBlock","_normalizeClass","disabled","$props","onClick","_cache","_withModifiers","args","$options","onInput","type","checked","value","id","_hoisted_2","_hoisted_3","_renderSlot","_ctx","$slots","undefined","name","emits","props","String","Boolean","default","methods","event","this","$emit","__exports__","render","_hoisted_1","_createVNode","_component_EntityIcon","entity","loading","error","_hoisted_4","_toDisplayString","children_ids","length","_component_ToggleSwitch","connected","connect","components","EntityIcon","ToggleSwitch","mixins","EntityMixin","stopPropagation","method","request","device","address"],"sourceRoot":""}