homebridge-config-ui-x 5.10.1-beta.1 → 5.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -4
- package/README.md +3 -3
- package/dist/core/auth/auth.controller.d.ts +0 -4
- package/dist/core/config/config.interfaces.d.ts +0 -14
- package/dist/core/config/config.service.d.ts +0 -6
- package/dist/core/config/config.service.js +0 -8
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/core/config/config.startup.js +17 -48
- package/dist/core/config/config.startup.js.map +1 -1
- package/dist/core/feature-flags/feature-flags.registry.js +0 -5
- package/dist/core/feature-flags/feature-flags.registry.js.map +1 -1
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js +0 -1
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js.map +1 -1
- package/dist/core/spa/spa.filter.d.ts +0 -3
- package/dist/core/spa/spa.filter.js +2 -22
- package/dist/core/spa/spa.filter.js.map +1 -1
- package/dist/globalDefaults.js +0 -3
- package/dist/globalDefaults.js.map +1 -1
- package/dist/main.js +4 -18
- package/dist/main.js.map +1 -1
- package/dist/modules/accessories/accessories.controller.d.ts +1 -1
- package/dist/modules/accessories/accessories.module.js +0 -2
- package/dist/modules/accessories/accessories.module.js.map +1 -1
- package/dist/modules/accessories/accessories.service.d.ts +3 -21
- package/dist/modules/accessories/accessories.service.js +17 -280
- package/dist/modules/accessories/accessories.service.js.map +1 -1
- package/dist/modules/child-bridges/child-bridges.interfaces.d.ts +0 -9
- package/dist/modules/config-editor/config-editor.controller.d.ts +0 -4
- package/dist/modules/config-editor/config-editor.controller.js +0 -64
- package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
- package/dist/modules/config-editor/config-editor.service.d.ts +1 -6
- package/dist/modules/config-editor/config-editor.service.js +1 -45
- package/dist/modules/config-editor/config-editor.service.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
- package/dist/modules/plugins/plugins.service.js +2 -16
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/server/server.controller.d.ts +0 -50
- package/dist/modules/server/server.controller.js +2 -201
- package/dist/modules/server/server.controller.js.map +1 -1
- package/dist/modules/server/server.service.d.ts +0 -48
- package/dist/modules/server/server.service.js +14 -502
- package/dist/modules/server/server.service.js.map +1 -1
- package/dist/modules/status/status.gateway.d.ts +0 -2
- package/dist/modules/status/status.interfaces.d.ts +0 -11
- package/dist/modules/status/status.service.d.ts +1 -4
- package/dist/modules/status/status.service.js +2 -21
- package/dist/modules/status/status.service.js.map +1 -1
- package/package.json +4 -9
- package/public/3rdpartylicenses.txt +606 -554
- package/public/assets/plugin-ui-utils/ui.js +0 -3
- package/public/assets/plugin-ui-utils/ui.js.map +1 -1
- package/public/chunk-227QDXDT.js +1 -0
- package/public/chunk-2AF3WD4J.js +2 -0
- package/public/chunk-3WJDQQZL.js +4 -0
- package/public/chunk-4EKX3Z76.js +8 -0
- package/public/{chunk-U4YCHJUJ.js → chunk-53KE3XPC.js} +2 -2
- package/public/chunk-53KNB3HO.js +1 -0
- package/public/chunk-5KQ5PHZY.js +1 -0
- package/public/chunk-5RSQ3VKF.js +1 -0
- package/public/chunk-7G4CXD2O.js +5 -0
- package/public/chunk-A6U6HYY3.js +1 -0
- package/public/chunk-APMBCXUH.js +1 -0
- package/public/chunk-AW3MY6EQ.js +3 -0
- package/public/chunk-C46IEABJ.js +1 -0
- package/public/chunk-DEAIAR5T.js +1 -0
- package/public/chunk-DOEUREPX.js +1 -0
- package/public/chunk-E7RYLM5U.js +1 -0
- package/public/chunk-FDR4RMWN.js +1 -0
- package/public/{chunk-BMOLDRJ3.js → chunk-FHGIL4GK.js} +1 -1
- package/public/chunk-FK57KJRX.js +1 -0
- package/public/chunk-FYY57EXZ.js +5 -0
- package/public/chunk-G6G4X3LL.js +1 -0
- package/public/chunk-G6VVYCFK.js +1 -0
- package/public/chunk-G7S7J6DQ.js +1 -0
- package/public/chunk-GZU7FSYR.js +1 -0
- package/public/chunk-HGQJCJDV.js +1 -0
- package/public/chunk-HIFUKISS.js +1 -0
- package/public/chunk-IKDCH6SV.js +1 -0
- package/public/chunk-IWRD5BS2.js +1 -0
- package/public/{chunk-T4IEJNVJ.js → chunk-J3GNTL4X.js} +1 -1
- package/public/chunk-KK5HST3W.js +1 -0
- package/public/chunk-KO7OKSD4.js +51 -0
- package/public/chunk-KY3N6RBR.js +4 -0
- package/public/chunk-L5OY5K3Z.js +1 -0
- package/public/chunk-LQSXNQRY.js +1 -0
- package/public/chunk-NIVC55QC.js +1 -0
- package/public/{chunk-MS6AXMT2.js → chunk-NLVJP2FS.js} +2 -52
- package/public/chunk-NVYUCMZB.js +1 -0
- package/public/chunk-NXM6LODP.js +1 -0
- package/public/chunk-O5PYZ4PG.js +16 -0
- package/public/chunk-OQAG4MQB.js +1 -0
- package/public/chunk-OQLCIKGK.js +1 -0
- package/public/chunk-OT3OZVNB.js +50 -0
- package/public/chunk-PA2FLQHK.js +1 -0
- package/public/chunk-PD4EFNCS.js +1 -0
- package/public/chunk-PHY7W3BQ.js +1 -0
- package/public/chunk-PKVKTMRP.js +19 -0
- package/public/chunk-PPU3W2KO.js +1 -0
- package/public/chunk-QIJ6OIDU.js +1 -0
- package/public/chunk-REIZTIW4.js +2 -0
- package/public/chunk-RQOGW4OS.js +1 -0
- package/public/chunk-RS6FC3D3.js +1 -0
- package/public/chunk-S5CZBBHY.js +1 -0
- package/public/chunk-SQSP77TI.js +1 -0
- package/public/chunk-TAJT2XQ6.js +1 -0
- package/public/{chunk-FE43ULOM.js → chunk-U73PAFR5.js} +1 -1
- package/public/chunk-U77IESKH.js +1 -0
- package/public/chunk-UBWU2SEH.js +1 -0
- package/public/chunk-UGNUDJ75.js +1 -0
- package/public/{chunk-H7F7H5MW.js → chunk-UPB765LT.js} +1 -1
- package/public/chunk-W4NH2DJW.js +1 -0
- package/public/chunk-W5BUXVY6.js +5 -0
- package/public/chunk-WPMRJABD.js +1 -0
- package/public/{chunk-7CDYTG4I.js → chunk-WYCRIQDH.js} +1 -1
- package/public/chunk-YRC6JINT.js +1 -0
- package/public/chunk-ZC4YICGQ.js +1 -0
- package/public/chunk-ZUOL6YC4.js +1 -0
- package/public/chunk-ZWGNHKFK.js +1 -0
- package/public/chunk-ZXKMLKZT.js +40 -0
- package/public/index.html +2 -2
- package/public/main-WC4DXWXF.js +1 -0
- package/public/styles-7EFV5QBG.css +1 -0
- package/scripts/extract-plugin-alias.js +2 -53
- package/dist/core/spa/spa-html.service.d.ts +0 -5
- package/dist/core/spa/spa-html.service.js +0 -32
- package/dist/core/spa/spa-html.service.js.map +0 -1
- package/dist/core/ssl/ssl-cert-generator.service.d.ts +0 -15
- package/dist/core/ssl/ssl-cert-generator.service.js +0 -125
- package/dist/core/ssl/ssl-cert-generator.service.js.map +0 -1
- package/dist/modules/accessories/accessories.interfaces.d.ts +0 -94
- package/dist/modules/accessories/accessories.interfaces.js +0 -2
- package/dist/modules/accessories/accessories.interfaces.js.map +0 -1
- package/docs/matter-todo.md +0 -15
- package/docs/ssl-upload-pr.md +0 -103
- package/public/assets/matter.svg +0 -8
- package/public/chunk-2D7CDA3H.js +0 -1
- package/public/chunk-2GBZLCJW.js +0 -1
- package/public/chunk-33YDZRAK.js +0 -1
- package/public/chunk-3DG6CT5D.js +0 -2
- package/public/chunk-3F75CKTQ.js +0 -1
- package/public/chunk-3OSRGC5M.js +0 -1
- package/public/chunk-3UTT42KH.js +0 -1
- package/public/chunk-442FBVB5.js +0 -1
- package/public/chunk-4PPFVY5K.js +0 -1
- package/public/chunk-4RWLV5CJ.js +0 -1
- package/public/chunk-4UDSSFBN.js +0 -1
- package/public/chunk-4XZK5MQY.js +0 -1
- package/public/chunk-5S4MIY7E.js +0 -1
- package/public/chunk-5X5S4L7Y.js +0 -1
- package/public/chunk-6ELMQIBK.js +0 -1
- package/public/chunk-6I27GJJF.js +0 -1
- package/public/chunk-7DWXCRSP.js +0 -1
- package/public/chunk-7RJ5H5OP.js +0 -1
- package/public/chunk-ABQLMP2L.js +0 -1
- package/public/chunk-B4AJQJMI.js +0 -1
- package/public/chunk-BEI5QPKL.js +0 -5
- package/public/chunk-BEWAKOMK.js +0 -1
- package/public/chunk-BOW5E4YK.js +0 -50
- package/public/chunk-BSST5MPT.js +0 -1
- package/public/chunk-BSXPNFI5.js +0 -1
- package/public/chunk-C4IIDRJP.js +0 -1
- package/public/chunk-CIWR3BDK.js +0 -5
- package/public/chunk-CMS4LVBG.js +0 -1
- package/public/chunk-CO3QJQRO.js +0 -1
- package/public/chunk-CS2WBXWW.js +0 -1
- package/public/chunk-CTWHZU36.js +0 -1
- package/public/chunk-DAMERMP3.js +0 -1
- package/public/chunk-DM74WNXP.js +0 -1
- package/public/chunk-DMKHEJF5.js +0 -3
- package/public/chunk-DTFJZNTX.js +0 -1
- package/public/chunk-DWU5C3KH.js +0 -1
- package/public/chunk-EBFB2GZT.js +0 -1
- package/public/chunk-EEA6UA46.js +0 -2
- package/public/chunk-EJACNX3Z.js +0 -1
- package/public/chunk-GPMU3WMO.js +0 -68
- package/public/chunk-GWHA2DEF.js +0 -1
- package/public/chunk-GXD2SS6L.js +0 -1
- package/public/chunk-H6QDC36H.js +0 -1
- package/public/chunk-HAJT335F.js +0 -1
- package/public/chunk-HK3N2YPM.js +0 -1
- package/public/chunk-HLNMCR4K.js +0 -1
- package/public/chunk-IC6BLNW5.js +0 -1
- package/public/chunk-IMRVMPXI.js +0 -1
- package/public/chunk-IPRQGPVV.js +0 -1
- package/public/chunk-IVZ5ER6L.js +0 -1
- package/public/chunk-JRQC3M7W.js +0 -4
- package/public/chunk-JT7TYR5C.js +0 -1
- package/public/chunk-KDXCBENV.js +0 -2
- package/public/chunk-KGOOP2T6.js +0 -1
- package/public/chunk-KMSHJTEM.js +0 -1
- package/public/chunk-L77RLTDM.js +0 -1
- package/public/chunk-LCGZABYG.js +0 -1
- package/public/chunk-LG53BDFP.js +0 -1
- package/public/chunk-LJMU7UD3.js +0 -1
- package/public/chunk-LKNJHPL6.js +0 -1
- package/public/chunk-LKODOMMX.js +0 -1
- package/public/chunk-LUUAC57N.js +0 -1
- package/public/chunk-MIWSF7W2.js +0 -1
- package/public/chunk-MQTRL6KN.js +0 -1
- package/public/chunk-NP23WSXR.js +0 -1
- package/public/chunk-O3SZVIF6.js +0 -1
- package/public/chunk-ODXGF3LF.js +0 -1
- package/public/chunk-OPDTKONB.js +0 -1
- package/public/chunk-ORK6IK47.js +0 -4
- package/public/chunk-OZI5E5HI.js +0 -1
- package/public/chunk-P4KZ2HSY.js +0 -1
- package/public/chunk-PI4V6TBF.js +0 -1
- package/public/chunk-PMN4OFOP.js +0 -1
- package/public/chunk-Q4WN5E2X.js +0 -1
- package/public/chunk-QA6IRNX4.js +0 -1
- package/public/chunk-QGV5S3KG.js +0 -1
- package/public/chunk-QKEI7JJT.js +0 -1
- package/public/chunk-QNQ4HXBD.js +0 -1
- package/public/chunk-QNQIBHMP.js +0 -1
- package/public/chunk-R4E7RV22.js +0 -1
- package/public/chunk-R5Q7W4AU.js +0 -1
- package/public/chunk-RQG4TZOZ.js +0 -1
- package/public/chunk-SN3EVQDP.js +0 -1
- package/public/chunk-T3526HQB.js +0 -1
- package/public/chunk-TTPURYKZ.js +0 -1
- package/public/chunk-UAFCVKMR.js +0 -1
- package/public/chunk-UBCYUHPO.js +0 -1
- package/public/chunk-UJEB6C35.js +0 -1
- package/public/chunk-UQP4IIIX.js +0 -1
- package/public/chunk-URTTNRYM.js +0 -1
- package/public/chunk-USFURAEW.js +0 -1
- package/public/chunk-UVRDZGSU.js +0 -1
- package/public/chunk-VBTEO65F.js +0 -1
- package/public/chunk-WCRO6YQB.js +0 -16
- package/public/chunk-XL5BAQKW.js +0 -8
- package/public/chunk-XUAJJMQ4.js +0 -1
- package/public/chunk-Y67I4K2H.js +0 -1
- package/public/chunk-YHOHHKYL.js +0 -1
- package/public/chunk-ZABK6QJY.js +0 -1
- package/public/chunk-ZCGZM7LU.js +0 -1
- package/public/chunk-ZE7IZECI.js +0 -19
- package/public/chunk-ZGIR65XW.js +0 -1
- package/public/chunk-ZXID2WUA.js +0 -1
- package/public/main-VGG7NRKO.js +0 -1
- package/public/media/matter-P563JGDL.svg +0 -8
- package/public/styles-CT2LPGES.css +0 -1
- /package/public/{polyfills-NISNRVWY.js → polyfills-5KWHJ7II.js} +0 -0
package/public/chunk-GPMU3WMO.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import{a as wn}from"./chunk-3OSRGC5M.js";import{a as Mn}from"./chunk-LUUAC57N.js";import{m as Gt,n as Q}from"./chunk-BEI5QPKL.js";import{a as je}from"./chunk-NP23WSXR.js";import{b as xn}from"./chunk-URTTNRYM.js";import{C as oe,a as yn,b as Sn,c as kn,e as ae,l as se,t as Tn,u as bn,w as Bn}from"./chunk-QKEI7JJT.js";import{b as ye}from"./chunk-RQG4TZOZ.js";import{D as hn,E as M,G as Cn,J as _n,i as De,k as gn,l as be}from"./chunk-KDXCBENV.js";import{Ac as gt,Bb as qe,Bc as un,Cb as We,Cc as fn,Db as Ue,Dc as s,Eb as T,Ec as c,F as en,Fb as a,Fc as ce,Gb as l,Hb as u,I as tn,Ib as y,Jb as k,Kb as I,Lb as cn,Lc as Ci,Mb as dn,Qb as $,Qc as vn,Rb as Oe,Ta as Pe,W as nn,Wb as S,X as Ut,Xb as ve,Ya as n,Yb as m,aa as D,d as J,e as Yi,ga as L,gb as sn,gc as tt,ha as V,hb as $t,hc as R,ia as E,ic as A,ja as P,jc as d,kc as f,lc as g,ma as et,mb as B,mc as N,n as Wt,nc as $e,oa as st,ob as ln,oc as pn,pa as on,pb as Ke,pc as ft,qc as z,rb as ie,rc as K,sc as q,vc as mn,w as Qi,wa as rn,wc as xe,x as Ji,xa as te,xb as x,yb as h,yc as F,z as Xi,za as an,zb as C,zc as vt}from"./chunk-JRQC3M7W.js";import{a as qi,b as Zi,e as _0,g as x0,h as Et}from"./chunk-B4AJQJMI.js";var En=_0(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.Enums=Ze.Categories=Ze.Characteristics=Ze.Services=void 0;Ze.Services={"00000260-0000-1000-8000-0026BB765291":"AccessCode",AccessCode:"00000260-0000-1000-8000-0026BB765291","000000DA-0000-1000-8000-0026BB765291":"AccessControl",AccessControl:"000000DA-0000-1000-8000-0026BB765291","0000003E-0000-1000-8000-0026BB765291":"AccessoryInformation",AccessoryInformation:"0000003E-0000-1000-8000-0026BB765291","00000270-0000-1000-8000-0026BB765291":"AccessoryMetrics",AccessoryMetrics:"00000270-0000-1000-8000-0026BB765291","00000239-0000-1000-8000-0026BB765291":"AccessoryRuntimeInformation",AccessoryRuntimeInformation:"00000239-0000-1000-8000-0026BB765291","000000BB-0000-1000-8000-0026BB765291":"AirPurifier",AirPurifier:"000000BB-0000-1000-8000-0026BB765291","0000008D-0000-1000-8000-0026BB765291":"AirQualitySensor",AirQualitySensor:"0000008D-0000-1000-8000-0026BB765291","00000267-0000-1000-8000-0026BB765291":"AssetUpdate",AssetUpdate:"00000267-0000-1000-8000-0026BB765291","0000026A-0000-1000-8000-0026BB765291":"Assistant",Assistant:"0000026A-0000-1000-8000-0026BB765291","00000127-0000-1000-8000-0026BB765291":"AudioStreamManagement",AudioStreamManagement:"00000127-0000-1000-8000-0026BB765291","00000096-0000-1000-8000-0026BB765291":"Battery",Battery:"00000096-0000-1000-8000-0026BB765291","0000021A-0000-1000-8000-0026BB765291":"CameraOperatingMode",CameraOperatingMode:"0000021A-0000-1000-8000-0026BB765291","00000204-0000-1000-8000-0026BB765291":"CameraRecordingManagement",CameraRecordingManagement:"00000204-0000-1000-8000-0026BB765291","00000110-0000-1000-8000-0026BB765291":"CameraRTPStreamManagement",CameraRTPStreamManagement:"00000110-0000-1000-8000-0026BB765291","00000097-0000-1000-8000-0026BB765291":"CarbonDioxideSensor",CarbonDioxideSensor:"00000097-0000-1000-8000-0026BB765291","0000007F-0000-1000-8000-0026BB765291":"CarbonMonoxideSensor",CarbonMonoxideSensor:"0000007F-0000-1000-8000-0026BB765291","0000005A-0000-1000-8000-0026BB765291":"CloudRelay",CloudRelay:"0000005A-0000-1000-8000-0026BB765291","00000080-0000-1000-8000-0026BB765291":"ContactSensor",ContactSensor:"00000080-0000-1000-8000-0026BB765291","00000129-0000-1000-8000-0026BB765291":"DataStreamTransportManagement",DataStreamTransportManagement:"00000129-0000-1000-8000-0026BB765291","00000237-0000-1000-8000-0026BB765291":"Diagnostics",Diagnostics:"00000237-0000-1000-8000-0026BB765291","00000081-0000-1000-8000-0026BB765291":"Door",Door:"00000081-0000-1000-8000-0026BB765291","00000121-0000-1000-8000-0026BB765291":"Doorbell",Doorbell:"00000121-0000-1000-8000-0026BB765291","00000040-0000-1000-8000-0026BB765291":"Fan",Fan:"00000040-0000-1000-8000-0026BB765291","000000B7-0000-1000-8000-0026BB765291":"Fanv2",Fanv2:"000000B7-0000-1000-8000-0026BB765291","000000D7-0000-1000-8000-0026BB765291":"Faucet",Faucet:"000000D7-0000-1000-8000-0026BB765291","000000BA-0000-1000-8000-0026BB765291":"FilterMaintenance",FilterMaintenance:"000000BA-0000-1000-8000-0026BB765291","00000236-0000-1000-8000-0026BB765291":"FirmwareUpdate",FirmwareUpdate:"00000236-0000-1000-8000-0026BB765291","00000041-0000-1000-8000-0026BB765291":"GarageDoorOpener",GarageDoorOpener:"00000041-0000-1000-8000-0026BB765291","000000BC-0000-1000-8000-0026BB765291":"HeaterCooler",HeaterCooler:"000000BC-0000-1000-8000-0026BB765291","000000BD-0000-1000-8000-0026BB765291":"HumidifierDehumidifier",HumidifierDehumidifier:"000000BD-0000-1000-8000-0026BB765291","00000082-0000-1000-8000-0026BB765291":"HumiditySensor",HumiditySensor:"00000082-0000-1000-8000-0026BB765291","000000D9-0000-1000-8000-0026BB765291":"InputSource",InputSource:"000000D9-0000-1000-8000-0026BB765291","000000CF-0000-1000-8000-0026BB765291":"IrrigationSystem",IrrigationSystem:"000000CF-0000-1000-8000-0026BB765291","00000083-0000-1000-8000-0026BB765291":"LeakSensor",LeakSensor:"00000083-0000-1000-8000-0026BB765291","00000043-0000-1000-8000-0026BB765291":"Lightbulb",Lightbulb:"00000043-0000-1000-8000-0026BB765291","00000084-0000-1000-8000-0026BB765291":"LightSensor",LightSensor:"00000084-0000-1000-8000-0026BB765291","00000044-0000-1000-8000-0026BB765291":"LockManagement",LockManagement:"00000044-0000-1000-8000-0026BB765291","00000045-0000-1000-8000-0026BB765291":"LockMechanism",LockMechanism:"00000045-0000-1000-8000-0026BB765291","00000112-0000-1000-8000-0026BB765291":"Microphone",Microphone:"00000112-0000-1000-8000-0026BB765291","00000085-0000-1000-8000-0026BB765291":"MotionSensor",MotionSensor:"00000085-0000-1000-8000-0026BB765291","00000266-0000-1000-8000-0026BB765291":"NFCAccess",NFCAccess:"00000266-0000-1000-8000-0026BB765291","00000086-0000-1000-8000-0026BB765291":"OccupancySensor",OccupancySensor:"00000086-0000-1000-8000-0026BB765291","00000047-0000-1000-8000-0026BB765291":"Outlet",Outlet:"00000047-0000-1000-8000-0026BB765291","00000055-0000-1000-8000-0026BB765291":"Pairing",Pairing:"00000055-0000-1000-8000-0026BB765291","00000221-0000-1000-8000-0026BB765291":"PowerManagement",PowerManagement:"00000221-0000-1000-8000-0026BB765291","000000A2-0000-1000-8000-0026BB765291":"ProtocolInformation",ProtocolInformation:"000000A2-0000-1000-8000-0026BB765291","0000007E-0000-1000-8000-0026BB765291":"SecuritySystem",SecuritySystem:"0000007E-0000-1000-8000-0026BB765291","000000CC-0000-1000-8000-0026BB765291":"ServiceLabel",ServiceLabel:"000000CC-0000-1000-8000-0026BB765291","00000133-0000-1000-8000-0026BB765291":"Siri",Siri:"00000133-0000-1000-8000-0026BB765291","00000253-0000-1000-8000-0026BB765291":"SiriEndpoint",SiriEndpoint:"00000253-0000-1000-8000-0026BB765291","000000B9-0000-1000-8000-0026BB765291":"Slats",Slats:"000000B9-0000-1000-8000-0026BB765291","00000228-0000-1000-8000-0026BB765291":"SmartSpeaker",SmartSpeaker:"00000228-0000-1000-8000-0026BB765291","00000087-0000-1000-8000-0026BB765291":"SmokeSensor",SmokeSensor:"00000087-0000-1000-8000-0026BB765291","00000113-0000-1000-8000-0026BB765291":"Speaker",Speaker:"00000113-0000-1000-8000-0026BB765291","00000088-0000-1000-8000-0026BB765291":"StatefulProgrammableSwitch",StatefulProgrammableSwitch:"00000088-0000-1000-8000-0026BB765291","00000089-0000-1000-8000-0026BB765291":"StatelessProgrammableSwitch",StatelessProgrammableSwitch:"00000089-0000-1000-8000-0026BB765291","00000049-0000-1000-8000-0026BB765291":"Switch",Switch:"00000049-0000-1000-8000-0026BB765291","0000022E-0000-1000-8000-0026BB765291":"TapManagement",TapManagement:"0000022E-0000-1000-8000-0026BB765291","00000125-0000-1000-8000-0026BB765291":"TargetControl",TargetControl:"00000125-0000-1000-8000-0026BB765291","00000122-0000-1000-8000-0026BB765291":"TargetControlManagement",TargetControlManagement:"00000122-0000-1000-8000-0026BB765291","000000D8-0000-1000-8000-0026BB765291":"Television",Television:"000000D8-0000-1000-8000-0026BB765291",TelevisionSpeaker:"00000113-0000-1000-8000-0026BB765291","0000008A-0000-1000-8000-0026BB765291":"TemperatureSensor",TemperatureSensor:"0000008A-0000-1000-8000-0026BB765291","0000004A-0000-1000-8000-0026BB765291":"Thermostat",Thermostat:"0000004A-0000-1000-8000-0026BB765291","00000701-0000-1000-8000-0026BB765291":"ThreadTransport",ThreadTransport:"00000701-0000-1000-8000-0026BB765291","00000203-0000-1000-8000-0026BB765291":"TransferTransportManagement",TransferTransportManagement:"00000203-0000-1000-8000-0026BB765291","00000056-0000-1000-8000-0026BB765291":"Tunnel",Tunnel:"00000056-0000-1000-8000-0026BB765291","000000D0-0000-1000-8000-0026BB765291":"Valve",Valve:"000000D0-0000-1000-8000-0026BB765291","0000020A-0000-1000-8000-0026BB765291":"WiFiRouter",WiFiRouter:"0000020A-0000-1000-8000-0026BB765291","0000020F-0000-1000-8000-0026BB765291":"WiFiSatellite",WiFiSatellite:"0000020F-0000-1000-8000-0026BB765291","0000022A-0000-1000-8000-0026BB765291":"WiFiTransport",WiFiTransport:"0000022A-0000-1000-8000-0026BB765291","0000008B-0000-1000-8000-0026BB765291":"Window",Window:"0000008B-0000-1000-8000-0026BB765291","0000008C-0000-1000-8000-0026BB765291":"WindowCovering",WindowCovering:"0000008C-0000-1000-8000-0026BB765291"};Ze.Characteristics={"00000262-0000-1000-8000-0026BB765291":"AccessCodeControlPoint",AccessCodeControlPoint:"00000262-0000-1000-8000-0026BB765291","00000261-0000-1000-8000-0026BB765291":"AccessCodeSupportedConfiguration",AccessCodeSupportedConfiguration:"00000261-0000-1000-8000-0026BB765291","000000E5-0000-1000-8000-0026BB765291":"AccessControlLevel",AccessControlLevel:"000000E5-0000-1000-8000-0026BB765291","000000A6-0000-1000-8000-0026BB765291":"AccessoryFlags",AccessoryFlags:"000000A6-0000-1000-8000-0026BB765291","00000057-0000-1000-8000-0026BB765291":"AccessoryIdentifier",AccessoryIdentifier:"00000057-0000-1000-8000-0026BB765291","000000B0-0000-1000-8000-0026BB765291":"Active",Active:"000000B0-0000-1000-8000-0026BB765291","000000E7-0000-1000-8000-0026BB765291":"ActiveIdentifier",ActiveIdentifier:"000000E7-0000-1000-8000-0026BB765291","0000023B-0000-1000-8000-0026BB765291":"ActivityInterval",ActivityInterval:"0000023B-0000-1000-8000-0026BB765291","00000001-0000-1000-8000-0026BB765291":"AdministratorOnlyAccess",AdministratorOnlyAccess:"00000001-0000-1000-8000-0026BB765291","00000064-0000-1000-8000-0026BB765291":"AirParticulateDensity",AirParticulateDensity:"00000064-0000-1000-8000-0026BB765291","00000065-0000-1000-8000-0026BB765291":"AirParticulateSize",AirParticulateSize:"00000065-0000-1000-8000-0026BB765291","0000025B-0000-1000-8000-0026BB765291":"AirPlayEnable",AirPlayEnable:"0000025B-0000-1000-8000-0026BB765291","00000095-0000-1000-8000-0026BB765291":"AirQuality",AirQuality:"00000095-0000-1000-8000-0026BB765291","000000A4-0000-1000-8000-0026BB765291":"AppMatchingIdentifier",AppMatchingIdentifier:"000000A4-0000-1000-8000-0026BB765291","00000269-0000-1000-8000-0026BB765291":"AssetUpdateReadiness",AssetUpdateReadiness:"00000269-0000-1000-8000-0026BB765291","00000005-0000-1000-8000-0026BB765291":"AudioFeedback",AudioFeedback:"00000005-0000-1000-8000-0026BB765291","00000068-0000-1000-8000-0026BB765291":"BatteryLevel",BatteryLevel:"00000068-0000-1000-8000-0026BB765291","00000008-0000-1000-8000-0026BB765291":"Brightness",Brightness:"00000008-0000-1000-8000-0026BB765291","00000126-0000-1000-8000-0026BB765291":"ButtonEvent",ButtonEvent:"00000126-0000-1000-8000-0026BB765291","0000021D-0000-1000-8000-0026BB765291":"CameraOperatingModeIndicator",CameraOperatingModeIndicator:"0000021D-0000-1000-8000-0026BB765291","00000092-0000-1000-8000-0026BB765291":"CarbonDioxideDetected",CarbonDioxideDetected:"00000092-0000-1000-8000-0026BB765291","00000093-0000-1000-8000-0026BB765291":"CarbonDioxideLevel",CarbonDioxideLevel:"00000093-0000-1000-8000-0026BB765291","00000094-0000-1000-8000-0026BB765291":"CarbonDioxidePeakLevel",CarbonDioxidePeakLevel:"00000094-0000-1000-8000-0026BB765291","00000069-0000-1000-8000-0026BB765291":"CarbonMonoxideDetected",CarbonMonoxideDetected:"00000069-0000-1000-8000-0026BB765291","00000090-0000-1000-8000-0026BB765291":"CarbonMonoxideLevel",CarbonMonoxideLevel:"00000090-0000-1000-8000-0026BB765291","00000091-0000-1000-8000-0026BB765291":"CarbonMonoxidePeakLevel",CarbonMonoxidePeakLevel:"00000091-0000-1000-8000-0026BB765291","00000246-0000-1000-8000-0026BB765291":"CCAEnergyDetectThreshold",CCAEnergyDetectThreshold:"00000246-0000-1000-8000-0026BB765291","00000245-0000-1000-8000-0026BB765291":"CCASignalDetectThreshold",CCASignalDetectThreshold:"00000245-0000-1000-8000-0026BB765291","0000024B-0000-1000-8000-0026BB765291":"CharacteristicValueActiveTransitionCount",CharacteristicValueActiveTransitionCount:"0000024B-0000-1000-8000-0026BB765291","00000143-0000-1000-8000-0026BB765291":"CharacteristicValueTransitionControl",CharacteristicValueTransitionControl:"00000143-0000-1000-8000-0026BB765291","0000008F-0000-1000-8000-0026BB765291":"ChargingState",ChargingState:"0000008F-0000-1000-8000-0026BB765291","000000DD-0000-1000-8000-0026BB765291":"ClosedCaptions",ClosedCaptions:"000000DD-0000-1000-8000-0026BB765291","000000CE-0000-1000-8000-0026BB765291":"ColorTemperature",ColorTemperature:"000000CE-0000-1000-8000-0026BB765291","00000263-0000-1000-8000-0026BB765291":"ConfigurationState",ConfigurationState:"00000263-0000-1000-8000-0026BB765291","000000E3-0000-1000-8000-0026BB765291":"ConfiguredName",ConfiguredName:"000000E3-0000-1000-8000-0026BB765291","0000006A-0000-1000-8000-0026BB765291":"ContactSensorState",ContactSensorState:"0000006A-0000-1000-8000-0026BB765291","0000000D-0000-1000-8000-0026BB765291":"CoolingThresholdTemperature",CoolingThresholdTemperature:"0000000D-0000-1000-8000-0026BB765291","00000250-0000-1000-8000-0026BB765291":"CryptoHash",CryptoHash:"00000250-0000-1000-8000-0026BB765291","000000A9-0000-1000-8000-0026BB765291":"CurrentAirPurifierState",CurrentAirPurifierState:"000000A9-0000-1000-8000-0026BB765291","0000006B-0000-1000-8000-0026BB765291":"CurrentAmbientLightLevel",CurrentAmbientLightLevel:"0000006B-0000-1000-8000-0026BB765291","0000000E-0000-1000-8000-0026BB765291":"CurrentDoorState",CurrentDoorState:"0000000E-0000-1000-8000-0026BB765291","000000AF-0000-1000-8000-0026BB765291":"CurrentFanState",CurrentFanState:"000000AF-0000-1000-8000-0026BB765291","000000B1-0000-1000-8000-0026BB765291":"CurrentHeaterCoolerState",CurrentHeaterCoolerState:"000000B1-0000-1000-8000-0026BB765291","0000000F-0000-1000-8000-0026BB765291":"CurrentHeatingCoolingState",CurrentHeatingCoolingState:"0000000F-0000-1000-8000-0026BB765291","0000006C-0000-1000-8000-0026BB765291":"CurrentHorizontalTiltAngle",CurrentHorizontalTiltAngle:"0000006C-0000-1000-8000-0026BB765291","000000B3-0000-1000-8000-0026BB765291":"CurrentHumidifierDehumidifierState",CurrentHumidifierDehumidifierState:"000000B3-0000-1000-8000-0026BB765291","000000E0-0000-1000-8000-0026BB765291":"CurrentMediaState",CurrentMediaState:"000000E0-0000-1000-8000-0026BB765291","0000006D-0000-1000-8000-0026BB765291":"CurrentPosition",CurrentPosition:"0000006D-0000-1000-8000-0026BB765291","00000010-0000-1000-8000-0026BB765291":"CurrentRelativeHumidity",CurrentRelativeHumidity:"00000010-0000-1000-8000-0026BB765291","000000AA-0000-1000-8000-0026BB765291":"CurrentSlatState",CurrentSlatState:"000000AA-0000-1000-8000-0026BB765291","00000011-0000-1000-8000-0026BB765291":"CurrentTemperature",CurrentTemperature:"00000011-0000-1000-8000-0026BB765291","000000C1-0000-1000-8000-0026BB765291":"CurrentTiltAngle",CurrentTiltAngle:"000000C1-0000-1000-8000-0026BB765291","0000022B-0000-1000-8000-0026BB765291":"CurrentTransport",CurrentTransport:"0000022B-0000-1000-8000-0026BB765291","0000006E-0000-1000-8000-0026BB765291":"CurrentVerticalTiltAngle",CurrentVerticalTiltAngle:"0000006E-0000-1000-8000-0026BB765291","00000135-0000-1000-8000-0026BB765291":"CurrentVisibilityState",CurrentVisibilityState:"00000135-0000-1000-8000-0026BB765291","00000138-0000-1000-8000-0026BB765291":"DataStreamHAPTransport",DataStreamHAPTransport:"00000138-0000-1000-8000-0026BB765291","00000139-0000-1000-8000-0026BB765291":"DataStreamHAPTransportInterrupt",DataStreamHAPTransportInterrupt:"00000139-0000-1000-8000-0026BB765291","00000224-0000-1000-8000-0026BB765291":"DiagonalFieldOfView",DiagonalFieldOfView:"00000224-0000-1000-8000-0026BB765291","0000011D-0000-1000-8000-0026BB765291":"DigitalZoom",DigitalZoom:"0000011D-0000-1000-8000-0026BB765291","00000136-0000-1000-8000-0026BB765291":"DisplayOrder",DisplayOrder:"00000136-0000-1000-8000-0026BB765291","0000023D-0000-1000-8000-0026BB765291":"EventRetransmissionMaximum",EventRetransmissionMaximum:"0000023D-0000-1000-8000-0026BB765291","00000223-0000-1000-8000-0026BB765291":"EventSnapshotsActive",EventSnapshotsActive:"00000223-0000-1000-8000-0026BB765291","0000023E-0000-1000-8000-0026BB765291":"EventTransmissionCounters",EventTransmissionCounters:"0000023E-0000-1000-8000-0026BB765291","000000AC-0000-1000-8000-0026BB765291":"FilterChangeIndication",FilterChangeIndication:"000000AC-0000-1000-8000-0026BB765291","000000AB-0000-1000-8000-0026BB765291":"FilterLifeLevel",FilterLifeLevel:"000000AB-0000-1000-8000-0026BB765291","00000052-0000-1000-8000-0026BB765291":"FirmwareRevision",FirmwareRevision:"00000052-0000-1000-8000-0026BB765291","00000234-0000-1000-8000-0026BB765291":"FirmwareUpdateReadiness",FirmwareUpdateReadiness:"00000234-0000-1000-8000-0026BB765291","00000235-0000-1000-8000-0026BB765291":"FirmwareUpdateStatus",FirmwareUpdateStatus:"00000235-0000-1000-8000-0026BB765291","0000026C-0000-1000-8000-0026BB765291":"HardwareFinish",HardwareFinish:"0000026C-0000-1000-8000-0026BB765291","00000053-0000-1000-8000-0026BB765291":"HardwareRevision",HardwareRevision:"00000053-0000-1000-8000-0026BB765291","0000024A-0000-1000-8000-0026BB765291":"HeartBeat",HeartBeat:"0000024A-0000-1000-8000-0026BB765291","00000012-0000-1000-8000-0026BB765291":"HeatingThresholdTemperature",HeatingThresholdTemperature:"00000012-0000-1000-8000-0026BB765291","0000006F-0000-1000-8000-0026BB765291":"HoldPosition",HoldPosition:"0000006F-0000-1000-8000-0026BB765291","0000021B-0000-1000-8000-0026BB765291":"HomeKitCameraActive",HomeKitCameraActive:"0000021B-0000-1000-8000-0026BB765291","00000013-0000-1000-8000-0026BB765291":"Hue",Hue:"00000013-0000-1000-8000-0026BB765291","000000E6-0000-1000-8000-0026BB765291":"Identifier",Identifier:"000000E6-0000-1000-8000-0026BB765291","00000014-0000-1000-8000-0026BB765291":"Identify",Identify:"00000014-0000-1000-8000-0026BB765291","0000011F-0000-1000-8000-0026BB765291":"ImageMirroring",ImageMirroring:"0000011F-0000-1000-8000-0026BB765291","0000011E-0000-1000-8000-0026BB765291":"ImageRotation",ImageRotation:"0000011E-0000-1000-8000-0026BB765291","000000DC-0000-1000-8000-0026BB765291":"InputDeviceType",InputDeviceType:"000000DC-0000-1000-8000-0026BB765291","000000DB-0000-1000-8000-0026BB765291":"InputSourceType",InputSourceType:"000000DB-0000-1000-8000-0026BB765291","000000D2-0000-1000-8000-0026BB765291":"InUse",InUse:"000000D2-0000-1000-8000-0026BB765291","000000D6-0000-1000-8000-0026BB765291":"IsConfigured",IsConfigured:"000000D6-0000-1000-8000-0026BB765291","00000070-0000-1000-8000-0026BB765291":"LeakDetected",LeakDetected:"00000070-0000-1000-8000-0026BB765291","00000050-0000-1000-8000-0026BB765291":"ListPairings",ListPairings:"00000050-0000-1000-8000-0026BB765291","00000019-0000-1000-8000-0026BB765291":"LockControlPoint",LockControlPoint:"00000019-0000-1000-8000-0026BB765291","0000001D-0000-1000-8000-0026BB765291":"LockCurrentState",LockCurrentState:"0000001D-0000-1000-8000-0026BB765291","0000001C-0000-1000-8000-0026BB765291":"LockLastKnownAction",LockLastKnownAction:"0000001C-0000-1000-8000-0026BB765291","0000001A-0000-1000-8000-0026BB765291":"LockManagementAutoSecurityTimeout",LockManagementAutoSecurityTimeout:"0000001A-0000-1000-8000-0026BB765291","000000A7-0000-1000-8000-0026BB765291":"LockPhysicalControls",LockPhysicalControls:"000000A7-0000-1000-8000-0026BB765291","0000001E-0000-1000-8000-0026BB765291":"LockTargetState",LockTargetState:"0000001E-0000-1000-8000-0026BB765291","0000001F-0000-1000-8000-0026BB765291":"Logs",Logs:"0000001F-0000-1000-8000-0026BB765291","00000247-0000-1000-8000-0026BB765291":"MACRetransmissionMaximum",MACRetransmissionMaximum:"00000247-0000-1000-8000-0026BB765291","00000248-0000-1000-8000-0026BB765291":"MACTransmissionCounters",MACTransmissionCounters:"00000248-0000-1000-8000-0026BB765291","00000215-0000-1000-8000-0026BB765291":"ManagedNetworkEnable",ManagedNetworkEnable:"00000215-0000-1000-8000-0026BB765291","00000227-0000-1000-8000-0026BB765291":"ManuallyDisabled",ManuallyDisabled:"00000227-0000-1000-8000-0026BB765291","00000020-0000-1000-8000-0026BB765291":"Manufacturer",Manufacturer:"00000020-0000-1000-8000-0026BB765291","0000026D-0000-1000-8000-0026BB765291":"MatterFirmwareRevisionNumber",MatterFirmwareRevisionNumber:"0000026D-0000-1000-8000-0026BB765291","0000026E-0000-1000-8000-0026BB765291":"MatterFirmwareUpdateStatus",MatterFirmwareUpdateStatus:"0000026E-0000-1000-8000-0026BB765291","00000243-0000-1000-8000-0026BB765291":"MaximumTransmitPower",MaximumTransmitPower:"00000243-0000-1000-8000-0026BB765291","00000272-0000-1000-8000-0026BB765291":"MetricsBufferFullState",MetricsBufferFullState:"00000272-0000-1000-8000-0026BB765291","00000021-0000-1000-8000-0026BB765291":"Model",Model:"00000021-0000-1000-8000-0026BB765291","00000022-0000-1000-8000-0026BB765291":"MotionDetected",MotionDetected:"00000022-0000-1000-8000-0026BB765291","0000026B-0000-1000-8000-0026BB765291":"MultifunctionButton",MultifunctionButton:"0000026B-0000-1000-8000-0026BB765291","0000011A-0000-1000-8000-0026BB765291":"Mute",Mute:"0000011A-0000-1000-8000-0026BB765291","00000023-0000-1000-8000-0026BB765291":"Name",Name:"00000023-0000-1000-8000-0026BB765291","0000021F-0000-1000-8000-0026BB765291":"NetworkAccessViolationControl",NetworkAccessViolationControl:"0000021F-0000-1000-8000-0026BB765291","0000020C-0000-1000-8000-0026BB765291":"NetworkClientProfileControl",NetworkClientProfileControl:"0000020C-0000-1000-8000-0026BB765291","0000020D-0000-1000-8000-0026BB765291":"NetworkClientStatusControl",NetworkClientStatusControl:"0000020D-0000-1000-8000-0026BB765291","00000264-0000-1000-8000-0026BB765291":"NFCAccessControlPoint",NFCAccessControlPoint:"00000264-0000-1000-8000-0026BB765291","00000265-0000-1000-8000-0026BB765291":"NFCAccessSupportedConfiguration",NFCAccessSupportedConfiguration:"00000265-0000-1000-8000-0026BB765291","0000011B-0000-1000-8000-0026BB765291":"NightVision",NightVision:"0000011B-0000-1000-8000-0026BB765291","000000C4-0000-1000-8000-0026BB765291":"NitrogenDioxideDensity",NitrogenDioxideDensity:"000000C4-0000-1000-8000-0026BB765291","00000024-0000-1000-8000-0026BB765291":"ObstructionDetected",ObstructionDetected:"00000024-0000-1000-8000-0026BB765291","00000071-0000-1000-8000-0026BB765291":"OccupancyDetected",OccupancyDetected:"00000071-0000-1000-8000-0026BB765291","00000025-0000-1000-8000-0026BB765291":"On",On:"00000025-0000-1000-8000-0026BB765291","00000232-0000-1000-8000-0026BB765291":"OperatingStateResponse",OperatingStateResponse:"00000232-0000-1000-8000-0026BB765291","0000011C-0000-1000-8000-0026BB765291":"OpticalZoom",OpticalZoom:"0000011C-0000-1000-8000-0026BB765291","00000026-0000-1000-8000-0026BB765291":"OutletInUse",OutletInUse:"00000026-0000-1000-8000-0026BB765291","000000C3-0000-1000-8000-0026BB765291":"OzoneDensity",OzoneDensity:"000000C3-0000-1000-8000-0026BB765291","0000004F-0000-1000-8000-0026BB765291":"PairingFeatures",PairingFeatures:"0000004F-0000-1000-8000-0026BB765291","0000004C-0000-1000-8000-0026BB765291":"PairSetup",PairSetup:"0000004C-0000-1000-8000-0026BB765291","0000004E-0000-1000-8000-0026BB765291":"PairVerify",PairVerify:"0000004E-0000-1000-8000-0026BB765291","000000E4-0000-1000-8000-0026BB765291":"PasswordSetting",PasswordSetting:"000000E4-0000-1000-8000-0026BB765291","00000225-0000-1000-8000-0026BB765291":"PeriodicSnapshotsActive",PeriodicSnapshotsActive:"00000225-0000-1000-8000-0026BB765291","000000E2-0000-1000-8000-0026BB765291":"PictureMode",PictureMode:"000000E2-0000-1000-8000-0026BB765291","0000023C-0000-1000-8000-0026BB765291":"Ping",Ping:"0000023C-0000-1000-8000-0026BB765291","000000C7-0000-1000-8000-0026BB765291":"PM10Density",PM10Density:"000000C7-0000-1000-8000-0026BB765291","000000C6-0000-1000-8000-0026BB765291":"PM2_5Density",PM2_5Density:"000000C6-0000-1000-8000-0026BB765291","00000072-0000-1000-8000-0026BB765291":"PositionState",PositionState:"00000072-0000-1000-8000-0026BB765291","000000DF-0000-1000-8000-0026BB765291":"PowerModeSelection",PowerModeSelection:"000000DF-0000-1000-8000-0026BB765291","00000220-0000-1000-8000-0026BB765291":"ProductData",ProductData:"00000220-0000-1000-8000-0026BB765291","00000073-0000-1000-8000-0026BB765291":"ProgrammableSwitchEvent",ProgrammableSwitchEvent:"00000073-0000-1000-8000-0026BB765291","00000074-0000-1000-8000-0026BB765291":"ProgrammableSwitchOutputState",ProgrammableSwitchOutputState:"00000074-0000-1000-8000-0026BB765291","000000D1-0000-1000-8000-0026BB765291":"ProgramMode",ProgramMode:"000000D1-0000-1000-8000-0026BB765291","0000023F-0000-1000-8000-0026BB765291":"ReceivedSignalStrengthIndication",ReceivedSignalStrengthIndication:"0000023F-0000-1000-8000-0026BB765291","00000244-0000-1000-8000-0026BB765291":"ReceiverSensitivity",ReceiverSensitivity:"00000244-0000-1000-8000-0026BB765291","00000226-0000-1000-8000-0026BB765291":"RecordingAudioActive",RecordingAudioActive:"00000226-0000-1000-8000-0026BB765291","000000C9-0000-1000-8000-0026BB765291":"RelativeHumidityDehumidifierThreshold",RelativeHumidityDehumidifierThreshold:"000000C9-0000-1000-8000-0026BB765291","000000CA-0000-1000-8000-0026BB765291":"RelativeHumidityHumidifierThreshold",RelativeHumidityHumidifierThreshold:"000000CA-0000-1000-8000-0026BB765291","0000005E-0000-1000-8000-0026BB765291":"RelayControlPoint",RelayControlPoint:"0000005E-0000-1000-8000-0026BB765291","0000005B-0000-1000-8000-0026BB765291":"RelayEnabled",RelayEnabled:"0000005B-0000-1000-8000-0026BB765291","0000005C-0000-1000-8000-0026BB765291":"RelayState",RelayState:"0000005C-0000-1000-8000-0026BB765291","000000D4-0000-1000-8000-0026BB765291":"RemainingDuration",RemainingDuration:"000000D4-0000-1000-8000-0026BB765291","000000E1-0000-1000-8000-0026BB765291":"RemoteKey",RemoteKey:"000000E1-0000-1000-8000-0026BB765291","000000AD-0000-1000-8000-0026BB765291":"ResetFilterIndication",ResetFilterIndication:"000000AD-0000-1000-8000-0026BB765291","00000028-0000-1000-8000-0026BB765291":"RotationDirection",RotationDirection:"00000028-0000-1000-8000-0026BB765291","00000029-0000-1000-8000-0026BB765291":"RotationSpeed",RotationSpeed:"00000029-0000-1000-8000-0026BB765291","0000020E-0000-1000-8000-0026BB765291":"RouterStatus",RouterStatus:"0000020E-0000-1000-8000-0026BB765291","0000002F-0000-1000-8000-0026BB765291":"Saturation",Saturation:"0000002F-0000-1000-8000-0026BB765291","0000008E-0000-1000-8000-0026BB765291":"SecuritySystemAlarmType",SecuritySystemAlarmType:"0000008E-0000-1000-8000-0026BB765291","00000066-0000-1000-8000-0026BB765291":"SecuritySystemCurrentState",SecuritySystemCurrentState:"00000066-0000-1000-8000-0026BB765291","00000067-0000-1000-8000-0026BB765291":"SecuritySystemTargetState",SecuritySystemTargetState:"00000067-0000-1000-8000-0026BB765291","00000128-0000-1000-8000-0026BB765291":"SelectedAudioStreamConfiguration",SelectedAudioStreamConfiguration:"00000128-0000-1000-8000-0026BB765291","00000209-0000-1000-8000-0026BB765291":"SelectedCameraRecordingConfiguration",SelectedCameraRecordingConfiguration:"00000209-0000-1000-8000-0026BB765291","0000024D-0000-1000-8000-0026BB765291":"SelectedDiagnosticsModes",SelectedDiagnosticsModes:"0000024D-0000-1000-8000-0026BB765291","00000117-0000-1000-8000-0026BB765291":"SelectedRTPStreamConfiguration",SelectedRTPStreamConfiguration:"00000117-0000-1000-8000-0026BB765291","00000252-0000-1000-8000-0026BB765291":"SelectedSleepConfiguration",SelectedSleepConfiguration:"00000252-0000-1000-8000-0026BB765291","00000030-0000-1000-8000-0026BB765291":"SerialNumber",SerialNumber:"00000030-0000-1000-8000-0026BB765291","000000CB-0000-1000-8000-0026BB765291":"ServiceLabelIndex",ServiceLabelIndex:"000000CB-0000-1000-8000-0026BB765291","000000CD-0000-1000-8000-0026BB765291":"ServiceLabelNamespace",ServiceLabelNamespace:"000000CD-0000-1000-8000-0026BB765291","000000D3-0000-1000-8000-0026BB765291":"SetDuration",SetDuration:"000000D3-0000-1000-8000-0026BB765291","00000131-0000-1000-8000-0026BB765291":"SetupDataStreamTransport",SetupDataStreamTransport:"00000131-0000-1000-8000-0026BB765291","00000118-0000-1000-8000-0026BB765291":"SetupEndpoints",SetupEndpoints:"00000118-0000-1000-8000-0026BB765291","00000201-0000-1000-8000-0026BB765291":"SetupTransferTransport",SetupTransferTransport:"00000201-0000-1000-8000-0026BB765291","00000241-0000-1000-8000-0026BB765291":"SignalToNoiseRatio",SignalToNoiseRatio:"00000241-0000-1000-8000-0026BB765291","00000255-0000-1000-8000-0026BB765291":"SiriEnable",SiriEnable:"00000255-0000-1000-8000-0026BB765291","00000254-0000-1000-8000-0026BB765291":"SiriEndpointSessionStatus",SiriEndpointSessionStatus:"00000254-0000-1000-8000-0026BB765291","0000025A-0000-1000-8000-0026BB765291":"SiriEngineVersion",SiriEngineVersion:"0000025A-0000-1000-8000-0026BB765291","00000132-0000-1000-8000-0026BB765291":"SiriInputType",SiriInputType:"00000132-0000-1000-8000-0026BB765291","00000258-0000-1000-8000-0026BB765291":"SiriLightOnUse",SiriLightOnUse:"00000258-0000-1000-8000-0026BB765291","00000256-0000-1000-8000-0026BB765291":"SiriListening",SiriListening:"00000256-0000-1000-8000-0026BB765291","00000257-0000-1000-8000-0026BB765291":"SiriTouchToUse",SiriTouchToUse:"00000257-0000-1000-8000-0026BB765291","000000C0-0000-1000-8000-0026BB765291":"SlatType",SlatType:"000000C0-0000-1000-8000-0026BB765291","000000E8-0000-1000-8000-0026BB765291":"SleepDiscoveryMode",SleepDiscoveryMode:"000000E8-0000-1000-8000-0026BB765291","0000023A-0000-1000-8000-0026BB765291":"SleepInterval",SleepInterval:"0000023A-0000-1000-8000-0026BB765291","00000076-0000-1000-8000-0026BB765291":"SmokeDetected",SmokeDetected:"00000076-0000-1000-8000-0026BB765291","00000054-0000-1000-8000-0026BB765291":"SoftwareRevision",SoftwareRevision:"00000054-0000-1000-8000-0026BB765291","00000249-0000-1000-8000-0026BB765291":"StagedFirmwareVersion",StagedFirmwareVersion:"00000249-0000-1000-8000-0026BB765291","00000075-0000-1000-8000-0026BB765291":"StatusActive",StatusActive:"00000075-0000-1000-8000-0026BB765291","00000077-0000-1000-8000-0026BB765291":"StatusFault",StatusFault:"00000077-0000-1000-8000-0026BB765291","00000078-0000-1000-8000-0026BB765291":"StatusJammed",StatusJammed:"00000078-0000-1000-8000-0026BB765291","00000079-0000-1000-8000-0026BB765291":"StatusLowBattery",StatusLowBattery:"00000079-0000-1000-8000-0026BB765291","0000007A-0000-1000-8000-0026BB765291":"StatusTampered",StatusTampered:"0000007A-0000-1000-8000-0026BB765291","00000120-0000-1000-8000-0026BB765291":"StreamingStatus",StreamingStatus:"00000120-0000-1000-8000-0026BB765291","000000C5-0000-1000-8000-0026BB765291":"SulphurDioxideDensity",SulphurDioxideDensity:"000000C5-0000-1000-8000-0026BB765291","00000268-0000-1000-8000-0026BB765291":"SupportedAssetTypes",SupportedAssetTypes:"00000268-0000-1000-8000-0026BB765291","00000207-0000-1000-8000-0026BB765291":"SupportedAudioRecordingConfiguration",SupportedAudioRecordingConfiguration:"00000207-0000-1000-8000-0026BB765291","00000115-0000-1000-8000-0026BB765291":"SupportedAudioStreamConfiguration",SupportedAudioStreamConfiguration:"00000115-0000-1000-8000-0026BB765291","00000205-0000-1000-8000-0026BB765291":"SupportedCameraRecordingConfiguration",SupportedCameraRecordingConfiguration:"00000205-0000-1000-8000-0026BB765291","00000144-0000-1000-8000-0026BB765291":"SupportedCharacteristicValueTransitionConfiguration",SupportedCharacteristicValueTransitionConfiguration:"00000144-0000-1000-8000-0026BB765291","00000130-0000-1000-8000-0026BB765291":"SupportedDataStreamTransportConfiguration",SupportedDataStreamTransportConfiguration:"00000130-0000-1000-8000-0026BB765291","0000024C-0000-1000-8000-0026BB765291":"SupportedDiagnosticsModes",SupportedDiagnosticsModes:"0000024C-0000-1000-8000-0026BB765291","00000238-0000-1000-8000-0026BB765291":"SupportedDiagnosticsSnapshot",SupportedDiagnosticsSnapshot:"00000238-0000-1000-8000-0026BB765291","00000233-0000-1000-8000-0026BB765291":"SupportedFirmwareUpdateConfiguration",SupportedFirmwareUpdateConfiguration:"00000233-0000-1000-8000-0026BB765291","00000271-0000-1000-8000-0026BB765291":"SupportedMetrics",SupportedMetrics:"00000271-0000-1000-8000-0026BB765291","00000210-0000-1000-8000-0026BB765291":"SupportedRouterConfiguration",SupportedRouterConfiguration:"00000210-0000-1000-8000-0026BB765291","00000116-0000-1000-8000-0026BB765291":"SupportedRTPConfiguration",SupportedRTPConfiguration:"00000116-0000-1000-8000-0026BB765291","00000251-0000-1000-8000-0026BB765291":"SupportedSleepConfiguration",SupportedSleepConfiguration:"00000251-0000-1000-8000-0026BB765291","00000202-0000-1000-8000-0026BB765291":"SupportedTransferTransportConfiguration",SupportedTransferTransportConfiguration:"00000202-0000-1000-8000-0026BB765291","00000206-0000-1000-8000-0026BB765291":"SupportedVideoRecordingConfiguration",SupportedVideoRecordingConfiguration:"00000206-0000-1000-8000-0026BB765291","00000114-0000-1000-8000-0026BB765291":"SupportedVideoStreamConfiguration",SupportedVideoStreamConfiguration:"00000114-0000-1000-8000-0026BB765291","000000B6-0000-1000-8000-0026BB765291":"SwingMode",SwingMode:"000000B6-0000-1000-8000-0026BB765291","0000022F-0000-1000-8000-0026BB765291":"TapType",TapType:"0000022F-0000-1000-8000-0026BB765291","000000A8-0000-1000-8000-0026BB765291":"TargetAirPurifierState",TargetAirPurifierState:"000000A8-0000-1000-8000-0026BB765291","00000124-0000-1000-8000-0026BB765291":"TargetControlList",TargetControlList:"00000124-0000-1000-8000-0026BB765291","00000123-0000-1000-8000-0026BB765291":"TargetControlSupportedConfiguration",TargetControlSupportedConfiguration:"00000123-0000-1000-8000-0026BB765291","00000032-0000-1000-8000-0026BB765291":"TargetDoorState",TargetDoorState:"00000032-0000-1000-8000-0026BB765291","000000BF-0000-1000-8000-0026BB765291":"TargetFanState",TargetFanState:"000000BF-0000-1000-8000-0026BB765291","000000B2-0000-1000-8000-0026BB765291":"TargetHeaterCoolerState",TargetHeaterCoolerState:"000000B2-0000-1000-8000-0026BB765291","00000033-0000-1000-8000-0026BB765291":"TargetHeatingCoolingState",TargetHeatingCoolingState:"00000033-0000-1000-8000-0026BB765291","0000007B-0000-1000-8000-0026BB765291":"TargetHorizontalTiltAngle",TargetHorizontalTiltAngle:"0000007B-0000-1000-8000-0026BB765291","000000B4-0000-1000-8000-0026BB765291":"TargetHumidifierDehumidifierState",TargetHumidifierDehumidifierState:"000000B4-0000-1000-8000-0026BB765291","00000137-0000-1000-8000-0026BB765291":"TargetMediaState",TargetMediaState:"00000137-0000-1000-8000-0026BB765291","0000007C-0000-1000-8000-0026BB765291":"TargetPosition",TargetPosition:"0000007C-0000-1000-8000-0026BB765291","00000034-0000-1000-8000-0026BB765291":"TargetRelativeHumidity",TargetRelativeHumidity:"00000034-0000-1000-8000-0026BB765291","00000035-0000-1000-8000-0026BB765291":"TargetTemperature",TargetTemperature:"00000035-0000-1000-8000-0026BB765291","000000C2-0000-1000-8000-0026BB765291":"TargetTiltAngle",TargetTiltAngle:"000000C2-0000-1000-8000-0026BB765291","0000007D-0000-1000-8000-0026BB765291":"TargetVerticalTiltAngle",TargetVerticalTiltAngle:"0000007D-0000-1000-8000-0026BB765291","00000134-0000-1000-8000-0026BB765291":"TargetVisibilityState",TargetVisibilityState:"00000134-0000-1000-8000-0026BB765291","00000036-0000-1000-8000-0026BB765291":"TemperatureDisplayUnits",TemperatureDisplayUnits:"00000036-0000-1000-8000-0026BB765291","0000021C-0000-1000-8000-0026BB765291":"ThirdPartyCameraActive",ThirdPartyCameraActive:"0000021C-0000-1000-8000-0026BB765291","00000704-0000-1000-8000-0026BB765291":"ThreadControlPoint",ThreadControlPoint:"00000704-0000-1000-8000-0026BB765291","00000702-0000-1000-8000-0026BB765291":"ThreadNodeCapabilities",ThreadNodeCapabilities:"00000702-0000-1000-8000-0026BB765291","00000706-0000-1000-8000-0026BB765291":"ThreadOpenThreadVersion",ThreadOpenThreadVersion:"00000706-0000-1000-8000-0026BB765291","00000703-0000-1000-8000-0026BB765291":"ThreadStatus",ThreadStatus:"00000703-0000-1000-8000-0026BB765291","00000231-0000-1000-8000-0026BB765291":"Token",Token:"00000231-0000-1000-8000-0026BB765291","00000242-0000-1000-8000-0026BB765291":"TransmitPower",TransmitPower:"00000242-0000-1000-8000-0026BB765291","00000061-0000-1000-8000-0026BB765291":"TunnelConnectionTimeout",TunnelConnectionTimeout:"00000061-0000-1000-8000-0026BB765291","00000060-0000-1000-8000-0026BB765291":"TunneledAccessoryAdvertising",TunneledAccessoryAdvertising:"00000060-0000-1000-8000-0026BB765291","00000059-0000-1000-8000-0026BB765291":"TunneledAccessoryConnected",TunneledAccessoryConnected:"00000059-0000-1000-8000-0026BB765291","00000058-0000-1000-8000-0026BB765291":"TunneledAccessoryStateNumber",TunneledAccessoryStateNumber:"00000058-0000-1000-8000-0026BB765291","000000D5-0000-1000-8000-0026BB765291":"ValveType",ValveType:"000000D5-0000-1000-8000-0026BB765291","00000037-0000-1000-8000-0026BB765291":"Version",Version:"00000037-0000-1000-8000-0026BB765291","00000229-0000-1000-8000-0026BB765291":"VideoAnalysisActive",VideoAnalysisActive:"00000229-0000-1000-8000-0026BB765291","000000C8-0000-1000-8000-0026BB765291":"VOCDensity",VOCDensity:"000000C8-0000-1000-8000-0026BB765291","00000119-0000-1000-8000-0026BB765291":"Volume",Volume:"00000119-0000-1000-8000-0026BB765291","000000E9-0000-1000-8000-0026BB765291":"VolumeControlType",VolumeControlType:"000000E9-0000-1000-8000-0026BB765291","000000EA-0000-1000-8000-0026BB765291":"VolumeSelector",VolumeSelector:"000000EA-0000-1000-8000-0026BB765291","00000222-0000-1000-8000-0026BB765291":"WakeConfiguration",WakeConfiguration:"00000222-0000-1000-8000-0026BB765291","00000211-0000-1000-8000-0026BB765291":"WANConfigurationList",WANConfigurationList:"00000211-0000-1000-8000-0026BB765291","00000212-0000-1000-8000-0026BB765291":"WANStatusList",WANStatusList:"00000212-0000-1000-8000-0026BB765291","000000B5-0000-1000-8000-0026BB765291":"WaterLevel",WaterLevel:"000000B5-0000-1000-8000-0026BB765291","0000022C-0000-1000-8000-0026BB765291":"WiFiCapabilities",WiFiCapabilities:"0000022C-0000-1000-8000-0026BB765291","0000022D-0000-1000-8000-0026BB765291":"WiFiConfigurationControl",WiFiConfigurationControl:"0000022D-0000-1000-8000-0026BB765291","0000021E-0000-1000-8000-0026BB765291":"WiFiSatelliteStatus",WiFiSatelliteStatus:"0000021E-0000-1000-8000-0026BB765291"};Ze.Categories={OTHER:1,BRIDGE:2,FAN:3,GARAGE_DOOR_OPENER:4,LIGHTBULB:5,DOOR_LOCK:6,OUTLET:7,SWITCH:8,THERMOSTAT:9,SENSOR:10,ALARM_SYSTEM:11,SECURITY_SYSTEM:11,DOOR:12,WINDOW:13,WINDOW_COVERING:14,PROGRAMMABLE_SWITCH:15,RANGE_EXTENDER:16,CAMERA:17,IP_CAMERA:17,VIDEO_DOORBELL:18,AIR_PURIFIER:19,AIR_HEATER:20,AIR_CONDITIONER:21,AIR_HUMIDIFIER:22,AIR_DEHUMIDIFIER:23,APPLE_TV:24,HOMEPOD:25,SPEAKER:26,AIRPORT:27,SPRINKLER:28,FAUCET:29,SHOWER_HEAD:30,TELEVISION:31,TARGET_CONTROLLER:32,ROUTER:33,AUDIO_RECEIVER:34,TV_SET_TOP_BOX:35,TV_STREAMING_STICK:36};Ze.Enums={AccessoryFlags:{1:"REQUIRES_ADDITIONAL_SETUP_BIT_MASK"},Active:{0:"INACTIVE",1:"ACTIVE"},AirParticulateSize:{0:"_2_5_M",1:"_10_M"},AirQuality:{0:"UNKNOWN",1:"EXCELLENT",2:"GOOD",3:"FAIR",4:"INFERIOR",5:"POOR"},CameraOperatingModeIndicator:{0:"DISABLE",1:"ENABLE"},CarbonDioxideDetected:{0:"CO2_LEVELS_NORMAL",1:"CO2_LEVELS_ABNORMAL"},CarbonMonoxideDetected:{0:"CO_LEVELS_NORMAL",1:"CO_LEVELS_ABNORMAL"},ChargingState:{0:"NOT_CHARGING",1:"CHARGING",2:"NOT_CHARGEABLE"},ClosedCaptions:{0:"DISABLED",1:"ENABLED"},ContactSensorState:{0:"CONTACT_DETECTED",1:"CONTACT_NOT_DETECTED"},CurrentAirPurifierState:{0:"INACTIVE",1:"IDLE",2:"PURIFYING_AIR"},CurrentDoorState:{0:"OPEN",1:"CLOSED",2:"OPENING",3:"CLOSING",4:"STOPPED"},CurrentFanState:{0:"INACTIVE",1:"IDLE",2:"BLOWING_AIR"},CurrentHeaterCoolerState:{0:"INACTIVE",1:"IDLE",2:"HEATING",3:"COOLING"},CurrentHeatingCoolingState:{0:"OFF",1:"HEAT",2:"COOL"},CurrentHumidifierDehumidifierState:{0:"INACTIVE",1:"IDLE",2:"HUMIDIFYING",3:"DEHUMIDIFYING"},CurrentMediaState:{0:"PLAY",1:"PAUSE",2:"STOP",4:"LOADING",5:"INTERRUPTED"},CurrentSlatState:{0:"FIXED",1:"JAMMED",2:"SWINGING"},CurrentVisibilityState:{0:"SHOWN",1:"HIDDEN"},EventSnapshotsActive:{0:"DISABLE",1:"ENABLE"},FilterChangeIndication:{0:"FILTER_OK",1:"CHANGE_FILTER"},HomeKitCameraActive:{0:"OFF",1:"ON"},InputDeviceType:{0:"OTHER",1:"TV",2:"RECORDING",3:"TUNER",4:"PLAYBACK",5:"AUDIO_SYSTEM"},InputSourceType:{0:"OTHER",1:"HOME_SCREEN",2:"TUNER",3:"HDMI",4:"COMPOSITE_VIDEO",5:"S_VIDEO",6:"COMPONENT_VIDEO",7:"DVI",8:"AIRPLAY",9:"USB",10:"APPLICATION"},InUse:{0:"NOT_IN_USE",1:"IN_USE"},IsConfigured:{0:"NOT_CONFIGURED",1:"CONFIGURED"},LeakDetected:{0:"LEAK_NOT_DETECTED",1:"LEAK_DETECTED"},LockCurrentState:{0:"UNSECURED",1:"SECURED",2:"JAMMED",3:"UNKNOWN"},LockLastKnownAction:{0:"SECURED_PHYSICALLY_INTERIOR",1:"UNSECURED_PHYSICALLY_INTERIOR",2:"SECURED_PHYSICALLY_EXTERIOR",3:"UNSECURED_PHYSICALLY_EXTERIOR",4:"SECURED_BY_KEYPAD",5:"UNSECURED_BY_KEYPAD",6:"SECURED_REMOTELY",7:"UNSECURED_REMOTELY",8:"SECURED_BY_AUTO_SECURE_TIMEOUT",9:"SECURED_PHYSICALLY",10:"UNSECURED_PHYSICALLY"},LockPhysicalControls:{0:"CONTROL_LOCK_DISABLED",1:"CONTROL_LOCK_ENABLED"},LockTargetState:{0:"UNSECURED",1:"SECURED"},ManagedNetworkEnable:{0:"DISABLED",1:"ENABLED"},ManuallyDisabled:{0:"ENABLED",1:"DISABLED"},OccupancyDetected:{0:"OCCUPANCY_NOT_DETECTED",1:"OCCUPANCY_DETECTED"},PeriodicSnapshotsActive:{0:"DISABLE",1:"ENABLE"},PictureMode:{0:"OTHER",1:"STANDARD",2:"CALIBRATED",3:"CALIBRATED_DARK",4:"VIVID",5:"GAME",6:"COMPUTER",7:"CUSTOM"},PositionState:{0:"DECREASING",1:"INCREASING",2:"STOPPED"},PowerModeSelection:{0:"SHOW",1:"HIDE"},ProgrammableSwitchEvent:{0:"SINGLE_PRESS",1:"DOUBLE_PRESS",2:"LONG_PRESS"},ProgramMode:{0:"NO_PROGRAM_SCHEDULED",1:"PROGRAM_SCHEDULED",2:"PROGRAM_SCHEDULED_MANUAL_MODE"},RecordingAudioActive:{0:"DISABLE",1:"ENABLE"},RemoteKey:{0:"REWIND",1:"FAST_FORWARD",2:"NEXT_TRACK",3:"PREVIOUS_TRACK",4:"ARROW_UP",5:"ARROW_DOWN",6:"ARROW_LEFT",7:"ARROW_RIGHT",8:"SELECT",9:"BACK",10:"EXIT",11:"PLAY_PAUSE",15:"INFORMATION"},RotationDirection:{0:"CLOCKWISE",1:"COUNTER_CLOCKWISE"},RouterStatus:{0:"READY",1:"NOT_READY"},SecuritySystemAlarmType:{0:"NO_ALARM",1:"UNKNOWN"},SecuritySystemCurrentState:{0:"STAY_ARM",1:"AWAY_ARM",2:"NIGHT_ARM",3:"DISARMED",4:"ALARM_TRIGGERED"},SecuritySystemTargetState:{0:"STAY_ARM",1:"AWAY_ARM",2:"NIGHT_ARM",3:"DISARM"},ServiceLabelNamespace:{0:"DOTS",1:"ARABIC_NUMERALS"},SiriInputType:{0:"PUSH_BUTTON_TRIGGERED_APPLE_TV"},SlatType:{0:"HORIZONTAL",1:"VERTICAL"},SleepDiscoveryMode:{0:"NOT_DISCOVERABLE",1:"ALWAYS_DISCOVERABLE"},SmokeDetected:{0:"SMOKE_NOT_DETECTED",1:"SMOKE_DETECTED"},StatusFault:{0:"NO_FAULT",1:"GENERAL_FAULT"},StatusJammed:{0:"NOT_JAMMED",1:"JAMMED"},StatusLowBattery:{0:"BATTERY_LEVEL_NORMAL",1:"BATTERY_LEVEL_LOW"},StatusTampered:{0:"NOT_TAMPERED",1:"TAMPERED"},SwingMode:{0:"SWING_DISABLED",1:"SWING_ENABLED"},TargetAirPurifierState:{0:"MANUAL",1:"AUTO"},TargetDoorState:{0:"OPEN",1:"CLOSED"},TargetFanState:{0:"MANUAL",1:"AUTO"},TargetHeaterCoolerState:{0:"AUTO",1:"HEAT",2:"COOL"},TargetHeatingCoolingState:{0:"OFF",1:"HEAT",2:"COOL",3:"AUTO"},TargetHumidifierDehumidifierState:{0:"HUMIDIFIER_OR_DEHUMIDIFIER",1:"HUMIDIFIER",2:"DEHUMIDIFIER"},TargetMediaState:{0:"PLAY",1:"PAUSE",2:"STOP"},TargetVisibilityState:{0:"SHOWN",1:"HIDDEN"},TemperatureDisplayUnits:{0:"CELSIUS",1:"FAHRENHEIT"},ThirdPartyCameraActive:{0:"OFF",1:"ON"},ValveType:{0:"GENERIC_VALVE",1:"IRRIGATION",2:"SHOWER_HEAD",3:"WATER_FAUCET"},VolumeControlType:{0:"NONE",1:"RELATIVE",2:"RELATIVE_WITH_CURRENT",3:"ABSOLUTE"},VolumeSelector:{0:"INCREMENT",1:"DECREMENT"},WiFiSatelliteStatus:{0:"UNKNOWN",1:"CONNECTED",2:"NOT_CONNECTED"}}});var Dn=x0(En(),1);var it=(()=>{class e{transform(t){if(typeof t!="number")return t;let o=1e6/t,i=Math.round(t),p=Math.round(o);return`${i}M (${p}K)`}static \u0275fac=function(o){return new(o||e)};static \u0275pipe=Ke({name:"convertMired",type:e,pure:!0})}return e})();var we=(()=>{class e{$settings=D(ye);transform(t,o=this.$settings.env.temperatureUnits){return o==="f"?Math.round((t*1.8+32)*10)/10:Math.round(t*10)/10}static \u0275fac=function(o){return new(o||e)};static \u0275pipe=Ke({name:"convertTemp",type:e,pure:!0})}return e})();var An=(()=>{class e{transform(t){return typeof t!="string"?t:t.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().replace(/\b\w/g,o=>o.toUpperCase()).trim()}static \u0275fac=function(o){return new(o||e)};static \u0275pipe=Ke({name:"prettify",type:e,pure:!0})}return e})();var In=(()=>{class e{transform(t){return typeof t!="string"||!t?t:`accessories.core.${t.replace(/^([A-Z])/,i=>i.toLowerCase()).replace(/([A-Z])/g,i=>`_${i.toLowerCase()}`)}`}static \u0275fac=function(o){return new(o||e)};static \u0275pipe=Ke({name:"serviceToTranslationString",type:e,pure:!0})}return e})();var y0=(e,r)=>r.name,S0=(e,r)=>r.key;function k0(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" (",c(1,1,"settings.display.menu_default"),") ")}function T0(e,r){if(e&1&&(a(0,"option",28),d(1),s(2,"serviceToTranslationString"),s(3,"translate"),h(4,k0,2,3),l()),e&2){let t=r.$implicit,o=m(2);T("value",t),n(),g(" ",c(3,5,c(2,3,t))," "),n(3),C(o.isDefaultType(t)?4:-1)}}function b0(e,r){if(e&1){let t=$();a(0,"li",8)(1,"label",26),d(2),s(3,"translate"),l(),a(4,"div",10)(5,"select",27),q("ngModelChange",function(i){L(t);let p=m();return K(p.service.customType,i)||(p.service.customType=i),V(i)}),We(6,T0,5,7,"option",28,qe),l()()()}if(e&2){let t=m();n(2),f(c(3,2,"accessories.custom_type")),n(3),z("ngModel",t.service.customType),n(),Ue(t.customTypeList.sort())}}function B0(e,r){if(e&1){let t=$();a(0,"li",12)(1,"span",13),d(2),s(3,"translate"),l(),a(4,"div",14)(5,"input",29),s(6,"translate"),q("ngModelChange",function(i){L(t);let p=m();return K(p.service.onDashboard,i)||(p.service.onDashboard=i),V(i)}),l(),u(7,"label",30),l()()}if(e&2){let t=m();n(2),f(c(3,3,"accessories.show_on_dashboard")),n(3),z("ngModel",t.service.onDashboard),x("aria-label",c(6,5,"accessories.show_on_dashboard"))}}function M0(e,r){if(e&1&&(a(0,"small"),d(1),l()),e&2){let t=m().$implicit,o=m(3);n(),f(o.JSON.stringify(t.value,null,2))}}function w0(e,r){if(e&1&&d(0),e&2){let t=m().$implicit;g(" ",t.value," ")}}function E0(e,r){if(e&1&&(a(0,"li",32)(1,"span",33),d(2),s(3,"prettify"),l(),a(4,"span",21),h(5,M0,2,1,"small")(6,w0,1,1),l()()),e&2){let t=r.$implicit;n(2),f(c(3,2,t.key)),n(3),C(typeof t.value=="object"?5:6)}}function A0(e,r){if(e&1&&(a(0,"li",18)(1,"span",31),d(2),s(3,"prettify"),l()(),We(4,E0,7,4,"li",32,S0),s(6,"keyvalue")),e&2){let t=r.$implicit;n(2),f(c(3,1,t.name)),n(2),Ue(c(6,3,t.attributes))}}function I0(e,r){if(e&1&&(a(0,"li",18)(1,"h6",19),d(2),s(3,"translate"),l()(),We(4,A0,7,5,null,null,y0)),e&2){let t=m();n(2),f(c(3,1,"accessories.service_info")),n(2),Ue(t.clusterInfo)}}function D0(e,r){if(e&1){let t=$();a(0,"span",38),S("click",function(){L(t);let i=m().$implicit,p=m(2);return V(p.toggleDetailsVisibility(i))}),d(1),l()}if(e&2){let t=m().$implicit,o=m(2);x("aria-expanded",o.isDetailsVisible[t.uuid]),n(),f(t.description)}}function L0(e,r){if(e&1&&d(0),e&2){let t=m().$implicit;g(" ",t.description," ")}}function V0(e,r){if(e&1&&(a(0,"div"),d(1),l()),e&2){let t=m(2).$implicit;n(),g("Step: ",t.minStep)}}function F0(e,r){if(e&1&&(a(0,"div"),d(1),l()),e&2){let t=m(2).$implicit;n(),g("Min: ",t.minValue)}}function P0(e,r){if(e&1&&(a(0,"div"),d(1),l()),e&2){let t=m(2).$implicit;n(),g("Max: ",t.maxValue)}}function O0(e,r){e&1&&d(0," \xB7 ")}function H0(e,r){if(e&1&&(d(0),h(1,O0,1,0)),e&2){let t=r.$implicit,o=r.$index,i=r.$count;g(" ",t," "),n(),C(o!==i-1?1:-1)}}function N0(e,r){if(e&1&&(a(0,"div"),d(1," Valid: "),We(2,H0,2,2,null,null,qe),l()),e&2){let t=m(2).$implicit;n(2),Ue(t.validValues)}}function R0(e,r){if(e&1&&(a(0,"div",35),h(1,V0,2,1,"div"),h(2,F0,2,1,"div"),h(3,P0,2,1,"div"),h(4,N0,4,0,"div"),l()),e&2){let t=m().$implicit;n(),C("minStep"in t?1:-1),n(),C("minValue"in t?2:-1),n(),C("maxValue"in t?3:-1),n(),C("validValues"in t?4:-1)}}function W0(e,r){e&1&&d(0," Value: ")}function U0(e,r){if(e&1&&d(0),e&2){let t=m().$implicit;g(" ",t.value,"% ")}}function $0(e,r){if(e&1&&(d(0),s(1,"convertTemp")),e&2){let t=m().$implicit,o=m(2);g(" ",c(1,1,o.Number(t.value)),"\xB0 ")}}function G0(e,r){if(e&1&&(d(0),s(1,"convertMired")),e&2){let t=m(2).$implicit;g(" ",c(1,1,t.value)," ")}}function j0(e,r){if(e&1&&d(0),e&2){let t=m(2).$implicit;g(" ",t.value," ")}}function z0(e,r){if(e&1&&h(0,G0,2,3)(1,j0,1,1),e&2){let t,o=m().$implicit;C((t=o.type)==="ColorTemperature"?0:1)}}function K0(e,r){if(e&1&&(d(0),s(1,"prettify")),e&2){let t=m().$implicit,o=m(2);g(" (",c(1,1,o.enums[t.type][t.value]),") ")}}function q0(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m().$implicit;g(" (",c(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function Z0(e,r){if(e&1&&d(0),e&2){let t=m().$implicit;g(" ",t.value,"% ")}}function Y0(e,r){if(e&1&&(d(0),s(1,"convertTemp")),e&2){let t=m().$implicit,o=m(2);g(" ",c(1,1,o.Number(t.value)),"\xB0 ")}}function Q0(e,r){if(e&1&&(d(0),s(1,"convertMired")),e&2){let t=m(2).$implicit;g(" ",c(1,1,t.value)," ")}}function J0(e,r){if(e&1&&d(0),e&2){let t=m(2).$implicit;g(" ",t.value," ")}}function X0(e,r){if(e&1&&h(0,Q0,2,3)(1,J0,1,1),e&2){let t,o=m().$implicit;C((t=o.type)==="ColorTemperature"?0:1)}}function ea(e,r){if(e&1&&(d(0),s(1,"prettify")),e&2){let t=m().$implicit,o=m(2);g(" (",c(1,1,o.enums[t.type][t.value]),") ")}}function ta(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m().$implicit;g(" (",c(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function ia(e,r){if(e&1&&(a(0,"li",20)(1,"span"),h(2,D0,2,2,"span",34)(3,L0,1,1),h(4,R0,5,4,"div",35),a(5,"div",36),h(6,W0,1,0),h(7,U0,1,1)(8,$0,2,3)(9,z0,2,1),h(10,K0,2,3)(11,q0,2,3),l()(),a(12,"span",37),h(13,Z0,1,1)(14,Y0,2,3)(15,X0,2,1),h(16,ea,2,3)(17,ta,2,3),l()()),e&2){let t,o,i=r.$implicit,p=m(2);n(2),C("minStep"in i||"minValue"in i||"maxValue"in i||"validValues"in i?2:3),n(2),C(p.isDetailsVisible[i.uuid]?4:-1),n(2),C(p.isDetailsVisible[i.uuid]?6:-1),n(),C((t=i.unit)==="percentage"?7:t==="celsius"?8:9),n(3),C(p.enums[i.type]!=null&&p.enums[i.type][i.value]?10:i.format==="bool"?11:-1),n(3),C((o=i.unit)==="percentage"?13:o==="celsius"?14:15),n(3),C(p.enums[i.type]!=null&&p.enums[i.type][i.value]?16:i.format==="bool"?17:-1)}}function na(e,r){if(e&1&&(a(0,"li",18)(1,"h6",19),d(2),s(3,"translate"),l()(),a(4,"li",20)(5,"span",13),d(6),s(7,"translate"),l(),a(8,"span",21),d(9),l()(),a(10,"li",20)(11,"span",13),d(12),s(13,"translate"),l(),a(14,"span",21),d(15),l()(),We(16,ia,18,7,"li",20,qe)),e&2){let t=m();n(2),f(c(3,5,"accessories.service_info")),n(4),f(c(7,7,"accessories.service")),n(3),f(t.service.humanType),n(3),f(c(13,9,"accessories.name")),n(3),f(t.service.serviceName),n(),Ue(t.service.serviceCharacteristics)}}function oa(e,r){if(e&1){let t=$();a(0,"span",38),S("click",function(){L(t);let i=m().$implicit,p=m(2);return V(p.toggleDetailsVisibility(i))}),d(1),l()}if(e&2){let t=m().$implicit,o=m(2);x("aria-expanded",o.isDetailsVisible[t.uuid]),n(),f(t.description)}}function ra(e,r){if(e&1&&d(0),e&2){let t=m().$implicit;g(" ",t.description," ")}}function aa(e,r){if(e&1&&(a(0,"div"),d(1),l()),e&2){let t=m(2).$implicit;n(),g("Step: ",t.minStep)}}function sa(e,r){if(e&1&&(a(0,"div"),d(1),l()),e&2){let t=m(2).$implicit;n(),g("Min: ",t.minValue)}}function la(e,r){if(e&1&&(a(0,"div"),d(1),l()),e&2){let t=m(2).$implicit;n(),g("Max: ",t.maxValue)}}function ca(e,r){e&1&&d(0," \xB7 ")}function da(e,r){if(e&1&&(d(0),h(1,ca,1,0)),e&2){let t=r.$implicit,o=r.$index,i=r.$count;g(" ",t," "),n(),C(o!==i-1?1:-1)}}function pa(e,r){if(e&1&&(a(0,"div"),d(1," Valid: "),We(2,da,2,2,null,null,qe),l()),e&2){let t=m(2).$implicit;n(2),Ue(t.validValues)}}function ma(e,r){if(e&1&&(a(0,"div",35),h(1,aa,2,1,"div"),h(2,sa,2,1,"div"),h(3,la,2,1,"div"),h(4,pa,4,0,"div"),l()),e&2){let t=m().$implicit;n(),C("minStep"in t?1:-1),n(),C("minValue"in t?2:-1),n(),C("maxValue"in t?3:-1),n(),C("validValues"in t?4:-1)}}function ua(e,r){e&1&&d(0," Value: ")}function fa(e,r){if(e&1&&d(0),e&2){let t=m().$implicit;g(" ",t.value,"% ")}}function va(e,r){if(e&1&&(d(0),s(1,"convertTemp")),e&2){let t=m().$implicit,o=m(2);g(" ",c(1,1,o.Number(t.value)),"\xB0 ")}}function ga(e,r){if(e&1&&(d(0),s(1,"convertMired")),e&2){let t=m(2).$implicit;g(" ",c(1,1,t.value)," ")}}function ha(e,r){if(e&1&&d(0),e&2){let t=m(2).$implicit;g(" ",t.value," ")}}function Ca(e,r){if(e&1&&h(0,ga,2,3)(1,ha,1,1),e&2){let t,o=m().$implicit;C((t=o.type)==="ColorTemperature"?0:1)}}function _a(e,r){if(e&1&&(d(0),s(1,"prettify")),e&2){let t=m().$implicit,o=m(2);g(" (",c(1,1,o.enums[t.type][t.value]),") ")}}function xa(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m().$implicit;g(" (",c(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function ya(e,r){if(e&1&&d(0),e&2){let t=m().$implicit;g(" ",t.value,"% ")}}function Sa(e,r){if(e&1&&(d(0),s(1,"convertTemp")),e&2){let t=m().$implicit,o=m(2);g(" ",c(1,1,o.Number(t.value)),"\xB0 ")}}function ka(e,r){if(e&1&&(d(0),s(1,"convertMired")),e&2){let t=m(2).$implicit;g(" ",c(1,1,t.value)," ")}}function Ta(e,r){if(e&1&&d(0),e&2){let t=m(2).$implicit;g(" ",t.value," ")}}function ba(e,r){if(e&1&&h(0,ka,2,3)(1,Ta,1,1),e&2){let t,o=m().$implicit;C((t=o.type)==="ColorTemperature"?0:1)}}function Ba(e,r){if(e&1&&(d(0),s(1,"prettify")),e&2){let t=m().$implicit,o=m(2);g(" (",c(1,1,o.enums[t.type][t.value]),") ")}}function Ma(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m().$implicit;g(" (",c(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function wa(e,r){if(e&1&&(a(0,"li",20)(1,"span"),h(2,oa,2,2,"span",34)(3,ra,1,1),h(4,ma,5,4,"div",35),a(5,"div",36),h(6,ua,1,0),h(7,fa,1,1)(8,va,2,3)(9,Ca,2,1),h(10,_a,2,3)(11,xa,2,3),l()(),a(12,"span",37),h(13,ya,1,1)(14,Sa,2,3)(15,ba,2,1),h(16,Ba,2,3)(17,Ma,2,3),l()()),e&2){let t,o,i=r.$implicit,p=m(2);n(2),C("minStep"in i||"minValue"in i||"maxValue"in i||"validValues"in i?2:3),n(2),C(p.isDetailsVisible[i.uuid]?4:-1),n(2),C(p.isDetailsVisible[i.uuid]?6:-1),n(),C((t=i.unit)==="percentage"?7:t==="celsius"?8:9),n(3),C(p.enums[i.type]!=null&&p.enums[i.type][i.value]?10:i.format==="bool"?11:-1),n(3),C((o=i.unit)==="percentage"?13:o==="celsius"?14:15),n(3),C(p.enums[i.type]!=null&&p.enums[i.type][i.value]?16:i.format==="bool"?17:-1)}}function Ea(e,r){if(e&1&&(a(0,"ul",5)(1,"li",18)(2,"h6",19),d(3),s(4,"translate"),l()(),a(5,"li",20)(6,"span",13),d(7),s(8,"translate"),l(),a(9,"span",21),d(10),l()(),a(11,"li",20)(12,"span",13),d(13),s(14,"translate"),l(),a(15,"span",21),d(16),l()(),We(17,wa,18,7,"li",20,qe),l()),e&2){let t=r.$implicit;n(3),f(c(4,5,"accessories.service_info")),n(4),f(c(8,7,"accessories.service")),n(3),f(t.humanType),n(3),f(c(14,9,"accessories.name")),n(3),f(t.serviceName),n(),Ue(t.serviceCharacteristics)}}function Aa(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),d(2),s(3,"translate"),l(),a(4,"span",21),d(5),l()()),e&2){let t=m(2);n(2),f(c(3,2,"child_bridge.config.platform")),n(3),f(t.matchedCachedAccessory.platform)}}function Ia(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),d(2),s(3,"translate"),l(),a(4,"span",21),d(5),l()()),e&2){let t=m(2);n(2),f(c(3,2,"child_bridge.config.accessory")),n(3),f(t.matchedCachedAccessory.accessory)}}function Da(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),d(2),s(3,"translate"),l(),a(4,"span",21),d(5),l()(),h(6,Aa,6,4,"li",20),h(7,Ia,6,4,"li",20)),e&2){let t=m();n(2),f(c(3,4,"accessories.plugin")),n(3),f(t.matchedCachedAccessory.plugin),n(),C(t.matchedCachedAccessory.platform?6:-1),n(),C(t.matchedCachedAccessory.accessory?7:-1)}}function La(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),d(2),l(),a(3,"span",21),d(4),l()()),e&2){let t=r.$implicit;n(2),f(t.key),n(2),f(t.value)}}function Va(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),d(2,"Protocol"),l(),a(3,"span",21),d(4,"Matter"),l()(),a(5,"li",20)(6,"span",13),d(7,"Bridge"),l(),a(8,"span",21),d(9),l()()),e&2){let t=m();n(9),f(t.service.instance.name)}}function Fa(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),d(2),s(3,"translate"),l(),a(4,"span",21),d(5),l()()),e&2){let t=m();n(2),f(c(3,2,"child_bridge.config.name")),n(3),f(t.matchedCachedAccessory.bridge)}}function Pa(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),d(2),s(3,"translate"),l(),a(4,"span",21),d(5),l()(),a(6,"li",20)(7,"span",13),d(8),s(9,"translate"),l(),a(10,"span",21),d(11),l()(),a(12,"li",20)(13,"span",39),d(14,"aid"),l(),a(15,"span",21),d(16),l()(),a(17,"li",20)(18,"span",39),d(19,"iid"),l(),a(20,"span",21),d(21),l()()),e&2){let t=m();n(2),f(c(3,6,"accessories.bridge_ip")),n(3),f(t.service.instance.ipAddress),n(3),f(c(9,8,"accessories.bridge_port")),n(3),f(t.service.instance.port),n(5),f(t.service.aid),n(5),f(t.service.iid)}}function Oa(e,r){if(e&1){let t=$();a(0,"li",20)(1,"span",39),d(2,"UUID"),l(),a(3,"span",21),d(4),l()(),a(5,"li",40)(6,"span",13),d(7),s(8,"translate"),l(),a(9,"button",41),S("click",function(){L(t);let i=m();return V(i.removeSingleCachedAccessories())}),u(10,"i",42),l()()}if(e&2){let t=m();n(4),f(t.matchedCachedAccessory.UUID),n(3),f(c(8,2,"accessories.button_remove"))}}var Ln=(()=>{class e{$activeModal=D(Gt);$modal=D(Q);hapCustomTypeList=[["AirPurifier","Switch","Outlet","Fan","Lightbulb","Heater","Cooler","Humidifier","Dehumidifier","Television","Valve","RobotVacuum","WashingMachine"],["Switch","Outlet","LockMechanism"],["Switch","Outlet","GarageDoorOpener"],["Door","Window","WindowCovering"],["Doorbell","Speaker","SmartSpeaker","Microphone"]];matterCustomTypeList=[["OnOffLight","OnOffLightSwitch","OnOffPlugInUnit","RoboticVacuumCleaner"],["Door","Window","WindowCovering"],["Fan"],["Thermostat"]];accessoryCache;pairingCache;service;isDetailsVisible={};accessoryInformation;extraServices=[];matchedCachedAccessory=null;enums=Dn.Enums;customTypeList=[];isMatterAccessory=!1;clusterInfo=[];ngOnInit(){if(this.isMatterAccessory=this.service.protocol==="matter",this.isMatterAccessory){this.customTypeList=[...new Set(this.matterCustomTypeList.filter(o=>o.includes(this.service.deviceType)).flat())];let t=this.service.clusters||{};this.clusterInfo=Object.entries(t).map(([o,i])=>({name:o,attributes:i})),this.accessoryInformation=Object.entries(this.service.accessoryInformation||{}).map(([o,i])=>({key:o,value:i})),this.accessoryInformation.unshift({key:"Device Type",value:this.service.deviceType||"Unknown"}),this.service.customType||(this.service.customType=this.service.deviceType)}else this.customTypeList=[...new Set(this.hapCustomTypeList.filter(t=>t.includes(this.service.type)).flat())],this.accessoryInformation=Object.entries(this.service.accessoryInformation).map(([t,o])=>({key:t,value:o})),this.matchedCachedAccessory=this.matchToCachedAccessory(),this.service.type==="LockMechanism"&&Object.values(this.service.linkedServices).filter(t=>t.type==="LockManagement").forEach(t=>this.extraServices.push(t)),this.service.customType||(this.service.customType=this.service.type)}removeSingleCachedAccessories(){this.$activeModal.close();let t=this.$modal.open(wn,{size:"lg",backdrop:"static"});t.componentInstance.selectedBridge=this.service.instance.username.replaceAll(":","")}isDefaultType(t){return this.isMatterAccessory?t===this.service.deviceType:t===this.service.type}toggleDetailsVisibility(t){("minStep"in t||"minValue"in t||"maxValue"in t||"validValues"in t)&&(this.isDetailsVisible[t.uuid]=!this.isDetailsVisible[t.uuid])}dismissModal(){this.$activeModal.dismiss("Dismiss")}matchToCachedAccessory(){let t=this.service.instance.username,o=this.pairingCache.find(i=>i._username===t);if(o){let i=o._main?"cachedAccessories":`cachedAccessories.${o._id}`,p=this.accessoryCache.filter(v=>v.$cacheFile===i);if(p.length){let v=this.service.accessoryInformation.Name,G=this.service.accessoryInformation["Serial Number"],re=p.filter(Z=>{let pe=Z.services.find(de=>de.constructorName==="AccessoryInformation"),ge=pe.characteristics.find(de=>de.displayName==="Name"),Be=pe.characteristics.find(de=>de.displayName==="Serial Number");return ge.value===v&&Be.value===G});if(re.length===1)return Zi(qi({},re[0]),{bridge:o.name})}}}Number=Number;JSON=JSON;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{accessoryCache:"accessoryCache",pairingCache:"pairingCache",service:"service"},decls:61,vars:43,consts:[["role","dialog","aria-modal","true",1,"modal-content"],[1,"modal-header"],["id","accessory-info-modal-title",1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"list-group","list-group-box","mb-3"],[1,"list-group-item","text-center","grey-text","small"],[3,"innerHTML"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],["for","form-name",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["type","text","id","form-name","autocomplete","off",1,"form-control","custom-input",3,"ngModelChange","ngModel"],[1,"list-group-item","d-flex","justify-content-between","align-items-center","flex-row","pb-2"],[1,"text-start"],[1,"text-end","grey-text","d-flex","align-items-center"],["type","checkbox","id","hide-accessory",1,"rendux-input",3,"ngModelChange","ngModel"],["for","hide-accessory",1,"rendux-label","ms-3"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item"],[1,"mb-0","text-center"],[1,"list-group-item","d-flex","justify-content-between","align-items-left","flex-column","flex-md-row"],[1,"text-start","text-md-end","grey-text","font-monospace"],[1,"modal-footer","justify-content-between"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],[1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"custom-select",3,"ngModelChange","ngModel"],[3,"value"],["type","checkbox","id","show-on-dashboard",1,"rendux-input","mb-0",3,"ngModelChange","ngModel"],["for","show-on-dashboard",1,"rendux-label","ms-3"],[1,"fw-bold"],[1,"list-group-item","d-flex","justify-content-between","align-items-start","align-items-md-center","flex-column","flex-md-row"],[1,"text-start","me-2"],[1,"hover-pointer"],[1,"grey-text","m-0","p-0","font-monospace"],[1,"d-block","d-md-none","font-monospace","grey-text"],[1,"text-start","text-md-end","grey-text","font-monospace","d-none","d-md-block","align-content-center"],[1,"hover-pointer",3,"click"],[1,"text-start","font-monospace"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"btn","btn-primary","m-0","ms-3","py-1",3,"click"],[1,"fas","fa-arrow-right"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),d(3),l(),a(4,"button",3),s(5,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(6,"div",4)(7,"ul",5)(8,"li",6),u(9,"span",7),s(10,"translate"),u(11,"br")(12,"span",7),s(13,"translate"),l(),a(14,"li",8)(15,"label",9),d(16),s(17,"translate"),l(),a(18,"div",10)(19,"input",11),S("ngModelChange",function(v){return i.service.customName=v}),l()()(),h(20,b0,8,4,"li",8),a(21,"li",12)(22,"span",13),d(23),s(24,"translate"),l(),a(25,"div",14)(26,"input",15),s(27,"translate"),q("ngModelChange",function(v){return K(i.service.hidden,v)||(i.service.hidden=v),v}),l(),u(28,"label",16),l()(),h(29,B0,8,7,"li",12),l(),a(30,"ul",5),h(31,I0,6,3)(32,na,18,11),l(),We(33,Ea,19,11,"ul",5,qe),a(35,"ul",17)(36,"li",18)(37,"h6",19),d(38),s(39,"translate"),l()(),h(40,Da,8,6),We(41,La,5,2,"li",20,qe),h(43,Va,10,1),a(44,"li",20)(45,"span",13),d(46),s(47,"translate"),l(),a(48,"span",21),d(49),l()(),h(50,Fa,6,4,"li",20),h(51,Pa,22,10),h(52,Oa,11,4),l()(),a(53,"div",22),u(54,"div",13),a(55,"div",23)(56,"button",24),s(57,"translate"),S("click",function(){return i.dismissModal()}),d(58),s(59,"translate"),l()(),u(60,"div",25),l()()),o&2&&(x("aria-labelledby","accessory-info-modal-title"),n(3),f(i.service.customName||i.service.serviceName),n(),x("aria-label",c(5,23,"form.button_close")),n(5),T("innerHTML",c(10,25,"accessories.only_ui"),Pe),n(3),T("innerHTML",c(13,27,"accessories.only_ui_2"),Pe),n(4),f(c(17,29,"accessories.custom_name")),n(3),T("ngModel",i.service.customName||i.service.serviceName),n(),C(i.customTypeList.length?20:-1),n(3),f(c(24,31,"accessories.hide_this_accessory")),n(3),z("ngModel",i.service.hidden),x("aria-label",c(27,33,"accessories.hide_this_accessory")),n(3),C(i.service.hidden?-1:29),n(2),C(i.isMatterAccessory?31:32),n(2),Ue(i.extraServices),n(5),f(c(39,35,"accessories.accessory_info")),n(2),C(i.matchedCachedAccessory?40:-1),n(),Ue(i.accessoryInformation),n(2),C(i.isMatterAccessory?43:-1),n(3),f(c(47,37,"users.label_username")),n(3),f(i.service.instance.username),n(),C(i.matchedCachedAccessory?50:-1),n(),C(i.isMatterAccessory?-1:51),n(),C(i.matchedCachedAccessory?52:-1),n(4),x("aria-label",c(57,39,"form.button_close")),n(2),g(" ",c(59,41,"form.button_close")," "))},dependencies:[oe,bn,Bn,kn,Sn,Tn,ae,se,gn,M,we,An,it,In],encapsulation:2})}return e})();var ee=(()=>{class e{$api=D(_n);$auth=D(xn);$destroyRef=D(et);$modal=D(Q);$toastr=D(Cn);$translate=D(hn);$ws=D(Mn);accessoryCache=[];pairingCache=[];customAttributesApplied=new Set;io;connectedSubscription;connectedSubscription2;saveLayoutSubscription;hiddenTypes=["InputSource","LockManagement","CameraRTPStreamManagement","ProtocolInformation"];layoutSaved=new J;accessoryData=new J;readyForControl=!1;hapReadyForControl=!1;matterReadyForControl=!1;accessories={services:[]};rooms=[];accessoryLayout;originalLayout;constructor(){this.$auth.user.admin&&(Wt(this.$api.get("/server/cached-accessories")).then(t=>{this.accessoryCache=t}).catch(t=>console.error(t)),Wt(this.$api.get("/server/pairings")).then(t=>{this.pairingCache=t}).catch(t=>console.error(t)))}showAccessoryInformation(t){let o=this.$modal.open(Ln,{size:"lg",backdrop:"static"});return o.componentInstance.service=t,o.componentInstance.accessoryCache=this.accessoryCache,o.componentInstance.pairingCache=this.pairingCache,o.result.then(()=>this.saveLayout()).catch(()=>this.saveLayout()),!1}stop(){this.connectedSubscription&&(this.connectedSubscription.unsubscribe(),this.connectedSubscription=null),this.connectedSubscription2&&(this.connectedSubscription2.unsubscribe(),this.connectedSubscription2=null),this.saveLayoutSubscription&&(this.saveLayoutSubscription.unsubscribe(),this.saveLayoutSubscription=null),this.io.end(),this.rooms=[],this.accessories={services:[]},this.customAttributesApplied.clear(),delete this.accessoryLayout,delete this.originalLayout}start(){return Et(this,null,function*(){this.readyForControl=!1,this.hapReadyForControl=!1,this.matterReadyForControl=!1,this.io=this.$ws.connectToNamespace("accessories"),yield this.loadLayout(),this.io.connected?(this.io.socket.emit("get-accessories"),setTimeout(()=>{this.connectedSubscription=this.io.connected.subscribe(()=>{this.io.socket.emit("get-accessories")})},1e3)):this.connectedSubscription2=this.io.connected.subscribe(()=>{this.io.socket.emit("get-accessories")}),this.io.socket.on("accessories-data",t=>{this.parseServices(t),this.generateHelpers(),this.sortIntoRooms(),this.orderRooms(),this.applyCustomAttributes(),this.accessoryData.next(t)}),this.io.socket.on("accessories-reload-required",()=>Et(this,null,function*(){this.stop(),yield this.start()})),this.io.socket.on("matter-accessories-reload-required",()=>Et(this,null,function*(){this.matterReadyForControl=!1,this.io.socket.emit("accessory-control",{refresh:!0})})),this.io.socket.on("accessory-control-failure",t=>{console.error(t),this.$toastr.error(t,this.$translate.instant("toast.title_error"))}),this.io.socket.on("accessories-ready-for-control",()=>{this.readyForControl=!0}),this.io.socket.on("hap-accessories-ready-for-control",()=>{this.hapReadyForControl=!0}),this.io.socket.on("matter-accessories-ready-for-control",()=>{this.matterReadyForControl=!0})})}saveLayout(){let t=this.rooms.map(o=>({name:o.name,services:o.services.map(i=>({uniqueId:i.uniqueId,name:i.serviceName,serial:i.accessoryInformation["Serial Number"],bridge:i.instance.username,aid:i.aid,iid:i.iid,uuid:i.uuid,customName:i.customName||void 0,customType:i.customType||void 0,hidden:i.hidden||void 0,onDashboard:i.onDashboard||void 0}))})).filter(o=>o.services.length);this.accessoryLayout=this.mergeWithUndiscoveredServices(t),this.saveLayoutSubscription&&this.saveLayoutSubscription.unsubscribe(),this.saveLayoutSubscription=this.io.request("save-layout",{user:this.$auth.user.username,layout:this.accessoryLayout}).pipe(je(this.$destroyRef)).subscribe({next:()=>this.layoutSaved.next(void 0),error:o=>{console.error(o),this.$toastr.error(o.message,this.$translate.instant("toast.title_error"))}})}loadLayout(){return Et(this,null,function*(){this.accessoryLayout=yield Wt(this.io.request("get-layout",{user:this.$auth.user.username})),this.originalLayout=JSON.parse(JSON.stringify(this.accessoryLayout)),this.rooms=this.accessoryLayout.map(t=>({name:t.name,services:[]}))})}servicesMatch(t,o){return o.protocol==="matter"||o.uniqueId?.startsWith("matter:")?t.uniqueId===o.uniqueId&&t.bridge===(o.instance?.username||o.bridge):t.uniqueId===o.uniqueId?!0:t.name===(o.serviceName||o.name)&&t.serial===(o.accessoryInformation?.["Serial Number"]||o.serial)&&t.bridge===(o.instance?.username||o.bridge)&&t.uuid===o.uuid}mergeWithUndiscoveredServices(t){if(!this.originalLayout)return t;let o=JSON.parse(JSON.stringify(t)),i=new Set;return o.forEach(p=>{p.services.forEach(v=>{let G=null;for(let re of this.originalLayout){for(let Z of re.services)if(Z.name&&this.servicesMatch(Z,v)){G=Z;break}if(G)break}G&&i.add(G.uniqueId)})}),this.originalLayout.forEach(p=>{p.services.forEach(v=>{if(i.has(v.uniqueId)||!v.name)return;let G=o.find(re=>re.name===p.name);G||(G={name:p.name,services:[]},o.push(G)),G.services.push({uniqueId:v.uniqueId,name:v.name,bridge:v.bridge,serial:v.serial,aid:v.aid,iid:v.iid,uuid:v.uuid,customName:v.customName,customType:v.customType,hidden:v.hidden,onDashboard:v.onDashboard})})}),o.filter(p=>p.services.length)}parseServices(t){if(!this.accessories.services.length){this.accessories.services=t;return}t.forEach(o=>{let i=this.accessories.services.find(p=>p.uniqueId===o.uniqueId);o.type==="LockMechanism"&&this.attachLockManagementToMechanism(o),i?Object.assign(i,o):this.accessories.services.push(o)})}sortIntoRooms(){let t=new Set(this.hiddenTypes);this.accessories.services.forEach(o=>{if(t.has(o.type))return;if(o.linked&&(o.linkedServices={},o.linked.forEach(p=>{o.linkedServices[p]=this.accessories.services.find(v=>v.aid===o.aid&&v.iid===p&&v.instance.username===o.instance.username)})),!this.rooms.find(p=>p.services.find(v=>v.uniqueId===o.uniqueId))){let p=null,v=null;for(let G of this.accessoryLayout)if(v=G.services.find(re=>this.servicesMatch(re,o)),v){p=G;break}if(p&&v){let G=this.rooms.find(re=>re.name===p.name);v.customType&&(o.customType=v.customType),v.customName&&(o.customName=v.customName),v.hidden&&(o.hidden=v.hidden),v.onDashboard&&(o.onDashboard=v.onDashboard),this.customAttributesApplied.add(o.uniqueId),G.services.push(o)}else{let G=this.rooms.find(re=>re.name==="Default Room");this.customAttributesApplied.add(o.uniqueId),G?G.services.push(o):this.rooms.push({name:"Default Room",services:[o]})}}})}orderRooms(){this.rooms.forEach(t=>{let o=this.accessoryLayout.find(i=>i.name===t.name);t.services.sort((i,p)=>{let v=o.services.findIndex(re=>re.uniqueId===i.uniqueId),G=o.services.findIndex(re=>re.uniqueId===p.uniqueId);return v<G?-1:v>G?1:0})})}applyCustomAttributes(){this.rooms.forEach(t=>{let o=this.accessoryLayout.find(i=>i.name===t.name);o&&t.services.forEach(i=>{if(this.customAttributesApplied.has(i.uniqueId))return;let p=o.services.find(G=>G.uniqueId===i.uniqueId);if(!p)return;let v=i;p.customType&&(v.customType=p.customType),p.customName&&(v.customName=p.customName),p.hidden&&(v.hidden=p.hidden),p.onDashboard&&(v.onDashboard=p.onDashboard),this.customAttributesApplied.add(i.uniqueId)})})}generateHelpers(){this.accessories.services.forEach(t=>{let o=t;o.protocol==="matter"?o.getCluster||(o.getCluster=i=>{let p=o.clusters||{};return p[i]?{attributes:p[i],setAttributes:v=>new Promise(G=>{if(!this.matterReadyForControl){console.warn("Matter control attempted but not ready for control:",{matterReadyForControl:this.matterReadyForControl,uniqueId:t.uniqueId,cluster:i}),G(void 0);return}return this.io.socket.emit("accessory-control",{set:{uniqueId:t.uniqueId,cluster:i,attributes:v}}),G(void 0)})}:null}):t.getCharacteristic||(t.getCharacteristic=i=>{let p=t.serviceCharacteristics.find(v=>v.type===i);return p?(p.setValue=v=>new Promise(G=>(this.readyForControl||G(void 0),this.io.socket.emit("accessory-control",{set:{uniqueId:t.uniqueId,aid:t.aid,siid:t.iid,iid:p.iid,value:v}}),G(void 0))),p):null})})}attachLockManagementToMechanism(t){let o=[],i=[];for(let p of this.accessories.services)p.type==="LockMechanism"&&p.accessoryInformation.Name===t.accessoryInformation.Name&&p.accessoryInformation["Serial Number"]===t.accessoryInformation["Serial Number"]?o.push(p):p.type==="LockManagement"&&p.accessoryInformation.Name===t.accessoryInformation.Name&&p.accessoryInformation["Serial Number"]===t.accessoryInformation["Serial Number"]&&i.push(p);if(o.length===1&&i.length===1){let p=i[0];t.linkedServices||(t.linkedServices={}),t.linkedServices[p.iid]=p}}static \u0275fac=function(o){return new(o||e)};static \u0275prov=Ut({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var lt=(function(e){return e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values",e})(lt||{}),He=(function(e){return e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue",e})(He||{});function Ha(e){return zt(e)&&typeof e.from=="function"}function zt(e){return typeof e=="object"&&typeof e.to=="function"}function Vn(e){e.parentElement.removeChild(e)}function _i(e){return e!=null}function Fn(e){e.preventDefault()}function Na(e){return e.filter(function(r){return this[r]?!1:this[r]=!0},{})}function Ra(e,r){return Math.round(e/r)*r}function Wa(e,r){var t=e.getBoundingClientRect(),o=e.ownerDocument,i=o.documentElement,p=Nn(o);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(p.x=0),r?t.top+p.y-i.clientTop:t.left+p.x-i.clientLeft}function ze(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}function Pn(e,r,t){t>0&&(Le(e,r),setTimeout(function(){jt(e,r)},t))}function On(e){return Math.max(Math.min(e,100),0)}function Kt(e){return Array.isArray(e)?e:[e]}function Ua(e){e=String(e);var r=e.split(".");return r.length>1?r[1].length:0}function Le(e,r){e.classList&&!/\s/.test(r)?e.classList.add(r):e.className+=" "+r}function jt(e,r){e.classList&&!/\s/.test(r)?e.classList.remove(r):e.className=e.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")}function $a(e,r){return e.classList?e.classList.contains(r):new RegExp("\\b"+r+"\\b").test(e.className)}function Nn(e){var r=window.pageXOffset!==void 0,t=(e.compatMode||"")==="CSS1Compat",o=r?window.pageXOffset:t?e.documentElement.scrollLeft:e.body.scrollLeft,i=r?window.pageYOffset:t?e.documentElement.scrollTop:e.body.scrollTop;return{x:o,y:i}}function Ga(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function ja(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r)}catch{}return e}function za(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function yi(e,r){return 100/(r-e)}function xi(e,r,t){return r*100/(e[t+1]-e[t])}function Ka(e,r){return xi(e,e[0]<0?r+Math.abs(e[0]):r-e[0],0)}function qa(e,r){return r*(e[1]-e[0])/100+e[0]}function At(e,r){for(var t=1;e>=r[t];)t+=1;return t}function Za(e,r,t){if(t>=e.slice(-1)[0])return 100;var o=At(t,e),i=e[o-1],p=e[o],v=r[o-1],G=r[o];return v+Ka([i,p],t)/yi(v,G)}function Ya(e,r,t){if(t>=100)return e.slice(-1)[0];var o=At(t,r),i=e[o-1],p=e[o],v=r[o-1],G=r[o];return qa([i,p],(t-v)*yi(v,G))}function Qa(e,r,t,o){if(o===100)return o;var i=At(o,e),p=e[i-1],v=e[i];return t?o-p>(v-p)/2?v:p:r[i-1]?e[i-1]+Ra(o-e[i-1],r[i-1]):o}var Ja=(function(){function e(r,t,o){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[o||!1],this.xNumSteps=[!1],this.snap=t;var i,p=[];for(Object.keys(r).forEach(function(v){p.push([Kt(r[v]),v])}),p.sort(function(v,G){return v[0][0]-G[0][0]}),i=0;i<p.length;i++)this.handleEntryPoint(p[i][1],p[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(r){for(var t=[],o=0;o<this.xNumSteps.length-1;o++)t[o]=xi(this.xVal,r,o);return t},e.prototype.getAbsoluteDistance=function(r,t,o){var i=0;if(r<this.xPct[this.xPct.length-1])for(;r>this.xPct[i+1];)i++;else r===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);!o&&r===this.xPct[i+1]&&i++,t===null&&(t=[]);var p,v=1,G=t[i],re=0,Z=0,pe=0,ge=0;for(o?p=(r-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):p=(this.xPct[i+1]-r)/(this.xPct[i+1]-this.xPct[i]);G>0;)re=this.xPct[i+1+ge]-this.xPct[i+ge],t[i+ge]*v+100-p*100>100?(Z=re*p,v=(G-100*p)/t[i+ge],p=1):(Z=t[i+ge]*re/100*v,v=0),o?(pe=pe-Z,this.xPct.length+ge>=1&&ge--):(pe=pe+Z,this.xPct.length-ge>=1&&ge++),G=t[i+ge]*v;return r+pe},e.prototype.toStepping=function(r){return r=Za(this.xVal,this.xPct,r),r},e.prototype.fromStepping=function(r){return Ya(this.xVal,this.xPct,r)},e.prototype.getStep=function(r){return r=Qa(this.xPct,this.xSteps,this.snap,r),r},e.prototype.getDefaultStep=function(r,t,o){var i=At(r,this.xPct);return(r===100||t&&r===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/o},e.prototype.getNearbySteps=function(r){var t=At(r,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var r=this.xNumSteps.map(Ua);return Math.max.apply(null,r)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(r){return this.getStep(this.toStepping(r))},e.prototype.handleEntryPoint=function(r,t){var o;if(r==="min"?o=0:r==="max"?o=100:o=parseFloat(r),!ze(o)||!ze(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(o),this.xVal.push(t[0]);var i=Number(t[1]);o?this.xSteps.push(isNaN(i)?!1:i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(r,t){if(t){if(this.xVal[r]===this.xVal[r+1]){this.xSteps[r]=this.xHighestCompleteStep[r]=this.xVal[r];return}this.xSteps[r]=xi([this.xVal[r],this.xVal[r+1]],t,0)/yi(this.xPct[r],this.xPct[r+1]);var o=(this.xVal[r+1]-this.xVal[r])/this.xNumSteps[r],i=Math.ceil(Number(o.toFixed(3))-1),p=this.xVal[r]+this.xNumSteps[r]*i;this.xHighestCompleteStep[r]=p}},e})(),Hn={to:function(e){return e===void 0?"":e.toFixed(2)},from:Number},Xa={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},nt={tooltips:".__tooltips",aria:".__aria"};function es(e,r){if(!ze(r))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=r}function ts(e,r){if(!ze(r))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=r}function is(e,r){if(!ze(r))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=r}function ns(e,r){if(!ze(r))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=r}function os(e,r){if(typeof r!="object"||Array.isArray(r))throw new Error("noUiSlider: 'range' is not an object.");if(r.min===void 0||r.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new Ja(r,e.snap||!1,e.singleStep)}function rs(e,r){if(r=Kt(r),!Array.isArray(r)||!r.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=r.length,e.start=r}function as(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=r}function ss(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=r}function ls(e,r){if(typeof r!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=r}function Rn(e,r){var t=[!1],o;if(r==="lower"?r=[!0,!1]:r==="upper"&&(r=[!1,!0]),r===!0||r===!1){for(o=1;o<e.handles;o++)t.push(r);t.push(!1)}else{if(!Array.isArray(r)||!r.length||r.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=r}e.connect=t}function cs(e,r){switch(r){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Wn(e,r){if(!ze(r))throw new Error("noUiSlider: 'margin' option must be numeric.");r!==0&&(e.margin=e.spectrum.getDistance(r))}function ds(e,r){if(!ze(r))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(r),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function ps(e,r){var t;if(!ze(r)&&!Array.isArray(r))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(r)&&!(r.length===2||ze(r[0])||ze(r[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(r!==0){for(Array.isArray(r)||(r=[r,r]),e.padding=[e.spectrum.getDistance(r[0]),e.spectrum.getDistance(r[1])],t=0;t<e.spectrum.xNumSteps.length-1;t++)if(e.padding[0][t]<0||e.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var o=r[0]+r[1],i=e.spectrum.xVal[0],p=e.spectrum.xVal[e.spectrum.xVal.length-1];if(o/(p-i)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function ms(e,r){switch(r){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function us(e,r){if(typeof r!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=r.indexOf("tap")>=0,o=r.indexOf("drag")>=0,i=r.indexOf("fixed")>=0,p=r.indexOf("snap")>=0,v=r.indexOf("hover")>=0,G=r.indexOf("unconstrained")>=0,re=r.indexOf("invert-connects")>=0,Z=r.indexOf("drag-all")>=0,pe=r.indexOf("smooth-steps")>=0;if(i){if(e.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Wn(e,e.start[1]-e.start[0])}if(re&&e.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(G&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:t||p,drag:o,dragAll:Z,smoothSteps:pe,fixed:i,snap:p,hover:v,unconstrained:G,invertConnects:re}}function fs(e,r){if(r!==!1)if(r===!0||zt(r)){e.tooltips=[];for(var t=0;t<e.handles;t++)e.tooltips.push(r)}else{if(r=Kt(r),r.length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");r.forEach(function(o){if(typeof o!="boolean"&&!zt(o))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=r}}function vs(e,r){if(r.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=r}function gs(e,r){if(!zt(r))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=r}function hs(e,r){if(!Ha(r))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=r}function Cs(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=r}function _s(e,r){e.documentElement=r}function xs(e,r){if(typeof r!="string"&&r!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=r}function ys(e,r){if(typeof r!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof e.cssPrefix=="string"?(e.cssClasses={},Object.keys(r).forEach(function(t){e.cssClasses[t]=e.cssPrefix+r[t]})):e.cssClasses=r}function Un(e){var r={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:Hn,format:Hn},t={step:{r:!1,t:es},keyboardPageMultiplier:{r:!1,t:ts},keyboardMultiplier:{r:!1,t:is},keyboardDefaultStep:{r:!1,t:ns},start:{r:!0,t:rs},connect:{r:!0,t:Rn},direction:{r:!0,t:ms},snap:{r:!1,t:as},animate:{r:!1,t:ss},animationDuration:{r:!1,t:ls},range:{r:!0,t:os},orientation:{r:!1,t:cs},margin:{r:!1,t:Wn},limit:{r:!1,t:ds},padding:{r:!1,t:ps},behaviour:{r:!0,t:us},ariaFormat:{r:!1,t:gs},format:{r:!1,t:hs},tooltips:{r:!1,t:fs},keyboardSupport:{r:!0,t:Cs},documentElement:{r:!1,t:_s},cssPrefix:{r:!0,t:xs},cssClasses:{r:!0,t:ys},handleAttributes:{r:!1,t:vs}},o={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Xa,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(t).forEach(function(re){if(!_i(e[re])&&o[re]===void 0){if(t[re].r)throw new Error("noUiSlider: '"+re+"' is required.");return}t[re].t(r,_i(e[re])?e[re]:o[re])}),r.pips=e.pips;var i=document.createElement("div"),p=i.style.msTransform!==void 0,v=i.style.transform!==void 0;r.transformRule=v?"transform":p?"msTransform":"webkitTransform";var G=[["left","top"],["right","bottom"]];return r.style=G[r.dir][r.ort],r}function Ss(e,r,t){var o=Ga(),i=za(),p=i&&ja(),v=e,G,re,Z,pe,ge,Be,de=r.spectrum,Qe=[],he=[],Fe=[],ni=0,Je={},Bt=!1,ut=e.ownerDocument,Pt=r.documentElement||ut.documentElement,Ot=ut.body,zr=ut.dir==="rtl"||r.ort===1?0:100;function Xe(_,b){var w=ut.createElement("div");return b&&Le(w,b),_.appendChild(w),w}function Kr(_,b){var w=Xe(_,r.cssClasses.origin),O=Xe(w,r.cssClasses.handle);if(Xe(O,r.cssClasses.touchArea),O.setAttribute("data-handle",String(b)),r.keyboardSupport&&(O.setAttribute("tabindex","0"),O.addEventListener("keydown",function(U){return c0(U,b)})),r.handleAttributes!==void 0){var W=r.handleAttributes[b];Object.keys(W).forEach(function(U){O.setAttribute(U,W[U])})}return O.setAttribute("role","slider"),O.setAttribute("aria-orientation",r.ort?"vertical":"horizontal"),b===0?Le(O,r.cssClasses.handleLower):b===r.handles-1&&Le(O,r.cssClasses.handleUpper),w.handle=O,w}function oi(_,b){return b?Xe(_,r.cssClasses.connect):!1}function qr(_,b){re=Xe(b,r.cssClasses.connects),Z=[],pe=[],pe.push(oi(re,_[0]));for(var w=0;w<r.handles;w++)Z.push(Kr(b,w)),Fe[w]=w,pe.push(oi(re,_[w+1]))}function Zr(_){Le(_,r.cssClasses.target),r.dir===0?Le(_,r.cssClasses.ltr):Le(_,r.cssClasses.rtl),r.ort===0?Le(_,r.cssClasses.horizontal):Le(_,r.cssClasses.vertical);var b=getComputedStyle(_).direction;return b==="rtl"?Le(_,r.cssClasses.textDirectionRtl):Le(_,r.cssClasses.textDirectionLtr),Xe(_,r.cssClasses.base)}function Yr(_,b){return!r.tooltips||!r.tooltips[b]?!1:Xe(_.firstChild,r.cssClasses.tooltip)}function Li(){return v.hasAttribute("disabled")}function ri(_){var b=Z[_];return b.hasAttribute("disabled")}function Qr(_){_!=null?(Z[_].setAttribute("disabled",""),Z[_].handle.removeAttribute("tabindex")):(v.setAttribute("disabled",""),Z.forEach(function(b){b.handle.removeAttribute("tabindex")}))}function Jr(_){_!=null?(Z[_].removeAttribute("disabled"),Z[_].handle.setAttribute("tabindex","0")):(v.removeAttribute("disabled"),Z.forEach(function(b){b.removeAttribute("disabled"),b.handle.setAttribute("tabindex","0")}))}function ai(){Be&&(Mt("update"+nt.tooltips),Be.forEach(function(_){_&&Vn(_)}),Be=null)}function Vi(){ai(),Be=Z.map(Yr),pi("update"+nt.tooltips,function(_,b,w){if(!(!Be||!r.tooltips)&&Be[b]!==!1){var O=_[b];r.tooltips[b]!==!0&&(O=r.tooltips[b].to(w[b])),Be[b].innerHTML=O}})}function Xr(){Mt("update"+nt.aria),pi("update"+nt.aria,function(_,b,w,O,W){Fe.forEach(function(U){var X=Z[U],j=Ht(he,U,0,!0,!0,!0),ue=Ht(he,U,100,!0,!0,!0),fe=W[U],Ce=String(r.ariaFormat.to(w[U]));j=de.fromStepping(j).toFixed(1),ue=de.fromStepping(ue).toFixed(1),fe=de.fromStepping(fe).toFixed(1),X.children[0].setAttribute("aria-valuemin",j),X.children[0].setAttribute("aria-valuemax",ue),X.children[0].setAttribute("aria-valuenow",fe),X.children[0].setAttribute("aria-valuetext",Ce)})})}function e0(_){if(_.mode===lt.Range||_.mode===lt.Steps)return de.xVal;if(_.mode===lt.Count){if(_.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var b=_.values-1,w=100/b,O=[];b--;)O[b]=b*w;return O.push(100),Fi(O,_.stepped)}return _.mode===lt.Positions?Fi(_.values,_.stepped):_.mode===lt.Values?_.stepped?_.values.map(function(W){return de.fromStepping(de.getStep(de.toStepping(W)))}):_.values:[]}function Fi(_,b){return _.map(function(w){return de.fromStepping(b?de.getStep(w):w)})}function t0(_){function b(fe,Ce){return Number((fe+Ce).toFixed(7))}var w=e0(_),O={},W=de.xVal[0],U=de.xVal[de.xVal.length-1],X=!1,j=!1,ue=0;return w=Na(w.slice().sort(function(fe,Ce){return fe-Ce})),w[0]!==W&&(w.unshift(W),X=!0),w[w.length-1]!==U&&(w.push(U),j=!0),w.forEach(function(fe,Ce){var _e,me,Te,Ie=fe,Me=w[Ce+1],Ee,fi,vi,gi,ji,hi,zi,Ki=_.mode===lt.Steps;for(Ki&&(_e=de.xNumSteps[Ce]),_e||(_e=Me-Ie),Me===void 0&&(Me=Ie),_e=Math.max(_e,1e-7),me=Ie;me<=Me;me=b(me,_e)){for(Ee=de.toStepping(me),fi=Ee-ue,ji=fi/(_.density||1),hi=Math.round(ji),zi=fi/hi,Te=1;Te<=hi;Te+=1)vi=ue+Te*zi,O[vi.toFixed(5)]=[de.fromStepping(vi),0];gi=w.indexOf(me)>-1?He.LargeValue:Ki?He.SmallValue:He.NoValue,!Ce&&X&&me!==Me&&(gi=0),me===Me&&j||(O[Ee.toFixed(5)]=[me,gi]),ue=Ee}}),O}function i0(_,b,w){var O,W,U=ut.createElement("div"),X=(O={},O[He.None]="",O[He.NoValue]=r.cssClasses.valueNormal,O[He.LargeValue]=r.cssClasses.valueLarge,O[He.SmallValue]=r.cssClasses.valueSub,O),j=(W={},W[He.None]="",W[He.NoValue]=r.cssClasses.markerNormal,W[He.LargeValue]=r.cssClasses.markerLarge,W[He.SmallValue]=r.cssClasses.markerSub,W),ue=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],fe=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];Le(U,r.cssClasses.pips),Le(U,r.ort===0?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical);function Ce(me,Te){var Ie=Te===r.cssClasses.value,Me=Ie?ue:fe,Ee=Ie?X:j;return Te+" "+Me[r.ort]+" "+Ee[me]}function _e(me,Te,Ie){if(Ie=b?b(Te,Ie):Ie,Ie!==He.None){var Me=Xe(U,!1);Me.className=Ce(Ie,r.cssClasses.marker),Me.style[r.style]=me+"%",Ie>He.NoValue&&(Me=Xe(U,!1),Me.className=Ce(Ie,r.cssClasses.value),Me.setAttribute("data-value",String(Te)),Me.style[r.style]=me+"%",Me.innerHTML=String(w.to(Te)))}}return Object.keys(_).forEach(function(me){_e(me,_[me][0],_[me][1])}),U}function si(){ge&&(Vn(ge),ge=null)}function li(_){si();var b=t0(_),w=_.filter,O=_.format||{to:function(W){return String(Math.round(W))}};return ge=v.appendChild(i0(b,w,O)),ge}function Pi(){var _=G.getBoundingClientRect(),b="offset"+["Width","Height"][r.ort];return r.ort===0?_.width||G[b]:_.height||G[b]}function rt(_,b,w,O){var W=function(X){var j=n0(X,O.pageOffset,O.target||b);if(!j||Li()&&!O.doNotReject||$a(v,r.cssClasses.tap)&&!O.doNotReject||_===o.start&&j.buttons!==void 0&&j.buttons>1||O.hover&&j.buttons)return!1;p||j.preventDefault(),j.calcPoint=j.points[r.ort],w(j,O)},U=[];return _.split(" ").forEach(function(X){b.addEventListener(X,W,p?{passive:!0}:!1),U.push([X,W])}),U}function n0(_,b,w){var O=_.type.indexOf("touch")===0,W=_.type.indexOf("mouse")===0,U=_.type.indexOf("pointer")===0,X=0,j=0;if(_.type.indexOf("MSPointer")===0&&(U=!0),_.type==="mousedown"&&!_.buttons&&!_.touches)return!1;if(O){var ue=function(_e){var me=_e.target;return me===w||w.contains(me)||_.composed&&_.composedPath().shift()===w};if(_.type==="touchstart"){var fe=Array.prototype.filter.call(_.touches,ue);if(fe.length>1)return!1;X=fe[0].pageX,j=fe[0].pageY}else{var Ce=Array.prototype.find.call(_.changedTouches,ue);if(!Ce)return!1;X=Ce.pageX,j=Ce.pageY}}return b=b||Nn(ut),(W||U)&&(X=_.clientX+b.x,j=_.clientY+b.y),_.pageOffset=b,_.points=[X,j],_.cursor=W||U,_}function Oi(_){var b=_-Wa(G,r.ort),w=b*100/Pi();return w=On(w),r.dir?100-w:w}function o0(_){var b=100,w=!1;return Z.forEach(function(O,W){if(!ri(W)){var U=he[W],X=Math.abs(U-_),j=X===100&&b===100,ue=X<b,fe=X<=b&&_>U;(ue||fe||j)&&(w=W,b=X)}}),w}function r0(_,b){_.type==="mouseout"&&_.target.nodeName==="HTML"&&_.relatedTarget===null&&ci(_,b)}function a0(_,b){if(navigator.appVersion.indexOf("MSIE 9")===-1&&_.buttons===0&&b.buttonsProperty!==0)return ci(_,b);var w=(r.dir?-1:1)*(_.calcPoint-b.startCalcPoint),O=w*100/b.baseSize;Ni(w>0,O,b.locations,b.handleNumbers,b.connect)}function ci(_,b){b.handle&&(jt(b.handle,r.cssClasses.active),ni-=1),b.listeners.forEach(function(w){Pt.removeEventListener(w[0],w[1])}),ni===0&&(jt(v,r.cssClasses.drag),ui(),_.cursor&&(Ot.style.cursor="",Ot.removeEventListener("selectstart",Fn))),r.events.smoothSteps&&(b.handleNumbers.forEach(function(w){at(w,he[w],!0,!0,!1,!1)}),b.handleNumbers.forEach(function(w){Se("update",w)})),b.handleNumbers.forEach(function(w){Se("change",w),Se("set",w),Se("end",w)})}function di(_,b){if(!b.handleNumbers.some(ri)){var w;if(b.handleNumbers.length===1){var O=Z[b.handleNumbers[0]];w=O.children[0],ni+=1,Le(w,r.cssClasses.active)}_.stopPropagation();var W=[],U=rt(o.move,Pt,a0,{target:_.target,handle:w,connect:b.connect,listeners:W,startCalcPoint:_.calcPoint,baseSize:Pi(),pageOffset:_.pageOffset,handleNumbers:b.handleNumbers,buttonsProperty:_.buttons,locations:he.slice()}),X=rt(o.end,Pt,ci,{target:_.target,handle:w,listeners:W,doNotReject:!0,handleNumbers:b.handleNumbers}),j=rt("mouseout",Pt,r0,{target:_.target,handle:w,listeners:W,doNotReject:!0,handleNumbers:b.handleNumbers});W.push.apply(W,U.concat(X,j)),_.cursor&&(Ot.style.cursor=getComputedStyle(_.target).cursor,Z.length>1&&Le(v,r.cssClasses.drag),Ot.addEventListener("selectstart",Fn,!1)),b.handleNumbers.forEach(function(ue){Se("start",ue)})}}function s0(_){_.stopPropagation();var b=Oi(_.calcPoint),w=o0(b);w!==!1&&(r.events.snap||Pn(v,r.cssClasses.tap,r.animationDuration),at(w,b,!0,!0),ui(),Se("slide",w,!0),Se("update",w,!0),r.events.snap?di(_,{handleNumbers:[w]}):(Se("change",w,!0),Se("set",w,!0)))}function l0(_){var b=Oi(_.calcPoint),w=de.getStep(b),O=de.fromStepping(w);Object.keys(Je).forEach(function(W){W.split(".")[0]==="hover"&&Je[W].forEach(function(U){U.call(Rt,O)})})}function c0(_,b){if(Li()||ri(b))return!1;var w=["Left","Right"],O=["Down","Up"],W=["PageDown","PageUp"],U=["Home","End"];r.dir&&!r.ort?w.reverse():r.ort&&!r.dir&&(O.reverse(),W.reverse());var X=_.key.replace("Arrow",""),j=X===W[0],ue=X===W[1],fe=X===O[0]||X===w[0]||j,Ce=X===O[1]||X===w[1]||ue,_e=X===U[0],me=X===U[1];if(!fe&&!Ce&&!_e&&!me)return!0;_.preventDefault();var Te;if(Ce||fe){var Ie=fe?0:1,Me=$i(b),Ee=Me[Ie];if(Ee===null)return!1;Ee===!1&&(Ee=de.getDefaultStep(he[b],fe,r.keyboardDefaultStep)),ue||j?Ee*=r.keyboardPageMultiplier:Ee*=r.keyboardMultiplier,Ee=Math.max(Ee,1e-7),Ee=(fe?-1:1)*Ee,Te=Qe[b]+Ee}else me?Te=r.spectrum.xVal[r.spectrum.xVal.length-1]:Te=r.spectrum.xVal[0];return at(b,de.toStepping(Te),!0,!0),Se("slide",b),Se("update",b),Se("change",b),Se("set",b),!1}function Hi(_){_.fixed||Z.forEach(function(b,w){rt(o.start,b.children[0],di,{handleNumbers:[w]})}),_.tap&&rt(o.start,G,s0,{}),_.hover&&rt(o.move,G,l0,{hover:!0}),_.drag&&pe.forEach(function(b,w){if(!(b===!1||w===0||w===pe.length-1)){var O=Z[w-1],W=Z[w],U=[b],X=[O,W],j=[w-1,w];Le(b,r.cssClasses.draggable),_.fixed&&(U.push(O.children[0]),U.push(W.children[0])),_.dragAll&&(X=Z,j=Fe),U.forEach(function(ue){rt(o.start,ue,di,{handles:X,handleNumbers:j,connect:b})})}})}function pi(_,b){Je[_]=Je[_]||[],Je[_].push(b),_.split(".")[0]==="update"&&Z.forEach(function(w,O){Se("update",O)})}function d0(_){return _===nt.aria||_===nt.tooltips}function Mt(_){var b=_&&_.split(".")[0],w=b?_.substring(b.length):_;Object.keys(Je).forEach(function(O){var W=O.split(".")[0],U=O.substring(W.length);(!b||b===W)&&(!w||w===U)&&(!d0(U)||w===U)&&delete Je[O]})}function Se(_,b,w){Object.keys(Je).forEach(function(O){var W=O.split(".")[0];_===W&&Je[O].forEach(function(U){U.call(Rt,Qe.map(r.format.to),b,Qe.slice(),w||!1,he.slice(),Rt)})})}function Ht(_,b,w,O,W,U,X){var j;return Z.length>1&&!r.events.unconstrained&&(O&&b>0&&(j=de.getAbsoluteDistance(_[b-1],r.margin,!1),w=Math.max(w,j)),W&&b<Z.length-1&&(j=de.getAbsoluteDistance(_[b+1],r.margin,!0),w=Math.min(w,j))),Z.length>1&&r.limit&&(O&&b>0&&(j=de.getAbsoluteDistance(_[b-1],r.limit,!1),w=Math.min(w,j)),W&&b<Z.length-1&&(j=de.getAbsoluteDistance(_[b+1],r.limit,!0),w=Math.max(w,j))),r.padding&&(b===0&&(j=de.getAbsoluteDistance(0,r.padding[0],!1),w=Math.max(w,j)),b===Z.length-1&&(j=de.getAbsoluteDistance(100,r.padding[1],!0),w=Math.min(w,j))),X||(w=de.getStep(w)),w=On(w),w===_[b]&&!U?!1:w}function mi(_,b){var w=r.ort;return(w?b:_)+", "+(w?_:b)}function Ni(_,b,w,O,W){var U=w.slice(),X=O[0],j=r.events.smoothSteps,ue=[!_,_],fe=[_,!_];O=O.slice(),_&&O.reverse(),O.length>1?O.forEach(function(_e,me){var Te=Ht(U,_e,U[_e]+b,ue[me],fe[me],!1,j);Te===!1?b=0:(b=Te-U[_e],U[_e]=Te)}):ue=fe=[!0];var Ce=!1;O.forEach(function(_e,me){Ce=at(_e,w[_e]+b,ue[me],fe[me],!1,j)||Ce}),Ce&&(O.forEach(function(_e){Se("update",_e),Se("slide",_e)}),W!=null&&Se("drag",X))}function Ri(_,b){return r.dir?100-_-b:_}function p0(_,b){he[_]=b,Qe[_]=de.fromStepping(b);var w=Ri(b,0)-zr,O="translate("+mi(w+"%","0")+")";if(Z[_].style[r.transformRule]=O,r.events.invertConnects&&he.length>1){var W=he.every(function(U,X,j){return X===0||U>=j[X-1]});if(Bt!==!W){h0();return}}wt(_),wt(_+1),Bt&&(wt(_-1),wt(_+2))}function ui(){Fe.forEach(function(_){var b=he[_]>50?-1:1,w=3+(Z.length+b*_);Z[_].style.zIndex=String(w)})}function at(_,b,w,O,W,U){return W||(b=Ht(he,_,b,w,O,!1,U)),b===!1?!1:(p0(_,b),!0)}function wt(_){if(pe[_]){var b=he.slice();Bt&&b.sort(function(j,ue){return j-ue});var w=0,O=100;_!==0&&(w=b[_-1]),_!==pe.length-1&&(O=b[_]);var W=O-w,U="translate("+mi(Ri(w,W)+"%","0")+")",X="scale("+mi(W/100,"1")+")";pe[_].style[r.transformRule]=U+" "+X}}function Wi(_,b){return _===null||_===!1||_===void 0||(typeof _=="number"&&(_=String(_)),_=r.format.from(_),_!==!1&&(_=de.toStepping(_)),_===!1||isNaN(_))?he[b]:_}function Nt(_,b,w){var O=Kt(_),W=he[0]===void 0;b=b===void 0?!0:b,r.animate&&!W&&Pn(v,r.cssClasses.tap,r.animationDuration),Fe.forEach(function(j){at(j,Wi(O[j],j),!0,!1,w)});var U=Fe.length===1?0:1;if(W&&de.hasNoSize()&&(w=!0,he[0]=0,Fe.length>1)){var X=100/(Fe.length-1);Fe.forEach(function(j){he[j]=j*X})}for(;U<Fe.length;++U)Fe.forEach(function(j){at(j,he[j],!0,!0,w)});ui(),Fe.forEach(function(j){Se("update",j),O[j]!==null&&b&&Se("set",j)})}function m0(_){Nt(r.start,_)}function u0(_,b,w,O){if(_=Number(_),!(_>=0&&_<Fe.length))throw new Error("noUiSlider: invalid handle number, got: "+_);at(_,Wi(b,_),!0,!0,O),Se("update",_),w&&Se("set",_)}function Ui(_){if(_===void 0&&(_=!1),_)return Qe.length===1?Qe[0]:Qe.slice(0);var b=Qe.map(r.format.to);return b.length===1?b[0]:b}function f0(){for(Mt(nt.aria),Mt(nt.tooltips),Object.keys(r.cssClasses).forEach(function(_){jt(v,r.cssClasses[_])});v.firstChild;)v.removeChild(v.firstChild);delete v.noUiSlider}function $i(_){var b=he[_],w=de.getNearbySteps(b),O=Qe[_],W=w.thisStep.step,U=null;if(r.snap)return[O-w.stepBefore.startValue||null,w.stepAfter.startValue-O||null];W!==!1&&O+W>w.stepAfter.startValue&&(W=w.stepAfter.startValue-O),O>w.thisStep.startValue?U=w.thisStep.step:w.stepBefore.step===!1?U=!1:U=O-w.stepBefore.highestStep,b===100?W=null:b===0&&(U=null);var X=de.countStepDecimals();return W!==null&&W!==!1&&(W=Number(W.toFixed(X))),U!==null&&U!==!1&&(U=Number(U.toFixed(X))),[U,W]}function v0(){return Fe.map($i)}function g0(_,b){var w=Ui(),O=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];O.forEach(function(U){_[U]!==void 0&&(t[U]=_[U])});var W=Un(t);O.forEach(function(U){_[U]!==void 0&&(r[U]=W[U])}),de=W.spectrum,r.margin=W.margin,r.limit=W.limit,r.padding=W.padding,r.pips?li(r.pips):si(),r.tooltips?Vi():ai(),he=[],Nt(_i(_.start)?_.start:w,b),_.connect&&Gi()}function Gi(){for(;re.firstChild;)re.removeChild(re.firstChild);for(var _=0;_<=r.handles;_++)pe[_]=oi(re,r.connect[_]),wt(_);Hi({drag:r.events.drag,fixed:!0})}function h0(){Bt=!Bt,Rn(r,r.connect.map(function(_){return!_})),Gi()}function C0(){G=Zr(v),qr(r.connect,G),Hi(r.events),Nt(r.start),r.pips&&li(r.pips),r.tooltips&&Vi(),Xr()}C0();var Rt={destroy:f0,steps:v0,on:pi,off:Mt,get:Ui,set:Nt,setHandle:u0,reset:m0,disable:Qr,enable:Jr,__moveHandles:function(_,b,w){Ni(_,b,he,w)},options:t,updateOptions:g0,target:v,removePips:si,removeTooltips:ai,getPositions:function(){return he.slice()},getTooltips:function(){return Be},getOrigins:function(){return Z},pips:li};return Rt}function $n(e,r){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=Un(r),o=Ss(e,t,r);return e.noUiSlider=o,o}var Si=class{to(r){return String(parseFloat(parseFloat(String(r)).toFixed(2)))}from(r){return parseFloat(r)}},le=(()=>{class e{constructor(t,o,i){this.ngZone=t,this.el=o,this.renderer=i,this.handles=[],this.config={},this.change=new st(!0),this.update=new st(!0),this.slide=new st(!0),this.set=new st(!0),this.start=new st(!0),this.end=new st(!0),this.onChange=Function.prototype,this.cleanups=[],this.eventHandler=(p,v,G,re)=>{let Z=this.toValues(v),pe=!1;if(this.value===void 0){this.value=Z;return}Array.isArray(Z)&&this.value[G]!=Z[G]&&(pe=!0),!Array.isArray(Z)&&this.value!=Z&&(pe=!0),pe&&this.ngZone.run(()=>{p.observers.length>0&&p.emit(Z),this.onChange(Z)}),Array.isArray(Z)?this.value[G]=Z[G]:this.value=Z},this.defaultKeyHandler=p=>{let v=this.slider.steps(),G=parseInt(p.target.getAttribute("data-handle")),re=1,Z=1,pe=0,ge=0;switch(p.which){case 34:Z=this.config.pageSteps;break;case 40:case 37:re=-1,pe=v[G][0],p.preventDefault();break;case 33:Z=this.config.pageSteps;break;case 38:case 39:pe=v[G][1],p.preventDefault();break;default:break}ge=re*Z*pe;let Be;Array.isArray(this.value)?(Be=[...this.value],Be[G]=Be[G]+ge):Be=this.value+ge,this.slider.set(Be)}}ngOnChanges(t){this.slider&&(t.min||t.max||t.step||t.range)&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.slider.updateOptions({range:Object.assign({},{min:this.min,max:this.max},this.range||{}),step:this.step})})})}ngOnDestroy(){for(this.slider.destroy();this.cleanups.length;)this.cleanups.pop()?.()}toValues(t){let o=t.map(this.config.format.from);return o.length==1?o[0]:o}writeValue(t){this.slider?this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.slider.set(t)})}):t!==null&&(this.value=t,this.createSlider(t))}registerOnChange(t){this.onChange=t}registerOnTouched(t){}setDisabledState(t){t?this.renderer.setAttribute(this.el.nativeElement.childNodes[0],"disabled","true"):this.renderer.removeAttribute(this.el.nativeElement.childNodes[0],"disabled")}createSlider(t){let o=JSON.parse(JSON.stringify({behaviour:this.behaviour,connect:this.connect,limit:this.limit,start:t,step:this.step,pageSteps:this.pageSteps,keyboard:this.keyboard,onKeydown:this.onKeydown,range:this.range||this.config.range||{min:this.min,max:this.max},tooltips:this.tooltips,snap:this.snap,animate:this.animate}));if(o.tooltips=this.tooltips||this.config.tooltips,o.format=this.format||this.config.format||new Si,this.ngZone.runOutsideAngular(()=>{this.slider=$n(this.el.nativeElement.querySelector("div"),Object.assign(this.config,o))}),this.handles=[].slice.call(this.el.nativeElement.querySelectorAll(".noUi-handle")),this.config.keyboard){this.config.pageSteps===void 0&&(this.config.pageSteps=10);for(let i of this.handles){i.setAttribute("tabindex",0);let p=this.config.onKeydown||this.defaultKeyHandler;this.ngZone.runOutsideAngular(()=>{this.cleanups.push(this.renderer.listen(i,"keydown",p),this.renderer.listen(i,"click",()=>{i.focus()}))})}}this.slider.on("set",(i,p,v)=>{this.eventHandler(this.set,i,p,v)}),this.slider.on("update",(i,p,v)=>{this.update.observers.length>0&&this.ngZone.run(()=>{this.update.emit(this.toValues(i))})}),this.slider.on("change",(i,p,v)=>{this.change.observers.length>0&&this.ngZone.run(()=>{this.change.emit(this.toValues(i))})}),this.slider.on("slide",(i,p,v)=>{this.eventHandler(this.slide,i,p,v)}),this.slider.on("start",(i,p,v)=>{this.start.observers.length>0&&this.ngZone.run(()=>{this.start.emit(this.toValues(i))})}),this.slider.on("end",(i,p,v)=>{this.end.observers.length>0&&this.ngZone.run(()=>{this.end.emit(this.toValues(i))})})}}return e.\u0275fac=function(t){return new(t||e)($t(on),$t(an),$t(sn))},e.\u0275cmp=B({type:e,selectors:[["nouislider"]],hostVars:2,hostBindings:function(t,o){t&2&&R("ng2-nouislider",!0)},inputs:{disabled:"disabled",behaviour:"behaviour",connect:"connect",limit:"limit",min:"min",max:"max",snap:"snap",animate:"animate",range:"range",step:"step",format:"format",pageSteps:"pageSteps",config:"config",keyboard:"keyboard",onKeydown:"onKeydown",tooltips:"tooltips"},outputs:{change:"change",update:"update",slide:"slide",set:"set",start:"start",end:"end"},features:[mn([{provide:yn,useExisting:nn(()=>e),multi:!0}]),rn],decls:1,vars:1,template:function(t,o){t&1&&I(0,"div"),t&2&&x("disabled",o.disabled?!0:void 0)},styles:["[_nghost-%COMP%]{display:block;margin-top:1rem;margin-bottom:1rem}"]}),e})();var ne=(()=>{class e{destroyRef=D(et);$activeModal=D(Gt);cdr=D(vn);service;$accessories;ngOnInit(){this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(je(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}createDebouncedSubscription(t,o,i=500){t.pipe(en(i),je(this.destroyRef)).subscribe(o)}applySliderGradient(t,o=".noUi-target"){requestAnimationFrame(()=>{document.querySelectorAll(o).forEach(p=>{p.style.background=t})})}blurTarget(t){t.target.blur()}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{service:"service",$accessories:"$accessories"},decls:0,vars:0,template:function(o,i){},encapsulation:2,changeDetection:0})}return e})();var qt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Ts(e,r){if(e&1){let t=$();a(0,"button",6),S("click",function(i){L(t);let p=m(2);return V(p.setTargetMode(0,i))}),a(1,"div",7),u(2,"i",8),l(),d(3),s(4,"translate"),a(5,"div",9),u(6,"i",10),l()()}if(e&2){let t=m(2);n(2),A(F(5,qt,t.targetMode===0,t.targetMode!==0)),n(),g(" ",c(4,3,"accessories.control.manual")," ")}}function bs(e,r){if(e&1){let t=$();a(0,"button",6),S("click",function(i){L(t);let p=m(2);return V(p.setTargetMode(1,i))}),a(1,"div",7),u(2,"i",8),l(),d(3),s(4,"translate"),a(5,"div",9),u(6,"i",10),l()()}if(e&2){let t=m(2);n(2),A(F(5,qt,t.targetMode===1,t.targetMode!==1)),n(),g(" ",c(4,3,"accessories.control.auto")," ")}}function Bs(e,r){if(e&1&&(a(0,"h6",12),d(1),s(2,"translate"),l(),a(3,"div",5),s(4,"translate"),h(5,Ts,7,8,"button",13),h(6,bs,7,8,"button",13),l()),e&2){let t=m();n(),f(c(2,4,"accessories.control.mode")),n(2),x("aria-label",c(4,6,"accessories.control.mode_control")),n(2),C(t.targetModeValidValues.includes(0)?5:-1),n(),C(t.targetModeValidValues.includes(1)?6:-1)}}function Ms(e,r){if(e&1){let t=$();a(0,"h6",12),d(1),s(2,"translate"),l(),a(3,"nouislider",14),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetRotationSpeed.value,i)||(p.targetRotationSpeed.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onTargetRotationSpeedChange())}),l()}if(e&2){let t=m();n(),N("",c(2,6,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value,"%"),n(2),T("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),z("ngModel",t.targetRotationSpeed.value)}}var Gn=(()=>{class e extends ne{targetState;targetMode;targetModeValidValues=[];targetRotationSpeed;targetRotationSpeedChanged=new J;setupComponent(){this.createDebouncedSubscription(this.targetRotationSpeedChanged,()=>{this.service.getCharacteristic("RotationSpeed").setValue(this.targetRotationSpeed.value),this.targetRotationSpeed.value&&!this.targetState?(this.targetState=1,"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!0)):!this.targetRotationSpeed.value&&this.targetState&&(this.targetState=0,"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(0):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!1))}),this.targetState="Active"in this.service.values?this.service.values.Active:this.service.values.On?1:0,this.targetMode=this.service.values.TargetAirPurifierState,"TargetAirPurifierState"in this.service.values&&(this.targetModeValidValues=this.service.getCharacteristic("TargetAirPurifierState").validValues),this.loadRotationSpeed()}handleAccessoryUpdate(){this.targetState="Active"in this.service.values?this.service.values.Active:this.service.values.On?1:0,this.targetMode=this.service.values.TargetAirPurifierState,this.targetRotationSpeed&&(this.targetRotationSpeed.value=this.service.getCharacteristic("RotationSpeed")?.value)}setTargetState(t,o){this.targetState=t,"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.targetState):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(this.targetState===1),this.blurTarget(o)}setTargetMode(t,o){this.targetMode=t,this.service.getCharacteristic("TargetAirPurifierState").setValue(this.targetMode),this.blurTarget(o)}onTargetRotationSpeedChange(){this.targetRotationSpeedChanged.next(this.targetRotationSpeed.value)}loadRotationSpeed(){let t=this.service.getCharacteristic("RotationSpeed");t&&(this.targetRotationSpeed={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #add8e6, #416bdf)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:25,vars:25,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5),s(7,"translate"),a(8,"button",6),S("click",function(v){return i.setTargetState(0,v)}),a(9,"div",7),u(10,"i",8),l(),d(11),s(12,"translate"),a(13,"div",9),u(14,"i",10),l()(),a(15,"button",6),S("click",function(v){return i.setTargetState(1,v)}),a(16,"div",7),u(17,"i",8),l(),d(18),s(19,"translate"),a(20,"div",9),u(21,"i",10),l()()(),h(22,Bs,7,8),h(23,Ms,4,8),l(),u(24,"div",11),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,11,"form.button_close")),n(3),x("aria-label",c(7,13,"accessories.control.state_control")),n(4),A(F(19,qt,i.targetState===0,i.targetState!==0)),n(),g(" ",c(12,15,"accessories.control.off")," "),n(6),A(F(22,qt,i.targetState===1,i.targetState!==1)),n(),g(" ",c(19,17,"accessories.control.on")," "),n(4),C(i.targetModeValidValues.length?22:-1),n(),C(i.targetRotationSpeed?23:-1))},dependencies:[oe,ae,se,le,M],styles:[".purifying svg .air-wave{animation:_ngcontent-%COMP%_wave-motion 5s ease-in-out infinite;stroke:#1976d2;stroke-opacity:.5} .purifying svg .bottom-line{animation-delay:.4s}@keyframes _ngcontent-%COMP%_wave-motion{0%,to{transform:translateY(0);stroke-opacity:.5}50%{transform:translateY(2px);stroke-opacity:1}}"],changeDetection:0})}return e})();var Y=(()=>{class e{downTimeout;done=!1;touchInProgress=!1;touchStartTime=0;duration=350;longClick=Ci();shortClick=Ci();onEnter(t){this.shortClick.emit(t)}onMouseUp(t){!this.touchInProgress&&!this.isSyntheticEvent()&&(clearTimeout(this.downTimeout),this.done||(this.done=!0,this.shortClick.emit(t)))}onTouchEnd(t){clearTimeout(this.downTimeout),this.done||(this.done=!0,this.shortClick.emit(t)),setTimeout(()=>{this.touchInProgress=!1},150)}onMouseDown(t){if("touches"in t){this.touchInProgress=!0,this.done=!1,this.touchStartTime=Date.now(),t.cancelable&&this.isSafariMobile()&&t.preventDefault(),this.downTimeout=setTimeout(()=>{this.done||(this.done=!0,this.longClick.emit(t))},this.duration);return}!this.touchInProgress&&!this.isSyntheticEvent()&&t.button===0&&(this.done=!1,this.downTimeout=setTimeout(()=>{this.done||(this.done=!0,this.longClick.emit(t))},this.duration))}onMouseMove(){this.done=!0,clearTimeout(this.downTimeout)}isSyntheticEvent(){let t=Date.now()-this.touchStartTime;return this.touchInProgress&&t<300}isSafariMobile(){let t=navigator.userAgent;return/iPad|iPhone|iPod/.test(t)&&/Safari/.test(t)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(t)}ngOnDestroy(){clearTimeout(this.downTimeout),this.touchInProgress=!1}static \u0275fac=function(o){return new(o||e)};static \u0275dir=ln({type:e,selectors:[["","shortClick",""],["","longClick",""]],hostBindings:function(o,i){o&1&&S("keyup.enter",function(v){return i.onEnter(v)})("mouseup",function(v){return i.onMouseUp(v)})("touchend",function(v){return i.onTouchEnd(v)})("touchstart",function(v){return i.onMouseDown(v)})("mousedown",function(v){return i.onMouseDown(v)})("mousemove",function(){return i.onMouseMove()})("touchmove",function(){return i.onMouseMove()})},inputs:{duration:"duration"},outputs:{longClick:"longClick",shortClick:"shortClick"}})}return e})();var ws=(e,r)=>({"accessory-on":e,purifying:r});function Es(e,r){if(e&1&&(a(0,"div",18),d(1),l()),e&2){let t=m(2);n(),g("",t.service.values.RotationSpeed,"%")}}function As(e,r){e&1&&(a(0,"div",18),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.on")))}function Is(e,r){if(e&1&&h(0,Es,2,1,"div",18)(1,As,3,3,"div",18),e&2){let t=m();C("RotationSpeed"in t.service.values?0:1)}}function Ds(e,r){e&1&&(a(0,"div",18),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.idle")))}function Ls(e,r){e&1&&(a(0,"div",18),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.off")))}var jn=(()=>{class e{$accessories=D(ee);$modal=D(Q);hasTargetValidValues=!1;service;readyForControl=!1;ngOnInit(){"TargetAirPurifierState"in this.service.values&&(this.hasTargetValidValues=this.service.getCharacteristic("TargetAirPurifierState").validValues.length>0)}onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On))}onLongClick(){if(this.readyForControl&&(this.hasTargetValidValues||"RotationSpeed"in this.service.values)){let t=this.$modal.open(Gn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-air-purifier"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:23,vars:10,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["d","M3,3.0706147 C3.28945166,3.8007217 5.978098,4.1773883 10.0660175,4.2006147 C12.5085124,4.2144929 18.5053297,1.8514837 22.4060749,1.1943647 C24.1588716,0.898084 26.5955382,1.1756219 28.716875,2.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-wave"],["d","M3,9.0706147 C3.28945166,9.8007217 5.978098,10.1773883 10.0660175,10.2006147 C12.5085124,10.2144929 18.5053297,7.8514837 22.4060749,7.1943647 C24.1588716,6.898084 26.5955382,7.1756219 28.716875,8.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-wave","bottom-line"],["x1","7","y1","14","x2","25","y2","14","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","7","y1","14","x2","2","y2","23","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","25","y1","14","x2","30","y2","23","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","8","y1","16.5","x2","24","y2","16.5","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round"],["x1","7","y1","18.5","x2","25","y2","18.5","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round"],["x1","6","y1","20.5","x2","26","y2","20.5","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round"],["x1","2","y1","23","x2","30","y2","23","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","30","y1","23","x2","30","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","2","y1","23","x2","2","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["cx","15.5","cy","27","r","2.5","stroke","#7f7f7f","stroke-width","1","fill","#1976d2","fill-opacity","0.5"],["x1","2","y1","31","x2","30","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"path",4)(6,"path",5)(7,"line",6)(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"circle",15)(17,"line",16),l()(),P(),a(18,"div",17),d(19),l(),h(20,Is,2,1)(21,Ds,3,3,"div",18)(22,Ls,3,3,"div",18),l()()),o&2&&(A(F(7,ws,i.service.values.Active&&!("CurrentAirPurifierState"in i.service.values)||i.service.values.Active&&"CurrentAirPurifierState"in i.service.values&&i.service.values.CurrentAirPurifierState!==0||i.service.values.On,i.service.values.Active&&!("CurrentAirPurifierState"in i.service.values)||i.service.values.Active&&"CurrentAirPurifierState"in i.service.values&&i.service.values.CurrentAirPurifierState===2||i.service.values.On)),n(2),x("aria-label",c(3,5,"accessories.core.air_purifier")),n(17),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.Active&&!("CurrentAirPurifierState"in i.service.values)||i.service.values.Active&&"CurrentAirPurifierState"in i.service.values&&i.service.values.CurrentAirPurifierState===2||i.service.values.On?20:i.service.values.Active&&!("CurrentAirPurifierState"in i.service.values)||i.service.values.Active&&"CurrentAirPurifierState"in i.service.values&&i.service.values.CurrentAirPurifierState===1||i.service.values.On?21:22))},dependencies:[Y,M],styles:[".purifying svg .air-wave{animation:_ngcontent-%COMP%_wave-motion 5s ease-in-out infinite;stroke:#1976d2;stroke-opacity:.5} .purifying svg .bottom-line{animation-delay:.4s}@keyframes _ngcontent-%COMP%_wave-motion{0%,to{transform:translateY(0);stroke-opacity:.5}50%{transform:translateY(2px);stroke-opacity:1}}"]})}return e})();var Vs=()=>[3,4],Fs=()=>[1,2],Ps=(e,r,t,o)=>({"accessory-on":e,"fill-red":r,"fill-orange":t,"fill-green":o}),Os=(e,r)=>({"grey-text":e,"red-text":r}),zn=(()=>{class e{service;labels=["Unknown","Excellent","Good","Fair","Inferior","Poor"];static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-air-quality-sensor"]],inputs:{service:"service"},decls:25,vars:19,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["transform","translate(5.1, 3) scale(0.68)"],["fill","#7f7f7f","d","M10.1435881,25.4905179 C10.286009,26.7050605 10.531254,27.9706077 10.8919121,29.2887103 C6.25942062,27.4175104 3.57173247,24.180341 2.39781526,19.889403 C1.54190101,16.760839 1.56931096,13.3702525 2.13724518,10.1783222 C2.1501971,10.1055292 2.17646546,9.96330988 2.17646546,9.96330988 C2.17646546,9.96330988 2.33770347,10.0208429 2.92620872,10.2769757 C4.60998953,11.0098007 6.29364519,11.9318703 7.85704035,13.0517448 C9.19214306,14.0080913 10.3087445,15.0188915 11.223018,16.0899229 L11.223018,16.0899229 C10.426841,18.1910249 9.96797687,20.5297906 9.99206994,23.1241613 L5.43414987,14.7605739 C5.30203551,14.5181498 4.99858593,14.4288208 4.75637627,14.5610522 C4.51416661,14.6932836 4.42491674,14.9970019 4.5570311,15.2394261 L10.1435881,25.4905179 Z M13.0333542,29.4136738 C10.9912074,19.9059085 11.088992,14.922477 21.5133004,6.73565972 C23.6127007,5.0868782 25.9746706,4.01306759 28.2881453,3.03596757 C29.0967374,2.69445726 29.3182746,2.61774651 29.3182746,2.61774651 C29.3182746,2.61774651 29.3543667,2.80737221 29.3721623,2.90442957 C30.1524904,7.1603367 30.190151,11.6811187 29.0141452,15.8525373 C27.1508473,22.4618551 22.5118613,27.1961122 14.1841552,29.413553 L25.4116309,9.74806947 C25.5485147,9.50831075 25.46529,9.20288341 25.2257434,9.06587843 C24.9861969,8.92887344 24.6810398,9.01217181 24.544156,9.25193053 L13.0333542,29.4136738 Z M13.4880693,32 C38.9655056,25.5 30.755735,0 30.755735,0 C30.755735,0 17.0308715,3.72274828 11.9893965,14.5 C7.99293593,9 0.873098889,8 0.873098889,8 C-3.99644586,30.5 13.4880693,32 13.4880693,32 Z",1,"leaves"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"g",5),I(7,"path",6),k(),I(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19),k()(),P(),y(21,"div",20),d(22),k(),y(23,"div",21),d(24),k()()()),o&2&&(A(gt(11,Ps,i.service.values.AirQuality===5,i.service.values.AirQuality===5,xe(9,Vs).includes(i.service.values.AirQuality),xe(10,Fs).includes(i.service.values.AirQuality))),n(2),x("aria-label",c(3,7,"accessories.core.air_quality_sensor")),n(20),f(i.service.customName||i.service.serviceName),n(),A(F(16,Os,i.service.values.AirQuality<5,i.service.values.AirQuality===5)),n(),g(" ",i.labels[i.service.values.AirQuality||0]," "))},dependencies:[M],styles:[".fill-red svg .leaves{fill:#d32f2f!important;fill-opacity:.5!important} .fill-orange svg .leaves{fill:#ff9800!important;fill-opacity:.5!important} .fill-green svg .leaves{fill:#4caf50!important;fill-opacity:.5!important}"]})}return e})();function Hs(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.battery_notcharging")," ")}function Ns(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.battery_charging")," ")}function Rs(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.battery_notchargeable")," ")}function Ws(e,r){e&1&&(y(0,"span",10),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.battery_low")))}function Us(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.battery_charged")," ")}var Kn=(()=>{class e{service;Math=Math;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-battery"]],inputs:{service:"service"},decls:18,vars:11,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","5","height","13","rx","2","stroke","none","stroke-width","0"],["x","29.5","y","8","width","2","height","7","rx","2","stroke","none","fill","#7f7f7f","stroke-width","1"],["x","1","y","5","width","29","height","13","rx","2","stroke","#7f7f7f","fill","none","stroke-width","0.75"],["x","16","y","28","font-size","9","text-anchor","middle","fill","#7f7f7f","font-family","Arial, sans-serif"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"red-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4)(6,"rect",5)(7,"rect",6),y(8,"text",7),d(9),k()()(),P(),y(10,"div",8),d(11),k(),y(12,"div",9),h(13,Hs,2,3)(14,Ns,2,3)(15,Rs,2,3)(16,Ws,3,3,"span",10)(17,Us,2,3),k()()()),o&2&&(R("accessory-on",i.service.values.ChargingState===1),n(2),x("aria-label",c(3,9,"accessories.core.battery")),n(3),x("width",i.Math.round(29/100*(i.service.values.BatteryLevel||0)))("fill",i.service.values.ChargingState===1?"#4caf50":i.service.values.StatusLowBattery===1?"#e69533":"#808080")("fill-opacity",i.service.values.ChargingState===1||i.service.values.StatusLowBattery===1?"0.5":"1"),n(4),g(" ",i.service.values.BatteryLevel||0,"% "),n(2),f(i.service.customName||i.service.serviceName),n(2),C(i.service.values.ChargingState===0?13:i.service.values.ChargingState===1?14:i.service.values.ChargingState===2?15:i.service.values.StatusLowBattery===1||i.service.values.BatteryLevel===0?16:17))},dependencies:[M],styles:['.batterylevel-battery[_ngcontent-%COMP%]{position:relative;width:75px;height:30px;border:1px solid rgb(128,128,128);border-radius:4px;margin-bottom:6px;text-align:center;display:flex;align-items:center;justify-content:center;color:#d3d3d3;font-size:14px}.batterylevel-battery[_ngcontent-%COMP%]:after{content:"";position:absolute;top:7px;right:-6px;width:6px;height:13px;background-color:gray;border-radius:2px}.batterylevel-battery[_ngcontent-%COMP%] .battery-level-fill[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;background-color:gray;z-index:1;transition:width .3s ease-in-out}.batterylevel-battery[_ngcontent-%COMP%] .battery-text[_ngcontent-%COMP%]{position:relative;z-index:2}.batterylevel-battery[_ngcontent-%COMP%] .battery-over[_ngcontent-%COMP%]{color:#d3d3d3}.batterylevel-battery[_ngcontent-%COMP%] .battery-under[_ngcontent-%COMP%]{color:gray}@media(max-width:575px){.batterylevel-battery[_ngcontent-%COMP%]{width:50px;height:25px;font-size:12px}.batterylevel-battery[_ngcontent-%COMP%]:after{top:4px}}.lowbattery[_ngcontent-%COMP%] .battery-level-fill[_ngcontent-%COMP%]{background-color:#e69533}.charging[_ngcontent-%COMP%] .battery-level-fill[_ngcontent-%COMP%]{background-color:#4caf50}']})}return e})();function $s(e,r){e&1&&(y(0,"div",16),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.detected")))}function Gs(e,r){e&1&&(y(0,"div",17),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.not_detected")))}var qn=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-carbon-dioxide-sensor"]],inputs:{service:"service"},decls:21,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","30","height","12","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.25"],["text-anchor","middle","dominant-baseline","middle","font-family","Arial","font-size","7.5","x","16","y","7.7","fill","#7f7f7f","stroke-width","0.6","font-weight","900",1,"type"],["x1","6","y1","14.5","x2","25.5","y2","14.5","stroke","#1976d2","stroke-opacity","0.5","stroke-width","2"],["stroke-linecap","round","x1","5","y1","13","x2","6.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","11","y1","13","x2","11","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","15.5","y1","13","x2","15.5","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","20","y1","13","x2","20","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","26","y1","13","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","6.5","y1","16","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["d","M3,24.0706147 C3.28945166,24.8007217 5.978098,25.1773883 10.0660175,25.2006147 C12.5085124,25.2144929 18.5053297,22.8514837 22.4060749,22.1943647 C24.1588716,21.898084 26.5955382,22.1756219 28.716875,23.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],["d","M3,30.0706147 C3.28945166,30.8007217 5.978098,31.1773883 10.0660175,31.2006147 C12.5085124,31.2144929 18.5053297,28.8514837 22.4060749,28.1943647 C24.1588716,27.898084 26.5955382,28.1756219 28.716875,29.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"text",5),d(7," CO2 "),k(),I(8,"line",6)(9,"line",7)(10,"line",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"path",13)(16,"path",14),k()(),P(),y(17,"div",15),d(18),k(),h(19,$s,3,3,"div",16)(20,Gs,3,3,"div",17),k()()),o&2&&(R("accessory-on",i.service.values.CarbonDioxideDetected),n(2),x("aria-label",c(3,5,"accessories.core.carbon_dioxide_sensor")),n(16),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.CarbonDioxideDetected?19:20))},dependencies:[M],styles:[".accessory-on svg .air-line{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite} .accessory-on svg .type{fill:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{opacity:1}50%{opacity:.2}}"]})}return e})();function js(e,r){e&1&&(y(0,"div",16),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.detected")))}function zs(e,r){e&1&&(y(0,"div",17),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.not_detected")))}var Zn=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-carbon-monoxide-sensor"]],inputs:{service:"service"},decls:21,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","30","height","12","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.25"],["text-anchor","middle","dominant-baseline","middle","font-family","Arial","font-size","7.5","x","16","y","7.7","fill","#7f7f7f","stroke-width","0.6","font-weight","900",1,"type"],["x1","6","y1","14.5","x2","25.5","y2","14.5","stroke","#1976d2","stroke-opacity","0.5","stroke-width","2"],["stroke-linecap","round","x1","5","y1","13","x2","6.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","11","y1","13","x2","11","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","15.5","y1","13","x2","15.5","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","20","y1","13","x2","20","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","26","y1","13","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","6.5","y1","16","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["d","M3,23 C6,25 9,21 12,23 C15,25 18,21 21,23 C24,25 27,21 30,23","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],["d","M3,30 C6,32 9,28 12,30 C15,32 18,28 21,30 C24,32 27,28 30,30","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"text",5),d(7," CO "),k(),I(8,"line",6)(9,"line",7)(10,"line",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"path",13)(16,"path",14),k()(),P(),y(17,"div",15),d(18),k(),h(19,js,3,3,"div",16)(20,zs,3,3,"div",17),k()()),o&2&&(R("accessory-on",i.service.values.CarbonMonoxideDetected),n(2),x("aria-label",c(3,5,"accessories.core.carbon_monoxide_sensor")),n(16),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.CarbonMonoxideDetected?19:20))},dependencies:[M],styles:[".accessory-on svg .air-line{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite} .accessory-on svg .type{fill:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{opacity:1}50%{opacity:.2}}"]})}return e})();function Ks(e,r){e&1&&(y(0,"div",9),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.open")))}function qs(e,r){e&1&&(y(0,"div",10),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.closed")))}var Yn=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-contact-sensor"]],inputs:{service:"service"},decls:13,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","15","height","30","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.5",1,"left-object"],["x","16","y","1","width","15","height","30","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.5",1,"right-object"],["x","10","y","11","width","6","height","10","rx","1","stroke","#7f7f7f","fill","#4caf50","fill-opacity","0.5","stroke-width","0.5",1,"left-sensor"],["x","16","y","11","width","6","height","10","rx","1","stroke","#7f7f7f","fill","#4caf50","fill-opacity","0.5","stroke-width","0.5",1,"right-sensor"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7),k()(),P(),y(9,"div",8),d(10),k(),h(11,Ks,3,3,"div",9)(12,qs,3,3,"div",10),k()()),o&2&&(R("accessory-on",i.service.values.ContactSensorState),n(2),x("aria-label",c(3,5,"accessories.core.contact_sensor")),n(8),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.ContactSensorState?11:12))},dependencies:[M],styles:[".accessory-on svg .left-sensor{fill:#ff9800;fill-opacity:.5} .accessory-on svg .right-object{x:24px} .accessory-on svg .right-sensor{x:24px;fill:#ff9800;fill-opacity:.5}"]})}return e})();function Zs(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.closed")," ")}function Ys(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function Qs(e,r){if(e&1&&h(0,Zs,2,3)(1,Ys,2,4),e&2){let t=m();C(t.service.values.CurrentPosition===0?0:1)}}function Js(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.opening"),"... ")}function Xs(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.closing"),"... ")}var Qn=(()=>{class e extends ne{targetMode;targetPositionChanged=new J;targetPosition;setupComponent(){this.createDebouncedSubscription(this.targetPositionChanged,()=>{this.service.getCharacteristic("CurrentPosition").value<this.targetPosition.value?this.service.values.PositionState=1:this.service.getCharacteristic("CurrentPosition").value>this.targetPosition.value&&(this.service.values.PositionState=0),this.service.getCharacteristic("TargetPosition").setValue(this.targetPosition.value)}),this.targetMode=this.service.values.On,this.loadTargetPosition()}handleAccessoryUpdate(){this.targetMode=this.service.values.On,this.targetPosition&&(this.targetPosition.value=this.service.getCharacteristic("TargetPosition")?.value)}onTargetPositionChange(){this.targetPositionChanged.next(this.targetPosition.value)}loadTargetPosition(){let t=this.service.getCharacteristic("TargetPosition");t&&(this.targetPosition={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:34,vars:34,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"d-flex","justify-content-center","mb-0","p-0"],[1,"mb-0","mx-0","p-3","btn-read","w-100"],[1,"mt-4"],[1,"mb-1",3,"ngModelChange","min","max","step","ngModel"],[1,"d-flex","justify-content-between","align-items-center","mt-0","mb-1"],[1,"grey-text","small"],[1,"mb-1",3,"ngModelChange","min","max","step","disabled","ngModel"],[1,"modal-footer"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5)(7,"div",6),h(8,Qs,2,1)(9,Js,2,3)(10,Xs,2,3),l()(),a(11,"h6",7),d(12),s(13,"translate"),l(),a(14,"nouislider",8),q("ngModelChange",function(v){return K(i.targetPosition.value,v)||(i.targetPosition.value=v),v}),S("ngModelChange",function(){return i.onTargetPositionChange()}),l(),a(15,"div",9)(16,"span",10),d(17),s(18,"translate"),l(),a(19,"span",10),d(20),s(21,"translate"),l()(),a(22,"h6",7),d(23),s(24,"translate"),l(),a(25,"nouislider",11),q("ngModelChange",function(v){return K(i.service.getCharacteristic("CurrentPosition").value,v)||(i.service.getCharacteristic("CurrentPosition").value=v),v}),l(),a(26,"div",9)(27,"span",10),d(28),s(29,"translate"),l(),a(30,"span",10),d(31),s(32,"translate"),l()()(),u(33,"div",12),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,20,"form.button_close")),n(5),C(i.service.values.PositionState===2?8:i.service.values.PositionState===1?9:i.service.values.PositionState===0?10:-1),n(4),N("",c(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),n(2),T("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),z("ngModel",i.targetPosition.value),n(3),f(c(18,24,"accessories.control.closed")),n(3),f(c(21,26,"accessories.control.open")),n(3),N(" ",c(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),n(2),T("min",0)("max",100)("step",1)("disabled",!0),z("ngModel",i.service.getCharacteristic("CurrentPosition").value),n(3),f(c(29,30,"accessories.control.closed")),n(3),f(c(32,32,"accessories.control.open")))},dependencies:[le,oe,ae,se,M],encapsulation:2,changeDetection:0})}return e})();function el(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.closed")," ")}function tl(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.values.CurrentPosition,"% ")}}function il(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.open")," ")}function nl(e,r){if(e&1&&(a(0,"div",11),h(1,el,2,3),h(2,tl,2,4),h(3,il,2,3),l()),e&2){let t=m();n(),C(t.service.values.CurrentPosition===0?1:-1),n(),C(t.service.values.CurrentPosition>0&&t.service.values.CurrentPosition<100?2:-1),n(),C(t.service.values.CurrentPosition===100?3:-1)}}function ol(e,r){e&1&&(a(0,"div",12),d(1),s(2,"translate"),l()),e&2&&(n(),g("",c(2,1,"accessories.control.opening"),"..."))}function rl(e,r){e&1&&(a(0,"div",12),d(1),s(2,"translate"),l()),e&2&&(n(),g("",c(2,1,"accessories.control.closing"),"..."))}var Jn=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&(this.service.values.TargetPosition?this.service.getCharacteristic("TargetPosition").setValue(0):this.service.getCharacteristic("TargetPosition").setValue(100))}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(Qn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-door"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:16,vars:7,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","7.8","y","0.8","width","16.4","height","30.2","rx","0.5","stroke","#7f7f7f","fill","none","stroke-width","1.5"],["x","9.6","y","2.6","width","12.8","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1",1,"outline"],["x","11.2","y","4.2","width","9.6","height","10.8","stroke","#7f7f7f","fill-opacity","0","stroke-width","0.5","rx","0.25",1,"panel"],["x","11.2","y","16.8","width","9.6","height","10.8","stroke","#7f7f7f","fill-opacity","0","stroke-width","0.5","rx","0.25",1,"panel"],["x1","0","y1","31","x2","32","y2","31","stroke","#7f7f7f","stroke-width","1.5"],["x","19.25","y","15.87","width","1.55","height","0.05","stroke","#1976d2","fill","none","stroke-width","0.5","rx","10",1,"handle"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","red-text"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"line",8)(10,"rect",9),l()(),P(),a(11,"div",10),d(12),l(),h(13,nl,4,3,"div",11)(14,ol,3,3,"div",12)(15,rl,3,3,"div",12),l()()),o&2&&(R("accessory-on",i.service.values.CurrentPosition),n(2),x("aria-label",c(3,5,"accessories.core.door")),n(10),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.PositionState===2?13:i.service.values.PositionState===1?14:i.service.values.PositionState===0?15:-1))},dependencies:[Y,M],styles:["svg .outline{transition:width 3s ease;width:12.8px} svg .panel{transition:width 3s ease;width:9.6px} svg .handle{visibility:visible;opacity:1;transition:opacity 3s ease,visibility 0s linear 3s} .accessory-on svg .outline{transition:width 3s ease;width:3.8px} .accessory-on svg .panel{transition:width 3s ease;width:.6px} .accessory-on svg .handle{visibility:hidden;opacity:0;transition:opacity 3s ease,visibility 0s linear 0s}"]})}return e})();var ct=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function al(e,r){if(e&1){let t=$();a(0,"div",5),s(1,"translate"),a(2,"button",7),S("click",function(i){L(t);let p=m();return V(p.setActive(0,i))}),a(3,"div",8),u(4,"i",9),l(),d(5),s(6,"translate"),a(7,"div",10),u(8,"i",11),l()(),a(9,"button",7),S("click",function(i){L(t);let p=m();return V(p.setActive(1,i))}),a(10,"div",8),u(11,"i",9),l(),d(12),s(13,"translate"),a(14,"div",10),u(15,"i",11),l()()()}if(e&2){let t=m();x("aria-label",c(1,7,"accessories.control.mode_control")),n(4),A(F(13,ct,t.service.values.Active===0,t.service.values.Active!==0)),n(),g(" ",c(6,9,"accessories.control.off")," "),n(6),A(F(16,ct,t.service.values.Active===1,t.service.values.Active!==1)),n(),g(" ",c(13,11,"accessories.control.on")," ")}}function sl(e,r){if(e&1){let t=$();a(0,"div",5),s(1,"translate"),a(2,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetState(0,i))}),a(3,"div",8),u(4,"i",9),l(),d(5),s(6,"translate"),a(7,"div",10),u(8,"i",11),l()(),a(9,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetState(1,i))}),a(10,"div",8),u(11,"i",9),l(),d(12),s(13,"translate"),a(14,"div",10),u(15,"i",11),l()(),a(16,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetState(2,i))}),a(17,"div",8),u(18,"i",9),l(),d(19),s(20,"translate"),a(21,"div",10),u(22,"i",11),l()()()}if(e&2){let t=m();x("aria-label",c(1,10,"accessories.control.media_control")),n(4),A(F(18,ct,t.service.values.CurrentMediaState===0,t.service.values.CurrentMediaState!==0)),n(),g(" ",c(6,12,"accessories.control.play")," "),n(6),A(F(21,ct,t.service.values.CurrentMediaState===1,t.service.values.CurrentMediaState!==1)),n(),g(" ",c(13,14,"accessories.control.pause")," "),n(6),A(F(24,ct,t.service.values.CurrentMediaState===2,t.service.values.CurrentMediaState!==2)),n(),g(" ",c(20,16,"accessories.control.stop")," ")}}function ll(e,r){if(e&1){let t=$();a(0,"h6"),d(1),s(2,"translate"),l(),a(3,"div",12),s(4,"translate"),a(5,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetMode(!1,i))}),a(6,"div",8),u(7,"i",9),l(),d(8),s(9,"translate"),a(10,"div",10),u(11,"i",11),l()(),a(12,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetMode(!0,i))}),a(13,"div",8),u(14,"i",9),l(),d(15),s(16,"translate"),a(17,"div",10),u(18,"i",11),l()()()}if(e&2){let t=m();n(),g(" ",c(2,8,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),n(2),x("aria-label",c(4,10,"accessories.control.mute_control")),n(4),A(F(16,ct,!t.targetMode,t.targetMode)),n(),g(" ",c(9,12,"accessories.control.not_mute")," "),n(6),A(F(19,ct,t.targetMode,!t.targetMode)),n(),g(" ",c(16,14,"accessories.control.mute")," ")}}function cl(e,r){if(e&1){let t=$();a(0,"h6",13),d(1),s(2,"translate"),l(),a(3,"nouislider",14),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetVolume.value,i)||(p.targetVolume.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onVolumeStateChange())}),l()}if(e&2){let t=m();n(),N("",c(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),n(2),T("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),z("ngModel",t.targetVolume.value)}}var Xn=(()=>{class e extends ne{targetMode;targetVolume;targetVolumeChanged=new J;setupComponent(){this.createDebouncedSubscription(this.targetVolumeChanged,()=>{this.service.getCharacteristic("Volume").setValue(this.targetVolume.value)}),this.targetMode=this.service.values.Mute,this.loadTargetVolume()}handleAccessoryUpdate(){this.targetMode=this.service.values.Mute,this.targetVolume&&(this.targetVolume.value=this.service.getCharacteristic("Volume")?.value)}setTargetMode(t,o){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),this.blurTarget(o)}setActive(t,o){this.service.getCharacteristic("Active").setValue(t),this.blurTarget(o)}setTargetState(t,o){this.service.getCharacteristic("TargetMediaState").setValue(t),this.blurTarget(o)}onVolumeStateChange(){this.targetVolumeChanged.next(this.targetVolume.value)}loadTargetVolume(){let t=this.service.getCharacteristic("Volume");t&&(this.targetVolume={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #ffffff, #ffd966, #ff0000)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:11,vars:7,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],[1,"modal-footer"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],[1,"mt-4","mb-0"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4),h(6,al,16,19,"div",5)(7,sl,23,27,"div",5),h(8,ll,19,22),h(9,cl,4,8),l(),u(10,"div",6),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,5,"form.button_close")),n(3),C("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),n(2),C("Mute"in i.service.values?8:-1),n(),C(i.targetVolume?9:-1))},dependencies:[oe,ae,se,le,M],encapsulation:2,changeDetection:0})}return e})();var dl=()=>[0,1],pl=(e,r)=>({"accessory-on":e,paused:r}),ml=()=>["Speaker","SmartSpeaker"];function ul(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.play")," ")}function fl(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.pause")," ")}function vl(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.stop")," ")}function gl(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" \xB7 ",c(1,1,"accessories.control.mute")," ")}function hl(e,r){if(e&1&&d(0),e&2){let t=m(3);g(" \xB7 ",t.service.values.Volume,"% ")}}function Cl(e,r){if(e&1&&h(0,hl,1,1),e&2){let t=m(2);C("Volume"in t.service.values?0:-1)}}function _l(e,r){if(e&1&&(a(0,"div",7),h(1,ul,2,3)(2,fl,2,3)(3,vl,2,3),h(4,gl,2,3)(5,Cl,1,1),l()),e&2){let t,o=m();n(),C((t=o.service.values.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),n(3),C("Mute"in o.service.values&&o.service.values.Mute?4:5)}}function xl(e,r){e&1&&(u(0,"div",8),s(1,"translate")),e&2&&T("innerText",c(1,1,"accessories.control.off"))}function yl(e,r){e&1&&(u(0,"div",8),s(1,"translate")),e&2&&T("innerText",c(1,1,"accessories.control.mute"))}function Sl(e,r){if(e&1&&(a(0,"div",7),d(1),l()),e&2){let t=m();n(),g("",t.service.values.Volume,"%")}}function kl(e,r){e&1&&(a(0,"div",7),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.on")))}function Tl(e,r){e&1&&(a(0,"div",7),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.core.doorbell")))}var eo=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active===0?1:0):"TargetMediaState"in this.service.values?this.service.getCharacteristic("TargetMediaState").setValue(this.service.values.TargetMediaState===0?1:0):"Mute"in this.service.values&&this.service.getCharacteristic("Mute").setValue(!this.service.values.Mute))}onLongClick(){if(this.readyForControl&&("Active"in this.service.values||"TargetMediaState"in this.service.values||"Volume"in this.service.values||"Mute"in this.service.values)){let t=this.$modal.open(Xn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-doorbell"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:15,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","6","y","1","width","18","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","2"],["cx","15","cy","16","r","5","stroke","#7f7f7f","stroke-width","2","fill","#1976d2","fill-opacity","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"rect",4)(6,"circle",5),l()(),P(),a(7,"div",6),d(8),l(),h(9,_l,6,2,"div",7)(10,xl,2,3,"div",8)(11,yl,2,3,"div",8)(12,Sl,2,1,"div",7)(13,kl,3,3,"div",7)(14,Tl,3,3,"div",7),l()()),o&2&&(A(F(8,pl,"Active"in i.service.values?i.service.values.Active:"CurrentMediaState"in i.service.values?xe(7,dl).includes(i.service.values.CurrentMediaState):"Mute"in i.service.values&&"Volume"in i.service.values?!i.service.values.Mute&&i.service.values.Volume>0:"Mute"in i.service.values&&!i.service.values.Mute,"CurrentMediaState"in i.service.values&&i.service.values.CurrentMediaState===1)),n(2),x("aria-label",c(3,5,"accessories.core.doorbell")),n(6),f(i.service.customName||i.service.serviceName),n(),C("CurrentMediaState"in i.service.values?9:"Active"in i.service.values&&!i.service.values.Active?10:"Mute"in i.service.values&&i.service.values.Mute?11:"Volume"in i.service.values?12:xe(11,ml).includes(i.service.customType||i.service.type)?13:14))},dependencies:[Y,M],encapsulation:2})}return e})();var Zt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function bl(e,r){if(e&1){let t=$();a(0,"h6",12),d(1),s(2,"translate"),l(),a(3,"div",13),s(4,"translate"),a(5,"button",6),S("click",function(i){L(t);let p=m();return V(p.setRotationDirection(0,i))}),a(6,"div",7),u(7,"i",8),l(),d(8),s(9,"translate"),a(10,"div",9),u(11,"i",10),l()(),a(12,"button",6),S("click",function(i){L(t);let p=m();return V(p.setRotationDirection(1,i))}),a(13,"div",7),u(14,"i",8),l(),d(15),s(16,"translate"),a(17,"div",9),u(18,"i",10),l()()()}if(e&2){let t=m();n(),f(c(2,8,"accessories.control.rotation_direction")),n(2),x("aria-label",c(4,10,"accessories.control.direction_control")),n(4),A(F(16,Zt,t.service.values.RotationDirection===0,t.service.values.RotationDirection!==0)),n(),g(" ",c(9,12,"accessories.control.rotation_clockwise")," "),n(6),A(F(19,Zt,t.service.values.RotationDirection===1,t.service.values.RotationDirection!==1)),n(),g(" ",c(16,14,"accessories.control.rotation_c_clockwise")," ")}}function Bl(e,r){e&1&&d(0,"%")}function Ml(e,r){if(e&1){let t=$();a(0,"h6",12),d(1),s(2,"translate"),h(3,Bl,1,0),l(),a(4,"nouislider",14),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetRotationSpeed.value,i)||(p.targetRotationSpeed.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onTargetRotationSpeedChange())}),l()}if(e&2){let t=m();n(),N(" ",c(2,7,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value),n(2),C(t.targetRotationSpeed.unit==="percentage"?3:-1),n(),T("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),z("ngModel",t.targetRotationSpeed.value)}}var to=(()=>{class e extends ne{targetMode;targetRotationSpeed;targetRotationSpeedChanged=new J;hasRotationDirection=!1;setupComponent(){this.createDebouncedSubscription(this.targetRotationSpeedChanged,()=>{this.service.getCharacteristic("RotationSpeed").setValue(this.targetRotationSpeed.value),this.targetRotationSpeed.value&&!this.targetMode?(this.targetMode=!0,"On"in this.service.values?this.service.getCharacteristic("On").setValue(this.targetMode):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.targetMode?1:0)):!this.targetRotationSpeed.value&&this.targetMode&&(this.targetMode=!1,"On"in this.service.values?this.service.getCharacteristic("On").setValue(this.targetMode):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.targetMode?1:0))}),this.targetMode="On"in this.service.values?this.service.values.On:this.service.values.Active===1,this.loadRotationSpeed(),"RotationDirection"in this.service.values&&(this.hasRotationDirection=!0)}handleAccessoryUpdate(){this.targetMode="On"in this.service.values?this.service.values.On:this.service.values.Active===1,this.targetRotationSpeed&&(this.targetRotationSpeed.value=this.service.getCharacteristic("RotationSpeed")?.value)}setTargetMode(t,o){this.targetMode=t,"On"in this.service.values?this.service.getCharacteristic("On").setValue(this.targetMode):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.targetMode?1:0),this.targetMode&&this.targetRotationSpeed&&!this.targetRotationSpeed.value&&(this.targetRotationSpeed.value=this.service.getCharacteristic("RotationSpeed").maxValue),this.blurTarget(o)}onTargetRotationSpeedChange(){this.targetRotationSpeedChanged.next(this.targetRotationSpeed.value)}setRotationDirection(t,o){this.service.getCharacteristic("RotationDirection").setValue(t),this.blurTarget(o)}loadRotationSpeed(){let t=this.service.getCharacteristic("RotationSpeed");t&&(this.targetRotationSpeed={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep,unit:t.unit},this.applySliderGradient("linear-gradient(to right, #add8e6, #416bdf)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:25,vars:25,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5),s(7,"translate"),a(8,"button",6),S("click",function(v){return i.setTargetMode(!1,v)}),a(9,"div",7),u(10,"i",8),l(),d(11),s(12,"translate"),a(13,"div",9),u(14,"i",10),l()(),a(15,"button",6),S("click",function(v){return i.setTargetMode(!0,v)}),a(16,"div",7),u(17,"i",8),l(),d(18),s(19,"translate"),a(20,"div",9),u(21,"i",10),l()()(),h(22,bl,19,22),h(23,Ml,5,9),l(),u(24,"div",11),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,11,"form.button_close")),n(3),x("aria-label",c(7,13,"accessories.control.mode_control")),n(4),A(F(19,Zt,!i.targetMode,i.targetMode)),n(),g(" ",c(12,15,"accessories.control.off")," "),n(6),A(F(22,Zt,i.targetMode,!i.targetMode)),n(),g(" ",c(19,17,"accessories.control.on")," "),n(4),C(i.hasRotationDirection?22:-1),n(),C(i.targetRotationSpeed?23:-1))},dependencies:[oe,ae,se,le,M],encapsulation:2,changeDetection:0})}return e})();var wl=(e,r)=>({spin:e,"spin-counter":r});function El(e,r){if(e&1&&(a(0,"div",8),d(1),l()),e&2){let t=m();n(),N("",t.service.values.RotationSpeed,"",t.rotationSpeedUnit)}}function Al(e,r){if(e&1&&(u(0,"div",9),s(1,"translate")),e&2){let t=m();T("innerText",c(1,1,t.service.values.On||t.service.values.Active?"accessories.control.on":"accessories.control.off"))}}var io=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;rotationSpeedUnit="";hasRotationDirection=!1;ngOnInit(){"RotationSpeed"in this.service.values&&this.service.serviceCharacteristics.find(o=>o.type==="RotationSpeed").unit==="percentage"&&(this.rotationSpeedUnit="%"),"RotationDirection"in this.service.values&&(this.hasRotationDirection=!0)}onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1),"RotationSpeed"in this.service.values&&!this.service.values.On&&!this.service.values.RotationSpeed&&(this.service.values.RotationSpeed=this.service.getCharacteristic("RotationSpeed").maxValue))}onLongClick(){if(this.readyForControl&&("RotationSpeed"in this.service.values||"RotationDirection"in this.service.values)){let t=this.$modal.open(to,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-fan"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:12,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["transform","translate(-0.85, 0.2) scale(0.99)"],["fill","#7f7f7f","fill-rule","evenodd","clip-rule","evenodd","d","M20.988 10.265c.382-.596.951-1.424 1.844-2.71C25.462 3.61 23.456 0 18 0c-6.263 0-10.09 5.649-6.835 11.923-.594-.382-1.416-.948-2.682-1.826-3.945-2.63-7.555-.625-7.555 4.832 0 6.308 5.73 10.145 12.057 6.763-.383.599-.958 1.436-1.872 2.753C8.485 28.39 10.49 32 15.947 32c6.267 0 10.095-5.655 6.83-11.932.593.382 1.412.946 2.668 1.818 3.945 2.63 7.555.625 7.555-4.832 0-6.293-5.703-10.127-12.012-6.788Zm-.407 2.602C26.101 8.924 31 11.805 31 17.053c0 3.877-1.845 4.902-4.445 3.169-2.525-1.761-3.46-2.385-4.406-2.763a7.87 7.87 0 0 0-1.01-.317c.105-.382.161-.785.161-1.2 0-1.327-.919-3.134-.919-3.134ZM18.405 10.85c.378-.946 1.001-1.88 2.763-4.405C22.902 3.845 21.877 2 18 2c-5.247 0-8.129 4.899-4.186 10.419 0 0 1.89-.919 3.186-.919.398 0 .783.052 1.15.149.064-.269.149-.533.255-.798ZM11.78 14.524c-.946-.378-1.88-1.001-4.405-2.763-2.6-1.734-4.445-.709-4.445 3.168 0 5.247 4.899 8.129 10.419 4.186 0 0-.848-1.812-.848-3.115 0-.416.057-.819.163-1.201a7.81 7.81 0 0 0-1.183-.275Zm3.763 6.625c-.378.946-1.001 1.88-2.763 4.405-1.734 2.6-.709 4.445 3.168 4.445 5.248 0 8.13-4.899 4.187-10.419 0 0-1.831.919-3.133.919-.416 0-.819-.057-1.201-.162a7.802 7.802 0 0 0-.258.812ZM17 19.5c-1.933 0-3.5-1.567-3.5-3.5s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5-1.567 3.5-3.5 3.5Z",1,"fan-blades"],["cx","16","cy","16","r","3.6","stroke","#7f7f7f","stroke-width","2","fill","#1976d2","fill-opacity","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3)(5,"g",4),u(6,"path",5),l(),u(7,"circle",6),l()(),P(),a(8,"div",7),d(9),l(),h(10,El,2,2,"div",8)(11,Al,2,3,"div",9),l()()),o&2&&(R("accessory-on",i.service.values.On||i.service.values.Active),n(2),A(F(9,wl,(i.service.values.On||i.service.values.Active)&&(!i.hasRotationDirection||i.hasRotationDirection&&i.service.values.RotationDirection===0),(i.service.values.On||i.service.values.Active)&&i.hasRotationDirection&&i.service.values.RotationDirection===1)),x("aria-label",c(3,7,"accessories.core.fan")),n(7),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.On&&i.service.values.RotationSpeed?10:11))},dependencies:[Y,M],styles:[".spin svg g .fan-blades{animation:_ngcontent-%COMP%_fa-spin 2s infinite linear;transform-origin:53.5% 50%} .spin-counter svg g .fan-blades{animation:_ngcontent-%COMP%_fa-spin-counter 2s infinite linear;transform-origin:53.5% 50%}@keyframes _ngcontent-%COMP%_fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes _ngcontent-%COMP%_fa-spin-counter{0%{transform:rotate(0)}to{transform:rotate(-359deg)}}"]})}return e})();var no=(()=>{class e extends ne{targetMode;setupComponent(){this.applySliderGradient("linear-gradient(to right, #d32f2f, #e69533, #42d672, #42d672)")}handleAccessoryUpdate(){}resetFilterLife(t){this.service.getCharacteristic("ResetFilterIndication").setValue(1),this.blurTarget(t)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:16,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mb-4"],[3,"ngModelChange","min","max","step","disabled","ngModel"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mt-5","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"modal-footer"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"h6",5),d(7),s(8,"translate"),l(),a(9,"nouislider",6),q("ngModelChange",function(v){return K(i.service.values.FilterLifeLevel,v)||(i.service.values.FilterLifeLevel=v),v}),l(),a(10,"div",7),s(11,"translate"),a(12,"button",8),S("click",function(v){return i.resetFilterLife(v)}),d(13),s(14,"translate"),l()()(),u(15,"div",9),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,11,"form.button_close")),n(4),N("",c(8,13,"accessories.control.filter_level"),": ",i.service.values.FilterLifeLevel,"%"),n(2),T("min",0)("max",100)("step",1)("disabled",!0),z("ngModel",i.service.values.FilterLifeLevel),n(),x("aria-label",c(11,15,"accessories.core.filter_maintenance")),n(3),g(" ",c(14,17,"form.button_reset")," "))},dependencies:[oe,ae,se,le,M],encapsulation:2,changeDetection:0})}return e})();var Il=(e,r)=>({replace:e,dirty:r});function Dl(e,r){e&1&&(d(0," \xB7 "),a(1,"span",27),d(2),s(3,"translate"),l()),e&2&&(n(2),f(c(3,1,"accessories.control.replace")))}var oo=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){if(!this.readyForControl)return;let t=this.$modal.open(no,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-filter-maintenance"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:32,vars:13,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","16","cy","7","rx","11","ry","5","stroke","#7f7f7f","stroke-width","1.75","fill","#4caf50","fill-opacity","0.5",1,"status"],["cx","16","cy","7","rx","6","ry","2","stroke","#7f7f7f","stroke-width","1","fill","#e0e0e0","fill-opacity","1",1,"back"],["x1","5","y1","7","x2","5","y2","27.7","stroke","#7f7f7f","stroke-width","1.75"],["x1","27","y1","7","x2","27","y2","27.7","stroke","#7f7f7f","stroke-width","1.75"],["d","M4.7,27 A13,6.9 0 0,0 27.3,27","stroke","#7f7f7f","stroke-width","1.75","fill","none"],["x1","7","y1","10","x2","7","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","9","y1","11","x2","9","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","11","y1","12","x2","11","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","13","y1","12","x2","13","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","15","y1","12","x2","15","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","17","y1","12","x2","17","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","19","y1","12","x2","19","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","21","y1","12","x2","21","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","23","y1","11","x2","23","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","25","y1","10","x2","25","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","11","y1","6","x2","11","y2","8","stroke","#7f7f7f","stroke-width","1"],["x1","13","y1","5","x2","13","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","15","y1","5","x2","15","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","17","y1","5","x2","17","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","19","y1","5","x2","19","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","21","y1","6","x2","21","y2","8","stroke","#7f7f7f","stroke-width","1"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"red-text"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"ellipse",4)(6,"ellipse",5)(7,"line",6)(8,"line",7)(9,"path",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24),l()(),P(),a(26,"div",25),d(27),l(),a(28,"div",26)(29,"span"),d(30),l(),h(31,Dl,4,3),l()()()),o&2&&(A(F(10,Il,i.service.values.FilterChangeIndication===1||i.service.values.FilterLifeLevel<10,i.service.values.FilterChangeIndication!==1&&i.service.values.FilterLifeLevel<50)),n(2),x("aria-label",c(3,8,"accessories.core.filter_maintenance")),n(25),f(i.service.customName||i.service.serviceName),n(2),R("red-text",i.service.values.FilterChangeIndication===1),n(),g(" ",i.service.values.FilterLifeLevel,"% "),n(),C(i.service.values.FilterChangeIndication===1?31:-1))},dependencies:[Y,M],styles:[".dirty svg .status{fill:#e69533!important} .replace svg .status{fill:#d32f2f!important} body.dark-mode svg .back{fill:#2b2b2b!important}"]})}return e})();var Ll=()=>[0,2,3,4],Vl=(e,r,t,o,i,p,v)=>({"accessory-on":e,opening:r,open:t,closing:o,closed:i,stopped:p,obstructed:v});function Fl(e,r){e&1&&(a(0,"div",30),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.obstructed")))}function Pl(e,r){e&1&&(a(0,"div",30),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.open")))}function Ol(e,r){e&1&&(a(0,"div",31),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.closed")))}function Hl(e,r){e&1&&(a(0,"div",30),d(1),s(2,"translate"),l()),e&2&&(n(),g("",c(2,1,"accessories.control.opening"),"..."))}function Nl(e,r){e&1&&(a(0,"div",30),d(1),s(2,"translate"),l()),e&2&&(n(),g("",c(2,1,"accessories.control.closing"),"..."))}function Rl(e,r){e&1&&(a(0,"div",30),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.stopped")))}function Wl(e,r){if(e&1&&h(0,Pl,3,3,"div",30)(1,Ol,3,3,"div",31)(2,Hl,3,3,"div",30)(3,Nl,3,3,"div",30)(4,Rl,3,3,"div",30),e&2){let t,o=m();C((t=o.service.values.CurrentDoorState)===0?0:t===1?1:t===2?2:t===3?3:t===4?4:-1)}}function Ul(e,r){e&1&&(a(0,"div",30),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.open")))}function $l(e,r){e&1&&(a(0,"div",31),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.closed")))}function Gl(e,r){if(e&1&&h(0,Ul,3,3,"div",30)(1,$l,3,3,"div",31),e&2){let t=m();C(t.service.values.On||t.service.values.Active?0:1)}}var ro=(()=>{class e{service;readyForControl=!1;onClick(){this.readyForControl&&("TargetDoorState"in this.service.values?this.service.getCharacteristic("TargetDoorState").setValue(this.service.values.TargetDoorState?0:1):"On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(!this.service.values.Active))}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-garage-door-opener"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:35,vars:16,consts:[["tabindex","0",1,"accessory-box",3,"shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","15.5","cy","10.25","r","3","stroke","#7f7f7f","stroke-width","0.5","fill","#1976d2","fill-opacity","0.5",1,"window"],["x1","1","y1","12","x2","15","y2","1","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","31","y1","12","x2","16","y2","1","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["cx","15.5","cy","1.3","r","0.5","stroke","#7f7f7f","stroke-width","1.5"],["x1","3","y1","11","x2","3","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","29","y1","11","x2","29","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","3","y1","31","x2","6","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","26","y1","31","x2","29","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","6","y1","17","x2","6","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap",""],["x1","26","y1","17","x2","26","y2","31","stroke","#7f7f7f","stroke-width","1.5"],["x1","5.25","y1","17","x2","26.75","y2","17","stroke","#7f7f7f","stroke-width","1"],["x1","6.75","y1","18","x2","25.25","y2","18","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line1"],["x1","5.25","y1","19","x2","26.75","y2","19","stroke","#7f7f7f","stroke-width","1",1,"line","line2"],["x1","6.75","y1","20","x2","25.25","y2","20","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line3"],["x1","5.25","y1","21","x2","26.75","y2","21","stroke","#7f7f7f","stroke-width","1",1,"line","line4"],["x1","6.75","y1","22","x2","25.25","y2","22","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line5"],["x1","5.25","y1","23","x2","26.75","y2","23","stroke","#7f7f7f","stroke-width","1",1,"line","line6"],["x1","6.75","y1","24","x2","25.25","y2","24","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line7"],["x1","5.25","y1","25","x2","26.75","y2","25","stroke","#7f7f7f","stroke-width","1",1,"line","line8"],["x1","6.75","y1","26","x2","25.25","y2","26","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line9"],["x1","5.25","y1","27","x2","26.75","y2","27","stroke","#7f7f7f","stroke-width","1",1,"line","line10"],["x1","6.75","y1","28","x2","25.25","y2","28","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line11"],["x1","5.25","y1","29","x2","26.75","y2","29","stroke","#7f7f7f","stroke-width","1",1,"line","line12"],["x1","6.75","y1","30","x2","25.25","y2","30","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line13"],["x1","5.25","y1","31","x2","26.75","y2","31","stroke","#7f7f7f","stroke-width","1",1,"line","line14"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"circle",4)(6,"line",5)(7,"line",6)(8,"circle",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24)(26,"line",25)(27,"line",26)(28,"line",27)(29,"line",28),l()(),P(),a(30,"div",29),d(31),l(),h(32,Fl,3,3,"div",30)(33,Wl,5,1)(34,Gl,2,1),l()()),o&2&&(A(fn(8,Vl,i.service.values.ObstructionDetected||xe(7,Ll).includes(i.service.values.CurrentDoorState)||i.service.values.On||i.service.values.Active,i.service.values.CurrentDoorState===2&&!i.service.values.ObstructionDetected,i.service.values.CurrentDoorState===0&&!i.service.values.ObstructionDetected,i.service.values.CurrentDoorState===3&&!i.service.values.ObstructionDetected,i.service.values.CurrentDoorState===1&&!i.service.values.ObstructionDetected,i.service.values.CurrentDoorState===4&&!i.service.values.ObstructionDetected,i.service.values.ObstructionDetected)),n(2),x("aria-label",c(3,5,"accessories.core.garage_door_opener")),n(29),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.ObstructionDetected?32:"CurrentDoorState"in i.service.values?33:34))},dependencies:[Y,M],styles:[".opening svg .window{fill:#ff9800!important;fill-opacity:.5!important} .opening svg .line{animation:_ngcontent-%COMP%_fade-out .5s ease-in-out forwards} .opening svg .line1{animation-delay:9.282s} .opening svg .line2{animation-delay:8.568s} .opening svg .line3{animation-delay:7.854s} .opening svg .line4{animation-delay:7.14s} .opening svg .line5{animation-delay:6.426s} .opening svg .line6{animation-delay:5.712s} .opening svg .line7{animation-delay:4.998s} .opening svg .line8{animation-delay:4.284s} .opening svg .line9{animation-delay:3.57s} .opening svg .line10{animation-delay:2.856s} .opening svg .line11{animation-delay:2.142s} .opening svg .line12{animation-delay:1.428s} .opening svg .line13{animation-delay:.714s} .opening svg .line14{animation-delay:0s}@keyframes _ngcontent-%COMP%_fade-out{to{opacity:0}} .open .window{fill:#d32f2f!important;fill-opacity:.5!important} .open .line{opacity:0} .closing svg .window{fill:#ff9800!important;fill-opacity:.5!important} .closing svg .line{opacity:0;animation:_ngcontent-%COMP%_fade-in .5s ease-in-out forwards} .closing svg .line1{animation-delay:0s} .closing svg .line2{animation-delay:.714s} .closing svg .line3{animation-delay:1.428s} .closing svg .line4{animation-delay:2.142s} .closing svg .line5{animation-delay:2.856s} .closing svg .line6{animation-delay:3.57s} .closing svg .line7{animation-delay:4.284s} .closing svg .line8{animation-delay:4.998s} .closing svg .line9{animation-delay:5.712s} .closing svg .line10{animation-delay:6.426s} .closing svg .line11{animation-delay:7.14s} .closing svg .line12{animation-delay:7.854s} .closing svg .line13{animation-delay:8.568s} .closing svg .line14{animation-delay:9.282s}@keyframes _ngcontent-%COMP%_fade-in{to{opacity:1}} .closed .window{fill:#4caf50!important;fill-opacity:.5!important} .closed .line{opacity:1} .stopped .window{fill:#d32f2f!important} .stopped .line7, .stopped .line8, .stopped .line9, .stopped .line10, .stopped .line11, .stopped .line12, .stopped .line13, .stopped .line14{opacity:0} .obstructed .window{animation:_ngcontent-%COMP%_flash 2s infinite;fill:#d32f2f!important}@keyframes _ngcontent-%COMP%_flash{0%,to{fill-opacity:.5}50%{fill-opacity:.1}} .obstructed .line7, .obstructed .line8, .obstructed .line9, .obstructed .line10, .obstructed .line11, .obstructed .line12, .obstructed .line13, .obstructed .line14{opacity:0}"]})}return e})();var It=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function jl(e,r){if(e&1){let t=$();a(0,"button",8),S("click",function(i){L(t);let p=m(2);return V(p.setTargetMode(0,i))}),a(1,"div",9),u(2,"i",10),l(),d(3),s(4,"translate"),a(5,"div",11),u(6,"i",12),l()()}if(e&2){let t=m(2);n(2),A(F(5,It,t.targetMode===0,t.targetMode!==0)),n(),g(" ",c(4,3,"accessories.control.auto")," ")}}function zl(e,r){if(e&1){let t=$();a(0,"button",8),S("click",function(i){L(t);let p=m(2);return V(p.setTargetMode(1,i))}),a(1,"div",9),u(2,"i",10),l(),d(3),s(4,"translate"),a(5,"div",11),u(6,"i",12),l()()}if(e&2){let t=m(2);n(2),A(F(5,It,t.targetMode===1,t.targetMode!==1)),n(),g(" ",c(4,3,"accessories.control.heat")," ")}}function Kl(e,r){if(e&1){let t=$();a(0,"button",8),S("click",function(i){L(t);let p=m(2);return V(p.setTargetMode(2,i))}),a(1,"div",9),u(2,"i",10),l(),d(3),s(4,"translate"),a(5,"div",11),u(6,"i",12),l()()}if(e&2){let t=m(2);n(2),A(F(5,It,t.targetMode===2,t.targetMode!==2)),n(),g(" ",c(4,3,"accessories.control.cool")," ")}}function ql(e,r){if(e&1&&(a(0,"h6",14),d(1),s(2,"translate"),l(),a(3,"div",15),s(4,"translate"),h(5,jl,7,8,"button",16),h(6,zl,7,8,"button",16),h(7,Kl,7,8,"button",16),l()),e&2){let t=m();n(),f(c(2,5,"accessories.control.mode")),n(2),x("aria-label",c(4,7,"accessories.control.mode_control")),n(2),C(t.targetStateValidValues.includes(0)?5:-1),n(),C(t.targetStateValidValues.includes(1)?6:-1),n(),C(t.targetStateValidValues.includes(2)?7:-1)}}function Zl(e,r){if(e&1){let t=$();a(0,"h6",17),d(1),s(2,"translate"),s(3,"convertTemp"),s(4,"number"),s(5,"uppercase"),s(6,"convertTemp"),s(7,"number"),s(8,"uppercase"),l(),a(9,"nouislider",18),q("ngModelChange",function(i){L(t);let p=m(2);return K(p.autoTemp,i)||(p.autoTemp=i),V(i)}),S("ngModelChange",function(){L(t);let i=m(2);return V(i.onAutoTemperatureStateChange())}),l()}if(e&2){let t=m(2);n(),ft(" ",c(2,9,"accessories.control.target_auto"),": ",ce(4,13,c(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",c(5,16,t.temperatureUnits)," - ",ce(7,20,c(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",c(8,23,t.temperatureUnits)," "),n(8),T("min",t.HeatingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),z("ngModel",t.autoTemp)}}function Yl(e,r){if(e&1){let t=$();a(0,"h6",14),d(1),s(2,"translate"),s(3,"convertTemp"),s(4,"number"),s(5,"uppercase"),l(),a(6,"nouislider",18),q("ngModelChange",function(i){L(t);let p=m(2);return K(p.targetHeatingTemp,i)||(p.targetHeatingTemp=i),V(i)}),S("ngModelChange",function(){L(t);let i=m(2);return V(i.onTemperatureStateChange())}),l()}if(e&2){let t=m(2);n(),$e(" ",c(2,7,"accessories.control.target_auto"),": ",ce(4,11,c(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),n(5),T("min",t.HeatingThresholdTemperature.minValue)("max",t.HeatingThresholdTemperature.maxValue)("step",t.HeatingThresholdTemperature.minStep),z("ngModel",t.targetHeatingTemp)}}function Ql(e,r){if(e&1){let t=$();a(0,"h6",14),d(1),s(2,"translate"),s(3,"convertTemp"),s(4,"number"),s(5,"uppercase"),l(),a(6,"nouislider",18),q("ngModelChange",function(i){L(t);let p=m(2);return K(p.targetCoolingTemp,i)||(p.targetCoolingTemp=i),V(i)}),S("ngModelChange",function(){L(t);let i=m(2);return V(i.onTemperatureStateChange())}),l()}if(e&2){let t=m(2);n(),$e(" ",c(2,7,"accessories.control.target_auto"),": ",ce(4,11,c(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),n(5),T("min",t.CoolingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),z("ngModel",t.targetCoolingTemp)}}function Jl(e,r){if(e&1&&h(0,Zl,10,25)(1,Yl,7,16)(2,Ql,7,16),e&2){let t=m();C(t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?0:t.HeatingThresholdTemperature&&!t.CoolingThresholdTemperature?1:!t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?2:-1)}}var ao=(()=>{class e extends ne{$settings=D(ye);type;temperatureUnits=this.$settings.env.temperatureUnits;targetState;targetMode;targetTemperatureChanged=new J;targetStateValidValues=[];CoolingThresholdTemperature;HeatingThresholdTemperature;targetCoolingTemp;targetHeatingTemp;autoTemp;setupComponent(){this.createDebouncedSubscription(this.targetTemperatureChanged,()=>{this.HeatingThresholdTemperature&&this.service.getCharacteristic("HeatingThresholdTemperature").setValue(this.targetHeatingTemp),this.CoolingThresholdTemperature&&this.service.getCharacteristic("CoolingThresholdTemperature").setValue(this.targetCoolingTemp)}),this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHeaterCoolerState,this.CoolingThresholdTemperature=this.service.getCharacteristic("CoolingThresholdTemperature"),this.HeatingThresholdTemperature=this.service.getCharacteristic("HeatingThresholdTemperature"),this.targetStateValidValues=this.service.getCharacteristic("TargetHeaterCoolerState").validValues,this.loadTargetTemperature(),this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}handleAccessoryUpdate(){this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHeaterCoolerState,this.targetCoolingTemp=this.service.getCharacteristic("CoolingThresholdTemperature")?.value,this.targetHeatingTemp=this.service.getCharacteristic("HeatingThresholdTemperature")?.value,this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp],this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}setTargetState(t,o){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetTemperature(),this.blurTarget(o)}setTargetMode(t,o){this.targetMode=t,this.service.getCharacteristic("TargetHeaterCoolerState").setValue(this.targetMode),this.loadTargetTemperature(),this.blurTarget(o),this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}onTemperatureStateChange(){this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp],this.targetTemperatureChanged.next(void 0)}onAutoTemperatureStateChange(){this.targetHeatingTemp=this.autoTemp[0],this.targetCoolingTemp=this.autoTemp[1],this.targetTemperatureChanged.next(void 0)}loadTargetTemperature(){this.targetCoolingTemp=this.service.getCharacteristic("CoolingThresholdTemperature")?.value,this.targetHeatingTemp=this.service.getCharacteristic("HeatingThresholdTemperature")?.value,this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp]}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{type:"type"},features:[ie],decls:31,vars:36,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mt-2","mb-4","fs-4"],[1,"fas","fa-temperature-full"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"],[1,"mt-4","mb-1"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"h6",5),u(7,"i",6),d(8),s(9,"convertTemp"),s(10,"number"),s(11,"uppercase"),l(),a(12,"div",7),s(13,"translate"),a(14,"button",8),S("click",function(v){return i.setTargetState(0,v)}),a(15,"div",9),u(16,"i",10),l(),d(17),s(18,"translate"),a(19,"div",11),u(20,"i",12),l()(),a(21,"button",8),S("click",function(v){return i.setTargetState(1,v)}),a(22,"div",9),u(23,"i",10),l(),d(24),s(25,"translate"),a(26,"div",11),u(27,"i",12),l()()(),h(28,ql,8,9),h(29,Jl,3,1),l(),u(30,"div",13),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,15,"form.button_close")),n(4),tt("color",i.service.values.CurrentHeaterCoolerState===3&&i.service.values.Active===1||i.type==="cooler"&&(i.service.values.Active||i.service.values.On)?"#1e8bbd":i.service.values.CurrentHeaterCoolerState===2&&i.service.values.Active===1||i.type==="heater"&&(i.service.values.Active||i.service.values.On)?"#e69533":i.service.values.Active||i.service.values.On?"#42d672":"#7b7b7b"),n(),N("",ce(10,19,c(9,17,i.service.values.CurrentTemperature),"1.0-1"),"\xB0",c(11,22,i.temperatureUnits)," "),n(4),x("aria-label",c(13,24,"accessories.control.state_control")),n(4),A(F(30,It,i.targetState===0,i.targetState!==0)),n(),g(" ",c(18,26,"accessories.control.off")," "),n(6),A(F(33,It,i.targetState===1,i.targetState!==1)),n(),g(" ",c(25,28,"accessories.control.on")," "),n(4),C(i.targetStateValidValues.length?28:-1),n(),C(i.targetStateValidValues.includes(0)?29:-1))},dependencies:[oe,ae,se,le,be,M,we,De],encapsulation:2,changeDetection:0})}return e})();function Xl(e,r){if(e&1&&(E(),a(0,"text",23),d(1),s(2,"convertTemp"),s(3,"number"),s(4,"uppercase"),l()),e&2){let t=m();n(),N(" ",ce(3,4,c(2,2,t.service.values.CurrentTemperature),"1.0-1"),"\xB0",c(4,7,t.temperatureUnits)," ")}}function ec(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.off")," ")}function tc(e,r){if(e&1&&(u(0,"i",26),d(1),s(2,"convertTemp"),s(3,"number"),s(4,"uppercase"),s(5,"convertTemp"),s(6,"number"),s(7,"uppercase")),e&2){let t=m(2);n(),pn(" ",ce(3,6,c(2,4,t.service.values.HeatingThresholdTemperature),"1.0-1"),"\xB0",c(4,9,t.temperatureUnits)," - ",ce(6,13,c(5,11,t.service.values.CoolingThresholdTemperature),"1.0-1"),"\xB0",c(7,16,t.temperatureUnits)," ")}}function ic(e,r){if(e&1&&(u(0,"i",26),d(1),s(2,"convertTemp"),s(3,"number"),s(4,"uppercase")),e&2){let t=m(2);n(),N(" ",ce(3,4,c(2,2,t.service.values.HeatingThresholdTemperature),"1.0-1"),"\xB0",c(4,7,t.temperatureUnits)," ")}}function nc(e,r){if(e&1&&(u(0,"i",26),d(1),s(2,"convertTemp"),s(3,"number"),s(4,"uppercase")),e&2){let t=m(2);n(),N(" ",ce(3,4,c(2,2,t.service.values.CoolingThresholdTemperature),"1.0-1"),"\xB0",c(4,7,t.temperatureUnits)," ")}}function oc(e,r){if(e&1&&h(0,tc,8,18)(1,ic,5,9)(2,nc,5,9),e&2){let t=m();C(t.hasHeating&&t.hasCooling?0:t.hasHeating&&!t.hasCooling?1:!t.hasHeating&&t.hasCooling?2:-1)}}function rc(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.heat")," ")}function ac(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.cool")," ")}function sc(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.on")," ")}var so=(()=>{class e{$modal=D(Q);$settings=D(ye);$accessories=D(ee);service;readyForControl=!1;type;temperatureUnits=this.$settings.env.temperatureUnits;hasHeating=!1;hasCooling=!1;ngOnInit(){this.hasHeating="HeatingThresholdTemperature"in this.service.values,this.hasCooling="CoolingThresholdTemperature"in this.service.values}onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On))}onLongClick(){if(this.readyForControl&&"TargetHeaterCoolerState"in this.service.values){let t=this.$modal.open(ao,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.type=this.type,t.componentInstance.$accessories=this.$accessories}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-heater-cooler"]],inputs:{service:"service",readyForControl:"readyForControl",type:"type"},decls:36,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["id","coolingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#1e8bbd"],["attributeName","stop-color","values","#1e8bbd;#66d6d6;#1e8bbd","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#66d6d6"],["attributeName","stop-color","values","#66d6d6;#1e8bbd;#66d6d6","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#1e8bbd"],["id","heatingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#cc5e00"],["attributeName","stop-color","values","#cc5e00;#e69533;#cc5e00;#e69533","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#e69533"],["attributeName","stop-color","values","#e69533;#cc5e00;#e69533;#cc5e00","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#cc5e00"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x1","8","y1","7","x2","8","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","12","y1","7","x2","12","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","16","y1","7","x2","16","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","20","y1","7","x2","20","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","24","y1","7","x2","24","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x","3.5","y","4","width","25","height","15","rx","0","stroke","#7f7f7f","stroke-width","1.2","fill-opacity","0.5"],["x","16","y","27.5","font-size","7","text-anchor","middle","fill","#7f7f7f","font-family","Arial, sans-serif"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"fa","fas","fa-bullseye"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),u(8,"animate",6),l(),a(9,"stop",7),u(10,"animate",8),l(),a(11,"stop",9),u(12,"animate",6),l()(),a(13,"linearGradient",10)(14,"stop",11),u(15,"animate",12),l(),a(16,"stop",13),u(17,"animate",14),l(),a(18,"stop",15),u(19,"animate",12),l()()(),u(20,"rect",16)(21,"line",17)(22,"line",18)(23,"line",19)(24,"line",20)(25,"line",21)(26,"rect",22),h(27,Xl,5,9,":svg:text",23),l()(),P(),a(28,"div",24),d(29),l(),a(30,"div",25),h(31,ec,2,3)(32,oc,3,1)(33,rc,2,3)(34,ac,2,3)(35,sc,2,3),l()()()),o&2&&(R("accessory-on",i.service.values.Active||i.service.values.On),n(2),x("aria-label",c(3,7,"accessories.core.heater_cooler")),n(24),x("fill",i.service.values.CurrentHeaterCoolerState===3&&i.service.values.Active===1||i.type==="cooler"&&(i.service.values.Active||i.service.values.On)?"url(#coolingGradient)":i.service.values.CurrentHeaterCoolerState===2&&i.service.values.Active===1||i.type==="heater"&&(i.service.values.Active||i.service.values.On)?"url(#heatingGradient)":i.service.values.Active||i.service.values.On?"#42d672":"#7b7b7b"),n(),C("CurrentTemperature"in i.service.values?27:-1),n(2),f(i.service.customName||i.service.serviceName),n(2),C("Active"in i.service.values&&!i.service.values.Active||"On"in i.service.values&&!i.service.values.On?31:i.service.values.TargetHeaterCoolerState===0&&(i.hasHeating||i.hasCooling)?32:i.service.values.TargetHeaterCoolerState===1?33:i.service.values.TargetHeaterCoolerState===2?34:35))},dependencies:[Y,be,M,we,De],encapsulation:2})}return e})();var Dt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function lc(e,r){if(e&1){let t=$();a(0,"button",8),S("click",function(i){L(t);let p=m(2);return V(p.setTargetMode(0,i))}),a(1,"div",9),u(2,"i",10),l(),d(3),s(4,"translate"),a(5,"div",11),u(6,"i",12),l()()}if(e&2){let t=m(2);n(2),A(F(5,Dt,t.targetMode===0,t.targetMode!==0)),n(),g(" ",c(4,3,"accessories.control.auto")," ")}}function cc(e,r){if(e&1){let t=$();a(0,"button",8),S("click",function(i){L(t);let p=m(2);return V(p.setTargetMode(1,i))}),a(1,"div",9),u(2,"i",10),l(),d(3),s(4,"translate"),a(5,"div",11),u(6,"i",12),l()()}if(e&2){let t=m(2);n(2),A(F(5,Dt,t.targetMode===1,t.targetMode!==1)),n(),g(" ",c(4,3,"accessories.control.humidify")," ")}}function dc(e,r){if(e&1){let t=$();a(0,"button",8),S("click",function(i){L(t);let p=m(2);return V(p.setTargetMode(2,i))}),a(1,"div",9),u(2,"i",10),l(),d(3),s(4,"translate"),a(5,"div",11),u(6,"i",12),l()()}if(e&2){let t=m(2);n(2),A(F(5,Dt,t.targetMode===2,t.targetMode!==2)),n(),g(" ",c(4,3,"accessories.control.dehumidify")," ")}}function pc(e,r){if(e&1&&(a(0,"h6",14),d(1),s(2,"translate"),l(),a(3,"div",15),s(4,"translate"),h(5,lc,7,8,"button",16),h(6,cc,7,8,"button",16),h(7,dc,7,8,"button",16),l()),e&2){let t=m();n(),f(c(2,5,"accessories.control.mode")),n(2),x("aria-label",c(4,7,"accessories.control.mode_control")),n(2),C(t.targetStateValidValues.includes(0)?5:-1),n(),C(t.targetStateValidValues.includes(1)?6:-1),n(),C(t.targetStateValidValues.includes(2)?7:-1)}}function mc(e,r){if(e&1){let t=$();a(0,"h6",14),d(1),s(2,"translate"),l(),a(3,"nouislider",17),q("ngModelChange",function(i){L(t);let p=m(2);return K(p.autoHumidity,i)||(p.autoHumidity=i),V(i)}),S("ngModelChange",function(){L(t);let i=m(2);return V(i.onAutoHumidityStateChange())}),l()}if(e&2){let t=m(2);n(),$e(" ",c(2,7,"accessories.control.target_auto"),": ",t.autoHumidity[0],"% - ",t.autoHumidity[1],"% "),n(2),T("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),z("ngModel",t.autoHumidity)}}function uc(e,r){if(e&1){let t=$();a(0,"h6",14),d(1),s(2,"translate"),l(),a(3,"nouislider",17),q("ngModelChange",function(i){L(t);let p=m(2);return K(p.targetHumidifierHumidity,i)||(p.targetHumidifierHumidity=i),V(i)}),S("ngModelChange",function(){L(t);let i=m(2);return V(i.onHumidityStateChange())}),l()}if(e&2){let t=m(2);n(),N("",c(2,6,"accessories.control.target_auto"),": ",t.targetHumidifierHumidity,"%"),n(2),T("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityHumidifierThreshold.maxValue)("step",t.RelativeHumidityHumidifierThreshold.minStep),z("ngModel",t.targetHumidifierHumidity)}}function fc(e,r){if(e&1){let t=$();a(0,"h6",14),d(1),s(2,"translate"),l(),a(3,"nouislider",17),q("ngModelChange",function(i){L(t);let p=m(2);return K(p.targetDehumidifierHumidity,i)||(p.targetDehumidifierHumidity=i),V(i)}),S("ngModelChange",function(){L(t);let i=m(2);return V(i.onHumidityStateChange())}),l()}if(e&2){let t=m(2);n(),N("",c(2,6,"accessories.control.target_auto"),": ",t.targetDehumidifierHumidity,"%"),n(2),T("min",t.RelativeHumidityDehumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),z("ngModel",t.targetDehumidifierHumidity)}}function vc(e,r){if(e&1&&h(0,mc,4,9)(1,uc,4,8)(2,fc,4,8),e&2){let t=m();C(t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?0:t.RelativeHumidityHumidifierThreshold&&!t.RelativeHumidityDehumidifierThreshold?1:!t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?2:-1)}}var lo=(()=>{class e extends ne{type;targetState;targetMode;targetHumidityChanged=new J;targetStateValidValues=[];RelativeHumidityDehumidifierThreshold;RelativeHumidityHumidifierThreshold;targetDehumidifierHumidity;targetHumidifierHumidity;autoHumidity;setupComponent(){this.createDebouncedSubscription(this.targetHumidityChanged,()=>{this.RelativeHumidityHumidifierThreshold&&this.service.getCharacteristic("RelativeHumidityHumidifierThreshold").setValue(this.targetHumidifierHumidity),this.RelativeHumidityDehumidifierThreshold&&this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold").setValue(this.targetDehumidifierHumidity)}),this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHumidifierDehumidifierState,this.RelativeHumidityDehumidifierThreshold=this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold"),this.RelativeHumidityHumidifierThreshold=this.service.getCharacteristic("RelativeHumidityHumidifierThreshold"),this.targetStateValidValues=this.service.getCharacteristic("TargetHumidifierDehumidifierState").validValues,this.loadTargetHumidity(),this.applySliderGradient("linear-gradient(to left, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}handleAccessoryUpdate(){this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHumidifierDehumidifierState,this.targetDehumidifierHumidity=this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold")?.value,this.targetHumidifierHumidity=this.service.getCharacteristic("RelativeHumidityHumidifierThreshold")?.value,this.autoHumidity=[this.targetHumidifierHumidity,this.targetDehumidifierHumidity],this.applySliderGradient("linear-gradient(to left, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}loadTargetHumidity(){this.targetDehumidifierHumidity=this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold")?.value,this.targetHumidifierHumidity=this.service.getCharacteristic("RelativeHumidityHumidifierThreshold")?.value,this.autoHumidity=[this.targetHumidifierHumidity,this.targetDehumidifierHumidity]}setTargetState(t,o){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetHumidity(),this.blurTarget(o)}setTargetMode(t,o){this.targetMode=t,this.service.getCharacteristic("TargetHumidifierDehumidifierState").setValue(this.targetMode),this.loadTargetHumidity(),this.blurTarget(o),this.applySliderGradient("linear-gradient(to left, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}onHumidityStateChange(){this.autoHumidity=[this.targetHumidifierHumidity,this.targetDehumidifierHumidity],this.targetHumidityChanged.next(void 0)}onAutoHumidityStateChange(){this.targetHumidifierHumidity=this.autoHumidity[0],this.targetDehumidifierHumidity=this.autoHumidity[1],this.targetHumidityChanged.next(void 0)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{type:"type"},features:[ie],decls:28,vars:28,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mt-2","mb-4","fs-4"],[1,"fas","fa-temperature-full"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"h6",5),u(7,"i",6),d(8),l(),a(9,"div",7),s(10,"translate"),a(11,"button",8),S("click",function(v){return i.setTargetState(0,v)}),a(12,"div",9),u(13,"i",10),l(),d(14),s(15,"translate"),a(16,"div",11),u(17,"i",12),l()(),a(18,"button",8),S("click",function(v){return i.setTargetState(1,v)}),a(19,"div",9),u(20,"i",10),l(),d(21),s(22,"translate"),a(23,"div",11),u(24,"i",12),l()()(),h(25,pc,8,9),h(26,vc,3,1),l(),u(27,"div",13),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,14,"form.button_close")),n(4),tt("color",i.service.values.CurrentHumidifierDehumidifierState===2&&i.service.values.Active===1||i.type==="humidifier"&&(i.service.values.Active||i.service.values.On)?"#1e8bbd":i.service.values.CurrentHumidifierDehumidifierState===3&&i.service.values.Active===1||i.type==="dehumidifier"&&(i.service.values.Active||i.service.values.On)?"#e69533":i.service.values.Active||i.service.values.On?"#42d672":"#7b7b7b"),n(),g("",i.service.values.CurrentRelativeHumidity,"% "),n(),x("aria-label",c(10,16,"accessories.control.state_control")),n(4),A(F(22,Dt,i.targetState===0,i.targetState!==0)),n(),g(" ",c(15,18,"accessories.control.off")," "),n(6),A(F(25,Dt,i.targetState===1,i.targetState!==1)),n(),g(" ",c(22,20,"accessories.control.on")," "),n(4),C(i.targetStateValidValues.length?25:-1),n(),C(i.targetStateValidValues.includes(0)?26:-1))},dependencies:[oe,ae,se,le,M],encapsulation:2,changeDetection:0})}return e})();function gc(e,r){if(e&1&&(E(),a(0,"text",36),d(1),l()),e&2){let t=m();n(),g(" ",t.service.values.CurrentRelativeHumidity,"% ")}}function hc(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.off")," ")}function Cc(e,r){if(e&1&&(u(0,"i",39),d(1)),e&2){let t=m(2);n(),N(" ",t.service.values.RelativeHumidityHumidifierThreshold,"% - ",t.service.values.RelativeHumidityDehumidifierThreshold,"% ")}}function _c(e,r){if(e&1&&(u(0,"i",39),d(1)),e&2){let t=m(2);n(),g(" ",t.service.values.RelativeHumidityHumidifierThreshold,"% ")}}function xc(e,r){if(e&1&&(u(0,"i",39),d(1)),e&2){let t=m(2);n(),g(" ",t.service.values.RelativeHumidityDehumidifierThreshold,"% ")}}function yc(e,r){if(e&1&&h(0,Cc,2,2)(1,_c,2,1)(2,xc,2,1),e&2){let t=m();C(t.hasHumidifier&&t.hasDehumidifier?0:t.hasHumidifier&&!t.hasDehumidifier?1:!t.hasHumidifier&&t.hasDehumidifier?2:-1)}}function Sc(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.humidify")," ")}function kc(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.dehumidify")," ")}function Tc(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.on")," ")}function bc(e,r){if(e&1&&h(0,kc,2,3)(1,Tc,2,3),e&2){let t=m();C(t.service.values.TargetHumidifierDehumidifierState===2?0:1)}}var co=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;type;hasHumidifier=!1;hasDehumidifier=!1;ngOnInit(){this.hasHumidifier="RelativeHumidityHumidifierThreshold"in this.service.values,this.hasDehumidifier="RelativeHumidityDehumidifierThreshold"in this.service.values}onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On))}onLongClick(){if(this.readyForControl&&"TargetHumidifierDehumidifierState"in this.service.values){let t=this.$modal.open(lo,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.type=this.type,t.componentInstance.$accessories=this.$accessories}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-humidifier-dehumidifier"]],inputs:{service:"service",readyForControl:"readyForControl",type:"type"},decls:48,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["id","humidifyingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#1e8bbd"],["attributeName","stop-color","values","#1e8bbd;#66d6d6;#1e8bbd","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#66d6d6"],["attributeName","stop-color","values","#66d6d6;#1e8bbd;#66d6d6","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#1e8bbd"],["id","dehumidifyingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#cc5e00"],["attributeName","stop-color","values","#cc5e00;#e69533;#cc5e00;#e69533","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#e69533"],["attributeName","stop-color","values","#e69533;#cc5e00;#e69533;#cc5e00","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#cc5e00"],["x","1","y","3.5","width","30","height","25","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x1","6","y1","10","x2","6","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","6","y1","12","x2","6","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","6","y1","14","x2","6","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","10","y1","10","x2","10","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","10","y1","12","x2","10","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","10","y1","14","x2","10","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","14","y1","10","x2","14","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","14","y1","12","x2","14","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","14","y1","14","x2","14","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","18","y1","10","x2","18","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","18","y1","12","x2","18","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","18","y1","14","x2","18","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","22","y1","10","x2","22","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","22","y1","12","x2","22","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","22","y1","14","x2","22","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","26","y1","10","x2","26","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","26","y1","12","x2","26","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","26","y1","14","x2","26","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x","1","y","7","width","30","height","10","rx","0","stroke","#7f7f7f","stroke-width","1.2","fill-opacity","0.5"],["x","16.5","y","25.5","font-size","7","text-anchor","middle","fill","#7f7f7f","font-family","Arial, sans-serif"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"fa","fas","fa-bullseye"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),u(8,"animate",6),l(),a(9,"stop",7),u(10,"animate",8),l(),a(11,"stop",9),u(12,"animate",6),l()(),a(13,"linearGradient",10)(14,"stop",11),u(15,"animate",12),l(),a(16,"stop",13),u(17,"animate",14),l(),a(18,"stop",15),u(19,"animate",12),l()()(),u(20,"rect",16)(21,"line",17)(22,"line",18)(23,"line",19)(24,"line",20)(25,"line",21)(26,"line",22)(27,"line",23)(28,"line",24)(29,"line",25)(30,"line",26)(31,"line",27)(32,"line",28)(33,"line",29)(34,"line",30)(35,"line",31)(36,"line",32)(37,"line",33)(38,"line",34)(39,"rect",35),h(40,gc,2,1,":svg:text",36),l()(),P(),a(41,"div",37),d(42),l(),a(43,"div",38),h(44,hc,2,3)(45,yc,3,1)(46,Sc,2,3)(47,bc,2,1),l()()()),o&2&&(R("accessory-on",i.service.values.Active||i.service.values.On),n(2),x("aria-label",c(3,7,"accessories.core.humidifier_dehumidifier")),n(37),x("fill",i.service.values.CurrentHumidifierDehumidifierState===2&&i.service.values.Active===1||i.type==="humidifier"&&(i.service.values.Active||i.service.values.On)?"url(#humidifyingGradient)":i.service.values.CurrentHumidifierDehumidifierState===3&&i.service.values.Active===1||i.type==="dehumidifier"&&(i.service.values.Active||i.service.values.On)?"url(#dehumidifyingGradient)":i.service.values.Active||i.service.values.On?"#42d672":"#7b7b7b"),n(),C("CurrentRelativeHumidity"in i.service.values?40:-1),n(2),f(i.service.customName||i.service.serviceName),n(2),C("Active"in i.service.values&&!i.service.values.Active||"On"in i.service.values&&!i.service.values.On?44:i.service.values.TargetHumidifierDehumidifierState===0&&(i.hasHumidifier||i.hasDehumidifier)?45:i.service.values.TargetHumidifierDehumidifierState===1?46:47))},dependencies:[Y,M],encapsulation:2})}return e})();function Bc(e,r){if(e&1&&d(0),e&2){let t=m();g(" ",t.service.values.CurrentRelativeHumidity,"% ")}}function Mc(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.no_data")," ")}var po=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-humidity-sensor"]],inputs:{service:"service"},decls:26,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["transform","translate(1.8, -4.3), scale(0.85)"],["d","M23.61 24.58C23.61 28.67 20.44 31.99 16.56 31.99C12.68 31.99 9.52 28.67 9.52 24.58C9.52 20.49 12.68 17.13 16.56 10.87C20.44 17.13 23.61 20.49 23.61 24.58Z","fill","#1976d2","fill-opacity","0.4","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"g",5),I(7,"path",6),k(),I(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19),k()(),P(),y(21,"div",20),d(22),k(),y(23,"div",21),h(24,Bc,1,1)(25,Mc,2,3),k()()()),o&2&&(n(2),x("aria-label",c(3,3,"accessories.core.humidity_sensor")),n(20),f(i.service.customName||i.service.serviceName),n(2),C("CurrentRelativeHumidity"in i.service.values?24:25))},dependencies:[M],styles:[".humidity-drop[_ngcontent-%COMP%]{position:relative;display:inline-block;width:50px;height:50px;line-height:42px;border-radius:5% 55% 70%;font-size:14px;text-align:center;margin-bottom:6px;margin-top:9px;background-color:gray;color:#d3d3d3;transform:rotate(45deg)}@media(max-width:575px){.humidity-drop-collapse[_ngcontent-%COMP%]{width:31px;height:31px;line-height:28px;font-size:10px;margin-bottom:7px;margin-top:5px}.humidity-drop-collapse[_ngcontent-%COMP%] .humidity-drop-text[_ngcontent-%COMP%]{margin-left:-2px}}.humidity-drop-text[_ngcontent-%COMP%]{transform:rotate(-45deg);margin-left:-5px}"]})}return e})();function wc(e,r){e&1&&(y(0,"div",14),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.running")))}function Ec(e,r){e&1&&(y(0,"div",14),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.off")))}var mo=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-irrigation-system"]],inputs:{service:"service"},decls:18,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32","height","32","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","9","y","1","width","14","height","6.5","rx","2","fill","#1976d2","stroke","#7b7b7b","stroke-width","0.5","fill-opacity","0.5"],["x1","16","y1","8","x2","16","y2","31","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x1","1","y1","9","x2","31","y2","9","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x1","1","y1","20","x2","31","y2","20","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x1","1","y1","31","x2","31","y2","31","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x","1","y","10","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],["x","17","y","10","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],["x","1","y","21","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],["x","17","y","21","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8)(10,"rect",9)(11,"rect",10)(12,"rect",11)(13,"rect",12),k()(),P(),y(14,"div",13),d(15),k(),h(16,wc,3,3,"div",14)(17,Ec,3,3,"div",14),k()()),o&2&&(R("accessory-on",i.service.values.InUse),n(2),x("aria-label",c(3,5,"accessories.core.irrigation_system")),n(13),g(" ",i.service.customName||i.service.values.ConfiguredName||i.service.serviceName," "),n(),C(i.service.values.InUse?16:17))},dependencies:[M],styles:[".accessory-on svg .field{fill:#4caf50} .accessory-on svg .pipe{animation:_ngcontent-%COMP%_pulse 5s infinite}@keyframes _ngcontent-%COMP%_pulse{0%,to{stroke:#7f7f7f;stroke-opacity:.5}50%{stroke:#1976d2;stroke-opacity:1}}"]})}return e})();function Ac(e,r){e&1&&(y(0,"div",23),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.detected")))}function Ic(e,r){e&1&&(y(0,"div",24),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.not_detected")))}var uo=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-leak-sensor"]],inputs:{service:"service"},decls:28,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2",1,"red-outline"],["transform","translate(7, 0), scale(0.35)"],["d","M23.61 24.58C23.61 28.67 20.44 31.99 16.56 31.99C12.68 31.99 9.52 28.67 9.52 24.58C9.52 20.49 12.68 17.13 16.56 10.87C20.44 17.13 23.61 20.49 23.61 24.58Z","fill","#1976d2","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","1"],["transform","translate(13, 7), scale(0.35)"],["cx","16","cy","22","rx","10","ry","2","fill","#1976d2","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","0.35"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"g",5),I(7,"path",6),k(),y(8,"g",7),I(9,"path",6),k(),I(10,"ellipse",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"line",13)(16,"line",14)(17,"line",15)(18,"line",16)(19,"line",17)(20,"line",18)(21,"line",19)(22,"line",20)(23,"line",21),k()(),P(),y(24,"div",22),d(25),k(),h(26,Ac,3,3,"div",23)(27,Ic,3,3,"div",24),k()()),o&2&&(R("accessory-on",i.service.values.LeakDetected),n(2),x("aria-label",c(3,5,"accessories.core.leak_sensor")),n(23),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.LeakDetected?26:27))},dependencies:[M],styles:[".accessory-on svg .red-outline{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{stroke-opacity:.8}50%{stroke-opacity:.2}}"]})}return e})();function Dc(e,r){if(e&1&&(y(0,"div",28),d(1),s(2,"number"),k()),e&2){let t=m();n(),g("",ce(2,1,t.service.values.CurrentAmbientLightLevel,"0.1-1")," lux")}}function Lc(e,r){if(e&1&&(y(0,"div",28),d(1),s(2,"number"),k()),e&2){let t=m();n(),g("",ce(2,1,t.service.values.CurrentAmbientLightLevel,"1.0-0")," lux")}}var fo=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-light-sensor"]],inputs:{service:"service"},decls:32,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["cx","16","cy","13.75","r","5","stroke","#ff9800","fill","none","stroke-width","1.2","stroke-opacity","0.5"],["x1","16","y1","3","x2","16","y2","7","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","23.5","y1","6","x2","20.5","y2","9","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","22.75","y1","13.5","x2","26.75","y2","13.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","20.75","y1","18.25","x2","23.75","y2","21.25","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","16","y1","20.5","x2","16","y2","24.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","11.25","y1","18.25","x2","8.25","y2","21.25","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","5.25","y1","13.5","x2","9.25","y2","13.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","8.5","y1","6","x2","11.5","y2","9","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4)(6,"circle",5)(7,"line",6)(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24)(26,"line",25)(27,"line",26),k()(),P(),y(28,"div",27),d(29),k(),h(30,Dc,3,4,"div",28)(31,Lc,3,4,"div",28),k()()),o&2&&(n(2),x("aria-label",c(3,3,"accessories.core.light_sensor")),n(27),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.CurrentAmbientLightLevel<1?30:31))},dependencies:[be,M],encapsulation:2})}return e})();var Ye=(()=>{class e{miredToKelvin(t){return Math.round(1e6/t)}kelvinToMired(t){return Math.round(1e6/t)}kelvinToHsl(t){let o=t/100,i,p,v;o<=66?(i=255,p=Math.min(99.4708025861*Math.log(o)-161.1195681661,255),v=o<=19?0:Math.min(138.5177312231*Math.log(o-10)-305.0447927307,255)):(i=Math.min(329.698727446*(o-60)**-.1332047592,255),p=Math.min(288.1221695283*(o-60)**-.0755148492,255),v=255),i/=255,p/=255,v/=255;let G=Math.max(i,p,v),re=Math.min(i,p,v),Z=G-re,pe=0;Z!==0&&(G===i?pe=(p-v)/Z%6:G===p?pe=(v-i)/Z+2:pe=(i-p)/Z+4,pe=Math.round(pe*60),pe<0&&(pe+=360));let ge=(G+re)/2,Be=Z===0?0:Z/(1-Math.abs(2*ge-1));return`hsl(${Math.round(pe)}, ${Math.round(Be*100)}%, ${Math.round(ge*100)}%)`}static \u0275fac=function(o){return new(o||e)};static \u0275prov=Ut({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var vo=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),Vc=(e,r)=>({"off-text":e,"on-text":r}),ki=(e,r)=>({"mb-1":e,"":r});function Fc(e,r){e&1&&u(0,"div")}function Pc(e,r){if(e&1&&(a(0,"div",11)(1,"div",13)(2,"div",7),u(3,"i",14),l(),d(4),s(5,"translate"),a(6,"div",9),u(7,"i",10),l()()()),e&2){let t=m();n(3),A(F(6,Vc,!t.isAdaptiveLightingEnabled,t.isAdaptiveLightingEnabled)),n(),N(" ",c(5,4,"accessories.control.adaptive_lighting"),": ",t.isAdaptiveLightingEnabled?"ON":"OFF"," ")}}function Oc(e,r){if(e&1){let t=$();a(0,"h6",15),d(1),s(2,"translate"),l(),a(3,"nouislider",16),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetBrightness.value,i)||(p.targetBrightness.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onBrightnessStateChange())}),l()}if(e&2){let t=m();n(),N("",c(2,6,"accessories.control.brightness"),": ",t.targetBrightness.value,"%"),n(2),T("min",t.targetBrightness.min)("max",t.targetBrightness.max)("step",t.targetBrightness.step),z("ngModel",t.targetBrightness.value)}}function Hc(e,r){e&1&&(a(0,"div",17)(1,"span",18),d(2),s(3,"translate"),l()()),e&2&&(n(2),f(c(3,1,"accessories.control.adaptive_lighting_note")))}function Nc(e,r){if(e&1){let t=$();a(0,"h6",15),d(1),s(2,"translate"),l(),a(3,"nouislider",16),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetHue.value,i)||(p.targetHue.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onHueStateChange())}),l(),h(4,Hc,4,3,"div",17)}if(e&2){let t=m();n(),N("",c(2,9,"accessories.control.hue"),": ",t.targetHue.value,"\xB0"),n(2),A(F(11,ki,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",0)("max",360)("step",1),z("ngModel",t.targetHue.value),n(),C(t.isAdaptiveLightingEnabled?4:-1)}}function Rc(e,r){e&1&&(a(0,"div",17)(1,"span",18),d(2),s(3,"translate"),l()()),e&2&&(n(2),f(c(3,1,"accessories.control.adaptive_lighting_note")))}function Wc(e,r){if(e&1){let t=$();a(0,"h6",15),d(1),s(2,"translate"),l(),a(3,"nouislider",16),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetSaturation.value,i)||(p.targetSaturation.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onSaturationStateChange())}),l(),h(4,Rc,4,3,"div",17)}if(e&2){let t=m();n(),N("",c(2,9,"accessories.control.saturation"),": ",t.targetSaturation.value,"%"),n(2),A(F(11,ki,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",0)("max",100)("step",1),z("ngModel",t.targetSaturation.value),n(),C(t.isAdaptiveLightingEnabled?4:-1)}}function Uc(e,r){e&1&&(a(0,"div",17)(1,"span",18),d(2),s(3,"translate"),l()()),e&2&&(n(2),f(c(3,1,"accessories.control.adaptive_lighting_note")))}function $c(e,r){if(e&1){let t=$();a(0,"h6",15),d(1),s(2,"translate"),s(3,"convertMired"),l(),a(4,"nouislider",16),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetColorTemperature.value,i)||(p.targetColorTemperature.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onColorTemperatureStateChange())}),l(),h(5,Uc,4,3,"div",17)}if(e&2){let t=m();n(),N(" ",c(2,9,"accessories.control.color_temperature"),": ",c(3,11,t.targetColorTemperature.mired)," "),n(3),A(F(13,ki,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",t.targetColorTemperature.min)("max",t.targetColorTemperature.max)("step",t.targetColorTemperature.step),z("ngModel",t.targetColorTemperature.value),n(),C(t.isAdaptiveLightingEnabled?5:-1)}}var go=(()=>{class e extends ne{$colour=D(Ye);isAdaptiveLightingEnabled$;targetMode;targetBrightness;targetBrightnessChanged=new J;targetHue;targetHueChanged=new J;targetSaturation;targetSaturationChanged=new J;targetColorTemperature;targetColorTemperatureChanged=new J;hasAdaptiveLighting=!1;isAdaptiveLightingEnabled=!1;sliderIndex=0;setupComponent(){this.createDebouncedSubscription(this.targetBrightnessChanged,()=>{this.service.getCharacteristic("Brightness").setValue(this.targetBrightness.value),this.targetBrightness.value&&!this.service.values.On?(this.targetMode=!0,this.service.getCharacteristic("On").setValue(this.targetMode)):!this.targetBrightness.value&&this.service.values.On&&(this.targetMode=!1,this.service.getCharacteristic("On").setValue(this.targetMode))}),this.createDebouncedSubscription(this.targetHueChanged,()=>{this.service.getCharacteristic("Hue").setValue(this.targetHue.value)}),this.createDebouncedSubscription(this.targetSaturationChanged,()=>{this.service.getCharacteristic("Saturation").setValue(this.targetSaturation.value)}),this.createDebouncedSubscription(this.targetColorTemperatureChanged,t=>{this.service.getCharacteristic("ColorTemperature").setValue(t)}),this.targetMode=this.service.values.On,this.loadTargetBrightness(),this.loadTargetHue(),this.loadTargetSaturation(),this.loadTargetColorTemperature()}handleAccessoryUpdate(){if(this.targetMode=this.service.values.On,this.targetBrightness&&(this.targetBrightness.value=this.service.getCharacteristic("Brightness")?.value),this.targetHue&&(this.targetHue.value=this.service.getCharacteristic("Hue")?.value),this.targetSaturation&&(this.targetSaturation.value=this.service.getCharacteristic("Saturation")?.value),this.targetColorTemperature){let t=this.service.getCharacteristic("ColorTemperature")?.value;this.targetColorTemperature.value=this.$colour.miredToKelvin(t),this.targetColorTemperature.mired=t}}setTargetMode(t,o){this.targetMode=t,this.service.getCharacteristic("On").setValue(this.targetMode),this.targetMode&&this.targetBrightness&&!this.targetBrightness.value&&(this.targetBrightness.value=this.service.getCharacteristic("Brightness").maxValue),this.blurTarget(o)}onBrightnessStateChange(){this.targetBrightnessChanged.next(this.targetBrightness.value)}onHueStateChange(){this.targetHueChanged.next(this.targetHue.value);let t=document.querySelectorAll(".noUi-target")[this.sliderIndex-1];if(t){let o=this.targetHue.value;t.style.background=`linear-gradient(to right,
|
|
2
|
-
hsl(${o}, 0%, 50%),
|
|
3
|
-
hsl(${o}, 100%, 50%))`}}onSaturationStateChange(){this.targetSaturationChanged.next(this.targetSaturation.value)}onColorTemperatureStateChange(){let t=this.$colour.kelvinToMired(this.targetColorTemperature.value);this.targetColorTemperature.mired=t,this.targetColorTemperatureChanged.next(t)}loadTargetBrightness(){let t=this.service.getCharacteristic("Brightness");t&&(this.targetBrightness={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)",`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.sliderIndex+=1)}loadTargetHue(){let t=this.service.getCharacteristic("Hue");t&&(this.targetHue={value:t.value},this.applySliderGradient(`linear-gradient(to right,
|
|
4
|
-
hsl(0, 100%, 50%),
|
|
5
|
-
hsl(60, 100%, 50%),
|
|
6
|
-
hsl(120, 100%, 50%),
|
|
7
|
-
hsl(180, 100%, 50%),
|
|
8
|
-
hsl(240, 100%, 50%),
|
|
9
|
-
hsl(300, 100%, 50%),
|
|
10
|
-
hsl(360, 100%, 50%))`,`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.sliderIndex+=1)}loadTargetSaturation(){let t=this.service.getCharacteristic("Saturation");if(t){this.targetSaturation={value:t.value};let o=this.targetHue.value||0;this.applySliderGradient(`linear-gradient(to right,
|
|
11
|
-
hsl(${o}, 0%, 50%),
|
|
12
|
-
hsl(${o}, 100%, 50%))`,`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.sliderIndex+=1}}loadTargetColorTemperature(){let t=this.service.getCharacteristic("ColorTemperature");if(t){this.targetColorTemperature={value:this.$colour.miredToKelvin(t.value),mired:t.value,min:this.$colour.miredToKelvin(t.maxValue),max:this.$colour.miredToKelvin(t.minValue),step:t.minStep};let o=this.$colour.kelvinToHsl(this.targetColorTemperature.min),i=this.$colour.kelvinToHsl(this.targetColorTemperature.max);this.applySliderGradient(`linear-gradient(to right, ${o}, ${i})`,`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.isAdaptiveLightingEnabled$&&(this.hasAdaptiveLighting=!0,this.isAdaptiveLightingEnabled$.subscribe(p=>{this.isAdaptiveLightingEnabled=p}))}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{isAdaptiveLightingEnabled$:"isAdaptiveLightingEnabled$"},features:[ie],decls:29,vars:29,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"d-flex","justify-content-center","mb-0","p-0","mt-0","grey-outline"],[1,"modal-footer"],[1,"mb-0","mx-0","p-3","btn-read","w-100","no-round-top"],[1,"fas","fa-xl","fa-sun"],[1,"mt-4"],[3,"ngModelChange","min","max","step","ngModel"],[1,"d-flex","text-center","mt-0","mb-1"],[1,"grey-text","small"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5),s(7,"translate"),a(8,"button",6),S("click",function(v){return i.setTargetMode(!1,v)}),a(9,"div",7),u(10,"i",8),l(),d(11),s(12,"translate"),a(13,"div",9),u(14,"i",10),l()(),a(15,"button",6),S("click",function(v){return i.setTargetMode(!0,v)}),a(16,"div",7),u(17,"i",8),l(),d(18),s(19,"translate"),a(20,"div",9),u(21,"i",10),l()(),h(22,Fc,1,0,"div"),l(),h(23,Pc,8,9,"div",11),h(24,Oc,4,8),h(25,Nc,5,14),h(26,Wc,5,14),h(27,$c,6,16),l(),u(28,"div",12),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,15,"form.button_close")),n(3),x("aria-label",c(7,17,"accessories.control.mode_control")),n(4),A(F(23,vo,!i.targetMode,i.targetMode)),n(),g(" ",c(12,19,"accessories.control.off")," "),n(6),A(F(26,vo,i.targetMode,!i.targetMode)),n(),g(" ",c(19,21,"accessories.control.on")," "),n(4),C(i.hasAdaptiveLighting?22:-1),n(),C(i.hasAdaptiveLighting?23:-1),n(),C(i.targetBrightness?24:-1),n(),C(i.targetHue?25:-1),n(),C(i.targetSaturation?26:-1),n(),C(i.targetColorTemperature?27:-1))},dependencies:[oe,ae,se,le,M,it],encapsulation:2,changeDetection:0})}return e})();function Gc(e,r){if(e&1&&(u(0,"div",10),s(1,"translate")),e&2){let t=m();T("innerHTML",t.service.values.On?t.service.values.Brightness+"%"+(t.hasAdaptiveLighting?" \xB7 <i class='fa fa-sun "+(t.isAdaptiveLightingEnabled?"on-text":"grey-text")+"'></i>":""):c(1,1,"accessories.control.off"),Pe)}}function jc(e,r){if(e&1&&(u(0,"div",10),s(1,"translate")),e&2){let t=m();T("innerHTML",c(1,1,t.service.values.On||t.service.values.Active?"accessories.control.on"+(t.hasAdaptiveLighting?" \xB7 <i class='fa fa-sun "+(t.isAdaptiveLightingEnabled?"on-text":"grey-text")+"'></i>":""):"accessories.control.off"),Pe)}}var ho=(()=>{class e{destroyRef=D(et);$accessories=D(ee);$modal=D(Q);intervalId;$colour=D(Ye);service;readyForControl=!1;hasAdaptiveLighting=!1;isAdaptiveLightingEnabled=!1;isAdaptiveLightingEnabled$=new Yi(!1);ngOnInit(){this.loadAdaptiveLighting()}ngOnDestroy(){this.intervalId&&clearInterval(this.intervalId)}onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1),"Brightness"in this.service.values&&!this.service.values.On&&!this.service.values.Brightness&&(this.service.values.Brightness=this.service.getCharacteristic("Brightness").maxValue))}onLongClick(){if(this.readyForControl&&("Brightness"in this.service.values||"Hue"in this.service.values||"Saturation"in this.service.values||"ColorTemperature"in this.service.values)){let t=this.$modal.open(go,{size:"md",backdrop:"static"});if(t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories,this.hasAdaptiveLighting){t.componentInstance.isAdaptiveLightingEnabled$=this.isAdaptiveLightingEnabled$,this.intervalId&&clearInterval(this.intervalId),this.intervalId=setInterval(()=>{this.isAdaptiveLightingEnabled$.next(!!this.service.values.CharacteristicValueActiveTransitionCount)},3e3);let o=this.isAdaptiveLightingEnabled$.subscribe(i=>{this.isAdaptiveLightingEnabled=i});t.result.finally(()=>{this.intervalId&&clearInterval(this.intervalId),o.unsubscribe(),this.intervalId=setInterval(()=>{this.isAdaptiveLightingEnabled$.next(!!this.service.values.CharacteristicValueActiveTransitionCount)},3e4)})}}}kelvinToHex(t){t=Math.max(1e3,Math.min(4e4,t));let o=t/100,i,p,v;return o<=66?(i=255,p=o,p=99.4708025861*Math.log(p)-161.1195681661,v=o<=19?0:138.5177312231*Math.log(o-10)-305.0447927307):(i=329.698727446*(o-60)**-.1332047592,p=288.1221695283*(o-60)**-.0755148492,v=255),i=Math.round(Math.min(Math.max(i,0),255)),p=Math.round(Math.min(Math.max(p,0),255)),v=Math.round(Math.min(Math.max(v,0),255)),`#${i.toString(16).padStart(2,"0")}${p.toString(16).padStart(2,"0")}${v.toString(16).padStart(2,"0")}`}loadAdaptiveLighting(){"CharacteristicValueActiveTransitionCount"in this.service.values&&(this.hasAdaptiveLighting=!0,this.isAdaptiveLightingEnabled$.next(!!this.service.values.CharacteristicValueActiveTransitionCount),this.intervalId=setInterval(()=>{this.isAdaptiveLightingEnabled$.next(!!this.service.values.CharacteristicValueActiveTransitionCount)},3e4),this.isAdaptiveLightingEnabled$.pipe(je(this.destroyRef)).subscribe(t=>{this.isAdaptiveLightingEnabled=t}))}Math=Math;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-lightbulb"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:14,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["stroke","#7f7f7f","stroke-width","1.5","d","M8 21c-2.8-2.2-4.5-5.4-4.5-9 0-6.1 5-11 11.5-11S27.5 5.9 27.5 12c0 3.5-1.7 6.7-4.5 8.9-1.2 1-1.8 4.8-3 7.3-.9 2-2.2 2.7-4.5 2.7s-3.6-.7-4.5-2.7c-1.2-2.5-1.8-6.3-3-7.3z"],["stroke","#7f7f7f","stroke-width","1.5","x1","8","y1","21.5","x2","23","y2","21.5"],["stroke","#7f7f7f","stroke-width","0.75","x1","10","y1","23","x2","21","y2","24"],["stroke","#7f7f7f","stroke-width","0.75","x1","10","y1","25.5","x2","21","y2","26.5"],["stroke","#7f7f7f","stroke-width","0.75","x1","11","y1","28","x2","20","y2","29"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerHTML"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"path",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8),l()(),P(),a(10,"div",9),d(11),l(),h(12,Gc,2,3,"div",10)(13,jc,2,3,"div",10),l()()),o&2&&(R("accessory-on",i.service.values.On||i.service.values.Active),n(2),x("aria-label",c(3,7,"accessories.core.lightbulb")),n(3),x("fill",i.service.values.On||i.service.values.Active?"Hue"in i.service.values?"hsl("+i.service.values.Hue+", "+i.service.values.Saturation+"%, 50%)":"ColorTemperature"in i.service.values?i.$colour.kelvinToHsl(i.$colour.miredToKelvin(i.service.values.ColorTemperature)):"#ffcf55":"none")("fill-opacity","Brightness"in i.service.values?.25+i.service.values.Brightness/100*.5:.75),n(6),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.Brightness?12:13))},dependencies:[Y,M],encapsulation:2})}return e})();var Yt=(()=>{class e{transform(t){if(typeof t!="number"||Number.isNaN(t))return"";let o=Math.floor(t/60),i=t%60;return[o>0?`${o.toString()}m`:"",i>0?`${i.toString()}s`:""].filter(Boolean).join(" ")}static \u0275fac=function(o){return new(o||e)};static \u0275pipe=Ke({name:"duration",type:e,pure:!0})}return e})();var Co=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function zc(e,r){if(e&1){let t=$();a(0,"h6",12),d(1),s(2,"translate"),s(3,"duration"),l(),a(4,"nouislider",13),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetLockManagementAutoSecurityTimeout.value,i)||(p.targetLockManagementAutoSecurityTimeout.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onLockManagementAutoSecurityTimeoutStateChange())}),l()}if(e&2){let t=m();n(),N(" ",c(2,6,"accessories.control.lock_auto"),": ",t.targetLockManagementAutoSecurityTimeout.value===0?"\u221E":c(3,8,t.targetLockManagementAutoSecurityTimeout.value)," "),n(3),T("min",t.targetLockManagementAutoSecurityTimeout.min)("max",t.targetLockManagementAutoSecurityTimeout.max)("step",10),z("ngModel",t.targetLockManagementAutoSecurityTimeout.value)}}var _o=(()=>{class e extends ne{lockTimeoutSubscription=null;serviceManagement;targetMode;targetLockManagementAutoSecurityTimeout;targetLockManagementAutoSecurityTimeoutChanged=new J;setupComponent(){this.targetMode=this.service.values.LockTargetState,this.service.linkedServices&&(this.serviceManagement=Object.values(this.service.linkedServices).find(t=>t.type==="LockManagement")),this.serviceManagement&&(this.targetLockManagementAutoSecurityTimeoutChanged.pipe(tn()).subscribe(()=>{this.serviceManagement.getCharacteristic("LockManagementAutoSecurityTimeout").setValue(this.targetLockManagementAutoSecurityTimeout.value)}),this.createDebouncedSubscription(this.targetLockManagementAutoSecurityTimeoutChanged,()=>{this.serviceManagement.getCharacteristic("LockManagementAutoSecurityTimeout").setValue(this.targetLockManagementAutoSecurityTimeout.value)},300),this.loadTargetLockManagementAutoSecurityTimeout())}handleAccessoryUpdate(){this.targetMode=this.service.values.LockTargetState,this.targetLockManagementAutoSecurityTimeout&&this.serviceManagement&&(this.targetLockManagementAutoSecurityTimeout.value=this.serviceManagement.getCharacteristic("LockManagementAutoSecurityTimeout")?.value)}setTargetMode(t,o){this.targetMode=t,this.service.getCharacteristic("LockTargetState").setValue(this.targetMode),this.lockTimeoutSubscription&&(this.lockTimeoutSubscription.unsubscribe(),this.lockTimeoutSubscription=null),this.targetMode===0&&this.targetLockManagementAutoSecurityTimeout?.value>0&&(this.lockTimeoutSubscription=Qi((this.targetLockManagementAutoSecurityTimeout.value+.3)*1e3).pipe(je(this.destroyRef)).subscribe(()=>{this.targetMode=1,this.cdr.markForCheck()})),this.blurTarget(o)}onLockManagementAutoSecurityTimeoutStateChange(){this.targetLockManagementAutoSecurityTimeoutChanged.next(this.targetLockManagementAutoSecurityTimeout.value)}loadTargetLockManagementAutoSecurityTimeout(){let t=this.serviceManagement.getCharacteristic("LockManagementAutoSecurityTimeout");t&&(this.targetLockManagementAutoSecurityTimeout={value:t.value||0,min:t.minValue||0,max:t.maxValue||3600,step:t.minStep||10},this.applySliderGradient("linear-gradient(to right, #ffffff, #ffd966, #ff0000)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:24,vars:24,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5),s(7,"translate"),a(8,"button",6),S("click",function(v){return i.setTargetMode(1,v)}),a(9,"div",7),u(10,"i",8),l(),d(11),s(12,"translate"),a(13,"div",9),u(14,"i",10),l()(),a(15,"button",6),S("click",function(v){return i.setTargetMode(0,v)}),a(16,"div",7),u(17,"i",8),l(),d(18),s(19,"translate"),a(20,"div",9),u(21,"i",10),l()()(),h(22,zc,5,10),l(),u(23,"div",11),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,10,"form.button_close")),n(3),x("aria-label",c(7,12,"accessories.control.mode_control")),n(4),A(F(18,Co,i.targetMode===1,i.targetMode!==1)),n(),g(" ",c(12,14,"accessories.control.locked")," "),n(6),A(F(21,Co,i.targetMode===0,i.targetMode!==0)),n(),g(" ",c(19,16,"accessories.control.unlocked")," "),n(4),C(i.serviceManagement?22:-1))},dependencies:[oe,ae,se,le,M,Yt],encapsulation:2,changeDetection:0})}return e})();var Kc=(e,r,t,o)=>({"accessory-on":e,unlocked:r,jammed:t,error:o}),qc=(e,r)=>({"red-text":e,"grey-text":r});function Zc(e,r){if(e&1&&(u(0,"div",11),s(1,"translate")),e&2){let t=m();A(F(5,qc,!t.service.values.LockCurrentState,t.service.values.LockCurrentState)),T("innerText",c(1,3,t.service.values.LockCurrentState?"accessories.control.locked":"accessories.control.unlocked"))}}function Yc(e,r){e&1&&(a(0,"div",10),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.jammed")))}function Qc(e,r){e&1&&(a(0,"div",10),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.unknown")))}var xo=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&("LockTargetState"in this.service.values?this.service.getCharacteristic("LockTargetState").setValue(this.service.values.LockTargetState?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On))}onLongClick(){if(this.readyForControl&&"LockTargetState"in this.service.values){let t=this.$modal.open(_o,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-lock-mechanism"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:14,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"shortClick","longClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["d","M8 16 C6 -4, 26 -4, 24 16","fill","none","stroke","#7f7f7f","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"shackle-locked"],["d","M8 16 C6 -2, 22 -2, 24 7","fill","none","stroke","#7f7f7f","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","stroke-opacity","0",1,"shackle-unlocked"],["x","5","y","16","width","22","height","15","rx","3","fill","none","stroke","#7f7f7f","stroke-width","2"],["cx","16","cy","23.5","r","3","stroke","#7f7f7f","stroke-width","0.5","fill","#4caf50","fill-opacity","0.5",1,"keyhole"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerText","class"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(o,i){o&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()})("longClick",function(){return i.onLongClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"path",4)(6,"path",5)(7,"rect",6)(8,"circle",7),l()(),P(),a(9,"div",8),d(10),l(),h(11,Zc,2,8,"div",9)(12,Yc,3,3,"div",10)(13,Qc,3,3,"div",10),l()()),o&2&&(A(gt(7,Kc,"LockCurrentState"in i.service.values&&i.service.values.LockCurrentState!==1||i.service.values.On===1,i.service.values.LockCurrentState===0||i.service.values.On===1,i.service.values.LockCurrentState===2,i.service.values.LockCurrentState===3)),n(2),x("aria-label",c(3,5,"accessories.core.lock_mechanism")),n(8),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.LockCurrentState<2?11:i.service.values.LockCurrentState===2?12:i.service.values.LockCurrentState===3?13:-1))},dependencies:[Y,M],styles:["@keyframes _ngcontent-%COMP%_blink{0%,to{fill-opacity:1}50%{fill-opacity:.2}} .unlocked svg .shackle-locked{stroke-opacity:0!important} .unlocked svg .shackle-unlocked{stroke-opacity:1!important} .unlocked svg .keyhole{fill:#ff9800!important} .jammed svg .shackle-locked{stroke-opacity:0!important} .jammed svg .shackle-unlocked{stroke-opacity:1!important} .jammed svg .keyhole{fill:#d32f2f!important;animation:_ngcontent-%COMP%_blink 1s infinite} .error svg .shackle-locked{stroke-opacity:0!important} .error svg .shackle-unlocked{stroke-opacity:1!important} .error svg .keyhole{fill:#d32f2f!important;animation:_ngcontent-%COMP%_blink 1s infinite}"]})}return e})();var dt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Jc(e,r){if(e&1){let t=$();a(0,"div",5),s(1,"translate"),a(2,"button",7),S("click",function(i){L(t);let p=m();return V(p.setActive(0,i))}),a(3,"div",8),u(4,"i",9),l(),d(5),s(6,"translate"),a(7,"div",10),u(8,"i",11),l()(),a(9,"button",7),S("click",function(i){L(t);let p=m();return V(p.setActive(1,i))}),a(10,"div",8),u(11,"i",9),l(),d(12),s(13,"translate"),a(14,"div",10),u(15,"i",11),l()()()}if(e&2){let t=m();x("aria-label",c(1,7,"accessories.control.mode_control")),n(4),A(F(13,dt,t.service.values.Active===0,t.service.values.Active!==0)),n(),g(" ",c(6,9,"accessories.control.off")," "),n(6),A(F(16,dt,t.service.values.Active===1,t.service.values.Active!==1)),n(),g(" ",c(13,11,"accessories.control.on")," ")}}function Xc(e,r){if(e&1){let t=$();a(0,"div",5),s(1,"translate"),a(2,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetState(0,i))}),a(3,"div",8),u(4,"i",9),l(),d(5),s(6,"translate"),a(7,"div",10),u(8,"i",11),l()(),a(9,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetState(1,i))}),a(10,"div",8),u(11,"i",9),l(),d(12),s(13,"translate"),a(14,"div",10),u(15,"i",11),l()(),a(16,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetState(2,i))}),a(17,"div",8),u(18,"i",9),l(),d(19),s(20,"translate"),a(21,"div",10),u(22,"i",11),l()()()}if(e&2){let t=m();x("aria-label",c(1,10,"accessories.control.media_control")),n(4),A(F(18,dt,t.service.values.CurrentMediaState===0,t.service.values.CurrentMediaState!==0)),n(),g(" ",c(6,12,"accessories.control.play")," "),n(6),A(F(21,dt,t.service.values.CurrentMediaState===1,t.service.values.CurrentMediaState!==1)),n(),g(" ",c(13,14,"accessories.control.pause")," "),n(6),A(F(24,dt,t.service.values.CurrentMediaState===2,t.service.values.CurrentMediaState!==2)),n(),g(" ",c(20,16,"accessories.control.stop")," ")}}function e1(e,r){if(e&1){let t=$();a(0,"h6"),d(1),s(2,"translate"),l(),a(3,"div",12),s(4,"translate"),a(5,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetMode(!1,i))}),a(6,"div",8),u(7,"i",9),l(),d(8),s(9,"translate"),a(10,"div",10),u(11,"i",11),l()(),a(12,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetMode(!0,i))}),a(13,"div",8),u(14,"i",9),l(),d(15),s(16,"translate"),a(17,"div",10),u(18,"i",11),l()()()}if(e&2){let t=m();n(),g(" ",c(2,8,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),n(2),x("aria-label",c(4,10,"accessories.control.mute_control")),n(4),A(F(16,dt,!t.targetMode,t.targetMode)),n(),g(" ",c(9,12,"accessories.control.not_mute")," "),n(6),A(F(19,dt,t.targetMode,!t.targetMode)),n(),g(" ",c(16,14,"accessories.control.mute")," ")}}function t1(e,r){if(e&1){let t=$();a(0,"h6",13),d(1),s(2,"translate"),l(),a(3,"nouislider",14),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetVolume.value,i)||(p.targetVolume.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onVolumeStateChange())}),l()}if(e&2){let t=m();n(),N("",c(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),n(2),T("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),z("ngModel",t.targetVolume.value)}}var yo=(()=>{class e extends ne{targetMode;targetVolume;targetVolumeChanged=new J;setupComponent(){this.createDebouncedSubscription(this.targetVolumeChanged,()=>{this.service.getCharacteristic("Volume").setValue(this.targetVolume.value)}),this.targetMode=this.service.values.Mute,this.loadTargetVolume()}handleAccessoryUpdate(){this.targetMode=this.service.values.Mute,this.targetVolume&&(this.targetVolume.value=this.service.getCharacteristic("Volume")?.value)}setTargetMode(t,o){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),this.blurTarget(o)}setActive(t,o){this.service.getCharacteristic("Active").setValue(t),this.blurTarget(o)}setTargetState(t,o){this.service.getCharacteristic("TargetMediaState").setValue(t),this.blurTarget(o)}onVolumeStateChange(){this.targetVolumeChanged.next(this.targetVolume.value)}loadTargetVolume(){let t=this.service.getCharacteristic("Volume");t&&(this.targetVolume={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #ffffff, #ffd966, #ff0000)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:11,vars:7,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],[1,"modal-footer"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],[1,"mt-4","mb-0"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4),h(6,Jc,16,19,"div",5)(7,Xc,23,27,"div",5),h(8,e1,19,22),h(9,t1,4,8),l(),u(10,"div",6),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,5,"form.button_close")),n(3),C("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),n(2),C("Mute"in i.service.values?8:-1),n(),C(i.targetVolume?9:-1))},dependencies:[oe,ae,se,le,M],encapsulation:2,changeDetection:0})}return e})();var i1=()=>[0,1],n1=(e,r)=>({"accessory-on":e,paused:r}),o1=()=>["Speaker","SmartSpeaker"];function r1(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.play")," ")}function a1(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.pause")," ")}function s1(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.stop")," ")}function l1(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" \xB7 ",c(1,1,"accessories.control.mute")," ")}function c1(e,r){if(e&1&&d(0),e&2){let t=m(3);g(" \xB7 ",t.service.values.Volume,"% ")}}function d1(e,r){if(e&1&&h(0,c1,1,1),e&2){let t=m(2);C("Volume"in t.service.values?0:-1)}}function p1(e,r){if(e&1&&(a(0,"div",10),h(1,r1,2,3)(2,a1,2,3)(3,s1,2,3),h(4,l1,2,3)(5,d1,1,1),l()),e&2){let t,o=m();n(),C((t=o.service.values.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),n(3),C("Mute"in o.service.values&&o.service.values.Mute?4:5)}}function m1(e,r){e&1&&(u(0,"div",11),s(1,"translate")),e&2&&T("innerText",c(1,1,"accessories.control.off"))}function u1(e,r){e&1&&(u(0,"div",11),s(1,"translate")),e&2&&T("innerText",c(1,1,"accessories.control.mute"))}function f1(e,r){if(e&1&&(a(0,"div",10),d(1),l()),e&2){let t=m();n(),g("",t.service.values.Volume,"%")}}function v1(e,r){e&1&&(a(0,"div",10),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.on")))}function g1(e,r){e&1&&(a(0,"div",10),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.microphone")))}var So=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active===0?1:0):"TargetMediaState"in this.service.values?this.service.getCharacteristic("TargetMediaState").setValue(this.service.values.TargetMediaState===0?1:0):"Mute"in this.service.values&&this.service.getCharacteristic("Mute").setValue(!this.service.values.Mute))}onLongClick(){if(this.readyForControl&&("Active"in this.service.values||"TargetMediaState"in this.service.values||"Volume"in this.service.values||"Mute"in this.service.values)){let t=this.$modal.open(yo,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-microphone"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:18,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","6","y","1","width","18","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","2"],["stroke-linecap","round","x1","10","y1","6","x2","20","y2","6","stroke","#7f7f7f","stroke-width","2"],["stroke-linecap","round","x1","10","y1","10","x2","20","y2","10","stroke","#7f7f7f","stroke-width","2"],["stroke-linecap","round","x1","10","y1","14","x2","20","y2","14","stroke","#7f7f7f","stroke-width","2"],["cx","15","cy","23","r","3","stroke","#7f7f7f","stroke-width","2","fill","#1976d2","fill-opacity","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"rect",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"circle",8),l()(),P(),a(10,"div",9),d(11),l(),h(12,p1,6,2,"div",10)(13,m1,2,3,"div",11)(14,u1,2,3,"div",11)(15,f1,2,1,"div",10)(16,v1,3,3,"div",10)(17,g1,3,3,"div",10),l()()),o&2&&(A(F(8,n1,"Active"in i.service.values?i.service.values.Active:"CurrentMediaState"in i.service.values?xe(7,i1).includes(i.service.values.CurrentMediaState):"Mute"in i.service.values&&"Volume"in i.service.values?!i.service.values.Mute&&i.service.values.Volume>0:"Mute"in i.service.values&&!i.service.values.Mute,"CurrentMediaState"in i.service.values&&i.service.values.CurrentMediaState===1)),n(2),x("aria-label",c(3,5,"accessories.core.microphone")),n(9),f(i.service.customName||i.service.serviceName),n(),C("CurrentMediaState"in i.service.values?12:"Active"in i.service.values&&!i.service.values.Active?13:"Mute"in i.service.values&&i.service.values.Mute?14:"Volume"in i.service.values?15:xe(11,o1).includes(i.service.customType||i.service.type)?16:17))},dependencies:[Y,M],encapsulation:2})}return e})();function h1(e,r){e&1&&(y(0,"div",25),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.detected")))}function C1(e,r){e&1&&(y(0,"div",26),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.not_detected")))}var ko=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-motion-sensor"]],inputs:{service:"service"},decls:29,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2",1,"orange-outline"],["transform","translate(7, -0.75), scale(0.075)"],["d","M190.85 83.94C190.85 70.36 180.09 59.24 166.93 59.24C153.78 59.24 143.02 70.36 143.02 83.94C143.02 97.53 153.78 108.65 166.93 108.65C180.09 108.65 190.85 97.53 190.85 83.94Z","fill","#1976d2","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","7"],["d","M232.24 175.95C210.12 175.95 190.98 163.6 180.22 145.69C179.08 143.72 169.99 127.91 168.86 125.93C164.67 118.52 156.9 114.2 148.53 114.2C145.54 114.2 142.55 114.81 139.56 116.05C135.37 117.82 114.45 126.67 76.78 142.6L76.78 200.66L100.69 200.66L100.69 159.28L121.62 150.02L88.73 324.17L113.85 324.17L134.78 225.36L160.49 250.06L160.49 324.17L184.4 324.17L184.4 230.92L159.89 205.6C164.19 183.36 166.59 171.01 167.06 168.54C182.61 188.3 205.93 200.66 232.24 200.66C232.24 195.72 232.24 178.42 232.24 175.95Z","fill","#1976d2","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","7"],["x","9","y","9","width","2","height","1","rx","0.2","stroke","#7f7f7f","fill","#1976d2","fill-opacity","0.25","stroke-width","0.25"],["x","7","y","13","width","3","height","1","rx","0.2","stroke","#7f7f7f","fill","#1976d2","fill-opacity","0.25","stroke-width","0.25"],["x","8","y","17","width","4","height","1","rx","0.2","stroke","#7f7f7f","fill","#1976d2","fill-opacity","0.25","stroke-width","0.25"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"g",5),I(7,"path",6)(8,"path",7),k(),I(9,"rect",8)(10,"rect",9)(11,"rect",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23),k()(),P(),y(25,"div",24),d(26),k(),h(27,h1,3,3,"div",25)(28,C1,3,3,"div",26),k()()),o&2&&(R("accessory-on",i.service.values.MotionDetected),n(2),x("aria-label",c(3,5,"accessories.core.motion_sensor")),n(24),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.MotionDetected?27:28))},dependencies:[M],styles:[".accessory-on svg .orange-outline{stroke:#ff9800;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{stroke-opacity:.8}50%{stroke-opacity:.2}}"]})}return e})();function _1(e,r){e&1&&(y(0,"div",22),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.detected")))}function x1(e,r){e&1&&(y(0,"div",23),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.not_detected")))}var To=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-occupancy-sensor"]],inputs:{service:"service"},decls:26,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2",1,"orange-outline"],["transform","translate(4.75, -0.75), scale(0.075)"],["d","M190.85 83.94C190.85 70.36 180.09 59.24 166.93 59.24C153.78 59.24 143.02 70.36 143.02 83.94C143.02 97.53 153.78 108.65 166.93 108.65C180.09 108.65 190.85 97.53 190.85 83.94Z","fill","#ff9800","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","7"],["d","M232.24 175.95C210.12 175.95 190.98 163.6 180.22 145.69C179.08 143.72 169.99 127.91 168.86 125.93C164.67 118.52 156.9 114.2 148.53 114.2C145.54 114.2 142.55 114.81 139.56 116.05C135.37 117.82 114.45 126.67 76.78 142.6L76.78 200.66L100.69 200.66L100.69 159.28L121.62 150.02L88.73 324.17L113.85 324.17L134.78 225.36L160.49 250.06L160.49 324.17L184.4 324.17L184.4 230.92L159.89 205.6C164.19 183.36 166.59 171.01 167.06 168.54C182.61 188.3 205.93 200.66 232.24 200.66C232.24 195.72 232.24 178.42 232.24 175.95Z","fill","#ff9800","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","7"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"g",5),I(7,"path",6)(8,"path",7),k(),I(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20),k()(),P(),y(22,"div",21),d(23),k(),h(24,_1,3,3,"div",22)(25,x1,3,3,"div",23),k()()),o&2&&(R("accessory-on",i.service.values.OccupancyDetected),n(2),x("aria-label",c(3,5,"accessories.core.occupancy_sensor")),n(21),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.OccupancyDetected?24:25))},dependencies:[M],styles:[".accessory-on svg .orange-outline{stroke:#ff9800;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{stroke-opacity:.8}50%{stroke-opacity:.2}}"]})}return e})();var bo=()=>[0,2];function y1(e,r){e&1&&(E(),u(0,"line",8)(1,"line",9)(2,"line",10))}function S1(e,r){e&1&&(E(),u(0,"line",11)(1,"line",12)(2,"line",13))}function k1(e,r){e&1&&(E(),u(0,"line",13)(1,"line",14)(2,"line",15))}var Bo=(()=>{class e{$settings=D(ye);service;readyForControl=!1;browserLang=this.$settings.browserLang;onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"LockTargetState"in this.service.values?this.service.getCharacteristic("LockTargetState").setValue(this.service.values.LockTargetState?0:1):"TargetDoorState"in this.service.values&&this.service.getCharacteristic("TargetDoorState").setValue(this.service.values.TargetDoorState?0:1))}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-outlet"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:14,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32","height","32","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","30","height","30","rx","6","ry","6","fill","none","stroke","#7f7f7f","stroke-width","1.5",1,"outer"],["cx","16","cy","16","r","10","fill","none","stroke","#7f7f7f","stroke-width","1.5",1,"inner"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerText"],["x1","16","y1","10","x2","16","y2","13","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","10","y1","19","x2","13","y2","19","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","19","y1","19","x2","22","y2","19","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","11.5","y1","14.5","x2","13.5","y2","11.5","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","18.5","y1","11.5","x2","20.5","y2","14.5","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","16","y1","19","x2","16","y2","22","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","10","y1","14","x2","13","y2","14","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","19","y1","14","x2","22","y2","14","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"]],template:function(o,i){o&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"rect",4)(6,"circle",5),h(7,y1,3,0)(8,S1,3,0)(9,k1,3,0),l()(),P(),a(10,"div",6),d(11),l(),u(12,"div",7),s(13,"translate"),l()()),o&2&&(R("accessory-on",i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&xe(10,bo).includes(i.service.values.CurrentDoorState)),n(2),x("aria-label",c(3,6,"accessories.core.outlet")),n(5),C(i.browserLang==="en-GB"?7:i.browserLang==="en-AU"||i.browserLang==="en-NZ"?8:9),n(4),f(i.service.customName||i.service.serviceName),n(),T("innerText",c(13,8,i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&xe(11,bo).includes(i.service.values.CurrentDoorState)?"accessories.control.on":"accessories.control.off")))},dependencies:[Y,M],styles:[".accessory-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] .outer[_ngcontent-%COMP%]{stroke:#1976d2;stroke-opacity:.75;stroke-width:2.5}.accessory-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{stroke:#1976d2;stroke-opacity:.75}"]})}return e})();var Mo=(()=>{class e{service;readyForControl=!1;onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1))}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-robot-vacuum"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:36,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["id","motionClip"],["x","0","y","-0.5","width","32","height","8"],["transform","translate(0, 5)"],["cx","16","cy","10","rx","14","ry","8.4","stroke","#7f7f7f","stroke-width","1.75","fill","none"],["x1","2","y1","10","x2","2","y2","16","stroke","#7f7f7f","stroke-width","1.75"],["x1","30","y1","10","x2","30","y2","16","stroke","#7f7f7f","stroke-width","1.75"],["d","M2,16 A14,6.9 0 0,0 30,16","stroke","#7f7f7f","stroke-width","1.75","fill","none"],["cx","16","cy","10","rx","4.2","ry","2.5","stroke","#7f7f7f","stroke-width","1","fill","#1976d2","fill-opacity","0.5"],["cx","16","cy","15","r","0.9","fill","#7f7f7f"],["x1","2","y1","16","x2","0.5","y2","18.5","stroke","#7f7f7f","stroke-width","1"],["x1","2","y1","16","x2","0.5","y2","14","stroke","#7f7f7f","stroke-width","1"],["x1","30","y1","16","x2","31.5","y2","18.5","stroke","#7f7f7f","stroke-width","1"],["x1","30","y1","16","x2","31.5","y2","14","stroke","#7f7f7f","stroke-width","1"],["clip-path","url(#motionClip)","stroke","#7f7f7f","stroke-linecap","round",1,"motion-lines",2,"display","none"],["x1","12","y1","8","x2","12","y2","14","stroke-width","2.1","opacity","0"],["attributeName","y1","values","8;0","dur","3s","begin","0.3s","repeatCount","indefinite"],["attributeName","y2","values","14;6","dur","3s","begin","0.3s","repeatCount","indefinite"],["attributeName","opacity","values","0;1;1;0","keyTimes","0;0.2;0.8;1","dur","3s","begin","0.3s","repeatCount","indefinite"],["x1","16","y1","8","x2","16","y2","14","stroke-width","2.5","opacity","0"],["attributeName","y1","values","8;0","dur","3s","begin","0.6s","repeatCount","indefinite"],["attributeName","y2","values","14;6","dur","3s","begin","0.6s","repeatCount","indefinite"],["attributeName","opacity","values","0;1;1;0","keyTimes","0;0.2;0.8;1","dur","3s","begin","0.6s","repeatCount","indefinite"],["x1","20","y1","8","x2","20","y2","14","stroke-width","2.1","opacity","0"],["attributeName","y1","values","8;0","dur","3s","begin","0.9s","repeatCount","indefinite"],["attributeName","y2","values","14;6","dur","3s","begin","0.9s","repeatCount","indefinite"],["attributeName","opacity","values","0;1;1;0","keyTimes","0;0.2;0.8;1","dur","3s","begin","0.9s","repeatCount","indefinite"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(o,i){o&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3)(5,"defs")(6,"clipPath",4),u(7,"rect",5),l()(),a(8,"g",6),u(9,"ellipse",7)(10,"line",8)(11,"line",9)(12,"path",10)(13,"ellipse",11)(14,"circle",12)(15,"line",13)(16,"line",14)(17,"line",15)(18,"line",16),l(),a(19,"g",17)(20,"line",18),u(21,"animate",19)(22,"animate",20)(23,"animate",21),l(),a(24,"line",22),u(25,"animate",23)(26,"animate",24)(27,"animate",25),l(),a(28,"line",26),u(29,"animate",27)(30,"animate",28)(31,"animate",29),l()()()(),P(),a(32,"div",30),d(33),l(),u(34,"div",31),s(35,"translate"),l()()),o&2&&(R("accessory-on",i.service.values.On||i.service.values.Active),n(2),x("aria-label",c(3,5,"accessories.core.robot_vacuum")),n(31),f(i.service.customName||i.service.serviceName),n(),T("innerText",c(35,7,i.service.values.On||i.service.values.Active?"accessories.control.on":"accessories.control.off")))},dependencies:[Y,M],styles:[".accessory-on svg .motion-lines{display:inline!important}"]})}return e})();var Qt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function T1(e,r){if(e&1){let t=$();y(0,"button",8),ve("click",function(i){L(t);let p=m();return V(p.setTargetMode(3,i))}),y(1,"div",9),I(2,"i",10),k(),d(3),s(4,"translate"),y(5,"div",11),I(6,"i",12),k()()}if(e&2){let t=m();n(2),A(F(5,Qt,t.targetMode===3,t.targetMode!==3)),n(),g(" ",c(4,3,"accessories.control.off")," ")}}function b1(e,r){if(e&1){let t=$();y(0,"button",8),ve("click",function(i){L(t);let p=m();return V(p.setTargetMode(0,i))}),y(1,"div",9),I(2,"i",10),k(),d(3),s(4,"translate"),y(5,"div",11),I(6,"i",12),k()()}if(e&2){let t=m();n(2),A(F(5,Qt,t.targetMode===0,t.targetMode!==0)),n(),g(" ",c(4,3,"accessories.control.home")," ")}}function B1(e,r){if(e&1){let t=$();y(0,"button",8),ve("click",function(i){L(t);let p=m();return V(p.setTargetMode(1,i))}),y(1,"div",9),I(2,"i",10),k(),d(3),s(4,"translate"),y(5,"div",11),I(6,"i",12),k()()}if(e&2){let t=m();n(2),A(F(5,Qt,t.targetMode===1,t.targetMode!==1)),n(),g(" ",c(4,3,"accessories.control.away")," ")}}function M1(e,r){if(e&1){let t=$();y(0,"button",8),ve("click",function(i){L(t);let p=m();return V(p.setTargetMode(2,i))}),y(1,"div",9),I(2,"i",10),k(),d(3),s(4,"translate"),y(5,"div",11),I(6,"i",12),k()()}if(e&2){let t=m();n(2),A(F(5,Qt,t.targetMode===2,t.targetMode!==2)),n(),g(" ",c(4,3,"accessories.control.night")," ")}}var wo=(()=>{class e extends ne{targetMode;targetModeValidValues=[];setupComponent(){this.targetMode=this.service.values.SecuritySystemTargetState,this.targetModeValidValues=this.service.getCharacteristic("SecuritySystemTargetState").validValues}handleAccessoryUpdate(){this.targetMode=this.service.values.SecuritySystemTargetState}setTargetMode(t,o){this.targetMode=t,this.service.getCharacteristic("SecuritySystemTargetState").setValue(this.targetMode),this.blurTarget(o)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:13,vars:11,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"],[1,"modal-footer"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1),I(2,"h5",2),y(3,"button",3),s(4,"translate"),ve("click",function(){return i.dismissModal()}),k()(),y(5,"div",4)(6,"div",5),s(7,"translate"),h(8,T1,7,8,"button",6),h(9,b1,7,8,"button",6),h(10,B1,7,8,"button",6),h(11,M1,7,8,"button",6),k()(),I(12,"div",7),k()),o&2&&(n(2),Oe("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,7,"form.button_close")),n(3),x("aria-label",c(7,9,"accessories.control.mode_control")),n(2),C(i.targetModeValidValues.includes(3)?8:-1),n(),C(i.targetModeValidValues.includes(0)?9:-1),n(),C(i.targetModeValidValues.includes(1)?10:-1),n(),C(i.targetModeValidValues.includes(2)?11:-1))},dependencies:[oe,M],encapsulation:2,changeDetection:0})}return e})();var w1=(e,r,t,o,i)=>({"accessory-on":e,home:r,away:t,night:o,triggered:i});function E1(e,r){e&1&&(a(0,"div",10),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.home")))}function A1(e,r){e&1&&(a(0,"div",10),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.away")))}function I1(e,r){e&1&&(a(0,"div",10),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.night")))}function D1(e,r){e&1&&(a(0,"div",11),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.off")))}function L1(e,r){e&1&&(a(0,"div",11),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.triggered")))}var Eo=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){if(!this.readyForControl)return;let t=this.$modal.open(wo,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-security-system"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:17,vars:13,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32","height","32","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["d","M7 18 C7 5, 25 5, 25 18 V26 H7 V18 Z","fill","none","stroke","#7f7f7f","stroke-width","1.5","fill-opacity","0.5",1,"dome"],["x","2","y","26","width","28","height","4","fill","none","stroke","#7f7f7f","stroke-width","1.5","rx","1"],["x1","6","y1","3","x2","10","y2","7","stroke-width","3",1,"ray"],["x1","16","y1","0","x2","16","y2","5","stroke-width","3",1,"ray"],["x1","26","y1","3","x2","22","y2","7","stroke-width","3",1,"ray"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","red-text"]],template:function(o,i){if(o&1&&(a(0,"div",0),S("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"path",4)(6,"rect",5)(7,"line",6)(8,"line",7)(9,"line",8),l()(),P(),a(10,"div",9),d(11),l(),h(12,E1,3,3,"div",10)(13,A1,3,3,"div",10)(14,I1,3,3,"div",10)(15,D1,3,3,"div",11)(16,L1,3,3,"div",11),l()()),o&2){let p;A(un(7,w1,i.service.values.SecuritySystemCurrentState!==3,i.service.values.SecuritySystemCurrentState===0,i.service.values.SecuritySystemCurrentState===1,i.service.values.SecuritySystemCurrentState===2,i.service.values.SecuritySystemCurrentState===4)),n(2),x("aria-label",c(3,5,"accessories.core.security_system")),n(9),f(i.service.customName||i.service.serviceName),n(),C((p=i.service.values.SecuritySystemCurrentState)===0?12:p===1?13:p===2?14:p===3?15:p===4?16:-1)}},dependencies:[Y,M],styles:[".home svg .dome{fill:#1976d2!important} .away svg .dome{fill:#ff9800!important} .night svg .dome{fill:#673ab7!important} .triggered svg .dome{fill:#d32f2f!important} .triggered svg .ray{stroke:#d32f2f;stroke-opacity:.5;animation:_ngcontent-%COMP%_blink 1s infinite}@keyframes _ngcontent-%COMP%_blink{0%,to{stroke-opacity:1}50%{stroke-opacity:.2}}"]})}return e})();function V1(e,r){e&1&&(y(0,"div",17),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.detected")))}function F1(e,r){e&1&&(y(0,"div",18),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.not_detected")))}var Ao=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-smoke-sensor"]],inputs:{service:"service"},decls:22,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","30","height","12","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.25"],["text-anchor","middle","dominant-baseline","middle","font-family","Arial","font-size","7.5","x","16","y","7.7","fill","#7f7f7f","stroke-width","0.6","font-weight","900",1,"type"],["x1","6","y1","14.5","x2","25.5","y2","14.5","stroke","#1976d2","stroke-opacity","0.5","stroke-width","2"],["stroke-linecap","round","x1","5","y1","13","x2","6.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","11","y1","13","x2","11","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","15.5","y1","13","x2","15.5","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","20","y1","13","x2","20","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","26","y1","13","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","6.5","y1","16","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","11","y1","21","x2","6","y2","27","stroke","#7f7f7f","stroke-width","1.25",1,"air-line"],["stroke-linecap","round","x1","16","y1","21","x2","16","y2","31","stroke","#7f7f7f","stroke-width","1.25",1,"air-line"],["stroke-linecap","round","x1","21","y1","21","x2","26","y2","27","stroke","#7f7f7f","stroke-width","1.25",1,"air-line"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"text",5),d(7," SMOKE "),k(),I(8,"line",6)(9,"line",7)(10,"line",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"line",13)(16,"line",14)(17,"line",15),k()(),P(),y(18,"div",16),d(19),k(),h(20,V1,3,3,"div",17)(21,F1,3,3,"div",18),k()()),o&2&&(R("accessory-on",i.service.values.SmokeDetected),n(2),x("aria-label",c(3,5,"accessories.core.smoke_sensor")),n(17),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.SmokeDetected?20:21))},dependencies:[M],styles:[".accessory-on svg .air-line{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite} .accessory-on svg .type{fill:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{opacity:1}50%{opacity:.2}}"]})}return e})();var pt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function P1(e,r){if(e&1){let t=$();a(0,"div",5),s(1,"translate"),a(2,"button",7),S("click",function(i){L(t);let p=m();return V(p.setActive(0,i))}),a(3,"div",8),u(4,"i",9),l(),d(5),s(6,"translate"),a(7,"div",10),u(8,"i",11),l()(),a(9,"button",7),S("click",function(i){L(t);let p=m();return V(p.setActive(1,i))}),a(10,"div",8),u(11,"i",9),l(),d(12),s(13,"translate"),a(14,"div",10),u(15,"i",11),l()()()}if(e&2){let t=m();x("aria-label",c(1,7,"accessories.control.mode_control")),n(4),A(F(13,pt,t.service.values.Active===0,t.service.values.Active!==0)),n(),g(" ",c(6,9,"accessories.control.off")," "),n(6),A(F(16,pt,t.service.values.Active===1,t.service.values.Active!==1)),n(),g(" ",c(13,11,"accessories.control.on")," ")}}function O1(e,r){if(e&1){let t=$();a(0,"div",5),s(1,"translate"),a(2,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetState(0,i))}),a(3,"div",8),u(4,"i",9),l(),d(5),s(6,"translate"),a(7,"div",10),u(8,"i",11),l()(),a(9,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetState(1,i))}),a(10,"div",8),u(11,"i",9),l(),d(12),s(13,"translate"),a(14,"div",10),u(15,"i",11),l()(),a(16,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetState(2,i))}),a(17,"div",8),u(18,"i",9),l(),d(19),s(20,"translate"),a(21,"div",10),u(22,"i",11),l()()()}if(e&2){let t=m();x("aria-label",c(1,10,"accessories.control.media_control")),n(4),A(F(18,pt,t.service.values.CurrentMediaState===0,t.service.values.CurrentMediaState!==0)),n(),g(" ",c(6,12,"accessories.control.play")," "),n(6),A(F(21,pt,t.service.values.CurrentMediaState===1,t.service.values.CurrentMediaState!==1)),n(),g(" ",c(13,14,"accessories.control.pause")," "),n(6),A(F(24,pt,t.service.values.CurrentMediaState===2,t.service.values.CurrentMediaState!==2)),n(),g(" ",c(20,16,"accessories.control.stop")," ")}}function H1(e,r){if(e&1){let t=$();a(0,"h6"),d(1),s(2,"translate"),l(),a(3,"div",12),s(4,"translate"),a(5,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetMode(!1,i))}),a(6,"div",8),u(7,"i",9),l(),d(8),s(9,"translate"),a(10,"div",10),u(11,"i",11),l()(),a(12,"button",7),S("click",function(i){L(t);let p=m();return V(p.setTargetMode(!0,i))}),a(13,"div",8),u(14,"i",9),l(),d(15),s(16,"translate"),a(17,"div",10),u(18,"i",11),l()()()}if(e&2){let t=m();n(),g(" ",c(2,8,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),n(2),x("aria-label",c(4,10,"accessories.control.mute_control")),n(4),A(F(16,pt,!t.targetMode,t.targetMode)),n(),g(" ",c(9,12,"accessories.control.not_mute")," "),n(6),A(F(19,pt,t.targetMode,!t.targetMode)),n(),g(" ",c(16,14,"accessories.control.mute")," ")}}function N1(e,r){if(e&1){let t=$();a(0,"h6",13),d(1),s(2,"translate"),l(),a(3,"nouislider",14),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetVolume.value,i)||(p.targetVolume.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onVolumeStateChange())}),l()}if(e&2){let t=m();n(),N("",c(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),n(2),T("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),z("ngModel",t.targetVolume.value)}}var Io=(()=>{class e extends ne{targetMode;targetVolume;targetVolumeChanged=new J;setupComponent(){this.createDebouncedSubscription(this.targetVolumeChanged,()=>{this.service.getCharacteristic("Volume").setValue(this.targetVolume.value)}),this.targetMode=this.service.values.Mute,this.loadTargetVolume()}handleAccessoryUpdate(){this.targetMode=this.service.values.Mute,this.targetVolume&&"Volume"in this.service.values&&(this.targetVolume.value=this.service.getCharacteristic("Volume").value)}setTargetMode(t,o){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),this.blurTarget(o)}setActive(t,o){this.service.getCharacteristic("Active").setValue(t),this.blurTarget(o)}setTargetState(t,o){this.service.getCharacteristic("TargetMediaState").setValue(t),this.blurTarget(o)}onVolumeStateChange(){this.targetVolumeChanged.next(this.targetVolume.value)}loadTargetVolume(){let t=this.service.getCharacteristic("Volume");t&&(this.targetVolume={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #ffffff, #ffd966, #ff0000)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:11,vars:7,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],[1,"modal-footer"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],[1,"mt-4","mb-0"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4),h(6,P1,16,19,"div",5)(7,O1,23,27,"div",5),h(8,H1,19,22),h(9,N1,4,8),l(),u(10,"div",6),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,5,"form.button_close")),n(3),C("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),n(2),C("Mute"in i.service.values?8:-1),n(),C(i.targetVolume?9:-1))},dependencies:[oe,ae,se,le,M],encapsulation:2,changeDetection:0})}return e})();var R1=()=>[0,1],W1=(e,r,t)=>({"accessory-on":e,paused:r,muted:t}),U1=()=>["Speaker","SmartSpeaker"];function $1(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.play")," ")}function G1(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.pause")," ")}function j1(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.stop")," ")}function z1(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" \xB7 ",c(1,1,"accessories.control.mute")," ")}function K1(e,r){if(e&1&&d(0),e&2){let t=m(3);g(" \xB7 ",t.service.values.Volume,"% ")}}function q1(e,r){if(e&1&&h(0,K1,1,1),e&2){let t=m(2);C("Volume"in t.service.values?0:-1)}}function Z1(e,r){if(e&1&&(a(0,"div",14),h(1,$1,2,3)(2,G1,2,3)(3,j1,2,3),h(4,z1,2,3)(5,q1,1,1),l()),e&2){let t,o=m();n(),C((t=o.service.values.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),n(3),C("Mute"in o.service.values&&o.service.values.Mute?4:5)}}function Y1(e,r){e&1&&(u(0,"div",15),s(1,"translate")),e&2&&T("innerText",c(1,1,"accessories.control.off"))}function Q1(e,r){e&1&&(u(0,"div",15),s(1,"translate")),e&2&&T("innerText",c(1,1,"accessories.control.mute"))}function J1(e,r){if(e&1&&(a(0,"div",14),d(1),l()),e&2){let t=m();n(),g("",t.service.values.Volume,"%")}}function X1(e,r){e&1&&(a(0,"div",14),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.on")))}function ed(e,r){e&1&&(a(0,"div",14),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.speaker")))}var Do=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active===0?1:0):"TargetMediaState"in this.service.values?this.service.getCharacteristic("TargetMediaState").setValue(this.service.values.TargetMediaState===0?1:0):"Mute"in this.service.values&&this.service.getCharacteristic("Mute").setValue(!this.service.values.Mute))}onLongClick(){if(this.readyForControl&&("Active"in this.service.values||"TargetMediaState"in this.service.values||"Volume"in this.service.values||"Mute"in this.service.values)){let t=this.$modal.open(Io,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-speaker"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:22,vars:13,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","6","y","1","width","20","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1"],["cx","16","cy","9","r","4.5","stroke","#7f7f7f","stroke-width","0","fill","#7f7f7f"],["cx","16","cy","9","r","1.5","stroke","#7f7f7f","stroke-width","0","fill","#e1e1e1",1,"inner"],["cx","16","cy","22","r","6","stroke","#7f7f7f","stroke-width","0","fill","#7f7f7f"],["cx","16","cy","22","r","2","stroke","#7f7f7f","stroke-width","0","fill","#e1e1e1",1,"inner"],["d","M4,12 Q1,16 4,20","stroke","#1976d2","fill","none","stroke-width","1","stroke-opacity","0",1,"wave-inner"],["d","M3,10 Q-2,16 3,22","stroke","#1976d2","fill","none","stroke-width","1","stroke-opacity","0",1,"wave-outer"],["d","M28,12 Q31,16 28,20","stroke","#1976d2","fill","none","stroke-width","1","stroke-opacity","0",1,"wave-inner"],["d","M29,10 Q34,16 29,22","stroke","#1976d2","fill","none","stroke-width","1","stroke-opacity","0",1,"wave-outer"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"rect",4)(6,"circle",5)(7,"circle",6)(8,"circle",7)(9,"circle",8)(10,"path",9)(11,"path",10)(12,"path",11)(13,"path",12),l()(),P(),a(14,"div",13),d(15),l(),h(16,Z1,6,2,"div",14)(17,Y1,2,3,"div",15)(18,Q1,2,3,"div",15)(19,J1,2,1,"div",14)(20,X1,3,3,"div",14)(21,ed,3,3,"div",14),l()()),o&2&&(A(vt(8,W1,"Active"in i.service.values?i.service.values.Active:"CurrentMediaState"in i.service.values?xe(7,R1).includes(i.service.values.CurrentMediaState):"Mute"in i.service.values&&"Volume"in i.service.values?!i.service.values.Mute&&i.service.values.Volume>0:"Mute"in i.service.values&&!i.service.values.Mute,"CurrentMediaState"in i.service.values&&i.service.values.CurrentMediaState===1,"Mute"in i.service.values&&i.service.values.Mute)),n(2),x("aria-label",c(3,5,"accessories.core.speaker")),n(13),f(i.service.customName||i.service.serviceName),n(),C("CurrentMediaState"in i.service.values?16:"Active"in i.service.values&&!i.service.values.Active?17:"Mute"in i.service.values&&i.service.values.Mute?18:"Volume"in i.service.values?19:xe(12,U1).includes(i.service.customType||i.service.type)?20:21))},dependencies:[Y,M],styles:[".accessory-on:not(.paused):not(.muted) svg .wave-inner{animation:_ngcontent-%COMP%_pulse-inner 2s infinite} .accessory-on:not(.paused):not(.muted) svg .wave-outer{animation:_ngcontent-%COMP%_pulse-outer 2s infinite}@keyframes _ngcontent-%COMP%_pulse-inner{0%{stroke-opacity:.5}50%{stroke-opacity:1}to{stroke-opacity:.5}}@keyframes _ngcontent-%COMP%_pulse-outer{0%{stroke-opacity:.3}50%{stroke-opacity:.8}to{stroke-opacity:.3}} body.dark-mode div.accessory-box:not(.accessory-on) svg .inner{fill:#2b2b2b!important}"]})}return e})();var td=(e,r,t)=>({"press-single":e,"press-double":r,"press-long":t}),Lo=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-stateless-programmable-switch"]],inputs:{service:"service"},decls:17,vars:13,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","30","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","2"],["cx","8.5","cy","9.5","r","5","stroke","#7f7f7f","stroke-width","1","fill","none","fill-opacity","0.5",1,"single"],["cx","23.5","cy","9.5","r","5","stroke","#7f7f7f","stroke-width","1","fill","none","fill-opacity","0.5",1,"double"],["cx","23.5","cy","9.5","r","3","stroke","#7f7f7f","stroke-width","1","fill","none"],["cx","16","cy","23.5","r","5","stroke","#7f7f7f","stroke-width","1","fill","none","fill-opacity","0.5",1,"long"],["x1","5","y1","23.5","x2","11","y2","23.5","stroke","#7f7f7f","stroke-width","0.5","stroke-linecap","round"],["x1","21","y1","23.5","x2","27","y2","23.5","stroke","#7f7f7f","stroke-width","0.5","stroke-linecap","round"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4)(6,"circle",5)(7,"circle",6)(8,"circle",7)(9,"circle",8)(10,"line",9)(11,"line",10),k()(),P(),y(12,"div",11),d(13),k(),y(14,"div",12),d(15),s(16,"translate"),k()()()),o&2&&(A(vt(9,td,i.service.values.ProgrammableSwitchEvent===0,i.service.values.ProgrammableSwitchEvent===1,i.service.values.ProgrammableSwitchEvent===2)),n(2),x("aria-label",c(3,5,"accessories.core.stateless_programmable_switch")),n(11),f(i.service.customName||i.service.serviceName),n(2),f(c(16,7,"accessories.control.stateless")))},dependencies:[M],styles:[".press-single svg .single{fill:#1976d2!important} .press-double svg .double{fill:#1976d2!important} .press-long svg .long{fill:#1976d2!important}"]})}return e})();var Vo=()=>[0,2],Fo=(()=>{class e{service;readyForControl=!1;onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"LockTargetState"in this.service.values?this.service.getCharacteristic("LockTargetState").setValue(this.service.values.LockTargetState?0:1):"TargetDoorState"in this.service.values&&this.service.getCharacteristic("TargetDoorState").setValue(this.service.values.TargetDoorState?0:1))}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-switch"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:12,vars:11,consts:[["tabindex","0",1,"accessory-box",3,"shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","16","cy","16","r","14","fill","none","stroke","#7f7f7f","stroke-width","2"],["x1","16","y1","8","x2","16","y2","14","stroke","#7f7f7f","stroke-width","2","stroke-linecap","round"],["fill","#7f7f7f","d",`M21.4589329,9.49999998
|
|
13
|
-
C21,9.97698687 21.1735519,10.8351 21.4589326,11.2029426
|
|
14
|
-
C22.4505994,12.4811551 23,14.065977 23,15.7447101
|
|
15
|
-
C23,19.7640218 19.8532802,23 16,23
|
|
16
|
-
C12.1467198,23 9,19.7640218 9,15.7447101
|
|
17
|
-
C9,14.0415493 9.56560927,12.4352187 10.5838497,11.1483389
|
|
18
|
-
C10.8725653,10.7834523 11,9.9670534 10.5,9.49999999
|
|
19
|
-
C10,9.03294657 9.01543812,9.9073372 9.01543812,9.9073372
|
|
20
|
-
C7.75536735,11.4998488 7,13.5315645 7,15.7447101
|
|
21
|
-
C7,20.8562656 11.0294373,25 16,25
|
|
22
|
-
C20.9705627,25 25,20.8562656 25,15.7447101
|
|
23
|
-
C25,13.5637007 24.2664101,11.5588905 23.0391328,9.97698685
|
|
24
|
-
C23.0391328,9.97698685 21.9178658,9.0230131 21.4589329,9.49999998 Z`],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(o,i){o&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"circle",4)(6,"line",5)(7,"path",6),l()(),P(),a(8,"div",7),d(9),l(),u(10,"div",8),s(11,"translate"),l()()),o&2&&(R("accessory-on",i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&xe(9,Vo).includes(i.service.values.CurrentDoorState)),n(2),x("aria-label",c(3,5,"accessories.core.switch")),n(7),f(i.service.customName||i.service.serviceName),n(),T("innerText",c(11,7,i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&xe(10,Vo).includes(i.service.values.CurrentDoorState)?"accessories.control.on":"accessories.control.off")))},dependencies:[Y,M],styles:[".accessory-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{stroke:#1976d2;stroke-opacity:.75;stroke-width:2.5}.accessory-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] line[_ngcontent-%COMP%]{stroke:#1976d2;stroke-opacity:.75}.accessory-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#1976d2;fill-opacity:.75}"]})}return e})();var id=(e,r)=>({"mb-4":e,"mb-0":r}),Ti=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function nd(e,r){if(e&1){let t=$();y(0,"div",7),s(1,"translate"),y(2,"button",8),ve("click",function(i){L(t);let p=m();return V(p.setActive(0,i))}),y(3,"div",9),I(4,"i",10),k(),d(5),s(6,"translate"),y(7,"div",11),I(8,"i",12),k()(),y(9,"button",8),ve("click",function(i){L(t);let p=m();return V(p.setActive(1,i))}),y(10,"div",9),I(11,"i",10),k(),d(12),s(13,"translate"),y(14,"div",11),I(15,"i",12),k()()()}if(e&2){let t=m();A(F(15,id,t.sourceList.length,!t.sourceList.length)),x("aria-label",c(1,9,"accessories.control.mode_control")),n(4),A(F(18,Ti,t.service.values.Active===0,t.service.values.Active!==0)),n(),g(" ",c(6,11,"accessories.control.off")," "),n(6),A(F(21,Ti,t.service.values.Active===1,t.service.values.Active!==1)),n(),g(" ",c(13,13,"accessories.control.on")," ")}}function od(e,r){e&1&&(y(0,"h6"),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.input")))}function rd(e,r){if(e&1){let t=$();y(0,"button",8),ve("click",function(i){let p=L(t).$implicit,v=m(2);return V(v.setInput(p.identifier,i))}),y(1,"div",9),I(2,"i",10),k(),d(3),y(4,"div",11),I(5,"i",12),k()()}if(e&2){let t=r.$implicit,o=m(2);n(2),A(F(3,Ti,o.service.values.ActiveIdentifier===t.identifier,o.service.values.ActiveIdentifier!==t.identifier)),n(),g(" ",t.name," ")}}function ad(e,r){if(e&1&&(h(0,od,3,3,"h6"),y(1,"div",13),s(2,"translate"),We(3,rd,6,6,"button",14,qe),k()),e&2){let t=m();C(t.hasActive?0:-1),n(),x("aria-label",c(2,2,"accessories.control.input_control")),n(2),Ue(t.sourceList)}}var Po=(()=>{class e extends ne{inputList;hasActive=!1;sourceList=[];setupComponent(){"Active"in this.service.values&&(this.hasActive=!0),Object.keys(this.inputList).length&&Object.entries(this.inputList).forEach(([t,o])=>{this.sourceList.push({identifier:Number.parseInt(t,10),name:o})})}handleAccessoryUpdate(){"Active"in this.service.values&&(this.hasActive=!0)}setActive(t,o){this.service.getCharacteristic("Active").setValue(t),this.blurTarget(o)}setInput(t,o){this.service.getCharacteristic("ActiveIdentifier").setValue(t),this.blurTarget(o)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{inputList:"inputList"},features:[ie],decls:9,vars:6,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0",3,"class"],[1,"modal-footer"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1),I(2,"h5",2),y(3,"button",3),s(4,"translate"),ve("click",function(){return i.dismissModal()}),k()(),y(5,"div",4),h(6,nd,16,24,"div",5),h(7,ad,5,4),k(),I(8,"div",6),k()),o&2&&(n(2),Oe("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,4,"form.button_close")),n(3),C(i.hasActive?6:-1),n(),C(i.sourceList.length?7:-1))},dependencies:[oe,M],encapsulation:2,changeDetection:0})}return e})();function sd(e,r){if(e&1&&(a(0,"div",7),d(1),s(2,"translate"),l()),e&2){let t=m();n(),g(" ",t.channelList[t.service.values.ActiveIdentifier]||c(2,1,"accessories.control.on")," ")}}function ld(e,r){e&1&&(a(0,"div",7),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.off")))}var Oo=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;channelList={};ngOnInit(){if(this.service.linkedServices)for(let[,t]of Object.entries(this.service.linkedServices))t.type==="InputSource"&&(this.channelList[t.values.Identifier]=t.values.ConfiguredName||`Input ${t.values.Identifier}`)}onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On))}onLongClick(){if(this.readyForControl&&("Active"in this.service.values||Object.keys(this.channelList).length)){let t=this.$modal.open(Po,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.inputList=this.channelList,t.componentInstance.$accessories=this.$accessories}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-television"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:11,vars:7,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x1","10","y1","27.25","x2","22","y2","27.25","stroke","#d32f2f","stroke-width","4","stroke-linecap","round","stroke-opacity","0.75",1,"stand"],["x","1","y","6","width","30","height","20","rx","2","stroke","#7f7f7f","fill","#808080","stroke-width","1.5",1,"screen"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"line",4)(6,"rect",5),l()(),P(),a(7,"div",6),d(8),l(),h(9,sd,3,3,"div",7)(10,ld,3,3,"div",7),l()()),o&2&&(R("accessory-on",i.service.values.Active||i.service.values.On),n(2),x("aria-label",c(3,5,"accessories.core.television")),n(6),g(" ",i.service.customName||i.service.values.ConfiguredName||i.service.serviceName," "),n(),C(i.service.values.On||i.service.values.Active?9:10))},dependencies:[Y,M],styles:["body.dark-mode .screen{fill:#2b2b2b;stroke:#7f7f7f} .accessory-on svg .screen{animation:_ngcontent-%COMP%_color-change 3s infinite alternate} .accessory-on svg .stand{stroke:#7f7f7f;stroke-opacity:1}@keyframes _ngcontent-%COMP%_color-change{0%{fill:#4fc3f7}to{fill:#0288d1}}"]})}return e})();function cd(e,r){if(e&1&&(d(0),s(1,"convertTemp"),s(2,"number"),s(3,"uppercase")),e&2){let t=m();N(" ",ce(2,4,c(1,2,t.service.values.CurrentTemperature),"1.0-1"),"\xB0",c(3,7,t.temperatureUnits)," ")}}function dd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.no_data")," ")}var Ho=(()=>{class e{$settings=D(ye);service;temperatureUnits=this.$settings.env.temperatureUnits;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-temperature-sensor"]],inputs:{service:"service"},decls:34,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x1","16","y1","5","x2","16","y2","17","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["cx","16","cy","20","r","3","stroke","#7f7f7f","stroke-width","1.2","fill","#1976d2","fill-opacity","0.5"],["x1","9","y1","6","x2","13","y2","6","stroke","#7f7f7f","stroke-width","0.8"],["x1","9","y1","9","x2","13","y2","9","stroke","#7f7f7f","stroke-width","0.8"],["x1","9","y1","12","x2","13","y2","12","stroke","#7f7f7f","stroke-width","0.8"],["x1","9","y1","15","x2","13","y2","15","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","6","x2","23","y2","6","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","9","x2","23","y2","9","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","12","x2","23","y2","12","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","15","x2","23","y2","15","stroke","#7f7f7f","stroke-width","0.8"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4)(6,"line",5)(7,"circle",6)(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24)(26,"line",25)(27,"line",26)(28,"line",27),k()(),P(),y(29,"div",28),d(30),k(),y(31,"div",29),h(32,cd,4,9)(33,dd,2,3),k()()()),o&2&&(n(2),x("aria-label",c(3,3,"accessories.core.temperature_sensor")),n(28),f(i.service.customName||i.service.serviceName),n(2),C("CurrentTemperature"in i.service.values?32:33))},dependencies:[be,we,De,M],styles:[".temperature-circle[_ngcontent-%COMP%]{position:relative;display:inline-block;width:50px;height:50px;line-height:50px;border-radius:50%;font-size:14px;text-align:center;margin-bottom:6px;background-color:gray;color:#d3d3d3}@media(max-width:575px){.temperature-circle-collapse[_ngcontent-%COMP%]{width:31px;height:31px;line-height:31px;font-size:10px;margin-bottom:7px}}"]})}return e})();var Jt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function pd(e,r){if(e&1&&d(0),e&2){let t=m();g(" \xB7 ",t.service.values.CurrentRelativeHumidity,"% ")}}function md(e,r){if(e&1){let t=$();a(0,"button",10),S("click",function(i){L(t);let p=m();return V(p.setTargetMode(0,i))}),a(1,"div",11),u(2,"i",12),l(),d(3),s(4,"translate"),a(5,"div",13),u(6,"i",14),l()()}if(e&2){let t=m();n(2),A(F(5,Jt,t.targetMode===0,t.targetMode!==0)),n(),g(" ",c(4,3,"accessories.control.off")," ")}}function ud(e,r){if(e&1){let t=$();a(0,"button",10),S("click",function(i){L(t);let p=m();return V(p.setTargetMode(3,i))}),a(1,"div",11),u(2,"i",12),l(),d(3),s(4,"translate"),a(5,"div",13),u(6,"i",14),l()()}if(e&2){let t=m();n(2),A(F(5,Jt,t.targetMode===3,t.targetMode!==3)),n(),g(" ",c(4,3,"accessories.control.auto")," ")}}function fd(e,r){if(e&1){let t=$();a(0,"button",10),S("click",function(i){L(t);let p=m();return V(p.setTargetMode(1,i))}),a(1,"div",11),u(2,"i",12),l(),d(3),s(4,"translate"),a(5,"div",13),u(6,"i",14),l()()}if(e&2){let t=m();n(2),A(F(5,Jt,t.targetMode===1,t.targetMode!==1)),n(),g(" ",c(4,3,"accessories.control.heat")," ")}}function vd(e,r){if(e&1){let t=$();a(0,"button",10),S("click",function(i){L(t);let p=m();return V(p.setTargetMode(2,i))}),a(1,"div",11),u(2,"i",12),l(),d(3),s(4,"translate"),a(5,"div",13),u(6,"i",14),l()()}if(e&2){let t=m();n(2),A(F(5,Jt,t.targetMode===2,t.targetMode!==2)),n(),g(" ",c(4,3,"accessories.control.cool")," ")}}function gd(e,r){if(e&1){let t=$();a(0,"h6",15),d(1),s(2,"translate"),s(3,"convertTemp"),s(4,"number"),s(5,"uppercase"),l(),a(6,"nouislider",16),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetTemperature.value,i)||(p.targetTemperature.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onTemperatureStateChange())}),l()}if(e&2){let t=m();n(),$e(" ",c(2,7,"accessories.control.target"),": ",ce(4,11,c(3,9,t.targetTemperature.value),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),n(5),T("min",t.targetTemperature.min)("max",t.targetTemperature.max)("step",t.targetTemperature.step),z("ngModel",t.targetTemperature.value)}}function hd(e,r){if(e&1){let t=$();a(0,"h6",17),d(1),s(2,"translate"),s(3,"convertTemp"),s(4,"number"),s(5,"uppercase"),s(6,"convertTemp"),s(7,"number"),s(8,"uppercase"),l(),a(9,"nouislider",16),q("ngModelChange",function(i){L(t);let p=m(2);return K(p.autoTemp,i)||(p.autoTemp=i),V(i)}),S("ngModelChange",function(){L(t);let i=m(2);return V(i.onAutoThresholdStateChange())}),l()}if(e&2){let t=m(2);n(),ft(" ",c(2,9,"accessories.control.threshold_auto"),": ",ce(4,13,c(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",c(5,16,t.temperatureUnits)," - ",ce(7,20,c(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",c(8,23,t.temperatureUnits)," "),n(8),T("min",t.HeatingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),z("ngModel",t.autoTemp)}}function Cd(e,r){if(e&1){let t=$();a(0,"h6",15),d(1),s(2,"translate"),s(3,"convertTemp"),s(4,"number"),s(5,"uppercase"),l(),a(6,"nouislider",16),q("ngModelChange",function(i){L(t);let p=m(2);return K(p.targetHeatingTemp,i)||(p.targetHeatingTemp=i),V(i)}),S("ngModelChange",function(){L(t);let i=m(2);return V(i.onThresholdStateChange())}),l()}if(e&2){let t=m(2);n(),$e(" ",c(2,7,"accessories.control.threshold_auto"),": ",ce(4,11,c(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),n(5),T("min",t.HeatingThresholdTemperature.minValue)("max",t.HeatingThresholdTemperature.maxValue)("step",t.HeatingThresholdTemperature.minStep),z("ngModel",t.targetHeatingTemp)}}function _d(e,r){if(e&1){let t=$();a(0,"h6",15),d(1),s(2,"translate"),s(3,"convertTemp"),s(4,"number"),s(5,"uppercase"),l(),a(6,"nouislider",16),q("ngModelChange",function(i){L(t);let p=m(2);return K(p.targetCoolingTemp,i)||(p.targetCoolingTemp=i),V(i)}),S("ngModelChange",function(){L(t);let i=m(2);return V(i.onThresholdStateChange())}),l()}if(e&2){let t=m(2);n(),$e(" ",c(2,7,"accessories.control.threshold_auto"),": ",ce(4,11,c(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),n(5),T("min",t.CoolingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),z("ngModel",t.targetCoolingTemp)}}function xd(e,r){if(e&1&&h(0,hd,10,25)(1,Cd,7,16)(2,_d,7,16),e&2){let t=m();C(t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?0:t.HeatingThresholdTemperature&&!t.CoolingThresholdTemperature?1:!t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?2:-1)}}var No=(()=>{class e extends ne{$settings=D(ye);targetMode;targetTemperature;targetTemperatureChanged=new J;targetThresholdChanged=new J;targetStateValidValues=[];CoolingThresholdTemperature;HeatingThresholdTemperature;targetCoolingTemp;targetHeatingTemp;autoTemp;hasHumidity=!1;temperatureUnits=this.$settings.env.temperatureUnits;setupComponent(){this.createDebouncedSubscription(this.targetTemperatureChanged,()=>{this.service.getCharacteristic("TargetTemperature").setValue(this.targetTemperature.value)}),this.createDebouncedSubscription(this.targetThresholdChanged,()=>{this.HeatingThresholdTemperature&&this.service.getCharacteristic("HeatingThresholdTemperature").setValue(this.targetHeatingTemp),this.CoolingThresholdTemperature&&this.service.getCharacteristic("CoolingThresholdTemperature").setValue(this.targetCoolingTemp)}),this.targetMode=this.service.values.TargetHeatingCoolingState,this.CoolingThresholdTemperature=this.service.getCharacteristic("CoolingThresholdTemperature"),this.HeatingThresholdTemperature=this.service.getCharacteristic("HeatingThresholdTemperature"),this.targetStateValidValues=this.service.getCharacteristic("TargetHeatingCoolingState").validValues,this.loadTargetTemperature(),this.service.getCharacteristic("CurrentRelativeHumidity")&&(this.hasHumidity=!0),this.applyThermostatGradient()}handleAccessoryUpdate(){this.targetMode=this.service.values.TargetHeatingCoolingState,this.targetTemperature&&(this.targetTemperature.value=this.service.getCharacteristic("TargetTemperature").value),this.CoolingThresholdTemperature&&(this.targetCoolingTemp=this.service.getCharacteristic("CoolingThresholdTemperature").value),this.HeatingThresholdTemperature&&(this.targetHeatingTemp=this.service.getCharacteristic("HeatingThresholdTemperature").value),this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp],this.applyThermostatGradient()}setTargetMode(t,o){this.targetMode=t,this.service.getCharacteristic("TargetHeatingCoolingState").setValue(this.targetMode),this.blurTarget(o),this.applyThermostatGradient()}onTemperatureStateChange(){this.targetTemperatureChanged.next(this.targetTemperature.value)}onThresholdStateChange(){this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp],this.targetThresholdChanged.next(void 0)}onAutoThresholdStateChange(){this.targetHeatingTemp=this.autoTemp[0],this.targetCoolingTemp=this.autoTemp[1],this.targetThresholdChanged.next(void 0)}loadTargetTemperature(){let t=this.service.getCharacteristic("TargetTemperature");this.targetTemperature={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep||.5},this.targetCoolingTemp=this.service.getCharacteristic("CoolingThresholdTemperature")?.value,this.targetHeatingTemp=this.service.getCharacteristic("HeatingThresholdTemperature")?.value,this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp]}applyThermostatGradient(){this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:22,vars:25,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mt-2","mb-4","fs-4"],[1,"fas","fa-temperature-full"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"],[1,"modal-footer"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"mt-4"],[3,"ngModelChange","min","max","step","ngModel"],[1,"mt-4","mb-1"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"h6",5),u(7,"i",6),d(8),s(9,"convertTemp"),s(10,"number"),s(11,"uppercase"),h(12,pd,1,1),l(),a(13,"div",7),s(14,"translate"),h(15,md,7,8,"button",8),h(16,ud,7,8,"button",8),h(17,fd,7,8,"button",8),h(18,vd,7,8,"button",8),l(),h(19,gd,7,16),h(20,xd,3,1),l(),u(21,"div",9),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,14,"form.button_close")),n(4),tt("color",i.service.values.CurrentHeatingCoolingState===2?"#1e8bbd":i.service.values.CurrentHeatingCoolingState===1?"#e69533":i.service.values.TargetHeatingCoolingState===3?"#42d672":"#7b7b7b"),n(),N("",ce(10,18,c(9,16,i.service.values.CurrentTemperature),"1.0-1"),"\xB0",c(11,21,i.temperatureUnits)," "),n(4),C(i.hasHumidity?12:-1),n(),x("aria-label",c(14,23,"accessories.control.mode_control")),n(2),C(i.targetStateValidValues.includes(0)?15:-1),n(),C(i.targetStateValidValues.includes(3)?16:-1),n(),C(i.targetStateValidValues.includes(1)?17:-1),n(),C(i.targetStateValidValues.includes(2)?18:-1),n(),C("TargetTemperature"in i.service.values?19:-1),n(),C(i.targetStateValidValues.includes(3)?20:-1))},dependencies:[oe,ae,se,le,be,M,we,De],encapsulation:2,changeDetection:0})}return e})();function yd(e,r){if(e&1&&(E(),a(0,"text",18),d(1),s(2,"convertTemp"),s(3,"number"),s(4,"uppercase"),l()),e&2){let t=m();n(),N(" ",ce(3,4,c(2,2,t.service.values.CurrentTemperature),"1.0-1"),"\xB0",c(4,7,t.temperatureUnits)," ")}}function Sd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.off")," ")}function kd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.heat")," ")}function Td(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.cool")," ")}function bd(e,r){if(e&1&&(u(0,"i",21),d(1),s(2,"convertTemp"),s(3,"number"),s(4,"uppercase")),e&2){let t=m();n(),N(" ",ce(3,4,c(2,2,t.service.values.TargetTemperature),"1.0-1"),"\xB0",c(4,7,t.temperatureUnits)," ")}}var Ro=(()=>{class e{$modal=D(Q);$settings=D(ye);$accessories=D(ee);service;readyForControl=!1;temperatureUnits=this.$settings.env.temperatureUnits;onClick(){if(!this.readyForControl)return;let t=this.$modal.open(No,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-thermostat"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:30,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["id","coolingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#1e8bbd"],["attributeName","stop-color","values","#1e8bbd;#66d6d6;#1e8bbd","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#66d6d6"],["attributeName","stop-color","values","#66d6d6;#1e8bbd;#66d6d6","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#1e8bbd"],["id","heatingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#cc5e00"],["attributeName","stop-color","values","#cc5e00;#e69533;#cc5e00;#e69533","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#e69533"],["attributeName","stop-color","values","#e69533;#cc5e00;#e69533;#cc5e00","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#cc5e00"],["x","1","y","1","width","30","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x","1","y","19","width","30","height","8","rx","0","stroke","#7f7f7f","stroke-width","0.75","fill-opacity","0.5"],["x","16","y","13","font-size","8","text-anchor","middle","fill","#7f7f7f","font-family","Arial, sans-serif"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"fa","fas","fa-bullseye"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),u(8,"animate",6),l(),a(9,"stop",7),u(10,"animate",8),l(),a(11,"stop",9),u(12,"animate",6),l()(),a(13,"linearGradient",10)(14,"stop",11),u(15,"animate",12),l(),a(16,"stop",13),u(17,"animate",14),l(),a(18,"stop",15),u(19,"animate",12),l()()(),u(20,"rect",16)(21,"rect",17),h(22,yd,5,9,":svg:text",18),l()(),P(),a(23,"div",19),d(24),l(),a(25,"div",20),h(26,Sd,2,3)(27,kd,2,3)(28,Td,2,3)(29,bd,5,9),l()()()),o&2&&(R("accessory-on",i.service.values.TargetHeatingCoolingState>0),n(2),x("aria-label",c(3,7,"accessories.core.thermostat")),n(19),x("fill",i.service.values.CurrentHeatingCoolingState===2?"url(#coolingGradient)":i.service.values.CurrentHeatingCoolingState===1?"url(#heatingGradient)":i.service.values.TargetHeatingCoolingState===3?"#42d672":"#7b7b7b"),n(),C("CurrentTemperature"in i.service.values?22:-1),n(2),f(i.service.customName||i.service.serviceName),n(2),C(i.service.values.TargetHeatingCoolingState===0?26:i.service.values.CurrentHeatingCoolingState===1?27:i.service.values.CurrentHeatingCoolingState===2?28:i.service.values.TargetHeatingCoolingState===3?29:-1))},dependencies:[Y,be,M,we,De],encapsulation:2})}return e})();var Wo=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-unknown"]],inputs:{service:"service"},decls:10,vars:3,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","16","cy","16","r","14","fill","none","stroke","#7f7f7f","stroke-width","1.5"],["d",`M12.2575393,17.7112593
|
|
25
|
-
L12.1868707,17.7112593
|
|
26
|
-
C11.0779698,17.7112593 10.6478221,16.9467914 11.2212184,16.0037726
|
|
27
|
-
L16.4805582,7.35415962
|
|
28
|
-
C17.67876,5.38357359 18.0624739,5.55948915 17.3376772,7.746963
|
|
29
|
-
L15.7252918,12.6132252
|
|
30
|
-
C15.3772095,13.6637556 15.9942825,14.5048291 17.0992511,14.5048291
|
|
31
|
-
L20.1977772,14.5048291
|
|
32
|
-
L20.1846183,14.5177121
|
|
33
|
-
L20.2552868,14.5177121
|
|
34
|
-
C21.3641878,14.5177121 21.7943355,15.2821799 21.2209392,16.2251988
|
|
35
|
-
L16.1844844,24.5082506
|
|
36
|
-
C14.864477,26.6791606 14.4411534,26.4839632 15.241777,24.0676402
|
|
37
|
-
L16.7168658,19.6157462
|
|
38
|
-
C17.0649481,18.5652158 16.447875,17.7241422 15.3429064,17.7241422
|
|
39
|
-
L12.2443804,17.7241422
|
|
40
|
-
L12.2575393,17.7112593 Z`,"fill","#7f7f7f"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),E(),y(3,"svg",3),I(4,"circle",4)(5,"path",5),k()(),P(),y(6,"div",6),d(7),k(),y(8,"div",7),d(9),k()()()),o&2&&(n(2),x("aria-label",i.service.humanType),n(5),f(i.service.customName||i.service.serviceName),n(2),f(i.service.humanType))},encapsulation:2})}return e})();var Uo=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Bd(e,r){if(e&1){let t=$();a(0,"h6"),d(1),s(2,"translate"),s(3,"duration"),l(),a(4,"nouislider",12),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetSetDuration.value,i)||(p.targetSetDuration.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onSetDurationStateChange())}),l()}if(e&2){let t=m();n(),N(" ",c(2,6,"accessories.control.set_duration"),": ",t.targetSetDuration.value===0?"\u221E":c(3,8,t.targetSetDuration.value)," "),n(3),T("min",t.targetSetDuration.min)("max",t.targetSetDuration.max)("step",15),z("ngModel",t.targetSetDuration.value)}}var $o=(()=>{class e extends ne{targetMode;targetSetDuration;targetSetDurationChanged=new J;setupComponent(){this.createDebouncedSubscription(this.targetSetDurationChanged,()=>{this.service.getCharacteristic("SetDuration").setValue(this.targetSetDuration.value)}),this.targetMode=this.service.values.Active,this.loadTargetSetDuration()}handleAccessoryUpdate(){this.targetMode=this.service.values.Active,this.targetSetDuration&&"SetDuration"in this.service.values&&(this.targetSetDuration.value=this.service.getCharacteristic("SetDuration").value)}setTargetMode(t,o){this.targetMode=t,this.service.getCharacteristic("Active").setValue(this.targetMode),this.blurTarget(o)}onSetDurationStateChange(){this.targetSetDurationChanged.next(this.targetSetDuration.value)}loadTargetSetDuration(){let t=this.service.getCharacteristic("SetDuration");t&&(this.targetSetDuration={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #add8e6, #416bdf)",".noUi-target"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:24,vars:24,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5),s(7,"translate"),a(8,"button",6),S("click",function(v){return i.setTargetMode(!1,v)}),a(9,"div",7),u(10,"i",8),l(),d(11),s(12,"translate"),a(13,"div",9),u(14,"i",10),l()(),a(15,"button",6),S("click",function(v){return i.setTargetMode(!0,v)}),a(16,"div",7),u(17,"i",8),l(),d(18),s(19,"translate"),a(20,"div",9),u(21,"i",10),l()()(),h(22,Bd,5,10),l(),u(23,"div",11),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,10,"form.button_close")),n(3),x("aria-label",c(7,12,"accessories.control.mode_control")),n(4),A(F(18,Uo,!i.targetMode,i.targetMode)),n(),g(" ",c(12,14,"accessories.control.off")," "),n(6),A(F(21,Uo,i.targetMode,!i.targetMode)),n(),g(" ",c(19,16,"accessories.control.on")," "),n(4),C(i.targetSetDuration?22:-1))},dependencies:[oe,ae,se,le,M,Yt],encapsulation:2,changeDetection:0})}return e})();function Md(e,r){e&1&&(a(0,"div",2),s(1,"translate"),E(),a(2,"svg",5),u(3,"line",6)(4,"line",7)(5,"line",8)(6,"line",9)(7,"circle",10)(8,"circle",11)(9,"circle",12)(10,"circle",13)(11,"circle",14)(12,"circle",15),l()()),e&2&&x("aria-label",c(1,1,"accessories.core.generic_valve"))}function wd(e,r){e&1&&(a(0,"div",2),s(1,"translate"),E(),a(2,"svg",5),u(3,"circle",16)(4,"circle",17)(5,"circle",18)(6,"circle",19)(7,"circle",20)(8,"circle",21)(9,"circle",22)(10,"circle",23)(11,"circle",24)(12,"circle",25)(13,"line",26)(14,"line",27)(15,"line",28),l()()),e&2&&x("aria-label",c(1,1,"accessories.core.irrigation_valve"))}function Ed(e,r){e&1&&(a(0,"div",2),s(1,"translate"),E(),a(2,"svg",5),u(3,"line",29)(4,"line",30)(5,"line",31)(6,"path",32)(7,"line",33)(8,"circle",34)(9,"circle",35)(10,"circle",36)(11,"circle",37)(12,"circle",38)(13,"circle",39)(14,"circle",40)(15,"circle",41)(16,"circle",42)(17,"circle",43)(18,"circle",44)(19,"circle",45),l()()),e&2&&x("aria-label",c(1,1,"accessories.core.shower_head_valve"))}function Ad(e,r){e&1&&(a(0,"div",2),s(1,"translate"),E(),a(2,"svg",5),u(3,"rect",46)(4,"line",47)(5,"line",48)(6,"rect",49)(7,"path",50)(8,"line",51)(9,"line",52),l()()),e&2&&x("aria-label",c(1,1,"accessories.core.faucet_valve"))}function Id(e,r){if(e&1&&(a(0,"div",4),d(1),l()),e&2){let t=m();n(),f(t.remainingDuration)}}function Dd(e,r){e&1&&(a(0,"div",4),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.running")))}function Ld(e,r){e&1&&(a(0,"div",4),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.off")))}var Go=(()=>{class e{destroyRef=D(et);$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;secondsActive=0;remainingDuration;remainingDurationInterval=Ji(1e3).pipe(Xi(()=>this.isActive()));ngOnInit(){"SetDuration"in this.service.values&&this.setupRemainingDurationCounter()}onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On))}onLongClick(){if(this.readyForControl&&"SetDuration"in this.service.values){let t=this.$modal.open($o,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}}isActive(){return this.service.values.Active?!0:(this.resetRemainingDuration(),!1)}setupRemainingDurationCounter(){this.remainingDurationInterval.pipe(je(this.destroyRef)).subscribe(()=>{this.secondsActive++;let t=this.service.getCharacteristic("RemainingDuration").value-this.secondsActive;t>0?this.remainingDuration=t<3600?new Date(t*1e3).toISOString().substring(14,19):new Date(t*1e3).toISOString().substring(11,19):this.remainingDuration=""})}resetRemainingDuration(){this.secondsActive=0,this.service.getCharacteristic("RemainingDuration")&&(this.remainingDuration="")}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-valve"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:11,vars:5,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],["width","32","height","32","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x1","8","y1","3","x2","14","y2","3","stroke","#7f7f7f","stroke-width","3","stroke-linecap","round"],["x1","11","y1","8","x2","11","y2","3","stroke","#7f7f7f","stroke-width","3","stroke-linecap","round"],["x1","0","y1","9","x2","21","y2","9","stroke","#7f7f7f","stroke-width","4","stroke-linecap","round"],["x1","21","y1","9","x2","21","y2","14","stroke","#7f7f7f","stroke-width","4","stroke-linecap","round"],["fill","#1976d2","fill-opacity","0","cx","21","cy","19","r","1.5",1,"drop","drop-top"],["fill","#1976d2","fill-opacity","0","cx","17","cy","24","r","1.5",1,"drop","drop-middle"],["fill","#1976d2","fill-opacity","0","cx","25","cy","24","r","1.5",1,"drop","drop-middle"],["fill","#1976d2","fill-opacity","0","cx","13","cy","29","r","1.5",1,"drop","drop-bottom"],["fill","#1976d2","fill-opacity","0","cx","21","cy","29","r","1.5",1,"drop","drop-bottom"],["fill","#1976d2","fill-opacity","0","cx","29","cy","29","r","1.5",1,"drop","drop-bottom"],["fill","#1976d2","fill-opacity","0","cx","1","cy","16","r","1",1,"drop","drop-out"],["fill","#1976d2","fill-opacity","0","cx","6","cy","8","r","1",1,"drop","drop-out"],["fill","#1976d2","fill-opacity","0","cx","16","cy","4","r","1",1,"drop","drop-out"],["fill","#1976d2","fill-opacity","0","cx","26","cy","8","r","1",1,"drop","drop-out"],["fill","#1976d2","fill-opacity","0","cx","31","cy","16","r","1",1,"drop","drop-out"],["fill","#1976d2","fill-opacity","0","cx","7","cy","16","r","1.5",1,"drop","drop-in"],["fill","#1976d2","fill-opacity","0","cx","25","cy","16","r","1.5",1,"drop","drop-in"],["fill","#1976d2","fill-opacity","0","cx","10.5","cy","11.5","r","1.5",1,"drop","drop-in"],["fill","#1976d2","fill-opacity","0","cx","21.5","cy","11.5","r","1.5",1,"drop","drop-in"],["fill","#1976d2","fill-opacity","0","cx","16","cy","9","r","1.5",1,"drop","drop-in"],["x1","16","y1","16","x2","16","y2","31","stroke","#7f7f7f","stroke-width","2","stroke-linecap","round"],["x1","14","y1","16","x2","18","y2","16","stroke","#7f7f7f","stroke-width","4","stroke-linecap","round"],["x1","4","y1","31","x2","28","y2","31","stroke","#7f7f7f","stroke-opacity","0.5","stroke-width","10","stroke-linecap","round",1,"grass"],["x1","1","y1","1","x2","16","y2","1","stroke","#7f7f7f","stroke-width","2","stroke-linecap","round"],["x1","1","y1","1","x2","1","y2","31","stroke","#7f7f7f","stroke-width","2","stroke-linecap","round"],["x1","16","y1","1","x2","16","y2","3","stroke","#7f7f7f","stroke-width","2","stroke-linecap","round"],["d","M8 11 A8 7 0 0 1 24 11","fill","none","stroke","#7f7f7f","stroke-width","2"],["x1","7","y1","11","x2","25","y2","11","stroke","#7f7f7f","stroke-width","2","stroke-linecap","round"],["fill","#1976d2","fill-opacity","0","cx","8","cy","16","r","1.25",1,"drop","drop-top"],["fill","#1976d2","fill-opacity","0","cx","13.3","cy","16","r","1.25",1,"drop","drop-top"],["fill","#1976d2","fill-opacity","0","cx","18.6","cy","16","r","1.25",1,"drop","drop-top"],["fill","#1976d2","fill-opacity","0","cx","24","cy","16","r","1.25",1,"drop","drop-top"],["fill","#1976d2","fill-opacity","0","cx","8","cy","22","r","1",1,"drop","drop-middle"],["fill","#1976d2","fill-opacity","0","cx","13.3","cy","22","r","1",1,"drop","drop-middle"],["fill","#1976d2","fill-opacity","0","cx","18.6","cy","22","r","1",1,"drop","drop-middle"],["fill","#1976d2","fill-opacity","0","cx","24","cy","22","r","1",1,"drop","drop-middle"],["fill","#1976d2","fill-opacity","0","cx","8","cy","28","r","0.75",1,"drop","drop-bottom"],["fill","#1976d2","fill-opacity","0","cx","13.3","cy","28","r","0.75",1,"drop","drop-bottom"],["fill","#1976d2","fill-opacity","0","cx","18.6","cy","28","r","0.75",1,"drop","drop-bottom"],["fill","#1976d2","fill-opacity","0","cx","24","cy","28","r","0.75",1,"drop","drop-bottom"],["x","-3","y","28","width","21","height","6.5","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"sink"],["stroke-linecap","round","x1","24","y1","18","x2","26","y2","18","stroke","#1976d2","stroke-width","3","stroke-opacity","0.5"],["stroke-linecap","round","x1","20","y1","18","x2","22","y2","18","stroke","#d32f2f","stroke-width","3","stroke-opacity","0.5"],["x","19","y","16.5","rx","1","width","8","height","3","fill","none","stroke-width","1","stroke","#7f7f7f"],["d","M10 9 C10 -1, 23 -1, 23 10 V26","fill","none","stroke","#7f7f7f","stroke-width","2"],["x1","10","y1","9","x2","10","y2","28","stroke","#1976d2","stroke-opacity","0","stroke-width","1.5",1,"stream"],["x1","20","y1","31","x2","26","y2","31","stroke","#7f7f7f","stroke-width","10","stroke-linecap","round"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1),h(2,Md,13,3,"div",2)(3,wd,16,3,"div",2)(4,Ed,20,3,"div",2)(5,Ad,10,3,"div",2),a(6,"div",3),d(7),l(),h(8,Id,2,1,"div",4)(9,Dd,3,3,"div",4)(10,Ld,3,3,"div",4),l()()),o&2&&(R("accessory-on",i.service.values.Active||i.service.values.On),n(2),C(i.service.values.ValveType===0||!i.service.values.ValveType?2:i.service.values.ValveType===1?3:i.service.values.ValveType===2?4:i.service.values.ValveType===3?5:-1),n(5),g(" ",i.service.customName||i.service.values.ConfiguredName||i.service.serviceName," "),n(),C(i.service.values.Active&&i.remainingDuration?8:i.service.values.Active&&!i.remainingDuration||i.service.values.On?9:10))},dependencies:[Y,M],styles:[".accessory-on svg .grass{stroke:#4caf50!important} .accessory-on svg .drop{fill-opacity:.5} .accessory-on svg .drop-in{animation:_ngcontent-%COMP%_blink 1.5s infinite} .accessory-on svg .drop-out{animation:_ngcontent-%COMP%_blink 1.5s infinite;animation-delay:.75s} .accessory-on svg .drop-top{animation:_ngcontent-%COMP%_blink 1.5s infinite} .accessory-on svg .drop-middle{animation:_ngcontent-%COMP%_blink 1.5s infinite;animation-delay:.5s} .accessory-on svg .drop-bottom{animation:_ngcontent-%COMP%_blink 1.5s infinite;animation-delay:1s}@keyframes _ngcontent-%COMP%_blink{0%,to{opacity:1}50%{opacity:0}}@keyframes _ngcontent-%COMP%_blink-on-off{0%,to{opacity:1}50%{opacity:.5}} .accessory-on svg .stream{stroke-opacity:.5;animation:_ngcontent-%COMP%_blink-on-off 4s infinite} .accessory-on svg .sink{fill:#1976d2}"]})}return e})();var jo=(()=>{class e{service;readyForControl=!1;onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1))}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-washing-machine"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:22,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3","y","1","width","25","height","30","rx","2","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x","6","y","4","width","5","rx","0.5","height","4","stroke","#7f7f7f","fill","none","stroke-width","0.5"],["x","7","y","6","width","3","rx","0.25","height","1","stroke","#7f7f7f","fill","none","stroke-width","0.25"],["x","14","y","4","width","11","height","4","rx","0.5","fill","none","stroke","#7f7f7f","stroke-width","0.5"],["x","19","y","5","width","5","height","2","rx","0.25","fill","#1976d2","fill-opacity","0.5","stroke","#7f7f7f","stroke-width","0.25"],["x","15","y","5","width","1","height","1","rx","0.25","fill","none","stroke","#7f7f7f","stroke-width","0.25"],["x","16","y","5","width","1","height","1","rx","0.25","fill","none","stroke","#7f7f7f","stroke-width","0.25"],["x","17","y","5","width","1","height","1","rx","0.25","fill","none","stroke","#7f7f7f","stroke-width","0.25"],["x","15","y","6","width","1","height","1","rx","0.25","fill","none","stroke","#7f7f7f","stroke-width","0.25"],["x","16","y","6","width","1","height","1","rx","0.25","fill","none","stroke","#7f7f7f","stroke-width","0.25"],["x","17","y","6","width","1","height","1","rx","0.25","fill","none","stroke","#7f7f7f","stroke-width","0.25"],["x","19","y","15.5","rx","1","width","3","height","3","fill","#7f7f7f",1,"handle"],["cx","15.5","cy","17","r","6.5","stroke","#7f7f7f","fill","none","stroke-width","1.2"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(o,i){o&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"rect",8)(10,"rect",9)(11,"rect",10)(12,"rect",11)(13,"rect",12)(14,"rect",13)(15,"rect",14)(16,"rect",15)(17,"circle",16),l()(),P(),a(18,"div",17),d(19),l(),u(20,"div",18),s(21,"translate"),l()()),o&2&&(R("accessory-on",i.service.values.On||i.service.values.Active),n(2),x("aria-label",c(3,5,"accessories.core.washing_machine")),n(17),f(i.service.customName||i.service.serviceName),n(),T("innerText",c(21,7,i.service.values.On||i.service.values.Active?"accessories.control.on":"accessories.control.off")))},dependencies:[Y,M],styles:[".accessory-on svg .handle{fill:#1976d2;fill-opacity:.5;transform-origin:48% 53%;animation:_ngcontent-%COMP%_rotate-handle 2s linear infinite}@keyframes _ngcontent-%COMP%_rotate-handle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return e})();function Vd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.closed")," ")}function Fd(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function Pd(e,r){if(e&1&&h(0,Vd,2,3)(1,Fd,2,4),e&2){let t=m();C(t.service.values.CurrentPosition===0?0:1)}}function Od(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.opening"),"... ")}function Hd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.closing"),"... ")}var zo=(()=>{class e extends ne{targetMode;targetPositionChanged=new J;targetPosition;setupComponent(){this.createDebouncedSubscription(this.targetPositionChanged,()=>{this.service.getCharacteristic("CurrentPosition").value<this.targetPosition.value?this.service.values.PositionState=1:this.service.getCharacteristic("CurrentPosition").value>this.targetPosition.value&&(this.service.values.PositionState=0),this.service.getCharacteristic("TargetPosition").setValue(this.targetPosition.value)}),this.targetMode=this.service.values.On,this.loadTargetPosition()}handleAccessoryUpdate(){this.targetMode=this.service.values.On,this.targetPosition&&"TargetPosition"in this.service.values&&(this.targetPosition.value=this.service.getCharacteristic("TargetPosition").value)}onTargetPositionChange(){this.targetPositionChanged.next(this.targetPosition.value)}loadTargetPosition(){let t=this.service.getCharacteristic("TargetPosition");t&&(this.targetPosition={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:34,vars:34,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"d-flex","justify-content-center","mb-0","p-0"],[1,"mb-0","mx-0","p-3","btn-read","w-100"],[1,"mt-4"],[1,"mb-1",3,"ngModelChange","min","max","step","ngModel"],[1,"d-flex","justify-content-between","align-items-center","mt-0","mb-1"],[1,"grey-text","small"],[1,"mb-1",3,"ngModelChange","min","max","step","disabled","ngModel"],[1,"modal-footer"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5)(7,"div",6),h(8,Pd,2,1)(9,Od,2,3)(10,Hd,2,3),l()(),a(11,"h6",7),d(12),s(13,"translate"),l(),a(14,"nouislider",8),q("ngModelChange",function(v){return K(i.targetPosition.value,v)||(i.targetPosition.value=v),v}),S("ngModelChange",function(){return i.onTargetPositionChange()}),l(),a(15,"div",9)(16,"span",10),d(17),s(18,"translate"),l(),a(19,"span",10),d(20),s(21,"translate"),l()(),a(22,"h6",7),d(23),s(24,"translate"),l(),a(25,"nouislider",11),q("ngModelChange",function(v){return K(i.service.getCharacteristic("CurrentPosition").value,v)||(i.service.getCharacteristic("CurrentPosition").value=v),v}),l(),a(26,"div",9)(27,"span",10),d(28),s(29,"translate"),l(),a(30,"span",10),d(31),s(32,"translate"),l()()(),u(33,"div",12),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,20,"form.button_close")),n(5),C(i.service.values.PositionState===2?8:i.service.values.PositionState===1?9:i.service.values.PositionState===0?10:-1),n(4),N("",c(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),n(2),T("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),z("ngModel",i.targetPosition.value),n(3),f(c(18,24,"accessories.control.closed")),n(3),f(c(21,26,"accessories.control.open")),n(3),N(" ",c(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),n(2),T("min",0)("max",100)("step",1)("disabled",!0),z("ngModel",i.service.getCharacteristic("CurrentPosition").value),n(3),f(c(29,30,"accessories.control.closed")),n(3),f(c(32,32,"accessories.control.open")))},dependencies:[le,oe,ae,se,M],encapsulation:2,changeDetection:0})}return e})();function Nd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.closed")," ")}function Rd(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.values.CurrentPosition,"% ")}}function Wd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.open")," ")}function Ud(e,r){if(e&1&&(a(0,"div",12),h(1,Nd,2,3),h(2,Rd,2,4),h(3,Wd,2,3),l()),e&2){let t=m();n(),C(t.service.values.CurrentPosition===0?1:-1),n(),C(t.service.values.CurrentPosition>0&&t.service.values.CurrentPosition<100?2:-1),n(),C(t.service.values.CurrentPosition===100?3:-1)}}function $d(e,r){e&1&&(a(0,"div",13),d(1),s(2,"translate"),l()),e&2&&(n(),g("",c(2,1,"accessories.control.opening"),"..."))}function Gd(e,r){e&1&&(a(0,"div",13),d(1),s(2,"translate"),l()),e&2&&(n(),g("",c(2,1,"accessories.control.closing"),"..."))}var Ko=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&(this.service.values.TargetPosition?this.service.getCharacteristic("TargetPosition").setValue(0):this.service.getCharacteristic("TargetPosition").setValue(100))}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(zo,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-window-covering"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:17,vars:7,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","0.8","width","30","height","30.2","rx","0.5","stroke","#7f7f7f","fill","none","stroke-width","1.5"],["x","2.8","y","2.6","width","12.4","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1"],["x","3.66","y","15.65","width","10.68","height","0.5","stroke","#7f7f7f","fill","none","stroke-width","0.5","rx","2"],["x","16.8","y","2.6","width","12.4","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1"],["x","17.66","y","15.65","width","10.68","height","0.5","stroke","#7f7f7f","fill","none","stroke-width","0.5","rx","2"],["x","2.3","y","2.1","width","27.4","height","27.6","stroke","#808080","fill","#808080","stroke-width","0.5","stroke-opacity","0.9","fill-opacity","0.9",1,"c-blinds"],["x","2.05","y","29.9","width","27.9","height","0","stroke","#ffffff","fill","#ffffff","stroke-width","0.5","stroke-opacity","0","fill-opacity","0.5",1,"c-light"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","red-text"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"rect",8)(10,"rect",9)(11,"rect",10),l()(),P(),a(12,"div",11),d(13),l(),h(14,Ud,4,3,"div",12)(15,$d,3,3,"div",13)(16,Gd,3,3,"div",13),l()()),o&2&&(R("accessory-on",i.service.values.CurrentPosition),n(2),x("aria-label",c(3,5,"accessories.core.window_covering")),n(11),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.PositionState===2?14:i.service.values.PositionState===1?15:i.service.values.PositionState===0?16:-1))},dependencies:[Y,M],styles:["body.dark-mode .c-blinds{fill:#2b2b2b;stroke:#2b2b2b;stroke-opacity:.8;fill-opacity:.8} svg .c-blinds{transition:height 3s ease;height:27.6px} svg .c-light{transition:y 3s ease,height 3s ease;y:29.9px;height:0} .accessory-on svg .c-blinds{transition:height 3s ease;height:.3px} .accessory-on svg .c-light{transition:y 3s ease,height 3s ease;y:2.65px;height:27.3px}"]})}return e})();function jd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.closed")," ")}function zd(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function Kd(e,r){if(e&1&&h(0,jd,2,3)(1,zd,2,4),e&2){let t=m();C(t.service.values.CurrentPosition===0?0:1)}}function qd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.opening"),"... ")}function Zd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.closing"),"... ")}var qo=(()=>{class e extends ne{targetMode;targetPositionChanged=new J;targetPosition;setupComponent(){this.createDebouncedSubscription(this.targetPositionChanged,()=>{this.service.getCharacteristic("CurrentPosition").value<this.targetPosition.value?this.service.values.PositionState=1:this.service.getCharacteristic("CurrentPosition").value>this.targetPosition.value&&(this.service.values.PositionState=0),this.service.getCharacteristic("TargetPosition").setValue(this.targetPosition.value)}),this.targetMode=this.service.values.On,this.loadTargetPosition()}handleAccessoryUpdate(){this.targetMode=this.service.values.On,this.targetPosition&&"TargetPosition"in this.service.values&&(this.targetPosition.value=this.service.getCharacteristic("TargetPosition").value)}onTargetPositionChange(){this.targetPositionChanged.next(this.targetPosition.value)}loadTargetPosition(){let t=this.service.getCharacteristic("TargetPosition");t&&(this.targetPosition={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:34,vars:34,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"d-flex","justify-content-center","mb-0","p-0"],[1,"mb-0","mx-0","p-3","btn-read","w-100"],[1,"mt-4"],[1,"mb-1",3,"ngModelChange","min","max","step","ngModel"],[1,"d-flex","justify-content-between","align-items-center","mt-0","mb-1"],[1,"grey-text","small"],[1,"mb-1",3,"ngModelChange","min","max","step","disabled","ngModel"],[1,"modal-footer"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5)(7,"div",6),h(8,Kd,2,1)(9,qd,2,3)(10,Zd,2,3),l()(),a(11,"h6",7),d(12),s(13,"translate"),l(),a(14,"nouislider",8),q("ngModelChange",function(v){return K(i.targetPosition.value,v)||(i.targetPosition.value=v),v}),S("ngModelChange",function(){return i.onTargetPositionChange()}),l(),a(15,"div",9)(16,"span",10),d(17),s(18,"translate"),l(),a(19,"span",10),d(20),s(21,"translate"),l()(),a(22,"h6",7),d(23),s(24,"translate"),l(),a(25,"nouislider",11),q("ngModelChange",function(v){return K(i.service.getCharacteristic("CurrentPosition").value,v)||(i.service.getCharacteristic("CurrentPosition").value=v),v}),l(),a(26,"div",9)(27,"span",10),d(28),s(29,"translate"),l(),a(30,"span",10),d(31),s(32,"translate"),l()()(),u(33,"div",12),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,20,"form.button_close")),n(5),C(i.service.values.PositionState===2?8:i.service.values.PositionState===1?9:i.service.values.PositionState===0?10:-1),n(4),N("",c(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),n(2),T("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),z("ngModel",i.targetPosition.value),n(3),f(c(18,24,"accessories.control.closed")),n(3),f(c(21,26,"accessories.control.open")),n(3),N(" ",c(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),n(2),T("min",0)("max",100)("step",1)("disabled",!0),z("ngModel",i.service.getCharacteristic("CurrentPosition").value),n(3),f(c(29,30,"accessories.control.closed")),n(3),f(c(32,32,"accessories.control.open")))},dependencies:[le,oe,ae,se,M],encapsulation:2,changeDetection:0})}return e})();function Yd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.closed")," ")}function Qd(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.values.CurrentPosition,"% ")}}function Jd(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.open")," ")}function Xd(e,r){if(e&1&&(a(0,"div",12),h(1,Yd,2,3),h(2,Qd,2,4),h(3,Jd,2,3),l()),e&2){let t=m();n(),C(t.service.values.CurrentPosition===0?1:-1),n(),C(t.service.values.CurrentPosition>0&&t.service.values.CurrentPosition<100?2:-1),n(),C(t.service.values.CurrentPosition===100?3:-1)}}function ep(e,r){e&1&&(a(0,"div",13),d(1),s(2,"translate"),l()),e&2&&(n(),g("",c(2,1,"accessories.control.opening"),"..."))}function tp(e,r){e&1&&(a(0,"div",13),d(1),s(2,"translate"),l()),e&2&&(n(),g("",c(2,1,"accessories.control.closing"),"..."))}var Zo=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&(this.service.values.TargetPosition?this.service.getCharacteristic("TargetPosition").setValue(0):this.service.getCharacteristic("TargetPosition").setValue(100))}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(qo,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-window"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:17,vars:7,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","0.8","width","30","height","30.2","rx","0.5","stroke","#7f7f7f","fill","none","stroke-width","1.5"],["x","2.8","y","2.6","width","12.4","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1",1,"outline-left"],["x","3.66","y","15.65","width","10.68","height","0.5","stroke","#7f7f7f","fill","none","stroke-width","0.5","ry","2",1,"divider-left"],["x","15.16","y","13.6","width","0.1","height","4.6","stroke","#1976d2","fill","none","stroke-width","0.5","ry","2",1,"handle-left"],["x","16.8","y","2.6","width","12.4","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1",1,"outline-right"],["x","17.66","y","15.65","width","10.68","height","0.5","stroke","#7f7f7f","fill","none","stroke-width","0.5","ry","2",1,"divider-right"],["x","16.76","y","13.6","width","0.1","height","4.6","stroke","#1976d2","fill","none","stroke-width","0.5","ry","2",1,"handle-right"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","red-text"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"rect",8)(10,"rect",9)(11,"rect",10),l()(),P(),a(12,"div",11),d(13),l(),h(14,Xd,4,3,"div",12)(15,ep,3,3,"div",13)(16,tp,3,3,"div",13),l()()),o&2&&(R("accessory-on",i.service.values.CurrentPosition),n(2),x("aria-label",c(3,5,"accessories.core.window")),n(11),f(i.service.customName||i.service.serviceName),n(),C(i.service.values.PositionState===2?14:i.service.values.PositionState===1?15:i.service.values.PositionState===0?16:-1))},dependencies:[Y,M],styles:["svg .outline-left{x:2.8px;width:12.4px} svg .divider-left{x:3.66px;width:10.68px} svg .handle-left{x:15.16px;width:.1px} svg .outline-right{x:16.8px;width:12.4px} svg .divider-right{x:17.66px;width:10.68px} svg .handle-right{x:16.76px;width:.1px} .accessory-on svg .outline-left{x:2.8px;width:2.4px} .accessory-on svg .divider-left{x:3.66px;width:.68px} .accessory-on svg .handle-left{x:5.16px;width:.1px} .accessory-on svg .outline-right{x:26.8px;width:2.4px} .accessory-on svg .divider-right{x:27.66px;width:.68px} .accessory-on svg .handle-right{x:26.76px;width:.1px}"]})}return e})();var Lt={OnOffLight:"OnOffLight",OnOffLightSwitch:"OnOffLightSwitch",OnOffPlugInUnit:"OnOffPlugInUnit",DimmableLight:"DimmableLight",ColorTemperatureLight:"ColorTemperatureLight",ExtendedColorLight:"ExtendedColorLight",RoboticVacuumCleaner:"RoboticVacuumCleaner",ContactSensor:"ContactSensor",OccupancySensor:"OccupancySensor",LightSensor:"LightSensor",TemperatureSensor:"TemperatureSensor",HumiditySensor:"HumiditySensor",SmokeCoAlarm:"SmokeCoAlarm",WaterLeakDetector:"WaterLeakDetector",AirQualitySensor:"AirQualitySensor",DoorLock:"DoorLock",WindowCovering:"WindowCovering",Door:"Door",Window:"Window",Fan:"Fan",Thermostat:"Thermostat"},Ve=(function(e){return e[e.Stopped=0]="Stopped",e[e.Running=1]="Running",e[e.Paused=2]="Paused",e[e.Error=3]="Error",e[e.SeekingCharger=64]="SeekingCharger",e[e.Charging=65]="Charging",e[e.Docked=66]="Docked",e})(Ve||{}),bi=(function(e){return e[e.Idle=0]="Idle",e[e.Cleaning=1]="Cleaning",e})(bi||{}),Ae={Min:0,Max:254},ht={MinMired:147,MaxMired:500};function Yo(e){return e.deviceType===Lt.OnOffLight||e.deviceType===Lt.OnOffLightSwitch||e.deviceType===Lt.OnOffPlugInUnit}function Bi(e){return e.deviceType===Lt.RoboticVacuumCleaner}function Mi(e){return e.clusters?.rvcOperationalState?.operationalState??Ve.Stopped}function ip(e){let r=Mi(e);return r===Ve.Running||r===Ve.Paused}function np(e){let r=Mi(e);if(r===Ve.Running){let t=e.getCluster?.("rvcOperationalState");t&&t.setAttributes({operationalState:Ve.Paused}).catch(o=>{console.error("Failed to pause Matter robotic vacuum:",o)})}else if(r===Ve.Paused){let t=e.getCluster?.("rvcOperationalState");t&&t.setAttributes({operationalState:Ve.Running}).catch(o=>{console.error("Failed to resume Matter robotic vacuum:",o)})}else{let t=e.getCluster?.("rvcRunMode");t?t.setAttributes({currentMode:bi.Cleaning}).catch(o=>{console.error("Failed to start Matter robotic vacuum:",o)}):console.error("RvcRunMode cluster not found")}}function op(e){let t=!(e.clusters?.onOff?.onOff??!1),o=e.getCluster?.("onOff");o&&o.setAttributes({onOff:t}).catch(i=>{console.error("Failed to control Matter device:",i)})}function Re(e){return e.clusters?.onOff?.onOff??!1}function rp(e){return e.clusters?.levelControl!==void 0}function Ne(e){if(Bi(e))return ip(e);if(rp(e)){let r=Re(e),t=Ge(e)>0;return r&&t}return Re(e)}function ot(e){Bi(e)?np(e):op(e)}function ap(e){switch(Mi(e)){case Ve.Running:return"accessories.control.cleaning";case Ve.Paused:return"accessories.control.paused";case Ve.SeekingCharger:return"Seeking Charger";case Ve.Charging:return"Charging";case Ve.Docked:return"Docked";case Ve.Stopped:default:return"accessories.control.stopped"}}function sp(e){return Re(e)?"accessories.control.on":"accessories.control.off"}function Qo(e){return Bi(e)?ap(e):sp(e)}function Ge(e){return e.clusters?.levelControl?.currentLevel??Ae.Min}function Ct(e){let r=Ge(e);return Math.round(r/Ae.Max*100)}function _t(e){return Math.round(e/Ae.Max*100)}function xt(e){let r=Ge(e);if(Re(e)){let o=e.getCluster?.("onOff");o&&o.setAttributes({onOff:!1}).catch(i=>{console.error("Failed to turn Matter light off:",i)})}else{let o=r||Ae.Max,i=e.getCluster?.("levelControl");i&&i.setAttributes({currentLevel:o}).catch(p=>{console.error("Failed to turn Matter light on:",p)})}}function yt(e){return e.clusters?.colorControl?.colorTemperatureMireds??250}function Jo(e){return e.clusters?.colorControl?.colorTemperatureMireds!==void 0}function Vt(e){return e.clusters?.colorControl?.currentHue??0}function Ft(e){return e.clusters?.colorControl?.currentSaturation??0}function Xo(e){return!(e.clusters?.booleanState?.stateValue??!1)}function er(e){return e.clusters?.occupancySensing?.occupancy?.occupied??!1}function tr(e){let r=e.clusters?.illuminanceMeasurement?.measuredValue??0;return r===0||r===null?0:10**((r-1)/1e4)}function ir(e){let r=e.clusters?.temperatureMeasurement?.measuredValue;return r==null?null:r/100}function nr(e){let r=e.clusters?.relativeHumidityMeasurement?.measuredValue;return r==null?null:r/100}function lp(e){return e.clusters?.smokeCoAlarm?.smokeState??0}function cp(e){return e.clusters?.smokeCoAlarm?.coState??0}function or(e){let r=lp(e),t=cp(e);return r>0||t>0}function rr(e){return e.clusters?.booleanState?.stateValue??!1}function ar(e){return e.clusters?.airQuality?.airQuality??0}function St(e){return e.clusters?.doorLock?.lockState??1}function sr(e){let r=St(e),t=e.getCluster?.("doorLock");if(!t){console.error("Door lock cluster not found");return}r===1?t.setAttributes({lockState:2}).catch(o=>{console.error("Failed to unlock door:",o)}):t.setAttributes({lockState:1}).catch(o=>{console.error("Failed to lock door:",o)})}function lr(e,r){let t=e.getCluster?.("doorLock");if(!t){console.error("Door lock cluster not found");return}let o=r?1:2;t.setAttributes({lockState:o}).catch(i=>{console.error("Failed to set door lock state:",i)})}function dp(e){return e.clusters?.windowCovering?.currentPositionLiftPercent100ths??0}function pp(e){return Math.round(100-e/100)}function mp(e){return Math.round((100-e)*100)}function mt(e){let r=dp(e);return pp(r)}function Xt(e,r){let t=e.getCluster?.("windowCovering");if(!t){console.error("Window covering cluster not found");return}let o=mp(r);t.setAttributes({targetPositionLiftPercent100ths:o}).catch(i=>{console.error("Failed to set window covering position:",i)})}function cr(e){mt(e)>50?Xt(e,0):Xt(e,100)}function up(e){return e.clusters?.fanControl?.fanMode??0}function kt(e){return e.clusters?.fanControl?.percentSetting??0}function Tt(e){let r=up(e),t=kt(e);return r>0||t>0}function dr(e){let r=Tt(e),t=e.getCluster?.("fanControl");if(!t){console.error("Fan control cluster not found");return}r?t.setAttributes({percentSetting:0}).catch(o=>{console.error("Failed to turn fan off:",o)}):t.setAttributes({percentSetting:100}).catch(o=>{console.error("Failed to turn fan on:",o)})}function ei(e,r){let t=e.getCluster?.("fanControl");if(!t){console.error("Fan control cluster not found");return}t.setAttributes({percentSetting:r}).catch(o=>{console.error("Failed to set fan speed:",o)})}function ti(e){let r=e.clusters?.thermostat?.externalMeasuredIndoorTemperature;return r==null?null:r/100}function bt(e){return e.clusters?.thermostat?.systemMode??0}function wi(e){return(e.clusters?.thermostat?.occupiedHeatingSetpoint??2e3)/100}function Ei(e){return(e.clusters?.thermostat?.occupiedCoolingSetpoint??2400)/100}function pr(e){return bt(e)>0}function mr(e,r){let t=e.getCluster?.("thermostat");if(!t){console.error("Thermostat cluster not found");return}t.setAttributes({systemMode:r}).catch(o=>{console.error("Failed to set thermostat system mode:",o)})}function Ai(e,r){let t=e.getCluster?.("thermostat");if(!t){console.error("Thermostat cluster not found");return}let o=Math.round(r*100);t.setAttributes({occupiedHeatingSetpoint:o}).catch(i=>{console.error("Failed to set heating setpoint:",i)})}function Ii(e,r){let t=e.getCluster?.("thermostat");if(!t){console.error("Thermostat cluster not found");return}let o=Math.round(r*100);t.setAttributes({occupiedCoolingSetpoint:o}).catch(i=>{console.error("Failed to set cooling setpoint:",i)})}var fp=()=>[3,4],vp=()=>[1,2],gp=(e,r,t,o)=>({"accessory-on":e,"fill-red":r,"fill-orange":t,"fill-green":o}),hp=(e,r)=>({"grey-text":e,"red-text":r}),ur=(()=>{class e{service;labels=["Unknown","Good","Fair","Moderate","Poor","Very Poor","Extremely Poor"];get airQuality(){return ar(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-air-quality-sensor"]],inputs:{service:"service"},decls:25,vars:19,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["transform","translate(5.1, 3) scale(0.68)"],["fill","#7f7f7f","d","M10.1435881,25.4905179 C10.286009,26.7050605 10.531254,27.9706077 10.8919121,29.2887103 C6.25942062,27.4175104 3.57173247,24.180341 2.39781526,19.889403 C1.54190101,16.760839 1.56931096,13.3702525 2.13724518,10.1783222 C2.1501971,10.1055292 2.17646546,9.96330988 2.17646546,9.96330988 C2.17646546,9.96330988 2.33770347,10.0208429 2.92620872,10.2769757 C4.60998953,11.0098007 6.29364519,11.9318703 7.85704035,13.0517448 C9.19214306,14.0080913 10.3087445,15.0188915 11.223018,16.0899229 L11.223018,16.0899229 C10.426841,18.1910249 9.96797687,20.5297906 9.99206994,23.1241613 L5.43414987,14.7605739 C5.30203551,14.5181498 4.99858593,14.4288208 4.75637627,14.5610522 C4.51416661,14.6932836 4.42491674,14.9970019 4.5570311,15.2394261 L10.1435881,25.4905179 Z M13.0333542,29.4136738 C10.9912074,19.9059085 11.088992,14.922477 21.5133004,6.73565972 C23.6127007,5.0868782 25.9746706,4.01306759 28.2881453,3.03596757 C29.0967374,2.69445726 29.3182746,2.61774651 29.3182746,2.61774651 C29.3182746,2.61774651 29.3543667,2.80737221 29.3721623,2.90442957 C30.1524904,7.1603367 30.190151,11.6811187 29.0141452,15.8525373 C27.1508473,22.4618551 22.5118613,27.1961122 14.1841552,29.413553 L25.4116309,9.74806947 C25.5485147,9.50831075 25.46529,9.20288341 25.2257434,9.06587843 C24.9861969,8.92887344 24.6810398,9.01217181 24.544156,9.25193053 L13.0333542,29.4136738 Z M13.4880693,32 C38.9655056,25.5 30.755735,0 30.755735,0 C30.755735,0 17.0308715,3.72274828 11.9893965,14.5 C7.99293593,9 0.873098889,8 0.873098889,8 C-3.99644586,30.5 13.4880693,32 13.4880693,32 Z",1,"leaves"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"g",5),I(7,"path",6),k(),I(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19),k()(),P(),y(21,"div",20),d(22),k(),y(23,"div",21),d(24),k()()()),o&2&&(A(gt(11,gp,i.airQuality===5,i.airQuality===5,xe(9,fp).includes(i.airQuality),xe(10,vp).includes(i.airQuality))),n(2),x("aria-label",c(3,7,"accessories.core.air_quality_sensor")),n(20),f(i.service.customName||i.service.displayName),n(),A(F(16,hp,i.airQuality<5,i.airQuality===5)),n(),g(" ",i.labels[i.airQuality||0]," "))},dependencies:[M],styles:[".fill-red svg .leaves{fill:#d32f2f!important;fill-opacity:.5!important} .fill-orange svg .leaves{fill:#ff9800!important;fill-opacity:.5!important} .fill-green svg .leaves{fill:#4caf50!important;fill-opacity:.5!important}"]})}return e})();var fr=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),vr=(()=>{class e extends ne{$colour=D(Ye);targetMode;targetBrightness;targetBrightnessChanged=new J;targetColorTemperature;targetColorTemperatureChanged=new J;sliderIndex=0;setupComponent(){this.createDebouncedSubscription(this.targetBrightnessChanged,()=>{if(this.targetBrightness.value===Ae.Min){let t=this.service.getCluster?.("onOff");t&&t.setAttributes({onOff:!1}).catch(o=>{console.error("Failed to turn Matter light off:",o)})}else{let t=this.service.getCluster?.("levelControl");t&&t.setAttributes({currentLevel:this.targetBrightness.value}).catch(o=>{console.error("Failed to set Matter light brightness:",o)})}this.targetMode=this.targetBrightness.value>0},300),this.createDebouncedSubscription(this.targetColorTemperatureChanged,t=>{let o=this.service.getCluster?.("colorControl");o&&o.setAttributes({colorTemperatureMireds:t}).catch(i=>{console.error("Failed to set Matter light color temperature:",i)})},300),this.targetMode=Re(this.service),this.loadTargetBrightness(),this.loadTargetColorTemperature()}handleAccessoryUpdate(){this.targetMode=Re(this.service),this.targetBrightness.value=Ge(this.service);let t=yt(this.service);this.targetColorTemperature.mired=t,this.targetColorTemperature.value=this.$colour.miredToKelvin(t)}setTargetMode(t,o){if(this.targetMode=t,t){let i=this.targetBrightness.value||this.targetBrightness.max;this.targetBrightness.value=i;let p=this.service.getCluster?.("levelControl");p&&p.setAttributes({currentLevel:i}).catch(v=>{console.error("Failed to turn Matter light on:",v)})}else{let i=this.service.getCluster?.("onOff");i&&i.setAttributes({onOff:!1}).catch(p=>{console.error("Failed to turn Matter light off:",p)})}this.blurTarget(o)}onBrightnessStateChange(){this.targetBrightnessChanged.next(this.targetBrightness.value)}onColorTemperatureStateChange(){let t=this.$colour.kelvinToMired(this.targetColorTemperature.value);this.targetColorTemperature.mired=t,this.targetColorTemperatureChanged.next(t)}loadTargetBrightness(){let t=Ge(this.service);this.targetBrightness={value:t,min:Ae.Min,max:Ae.Max,step:1},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)",`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.sliderIndex+=1}loadTargetColorTemperature(){let t=yt(this.service);this.targetColorTemperature={value:this.$colour.miredToKelvin(t),mired:t,min:this.$colour.miredToKelvin(ht.MaxMired),max:this.$colour.miredToKelvin(ht.MinMired),step:10};let o=this.$colour.kelvinToHsl(this.targetColorTemperature.min),i=this.$colour.kelvinToHsl(this.targetColorTemperature.max);this.applySliderGradient(`linear-gradient(to right, ${o}, ${i})`,`.noUi-target:nth-of-type(${this.sliderIndex+1})`)}get brightnessPercentage(){return _t(this.targetBrightness.value)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:32,vars:41,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"mt-4"],[3,"ngModelChange","min","max","step","ngModel"],[1,"modal-footer"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5),s(7,"translate"),a(8,"button",6),S("click",function(v){return i.setTargetMode(!1,v)}),a(9,"div",7),u(10,"i",8),l(),d(11),s(12,"translate"),a(13,"div",9),u(14,"i",10),l()(),a(15,"button",6),S("click",function(v){return i.setTargetMode(!0,v)}),a(16,"div",7),u(17,"i",8),l(),d(18),s(19,"translate"),a(20,"div",9),u(21,"i",10),l()()(),a(22,"h6",11),d(23),s(24,"translate"),l(),a(25,"nouislider",12),q("ngModelChange",function(v){return K(i.targetBrightness.value,v)||(i.targetBrightness.value=v),v}),S("ngModelChange",function(){return i.onBrightnessStateChange()}),l(),a(26,"h6",11),d(27),s(28,"translate"),s(29,"convertMired"),l(),a(30,"nouislider",12),q("ngModelChange",function(v){return K(i.targetColorTemperature.value,v)||(i.targetColorTemperature.value=v),v}),S("ngModelChange",function(){return i.onColorTemperatureStateChange()}),l()(),u(31,"div",13),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),n(),x("aria-label",c(4,21,"form.button_close")),n(3),x("aria-label",c(7,23,"accessories.control.mode_control")),n(4),A(F(35,fr,!i.targetMode,i.targetMode)),n(),g(" ",c(12,25,"accessories.control.off")," "),n(6),A(F(38,fr,i.targetMode,!i.targetMode)),n(),g(" ",c(19,27,"accessories.control.on")," "),n(5),N("",c(24,29,"accessories.control.brightness"),": ",i.brightnessPercentage,"%"),n(2),T("min",i.targetBrightness.min)("max",i.targetBrightness.max)("step",i.targetBrightness.step),z("ngModel",i.targetBrightness.value),n(2),N(" ",c(28,31,"accessories.control.color_temperature"),": ",c(29,33,i.targetColorTemperature.mired)," "),n(3),T("min",i.targetColorTemperature.min)("max",i.targetColorTemperature.max)("step",i.targetColorTemperature.step),z("ngModel",i.targetColorTemperature.value))},dependencies:[oe,ae,se,le,M,it],encapsulation:2,changeDetection:0})}return e})();var gr=(()=>{class e{$accessories=D(ee);$modal=D(Q);$colour=D(Ye);service;readyForControl=!1;onClick(){this.readyForControl&&xt(this.service)}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(vr,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}get isOn(){return Ne(this.service)}get brightness(){return Ct(this.service)}kelvinToHex(t){t=Math.max(1e3,Math.min(4e4,t));let o=t/100,i,p,v;return o<=66?(i=255,p=o,p=99.4708025861*Math.log(p)-161.1195681661,v=o<=19?0:138.5177312231*Math.log(o-10)-305.0447927307):(i=329.698727446*(o-60)**-.1332047592,p=288.1221695283*(o-60)**-.0755148492,v=255),i=Math.round(Math.min(Math.max(i,0),255)),p=Math.round(Math.min(Math.max(p,0),255)),v=Math.round(Math.min(Math.max(v,0),255)),`#${i.toString(16).padStart(2,"0")}${p.toString(16).padStart(2,"0")}${v.toString(16).padStart(2,"0")}`}Math=Math;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-color-temperature-light"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:14,vars:11,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["stroke","#7f7f7f","stroke-width","1.5","d","M8 21c-2.8-2.2-4.5-5.4-4.5-9 0-6.1 5-11 11.5-11S27.5 5.9 27.5 12c0 3.5-1.7 6.7-4.5 8.9-1.2 1-1.8 4.8-3 7.3-.9 2-2.2 2.7-4.5 2.7s-3.6-.7-4.5-2.7c-1.2-2.5-1.8-6.3-3-7.3z"],["stroke","#7f7f7f","stroke-width","1.5","x1","8","y1","21.5","x2","23","y2","21.5"],["stroke","#7f7f7f","stroke-width","0.75","x1","10","y1","23","x2","21","y2","24"],["stroke","#7f7f7f","stroke-width","0.75","x1","10","y1","25.5","x2","21","y2","26.5"],["stroke","#7f7f7f","stroke-width","0.75","x1","11","y1","28","x2","20","y2","29"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerHTML"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"path",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8),l()(),P(),a(10,"div",9),d(11),l(),u(12,"div",10),s(13,"translate"),l()()),o&2&&(R("accessory-on",i.isOn),n(2),x("aria-label",c(3,7,"accessories.core.lightbulb")),n(3),x("fill",i.isOn?i.kelvinToHex(i.$colour.miredToKelvin((i.service.clusters==null||i.service.clusters.colorControl==null?null:i.service.clusters.colorControl.colorTemperatureMireds)||250)):"none")("fill-opacity",.25+i.brightness/100*.5),n(6),f(i.service.customName||i.service.serviceName||i.service.displayName),n(),T("innerHTML",i.isOn?i.brightness+"%":c(13,9,"accessories.control.off"),Pe))},dependencies:[Y,M],encapsulation:2})}return e})();function Cp(e,r){e&1&&(y(0,"div",9),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.open")))}function _p(e,r){e&1&&(y(0,"div",10),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.closed")))}var hr=(()=>{class e{service;get isOpen(){return Xo(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-contact-sensor"]],inputs:{service:"service"},decls:13,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","15","height","30","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.5",1,"left-object"],["x","16","y","1","width","15","height","30","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.5",1,"right-object"],["x","10","y","11","width","6","height","10","rx","1","stroke","#7f7f7f","fill","#4caf50","fill-opacity","0.5","stroke-width","0.5",1,"left-sensor"],["x","16","y","11","width","6","height","10","rx","1","stroke","#7f7f7f","fill","#4caf50","fill-opacity","0.5","stroke-width","0.5",1,"right-sensor"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7),k()(),P(),y(9,"div",8),d(10),k(),h(11,Cp,3,3,"div",9)(12,_p,3,3,"div",10),k()()),o&2&&(R("accessory-on",i.isOpen),n(2),x("aria-label",c(3,5,"accessories.core.contact_sensor")),n(8),f(i.service.customName||i.service.serviceName),n(),C(i.isOpen?11:12))},dependencies:[M],styles:[".accessory-on svg .left-sensor{fill:#ff9800;fill-opacity:.5} .accessory-on svg .right-object{x:24px} .accessory-on svg .right-sensor{x:24px;fill:#ff9800;fill-opacity:.5}"]})}return e})();var Cr=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),_r=(()=>{class e extends ne{targetMode;targetBrightness;targetBrightnessChanged=new J;setupComponent(){this.createDebouncedSubscription(this.targetBrightnessChanged,()=>{if(this.targetBrightness.value===Ae.Min){let t=this.service.getCluster?.("onOff");t&&t.setAttributes({onOff:!1}).catch(o=>{console.error("Failed to turn Matter light off:",o)})}else{let t=this.service.getCluster?.("levelControl");t&&t.setAttributes({currentLevel:this.targetBrightness.value}).catch(o=>{console.error("Failed to set Matter light brightness:",o)})}this.targetMode=this.targetBrightness.value>0},300),this.targetMode=Re(this.service),this.loadTargetBrightness()}handleAccessoryUpdate(){this.targetMode=Re(this.service),this.targetBrightness.value=Ge(this.service)}setTargetMode(t,o){if(this.targetMode=t,t){let i=this.targetBrightness.value||this.targetBrightness.max;this.targetBrightness.value=i;let p=this.service.getCluster?.("levelControl");p&&p.setAttributes({currentLevel:i}).catch(v=>{console.error("Failed to turn Matter light on:",v)})}else{let i=this.service.getCluster?.("onOff");i&&i.setAttributes({onOff:!1}).catch(p=>{console.error("Failed to turn Matter light off:",p)})}this.blurTarget(o)}onBrightnessStateChange(){this.targetBrightnessChanged.next(this.targetBrightness.value)}loadTargetBrightness(){let t=Ge(this.service);this.targetBrightness={value:t,min:Ae.Min,max:Ae.Max,step:1},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)")}get brightnessPercentage(){return _t(this.targetBrightness.value)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:27,vars:31,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"mt-4"],[3,"ngModelChange","min","max","step","ngModel"],[1,"modal-footer"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5),s(7,"translate"),a(8,"button",6),S("click",function(v){return i.setTargetMode(!1,v)}),a(9,"div",7),u(10,"i",8),l(),d(11),s(12,"translate"),a(13,"div",9),u(14,"i",10),l()(),a(15,"button",6),S("click",function(v){return i.setTargetMode(!0,v)}),a(16,"div",7),u(17,"i",8),l(),d(18),s(19,"translate"),a(20,"div",9),u(21,"i",10),l()()(),a(22,"h6",11),d(23),s(24,"translate"),l(),a(25,"nouislider",12),q("ngModelChange",function(v){return K(i.targetBrightness.value,v)||(i.targetBrightness.value=v),v}),S("ngModelChange",function(){return i.onBrightnessStateChange()}),l()(),u(26,"div",13),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),n(),x("aria-label",c(4,15,"form.button_close")),n(3),x("aria-label",c(7,17,"accessories.control.mode_control")),n(4),A(F(25,Cr,!i.targetMode,i.targetMode)),n(),g(" ",c(12,19,"accessories.control.off")," "),n(6),A(F(28,Cr,i.targetMode,!i.targetMode)),n(),g(" ",c(19,21,"accessories.control.on")," "),n(5),N("",c(24,23,"accessories.control.brightness"),": ",i.brightnessPercentage,"%"),n(2),T("min",i.targetBrightness.min)("max",i.targetBrightness.max)("step",i.targetBrightness.step),z("ngModel",i.targetBrightness.value))},dependencies:[oe,ae,se,le,M],encapsulation:2,changeDetection:0})}return e})();var xr=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&xt(this.service)}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(_r,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}get isOn(){return Ne(this.service)}get brightness(){return Ct(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-dimmable-light"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:14,vars:11,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["stroke","#7f7f7f","stroke-width","1.5","d","M8 21c-2.8-2.2-4.5-5.4-4.5-9 0-6.1 5-11 11.5-11S27.5 5.9 27.5 12c0 3.5-1.7 6.7-4.5 8.9-1.2 1-1.8 4.8-3 7.3-.9 2-2.2 2.7-4.5 2.7s-3.6-.7-4.5-2.7c-1.2-2.5-1.8-6.3-3-7.3z"],["stroke","#7f7f7f","stroke-width","1.5","x1","8","y1","21.5","x2","23","y2","21.5"],["stroke","#7f7f7f","stroke-width","0.75","x1","10","y1","23","x2","21","y2","24"],["stroke","#7f7f7f","stroke-width","0.75","x1","10","y1","25.5","x2","21","y2","26.5"],["stroke","#7f7f7f","stroke-width","0.75","x1","11","y1","28","x2","20","y2","29"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerHTML"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"path",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8),l()(),P(),a(10,"div",9),d(11),l(),u(12,"div",10),s(13,"translate"),l()()),o&2&&(R("accessory-on",i.isOn),n(2),x("aria-label",c(3,7,"accessories.core.lightbulb")),n(3),x("fill",i.isOn?"#ffcf55":"none")("fill-opacity",.25+i.brightness/100*.5),n(6),f(i.service.customName||i.service.serviceName||i.service.displayName),n(),T("innerHTML",i.isOn?i.brightness+"%":c(13,9,"accessories.control.off"),Pe))},dependencies:[Y,M],encapsulation:2})}return e})();var yr=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),Sr=(()=>{class e extends ne{targetMode;setupComponent(){this.targetMode=St(this.service)}handleAccessoryUpdate(){this.targetMode=St(this.service)}setTargetMode(t,o){this.targetMode=t;let i=t===1;lr(this.service,i),this.blurTarget(o)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:23,vars:23,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1),I(2,"h5",2),y(3,"button",3),s(4,"translate"),ve("click",function(){return i.dismissModal()}),k()(),y(5,"div",4)(6,"div",5),s(7,"translate"),y(8,"button",6),ve("click",function(v){return i.setTargetMode(1,v)}),y(9,"div",7),I(10,"i",8),k(),d(11),s(12,"translate"),y(13,"div",9),I(14,"i",10),k()(),y(15,"button",6),ve("click",function(v){return i.setTargetMode(2,v)}),y(16,"div",7),I(17,"i",8),k(),d(18),s(19,"translate"),y(20,"div",9),I(21,"i",10),k()()()(),I(22,"div",11),k()),o&2&&(n(2),Oe("innerText",i.service.customName||i.service.serviceName||i.service.displayName),n(),x("aria-label",c(4,9,"form.button_close")),n(3),x("aria-label",c(7,11,"accessories.control.mode_control")),n(4),A(F(17,yr,i.targetMode===1,i.targetMode!==1)),n(),g(" ",c(12,13,"accessories.control.locked")," "),n(6),A(F(20,yr,i.targetMode===2,i.targetMode!==2)),n(),g(" ",c(19,15,"accessories.control.unlocked")," "))},dependencies:[M],encapsulation:2,changeDetection:0})}return e})();var xp=(e,r,t)=>({"accessory-on":e,unlocked:r,jammed:t});function yp(e,r){e&1&&(a(0,"div",9),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.locked")))}function Sp(e,r){e&1&&(a(0,"div",10),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.unlocked")))}function kp(e,r){e&1&&(a(0,"div",10),d(1),s(2,"translate"),l()),e&2&&(n(),f(c(2,1,"accessories.control.jammed")))}var kr=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&sr(this.service)}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(Sr,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}get lockState(){return St(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-door-lock"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:14,vars:11,consts:[["tabindex","0",1,"accessory-box",3,"shortClick","longClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["d","M8 16 C6 -4, 26 -4, 24 16","fill","none","stroke","#7f7f7f","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"shackle-locked"],["d","M8 16 C6 -2, 22 -2, 24 7","fill","none","stroke","#7f7f7f","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","stroke-opacity","0",1,"shackle-unlocked"],["x","5","y","16","width","22","height","15","rx","3","fill","none","stroke","#7f7f7f","stroke-width","2"],["cx","16","cy","23.5","r","3","stroke","#7f7f7f","stroke-width","0.5","fill","#4caf50","fill-opacity","0.5",1,"keyhole"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","red-text"]],template:function(o,i){o&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()})("longClick",function(){return i.onLongClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"path",4)(6,"path",5)(7,"rect",6)(8,"circle",7),l()(),P(),a(9,"div",8),d(10),l(),h(11,yp,3,3,"div",9)(12,Sp,3,3,"div",10)(13,kp,3,3,"div",10),l()()),o&2&&(A(vt(7,xp,i.lockState!==1,i.lockState===2,i.lockState===0)),n(2),x("aria-label",c(3,5,"accessories.core.lock_mechanism")),n(8),f(i.service.customName||i.service.serviceName||i.service.displayName),n(),C(i.lockState===1?11:i.lockState===2?12:i.lockState===0?13:-1))},dependencies:[Y,M],styles:["@keyframes _ngcontent-%COMP%_blink{0%,to{fill-opacity:1}50%{fill-opacity:.2}} .unlocked svg .shackle-locked{stroke-opacity:0!important} .unlocked svg .shackle-unlocked{stroke-opacity:1!important} .unlocked svg .keyhole{fill:#ff9800!important} .jammed svg .shackle-locked{stroke-opacity:0!important} .jammed svg .shackle-unlocked{stroke-opacity:1!important} .jammed svg .keyhole{fill:#d32f2f!important;animation:_ngcontent-%COMP%_blink 1s infinite} .error svg .shackle-locked{stroke-opacity:0!important} .error svg .shackle-unlocked{stroke-opacity:1!important} .error svg .keyhole{fill:#d32f2f!important;animation:_ngcontent-%COMP%_blink 1s infinite}"]})}return e})();var Tr=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Tp(e,r){if(e&1){let t=$();a(0,"h6",11),d(1),s(2,"translate"),s(3,"convertMired"),l(),a(4,"nouislider",12),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetColorTemperature.value,i)||(p.targetColorTemperature.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onColorTemperatureStateChange())}),l()}if(e&2){let t=m();n(),N(" ",c(2,6,"accessories.control.color_temperature"),": ",c(3,8,t.targetColorTemperature.mired)," "),n(3),T("min",t.targetColorTemperature.min)("max",t.targetColorTemperature.max)("step",t.targetColorTemperature.step),z("ngModel",t.targetColorTemperature.value)}}var br=(()=>{class e extends ne{$colour=D(Ye);targetMode;targetBrightness;targetBrightnessChanged=new J;targetColorTemperature;targetColorTemperatureChanged=new J;targetHue;targetHueChanged=new J;targetSaturation;targetSaturationChanged=new J;sliderIndex=0;setupComponent(){this.createDebouncedSubscription(this.targetBrightnessChanged,()=>{if(this.targetBrightness.value===Ae.Min){let t=this.service.getCluster?.("onOff");t&&t.setAttributes({onOff:!1}).catch(o=>{console.error("Failed to turn Matter light off:",o)})}else{let t=this.service.getCluster?.("levelControl");t&&t.setAttributes({currentLevel:this.targetBrightness.value}).catch(o=>{console.error("Failed to set Matter light brightness:",o)})}this.targetMode=this.targetBrightness.value>0},300),this.createDebouncedSubscription(this.targetColorTemperatureChanged,t=>{let o=this.service.getCluster?.("colorControl");o&&o.setAttributes({colorTemperatureMireds:t}).catch(i=>{console.error("Failed to set Matter light color temperature:",i)})},300),this.createDebouncedSubscription(this.targetHueChanged,()=>{let t=this.service.getCluster?.("colorControl");t&&t.setAttributes({currentHue:this.targetHue.value,currentSaturation:this.targetSaturation.value}).catch(o=>{console.error("Failed to set Matter light hue:",o)})},300),this.createDebouncedSubscription(this.targetSaturationChanged,()=>{let t=this.service.getCluster?.("colorControl");t&&t.setAttributes({currentHue:this.targetHue.value,currentSaturation:this.targetSaturation.value}).catch(o=>{console.error("Failed to set Matter light saturation:",o)})},300),this.targetMode=Re(this.service),this.loadTargetBrightness(),this.supportsColorTemperature&&this.loadTargetColorTemperature(),this.loadTargetHueSaturation()}handleAccessoryUpdate(){if(this.targetMode=Re(this.service),this.targetBrightness.value=Ge(this.service),this.supportsColorTemperature){let o=yt(this.service);this.targetColorTemperature.mired=o,this.targetColorTemperature.value=this.$colour.miredToKelvin(o)}let t=Vt(this.service);this.targetHue.value!==t&&(this.targetHue.value=t,this.updateSaturationSliderGradient()),this.targetSaturation.value=Ft(this.service)}setTargetMode(t,o){if(this.targetMode=t,t){let i=this.targetBrightness.value||this.targetBrightness.max;this.targetBrightness.value=i;let p=this.service.getCluster?.("levelControl");p&&p.setAttributes({currentLevel:i}).catch(v=>{console.error("Failed to turn Matter light on:",v)})}else{let i=this.service.getCluster?.("onOff");i&&i.setAttributes({onOff:!1}).catch(p=>{console.error("Failed to turn Matter light off:",p)})}this.blurTarget(o)}onBrightnessStateChange(){this.targetBrightnessChanged.next(this.targetBrightness.value)}onColorTemperatureStateChange(){let t=this.$colour.kelvinToMired(this.targetColorTemperature.value);this.targetColorTemperature.mired=t,this.targetColorTemperatureChanged.next(t)}onHueStateChange(){this.targetHueChanged.next(this.targetHue.value),this.updateSaturationSliderGradient()}onSaturationStateChange(){this.targetSaturationChanged.next(this.targetSaturation.value)}loadTargetBrightness(){let t=Ge(this.service);this.targetBrightness={value:t,min:Ae.Min,max:Ae.Max,step:1},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)",`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.sliderIndex+=1}loadTargetColorTemperature(){let t=yt(this.service);this.targetColorTemperature={value:this.$colour.miredToKelvin(t),mired:t,min:this.$colour.miredToKelvin(ht.MaxMired),max:this.$colour.miredToKelvin(ht.MinMired),step:10};let o=this.$colour.kelvinToHsl(this.targetColorTemperature.min),i=this.$colour.kelvinToHsl(this.targetColorTemperature.max);this.applySliderGradient(`linear-gradient(to right, ${o}, ${i})`,`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.sliderIndex+=1}loadTargetHueSaturation(){let t=Vt(this.service),o=Ft(this.service);this.targetHue={value:t,min:0,max:254,step:1},this.targetSaturation={value:o,min:0,max:254,step:1},this.applySliderGradient("linear-gradient(to right, hsl(0, 100%, 50%), hsl(60, 100%, 50%), hsl(120, 100%, 50%), hsl(180, 100%, 50%), hsl(240, 100%, 50%), hsl(300, 100%, 50%), hsl(360, 100%, 50%))",`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.sliderIndex+=1;let i=t/254*360;this.applySliderGradient(`linear-gradient(to right, hsl(${i}, 0%, 50%), hsl(${i}, 100%, 50%))`,`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.sliderIndex+=1}get brightnessPercentage(){return _t(this.targetBrightness.value)}get huePercentage(){return Math.round(this.targetHue.value/254*100)}get saturationPercentage(){return Math.round(this.targetSaturation.value/254*100)}get previewColor(){let t=this.targetHue.value/254*360,o=this.targetSaturation.value/254*100;return`hsl(${t}, ${o}%, 50%)`}get supportsColorTemperature(){return Jo(this.service)}updateSaturationSliderGradient(){let t=this.supportsColorTemperature?3:2,o=this.targetHue.value/254*360;this.applySliderGradient(`linear-gradient(to right, hsl(${o}, 0%, 50%), hsl(${o}, 100%, 50%))`,`.noUi-target:nth-of-type(${t+1})`)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:36,vars:48,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"mt-4"],[3,"ngModelChange","min","max","step","ngModel"],[1,"mt-3"],[1,"modal-footer"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5),s(7,"translate"),a(8,"button",6),S("click",function(v){return i.setTargetMode(!1,v)}),a(9,"div",7),u(10,"i",8),l(),d(11),s(12,"translate"),a(13,"div",9),u(14,"i",10),l()(),a(15,"button",6),S("click",function(v){return i.setTargetMode(!0,v)}),a(16,"div",7),u(17,"i",8),l(),d(18),s(19,"translate"),a(20,"div",9),u(21,"i",10),l()()(),a(22,"h6",11),d(23),s(24,"translate"),l(),a(25,"nouislider",12),q("ngModelChange",function(v){return K(i.targetBrightness.value,v)||(i.targetBrightness.value=v),v}),S("ngModelChange",function(){return i.onBrightnessStateChange()}),l(),h(26,Tp,5,10),a(27,"h6",13),d(28),s(29,"translate"),l(),a(30,"nouislider",12),q("ngModelChange",function(v){return K(i.targetHue.value,v)||(i.targetHue.value=v),v}),S("ngModelChange",function(){return i.onHueStateChange()}),l(),a(31,"h6",13),d(32),s(33,"translate"),l(),a(34,"nouislider",12),q("ngModelChange",function(v){return K(i.targetSaturation.value,v)||(i.targetSaturation.value=v),v}),S("ngModelChange",function(){return i.onSaturationStateChange()}),l()(),u(35,"div",14),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),n(),x("aria-label",c(4,28,"form.button_close")),n(3),x("aria-label",c(7,30,"accessories.control.mode_control")),n(4),A(F(42,Tr,!i.targetMode,i.targetMode)),n(),g(" ",c(12,32,"accessories.control.off")," "),n(6),A(F(45,Tr,i.targetMode,!i.targetMode)),n(),g(" ",c(19,34,"accessories.control.on")," "),n(5),N("",c(24,36,"accessories.control.brightness"),": ",i.brightnessPercentage,"%"),n(2),T("min",i.targetBrightness.min)("max",i.targetBrightness.max)("step",i.targetBrightness.step),z("ngModel",i.targetBrightness.value),n(),C(i.supportsColorTemperature?26:-1),n(2),N("",c(29,38,"accessories.control.hue"),": ",i.huePercentage,"%"),n(2),T("min",i.targetHue.min)("max",i.targetHue.max)("step",i.targetHue.step),z("ngModel",i.targetHue.value),n(2),N("",c(33,40,"accessories.control.saturation"),": ",i.saturationPercentage,"%"),n(2),T("min",i.targetSaturation.min)("max",i.targetSaturation.max)("step",i.targetSaturation.step),z("ngModel",i.targetSaturation.value))},dependencies:[oe,ae,se,le,M,it],encapsulation:2,changeDetection:0})}return e})();var Br=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&xt(this.service)}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(br,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}get isOn(){return Ne(this.service)}get brightness(){return Ct(this.service)}get lightColor(){let t=Vt(this.service),o=Ft(this.service),i=t/254*360,p=o/254*100;return`hsl(${i}, ${p}%, 50%)`}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-extended-color-light"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:14,vars:11,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["stroke","#7f7f7f","stroke-width","1.5","d","M8 21c-2.8-2.2-4.5-5.4-4.5-9 0-6.1 5-11 11.5-11S27.5 5.9 27.5 12c0 3.5-1.7 6.7-4.5 8.9-1.2 1-1.8 4.8-3 7.3-.9 2-2.2 2.7-4.5 2.7s-3.6-.7-4.5-2.7c-1.2-2.5-1.8-6.3-3-7.3z"],["stroke","#7f7f7f","stroke-width","1.5","x1","8","y1","21.5","x2","23","y2","21.5"],["stroke","#7f7f7f","stroke-width","0.75","x1","10","y1","23","x2","21","y2","24"],["stroke","#7f7f7f","stroke-width","0.75","x1","10","y1","25.5","x2","21","y2","26.5"],["stroke","#7f7f7f","stroke-width","0.75","x1","11","y1","28","x2","20","y2","29"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerHTML"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3),u(5,"path",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8),l()(),P(),a(10,"div",9),d(11),l(),u(12,"div",10),s(13,"translate"),l()()),o&2&&(R("accessory-on",i.isOn),n(2),x("aria-label",c(3,7,"accessories.core.lightbulb")),n(3),x("fill",i.isOn?i.lightColor:"none")("fill-opacity",.25+i.brightness/100*.5),n(6),f(i.service.customName||i.service.serviceName||i.service.displayName),n(),T("innerHTML",i.isOn?i.brightness+"%":c(13,9,"accessories.control.off"),Pe))},dependencies:[Y,M],encapsulation:2})}return e})();var Mr=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function bp(e,r){if(e&1){let t=$();a(0,"h6",12),d(1),s(2,"translate"),l(),a(3,"nouislider",13),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetSpeed.value,i)||(p.targetSpeed.value=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onTargetSpeedChange())}),l()}if(e&2){let t=m();n(),N("",c(2,6,"accessories.control.rotation_speed"),": ",t.targetSpeed.value,"%"),n(2),T("min",t.targetSpeed.min)("max",t.targetSpeed.max)("step",t.targetSpeed.step),z("ngModel",t.targetSpeed.value)}}var wr=(()=>{class e extends ne{targetMode;targetSpeed;targetSpeedChanged=new J;setupComponent(){this.createDebouncedSubscription(this.targetSpeedChanged,()=>ei(this.service,this.targetSpeed.value)),this.targetMode=Tt(this.service),this.loadSpeed()}handleAccessoryUpdate(){this.targetMode=Tt(this.service),this.targetSpeed&&(this.targetSpeed.value=kt(this.service))}setTargetMode(t,o){if(this.targetMode=t,t){let i=this.targetSpeed.value||100;ei(this.service,i),this.targetSpeed.value=i}else ei(this.service,0),this.targetSpeed.value=0;this.blurTarget(o)}onTargetSpeedChange(){this.targetSpeedChanged.next(this.targetSpeed.value),this.targetMode=this.targetSpeed.value>0}loadSpeed(){this.targetSpeed={value:kt(this.service),min:0,max:100,step:1},this.applySliderGradient("linear-gradient(to right, #add8e6, #416bdf)")}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:24,vars:24,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5),s(7,"translate"),a(8,"button",6),S("click",function(v){return i.setTargetMode(!1,v)}),a(9,"div",7),u(10,"i",8),l(),d(11),s(12,"translate"),a(13,"div",9),u(14,"i",10),l()(),a(15,"button",6),S("click",function(v){return i.setTargetMode(!0,v)}),a(16,"div",7),u(17,"i",8),l(),d(18),s(19,"translate"),a(20,"div",9),u(21,"i",10),l()()(),h(22,bp,4,8),l(),u(23,"div",11),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),n(),x("aria-label",c(4,10,"form.button_close")),n(3),x("aria-label",c(7,12,"accessories.control.mode_control")),n(4),A(F(18,Mr,!i.targetMode,i.targetMode)),n(),g(" ",c(12,14,"accessories.control.off")," "),n(6),A(F(21,Mr,i.targetMode,!i.targetMode)),n(),g(" ",c(19,16,"accessories.control.on")," "),n(4),C(i.targetSpeed?22:-1))},dependencies:[oe,ae,se,le,M],encapsulation:2,changeDetection:0})}return e})();function Bp(e,r){if(e&1&&(a(0,"div",8),d(1),l()),e&2){let t=m();n(),g("",t.fanSpeed,"%")}}function Mp(e,r){if(e&1&&(u(0,"div",9),s(1,"translate")),e&2){let t=m();T("innerText",c(1,1,t.isOn?"accessories.control.on":"accessories.control.off"))}}var Er=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&dr(this.service)}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(wr,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}get isOn(){return Tt(this.service)}get fanSpeed(){return kt(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-fan"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:12,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["transform","translate(-0.85, 0.2) scale(0.99)"],["fill","#7f7f7f","fill-rule","evenodd","clip-rule","evenodd","d","M20.988 10.265c.382-.596.951-1.424 1.844-2.71C25.462 3.61 23.456 0 18 0c-6.263 0-10.09 5.649-6.835 11.923-.594-.382-1.416-.948-2.682-1.826-3.945-2.63-7.555-.625-7.555 4.832 0 6.308 5.73 10.145 12.057 6.763-.383.599-.958 1.436-1.872 2.753C8.485 28.39 10.49 32 15.947 32c6.267 0 10.095-5.655 6.83-11.932.593.382 1.412.946 2.668 1.818 3.945 2.63 7.555.625 7.555-4.832 0-6.293-5.703-10.127-12.012-6.788Zm-.407 2.602C26.101 8.924 31 11.805 31 17.053c0 3.877-1.845 4.902-4.445 3.169-2.525-1.761-3.46-2.385-4.406-2.763a7.87 7.87 0 0 0-1.01-.317c.105-.382.161-.785.161-1.2 0-1.327-.919-3.134-.919-3.134ZM18.405 10.85c.378-.946 1.001-1.88 2.763-4.405C22.902 3.845 21.877 2 18 2c-5.247 0-8.129 4.899-4.186 10.419 0 0 1.89-.919 3.186-.919.398 0 .783.052 1.15.149.064-.269.149-.533.255-.798ZM11.78 14.524c-.946-.378-1.88-1.001-4.405-2.763-2.6-1.734-4.445-.709-4.445 3.168 0 5.247 4.899 8.129 10.419 4.186 0 0-.848-1.812-.848-3.115 0-.416.057-.819.163-1.201a7.81 7.81 0 0 0-1.183-.275Zm3.763 6.625c-.378.946-1.001 1.88-2.763 4.405-1.734 2.6-.709 4.445 3.168 4.445 5.248 0 8.13-4.899 4.187-10.419 0 0-1.831.919-3.133.919-.416 0-.819-.057-1.201-.162a7.802 7.802 0 0 0-.258.812ZM17 19.5c-1.933 0-3.5-1.567-3.5-3.5s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5-1.567 3.5-3.5 3.5Z",1,"fan-blades"],["cx","16","cy","16","r","3.6","stroke","#7f7f7f","stroke-width","2","fill","#1976d2","fill-opacity","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3)(5,"g",4),u(6,"path",5),l(),u(7,"circle",6),l()(),P(),a(8,"div",7),d(9),l(),h(10,Bp,2,1,"div",8)(11,Mp,2,3,"div",9),l()()),o&2&&(R("accessory-on",i.isOn),n(2),R("spin",i.isOn),x("aria-label",c(3,7,"accessories.core.fan")),n(7),f(i.service.customName||i.service.serviceName||i.service.displayName),n(),C(i.isOn&&i.fanSpeed>0?10:11))},dependencies:[Y,M],styles:[".spin svg g .fan-blades{animation:_ngcontent-%COMP%_fa-spin 2s infinite linear;transform-origin:53.5% 50%} .spin-counter svg g .fan-blades{animation:_ngcontent-%COMP%_fa-spin-counter 2s infinite linear;transform-origin:53.5% 50%}@keyframes _ngcontent-%COMP%_fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes _ngcontent-%COMP%_fa-spin-counter{0%{transform:rotate(0)}to{transform:rotate(-359deg)}}"]})}return e})();function wp(e,r){if(e&1&&d(0),e&2){let t=m();g(" ",t.humidity,"% ")}}function Ep(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.no_data")," ")}var Ar=(()=>{class e{service;get humidity(){return nr(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-humidity-sensor"]],inputs:{service:"service"},decls:26,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["transform","translate(1.8, -4.3), scale(0.85)"],["d","M23.61 24.58C23.61 28.67 20.44 31.99 16.56 31.99C12.68 31.99 9.52 28.67 9.52 24.58C9.52 20.49 12.68 17.13 16.56 10.87C20.44 17.13 23.61 20.49 23.61 24.58Z","fill","#1976d2","fill-opacity","0.4","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"g",5),I(7,"path",6),k(),I(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19),k()(),P(),y(21,"div",20),d(22),k(),y(23,"div",21),h(24,wp,1,1)(25,Ep,2,3),k()()()),o&2&&(n(2),x("aria-label",c(3,3,"accessories.core.humidity_sensor")),n(20),f(i.service.customName||i.service.serviceName),n(2),C(i.humidity!==null?24:25))},dependencies:[M],encapsulation:2})}return e})();function Ap(e,r){if(e&1&&(y(0,"div",28),d(1),s(2,"number"),k()),e&2){let t=m();n(),g("",ce(2,1,t.illuminance,"0.1-1")," lux")}}function Ip(e,r){if(e&1&&(y(0,"div",28),d(1),s(2,"number"),k()),e&2){let t=m();n(),g("",ce(2,1,t.illuminance,"1.0-0")," lux")}}var Ir=(()=>{class e{service;get illuminance(){return tr(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-light-sensor"]],inputs:{service:"service"},decls:32,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["cx","16","cy","13.75","r","5","stroke","#ff9800","fill","none","stroke-width","1.2","stroke-opacity","0.5"],["x1","16","y1","3","x2","16","y2","7","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","23.5","y1","6","x2","20.5","y2","9","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","22.75","y1","13.5","x2","26.75","y2","13.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","20.75","y1","18.25","x2","23.75","y2","21.25","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","16","y1","20.5","x2","16","y2","24.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","11.25","y1","18.25","x2","8.25","y2","21.25","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","5.25","y1","13.5","x2","9.25","y2","13.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","8.5","y1","6","x2","11.5","y2","9","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4)(6,"circle",5)(7,"line",6)(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24)(26,"line",25)(27,"line",26),k()(),P(),y(28,"div",27),d(29),k(),h(30,Ap,3,4,"div",28)(31,Ip,3,4,"div",28),k()()),o&2&&(n(2),x("aria-label",c(3,3,"accessories.core.light_sensor")),n(27),f(i.service.customName||i.service.serviceName),n(),C(i.illuminance<1?30:31))},dependencies:[be,M],encapsulation:2})}return e})();function Dp(e,r){e&1&&(y(0,"div",22),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.detected")))}function Lp(e,r){e&1&&(y(0,"div",23),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.not_detected")))}var Dr=(()=>{class e{service;get isOccupied(){return er(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-occupancy-sensor"]],inputs:{service:"service"},decls:26,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2",1,"orange-outline"],["transform","translate(4.75, -0.75), scale(0.075)"],["d","M190.85 83.94C190.85 70.36 180.09 59.24 166.93 59.24C153.78 59.24 143.02 70.36 143.02 83.94C143.02 97.53 153.78 108.65 166.93 108.65C180.09 108.65 190.85 97.53 190.85 83.94Z","fill","#ff9800","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","7"],["d","M232.24 175.95C210.12 175.95 190.98 163.6 180.22 145.69C179.08 143.72 169.99 127.91 168.86 125.93C164.67 118.52 156.9 114.2 148.53 114.2C145.54 114.2 142.55 114.81 139.56 116.05C135.37 117.82 114.45 126.67 76.78 142.6L76.78 200.66L100.69 200.66L100.69 159.28L121.62 150.02L88.73 324.17L113.85 324.17L134.78 225.36L160.49 250.06L160.49 324.17L184.4 324.17L184.4 230.92L159.89 205.6C164.19 183.36 166.59 171.01 167.06 168.54C182.61 188.3 205.93 200.66 232.24 200.66C232.24 195.72 232.24 178.42 232.24 175.95Z","fill","#ff9800","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","7"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"g",5),I(7,"path",6)(8,"path",7),k(),I(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20),k()(),P(),y(22,"div",21),d(23),k(),h(24,Dp,3,3,"div",22)(25,Lp,3,3,"div",23),k()()),o&2&&(R("accessory-on",i.isOccupied),n(2),x("aria-label",c(3,5,"accessories.core.occupancy_sensor")),n(21),f(i.service.customName||i.service.serviceName),n(),C(i.isOccupied?24:25))},dependencies:[M],styles:[".accessory-on svg .orange-outline{stroke:#ff9800;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{stroke-opacity:.8}50%{stroke-opacity:.2}}"]})}return e})();var Lr=(()=>{class e{service;readyForControl=!1;onClick(){this.readyForControl&&ot(this.service)}get isOn(){return Ne(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-on-off-light-switch"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:12,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"click"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","16","cy","16","r","14","fill","none","stroke","#7f7f7f","stroke-width","2"],["x1","16","y1","8","x2","16","y2","14","stroke","#7f7f7f","stroke-width","2","stroke-linecap","round"],["fill","#7f7f7f","d",`M21.4589329,9.49999998
|
|
41
|
-
C21,9.97698687 21.1735519,10.8351 21.4589326,11.2029426
|
|
42
|
-
C22.4505994,12.4811551 23,14.065977 23,15.7447101
|
|
43
|
-
C23,19.7640218 19.8532802,23 16,23
|
|
44
|
-
C12.1467198,23 9,19.7640218 9,15.7447101
|
|
45
|
-
C9,14.0415493 9.56560927,12.4352187 10.5838497,11.1483389
|
|
46
|
-
C10.8725653,10.7834523 11,9.9670534 10.5,9.49999999
|
|
47
|
-
C10,9.03294657 9.01543812,9.9073372 9.01543812,9.9073372
|
|
48
|
-
C7.75536735,11.4998488 7,13.5315645 7,15.7447101
|
|
49
|
-
C7,20.8562656 11.0294373,25 16,25
|
|
50
|
-
C20.9705627,25 25,20.8562656 25,15.7447101
|
|
51
|
-
C25,13.5637007 24.2664101,11.5588905 23.0391328,9.97698685
|
|
52
|
-
C23.0391328,9.97698685 21.9178658,9.0230131 21.4589329,9.49999998 Z`],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(o,i){o&1&&(y(0,"div",0),ve("click",function(){return i.onClick()}),y(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"circle",4)(6,"line",5)(7,"path",6),k()(),P(),y(8,"div",7),d(9),k(),I(10,"div",8),s(11,"translate"),k()()),o&2&&(R("accessory-on",i.isOn),n(2),x("aria-label",c(3,5,"accessories.core.switch")),n(7),f(i.service.customName||i.service.serviceName||i.service.displayName),n(),Oe("innerText",c(11,7,i.isOn?"accessories.control.on":"accessories.control.off")))},dependencies:[M],encapsulation:2})}return e})();var Vr=(()=>{class e{service;readyForControl=!1;onClick(){this.readyForControl&&ot(this.service)}get isOn(){return Ne(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-on-off-light"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:14,vars:10,consts:[["tabindex","0",1,"accessory-box",3,"click"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["fill-opacity","0.75","stroke","#7f7f7f","stroke-width","1.5","d","M8 21c-2.8-2.2-4.5-5.4-4.5-9 0-6.1 5-11 11.5-11S27.5 5.9 27.5 12c0 3.5-1.7 6.7-4.5 8.9-1.2 1-1.8 4.8-3 7.3-.9 2-2.2 2.7-4.5 2.7s-3.6-.7-4.5-2.7c-1.2-2.5-1.8-6.3-3-7.3z"],["stroke","#7f7f7f","stroke-width","1.5","x1","8","y1","21.5","x2","23","y2","21.5"],["stroke","#7f7f7f","stroke-width","0.75","x1","10","y1","23","x2","21","y2","24"],["stroke","#7f7f7f","stroke-width","0.75","x1","10","y1","25.5","x2","21","y2","26.5"],["stroke","#7f7f7f","stroke-width","0.75","x1","11","y1","28","x2","20","y2","29"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerHTML"]],template:function(o,i){o&1&&(y(0,"div",0),ve("click",function(){return i.onClick()}),y(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"path",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8),k()(),P(),y(10,"div",9),d(11),k(),I(12,"div",10),s(13,"translate"),k()()),o&2&&(R("accessory-on",i.isOn),n(2),x("aria-label",c(3,6,"accessories.core.lightbulb")),n(3),x("fill",i.isOn?"#ffcf55":"none"),n(6),f(i.service.customName||i.service.serviceName||i.service.displayName),n(),Oe("innerHTML",c(13,8,i.isOn?"accessories.control.on":"accessories.control.off"),Pe))},dependencies:[M],encapsulation:2})}return e})();function Vp(e,r){e&1&&(E(),I(0,"line",8)(1,"line",9)(2,"line",10))}function Fp(e,r){e&1&&(E(),I(0,"line",11)(1,"line",12)(2,"line",13))}function Pp(e,r){e&1&&(E(),I(0,"line",13)(1,"line",14)(2,"line",15))}var Fr=(()=>{class e{$settings=D(ye);service;readyForControl=!1;browserLang=this.$settings.browserLang;onClick(){this.readyForControl&&ot(this.service)}get isOn(){return Ne(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-on-off-plug-in-unit"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:14,vars:10,consts:[["tabindex","0",1,"accessory-box",3,"click"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32","height","32","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","30","height","30","rx","6","ry","6","fill","none","stroke","#7f7f7f","stroke-width","1.5",1,"outer"],["cx","16","cy","16","r","10","fill","none","stroke","#7f7f7f","stroke-width","1.5",1,"inner"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerText"],["x1","16","y1","10","x2","16","y2","13","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","10","y1","19","x2","13","y2","19","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","19","y1","19","x2","22","y2","19","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","11.5","y1","14.5","x2","13.5","y2","11.5","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","18.5","y1","11.5","x2","20.5","y2","14.5","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","16","y1","19","x2","16","y2","22","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","10","y1","14","x2","13","y2","14","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"],["x1","19","y1","14","x2","22","y2","14","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5"]],template:function(o,i){o&1&&(y(0,"div",0),ve("click",function(){return i.onClick()}),y(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4)(6,"circle",5),h(7,Vp,3,0)(8,Fp,3,0)(9,Pp,3,0),k()(),P(),y(10,"div",6),d(11),k(),I(12,"div",7),s(13,"translate"),k()()),o&2&&(R("accessory-on",i.isOn),n(2),x("aria-label",c(3,6,"accessories.core.outlet")),n(5),C(i.browserLang==="en-GB"?7:i.browserLang==="en-AU"||i.browserLang==="en-NZ"?8:9),n(4),f(i.service.customName||i.service.serviceName||i.service.displayName),n(),Oe("innerText",c(13,8,i.isOn?"accessories.control.on":"accessories.control.off")))},dependencies:[M],styles:[".accessory-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] .outer[_ngcontent-%COMP%]{stroke:#1976d2;stroke-opacity:.75;stroke-width:2.5}.accessory-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{stroke:#1976d2;stroke-opacity:.75}"]})}return e})();var Di=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),Pr=(()=>{class e extends ne{currentMode=0;setupComponent(){this.updateModeFromService()}handleAccessoryUpdate(){this.updateModeFromService()}updateModeFromService(){let t=this.service.clusters?.rvcOperationalState?.operationalState??0;t===1?this.currentMode=1:t===2?this.currentMode=2:this.currentMode=0}setMode(t,o){if(!(t===2&&this.currentMode===0)){if(this.currentMode=t,t===0){let i=this.service.getCluster?.("rvcRunMode");i&&i.setAttributes({currentMode:0}).catch(p=>{console.error("Failed to stop robotic vacuum:",p)})}else if(t===1){let i=this.service.getCluster?.("rvcRunMode");i&&i.setAttributes({currentMode:1}).catch(p=>{console.error("Failed to start robotic vacuum:",p)})}else if(t===2){let i=this.service.getCluster?.("rvcOperationalState");i&&i.setAttributes({operationalState:2}).catch(p=>{console.error("Failed to pause robotic vacuum:",p)})}this.blurTarget(o)}}get isPauseDisabled(){return this.currentMode===0}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:30,vars:33,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1),I(2,"h5",2),y(3,"button",3),s(4,"translate"),ve("click",function(){return i.dismissModal()}),k()(),y(5,"div",4)(6,"div",5),s(7,"translate"),y(8,"button",6),ve("click",function(v){return i.setMode(0,v)}),y(9,"div",7),I(10,"i",8),k(),d(11),s(12,"translate"),y(13,"div",9),I(14,"i",10),k()(),y(15,"button",6),ve("click",function(v){return i.setMode(2,v)}),y(16,"div",7),I(17,"i",8),k(),d(18),s(19,"translate"),y(20,"div",9),I(21,"i",10),k()(),y(22,"button",6),ve("click",function(v){return i.setMode(1,v)}),y(23,"div",7),I(24,"i",8),k(),d(25),s(26,"translate"),y(27,"div",9),I(28,"i",10),k()()()(),I(29,"div",11),k()),o&2&&(n(2),Oe("innerText",i.service.customName||i.service.serviceName),n(),x("aria-label",c(4,14,"form.button_close")),n(3),x("aria-label",c(7,16,"accessories.control.mode_control")),n(4),A(F(24,Di,i.currentMode===0,i.currentMode!==0)),n(),g(" ",c(12,18,"accessories.control.stopped")," "),n(4),R("btn-pause-disabled",i.isPauseDisabled),n(2),A(F(27,Di,i.currentMode===2,i.currentMode!==2)),n(),g(" ",c(19,20,"accessories.control.paused")," "),n(6),A(F(30,Di,i.currentMode===1,i.currentMode!==1)),n(),g(" ",c(26,22,"accessories.control.cleaning")," "))},dependencies:[M],styles:[".btn-control.btn-pause-disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed!important;pointer-events:auto!important}.btn-control.btn-pause-disabled[_ngcontent-%COMP%]:hover{cursor:not-allowed!important}"],changeDetection:0})}return e})();var Or=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){if(!this.readyForControl){console.warn("Robotic vacuum: Not ready for control");return}ot(this.service)}onLongClick(){if(!this.readyForControl||!this.canShowModal)return;let t=this.$modal.open(Pr,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}get isActive(){return Ne(this.service)}get statusText(){return Qo(this.service)}get canShowModal(){return!Yo(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-robotic-vacuum-cleaner"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:36,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["id","motionClip"],["x","0","y","-0.5","width","32","height","8"],["transform","translate(0, 5)"],["cx","16","cy","10","rx","14","ry","8.4","stroke","#7f7f7f","stroke-width","1.75","fill","none"],["x1","2","y1","10","x2","2","y2","16","stroke","#7f7f7f","stroke-width","1.75"],["x1","30","y1","10","x2","30","y2","16","stroke","#7f7f7f","stroke-width","1.75"],["d","M2,16 A14,6.9 0 0,0 30,16","stroke","#7f7f7f","stroke-width","1.75","fill","none"],["cx","16","cy","10","rx","4.2","ry","2.5","stroke","#7f7f7f","stroke-width","1","fill","#1976d2","fill-opacity","0.5"],["cx","16","cy","15","r","0.9","fill","#7f7f7f"],["x1","2","y1","16","x2","0.5","y2","18.5","stroke","#7f7f7f","stroke-width","1"],["x1","2","y1","16","x2","0.5","y2","14","stroke","#7f7f7f","stroke-width","1"],["x1","30","y1","16","x2","31.5","y2","18.5","stroke","#7f7f7f","stroke-width","1"],["x1","30","y1","16","x2","31.5","y2","14","stroke","#7f7f7f","stroke-width","1"],["clip-path","url(#motionClip)","stroke","#7f7f7f","stroke-linecap","round",1,"motion-lines",2,"display","none"],["x1","12","y1","8","x2","12","y2","14","stroke-width","2.1","opacity","0"],["attributeName","y1","values","8;0","dur","3s","begin","0.3s","repeatCount","indefinite"],["attributeName","y2","values","14;6","dur","3s","begin","0.3s","repeatCount","indefinite"],["attributeName","opacity","values","0;1;1;0","keyTimes","0;0.2;0.8;1","dur","3s","begin","0.3s","repeatCount","indefinite"],["x1","16","y1","8","x2","16","y2","14","stroke-width","2.5","opacity","0"],["attributeName","y1","values","8;0","dur","3s","begin","0.6s","repeatCount","indefinite"],["attributeName","y2","values","14;6","dur","3s","begin","0.6s","repeatCount","indefinite"],["attributeName","opacity","values","0;1;1;0","keyTimes","0;0.2;0.8;1","dur","3s","begin","0.6s","repeatCount","indefinite"],["x1","20","y1","8","x2","20","y2","14","stroke-width","2.1","opacity","0"],["attributeName","y1","values","8;0","dur","3s","begin","0.9s","repeatCount","indefinite"],["attributeName","y2","values","14;6","dur","3s","begin","0.9s","repeatCount","indefinite"],["attributeName","opacity","values","0;1;1;0","keyTimes","0;0.2;0.8;1","dur","3s","begin","0.9s","repeatCount","indefinite"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.canShowModal&&i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3)(5,"defs")(6,"clipPath",4),u(7,"rect",5),l()(),a(8,"g",6),u(9,"ellipse",7)(10,"line",8)(11,"line",9)(12,"path",10)(13,"ellipse",11)(14,"circle",12)(15,"line",13)(16,"line",14)(17,"line",15)(18,"line",16),l(),a(19,"g",17)(20,"line",18),u(21,"animate",19)(22,"animate",20)(23,"animate",21),l(),a(24,"line",22),u(25,"animate",23)(26,"animate",24)(27,"animate",25),l(),a(28,"line",26),u(29,"animate",27)(30,"animate",28)(31,"animate",29),l()()()(),P(),a(32,"div",30),d(33),l(),u(34,"div",31),s(35,"translate"),l()()),o&2&&(R("accessory-on",i.isActive),n(2),x("aria-label",c(3,5,"accessories.core.robotic_vacuum_cleaner")),n(31),f(i.service.customName||i.service.serviceName),n(),T("innerText",c(35,7,i.statusText)))},dependencies:[Y,M],styles:[".accessory-box.accessory-on[_ngcontent-%COMP%] .motion-lines[_ngcontent-%COMP%]{display:block!important}"]})}return e})();function Op(e,r){e&1&&(y(0,"div",17),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.detected")))}function Hp(e,r){e&1&&(y(0,"div",18),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.not_detected")))}var Hr=(()=>{class e{service;get isTriggered(){return or(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-smoke-co-alarm"]],inputs:{service:"service"},decls:22,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","30","height","12","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.25"],["text-anchor","middle","dominant-baseline","middle","font-family","Arial","font-size","7.5","x","16","y","7.7","fill","#7f7f7f","stroke-width","0.6","font-weight","900",1,"type"],["x1","6","y1","14.5","x2","25.5","y2","14.5","stroke","#1976d2","stroke-opacity","0.5","stroke-width","2"],["stroke-linecap","round","x1","5","y1","13","x2","6.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","11","y1","13","x2","11","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","15.5","y1","13","x2","15.5","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","20","y1","13","x2","20","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","26","y1","13","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","6.5","y1","16","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","11","y1","21","x2","6","y2","27","stroke","#7f7f7f","stroke-width","1.25",1,"air-line"],["stroke-linecap","round","x1","16","y1","21","x2","16","y2","31","stroke","#7f7f7f","stroke-width","1.25",1,"air-line"],["stroke-linecap","round","x1","21","y1","21","x2","26","y2","27","stroke","#7f7f7f","stroke-width","1.25",1,"air-line"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"text",5),d(7," ALARM "),k(),I(8,"line",6)(9,"line",7)(10,"line",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"line",13)(16,"line",14)(17,"line",15),k()(),P(),y(18,"div",16),d(19),k(),h(20,Op,3,3,"div",17)(21,Hp,3,3,"div",18),k()()),o&2&&(R("accessory-on",i.isTriggered),n(2),x("aria-label",c(3,5,"accessories.core.smoke_sensor")),n(17),f(i.service.customName||i.service.serviceName),n(),C(i.isTriggered?20:21))},dependencies:[M],styles:[".accessory-on svg .air-line{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite} .accessory-on svg .type{fill:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{opacity:1}50%{opacity:.2}}"]})}return e})();function Np(e,r){if(e&1&&(d(0),s(1,"convertTemp"),s(2,"number"),s(3,"uppercase")),e&2){let t=m();N(" ",ce(2,4,c(1,2,t.temperature),"1.0-1"),"\xB0",c(3,7,t.temperatureUnits)," ")}}function Rp(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.no_data")," ")}var Nr=(()=>{class e{$settings=D(ye);service;temperatureUnits=this.$settings.env.temperatureUnits;get temperature(){return ir(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-temperature-sensor"]],inputs:{service:"service"},decls:34,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x1","16","y1","5","x2","16","y2","17","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["cx","16","cy","20","r","3","stroke","#7f7f7f","stroke-width","1.2","fill","#1976d2","fill-opacity","0.5"],["x1","9","y1","6","x2","13","y2","6","stroke","#7f7f7f","stroke-width","0.8"],["x1","9","y1","9","x2","13","y2","9","stroke","#7f7f7f","stroke-width","0.8"],["x1","9","y1","12","x2","13","y2","12","stroke","#7f7f7f","stroke-width","0.8"],["x1","9","y1","15","x2","13","y2","15","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","6","x2","23","y2","6","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","9","x2","23","y2","9","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","12","x2","23","y2","12","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","15","x2","23","y2","15","stroke","#7f7f7f","stroke-width","0.8"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4)(6,"line",5)(7,"circle",6)(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24)(26,"line",25)(27,"line",26)(28,"line",27),k()(),P(),y(29,"div",28),d(30),k(),y(31,"div",29),h(32,Np,4,9)(33,Rp,2,3),k()()()),o&2&&(n(2),x("aria-label",c(3,3,"accessories.core.temperature_sensor")),n(28),f(i.service.customName||i.service.serviceName),n(2),C(i.temperature!==null?32:33))},dependencies:[be,we,De,M],encapsulation:2})}return e})();var ii=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Wp(e,r){if(e&1&&(a(0,"h6",5),u(1,"i",13),d(2),s(3,"convertTemp"),s(4,"number"),s(5,"uppercase"),l()),e&2){let t=m();n(),tt("color",t.targetMode===3?"#1e8bbd":t.targetMode===4?"#e69533":t.targetMode===1?"#42d672":"#7b7b7b"),n(),N("",ce(4,6,c(3,4,t.currentTemperature),"1.0-1"),"\xB0",c(5,9,t.temperatureUnits)," ")}}function Up(e,r){if(e&1){let t=$();a(0,"h6",14),d(1),s(2,"translate"),s(3,"convertTemp"),s(4,"number"),s(5,"uppercase"),s(6,"convertTemp"),s(7,"number"),s(8,"uppercase"),l(),a(9,"nouislider",15),q("ngModelChange",function(i){L(t);let p=m();return K(p.autoTemp,i)||(p.autoTemp=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onAutoTempChange())}),l()}if(e&2){let t=m();n(),ft(" ",c(2,9,"accessories.control.threshold_auto"),": ",ce(4,13,c(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",c(5,16,t.temperatureUnits)," - ",ce(7,20,c(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",c(8,23,t.temperatureUnits)," "),n(8),T("min",t.minHeatSetpoint)("max",t.maxCoolSetpoint)("step",.5),z("ngModel",t.autoTemp)}}function $p(e,r){if(e&1){let t=$();a(0,"h6",16),d(1),s(2,"translate"),s(3,"convertTemp"),s(4,"number"),s(5,"uppercase"),l(),a(6,"nouislider",15),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetHeatingTemp,i)||(p.targetHeatingTemp=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onHeatingTempChange())}),l()}if(e&2){let t=m();n(),$e(" ",c(2,7,"accessories.control.target"),": ",ce(4,11,c(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),n(5),T("min",t.minHeatSetpoint)("max",t.maxHeatSetpoint)("step",.5),z("ngModel",t.targetHeatingTemp)}}function Gp(e,r){if(e&1){let t=$();a(0,"h6",16),d(1),s(2,"translate"),s(3,"convertTemp"),s(4,"number"),s(5,"uppercase"),l(),a(6,"nouislider",15),q("ngModelChange",function(i){L(t);let p=m();return K(p.targetCoolingTemp,i)||(p.targetCoolingTemp=i),V(i)}),S("ngModelChange",function(){L(t);let i=m();return V(i.onCoolingTempChange())}),l()}if(e&2){let t=m();n(),$e(" ",c(2,7,"accessories.control.target"),": ",ce(4,11,c(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),n(5),T("min",t.minCoolSetpoint)("max",t.maxCoolSetpoint)("step",.5),z("ngModel",t.targetCoolingTemp)}}var Rr=(()=>{class e extends ne{$settings=D(ye);targetMode;targetHeatingTemp;targetCoolingTemp;autoTemp;temperatureUnits=this.$settings.env.temperatureUnits;heatingTempChanged=new J;coolingTempChanged=new J;autoTempChanged=new J;minHeatSetpoint=7;maxHeatSetpoint=30;minCoolSetpoint=10;maxCoolSetpoint=35;setupComponent(){this.createDebouncedSubscription(this.heatingTempChanged,()=>{Ai(this.service,this.targetHeatingTemp)}),this.createDebouncedSubscription(this.coolingTempChanged,()=>{Ii(this.service,this.targetCoolingTemp)}),this.createDebouncedSubscription(this.autoTempChanged,()=>{Ai(this.service,this.autoTemp[0]),Ii(this.service,this.autoTemp[1])}),this.targetMode=bt(this.service),this.targetHeatingTemp=wi(this.service),this.targetCoolingTemp=Ei(this.service),this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp];let t=this.service.clusters?.thermostat;t&&(this.minHeatSetpoint=t.minHeatSetpointLimit?t.minHeatSetpointLimit/100:7,this.maxHeatSetpoint=t.maxHeatSetpointLimit?t.maxHeatSetpointLimit/100:30,this.minCoolSetpoint=t.minCoolSetpointLimit?t.minCoolSetpointLimit/100:10,this.maxCoolSetpoint=t.maxCoolSetpointLimit?t.maxCoolSetpointLimit/100:35),this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}handleAccessoryUpdate(){this.targetMode=bt(this.service),this.targetHeatingTemp=wi(this.service),this.targetCoolingTemp=Ei(this.service),this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp],this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}setTargetMode(t,o){this.targetMode=t,mr(this.service,this.targetMode),this.blurTarget(o),this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}onHeatingTempChange(){this.heatingTempChanged.next(this.targetHeatingTemp)}onCoolingTempChange(){this.coolingTempChanged.next(this.targetCoolingTemp)}onAutoTempChange(){this.targetHeatingTemp=this.autoTemp[0],this.targetCoolingTemp=this.autoTemp[1],this.autoTempChanged.next(this.autoTemp)}get currentTemperature(){return ti(this.service)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:41,vars:43,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mt-2","mb-4","fs-4"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"fas","fa-temperature-full"],[1,"mt-4","mb-1"],[3,"ngModelChange","min","max","step","ngModel"],[1,"mt-4"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4),h(6,Wp,6,11,"h6",5),a(7,"div",6),s(8,"translate"),a(9,"button",7),S("click",function(v){return i.setTargetMode(0,v)}),a(10,"div",8),u(11,"i",9),l(),d(12),s(13,"translate"),a(14,"div",10),u(15,"i",11),l()(),a(16,"button",7),S("click",function(v){return i.setTargetMode(1,v)}),a(17,"div",8),u(18,"i",9),l(),d(19),s(20,"translate"),a(21,"div",10),u(22,"i",11),l()(),a(23,"button",7),S("click",function(v){return i.setTargetMode(4,v)}),a(24,"div",8),u(25,"i",9),l(),d(26),s(27,"translate"),a(28,"div",10),u(29,"i",11),l()(),a(30,"button",7),S("click",function(v){return i.setTargetMode(3,v)}),a(31,"div",8),u(32,"i",9),l(),d(33),s(34,"translate"),a(35,"div",10),u(36,"i",11),l()()(),h(37,Up,10,25),h(38,$p,7,16),h(39,Gp,7,16),l(),u(40,"div",12),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),n(),x("aria-label",c(4,19,"form.button_close")),n(3),C(i.currentTemperature!==null?6:-1),n(),x("aria-label",c(8,21,"accessories.control.mode_control")),n(4),A(F(31,ii,i.targetMode===0,i.targetMode!==0)),n(),g(" ",c(13,23,"accessories.control.off")," "),n(6),A(F(34,ii,i.targetMode===1,i.targetMode!==1)),n(),g(" ",c(20,25,"accessories.control.auto")," "),n(6),A(F(37,ii,i.targetMode===4,i.targetMode!==4)),n(),g(" ",c(27,27,"accessories.control.heat")," "),n(6),A(F(40,ii,i.targetMode===3,i.targetMode!==3)),n(),g(" ",c(34,29,"accessories.control.cool")," "),n(4),C(i.targetMode===1?37:-1),n(),C(i.targetMode===4?38:-1),n(),C(i.targetMode===3?39:-1))},dependencies:[oe,ae,se,le,be,M,we,De],encapsulation:2,changeDetection:0})}return e})();function jp(e,r){if(e&1&&(E(),a(0,"text",18),d(1),s(2,"convertTemp"),s(3,"number"),s(4,"uppercase"),l()),e&2){let t=m();n(),N(" ",ce(3,4,c(2,2,t.currentTemperature),"1.0-1"),"\xB0",c(4,7,t.temperatureUnits)," ")}}function zp(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.off")," ")}function Kp(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.cool")," ")}function qp(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.heat")," ")}function Zp(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.auto")," ")}var Wr=(()=>{class e{$modal=D(Q);$settings=D(ye);$accessories=D(ee);service;readyForControl=!1;temperatureUnits=this.$settings.env.temperatureUnits;onClick(){if(!this.readyForControl)return;let t=this.$modal.open(Rr,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}get isOn(){return pr(this.service)}get systemMode(){return bt(this.service)}get currentTemperature(){return ti(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-thermostat"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:30,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["id","coolingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#1e8bbd"],["attributeName","stop-color","values","#1e8bbd;#66d6d6;#1e8bbd","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#66d6d6"],["attributeName","stop-color","values","#66d6d6;#1e8bbd;#66d6d6","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#1e8bbd"],["id","heatingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#cc5e00"],["attributeName","stop-color","values","#cc5e00;#e69533;#cc5e00;#e69533","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#e69533"],["attributeName","stop-color","values","#e69533;#cc5e00;#e69533;#cc5e00","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#cc5e00"],["x","1","y","1","width","30","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x","1","y","19","width","30","height","8","rx","0","stroke","#7f7f7f","stroke-width","0.75","fill-opacity","0.5"],["x","16","y","13","font-size","8","text-anchor","middle","fill","#7f7f7f","font-family","Arial, sans-serif"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),s(3,"translate"),E(),a(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),u(8,"animate",6),l(),a(9,"stop",7),u(10,"animate",8),l(),a(11,"stop",9),u(12,"animate",6),l()(),a(13,"linearGradient",10)(14,"stop",11),u(15,"animate",12),l(),a(16,"stop",13),u(17,"animate",14),l(),a(18,"stop",15),u(19,"animate",12),l()()(),u(20,"rect",16)(21,"rect",17),h(22,jp,5,9,":svg:text",18),l()(),P(),a(23,"div",19),d(24),l(),a(25,"div",20),h(26,zp,2,3)(27,Kp,2,3)(28,qp,2,3)(29,Zp,2,3),l()()()),o&2&&(R("accessory-on",i.isOn),n(2),x("aria-label",c(3,7,"accessories.core.thermostat")),n(19),x("fill",i.systemMode===3?"url(#coolingGradient)":i.systemMode===4?"url(#heatingGradient)":i.systemMode===1?"#42d672":"#7b7b7b"),n(),C(i.currentTemperature!==null?22:-1),n(2),f(i.service.customName||i.service.serviceName||i.service.displayName),n(2),C(i.systemMode===0?26:i.systemMode===3?27:i.systemMode===4?28:i.systemMode===1?29:-1))},dependencies:[Y,be,M,we,De],encapsulation:2})}return e})();var Ur=(()=>{class e{service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-unknown"]],inputs:{service:"service"},decls:10,vars:3,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","16","cy","16","r","14","fill","none","stroke","#7f7f7f","stroke-width","1.5"],["d",`M12.2575393,17.7112593
|
|
53
|
-
L12.1868707,17.7112593
|
|
54
|
-
C11.0779698,17.7112593 10.6478221,16.9467914 11.2212184,16.0037726
|
|
55
|
-
L16.4805582,7.35415962
|
|
56
|
-
C17.67876,5.38357359 18.0624739,5.55948915 17.3376772,7.746963
|
|
57
|
-
L15.7252918,12.6132252
|
|
58
|
-
C15.3772095,13.6637556 15.9942825,14.5048291 17.0992511,14.5048291
|
|
59
|
-
L20.1977772,14.5048291
|
|
60
|
-
L20.1846183,14.5177121
|
|
61
|
-
L20.2552868,14.5177121
|
|
62
|
-
C21.3641878,14.5177121 21.7943355,15.2821799 21.2209392,16.2251988
|
|
63
|
-
L16.1844844,24.5082506
|
|
64
|
-
C14.864477,26.6791606 14.4411534,26.4839632 15.241777,24.0676402
|
|
65
|
-
L16.7168658,19.6157462
|
|
66
|
-
C17.0649481,18.5652158 16.447875,17.7241422 15.3429064,17.7241422
|
|
67
|
-
L12.2443804,17.7241422
|
|
68
|
-
L12.2575393,17.7112593 Z`,"fill","#7f7f7f"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),E(),y(3,"svg",3),I(4,"circle",4)(5,"path",5),k()(),P(),y(6,"div",6),d(7),k(),y(8,"div",7),d(9),k()()()),o&2&&(n(2),x("aria-label",i.service.humanType),n(5),f(i.service.customName||i.service.serviceName),n(2),f(i.service.humanType))},encapsulation:2})}return e})();function Yp(e,r){e&1&&(y(0,"div",23),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.detected")))}function Qp(e,r){e&1&&(y(0,"div",24),d(1),s(2,"translate"),k()),e&2&&(n(),f(c(2,1,"accessories.control.not_detected")))}var $r=(()=>{class e{service;get isLeaking(){return rr(this.service)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-water-leak-detector"]],inputs:{service:"service"},decls:28,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2",1,"red-outline"],["transform","translate(7, 0), scale(0.35)"],["d","M23.61 24.58C23.61 28.67 20.44 31.99 16.56 31.99C12.68 31.99 9.52 28.67 9.52 24.58C9.52 20.49 12.68 17.13 16.56 10.87C20.44 17.13 23.61 20.49 23.61 24.58Z","fill","#1976d2","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","1"],["transform","translate(13, 7), scale(0.35)"],["cx","16","cy","22","rx","10","ry","2","fill","#1976d2","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","0.35"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(o,i){o&1&&(y(0,"div",0)(1,"div",1)(2,"div",2),s(3,"translate"),E(),y(4,"svg",3),I(5,"rect",4),y(6,"g",5),I(7,"path",6),k(),y(8,"g",7),I(9,"path",6),k(),I(10,"ellipse",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"line",13)(16,"line",14)(17,"line",15)(18,"line",16)(19,"line",17)(20,"line",18)(21,"line",19)(22,"line",20)(23,"line",21),k()(),P(),y(24,"div",22),d(25),k(),h(26,Yp,3,3,"div",23)(27,Qp,3,3,"div",24),k()()),o&2&&(R("accessory-on",i.isLeaking),n(2),x("aria-label",c(3,5,"accessories.core.leak_sensor")),n(23),f(i.service.customName||i.service.serviceName),n(),C(i.isLeaking?26:27))},dependencies:[M],styles:[".accessory-on svg .red-outline{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{stroke-opacity:.8}50%{stroke-opacity:.2}}"]})}return e})();function Jp(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.closed")," ")}function Xp(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.open")," ")}function em(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m();N(" ",c(1,2,"accessories.control.open")," ",t.currentPosition,"% ")}}var Gr=(()=>{class e extends ne{targetPositionChanged=new J;targetPosition;setupComponent(){this.loadTargetPosition(),this.createDebouncedSubscription(this.targetPositionChanged,()=>Xt(this.service,this.targetPosition.value))}handleAccessoryUpdate(){this.targetPosition&&(this.targetPosition.value=mt(this.service))}onTargetPositionChange(){this.targetPositionChanged.next(this.targetPosition.value)}loadTargetPosition(){this.targetPosition={value:mt(this.service),min:0,max:100,step:1},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)")}get currentPosition(){return mt(this.service)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=te(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ie],decls:34,vars:34,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"d-flex","justify-content-center","mb-0","p-0"],[1,"mb-0","mx-0","p-3","btn-read","w-100"],[1,"mt-4"],[1,"mb-1",3,"ngModelChange","min","max","step","ngModel"],[1,"d-flex","justify-content-between","align-items-center","mt-0","mb-1"],[1,"grey-text","small"],[1,"mb-1",3,"ngModelChange","min","max","step","disabled","ngModel"],[1,"modal-footer"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1),u(2,"h5",2),a(3,"button",3),s(4,"translate"),S("click",function(){return i.dismissModal()}),l()(),a(5,"div",4)(6,"div",5)(7,"div",6),h(8,Jp,2,3)(9,Xp,2,3)(10,em,2,4),l()(),a(11,"h6",7),d(12),s(13,"translate"),l(),a(14,"nouislider",8),q("ngModelChange",function(v){return K(i.targetPosition.value,v)||(i.targetPosition.value=v),v}),S("ngModelChange",function(){return i.onTargetPositionChange()}),l(),a(15,"div",9)(16,"span",10),d(17),s(18,"translate"),l(),a(19,"span",10),d(20),s(21,"translate"),l()(),a(22,"h6",7),d(23),s(24,"translate"),l(),a(25,"nouislider",11),q("ngModelChange",function(v){return K(i.currentPosition,v)||(i.currentPosition=v),v}),l(),a(26,"div",9)(27,"span",10),d(28),s(29,"translate"),l(),a(30,"span",10),d(31),s(32,"translate"),l()()(),u(33,"div",12),l()),o&2&&(n(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),n(),x("aria-label",c(4,20,"form.button_close")),n(5),C(i.currentPosition===0?8:i.currentPosition===100?9:10),n(4),N("",c(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),n(2),T("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),z("ngModel",i.targetPosition.value),n(3),f(c(18,24,"accessories.control.closed")),n(3),f(c(21,26,"accessories.control.open")),n(3),N("",c(24,28,"accessories.control.current"),": ",i.currentPosition,"%"),n(2),T("min",0)("max",100)("step",1)("disabled",!0),z("ngModel",i.currentPosition),n(3),f(c(29,30,"accessories.control.closed")),n(3),f(c(32,32,"accessories.control.open")))},dependencies:[le,oe,ae,se,M],encapsulation:2,changeDetection:0})}return e})();function tm(e,r){e&1&&(a(0,"div",2),s(1,"translate"),E(),a(2,"svg",5),u(3,"rect",6)(4,"rect",7)(5,"rect",8)(6,"rect",9)(7,"rect",10)(8,"rect",11)(9,"rect",12),l()()),e&2&&x("aria-label",c(1,1,"accessories.core.window_covering"))}function im(e,r){e&1&&(a(0,"div",2),s(1,"translate"),E(),a(2,"svg",5),u(3,"rect",13)(4,"rect",14)(5,"rect",15)(6,"rect",16)(7,"line",17)(8,"rect",18),l()()),e&2&&x("aria-label",c(1,1,"accessories.core.door"))}function nm(e,r){e&1&&(a(0,"div",2),s(1,"translate"),E(),a(2,"svg",5),u(3,"rect",6)(4,"rect",19)(5,"rect",20)(6,"rect",21)(7,"rect",22)(8,"rect",23)(9,"rect",24),l()()),e&2&&x("aria-label",c(1,1,"accessories.core.window"))}function om(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.closed")," ")}function rm(e,r){e&1&&(d(0),s(1,"translate")),e&2&&g(" ",c(1,1,"accessories.control.open")," ")}function am(e,r){if(e&1&&(d(0),s(1,"translate")),e&2){let t=m();N(" ",c(1,2,"accessories.control.open")," ",t.currentPosition,"% ")}}var jr=(()=>{class e{$accessories=D(ee);$modal=D(Q);service;readyForControl=!1;onClick(){this.readyForControl&&cr(this.service)}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(Gr,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.$accessories=this.$accessories}get currentPosition(){return mt(this.service)}get deviceType(){return this.service.customType||this.service.deviceType||"WindowCovering"}get isWindowCovering(){return this.deviceType==="WindowCovering"}get isDoor(){return this.deviceType==="Door"}get isWindow(){return this.deviceType==="Window"}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-window-covering"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:11,vars:7,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","0.8","width","30","height","30.2","rx","0.5","stroke","#7f7f7f","fill","none","stroke-width","1.5"],["x","2.8","y","2.6","width","12.4","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1"],["x","3.66","y","15.65","width","10.68","height","0.5","stroke","#7f7f7f","fill","none","stroke-width","0.5","rx","2"],["x","16.8","y","2.6","width","12.4","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1"],["x","17.66","y","15.65","width","10.68","height","0.5","stroke","#7f7f7f","fill","none","stroke-width","0.5","rx","2"],["x","2.3","y","2.1","width","27.4","height","27.6","stroke","#808080","fill","#808080","stroke-width","0.5","stroke-opacity","0.9","fill-opacity","0.9",1,"c-blinds"],["x","2.05","y","29.9","width","27.9","height","0","stroke","#ffffff","fill","#ffffff","stroke-width","0.5","stroke-opacity","0","fill-opacity","0.5",1,"c-light"],["x","7.8","y","0.8","width","16.4","height","30.2","rx","0.5","stroke","#7f7f7f","fill","none","stroke-width","1.5"],["x","9.6","y","2.6","width","12.8","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1",1,"outline"],["x","11.2","y","4.2","width","9.6","height","10.8","stroke","#7f7f7f","fill-opacity","0","stroke-width","0.5","rx","0.25",1,"panel"],["x","11.2","y","16.8","width","9.6","height","10.8","stroke","#7f7f7f","fill-opacity","0","stroke-width","0.5","rx","0.25",1,"panel"],["x1","0","y1","31","x2","32","y2","31","stroke","#7f7f7f","stroke-width","1.5"],["x","19.25","y","15.87","width","1.55","height","0.05","stroke","#1976d2","fill","none","stroke-width","0.5","rx","10",1,"handle"],["x","2.8","y","2.6","width","12.4","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1",1,"outline-left"],["x","3.66","y","15.65","width","10.68","height","0.5","stroke","#7f7f7f","fill","none","stroke-width","0.5","ry","2",1,"divider-left"],["x","15.16","y","13.6","width","0.1","height","4.6","stroke","#1976d2","fill","none","stroke-width","0.5","ry","2",1,"handle-left"],["x","16.8","y","2.6","width","12.4","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1",1,"outline-right"],["x","17.66","y","15.65","width","10.68","height","0.5","stroke","#7f7f7f","fill","none","stroke-width","0.5","ry","2",1,"divider-right"],["x","16.76","y","13.6","width","0.1","height","4.6","stroke","#1976d2","fill","none","stroke-width","0.5","ry","2",1,"handle-right"]],template:function(o,i){o&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1),h(2,tm,10,3,"div",2),h(3,im,9,3,"div",2),h(4,nm,10,3,"div",2),a(5,"div",3),d(6),l(),a(7,"div",4),h(8,om,2,3)(9,rm,2,3)(10,am,2,4),l()()()),o&2&&(R("accessory-on",i.currentPosition>0),n(2),C(i.isWindowCovering?2:-1),n(),C(i.isDoor?3:-1),n(),C(i.isWindow?4:-1),n(2),f(i.service.customName||i.service.serviceName||i.service.displayName),n(2),C(i.currentPosition===0?8:i.currentPosition===100?9:10))},dependencies:[Y,M],styles:["body.dark-mode .c-blinds{fill:#2b2b2b;stroke:#2b2b2b;stroke-opacity:.8;fill-opacity:.8} svg .c-blinds{transition:height 3s ease;height:27.6px} svg .c-light{transition:y 3s ease,height 3s ease;y:29.9px;height:0} .accessory-on svg .c-blinds{transition:height 3s ease;height:.3px} .accessory-on svg .c-light{transition:y 3s ease,height 3s ease;y:2.65px;height:27.3px} svg .outline{transition:width 3s ease;width:12.8px} svg .panel{transition:width 3s ease;width:9.6px} svg .handle{visibility:visible;opacity:1;transition:opacity 3s ease,visibility 0s linear 3s} .accessory-on svg .outline{transition:width 3s ease;width:3.8px} .accessory-on svg .panel{transition:width 3s ease;width:.6px} .accessory-on svg .handle{visibility:hidden;opacity:0;transition:opacity 3s ease,visibility 0s linear 0s} svg .outline-left{x:2.8px;width:12.4px} svg .divider-left{x:3.66px;width:10.68px} svg .handle-left{x:15.16px;width:.1px} svg .outline-right{x:16.8px;width:12.4px} svg .divider-right{x:17.66px;width:10.68px} svg .handle-right{x:16.76px;width:.1px} .accessory-on svg .outline-left{x:2.8px;width:2.4px} .accessory-on svg .divider-left{x:3.66px;width:.68px} .accessory-on svg .handle-left{x:5.16px;width:.1px} .accessory-on svg .outline-right{x:26.8px;width:2.4px} .accessory-on svg .divider-right{x:27.66px;width:.68px} .accessory-on svg .handle-right{x:26.76px;width:.1px}"]})}return e})();function sm(e,r){if(e&1){let t=$();a(0,"button",2),s(1,"translate"),S("click",function(){L(t);let i=m();return V(i.$accessories.showAccessoryInformation(i.service))}),u(2,"i",3),l()}e&2&&x("aria-label",c(1,1,"accessories.service_info"))}function lm(e,r){e&1&&u(0,"i",1)}function cm(e,r){if(e&1&&(a(0,"app-on-off-light",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.on_off_light"))}}function dm(e,r){if(e&1&&(a(0,"app-dimmable-light",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.dimmable_light"))}}function pm(e,r){if(e&1&&(a(0,"app-color-temperature-light",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.color_temperature_light"))}}function mm(e,r){if(e&1&&(a(0,"app-extended-color-light",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.extended_color_light"))}}function um(e,r){if(e&1&&(a(0,"app-on-off-plug-in-unit",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.on_off_plug_in_unit"))}}function fm(e,r){if(e&1&&(a(0,"app-on-off-light-switch",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.on_off_light_switch"))}}function vm(e,r){if(e&1&&(a(0,"app-robotic-vacuum-cleaner",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.robotic_vacuum_cleaner"))}}function gm(e,r){if(e&1&&(a(0,"app-matter-contact-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.contact_sensor"))}}function hm(e,r){if(e&1&&(a(0,"app-matter-occupancy-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.occupancy_sensor"))}}function Cm(e,r){if(e&1&&(a(0,"app-matter-light-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.light_sensor"))}}function _m(e,r){if(e&1&&(a(0,"app-matter-temperature-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.temperature_sensor"))}}function xm(e,r){if(e&1&&(a(0,"app-matter-humidity-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.humidity_sensor"))}}function ym(e,r){if(e&1&&(a(0,"app-matter-smoke-co-alarm",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.smoke_co_alarm"))}}function Sm(e,r){if(e&1&&(a(0,"app-matter-water-leak-detector",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.leak_sensor"))}}function km(e,r){if(e&1&&(a(0,"app-matter-air-quality-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.air_quality_sensor"))}}function Tm(e,r){if(e&1&&(a(0,"app-matter-door-lock",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.lock_mechanism"))}}function bm(e,r){if(e&1&&(a(0,"app-matter-window-covering",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.window_covering"))}}function Bm(e,r){if(e&1&&(a(0,"app-matter-window-covering",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.door"))}}function Mm(e,r){if(e&1&&(a(0,"app-matter-window-covering",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.window"))}}function wm(e,r){if(e&1&&(a(0,"app-matter-fan",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.fan"))}}function Em(e,r){if(e&1&&(a(0,"app-matter-thermostat",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.matterReadyForControl),n(),f(c(2,3,"accessories.core.thermostat"))}}function Am(e,r){if(e&1&&(a(0,"app-matter-unknown",5),d(1),l()),e&2){let t=m(2);T("service",t.service),n(),f(t.service.humanType)}}function Im(e,r){if(e&1&&h(0,cm,3,5,"app-on-off-light",4)(1,dm,3,5,"app-dimmable-light",4)(2,pm,3,5,"app-color-temperature-light",4)(3,mm,3,5,"app-extended-color-light",4)(4,um,3,5,"app-on-off-plug-in-unit",4)(5,fm,3,5,"app-on-off-light-switch",4)(6,vm,3,5,"app-robotic-vacuum-cleaner",4)(7,gm,3,4,"app-matter-contact-sensor",5)(8,hm,3,4,"app-matter-occupancy-sensor",5)(9,Cm,3,4,"app-matter-light-sensor",5)(10,_m,3,4,"app-matter-temperature-sensor",5)(11,xm,3,4,"app-matter-humidity-sensor",5)(12,ym,3,4,"app-matter-smoke-co-alarm",5)(13,Sm,3,4,"app-matter-water-leak-detector",5)(14,km,3,4,"app-matter-air-quality-sensor",5)(15,Tm,3,5,"app-matter-door-lock",4)(16,bm,3,5,"app-matter-window-covering",4)(17,Bm,3,5,"app-matter-window-covering",4)(18,Mm,3,5,"app-matter-window-covering",4)(19,wm,3,5,"app-matter-fan",4)(20,Em,3,5,"app-matter-thermostat",4)(21,Am,2,2,"app-matter-unknown",5),e&2){let t,o=m();C((t=o.service.customType||o.service.deviceType)==="OnOffLight"?0:t==="DimmableLight"?1:t==="ColorTemperatureLight"?2:t==="ExtendedColorLight"?3:t==="OnOffPlugInUnit"?4:t==="OnOffLightSwitch"?5:t==="RoboticVacuumCleaner"?6:t==="ContactSensor"?7:t==="OccupancySensor"?8:t==="LightSensor"?9:t==="TemperatureSensor"?10:t==="HumiditySensor"?11:t==="SmokeCoAlarm"?12:t==="WaterLeakDetector"?13:t==="AirQualitySensor"?14:t==="DoorLock"?15:t==="WindowCovering"?16:t==="Door"?17:t==="Window"?18:t==="Fan"?19:t==="Thermostat"?20:21)}}function Dm(e,r){if(e&1&&(a(0,"app-switch",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.switch"))}}function Lm(e,r){if(e&1&&(a(0,"app-thermostat",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.thermostat"))}}function Vm(e,r){if(e&1&&(a(0,"app-outlet",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.outlet"))}}function Fm(e,r){if(e&1&&(a(0,"app-fan",6),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.fan"))}}function Pm(e,r){if(e&1&&(a(0,"app-fan",6),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.fan"))}}function Om(e,r){if(e&1&&(a(0,"app-air-purifier",6),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.air_purifier"))}}function Hm(e,r){if(e&1&&(a(0,"app-lightbulb",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.lightbulb"))}}function Nm(e,r){if(e&1&&(a(0,"app-light-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.light_sensor"))}}function Rm(e,r){if(e&1&&(a(0,"app-lock-mechanism",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.lock_mechanism"))}}function Wm(e,r){if(e&1&&(a(0,"app-temperature-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.temperature_sensor"))}}function Um(e,r){if(e&1&&(a(0,"app-garage-door-opener",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.garage_door_opener"))}}function $m(e,r){if(e&1&&(a(0,"app-motion-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.motion_sensor"))}}function Gm(e,r){if(e&1&&(a(0,"app-occupancy-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.occupancy_sensor"))}}function jm(e,r){if(e&1&&(a(0,"app-contact-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.contact_sensor"))}}function zm(e,r){if(e&1&&(a(0,"app-humidity-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.humidity_sensor"))}}function Km(e,r){if(e&1&&(a(0,"app-air-quality-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.air_quality_sensor"))}}function qm(e,r){if(e&1&&(a(0,"app-window-covering",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.window_covering"))}}function Zm(e,r){if(e&1&&(a(0,"app-window",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.window"))}}function Ym(e,r){if(e&1&&(a(0,"app-door",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.door"))}}function Qm(e,r){if(e&1&&(a(0,"app-television",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.television"))}}function Jm(e,r){if(e&1&&(a(0,"app-battery",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.battery"))}}function Xm(e,r){if(e&1&&(a(0,"app-battery",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.battery"))}}function eu(e,r){if(e&1&&(a(0,"app-speaker",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.speaker"))}}function tu(e,r){if(e&1&&(a(0,"app-speaker",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.speaker"))}}function iu(e,r){if(e&1&&(a(0,"app-doorbell",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.doorbell"))}}function nu(e,r){if(e&1&&(a(0,"app-microphone",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.microphone"))}}function ou(e,r){if(e&1&&(a(0,"app-security-system",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.security_system"))}}function ru(e,r){if(e&1&&(a(0,"app-leak-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.leak_sensor"))}}function au(e,r){if(e&1&&(a(0,"app-smoke-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.smoke_sensor"))}}function su(e,r){if(e&1&&(a(0,"app-carbon-monoxide-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.carbon_monoxide_sensor"))}}function lu(e,r){if(e&1&&(a(0,"app-carbon-dioxide-sensor",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.carbon_dioxide_sensor"))}}function cu(e,r){if(e&1&&(a(0,"app-valve",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.valve"))}}function du(e,r){if(e&1&&(a(0,"app-irrigation-system",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.irrigation_system"))}}function pu(e,r){if(e&1&&(a(0,"app-heater-cooler",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.heater_cooler"))}}function mu(e,r){if(e&1&&(a(0,"app-heater-cooler",7),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("type","heater")("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,4,"accessories.core.heater"))}}function uu(e,r){if(e&1&&(a(0,"app-heater-cooler",7),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("type","cooler")("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,4,"accessories.core.cooler"))}}function fu(e,r){if(e&1&&(a(0,"app-humidifier-dehumidifier",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.humidifier_dehumidifier"))}}function vu(e,r){if(e&1&&(a(0,"app-humidifier-dehumidifier",7),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("type","humidifier")("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,4,"accessories.core.humidifier"))}}function gu(e,r){if(e&1&&(a(0,"app-humidifier-dehumidifier",7),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("type","dehumidifier")("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,4,"accessories.core.dehumidifier"))}}function hu(e,r){if(e&1&&(a(0,"app-stateless-programmable-switch",5),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service),n(),f(c(2,2,"accessories.core.stateless_programmable_switch"))}}function Cu(e,r){if(e&1&&(a(0,"app-filter-maintenance",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.filter_maintenance"))}}function _u(e,r){if(e&1&&(a(0,"app-robot-vacuum",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.robot_vacuum"))}}function xu(e,r){if(e&1&&(a(0,"app-washing-machine",4),d(1),s(2,"translate"),l()),e&2){let t=m(2);T("service",t.service)("readyForControl",t.$accessories.hapReadyForControl),n(),f(c(2,3,"accessories.core.washing_machine"))}}function yu(e,r){if(e&1&&(a(0,"app-unknown",5),d(1),l()),e&2){let t=m(2);T("service",t.service),n(),f(t.service.humanType)}}function Su(e,r){if(e&1&&h(0,Dm,3,5,"app-switch",4)(1,Lm,3,5,"app-thermostat",4)(2,Vm,3,5,"app-outlet",4)(3,Fm,3,5,"app-fan",6)(4,Pm,3,5,"app-fan",6)(5,Om,3,5,"app-air-purifier",6)(6,Hm,3,5,"app-lightbulb",4)(7,Nm,3,4,"app-light-sensor",5)(8,Rm,3,5,"app-lock-mechanism",4)(9,Wm,3,4,"app-temperature-sensor",5)(10,Um,3,5,"app-garage-door-opener",4)(11,$m,3,4,"app-motion-sensor",5)(12,Gm,3,4,"app-occupancy-sensor",5)(13,jm,3,4,"app-contact-sensor",5)(14,zm,3,4,"app-humidity-sensor",5)(15,Km,3,4,"app-air-quality-sensor",5)(16,qm,3,5,"app-window-covering",4)(17,Zm,3,5,"app-window",4)(18,Ym,3,5,"app-door",4)(19,Qm,3,5,"app-television",4)(20,Jm,3,4,"app-battery",5)(21,Xm,3,4,"app-battery",5)(22,eu,3,5,"app-speaker",4)(23,tu,3,5,"app-speaker",4)(24,iu,3,5,"app-doorbell",4)(25,nu,3,5,"app-microphone",4)(26,ou,3,5,"app-security-system",4)(27,ru,3,4,"app-leak-sensor",5)(28,au,3,4,"app-smoke-sensor",5)(29,su,3,4,"app-carbon-monoxide-sensor",5)(30,lu,3,4,"app-carbon-dioxide-sensor",5)(31,cu,3,5,"app-valve",4)(32,du,3,4,"app-irrigation-system",5)(33,pu,3,5,"app-heater-cooler",4)(34,mu,3,6,"app-heater-cooler",7)(35,uu,3,6,"app-heater-cooler",7)(36,fu,3,5,"app-humidifier-dehumidifier",4)(37,vu,3,6,"app-humidifier-dehumidifier",7)(38,gu,3,6,"app-humidifier-dehumidifier",7)(39,hu,3,4,"app-stateless-programmable-switch",5)(40,Cu,3,5,"app-filter-maintenance",4)(41,_u,3,5,"app-robot-vacuum",4)(42,xu,3,5,"app-washing-machine",4)(43,yu,2,2,"app-unknown",5),e&2){let t,o=m();C((t=o.service.customType||o.service.type||o.service.deviceType)==="Switch"?0:t==="Thermostat"?1:t==="Outlet"?2:t==="Fan"?3:t==="Fanv2"?4:t==="AirPurifier"?5:t==="Lightbulb"?6:t==="LightSensor"?7:t==="LockMechanism"?8:t==="TemperatureSensor"?9:t==="GarageDoorOpener"?10:t==="MotionSensor"?11:t==="OccupancySensor"?12:t==="ContactSensor"?13:t==="HumiditySensor"?14:t==="AirQualitySensor"?15:t==="WindowCovering"?16:t==="Window"?17:t==="Door"?18:t==="Television"?19:t==="Battery"?20:t==="BatteryService"?21:t==="Speaker"?22:t==="SmartSpeaker"?23:t==="Doorbell"?24:t==="Microphone"?25:t==="SecuritySystem"?26:t==="LeakSensor"?27:t==="SmokeSensor"?28:t==="CarbonMonoxideSensor"?29:t==="CarbonDioxideSensor"?30:t==="Valve"?31:t==="IrrigationSystem"?32:t==="HeaterCooler"?33:t==="Heater"?34:t==="Cooler"?35:t==="HumidifierDehumidifier"?36:t==="Humidifier"?37:t==="Dehumidifier"?38:t==="StatelessProgrammableSwitch"?39:t==="FilterMaintenance"?40:t==="RobotVacuum"?41:t==="WashingMachine"?42:43)}}var O3=(()=>{class e{$accessories=D(ee);service;static \u0275fac=function(o){return new(o||e)};static \u0275cmp=B({type:e,selectors:[["app-accessory-tile"]],inputs:{service:"service"},decls:5,vars:2,consts:[["type","button",1,"manage-accessory-button"],[1,"fas","fa-spin","fa-sync-alt","refreshing-accessory-status-icon","grey-text"],["type","button",1,"manage-accessory-button",3,"click"],["aria-hidden","true",1,"fas","fa-bars","grey-text"],[3,"service","readyForControl"],[3,"service"],[1,"w-100",3,"service","readyForControl"],[3,"service","type","readyForControl"]],template:function(o,i){o&1&&(cn(0),h(1,sm,3,3,"button",0)(2,lm,1,0,"i",1),h(3,Im,22,1)(4,Su,44,1),dn()),o&2&&(n(),C(i.service.protocol==="matter"&&i.$accessories.matterReadyForControl||i.service.protocol!=="matter"&&i.$accessories.hapReadyForControl?1:2),n(2),C(i.service.protocol==="matter"?3:4))},dependencies:[Fo,Ro,Bo,io,jn,ho,fo,xo,Ho,ro,ko,To,Yn,po,zn,Ko,Zo,Jn,Oo,Kn,Do,Eo,uo,Ao,Zn,qn,Go,mo,so,co,Lo,oo,eo,Wo,So,Mo,jo,Vr,Fr,Lr,xr,gr,Br,Or,hr,Dr,Ir,Nr,Ar,Hr,$r,ur,kr,jr,Er,Wr,Ur,M],encapsulation:2})}return e})();export{we as a,ee as b,O3 as c};
|