homebridge-config-ui-x 5.11.2-beta.8 → 5.11.2
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 +3 -21
- 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.module.js +1 -1
- package/dist/modules/plugins/plugins.service.js +2 -17
- 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 +7 -9
- package/public/3rdpartylicenses.txt +620 -594
- package/public/assets/plugin-ui-utils/ui.js +0 -3
- package/public/assets/plugin-ui-utils/ui.js.map +1 -1
- package/public/chunk-2BB4D4TW.js +1 -0
- package/public/chunk-2GCZ3AMH.js +1 -0
- package/public/chunk-2K5FWBCK.js +8 -0
- package/public/chunk-2LQBMVWH.js +1 -0
- package/public/chunk-34ZN4GVA.js +3 -0
- package/public/chunk-3JW6FD5V.js +1 -0
- package/public/chunk-57XTQ6PK.js +1 -0
- package/public/chunk-5DBV5PYR.js +19 -0
- package/public/chunk-5GKTPXPE.js +1 -0
- package/public/chunk-5X7ARCKG.js +5 -0
- package/public/chunk-67HOYJJ2.js +1 -0
- package/public/chunk-6MZHUZRT.js +4 -0
- package/public/chunk-77CMUO6J.js +1 -0
- package/public/chunk-7LJYL7EH.js +1 -0
- package/public/chunk-7TFBELRD.js +1 -0
- package/public/chunk-AXOHPUQR.js +1 -0
- package/public/chunk-BMAZBLAT.js +1 -0
- package/public/chunk-C554TVZA.js +2 -0
- package/public/chunk-DGDNSN6I.js +1 -0
- package/public/chunk-E6RSPO2D.js +1 -0
- package/public/chunk-ESQ665GW.js +5 -0
- package/public/chunk-G4QH622U.js +5 -0
- package/public/chunk-GKPR5M7S.js +1 -0
- package/public/chunk-GT7UMMFF.js +2 -0
- package/public/chunk-HBIQJCSE.js +1 -0
- package/public/{chunk-BMOLDRJ3.js → chunk-JLZ5WU6N.js} +1 -1
- package/public/chunk-JSZIAFBJ.js +1 -0
- package/public/chunk-JWQRV434.js +1 -0
- package/public/chunk-JX72JCMA.js +1 -0
- package/public/chunk-KT26K4DO.js +1 -0
- package/public/chunk-L63FND3A.js +1 -0
- package/public/chunk-LSXTHVKB.js +1 -0
- package/public/chunk-N5VXONVW.js +1 -0
- package/public/{chunk-H7F7H5MW.js → chunk-N6JGA2PG.js} +1 -1
- package/public/chunk-NVCJ3EJS.js +1 -0
- package/public/chunk-OPJZWDSO.js +1 -0
- package/public/chunk-OXBXHVWY.js +8 -0
- package/public/chunk-QHROK73U.js +50 -0
- package/public/chunk-QNEXPAIT.js +1 -0
- package/public/chunk-R2G2YWV4.js +51 -0
- package/public/chunk-RCNF365Q.js +1 -0
- package/public/chunk-RT6EDRIH.js +1 -0
- package/public/chunk-RWM6K46M.js +1 -0
- package/public/chunk-SVVR6UMH.js +1 -0
- package/public/chunk-UI4U37MO.js +1 -0
- package/public/chunk-ULKYNDD3.js +16 -0
- package/public/chunk-UPZ5UT6G.js +1 -0
- package/public/chunk-UQFIBBEZ.js +1 -0
- package/public/chunk-UWUTC3BD.js +1 -0
- package/public/chunk-UZ6QYM64.js +1 -0
- package/public/{chunk-CP6FP6S2.js → chunk-VKHX6FUQ.js} +2 -52
- package/public/chunk-VM2MV3DC.js +1 -0
- package/public/chunk-VM6FMRHY.js +1 -0
- package/public/chunk-VYK3U745.js +1 -0
- package/public/chunk-VZJJWHRX.js +1 -0
- package/public/chunk-WHC4E7WY.js +1 -0
- package/public/chunk-WJKVPIP2.js +1 -0
- package/public/chunk-WOBQOQPU.js +1 -0
- package/public/chunk-WTGHGHPV.js +1 -0
- package/public/chunk-WY6UQ47H.js +1 -0
- package/public/chunk-X4ZEQSRY.js +4 -0
- package/public/{chunk-WVG4A2SW.js → chunk-XVO5247V.js} +1 -1
- package/public/chunk-XWNU2MFJ.js +1 -0
- package/public/chunk-YD3GJ2C6.js +1 -0
- package/public/chunk-YUEGV7HK.js +4 -0
- package/public/chunk-ZLRFR32W.js +1 -0
- package/public/chunk-ZZ5IX26U.js +40 -0
- package/public/chunk-ZZQEWRDE.js +1 -0
- package/public/index.html +2 -2
- package/public/main-VKVUZHHA.js +1 -0
- package/public/polyfills-5KWHJ7II.js +2 -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-2V4LIZUH.js +0 -1
- package/public/chunk-4UVYLGCZ.js +0 -1
- package/public/chunk-4WEBTV3N.js +0 -1
- package/public/chunk-4YNYBAGL.js +0 -1
- package/public/chunk-52X3LPJH.js +0 -1
- package/public/chunk-5R6AJZGA.js +0 -1
- package/public/chunk-5WSUQV2C.js +0 -1
- package/public/chunk-6DLZEENG.js +0 -1
- package/public/chunk-6INJQUJQ.js +0 -16
- package/public/chunk-6QWPGE2L.js +0 -1
- package/public/chunk-77S5CL3V.js +0 -1
- package/public/chunk-7BMHIIBT.js +0 -1
- package/public/chunk-7DFQDPRM.js +0 -1
- package/public/chunk-7WKZ7EMI.js +0 -1
- package/public/chunk-7WUBDTA6.js +0 -1
- package/public/chunk-AXMO2G45.js +0 -1
- package/public/chunk-B46EWHBD.js +0 -1
- package/public/chunk-B4AJQJMI.js +0 -1
- package/public/chunk-B75B723G.js +0 -1
- package/public/chunk-BB35SJH2.js +0 -2
- package/public/chunk-BFGRDXJK.js +0 -35
- package/public/chunk-BQRKHSGH.js +0 -1
- package/public/chunk-BXRCPOIK.js +0 -1
- package/public/chunk-BZ3XB6O4.js +0 -1
- package/public/chunk-CEMVTOZG.js +0 -4
- package/public/chunk-CMERG3AC.js +0 -1
- package/public/chunk-CMO4UANJ.js +0 -1
- package/public/chunk-CPT52C2F.js +0 -1
- package/public/chunk-D3Q5QTFY.js +0 -1
- package/public/chunk-ETWBSGPI.js +0 -1
- package/public/chunk-EWS4VSZB.js +0 -1
- package/public/chunk-F5AJLGGI.js +0 -1
- package/public/chunk-G2GGYHA2.js +0 -3
- package/public/chunk-G2KWTNHR.js +0 -1
- package/public/chunk-GDWF2NMA.js +0 -2
- package/public/chunk-GGTS2YBW.js +0 -4
- package/public/chunk-GJG6QZ7P.js +0 -1
- package/public/chunk-GU5F3H4I.js +0 -1
- package/public/chunk-H3BKW5W3.js +0 -1
- package/public/chunk-H4WASUXW.js +0 -1
- package/public/chunk-HUTYOGRH.js +0 -4
- package/public/chunk-IBUR2RIO.js +0 -1
- package/public/chunk-IDJSTIFL.js +0 -1
- package/public/chunk-IP6FLYVL.js +0 -1
- package/public/chunk-IPI77WYV.js +0 -1
- package/public/chunk-J2DDS6ED.js +0 -1
- package/public/chunk-J6ND4K5Q.js +0 -1
- package/public/chunk-J7UDRE66.js +0 -2
- package/public/chunk-JUQRWAIR.js +0 -1
- package/public/chunk-JWGWPSC6.js +0 -1
- package/public/chunk-JWRZMMRO.js +0 -68
- package/public/chunk-JWUEJV6S.js +0 -1
- package/public/chunk-JY5ZEEL2.js +0 -1
- package/public/chunk-KFPYUDGJ.js +0 -1
- package/public/chunk-KIRW7NMH.js +0 -1
- package/public/chunk-KTQBVBY4.js +0 -1
- package/public/chunk-LKJRMUOE.js +0 -1
- package/public/chunk-LVQWSVHA.js +0 -1
- package/public/chunk-LZ7S7WKH.js +0 -1
- package/public/chunk-MDHWQ5V2.js +0 -8
- package/public/chunk-MJP4XVUI.js +0 -1
- package/public/chunk-N5ONV6TU.js +0 -1
- package/public/chunk-N7UWTPTT.js +0 -1
- package/public/chunk-NAICVRJH.js +0 -1
- package/public/chunk-NCFDA3W4.js +0 -1
- package/public/chunk-NIS65GVY.js +0 -1
- package/public/chunk-OBV66CW4.js +0 -1
- package/public/chunk-OF2SRCQW.js +0 -5
- package/public/chunk-OOILCTQ3.js +0 -19
- package/public/chunk-PAZUAFSZ.js +0 -1
- package/public/chunk-PEUDPLH6.js +0 -1
- package/public/chunk-PRGOUVRO.js +0 -1
- package/public/chunk-PWCLNQBI.js +0 -1
- package/public/chunk-Q7EXN4JA.js +0 -1
- package/public/chunk-QE7VI3JB.js +0 -1
- package/public/chunk-QES44GQE.js +0 -1
- package/public/chunk-QMWN5KPC.js +0 -1
- package/public/chunk-R6MQZ2DW.js +0 -1
- package/public/chunk-RESZLSD7.js +0 -1
- package/public/chunk-RGWFM4OK.js +0 -1
- package/public/chunk-RI4GLH22.js +0 -1
- package/public/chunk-RP5JPYDI.js +0 -1
- package/public/chunk-RT25QBCQ.js +0 -1
- package/public/chunk-RVWZNTDJ.js +0 -1
- package/public/chunk-RXDY2NMJ.js +0 -1
- package/public/chunk-SDRRZFEQ.js +0 -1
- package/public/chunk-SPC2DLZR.js +0 -3
- package/public/chunk-TCUQZ3QO.js +0 -1
- package/public/chunk-TPUA4UIN.js +0 -1
- package/public/chunk-TQBVDY26.js +0 -1
- package/public/chunk-U24HWDVU.js +0 -1
- package/public/chunk-U2NM4L2D.js +0 -1
- package/public/chunk-UWYTPKKV.js +0 -1
- package/public/chunk-VKR3GG6K.js +0 -1
- package/public/chunk-VY7HWBNV.js +0 -5
- package/public/chunk-W55SP3LJ.js +0 -1
- package/public/chunk-WP3AD6W5.js +0 -1
- package/public/chunk-XNZA4UBO.js +0 -12
- package/public/chunk-XOPZ7U6G.js +0 -1
- package/public/chunk-XORPUWNC.js +0 -1
- package/public/chunk-XPFMPBEG.js +0 -1
- package/public/chunk-XTYMIZVV.js +0 -1
- package/public/chunk-Y3PXWRYQ.js +0 -1
- package/public/chunk-Y5WP66WK.js +0 -1
- package/public/chunk-YCQCWGBG.js +0 -1
- package/public/chunk-Z5PUNNUZ.js +0 -1
- package/public/chunk-ZCGZM7LU.js +0 -1
- package/public/chunk-ZNN6GWYK.js +0 -19
- package/public/main-O5PA2XOA.js +0 -1
- package/public/media/matter-P563JGDL.svg +0 -8
- package/public/polyfills-34U4WL3Z.js +0 -1
- package/public/styles-CT2LPGES.css +0 -1
package/public/chunk-JWRZMMRO.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import{a as On}from"./chunk-XTYMIZVV.js";import{r as Pn,s as ii}from"./chunk-PRGOUVRO.js";import{a as Vn}from"./chunk-PWCLNQBI.js";import{m as Le,n as ie}from"./chunk-OF2SRCQW.js";import{a as ge}from"./chunk-Z5PUNNUZ.js";import{b as wn}from"./chunk-KTQBVBY4.js";import{C as se,a as En,b as An,c as Dn,e as ce,l as de,t as In,u as Ln,w as Fn}from"./chunk-TPUA4UIN.js";import{b as we}from"./chunk-OBV66CW4.js";import{E as Mn,F as w,H as Oe,K as Bn,i as je,k as Tn,l as Ie}from"./chunk-J7UDRE66.js";import{Aa as hn,Ab as C,Ac as Dt,Bc as kn,Cb as ot,Cc as bn,Db as Xe,Dc as l,Eb as et,Ec as d,F as ze,Fb as T,Fc as me,Gb as a,Hb as c,I as pn,Ib as f,Jb as x,Kb as b,Lb as F,Mb as _n,Mc as Ai,Nb as yn,Nc as E,Rb as G,Rc as Pe,Sb as Ke,Ua as Ye,W as mn,X as Xt,Xb as S,Yb as xe,Za as o,Zb as u,_ as ei,aa as k,d as ne,e as an,ea as ee,ga as V,ha as P,hb as gn,hc as dt,ia as I,ib as ti,ic as j,ja as N,jc as L,kc as p,lc as v,ma as ke,mb as te,mc as h,n as sn,nb as B,nc as $,oa as Ct,oc as tt,pa as un,pb as Cn,pc as xn,qb as nt,qc as Et,rc as Z,sa as fn,sb as ve,sc as Q,tc as J,vc as Sn,w as ln,wc as Be,x as cn,xa as vn,ya as fe,yb as y,yc as O,z as dn,zb as g,zc as At}from"./chunk-HUTYOGRH.js";import{a as Bt,b as wt,e as wa,g as Ea,h as ae}from"./chunk-B4AJQJMI.js";var Nn=wa(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.Enums=rt.Categories=rt.Characteristics=rt.Services=void 0;rt.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"};rt.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"};rt.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};rt.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 $n=Ea(Nn(),1);var pt=(()=>{class e{transform(t){if(typeof t!="number")return t;let n=1e6/t,i=Math.round(t),s=Math.round(n);return`${i}M (${s}K)`}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=nt({name:"convertMired",type:e,pure:!0})}return e})();var Ne=(()=>{class e{$settings=k(we);transform(t,n=this.$settings.env.temperatureUnits){return n==="f"?Math.round((t*1.8+32)*10)/10:Math.round(t*10)/10}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=nt({name:"convertTemp",type:e,pure:!0})}return e})();var Hn=(()=>{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,n=>n.toUpperCase()).trim()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=nt({name:"prettify",type:e,pure:!0})}return e})();var Rn=(()=>{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(n){return new(n||e)};static \u0275pipe=nt({name:"serviceToTranslationString",type:e,pure:!0})}return e})();var Aa=(e,r)=>r.name,Da=(e,r)=>r.key;function Ia(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" (",d(1,1,"settings.display.menu_default"),") ")}function La(e,r){if(e&1&&(a(0,"option",28),p(1),l(2,"serviceToTranslationString"),l(3,"translate"),g(4,Ia,2,3),c()),e&2){let t=r.$implicit,n=u(2);T("value",t),o(),h(" ",d(3,5,d(2,3,t))," "),o(3),C(n.isDefaultType(t)?4:-1)}}function Fa(e,r){if(e&1){let t=G();a(0,"li",8)(1,"label",26),p(2),l(3,"translate"),c(),a(4,"div",10)(5,"select",27),J("ngModelChange",function(i){V(t);let s=u();return Q(s.localService.customType,i)||(s.localService.customType=i),P(i)}),Xe(6,La,5,7,"option",28,ot),c()()()}if(e&2){let t=u();o(2),v(d(3,2,"accessories.custom_type")),o(3),Z("ngModel",t.localService.customType),o(),et(t.customTypeList.sort())}}function Va(e,r){if(e&1){let t=G();a(0,"li",12)(1,"span",13),p(2),l(3,"translate"),c(),a(4,"div",14)(5,"input",29),l(6,"translate"),J("ngModelChange",function(i){V(t);let s=u();return Q(s.localService.onDashboard,i)||(s.localService.onDashboard=i),P(i)}),c(),f(7,"label",30),c()()}if(e&2){let t=u();o(2),v(d(3,3,"accessories.show_on_dashboard")),o(3),Z("ngModel",t.localService.onDashboard),y("aria-label",d(6,5,"accessories.show_on_dashboard"))}}function Pa(e,r){if(e&1&&(a(0,"small"),p(1),c()),e&2){let t=u().$implicit,n=u(3);o(),v(n.JSON.stringify(t.value,null,2))}}function Oa(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;h(" ",t.value," ")}}function Na(e,r){if(e&1&&(a(0,"li",32)(1,"span",33),p(2),l(3,"prettify"),c(),a(4,"span",21),g(5,Pa,2,1,"small")(6,Oa,1,1),c()()),e&2){let t=r.$implicit;o(2),v(d(3,2,t.key)),o(3),C(typeof t.value=="object"?5:6)}}function Ha(e,r){if(e&1&&(a(0,"li",18)(1,"span",31),p(2),l(3,"prettify"),c()(),Xe(4,Na,7,4,"li",32,Da),l(6,"keyvalue")),e&2){let t=r.$implicit;o(2),v(d(3,1,t.name)),o(2),et(d(6,3,t.attributes))}}function Ra(e,r){if(e&1&&(a(0,"li",18)(1,"h6",19),p(2),l(3,"translate"),c()(),Xe(4,Ha,7,5,null,null,Aa)),e&2){let t=u();o(2),v(d(3,1,"accessories.service_info")),o(2),et(t.clusterInfo)}}function $a(e,r){if(e&1){let t=G();a(0,"span",38),S("click",function(){V(t);let i=u().$implicit,s=u(2);return P(s.toggleDetailsVisibility(i))}),p(1),c()}if(e&2){let t=u().$implicit,n=u(2);y("aria-expanded",n.isDetailsVisible[t.uuid]),o(),v(t.description)}}function ja(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;h(" ",t.description," ")}}function Ua(e,r){if(e&1&&(a(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),h("Step: ",t.minStep)}}function Wa(e,r){if(e&1&&(a(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),h("Min: ",t.minValue)}}function Ga(e,r){if(e&1&&(a(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),h("Max: ",t.maxValue)}}function qa(e,r){e&1&&p(0," \xB7 ")}function za(e,r){if(e&1&&(p(0),g(1,qa,1,0)),e&2){let t=r.$implicit,n=r.$index,i=r.$count;h(" ",t," "),o(),C(n!==i-1?1:-1)}}function Ya(e,r){if(e&1&&(a(0,"div"),p(1," Valid: "),Xe(2,za,2,2,null,null,ot),c()),e&2){let t=u(2).$implicit;o(2),et(t.validValues)}}function Ka(e,r){if(e&1&&(a(0,"div",35),g(1,Ua,2,1,"div"),g(2,Wa,2,1,"div"),g(3,Ga,2,1,"div"),g(4,Ya,4,0,"div"),c()),e&2){let t=u().$implicit;o(),C("minStep"in t?1:-1),o(),C("minValue"in t?2:-1),o(),C("maxValue"in t?3:-1),o(),C("validValues"in t?4:-1)}}function Za(e,r){e&1&&p(0," Value: ")}function Qa(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;h(" ",t.value,"% ")}}function Ja(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);h(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function Xa(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;h(" ",d(1,1,t.value)," ")}}function e0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;h(" ",t.value," ")}}function t0(e,r){if(e&1&&g(0,Xa,2,3)(1,e0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function i0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);h(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function n0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;h(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function o0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;h(" ",t.value,"% ")}}function r0(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);h(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function a0(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;h(" ",d(1,1,t.value)," ")}}function s0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;h(" ",t.value," ")}}function l0(e,r){if(e&1&&g(0,a0,2,3)(1,s0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function c0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);h(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function d0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;h(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function p0(e,r){if(e&1&&(a(0,"li",20)(1,"span"),g(2,$a,2,2,"span",34)(3,ja,1,1),g(4,Ka,5,4,"div",35),a(5,"div",36),g(6,Za,1,0),g(7,Qa,1,1)(8,Ja,2,3)(9,t0,2,1),g(10,i0,2,3)(11,n0,2,3),c()(),a(12,"span",37),g(13,o0,1,1)(14,r0,2,3)(15,l0,2,1),g(16,c0,2,3)(17,d0,2,3),c()()),e&2){let t,n,i=r.$implicit,s=u(2);o(2),C("minStep"in i||"minValue"in i||"maxValue"in i||"validValues"in i?2:3),o(2),C(s.isDetailsVisible[i.uuid]?4:-1),o(2),C(s.isDetailsVisible[i.uuid]?6:-1),o(),C((t=i.unit)==="percentage"?7:t==="celsius"?8:9),o(3),C(s.enums[i.type]!=null&&s.enums[i.type][i.value]?10:i.format==="bool"?11:-1),o(3),C((n=i.unit)==="percentage"?13:n==="celsius"?14:15),o(3),C(s.enums[i.type]!=null&&s.enums[i.type][i.value]?16:i.format==="bool"?17:-1)}}function m0(e,r){if(e&1&&(a(0,"li",18)(1,"h6",19),p(2),l(3,"translate"),c()(),a(4,"li",20)(5,"span",13),p(6),l(7,"translate"),c(),a(8,"span",21),p(9),c()(),a(10,"li",20)(11,"span",13),p(12),l(13,"translate"),c(),a(14,"span",21),p(15),c()(),Xe(16,p0,18,7,"li",20,ot)),e&2){let t=u();o(2),v(d(3,5,"accessories.service_info")),o(4),v(d(7,7,"accessories.service")),o(3),v(t.localService.humanType),o(3),v(d(13,9,"accessories.name")),o(3),v(t.localService.serviceName),o(),et(t.localService.serviceCharacteristics)}}function u0(e,r){if(e&1){let t=G();a(0,"span",38),S("click",function(){V(t);let i=u().$implicit,s=u(2);return P(s.toggleDetailsVisibility(i))}),p(1),c()}if(e&2){let t=u().$implicit,n=u(2);y("aria-expanded",n.isDetailsVisible[t.uuid]),o(),v(t.description)}}function f0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;h(" ",t.description," ")}}function v0(e,r){if(e&1&&(a(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),h("Step: ",t.minStep)}}function h0(e,r){if(e&1&&(a(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),h("Min: ",t.minValue)}}function g0(e,r){if(e&1&&(a(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),h("Max: ",t.maxValue)}}function C0(e,r){e&1&&p(0," \xB7 ")}function _0(e,r){if(e&1&&(p(0),g(1,C0,1,0)),e&2){let t=r.$implicit,n=r.$index,i=r.$count;h(" ",t," "),o(),C(n!==i-1?1:-1)}}function y0(e,r){if(e&1&&(a(0,"div"),p(1," Valid: "),Xe(2,_0,2,2,null,null,ot),c()),e&2){let t=u(2).$implicit;o(2),et(t.validValues)}}function x0(e,r){if(e&1&&(a(0,"div",35),g(1,v0,2,1,"div"),g(2,h0,2,1,"div"),g(3,g0,2,1,"div"),g(4,y0,4,0,"div"),c()),e&2){let t=u().$implicit;o(),C("minStep"in t?1:-1),o(),C("minValue"in t?2:-1),o(),C("maxValue"in t?3:-1),o(),C("validValues"in t?4:-1)}}function S0(e,r){e&1&&p(0," Value: ")}function k0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;h(" ",t.value,"% ")}}function b0(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);h(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function T0(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;h(" ",d(1,1,t.value)," ")}}function M0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;h(" ",t.value," ")}}function B0(e,r){if(e&1&&g(0,T0,2,3)(1,M0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function w0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);h(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function E0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;h(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function A0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;h(" ",t.value,"% ")}}function D0(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);h(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function I0(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;h(" ",d(1,1,t.value)," ")}}function L0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;h(" ",t.value," ")}}function F0(e,r){if(e&1&&g(0,I0,2,3)(1,L0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function V0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);h(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function P0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;h(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function O0(e,r){if(e&1&&(a(0,"li",20)(1,"span"),g(2,u0,2,2,"span",34)(3,f0,1,1),g(4,x0,5,4,"div",35),a(5,"div",36),g(6,S0,1,0),g(7,k0,1,1)(8,b0,2,3)(9,B0,2,1),g(10,w0,2,3)(11,E0,2,3),c()(),a(12,"span",37),g(13,A0,1,1)(14,D0,2,3)(15,F0,2,1),g(16,V0,2,3)(17,P0,2,3),c()()),e&2){let t,n,i=r.$implicit,s=u(2);o(2),C("minStep"in i||"minValue"in i||"maxValue"in i||"validValues"in i?2:3),o(2),C(s.isDetailsVisible[i.uuid]?4:-1),o(2),C(s.isDetailsVisible[i.uuid]?6:-1),o(),C((t=i.unit)==="percentage"?7:t==="celsius"?8:9),o(3),C(s.enums[i.type]!=null&&s.enums[i.type][i.value]?10:i.format==="bool"?11:-1),o(3),C((n=i.unit)==="percentage"?13:n==="celsius"?14:15),o(3),C(s.enums[i.type]!=null&&s.enums[i.type][i.value]?16:i.format==="bool"?17:-1)}}function N0(e,r){if(e&1&&(a(0,"ul",5)(1,"li",18)(2,"h6",19),p(3),l(4,"translate"),c()(),a(5,"li",20)(6,"span",13),p(7),l(8,"translate"),c(),a(9,"span",21),p(10),c()(),a(11,"li",20)(12,"span",13),p(13),l(14,"translate"),c(),a(15,"span",21),p(16),c()(),Xe(17,O0,18,7,"li",20,ot),c()),e&2){let t=r.$implicit;o(3),v(d(4,5,"accessories.service_info")),o(4),v(d(8,7,"accessories.service")),o(3),v(t.humanType),o(3),v(d(14,9,"accessories.name")),o(3),v(t.serviceName),o(),et(t.serviceCharacteristics)}}function H0(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),a(4,"span",21),p(5),c()()),e&2){let t=u(2);o(2),v(d(3,2,"child_bridge.config.platform")),o(3),v(t.matchedCachedAccessory.platform)}}function R0(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),a(4,"span",21),p(5),c()()),e&2){let t=u(2);o(2),v(d(3,2,"child_bridge.config.accessory")),o(3),v(t.matchedCachedAccessory.accessory)}}function $0(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),a(4,"span",21),p(5),c()(),g(6,H0,6,4,"li",20),g(7,R0,6,4,"li",20)),e&2){let t=u();o(2),v(d(3,4,"accessories.plugin")),o(3),v(t.matchedCachedAccessory.plugin),o(),C(t.matchedCachedAccessory.platform?6:-1),o(),C(t.matchedCachedAccessory.accessory?7:-1)}}function j0(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),p(2),c(),a(3,"span",21),p(4),c()()),e&2){let t=r.$implicit;o(2),v(t.key),o(2),v(t.value)}}function U0(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),p(2,"Protocol"),c(),a(3,"span",21),p(4,"Matter"),c()(),a(5,"li",20)(6,"span",13),p(7,"Bridge"),c(),a(8,"span",21),p(9),c()()),e&2){let t=u();o(9),v(t.localService.instance.name)}}function W0(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),a(4,"span",21),p(5),c()()),e&2){let t=u();o(2),v(d(3,2,"child_bridge.config.name")),o(3),v(t.matchedCachedAccessory.bridge)}}function G0(e,r){if(e&1&&(a(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),a(4,"span",21),p(5),c()(),a(6,"li",20)(7,"span",13),p(8),l(9,"translate"),c(),a(10,"span",21),p(11),c()(),a(12,"li",20)(13,"span",39),p(14,"aid"),c(),a(15,"span",21),p(16),c()(),a(17,"li",20)(18,"span",39),p(19,"iid"),c(),a(20,"span",21),p(21),c()()),e&2){let t=u();o(2),v(d(3,6,"accessories.bridge_ip")),o(3),v(t.localService.instance.ipAddress),o(3),v(d(9,8,"accessories.bridge_port")),o(3),v(t.localService.instance.port),o(5),v(t.localService.aid),o(5),v(t.localService.iid)}}function q0(e,r){if(e&1){let t=G();a(0,"li",20)(1,"span",39),p(2,"UUID"),c(),a(3,"span",21),p(4),c()(),a(5,"li",40)(6,"span",13),p(7),l(8,"translate"),c(),a(9,"button",41),S("click",function(){V(t);let i=u();return P(i.removeSingleCachedAccessories())}),f(10,"i",42),c()()}if(e&2){let t=u();o(4),v(t.matchedCachedAccessory.UUID),o(3),v(d(8,2,"accessories.button_remove"))}}var jn=(()=>{class e{$activeModal=k(Le);$modal=k(ie);modalData=k(ii);injector=k(ee);accessoryCache=this.modalData.accessoryCache;pairingCache=this.modalData.pairingCache;service=this.modalData.service;localAccessoryCache=[];localPairingCache=[];localService;isDetailsVisible={};accessoryInformation;extraServices=[];matchedCachedAccessory=null;enums=$n.Enums;customTypeList=[];isMatterAccessory=!1;clusterInfo=[];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"]];ngOnInit(){let t=this.accessoryCache,n=this.pairingCache,i=this.service;if(!t||!n||!i){console.error("AccessoryInfoComponent: required data not provided"),this.$activeModal.dismiss("Missing required data");return}if(this.localAccessoryCache=t,this.localPairingCache=n,this.localService=i,this.isMatterAccessory=this.localService.protocol==="matter",this.isMatterAccessory){this.customTypeList=[...new Set(this.matterCustomTypeList.filter(m=>m.includes(this.localService.deviceType)).flat())];let s=this.localService.clusters||{};this.clusterInfo=Object.entries(s).map(([m,D])=>({name:m,attributes:D})),this.accessoryInformation=Object.entries(this.localService.accessoryInformation||{}).map(([m,D])=>({key:m,value:D})),this.accessoryInformation.unshift({key:"Device Type",value:this.localService.deviceType||"Unknown"}),this.localService.customType||(this.localService.customType=this.localService.deviceType)}else this.customTypeList=[...new Set(this.hapCustomTypeList.filter(s=>s.includes(this.localService.type)).flat())],this.accessoryInformation=Object.entries(this.localService.accessoryInformation).map(([s,m])=>({key:s,value:m})),this.matchedCachedAccessory=this.matchToCachedAccessory(),this.localService.type==="LockMechanism"&&Object.values(this.localService.linkedServices).filter(s=>s.type==="LockManagement").forEach(s=>this.extraServices.push(s)),this.localService.customType||(this.localService.customType=this.localService.type)}removeSingleCachedAccessories(){this.$activeModal.close();let t=te([{provide:Pn,useValue:{selectedBridge:this.localService.instance.username.replaceAll(":","")}}],this.injector);this.$modal.open(On,{size:"lg",backdrop:"static",injector:t})}isDefaultType(t){return this.isMatterAccessory?t===this.localService.deviceType:t===this.localService.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.localService.instance.username,n=this.localPairingCache.find(i=>i._username===t);if(n){let i=n._main?"cachedAccessories":`cachedAccessories.${n._id}`,s=this.localAccessoryCache.filter(m=>m.$cacheFile===i);if(s.length){let m=this.localService.accessoryInformation.Name,D=this.localService.accessoryInformation["Serial Number"],z=s.filter(q=>{let le=q.services.find(ue=>ue.constructorName==="AccessoryInformation"),Se=le?.characteristics.find(ue=>ue.displayName==="Name"),Fe=le?.characteristics.find(ue=>ue.displayName==="Serial Number");return Se?.value===m&&Fe?.value===D});if(z.length===1)return wt(Bt({},z[0]),{bridge:n.name})}}}Number=Number;JSON=JSON;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],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(n,i){n&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),p(3),c(),a(4,"button",3),l(5,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(6,"div",4)(7,"ul",5)(8,"li",6),f(9,"span",7),l(10,"translate"),f(11,"br")(12,"span",7),l(13,"translate"),c(),a(14,"li",8)(15,"label",9),p(16),l(17,"translate"),c(),a(18,"div",10)(19,"input",11),S("ngModelChange",function(m){return i.localService.customName=m}),c()()(),g(20,Fa,8,4,"li",8),a(21,"li",12)(22,"span",13),p(23),l(24,"translate"),c(),a(25,"div",14)(26,"input",15),l(27,"translate"),J("ngModelChange",function(m){return Q(i.localService.hidden,m)||(i.localService.hidden=m),m}),c(),f(28,"label",16),c()(),g(29,Va,8,7,"li",12),c(),a(30,"ul",5),g(31,Ra,6,3)(32,m0,18,11),c(),Xe(33,N0,19,11,"ul",5,ot),a(35,"ul",17)(36,"li",18)(37,"h6",19),p(38),l(39,"translate"),c()(),g(40,$0,8,6),Xe(41,j0,5,2,"li",20,ot),g(43,U0,10,1),a(44,"li",20)(45,"span",13),p(46),l(47,"translate"),c(),a(48,"span",21),p(49),c()(),g(50,W0,6,4,"li",20),g(51,G0,22,10),g(52,q0,11,4),c()(),a(53,"div",22),f(54,"div",13),a(55,"div",23)(56,"button",24),l(57,"translate"),S("click",function(){return i.dismissModal()}),p(58),l(59,"translate"),c()(),f(60,"div",25),c()()),n&2&&(y("aria-labelledby","accessory-info-modal-title"),o(3),h(" ",i.localService.customName||i.localService.serviceName," "),o(),y("aria-label",d(5,23,"form.button_close")),o(5),T("innerHTML",d(10,25,"accessories.only_ui"),Ye),o(3),T("innerHTML",d(13,27,"accessories.only_ui_2"),Ye),o(4),v(d(17,29,"accessories.custom_name")),o(3),T("ngModel",i.localService.customName||i.localService.serviceName),o(),C(i.customTypeList.length?20:-1),o(3),v(d(24,31,"accessories.hide_this_accessory")),o(3),Z("ngModel",i.localService.hidden),y("aria-label",d(27,33,"accessories.hide_this_accessory")),o(3),C(i.localService.hidden?-1:29),o(2),C(i.isMatterAccessory?31:32),o(2),et(i.extraServices),o(5),v(d(39,35,"accessories.accessory_info")),o(2),C(i.matchedCachedAccessory?40:-1),o(),et(i.accessoryInformation),o(2),C(i.isMatterAccessory?43:-1),o(3),v(d(47,37,"users.label_username")),o(3),v(i.localService.instance.username),o(),C(i.matchedCachedAccessory?50:-1),o(),C(i.isMatterAccessory?-1:51),o(),C(i.matchedCachedAccessory?52:-1),o(4),y("aria-label",d(57,39,"form.button_close")),o(2),h(" ",d(59,41,"form.button_close")," "))},dependencies:[se,Ln,Fn,Dn,An,In,ce,de,Tn,w,Ne,Hn,pt,Rn],encapsulation:2})}return e})();var re=(()=>{class e{injector=k(ee);$api=k(Bn);$auth=k(wn);$destroyRef=k(ke);$modal=k(ie);$toastr=k(Oe);$translate=k(Mn);$ws=k(Vn);accessoryCache=[];pairingCache=[];customAttributesApplied=new Set;io;connectedSubscription;connectedSubscription2;saveLayoutSubscription;hiddenTypes=["InputSource","LockManagement","CameraRTPStreamManagement","ProtocolInformation"];layoutSaved=new ne;accessoryData=new ne;readyForControl=!1;hapReadyForControl=!1;matterReadyForControl=!1;accessories={services:[]};rooms=fn([],{});accessoryLayout;originalLayout;constructor(){this.$auth.user.admin&&this.loadCachedData()}loadCachedData(){return ae(this,null,function*(){try{this.accessoryCache=yield this.$api.get("/server/cached-accessories")}catch(t){console.error(t)}try{this.pairingCache=yield this.$api.get("/server/pairings")}catch(t){console.error(t)}})}showAccessoryInformation(t){return ae(this,null,function*(){let n=te([{provide:ii,useValue:{service:t,accessoryCache:this.accessoryCache,pairingCache:this.pairingCache}}],this.injector),i=this.$modal.open(jn,{size:"lg",backdrop:"static",injector:n});try{yield i.result}catch{}finally{this.saveLayout()}return!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.set([]),this.accessories={services:[]},this.customAttributesApplied.clear(),delete this.accessoryLayout,delete this.originalLayout}start(){return ae(this,null,function*(){this.readyForControl=!1,this.hapReadyForControl=!1,this.matterReadyForControl=!1,this.io=this.$ws.connectToNamespace("accessories"),yield this.loadLayout(),this.connectedSubscription=this.io.connected.subscribe(()=>{this.io.socket.emit("get-accessories")}),this.io.socket.connected&&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",()=>ae(this,null,function*(){this.stop(),yield this.start()})),this.io.socket.on("matter-accessories-reload-required",()=>ae(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(n=>({name:n.name,services:n.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(n=>n.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(ge(this.$destroyRef)).subscribe({next:()=>this.layoutSaved.next(void 0),error:n=>{console.error(n),this.$toastr.error(n.message,this.$translate.instant("toast.title_error"))}})}loadLayout(){return ae(this,null,function*(){this.accessoryLayout=yield sn(this.io.request("get-layout",{user:this.$auth.user.username})),this.originalLayout=JSON.parse(JSON.stringify(this.accessoryLayout)),this.rooms.set(this.accessoryLayout.map(t=>({name:t.name,services:[]})))})}servicesMatch(t,n){return n.protocol==="matter"||n.uniqueId?.startsWith("matter:")?t.uniqueId===n.uniqueId&&t.bridge===(n.instance?.username||n.bridge):t.uniqueId===n.uniqueId?!0:t.name===(n.serviceName||n.name)&&t.serial===(n.accessoryInformation?.["Serial Number"]||n.serial)&&t.bridge===(n.instance?.username||n.bridge)&&t.uuid===n.uuid}mergeWithUndiscoveredServices(t){if(!this.originalLayout)return t;let n=JSON.parse(JSON.stringify(t)),i=new Set;return n.forEach(s=>{s.services.forEach(m=>{let D=null;for(let z of this.originalLayout){for(let q of z.services)if(q.name&&this.servicesMatch(q,m)){D=q;break}if(D)break}D&&i.add(D.uniqueId)})}),this.originalLayout.forEach(s=>{s.services.forEach(m=>{if(i.has(m.uniqueId)||!m.name)return;let D=n.find(z=>z.name===s.name);D||(D={name:s.name,services:[]},n.push(D)),D.services.push({uniqueId:m.uniqueId,name:m.name,bridge:m.bridge,serial:m.serial,aid:m.aid,iid:m.iid,uuid:m.uuid,customName:m.customName,customType:m.customType,hidden:m.hidden,onDashboard:m.onDashboard})})}),n.filter(s=>s.services.length)}parseServices(t){if(!this.accessories.services.length){this.accessories.services=t;return}t.forEach(n=>{let i=this.accessories.services.find(s=>s.uniqueId===n.uniqueId);n.type==="LockMechanism"&&this.attachLockManagementToMechanism(n),i?Object.assign(i,n):this.accessories.services.push(n)})}sortIntoRooms(){let t=new Set(this.hiddenTypes);this.accessories.services.forEach(n=>{if(t.has(n.type))return;if(n.linked&&(n.linkedServices={},n.linked.forEach(s=>{n.linkedServices[s]=this.accessories.services.find(m=>m.aid===n.aid&&m.iid===s&&m.instance.username===n.instance.username)})),!this.rooms().find(s=>s.services.find(m=>m.uniqueId===n.uniqueId))){let s=null,m=null;for(let D of this.accessoryLayout)if(m=D.services.find(z=>this.servicesMatch(z,n)),m){s=D;break}s&&m?(m.customType&&(n.customType=m.customType),m.customName&&(n.customName=m.customName),m.hidden&&(n.hidden=m.hidden),m.onDashboard&&(n.onDashboard=m.onDashboard),this.customAttributesApplied.add(n.uniqueId),this.rooms.update(D=>D.map(z=>z.name===s.name?wt(Bt({},z),{services:[...z.services,n]}):z))):(this.customAttributesApplied.add(n.uniqueId),this.rooms().some(z=>z.name==="Default Room")?this.rooms.update(z=>z.map(q=>q.name==="Default Room"?wt(Bt({},q),{services:[...q.services,n]}):q)):this.rooms.update(z=>[...z,{name:"Default Room",services:[n]}]))}})}orderRooms(){this.rooms.update(t=>t.map(n=>{let i=this.accessoryLayout.find(m=>m.name===n.name),s=[...n.services].sort((m,D)=>{let z=i.services.findIndex(le=>le.uniqueId===m.uniqueId),q=i.services.findIndex(le=>le.uniqueId===D.uniqueId);return z<q?-1:z>q?1:0});return wt(Bt({},n),{services:s})}))}applyCustomAttributes(){this.rooms().forEach(t=>{let n=this.accessoryLayout.find(i=>i.name===t.name);n&&t.services.forEach(i=>{if(this.customAttributesApplied.has(i.uniqueId))return;let s=n.services.find(D=>D.uniqueId===i.uniqueId);if(!s)return;let m=i;s.customType&&(m.customType=s.customType),s.customName&&(m.customName=s.customName),s.hidden&&(m.hidden=s.hidden),s.onDashboard&&(m.onDashboard=s.onDashboard),this.customAttributesApplied.add(i.uniqueId)})})}generateHelpers(){this.accessories.services.forEach(t=>{let n=t;n.protocol==="matter"?n.getCluster||(n.getCluster=i=>{let s=n.clusters||{};return s[i]?{attributes:s[i],setAttributes:m=>new Promise(D=>{if(!this.matterReadyForControl){console.warn("Matter control attempted but not ready for control:",{matterReadyForControl:this.matterReadyForControl,uniqueId:t.uniqueId,cluster:i}),D(void 0);return}return this.io.socket.emit("accessory-control",{set:{uniqueId:t.uniqueId,cluster:i,attributes:m}}),D(void 0)})}:null}):t.getCharacteristic||(t.getCharacteristic=i=>{let s=t.serviceCharacteristics.find(m=>m.type===i);return s?(s.setValue=m=>new Promise(D=>(this.readyForControl||D(void 0),this.io.socket.emit("accessory-control",{set:{uniqueId:t.uniqueId,aid:t.aid,siid:t.iid,iid:s.iid,value:m}}),D(void 0))),s):null})})}attachLockManagementToMechanism(t){let n=[],i=[];for(let s of this.accessories.services)s.type==="LockMechanism"&&s.accessoryInformation.Name===t.accessoryInformation.Name&&s.accessoryInformation["Serial Number"]===t.accessoryInformation["Serial Number"]?n.push(s):s.type==="LockManagement"&&s.accessoryInformation.Name===t.accessoryInformation.Name&&s.accessoryInformation["Serial Number"]===t.accessoryInformation["Serial Number"]&&i.push(s);if(n.length===1&&i.length===1){let s=i[0];t.linkedServices||(t.linkedServices={}),t.linkedServices[s.iid]=s}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Xt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Y=new ei("AccessoryManageModalData"),he=(()=>{class e{destroyRef=k(ke);$activeModal=k(Le);cdr=k(Pe);modalData=k(Y);service;$accessories;ngOnInit(){if(!this.modalData.service||!this.modalData.$accessories){console.error("BaseManageComponent: service or $accessories not provided"),this.$activeModal.dismiss("Missing required data");return}this.service=this.modalData.service,this.$accessories=this.modalData.$accessories,this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(ge(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}createDebouncedSubscription(t,n,i=500){t.pipe(ze(i),ge(this.destroyRef)).subscribe(n)}applySliderGradient(t,n=".noUi-target"){requestAnimationFrame(()=>{document.querySelectorAll(n).forEach(s=>{s.style.background=t})})}blurTarget(t){t.target.blur()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,i){},encapsulation:2,changeDetection:0})}return e})();var _t=(function(e){return e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values",e})(_t||{}),Ze=(function(e){return e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue",e})(Ze||{});function z0(e){return oi(e)&&typeof e.from=="function"}function oi(e){return typeof e=="object"&&typeof e.to=="function"}function Un(e){e.parentElement.removeChild(e)}function Di(e){return e!=null}function Wn(e){e.preventDefault()}function Y0(e){return e.filter(function(r){return this[r]?!1:this[r]=!0},{})}function K0(e,r){return Math.round(e/r)*r}function Z0(e,r){var t=e.getBoundingClientRect(),n=e.ownerDocument,i=n.documentElement,s=Yn(n);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),r?t.top+s.y-i.clientTop:t.left+s.x-i.clientLeft}function it(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}function Gn(e,r,t){t>0&&(Ue(e,r),setTimeout(function(){ni(e,r)},t))}function qn(e){return Math.max(Math.min(e,100),0)}function ri(e){return Array.isArray(e)?e:[e]}function Q0(e){e=String(e);var r=e.split(".");return r.length>1?r[1].length:0}function Ue(e,r){e.classList&&!/\s/.test(r)?e.classList.add(r):e.className+=" "+r}function ni(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 J0(e,r){return e.classList?e.classList.contains(r):new RegExp("\\b"+r+"\\b").test(e.className)}function Yn(e){var r=window.pageXOffset!==void 0,t=(e.compatMode||"")==="CSS1Compat",n=r?window.pageXOffset:t?e.documentElement.scrollLeft:e.body.scrollLeft,i=r?window.pageYOffset:t?e.documentElement.scrollTop:e.body.scrollTop;return{x:n,y:i}}function X0(){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 es(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r)}catch{}return e}function ts(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Li(e,r){return 100/(r-e)}function Ii(e,r,t){return r*100/(e[t+1]-e[t])}function is(e,r){return Ii(e,e[0]<0?r+Math.abs(e[0]):r-e[0],0)}function ns(e,r){return r*(e[1]-e[0])/100+e[0]}function jt(e,r){for(var t=1;e>=r[t];)t+=1;return t}function os(e,r,t){if(t>=e.slice(-1)[0])return 100;var n=jt(t,e),i=e[n-1],s=e[n],m=r[n-1],D=r[n];return m+is([i,s],t)/Li(m,D)}function rs(e,r,t){if(t>=100)return e.slice(-1)[0];var n=jt(t,r),i=e[n-1],s=e[n],m=r[n-1],D=r[n];return ns([i,s],(t-m)*Li(m,D))}function as(e,r,t,n){if(n===100)return n;var i=jt(n,e),s=e[i-1],m=e[i];return t?n-s>(m-s)/2?m:s:r[i-1]?e[i-1]+K0(n-e[i-1],r[i-1]):n}var ss=(function(){function e(r,t,n){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var i,s=[];for(Object.keys(r).forEach(function(m){s.push([ri(r[m]),m])}),s.sort(function(m,D){return m[0][0]-D[0][0]}),i=0;i<s.length;i++)this.handleEntryPoint(s[i][1],s[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=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=Ii(this.xVal,r,n);return t},e.prototype.getAbsoluteDistance=function(r,t,n){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);!n&&r===this.xPct[i+1]&&i++,t===null&&(t=[]);var s,m=1,D=t[i],z=0,q=0,le=0,Se=0;for(n?s=(r-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):s=(this.xPct[i+1]-r)/(this.xPct[i+1]-this.xPct[i]);D>0;)z=this.xPct[i+1+Se]-this.xPct[i+Se],t[i+Se]*m+100-s*100>100?(q=z*s,m=(D-100*s)/t[i+Se],s=1):(q=t[i+Se]*z/100*m,m=0),n?(le=le-q,this.xPct.length+Se>=1&&Se--):(le=le+q,this.xPct.length-Se>=1&&Se++),D=t[i+Se]*m;return r+le},e.prototype.toStepping=function(r){return r=os(this.xVal,this.xPct,r),r},e.prototype.fromStepping=function(r){return rs(this.xVal,this.xPct,r)},e.prototype.getStep=function(r){return r=as(this.xPct,this.xSteps,this.snap,r),r},e.prototype.getDefaultStep=function(r,t,n){var i=jt(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])/n},e.prototype.getNearbySteps=function(r){var t=jt(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(Q0);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 n;if(r==="min"?n=0:r==="max"?n=100:n=parseFloat(r),!it(n)||!it(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?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]=Ii([this.xVal[r],this.xVal[r+1]],t,0)/Li(this.xPct[r],this.xPct[r+1]);var n=(this.xVal[r+1]-this.xVal[r])/this.xNumSteps[r],i=Math.ceil(Number(n.toFixed(3))-1),s=this.xVal[r]+this.xNumSteps[r]*i;this.xHighestCompleteStep[r]=s}},e})(),zn={to:function(e){return e===void 0?"":e.toFixed(2)},from:Number},ls={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"},mt={tooltips:".__tooltips",aria:".__aria"};function cs(e,r){if(!it(r))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=r}function ds(e,r){if(!it(r))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=r}function ps(e,r){if(!it(r))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=r}function ms(e,r){if(!it(r))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=r}function us(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 ss(r,e.snap||!1,e.singleStep)}function fs(e,r){if(r=ri(r),!Array.isArray(r)||!r.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=r.length,e.start=r}function vs(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=r}function hs(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=r}function gs(e,r){if(typeof r!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=r}function Kn(e,r){var t=[!1],n;if(r==="lower"?r=[!0,!1]:r==="upper"&&(r=[!1,!0]),r===!0||r===!1){for(n=1;n<e.handles;n++)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 Zn(e,r){if(!it(r))throw new Error("noUiSlider: 'margin' option must be numeric.");r!==0&&(e.margin=e.spectrum.getDistance(r))}function _s(e,r){if(!it(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 ys(e,r){var t;if(!it(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||it(r[0])||it(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 n=r[0]+r[1],i=e.spectrum.xVal[0],s=e.spectrum.xVal[e.spectrum.xVal.length-1];if(n/(s-i)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function xs(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 Ss(e,r){if(typeof r!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=r.indexOf("tap")>=0,n=r.indexOf("drag")>=0,i=r.indexOf("fixed")>=0,s=r.indexOf("snap")>=0,m=r.indexOf("hover")>=0,D=r.indexOf("unconstrained")>=0,z=r.indexOf("invert-connects")>=0,q=r.indexOf("drag-all")>=0,le=r.indexOf("smooth-steps")>=0;if(i){if(e.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Zn(e,e.start[1]-e.start[0])}if(z&&e.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(D&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:t||s,drag:n,dragAll:q,smoothSteps:le,fixed:i,snap:s,hover:m,unconstrained:D,invertConnects:z}}function ks(e,r){if(r!==!1)if(r===!0||oi(r)){e.tooltips=[];for(var t=0;t<e.handles;t++)e.tooltips.push(r)}else{if(r=ri(r),r.length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");r.forEach(function(n){if(typeof n!="boolean"&&!oi(n))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=r}}function bs(e,r){if(r.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=r}function Ts(e,r){if(!oi(r))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=r}function Ms(e,r){if(!z0(r))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=r}function Bs(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=r}function ws(e,r){e.documentElement=r}function Es(e,r){if(typeof r!="string"&&r!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=r}function As(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 Qn(e){var r={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:zn,format:zn},t={step:{r:!1,t:cs},keyboardPageMultiplier:{r:!1,t:ds},keyboardMultiplier:{r:!1,t:ps},keyboardDefaultStep:{r:!1,t:ms},start:{r:!0,t:fs},connect:{r:!0,t:Kn},direction:{r:!0,t:xs},snap:{r:!1,t:vs},animate:{r:!1,t:hs},animationDuration:{r:!1,t:gs},range:{r:!0,t:us},orientation:{r:!1,t:Cs},margin:{r:!1,t:Zn},limit:{r:!1,t:_s},padding:{r:!1,t:ys},behaviour:{r:!0,t:Ss},ariaFormat:{r:!1,t:Ts},format:{r:!1,t:Ms},tooltips:{r:!1,t:ks},keyboardSupport:{r:!0,t:Bs},documentElement:{r:!1,t:ws},cssPrefix:{r:!0,t:Es},cssClasses:{r:!0,t:As},handleAttributes:{r:!1,t:bs}},n={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:ls,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(t).forEach(function(z){if(!Di(e[z])&&n[z]===void 0){if(t[z].r)throw new Error("noUiSlider: '"+z+"' is required.");return}t[z].t(r,Di(e[z])?e[z]:n[z])}),r.pips=e.pips;var i=document.createElement("div"),s=i.style.msTransform!==void 0,m=i.style.transform!==void 0;r.transformRule=m?"transform":s?"msTransform":"webkitTransform";var D=[["left","top"],["right","bottom"]];return r.style=D[r.dir][r.ort],r}function Ds(e,r,t){var n=X0(),i=ts(),s=i&&es(),m=e,D,z,q,le,Se,Fe,ue=r.spectrum,st=[],be=[],qe=[],vi=0,lt={},Ht=!1,Mt=e.ownerDocument,Yt=r.documentElement||Mt.documentElement,Kt=Mt.body,ta=Mt.dir==="rtl"||r.ort===1?0:100;function ct(_,M){var A=Mt.createElement("div");return M&&Ue(A,M),_.appendChild(A),A}function ia(_,M){var A=ct(_,r.cssClasses.origin),H=ct(A,r.cssClasses.handle);if(ct(H,r.cssClasses.touchArea),H.setAttribute("data-handle",String(M)),r.keyboardSupport&&(H.setAttribute("tabindex","0"),H.addEventListener("keydown",function(W){return Ca(W,M)})),r.handleAttributes!==void 0){var U=r.handleAttributes[M];Object.keys(U).forEach(function(W){H.setAttribute(W,U[W])})}return H.setAttribute("role","slider"),H.setAttribute("aria-orientation",r.ort?"vertical":"horizontal"),M===0?Ue(H,r.cssClasses.handleLower):M===r.handles-1&&Ue(H,r.cssClasses.handleUpper),A.handle=H,A}function hi(_,M){return M?ct(_,r.cssClasses.connect):!1}function na(_,M){z=ct(M,r.cssClasses.connects),q=[],le=[],le.push(hi(z,_[0]));for(var A=0;A<r.handles;A++)q.push(ia(M,A)),qe[A]=A,le.push(hi(z,_[A+1]))}function oa(_){Ue(_,r.cssClasses.target),r.dir===0?Ue(_,r.cssClasses.ltr):Ue(_,r.cssClasses.rtl),r.ort===0?Ue(_,r.cssClasses.horizontal):Ue(_,r.cssClasses.vertical);var M=getComputedStyle(_).direction;return M==="rtl"?Ue(_,r.cssClasses.textDirectionRtl):Ue(_,r.cssClasses.textDirectionLtr),ct(_,r.cssClasses.base)}function ra(_,M){return!r.tooltips||!r.tooltips[M]?!1:ct(_.firstChild,r.cssClasses.tooltip)}function Wi(){return m.hasAttribute("disabled")}function gi(_){var M=q[_];return M.hasAttribute("disabled")}function aa(_){_!=null?(q[_].setAttribute("disabled",""),q[_].handle.removeAttribute("tabindex")):(m.setAttribute("disabled",""),q.forEach(function(M){M.handle.removeAttribute("tabindex")}))}function sa(_){_!=null?(q[_].removeAttribute("disabled"),q[_].handle.setAttribute("tabindex","0")):(m.removeAttribute("disabled"),q.forEach(function(M){M.removeAttribute("disabled"),M.handle.setAttribute("tabindex","0")}))}function Ci(){Fe&&(Rt("update"+mt.tooltips),Fe.forEach(function(_){_&&Un(_)}),Fe=null)}function Gi(){Ci(),Fe=q.map(ra),ki("update"+mt.tooltips,function(_,M,A){if(!(!Fe||!r.tooltips)&&Fe[M]!==!1){var H=_[M];r.tooltips[M]!==!0&&(H=r.tooltips[M].to(A[M])),Fe[M].innerHTML=H}})}function la(){Rt("update"+mt.aria),ki("update"+mt.aria,function(_,M,A,H,U){qe.forEach(function(W){var oe=q[W],K=Zt(be,W,0,!0,!0,!0),_e=Zt(be,W,100,!0,!0,!0),ye=U[W],Te=String(r.ariaFormat.to(A[W]));K=ue.fromStepping(K).toFixed(1),_e=ue.fromStepping(_e).toFixed(1),ye=ue.fromStepping(ye).toFixed(1),oe.children[0].setAttribute("aria-valuemin",K),oe.children[0].setAttribute("aria-valuemax",_e),oe.children[0].setAttribute("aria-valuenow",ye),oe.children[0].setAttribute("aria-valuetext",Te)})})}function ca(_){if(_.mode===_t.Range||_.mode===_t.Steps)return ue.xVal;if(_.mode===_t.Count){if(_.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var M=_.values-1,A=100/M,H=[];M--;)H[M]=M*A;return H.push(100),qi(H,_.stepped)}return _.mode===_t.Positions?qi(_.values,_.stepped):_.mode===_t.Values?_.stepped?_.values.map(function(U){return ue.fromStepping(ue.getStep(ue.toStepping(U)))}):_.values:[]}function qi(_,M){return _.map(function(A){return ue.fromStepping(M?ue.getStep(A):A)})}function da(_){function M(ye,Te){return Number((ye+Te).toFixed(7))}var A=ca(_),H={},U=ue.xVal[0],W=ue.xVal[ue.xVal.length-1],oe=!1,K=!1,_e=0;return A=Y0(A.slice().sort(function(ye,Te){return ye-Te})),A[0]!==U&&(A.unshift(U),oe=!0),A[A.length-1]!==W&&(A.push(W),K=!0),A.forEach(function(ye,Te){var Me,Ce,De,$e=ye,Ve=A[Te+1],He,Mi,Bi,wi,nn,Ei,on,rn=_.mode===_t.Steps;for(rn&&(Me=ue.xNumSteps[Te]),Me||(Me=Ve-$e),Ve===void 0&&(Ve=$e),Me=Math.max(Me,1e-7),Ce=$e;Ce<=Ve;Ce=M(Ce,Me)){for(He=ue.toStepping(Ce),Mi=He-_e,nn=Mi/(_.density||1),Ei=Math.round(nn),on=Mi/Ei,De=1;De<=Ei;De+=1)Bi=_e+De*on,H[Bi.toFixed(5)]=[ue.fromStepping(Bi),0];wi=A.indexOf(Ce)>-1?Ze.LargeValue:rn?Ze.SmallValue:Ze.NoValue,!Te&&oe&&Ce!==Ve&&(wi=0),Ce===Ve&&K||(H[He.toFixed(5)]=[Ce,wi]),_e=He}}),H}function pa(_,M,A){var H,U,W=Mt.createElement("div"),oe=(H={},H[Ze.None]="",H[Ze.NoValue]=r.cssClasses.valueNormal,H[Ze.LargeValue]=r.cssClasses.valueLarge,H[Ze.SmallValue]=r.cssClasses.valueSub,H),K=(U={},U[Ze.None]="",U[Ze.NoValue]=r.cssClasses.markerNormal,U[Ze.LargeValue]=r.cssClasses.markerLarge,U[Ze.SmallValue]=r.cssClasses.markerSub,U),_e=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],ye=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];Ue(W,r.cssClasses.pips),Ue(W,r.ort===0?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical);function Te(Ce,De){var $e=De===r.cssClasses.value,Ve=$e?_e:ye,He=$e?oe:K;return De+" "+Ve[r.ort]+" "+He[Ce]}function Me(Ce,De,$e){if($e=M?M(De,$e):$e,$e!==Ze.None){var Ve=ct(W,!1);Ve.className=Te($e,r.cssClasses.marker),Ve.style[r.style]=Ce+"%",$e>Ze.NoValue&&(Ve=ct(W,!1),Ve.className=Te($e,r.cssClasses.value),Ve.setAttribute("data-value",String(De)),Ve.style[r.style]=Ce+"%",Ve.innerHTML=String(A.to(De)))}}return Object.keys(_).forEach(function(Ce){Me(Ce,_[Ce][0],_[Ce][1])}),W}function _i(){Se&&(Un(Se),Se=null)}function yi(_){_i();var M=da(_),A=_.filter,H=_.format||{to:function(U){return String(Math.round(U))}};return Se=m.appendChild(pa(M,A,H)),Se}function zi(){var _=D.getBoundingClientRect(),M="offset"+["Width","Height"][r.ort];return r.ort===0?_.width||D[M]:_.height||D[M]}function ht(_,M,A,H){var U=function(oe){var K=ma(oe,H.pageOffset,H.target||M);if(!K||Wi()&&!H.doNotReject||J0(m,r.cssClasses.tap)&&!H.doNotReject||_===n.start&&K.buttons!==void 0&&K.buttons>1||H.hover&&K.buttons)return!1;s||K.preventDefault(),K.calcPoint=K.points[r.ort],A(K,H)},W=[];return _.split(" ").forEach(function(oe){M.addEventListener(oe,U,s?{passive:!0}:!1),W.push([oe,U])}),W}function ma(_,M,A){var H=_.type.indexOf("touch")===0,U=_.type.indexOf("mouse")===0,W=_.type.indexOf("pointer")===0,oe=0,K=0;if(_.type.indexOf("MSPointer")===0&&(W=!0),_.type==="mousedown"&&!_.buttons&&!_.touches)return!1;if(H){var _e=function(Me){var Ce=Me.target;return Ce===A||A.contains(Ce)||_.composed&&_.composedPath().shift()===A};if(_.type==="touchstart"){var ye=Array.prototype.filter.call(_.touches,_e);if(ye.length>1)return!1;oe=ye[0].pageX,K=ye[0].pageY}else{var Te=Array.prototype.find.call(_.changedTouches,_e);if(!Te)return!1;oe=Te.pageX,K=Te.pageY}}return M=M||Yn(Mt),(U||W)&&(oe=_.clientX+M.x,K=_.clientY+M.y),_.pageOffset=M,_.points=[oe,K],_.cursor=U||W,_}function Yi(_){var M=_-Z0(D,r.ort),A=M*100/zi();return A=qn(A),r.dir?100-A:A}function ua(_){var M=100,A=!1;return q.forEach(function(H,U){if(!gi(U)){var W=be[U],oe=Math.abs(W-_),K=oe===100&&M===100,_e=oe<M,ye=oe<=M&&_>W;(_e||ye||K)&&(A=U,M=oe)}}),A}function fa(_,M){_.type==="mouseout"&&_.target.nodeName==="HTML"&&_.relatedTarget===null&&xi(_,M)}function va(_,M){if(navigator.appVersion.indexOf("MSIE 9")===-1&&_.buttons===0&&M.buttonsProperty!==0)return xi(_,M);var A=(r.dir?-1:1)*(_.calcPoint-M.startCalcPoint),H=A*100/M.baseSize;Zi(A>0,H,M.locations,M.handleNumbers,M.connect)}function xi(_,M){M.handle&&(ni(M.handle,r.cssClasses.active),vi-=1),M.listeners.forEach(function(A){Yt.removeEventListener(A[0],A[1])}),vi===0&&(ni(m,r.cssClasses.drag),Ti(),_.cursor&&(Kt.style.cursor="",Kt.removeEventListener("selectstart",Wn))),r.events.smoothSteps&&(M.handleNumbers.forEach(function(A){gt(A,be[A],!0,!0,!1,!1)}),M.handleNumbers.forEach(function(A){Ee("update",A)})),M.handleNumbers.forEach(function(A){Ee("change",A),Ee("set",A),Ee("end",A)})}function Si(_,M){if(!M.handleNumbers.some(gi)){var A;if(M.handleNumbers.length===1){var H=q[M.handleNumbers[0]];A=H.children[0],vi+=1,Ue(A,r.cssClasses.active)}_.stopPropagation();var U=[],W=ht(n.move,Yt,va,{target:_.target,handle:A,connect:M.connect,listeners:U,startCalcPoint:_.calcPoint,baseSize:zi(),pageOffset:_.pageOffset,handleNumbers:M.handleNumbers,buttonsProperty:_.buttons,locations:be.slice()}),oe=ht(n.end,Yt,xi,{target:_.target,handle:A,listeners:U,doNotReject:!0,handleNumbers:M.handleNumbers}),K=ht("mouseout",Yt,fa,{target:_.target,handle:A,listeners:U,doNotReject:!0,handleNumbers:M.handleNumbers});U.push.apply(U,W.concat(oe,K)),_.cursor&&(Kt.style.cursor=getComputedStyle(_.target).cursor,q.length>1&&Ue(m,r.cssClasses.drag),Kt.addEventListener("selectstart",Wn,!1)),M.handleNumbers.forEach(function(_e){Ee("start",_e)})}}function ha(_){_.stopPropagation();var M=Yi(_.calcPoint),A=ua(M);A!==!1&&(r.events.snap||Gn(m,r.cssClasses.tap,r.animationDuration),gt(A,M,!0,!0),Ti(),Ee("slide",A,!0),Ee("update",A,!0),r.events.snap?Si(_,{handleNumbers:[A]}):(Ee("change",A,!0),Ee("set",A,!0)))}function ga(_){var M=Yi(_.calcPoint),A=ue.getStep(M),H=ue.fromStepping(A);Object.keys(lt).forEach(function(U){U.split(".")[0]==="hover"&<[U].forEach(function(W){W.call(Jt,H)})})}function Ca(_,M){if(Wi()||gi(M))return!1;var A=["Left","Right"],H=["Down","Up"],U=["PageDown","PageUp"],W=["Home","End"];r.dir&&!r.ort?A.reverse():r.ort&&!r.dir&&(H.reverse(),U.reverse());var oe=_.key.replace("Arrow",""),K=oe===U[0],_e=oe===U[1],ye=oe===H[0]||oe===A[0]||K,Te=oe===H[1]||oe===A[1]||_e,Me=oe===W[0],Ce=oe===W[1];if(!ye&&!Te&&!Me&&!Ce)return!0;_.preventDefault();var De;if(Te||ye){var $e=ye?0:1,Ve=en(M),He=Ve[$e];if(He===null)return!1;He===!1&&(He=ue.getDefaultStep(be[M],ye,r.keyboardDefaultStep)),_e||K?He*=r.keyboardPageMultiplier:He*=r.keyboardMultiplier,He=Math.max(He,1e-7),He=(ye?-1:1)*He,De=st[M]+He}else Ce?De=r.spectrum.xVal[r.spectrum.xVal.length-1]:De=r.spectrum.xVal[0];return gt(M,ue.toStepping(De),!0,!0),Ee("slide",M),Ee("update",M),Ee("change",M),Ee("set",M),!1}function Ki(_){_.fixed||q.forEach(function(M,A){ht(n.start,M.children[0],Si,{handleNumbers:[A]})}),_.tap&&ht(n.start,D,ha,{}),_.hover&&ht(n.move,D,ga,{hover:!0}),_.drag&&le.forEach(function(M,A){if(!(M===!1||A===0||A===le.length-1)){var H=q[A-1],U=q[A],W=[M],oe=[H,U],K=[A-1,A];Ue(M,r.cssClasses.draggable),_.fixed&&(W.push(H.children[0]),W.push(U.children[0])),_.dragAll&&(oe=q,K=qe),W.forEach(function(_e){ht(n.start,_e,Si,{handles:oe,handleNumbers:K,connect:M})})}})}function ki(_,M){lt[_]=lt[_]||[],lt[_].push(M),_.split(".")[0]==="update"&&q.forEach(function(A,H){Ee("update",H)})}function _a(_){return _===mt.aria||_===mt.tooltips}function Rt(_){var M=_&&_.split(".")[0],A=M?_.substring(M.length):_;Object.keys(lt).forEach(function(H){var U=H.split(".")[0],W=H.substring(U.length);(!M||M===U)&&(!A||A===W)&&(!_a(W)||A===W)&&delete lt[H]})}function Ee(_,M,A){Object.keys(lt).forEach(function(H){var U=H.split(".")[0];_===U&<[H].forEach(function(W){W.call(Jt,st.map(r.format.to),M,st.slice(),A||!1,be.slice(),Jt)})})}function Zt(_,M,A,H,U,W,oe){var K;return q.length>1&&!r.events.unconstrained&&(H&&M>0&&(K=ue.getAbsoluteDistance(_[M-1],r.margin,!1),A=Math.max(A,K)),U&&M<q.length-1&&(K=ue.getAbsoluteDistance(_[M+1],r.margin,!0),A=Math.min(A,K))),q.length>1&&r.limit&&(H&&M>0&&(K=ue.getAbsoluteDistance(_[M-1],r.limit,!1),A=Math.min(A,K)),U&&M<q.length-1&&(K=ue.getAbsoluteDistance(_[M+1],r.limit,!0),A=Math.max(A,K))),r.padding&&(M===0&&(K=ue.getAbsoluteDistance(0,r.padding[0],!1),A=Math.max(A,K)),M===q.length-1&&(K=ue.getAbsoluteDistance(100,r.padding[1],!0),A=Math.min(A,K))),oe||(A=ue.getStep(A)),A=qn(A),A===_[M]&&!W?!1:A}function bi(_,M){var A=r.ort;return(A?M:_)+", "+(A?_:M)}function Zi(_,M,A,H,U){var W=A.slice(),oe=H[0],K=r.events.smoothSteps,_e=[!_,_],ye=[_,!_];H=H.slice(),_&&H.reverse(),H.length>1?H.forEach(function(Me,Ce){var De=Zt(W,Me,W[Me]+M,_e[Ce],ye[Ce],!1,K);De===!1?M=0:(M=De-W[Me],W[Me]=De)}):_e=ye=[!0];var Te=!1;H.forEach(function(Me,Ce){Te=gt(Me,A[Me]+M,_e[Ce],ye[Ce],!1,K)||Te}),Te&&(H.forEach(function(Me){Ee("update",Me),Ee("slide",Me)}),U!=null&&Ee("drag",oe))}function Qi(_,M){return r.dir?100-_-M:_}function ya(_,M){be[_]=M,st[_]=ue.fromStepping(M);var A=Qi(M,0)-ta,H="translate("+bi(A+"%","0")+")";if(q[_].style[r.transformRule]=H,r.events.invertConnects&&be.length>1){var U=be.every(function(W,oe,K){return oe===0||W>=K[oe-1]});if(Ht!==!U){Ma();return}}$t(_),$t(_+1),Ht&&($t(_-1),$t(_+2))}function Ti(){qe.forEach(function(_){var M=be[_]>50?-1:1,A=3+(q.length+M*_);q[_].style.zIndex=String(A)})}function gt(_,M,A,H,U,W){return U||(M=Zt(be,_,M,A,H,!1,W)),M===!1?!1:(ya(_,M),!0)}function $t(_){if(le[_]){var M=be.slice();Ht&&M.sort(function(K,_e){return K-_e});var A=0,H=100;_!==0&&(A=M[_-1]),_!==le.length-1&&(H=M[_]);var U=H-A,W="translate("+bi(Qi(A,U)+"%","0")+")",oe="scale("+bi(U/100,"1")+")";le[_].style[r.transformRule]=W+" "+oe}}function Ji(_,M){return _===null||_===!1||_===void 0||(typeof _=="number"&&(_=String(_)),_=r.format.from(_),_!==!1&&(_=ue.toStepping(_)),_===!1||isNaN(_))?be[M]:_}function Qt(_,M,A){var H=ri(_),U=be[0]===void 0;M=M===void 0?!0:M,r.animate&&!U&&Gn(m,r.cssClasses.tap,r.animationDuration),qe.forEach(function(K){gt(K,Ji(H[K],K),!0,!1,A)});var W=qe.length===1?0:1;if(U&&ue.hasNoSize()&&(A=!0,be[0]=0,qe.length>1)){var oe=100/(qe.length-1);qe.forEach(function(K){be[K]=K*oe})}for(;W<qe.length;++W)qe.forEach(function(K){gt(K,be[K],!0,!0,A)});Ti(),qe.forEach(function(K){Ee("update",K),H[K]!==null&&M&&Ee("set",K)})}function xa(_){Qt(r.start,_)}function Sa(_,M,A,H){if(_=Number(_),!(_>=0&&_<qe.length))throw new Error("noUiSlider: invalid handle number, got: "+_);gt(_,Ji(M,_),!0,!0,H),Ee("update",_),A&&Ee("set",_)}function Xi(_){if(_===void 0&&(_=!1),_)return st.length===1?st[0]:st.slice(0);var M=st.map(r.format.to);return M.length===1?M[0]:M}function ka(){for(Rt(mt.aria),Rt(mt.tooltips),Object.keys(r.cssClasses).forEach(function(_){ni(m,r.cssClasses[_])});m.firstChild;)m.removeChild(m.firstChild);delete m.noUiSlider}function en(_){var M=be[_],A=ue.getNearbySteps(M),H=st[_],U=A.thisStep.step,W=null;if(r.snap)return[H-A.stepBefore.startValue||null,A.stepAfter.startValue-H||null];U!==!1&&H+U>A.stepAfter.startValue&&(U=A.stepAfter.startValue-H),H>A.thisStep.startValue?W=A.thisStep.step:A.stepBefore.step===!1?W=!1:W=H-A.stepBefore.highestStep,M===100?U=null:M===0&&(W=null);var oe=ue.countStepDecimals();return U!==null&&U!==!1&&(U=Number(U.toFixed(oe))),W!==null&&W!==!1&&(W=Number(W.toFixed(oe))),[W,U]}function ba(){return qe.map(en)}function Ta(_,M){var A=Xi(),H=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];H.forEach(function(W){_[W]!==void 0&&(t[W]=_[W])});var U=Qn(t);H.forEach(function(W){_[W]!==void 0&&(r[W]=U[W])}),ue=U.spectrum,r.margin=U.margin,r.limit=U.limit,r.padding=U.padding,r.pips?yi(r.pips):_i(),r.tooltips?Gi():Ci(),be=[],Qt(Di(_.start)?_.start:A,M),_.connect&&tn()}function tn(){for(;z.firstChild;)z.removeChild(z.firstChild);for(var _=0;_<=r.handles;_++)le[_]=hi(z,r.connect[_]),$t(_);Ki({drag:r.events.drag,fixed:!0})}function Ma(){Ht=!Ht,Kn(r,r.connect.map(function(_){return!_})),tn()}function Ba(){D=oa(m),na(r.connect,D),Ki(r.events),Qt(r.start),r.pips&&yi(r.pips),r.tooltips&&Gi(),la()}Ba();var Jt={destroy:ka,steps:ba,on:ki,off:Rt,get:Xi,set:Qt,setHandle:Sa,reset:xa,disable:aa,enable:sa,__moveHandles:function(_,M,A){Zi(_,M,be,A)},options:t,updateOptions:Ta,target:m,removePips:_i,removeTooltips:Ci,getPositions:function(){return be.slice()},getTooltips:function(){return Fe},getOrigins:function(){return q},pips:yi};return Jt}function Jn(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=Qn(r),n=Ds(e,t,r);return e.noUiSlider=n,n}var Fi=class{to(r){return String(parseFloat(parseFloat(String(r)).toFixed(2)))}from(r){return parseFloat(r)}},pe=(()=>{class e{constructor(t,n,i){this.ngZone=t,this.el=n,this.renderer=i,this.handles=[],this.config={},this.change=new Ct(!0),this.update=new Ct(!0),this.slide=new Ct(!0),this.set=new Ct(!0),this.start=new Ct(!0),this.end=new Ct(!0),this.onChange=Function.prototype,this.cleanups=[],this.eventHandler=(s,m,D,z)=>{let q=this.toValues(m),le=!1;if(this.value===void 0){this.value=q;return}Array.isArray(q)&&this.value[D]!=q[D]&&(le=!0),!Array.isArray(q)&&this.value!=q&&(le=!0),le&&this.ngZone.run(()=>{s.observers.length>0&&s.emit(q),this.onChange(q)}),Array.isArray(q)?this.value[D]=q[D]:this.value=q},this.defaultKeyHandler=s=>{let m=this.slider.steps(),D=parseInt(s.target.getAttribute("data-handle")),z=1,q=1,le=0,Se=0;switch(s.which){case 34:q=this.config.pageSteps;break;case 40:case 37:z=-1,le=m[D][0],s.preventDefault();break;case 33:q=this.config.pageSteps;break;case 38:case 39:le=m[D][1],s.preventDefault();break;default:break}Se=z*q*le;let Fe;Array.isArray(this.value)?(Fe=[...this.value],Fe[D]=Fe[D]+Se):Fe=this.value+Se,this.slider.set(Fe)}}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 n=t.map(this.config.format.from);return n.length==1?n[0]:n}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 n=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(n.tooltips=this.tooltips||this.config.tooltips,n.format=this.format||this.config.format||new Fi,this.ngZone.runOutsideAngular(()=>{this.slider=Jn(this.el.nativeElement.querySelector("div"),Object.assign(this.config,n))}),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 s=this.config.onKeydown||this.defaultKeyHandler;this.ngZone.runOutsideAngular(()=>{this.cleanups.push(this.renderer.listen(i,"keydown",s),this.renderer.listen(i,"click",()=>{i.focus()}))})}}this.slider.on("set",(i,s,m)=>{this.eventHandler(this.set,i,s,m)}),this.slider.on("update",(i,s,m)=>{this.update.observers.length>0&&this.ngZone.run(()=>{this.update.emit(this.toValues(i))})}),this.slider.on("change",(i,s,m)=>{this.change.observers.length>0&&this.ngZone.run(()=>{this.change.emit(this.toValues(i))})}),this.slider.on("slide",(i,s,m)=>{this.eventHandler(this.slide,i,s,m)}),this.slider.on("start",(i,s,m)=>{this.start.observers.length>0&&this.ngZone.run(()=>{this.start.emit(this.toValues(i))})}),this.slider.on("end",(i,s,m)=>{this.end.observers.length>0&&this.ngZone.run(()=>{this.end.emit(this.toValues(i))})})}}return e.\u0275fac=function(t){return new(t||e)(ti(un),ti(hn),ti(gn))},e.\u0275cmp=B({type:e,selectors:[["nouislider"]],hostVars:2,hostBindings:function(t,n){t&2&&j("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:[Sn([{provide:En,useExisting:mn(()=>e),multi:!0}]),vn],decls:1,vars:1,template:function(t,n){t&1&&F(0,"div"),t&2&&y("disabled",n.disabled?!0:void 0)},styles:["[_nghost-%COMP%]{display:block;margin-top:1rem;margin-bottom:1rem}"]}),e})();var ai=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Ls(e,r){if(e&1){let t=G();a(0,"button",6),S("click",function(i){V(t);let s=u(2);return P(s.setTargetMode(0,i))}),a(1,"div",7),f(2,"i",8),c(),p(3),l(4,"translate"),a(5,"div",9),f(6,"i",10),c()()}if(e&2){let t=u(2);o(2),L(O(5,ai,t.targetMode===0,t.targetMode!==0)),o(),h(" ",d(4,3,"accessories.control.manual")," ")}}function Fs(e,r){if(e&1){let t=G();a(0,"button",6),S("click",function(i){V(t);let s=u(2);return P(s.setTargetMode(1,i))}),a(1,"div",7),f(2,"i",8),c(),p(3),l(4,"translate"),a(5,"div",9),f(6,"i",10),c()()}if(e&2){let t=u(2);o(2),L(O(5,ai,t.targetMode===1,t.targetMode!==1)),o(),h(" ",d(4,3,"accessories.control.auto")," ")}}function Vs(e,r){if(e&1&&(a(0,"h6",12),p(1),l(2,"translate"),c(),a(3,"div",5),l(4,"translate"),g(5,Ls,7,8,"button",13),g(6,Fs,7,8,"button",13),c()),e&2){let t=u();o(),v(d(2,4,"accessories.control.mode")),o(2),y("aria-label",d(4,6,"accessories.control.mode_control")),o(2),C(t.targetModeValidValues.includes(0)?5:-1),o(),C(t.targetModeValidValues.includes(1)?6:-1)}}function Ps(e,r){if(e&1){let t=G();a(0,"h6",12),p(1),l(2,"translate"),c(),a(3,"nouislider",14),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetRotationSpeed.value,i)||(s.targetRotationSpeed.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onTargetRotationSpeedChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value,"%"),o(2),T("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),Z("ngModel",t.targetRotationSpeed.value)}}var Xn=(()=>{class e extends he{targetState;targetMode;targetModeValidValues=[];targetRotationSpeed;targetRotationSpeedChanged=new ne;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,n){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(n)}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("TargetAirPurifierState").setValue(this.targetMode),this.blurTarget(n)}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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5),l(7,"translate"),a(8,"button",6),S("click",function(m){return i.setTargetState(0,m)}),a(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),a(13,"div",9),f(14,"i",10),c()(),a(15,"button",6),S("click",function(m){return i.setTargetState(1,m)}),a(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),a(20,"div",9),f(21,"i",10),c()()(),g(22,Vs,7,8),g(23,Ps,4,8),c(),f(24,"div",11),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,11,"form.button_close")),o(3),y("aria-label",d(7,13,"accessories.control.state_control")),o(4),L(O(19,ai,i.targetState===0,i.targetState!==0)),o(),h(" ",d(12,15,"accessories.control.off")," "),o(6),L(O(22,ai,i.targetState===1,i.targetState!==1)),o(),h(" ",d(19,17,"accessories.control.on")," "),o(4),C(i.targetModeValidValues.length?22:-1),o(),C(i.targetRotationSpeed?23:-1))},dependencies:[se,ce,de,pe,w],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 X=(()=>{class e{downTimeout;done=!1;touchInProgress=!1;touchStartTime=0;duration=E(350,{});longClick=Ai();shortClick=Ai();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(n){return new(n||e)};static \u0275dir=Cn({type:e,selectors:[["","shortClick",""],["","longClick",""]],hostBindings:function(n,i){n&1&&S("keyup.enter",function(m){return i.onEnter(m)})("mouseup",function(m){return i.onMouseUp(m)})("touchend",function(m){return i.onTouchEnd(m)})("touchstart",function(m){return i.onMouseDown(m)})("mousedown",function(m){return i.onMouseDown(m)})("mousemove",function(){return i.onMouseMove()})("touchmove",function(){return i.onMouseMove()})},inputs:{duration:[1,"duration"]},outputs:{longClick:"longClick",shortClick:"shortClick"}})}return e})();var Os=(e,r)=>({"accessory-on":e,purifying:r});function Ns(e,r){if(e&1&&(a(0,"div",18),p(1),c()),e&2){let t,n=u(2);o(),h("",(t=n.service().values)==null?null:t.RotationSpeed,"%")}}function Hs(e,r){e&1&&(a(0,"div",18),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.on")))}function Rs(e,r){if(e&1&&g(0,Ns,2,1,"div",18)(1,Hs,3,3,"div",18),e&2){let t=u();C("RotationSpeed"in t.service().values?0:1)}}function $s(e,r){e&1&&(a(0,"div",18),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.idle")))}function js(e,r){e&1&&(a(0,"div",18),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.off")))}var eo=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);hasTargetValidValues=!1;service=E.required({});readyForControl=E(!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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Xn,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-air-purifier"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(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),c()(),N(),a(18,"div",17),p(19),c(),g(20,Rs,2,1)(21,$s,3,3,"div",18)(22,js,3,3,"div",18),c()()),n&2){let s,m;L(O(7,Os,((s=i.service().values)==null?null:s.Active)&&!("CurrentAirPurifierState"in i.service().values)||((s=i.service().values)==null?null:s.Active)&&"CurrentAirPurifierState"in i.service().values&&((s=i.service().values)==null?null:s.CurrentAirPurifierState)!==0||((s=i.service().values)==null?null:s.On),((s=i.service().values)==null?null:s.Active)&&!("CurrentAirPurifierState"in i.service().values)||((s=i.service().values)==null?null:s.Active)&&"CurrentAirPurifierState"in i.service().values&&((s=i.service().values)==null?null:s.CurrentAirPurifierState)===2||((s=i.service().values)==null?null:s.On))),o(2),y("aria-label",d(3,5,"accessories.core.air_purifier")),o(17),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.Active&&!("CurrentAirPurifierState"in i.service().values)||(m=i.service().values)!=null&&m.Active&&"CurrentAirPurifierState"in i.service().values&&((m=i.service().values)==null?null:m.CurrentAirPurifierState)===2||(m=i.service().values)!=null&&m.On?20:(m=i.service().values)!=null&&m.Active&&!("CurrentAirPurifierState"in i.service().values)||(m=i.service().values)!=null&&m.Active&&"CurrentAirPurifierState"in i.service().values&&((m=i.service().values)==null?null:m.CurrentAirPurifierState)===1||(m=i.service().values)!=null&&m.On?21:22)}},dependencies:[X,w],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 Us=()=>[3,4],Ws=()=>[1,2],Gs=(e,r,t,n)=>({"accessory-on":e,"fill-red":r,"fill-orange":t,"fill-green":n}),qs=(e,r)=>({"grey-text":e,"red-text":r}),to=(()=>{class e{service=E.required({});labels=["Unknown","Excellent","Good","Fair","Inferior","Poor"];static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-air-quality-sensor"]],inputs:{service:[1,"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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),F(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),b()(),N(),x(21,"div",20),p(22),b(),x(23,"div",21),p(24),b()()()),n&2){let s,m,D;L(Dt(11,Gs,((s=i.service().values)==null?null:s.AirQuality)===5,((s=i.service().values)==null?null:s.AirQuality)===5,Be(9,Us).includes((s=i.service().values)==null?null:s.AirQuality),Be(10,Ws).includes((s=i.service().values)==null?null:s.AirQuality))),o(2),y("aria-label",d(3,7,"accessories.core.air_quality_sensor")),o(20),v(i.service().customName||i.service().serviceName),o(),L(O(16,qs,((m=i.service().values)==null?null:m.AirQuality)<5,((m=i.service().values)==null?null:m.AirQuality)===5)),o(),h(" ",i.labels[((D=i.service().values)==null?null:D.AirQuality)||0]," ")}},dependencies:[w],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 zs(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.battery_notcharging")," ")}function Ys(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.battery_charging")," ")}function Ks(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.battery_notchargeable")," ")}function Zs(e,r){e&1&&(x(0,"span",10),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.battery_low")))}function Qs(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.battery_charged")," ")}function Js(e,r){if(e&1&&g(0,Ks,2,3)(1,Zs,3,3,"span",10)(2,Qs,2,3),e&2){let t,n=u(2);C(((t=n.service().values)==null?null:t.ChargingState)===2?0:((t=n.service().values)==null?null:t.StatusLowBattery)===1||((t=n.service().values)==null?null:t.BatteryLevel)===0?1:2)}}function Xs(e,r){if(e&1&&g(0,Ys,2,3)(1,Js,3,1),e&2){let t,n=u();C(((t=n.service().values)==null?null:t.ChargingState)===1?0:1)}}var io=(()=>{class e{service=E.required({});Math=Math;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-battery"]],inputs:{service:[1,"service"]},decls:15,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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"rect",5)(7,"rect",6),x(8,"text",7),p(9),b()()(),N(),x(10,"div",8),p(11),b(),x(12,"div",9),g(13,zs,2,3)(14,Xs,2,1),b()()()),n&2){let s,m,D,z,q,le;j("accessory-on",((s=i.service().values)==null?null:s.ChargingState)===1),o(2),y("aria-label",d(3,9,"accessories.core.battery")),o(3),y("width",i.Math.round(29/100*(((m=i.service().values)==null?null:m.BatteryLevel)||0)))("fill",((D=i.service().values)==null?null:D.ChargingState)===1?"#4caf50":((D=i.service().values)==null?null:D.StatusLowBattery)===1?"#e69533":"#808080")("fill-opacity",((z=i.service().values)==null?null:z.ChargingState)===1||((z=i.service().values)==null?null:z.StatusLowBattery)===1?"0.5":"1"),o(4),h(" ",((q=i.service().values)==null?null:q.BatteryLevel)||0,"% "),o(2),v(i.service().customName||i.service().serviceName),o(2),C(((le=i.service().values)==null?null:le.ChargingState)===0?13:14)}},dependencies:[w],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 el(e,r){e&1&&(x(0,"div",16),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function tl(e,r){e&1&&(x(0,"div",17),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var no=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-carbon-dioxide-sensor"]],inputs:{service:[1,"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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"text",5),p(7," CO2 "),b(),F(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),b()(),N(),x(17,"div",15),p(18),b(),g(19,el,3,3,"div",16)(20,tl,3,3,"div",17),b()()),n&2){let s,m;j("accessory-on",(s=i.service().values)==null?null:s.CarbonDioxideDetected),o(2),y("aria-label",d(3,5,"accessories.core.carbon_dioxide_sensor")),o(16),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.CarbonDioxideDetected?19:20)}},dependencies:[w],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 il(e,r){e&1&&(x(0,"div",16),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function nl(e,r){e&1&&(x(0,"div",17),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var oo=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-carbon-monoxide-sensor"]],inputs:{service:[1,"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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"text",5),p(7," CO "),b(),F(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),b()(),N(),x(17,"div",15),p(18),b(),g(19,il,3,3,"div",16)(20,nl,3,3,"div",17),b()()),n&2){let s,m;j("accessory-on",(s=i.service().values)==null?null:s.CarbonMonoxideDetected),o(2),y("aria-label",d(3,5,"accessories.core.carbon_monoxide_sensor")),o(16),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.CarbonMonoxideDetected?19:20)}},dependencies:[w],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 ol(e,r){e&1&&(x(0,"div",9),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.open")))}function rl(e,r){e&1&&(x(0,"div",10),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.closed")))}var ro=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-contact-sensor"]],inputs:{service:[1,"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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7),b()(),N(),x(9,"div",8),p(10),b(),g(11,ol,3,3,"div",9)(12,rl,3,3,"div",10),b()()),n&2){let s,m;j("accessory-on",(s=i.service().values)==null?null:s.ContactSensorState),o(2),y("aria-label",d(3,5,"accessories.core.contact_sensor")),o(8),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.ContactSensorState?11:12)}},dependencies:[w],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 al(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.closed")," ")}function sl(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u(2);$(" ",d(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function ll(e,r){if(e&1&&g(0,al,2,3)(1,sl,2,4),e&2){let t=u();C((t.service.values==null?null:t.service.values.CurrentPosition)===0?0:1)}}function cl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.opening"),"... ")}function dl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.closing"),"... ")}var ao=(()=>{class e extends he{targetMode;targetPositionChanged=new ne;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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5)(7,"div",6),g(8,ll,2,1)(9,cl,2,3)(10,dl,2,3),c()(),a(11,"h6",7),p(12),l(13,"translate"),c(),a(14,"nouislider",8),J("ngModelChange",function(m){return Q(i.targetPosition.value,m)||(i.targetPosition.value=m),m}),S("ngModelChange",function(){return i.onTargetPositionChange()}),c(),a(15,"div",9)(16,"span",10),p(17),l(18,"translate"),c(),a(19,"span",10),p(20),l(21,"translate"),c()(),a(22,"h6",7),p(23),l(24,"translate"),c(),a(25,"nouislider",11),J("ngModelChange",function(m){return Q(i.service.getCharacteristic("CurrentPosition").value,m)||(i.service.getCharacteristic("CurrentPosition").value=m),m}),c(),a(26,"div",9)(27,"span",10),p(28),l(29,"translate"),c(),a(30,"span",10),p(31),l(32,"translate"),c()()(),f(33,"div",12),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,20,"form.button_close")),o(5),C((i.service.values==null?null:i.service.values.PositionState)===2?8:(i.service.values==null?null:i.service.values.PositionState)===1?9:(i.service.values==null?null:i.service.values.PositionState)===0?10:-1),o(4),$("",d(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),o(2),T("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),Z("ngModel",i.targetPosition.value),o(3),v(d(18,24,"accessories.control.closed")),o(3),v(d(21,26,"accessories.control.open")),o(3),$(" ",d(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),o(2),T("min",0)("max",100)("step",1)("disabled",!0),Z("ngModel",i.service.getCharacteristic("CurrentPosition").value),o(3),v(d(29,30,"accessories.control.closed")),o(3),v(d(32,32,"accessories.control.open")))},dependencies:[pe,se,ce,de,w],encapsulation:2,changeDetection:0})}return e})();function pl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.closed")," ")}function ml(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t,n=u(2);$(" ",d(1,2,"accessories.control.open")," ",(t=n.service().values)==null?null:t.CurrentPosition,"% ")}}function ul(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.open")," ")}function fl(e,r){if(e&1&&(a(0,"div",11),g(1,pl,2,3),g(2,ml,2,4),g(3,ul,2,3),c()),e&2){let t,n,i,s=u();o(),C(((t=s.service().values)==null?null:t.CurrentPosition)===0?1:-1),o(),C(((n=s.service().values)==null?null:n.CurrentPosition)>0&&((n=s.service().values)==null?null:n.CurrentPosition)<100?2:-1),o(),C(((i=s.service().values)==null?null:i.CurrentPosition)===100?3:-1)}}function vl(e,r){e&1&&(a(0,"div",12),p(1),l(2,"translate"),c()),e&2&&(o(),h("",d(2,1,"accessories.control.opening"),"..."))}function hl(e,r){e&1&&(a(0,"div",12),p(1),l(2,"translate"),c()),e&2&&(o(),h("",d(2,1,"accessories.control.closing"),"..."))}var so=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(ao,{size:"md",backdrop:"static",injector:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-door"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"line",8)(10,"rect",9),c()(),N(),a(11,"div",10),p(12),c(),g(13,fl,4,3,"div",11)(14,vl,3,3,"div",12)(15,hl,3,3,"div",12),c()()),n&2){let s,m;j("accessory-on",(s=i.service().values)==null?null:s.CurrentPosition),o(2),y("aria-label",d(3,5,"accessories.core.door")),o(10),v(i.service().customName||i.service().serviceName),o(),C(((m=i.service().values)==null?null:m.PositionState)===2?13:((m=i.service().values)==null?null:m.PositionState)===1?14:((m=i.service().values)==null?null:m.PositionState)===0?15:-1)}},dependencies:[X,w],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 yt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function gl(e,r){if(e&1){let t=G();a(0,"div",5),l(1,"translate"),a(2,"button",7),S("click",function(i){V(t);let s=u();return P(s.setActive(0,i))}),a(3,"div",8),f(4,"i",9),c(),p(5),l(6,"translate"),a(7,"div",10),f(8,"i",11),c()(),a(9,"button",7),S("click",function(i){V(t);let s=u();return P(s.setActive(1,i))}),a(10,"div",8),f(11,"i",9),c(),p(12),l(13,"translate"),a(14,"div",10),f(15,"i",11),c()()()}if(e&2){let t=u();y("aria-label",d(1,7,"accessories.control.mode_control")),o(4),L(O(13,yt,(t.service.values==null?null:t.service.values.Active)===0,(t.service.values==null?null:t.service.values.Active)!==0)),o(),h(" ",d(6,9,"accessories.control.off")," "),o(6),L(O(16,yt,(t.service.values==null?null:t.service.values.Active)===1,(t.service.values==null?null:t.service.values.Active)!==1)),o(),h(" ",d(13,11,"accessories.control.on")," ")}}function Cl(e,r){if(e&1){let t=G();a(0,"div",5),l(1,"translate"),a(2,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetState(0,i))}),a(3,"div",8),f(4,"i",9),c(),p(5),l(6,"translate"),a(7,"div",10),f(8,"i",11),c()(),a(9,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetState(1,i))}),a(10,"div",8),f(11,"i",9),c(),p(12),l(13,"translate"),a(14,"div",10),f(15,"i",11),c()(),a(16,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetState(2,i))}),a(17,"div",8),f(18,"i",9),c(),p(19),l(20,"translate"),a(21,"div",10),f(22,"i",11),c()()()}if(e&2){let t=u();y("aria-label",d(1,10,"accessories.control.media_control")),o(4),L(O(18,yt,(t.service.values==null?null:t.service.values.CurrentMediaState)===0,(t.service.values==null?null:t.service.values.CurrentMediaState)!==0)),o(),h(" ",d(6,12,"accessories.control.play")," "),o(6),L(O(21,yt,(t.service.values==null?null:t.service.values.CurrentMediaState)===1,(t.service.values==null?null:t.service.values.CurrentMediaState)!==1)),o(),h(" ",d(13,14,"accessories.control.pause")," "),o(6),L(O(24,yt,(t.service.values==null?null:t.service.values.CurrentMediaState)===2,(t.service.values==null?null:t.service.values.CurrentMediaState)!==2)),o(),h(" ",d(20,16,"accessories.control.stop")," ")}}function _l(e,r){if(e&1){let t=G();a(0,"h6"),p(1),l(2,"translate"),c(),a(3,"div",12),l(4,"translate"),a(5,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetMode(!1,i))}),a(6,"div",8),f(7,"i",9),c(),p(8),l(9,"translate"),a(10,"div",10),f(11,"i",11),c()(),a(12,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetMode(!0,i))}),a(13,"div",8),f(14,"i",9),c(),p(15),l(16,"translate"),a(17,"div",10),f(18,"i",11),c()()()}if(e&2){let t=u();o(),h(" ",d(2,8,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),o(2),y("aria-label",d(4,10,"accessories.control.mute_control")),o(4),L(O(16,yt,!t.targetMode,t.targetMode)),o(),h(" ",d(9,12,"accessories.control.not_mute")," "),o(6),L(O(19,yt,t.targetMode,!t.targetMode)),o(),h(" ",d(16,14,"accessories.control.mute")," ")}}function yl(e,r){if(e&1){let t=G();a(0,"h6",13),p(1),l(2,"translate"),c(),a(3,"nouislider",14),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetVolume.value,i)||(s.targetVolume.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onVolumeStateChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),o(2),T("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),Z("ngModel",t.targetVolume.value)}}var lo=(()=>{class e extends he{targetMode;targetVolume;targetVolumeChanged=new ne;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,n){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),this.blurTarget(n)}setActive(t,n){this.service.getCharacteristic("Active").setValue(t),this.blurTarget(n)}setTargetState(t,n){this.service.getCharacteristic("TargetMediaState").setValue(t),this.blurTarget(n)}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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4),g(6,gl,16,19,"div",5)(7,Cl,23,27,"div",5),g(8,_l,19,22),g(9,yl,4,8),c(),f(10,"div",6),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,5,"form.button_close")),o(3),C("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),o(2),C("Mute"in i.service.values?8:-1),o(),C(i.targetVolume?9:-1))},dependencies:[se,ce,de,pe,w],encapsulation:2,changeDetection:0})}return e})();var xl=()=>[0,1],Sl=(e,r)=>({"accessory-on":e,paused:r}),kl=()=>["Speaker","SmartSpeaker"];function bl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.play")," ")}function Tl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.pause")," ")}function Ml(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.stop")," ")}function Bl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" \xB7 ",d(1,1,"accessories.control.mute")," ")}function wl(e,r){if(e&1&&p(0),e&2){let t,n=u(3);h(" \xB7 ",(t=n.service().values)==null?null:t.Volume,"% ")}}function El(e,r){if(e&1&&g(0,wl,1,1),e&2){let t=u(2);C("Volume"in t.service().values?0:-1)}}function Al(e,r){if(e&1&&(a(0,"div",7),g(1,bl,2,3)(2,Tl,2,3)(3,Ml,2,3),g(4,Bl,2,3)(5,El,1,1),c()),e&2){let t,n,i=u();o(),C((t=(t=i.service().values)==null?null:t.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),o(3),C("Mute"in i.service().values&&((n=i.service().values)!=null&&n.Mute)?4:5)}}function Dl(e,r){e&1&&(f(0,"div",8),l(1,"translate")),e&2&&T("innerText",d(1,1,"accessories.control.off"))}function Il(e,r){e&1&&(f(0,"div",8),l(1,"translate")),e&2&&T("innerText",d(1,1,"accessories.control.mute"))}function Ll(e,r){if(e&1&&(a(0,"div",7),p(1),c()),e&2){let t,n=u();o(),h("",(t=n.service().values)==null?null:t.Volume,"%")}}function Fl(e,r){e&1&&(a(0,"div",7),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.on")))}function Vl(e,r){e&1&&(a(0,"div",7),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.core.doorbell")))}var co=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(lo,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-doorbell"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"rect",4)(6,"circle",5),c()(),N(),a(7,"div",6),p(8),c(),g(9,Al,6,2,"div",7)(10,Dl,2,3,"div",8)(11,Il,2,3,"div",8)(12,Ll,2,1,"div",7)(13,Fl,3,3,"div",7)(14,Vl,3,3,"div",7),c()()),n&2){let s,m;L(O(8,Sl,"Active"in i.service().values?(s=i.service().values)==null?null:s.Active:"CurrentMediaState"in i.service().values?Be(7,xl).includes((s=i.service().values)==null?null:s.CurrentMediaState):"Mute"in i.service().values&&"Volume"in i.service().values?!((s=i.service().values)!=null&&s.Mute)&&((s=i.service().values)==null?null:s.Volume)>0:"Mute"in i.service().values&&!((s=i.service().values)!=null&&s.Mute),"CurrentMediaState"in i.service().values&&((s=i.service().values)==null?null:s.CurrentMediaState)===1)),o(2),y("aria-label",d(3,5,"accessories.core.doorbell")),o(6),v(i.service().customName||i.service().serviceName),o(),C("CurrentMediaState"in i.service().values?9:"Active"in i.service().values&&!((m=i.service().values)!=null&&m.Active)?10:"Mute"in i.service().values&&((m=i.service().values)!=null&&m.Mute)?11:"Volume"in i.service().values?12:Be(11,kl).includes(i.service().customType||i.service().type)?13:14)}},dependencies:[X,w],encapsulation:2})}return e})();var si=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Pl(e,r){if(e&1){let t=G();a(0,"h6",12),p(1),l(2,"translate"),c(),a(3,"div",13),l(4,"translate"),a(5,"button",6),S("click",function(i){V(t);let s=u();return P(s.setRotationDirection(0,i))}),a(6,"div",7),f(7,"i",8),c(),p(8),l(9,"translate"),a(10,"div",9),f(11,"i",10),c()(),a(12,"button",6),S("click",function(i){V(t);let s=u();return P(s.setRotationDirection(1,i))}),a(13,"div",7),f(14,"i",8),c(),p(15),l(16,"translate"),a(17,"div",9),f(18,"i",10),c()()()}if(e&2){let t=u();o(),v(d(2,8,"accessories.control.rotation_direction")),o(2),y("aria-label",d(4,10,"accessories.control.direction_control")),o(4),L(O(16,si,(t.service.values==null?null:t.service.values.RotationDirection)===0,(t.service.values==null?null:t.service.values.RotationDirection)!==0)),o(),h(" ",d(9,12,"accessories.control.rotation_clockwise")," "),o(6),L(O(19,si,(t.service.values==null?null:t.service.values.RotationDirection)===1,(t.service.values==null?null:t.service.values.RotationDirection)!==1)),o(),h(" ",d(16,14,"accessories.control.rotation_c_clockwise")," ")}}function Ol(e,r){e&1&&p(0,"%")}function Nl(e,r){if(e&1){let t=G();a(0,"h6",12),p(1),l(2,"translate"),g(3,Ol,1,0),c(),a(4,"nouislider",14),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetRotationSpeed.value,i)||(s.targetRotationSpeed.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onTargetRotationSpeedChange())}),c()}if(e&2){let t=u();o(),$(" ",d(2,7,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value),o(2),C(t.targetRotationSpeed.unit==="percentage"?3:-1),o(),T("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),Z("ngModel",t.targetRotationSpeed.value)}}var po=(()=>{class e extends he{targetMode;targetRotationSpeed;targetRotationSpeedChanged=new ne;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,n){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(n)}onTargetRotationSpeedChange(){this.targetRotationSpeedChanged.next(this.targetRotationSpeed.value)}setRotationDirection(t,n){this.service.getCharacteristic("RotationDirection").setValue(t),this.blurTarget(n)}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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5),l(7,"translate"),a(8,"button",6),S("click",function(m){return i.setTargetMode(!1,m)}),a(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),a(13,"div",9),f(14,"i",10),c()(),a(15,"button",6),S("click",function(m){return i.setTargetMode(!0,m)}),a(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),a(20,"div",9),f(21,"i",10),c()()(),g(22,Pl,19,22),g(23,Nl,5,9),c(),f(24,"div",11),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,11,"form.button_close")),o(3),y("aria-label",d(7,13,"accessories.control.mode_control")),o(4),L(O(19,si,!i.targetMode,i.targetMode)),o(),h(" ",d(12,15,"accessories.control.off")," "),o(6),L(O(22,si,i.targetMode,!i.targetMode)),o(),h(" ",d(19,17,"accessories.control.on")," "),o(4),C(i.hasRotationDirection?22:-1),o(),C(i.targetRotationSpeed?23:-1))},dependencies:[se,ce,de,pe,w],encapsulation:2,changeDetection:0})}return e})();var Hl=(e,r)=>({spin:e,"spin-counter":r});function Rl(e,r){if(e&1&&(a(0,"div",8),p(1),c()),e&2){let t,n=u();o(),$("",(t=n.service().values)==null?null:t.RotationSpeed,"",n.rotationSpeedUnit)}}function $l(e,r){if(e&1&&(f(0,"div",9),l(1,"translate")),e&2){let t,n=u();T("innerText",d(1,1,(t=n.service().values)!=null&&t.On||(t=n.service().values)!=null&&t.Active?"accessories.control.on":"accessories.control.off"))}}var mo=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!1,{});rotationSpeedUnit="";hasRotationDirection=!1;ngOnInit(){"RotationSpeed"in this.service().values&&this.service().serviceCharacteristics.find(n=>n.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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(po,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-fan"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3)(5,"g",4),f(6,"path",5),c(),f(7,"circle",6),c()(),N(),a(8,"div",7),p(9),c(),g(10,Rl,2,2,"div",8)(11,$l,2,3,"div",9),c()()),n&2){let s,m,D;j("accessory-on",((s=i.service().values)==null?null:s.On)||((s=i.service().values)==null?null:s.Active)),o(2),L(O(9,Hl,(((m=i.service().values)==null?null:m.On)||((m=i.service().values)==null?null:m.Active))&&(!i.hasRotationDirection||i.hasRotationDirection&&((m=i.service().values)==null?null:m.RotationDirection)===0),(((m=i.service().values)==null?null:m.On)||((m=i.service().values)==null?null:m.Active))&&i.hasRotationDirection&&((m=i.service().values)==null?null:m.RotationDirection)===1)),y("aria-label",d(3,7,"accessories.core.fan")),o(7),v(i.service().customName||i.service().serviceName),o(),C((D=i.service().values)!=null&&D.On&&((D=i.service().values)!=null&&D.RotationSpeed)?10:11)}},dependencies:[X,w],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 uo=(()=>{class e extends he{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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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,"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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"h6",5),p(7),l(8,"translate"),c(),f(9,"nouislider",6),a(10,"div",7),l(11,"translate"),a(12,"button",8),S("click",function(m){return i.resetFilterLife(m)}),p(13),l(14,"translate"),c()()(),f(15,"div",9),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,11,"form.button_close")),o(4),$("",d(8,13,"accessories.control.filter_level"),": ",i.service.values==null?null:i.service.values.FilterLifeLevel,"%"),o(2),T("min",0)("max",100)("step",1)("disabled",!0)("ngModel",i.service.values==null?null:i.service.values.FilterLifeLevel),o(),y("aria-label",d(11,15,"accessories.core.filter_maintenance")),o(3),h(" ",d(14,17,"form.button_reset")," "))},dependencies:[se,ce,de,pe,w],encapsulation:2,changeDetection:0})}return e})();var jl=(e,r)=>({replace:e,dirty:r});function Ul(e,r){e&1&&(p(0," \xB7 "),a(1,"span",27),p(2),l(3,"translate"),c()),e&2&&(o(2),v(d(3,1,"accessories.control.replace")))}var fo=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!1,{});onClick(){if(!this.readyForControl())return;let t=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(uo,{size:"md",backdrop:"static",injector:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-filter-maintenance"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(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),c()(),N(),a(26,"div",25),p(27),c(),a(28,"div",26)(29,"span"),p(30),c(),g(31,Ul,4,3),c()()()),n&2){let s,m,D,z;L(O(10,jl,((s=i.service().values)==null?null:s.FilterChangeIndication)===1||((s=i.service().values)==null?null:s.FilterLifeLevel)<10,((s=i.service().values)==null?null:s.FilterChangeIndication)!==1&&((s=i.service().values)==null?null:s.FilterLifeLevel)<50)),o(2),y("aria-label",d(3,8,"accessories.core.filter_maintenance")),o(25),v(i.service().customName||i.service().serviceName),o(2),j("red-text",((m=i.service().values)==null?null:m.FilterChangeIndication)===1),o(),h(" ",(D=i.service().values)==null?null:D.FilterLifeLevel,"% "),o(),C(((z=i.service().values)==null?null:z.FilterChangeIndication)===1?31:-1)}},dependencies:[X,w],styles:[".dirty svg .status{fill:#e69533!important} .replace svg .status{fill:#d32f2f!important} body.dark-mode svg .back{fill:#2b2b2b!important}"]})}return e})();var Wl=()=>[0,2,3,4],Gl=(e,r,t,n,i,s,m)=>({"accessory-on":e,opening:r,open:t,closing:n,closed:i,stopped:s,obstructed:m});function ql(e,r){e&1&&(a(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.obstructed")))}function zl(e,r){e&1&&(a(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.open")))}function Yl(e,r){e&1&&(a(0,"div",31),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.closed")))}function Kl(e,r){e&1&&(a(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),h("",d(2,1,"accessories.control.opening"),"..."))}function Zl(e,r){e&1&&(a(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),h("",d(2,1,"accessories.control.closing"),"..."))}function Ql(e,r){e&1&&(a(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.stopped")))}function Jl(e,r){if(e&1&&g(0,zl,3,3,"div",30)(1,Yl,3,3,"div",31)(2,Kl,3,3,"div",30)(3,Zl,3,3,"div",30)(4,Ql,3,3,"div",30),e&2){let t,n=u();C((t=(t=n.service().values)==null?null:t.CurrentDoorState)===0?0:t===1?1:t===2?2:t===3?3:t===4?4:-1)}}function Xl(e,r){e&1&&(a(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.open")))}function ec(e,r){e&1&&(a(0,"div",31),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.closed")))}function tc(e,r){if(e&1&&g(0,Xl,3,3,"div",30)(1,ec,3,3,"div",31),e&2){let t,n=u();C((t=n.service().values)!=null&&t.On||(t=n.service().values)!=null&&t.Active?0:1)}}var vo=(()=>{class e{service=E.required({});readyForControl=E(!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(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-garage-door-opener"]],inputs:{service:[1,"service"],readyForControl:[1,"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"],["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(n,i){if(n&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(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),c()(),N(),a(30,"div",29),p(31),c(),g(32,ql,3,3,"div",30)(33,Jl,5,1)(34,tc,2,1),c()()),n&2){let s,m;L(bn(8,Gl,((s=i.service().values)==null?null:s.ObstructionDetected)||Be(7,Wl).includes((s=i.service().values)==null?null:s.CurrentDoorState)||((s=i.service().values)==null?null:s.On)||((s=i.service().values)==null?null:s.Active),((s=i.service().values)==null?null:s.CurrentDoorState)===2&&!((s=i.service().values)!=null&&s.ObstructionDetected),((s=i.service().values)==null?null:s.CurrentDoorState)===0&&!((s=i.service().values)!=null&&s.ObstructionDetected),((s=i.service().values)==null?null:s.CurrentDoorState)===3&&!((s=i.service().values)!=null&&s.ObstructionDetected),((s=i.service().values)==null?null:s.CurrentDoorState)===1&&!((s=i.service().values)!=null&&s.ObstructionDetected),((s=i.service().values)==null?null:s.CurrentDoorState)===4&&!((s=i.service().values)!=null&&s.ObstructionDetected),(s=i.service().values)==null?null:s.ObstructionDetected)),o(2),y("aria-label",d(3,5,"accessories.core.garage_door_opener")),o(29),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.ObstructionDetected?32:"CurrentDoorState"in i.service().values?33:34)}},dependencies:[X,w],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 Ut=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function ic(e,r){if(e&1){let t=G();a(0,"button",8),S("click",function(i){V(t);let s=u(2);return P(s.setTargetMode(0,i))}),a(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),a(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,Ut,t.targetMode===0,t.targetMode!==0)),o(),h(" ",d(4,3,"accessories.control.auto")," ")}}function nc(e,r){if(e&1){let t=G();a(0,"button",8),S("click",function(i){V(t);let s=u(2);return P(s.setTargetMode(1,i))}),a(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),a(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,Ut,t.targetMode===1,t.targetMode!==1)),o(),h(" ",d(4,3,"accessories.control.heat")," ")}}function oc(e,r){if(e&1){let t=G();a(0,"button",8),S("click",function(i){V(t);let s=u(2);return P(s.setTargetMode(2,i))}),a(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),a(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,Ut,t.targetMode===2,t.targetMode!==2)),o(),h(" ",d(4,3,"accessories.control.cool")," ")}}function rc(e,r){if(e&1&&(a(0,"h6",14),p(1),l(2,"translate"),c(),a(3,"div",15),l(4,"translate"),g(5,ic,7,8,"button",16),g(6,nc,7,8,"button",16),g(7,oc,7,8,"button",16),c()),e&2){let t=u();o(),v(d(2,5,"accessories.control.mode")),o(2),y("aria-label",d(4,7,"accessories.control.mode_control")),o(2),C(t.targetStateValidValues.includes(0)?5:-1),o(),C(t.targetStateValidValues.includes(1)?6:-1),o(),C(t.targetStateValidValues.includes(2)?7:-1)}}function ac(e,r){if(e&1){let t=G();a(0,"h6",17),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),l(6,"convertTemp"),l(7,"number"),l(8,"uppercase"),c(),a(9,"nouislider",18),J("ngModelChange",function(i){V(t);let s=u(2);return Q(s.autoTemp,i)||(s.autoTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onAutoTemperatureStateChange())}),c()}if(e&2){let t=u(2);o(),Et(" ",d(2,9,"accessories.control.target_auto"),": ",me(4,13,d(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",d(5,16,t.temperatureUnits)," - ",me(7,20,d(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",d(8,23,t.temperatureUnits)," "),o(8),T("min",t.HeatingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),Z("ngModel",t.autoTemp)}}function sc(e,r){if(e&1){let t=G();a(0,"h6",14),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c(),a(6,"nouislider",18),J("ngModelChange",function(i){V(t);let s=u(2);return Q(s.targetHeatingTemp,i)||(s.targetHeatingTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onTemperatureStateChange())}),c()}if(e&2){let t=u(2);o(),tt(" ",d(2,7,"accessories.control.target_auto"),": ",me(4,11,d(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",d(5,14,t.temperatureUnits)," "),o(5),T("min",t.HeatingThresholdTemperature.minValue)("max",t.HeatingThresholdTemperature.maxValue)("step",t.HeatingThresholdTemperature.minStep),Z("ngModel",t.targetHeatingTemp)}}function lc(e,r){if(e&1){let t=G();a(0,"h6",14),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c(),a(6,"nouislider",18),J("ngModelChange",function(i){V(t);let s=u(2);return Q(s.targetCoolingTemp,i)||(s.targetCoolingTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onTemperatureStateChange())}),c()}if(e&2){let t=u(2);o(),tt(" ",d(2,7,"accessories.control.target_auto"),": ",me(4,11,d(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",d(5,14,t.temperatureUnits)," "),o(5),T("min",t.CoolingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),Z("ngModel",t.targetCoolingTemp)}}function cc(e,r){if(e&1&&g(0,ac,10,25)(1,sc,7,16)(2,lc,7,16),e&2){let t=u();C(t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?0:t.HeatingThresholdTemperature&&!t.CoolingThresholdTemperature?1:!t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?2:-1)}}var ho=(()=>{class e extends he{$settings=k(we);type=E.required({});temperatureUnits=this.$settings.env.temperatureUnits;targetState;targetMode;targetTemperatureChanged=new ne;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,n){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetTemperature(),this.blurTarget(n)}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("TargetHeaterCoolerState").setValue(this.targetMode),this.loadTargetTemperature(),this.blurTarget(n),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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{type:[1,"type"]},features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"h6",5),f(7,"i",6),p(8),l(9,"convertTemp"),l(10,"number"),l(11,"uppercase"),c(),a(12,"div",7),l(13,"translate"),a(14,"button",8),S("click",function(m){return i.setTargetState(0,m)}),a(15,"div",9),f(16,"i",10),c(),p(17),l(18,"translate"),a(19,"div",11),f(20,"i",12),c()(),a(21,"button",8),S("click",function(m){return i.setTargetState(1,m)}),a(22,"div",9),f(23,"i",10),c(),p(24),l(25,"translate"),a(26,"div",11),f(27,"i",12),c()()(),g(28,rc,8,9),g(29,cc,3,1),c(),f(30,"div",13),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,15,"form.button_close")),o(4),dt("color",(i.service.values==null?null:i.service.values.CurrentHeaterCoolerState)===3&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="cooler"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#1e8bbd":(i.service.values==null?null:i.service.values.CurrentHeaterCoolerState)===2&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="heater"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#e69533":i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On?"#42d672":"#7b7b7b"),o(),$("",me(10,19,d(9,17,i.service.values==null?null:i.service.values.CurrentTemperature),"1.0-1"),"\xB0",d(11,22,i.temperatureUnits)," "),o(4),y("aria-label",d(13,24,"accessories.control.state_control")),o(4),L(O(30,Ut,i.targetState===0,i.targetState!==0)),o(),h(" ",d(18,26,"accessories.control.off")," "),o(6),L(O(33,Ut,i.targetState===1,i.targetState!==1)),o(),h(" ",d(25,28,"accessories.control.on")," "),o(4),C(i.targetStateValidValues.length?28:-1),o(),C(i.targetStateValidValues.includes(0)?29:-1))},dependencies:[se,ce,de,pe,Ie,w,Ne,je],encapsulation:2,changeDetection:0})}return e})();function dc(e,r){if(e&1&&(I(),a(0,"text",23),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase"),c()),e&2){let t,n=u();o(),$(" ",me(3,4,d(2,2,(t=n.service().values)==null?null:t.CurrentTemperature),"1.0-1"),"\xB0",d(4,7,n.temperatureUnits)," ")}}function pc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.off")," ")}function mc(e,r){if(e&1&&(f(0,"i",26),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase"),l(5,"convertTemp"),l(6,"number"),l(7,"uppercase")),e&2){let t,n=u(2);o(),xn(" ",me(3,6,d(2,4,(t=n.service().values)==null?null:t.HeatingThresholdTemperature),"1.0-1"),"\xB0",d(4,9,n.temperatureUnits)," - ",me(6,13,d(5,11,(t=n.service().values)==null?null:t.CoolingThresholdTemperature),"1.0-1"),"\xB0",d(7,16,n.temperatureUnits)," ")}}function uc(e,r){if(e&1&&(f(0,"i",26),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase")),e&2){let t,n=u(2);o(),$(" ",me(3,4,d(2,2,(t=n.service().values)==null?null:t.HeatingThresholdTemperature),"1.0-1"),"\xB0",d(4,7,n.temperatureUnits)," ")}}function fc(e,r){if(e&1&&(f(0,"i",26),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase")),e&2){let t,n=u(2);o(),$(" ",me(3,4,d(2,2,(t=n.service().values)==null?null:t.CoolingThresholdTemperature),"1.0-1"),"\xB0",d(4,7,n.temperatureUnits)," ")}}function vc(e,r){if(e&1&&g(0,mc,8,18)(1,uc,5,9)(2,fc,5,9),e&2){let t=u();C(t.hasHeating&&t.hasCooling?0:t.hasHeating&&!t.hasCooling?1:!t.hasHeating&&t.hasCooling?2:-1)}}function hc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.heat")," ")}function gc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.cool")," ")}function Cc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.on")," ")}var go=(()=>{class e{$modal=k(ie);injector=k(ee);$settings=k(we);$accessories=k(re);service=E.required({});readyForControl=E(!1,{});type=E(void 0,{});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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(ho,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-heater-cooler"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"],type:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),f(8,"animate",6),c(),a(9,"stop",7),f(10,"animate",8),c(),a(11,"stop",9),f(12,"animate",6),c()(),a(13,"linearGradient",10)(14,"stop",11),f(15,"animate",12),c(),a(16,"stop",13),f(17,"animate",14),c(),a(18,"stop",15),f(19,"animate",12),c()()(),f(20,"rect",16)(21,"line",17)(22,"line",18)(23,"line",19)(24,"line",20)(25,"line",21)(26,"rect",22),g(27,dc,5,9,":svg:text",23),c()(),N(),a(28,"div",24),p(29),c(),a(30,"div",25),g(31,pc,2,3)(32,vc,3,1)(33,hc,2,3)(34,gc,2,3)(35,Cc,2,3),c()()()),n&2){let s,m,D;j("accessory-on",((s=i.service().values)==null?null:s.Active)||((s=i.service().values)==null?null:s.On)),o(2),y("aria-label",d(3,7,"accessories.core.heater_cooler")),o(24),y("fill",((m=i.service().values)==null?null:m.CurrentHeaterCoolerState)===3&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="cooler"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#coolingGradient)":((m=i.service().values)==null?null:m.CurrentHeaterCoolerState)===2&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="heater"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#heatingGradient)":(m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On?"#42d672":"#7b7b7b"),o(),C("CurrentTemperature"in i.service().values?27:-1),o(2),v(i.service().customName||i.service().serviceName),o(2),C("Active"in i.service().values&&!((D=i.service().values)!=null&&D.Active)||"On"in i.service().values&&!((D=i.service().values)!=null&&D.On)?31:((D=i.service().values)==null?null:D.TargetHeaterCoolerState)===0&&(i.hasHeating||i.hasCooling)?32:((D=i.service().values)==null?null:D.TargetHeaterCoolerState)===1?33:((D=i.service().values)==null?null:D.TargetHeaterCoolerState)===2?34:35)}},dependencies:[X,Ie,w,Ne,je],encapsulation:2})}return e})();var Wt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function _c(e,r){if(e&1){let t=G();a(0,"button",8),S("click",function(i){V(t);let s=u(2);return P(s.setTargetMode(0,i))}),a(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),a(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,Wt,t.targetMode===0,t.targetMode!==0)),o(),h(" ",d(4,3,"accessories.control.auto")," ")}}function yc(e,r){if(e&1){let t=G();a(0,"button",8),S("click",function(i){V(t);let s=u(2);return P(s.setTargetMode(1,i))}),a(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),a(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,Wt,t.targetMode===1,t.targetMode!==1)),o(),h(" ",d(4,3,"accessories.control.humidify")," ")}}function xc(e,r){if(e&1){let t=G();a(0,"button",8),S("click",function(i){V(t);let s=u(2);return P(s.setTargetMode(2,i))}),a(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),a(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,Wt,t.targetMode===2,t.targetMode!==2)),o(),h(" ",d(4,3,"accessories.control.dehumidify")," ")}}function Sc(e,r){if(e&1&&(a(0,"h6",14),p(1),l(2,"translate"),c(),a(3,"div",15),l(4,"translate"),g(5,_c,7,8,"button",16),g(6,yc,7,8,"button",16),g(7,xc,7,8,"button",16),c()),e&2){let t=u();o(),v(d(2,5,"accessories.control.mode")),o(2),y("aria-label",d(4,7,"accessories.control.mode_control")),o(2),C(t.targetStateValidValues.includes(0)?5:-1),o(),C(t.targetStateValidValues.includes(1)?6:-1),o(),C(t.targetStateValidValues.includes(2)?7:-1)}}function kc(e,r){if(e&1){let t=G();a(0,"h6",14),p(1),l(2,"translate"),c(),a(3,"nouislider",17),J("ngModelChange",function(i){V(t);let s=u(2);return Q(s.autoHumidity,i)||(s.autoHumidity=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onAutoHumidityStateChange())}),c()}if(e&2){let t=u(2);o(),tt(" ",d(2,7,"accessories.control.target_auto"),": ",t.autoHumidity[0],"% - ",t.autoHumidity[1],"% "),o(2),T("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),Z("ngModel",t.autoHumidity)}}function bc(e,r){if(e&1){let t=G();a(0,"h6",14),p(1),l(2,"translate"),c(),a(3,"nouislider",17),J("ngModelChange",function(i){V(t);let s=u(2);return Q(s.targetHumidifierHumidity,i)||(s.targetHumidifierHumidity=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onHumidityStateChange())}),c()}if(e&2){let t=u(2);o(),$("",d(2,6,"accessories.control.target_auto"),": ",t.targetHumidifierHumidity,"%"),o(2),T("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityHumidifierThreshold.maxValue)("step",t.RelativeHumidityHumidifierThreshold.minStep),Z("ngModel",t.targetHumidifierHumidity)}}function Tc(e,r){if(e&1){let t=G();a(0,"h6",14),p(1),l(2,"translate"),c(),a(3,"nouislider",17),J("ngModelChange",function(i){V(t);let s=u(2);return Q(s.targetDehumidifierHumidity,i)||(s.targetDehumidifierHumidity=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onHumidityStateChange())}),c()}if(e&2){let t=u(2);o(),$("",d(2,6,"accessories.control.target_auto"),": ",t.targetDehumidifierHumidity,"%"),o(2),T("min",t.RelativeHumidityDehumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),Z("ngModel",t.targetDehumidifierHumidity)}}function Mc(e,r){if(e&1&&g(0,kc,4,9)(1,bc,4,8)(2,Tc,4,8),e&2){let t=u();C(t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?0:t.RelativeHumidityHumidifierThreshold&&!t.RelativeHumidityDehumidifierThreshold?1:!t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?2:-1)}}var Co=(()=>{class e extends he{type=E.required({});targetState;targetMode;targetHumidityChanged=new ne;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,n){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetHumidity(),this.blurTarget(n)}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("TargetHumidifierDehumidifierState").setValue(this.targetMode),this.loadTargetHumidity(),this.blurTarget(n),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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{type:[1,"type"]},features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"h6",5),f(7,"i",6),p(8),c(),a(9,"div",7),l(10,"translate"),a(11,"button",8),S("click",function(m){return i.setTargetState(0,m)}),a(12,"div",9),f(13,"i",10),c(),p(14),l(15,"translate"),a(16,"div",11),f(17,"i",12),c()(),a(18,"button",8),S("click",function(m){return i.setTargetState(1,m)}),a(19,"div",9),f(20,"i",10),c(),p(21),l(22,"translate"),a(23,"div",11),f(24,"i",12),c()()(),g(25,Sc,8,9),g(26,Mc,3,1),c(),f(27,"div",13),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,14,"form.button_close")),o(4),dt("color",(i.service.values==null?null:i.service.values.CurrentHumidifierDehumidifierState)===2&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="humidifier"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#1e8bbd":(i.service.values==null?null:i.service.values.CurrentHumidifierDehumidifierState)===3&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="dehumidifier"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#e69533":i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On?"#42d672":"#7b7b7b"),o(),h("",i.service.values==null?null:i.service.values.CurrentRelativeHumidity,"% "),o(),y("aria-label",d(10,16,"accessories.control.state_control")),o(4),L(O(22,Wt,i.targetState===0,i.targetState!==0)),o(),h(" ",d(15,18,"accessories.control.off")," "),o(6),L(O(25,Wt,i.targetState===1,i.targetState!==1)),o(),h(" ",d(22,20,"accessories.control.on")," "),o(4),C(i.targetStateValidValues.length?25:-1),o(),C(i.targetStateValidValues.includes(0)?26:-1))},dependencies:[se,ce,de,pe,w],encapsulation:2,changeDetection:0})}return e})();function Bc(e,r){if(e&1&&(I(),a(0,"text",36),p(1),c()),e&2){let t,n=u();o(),h(" ",(t=n.service().values)==null?null:t.CurrentRelativeHumidity,"% ")}}function wc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.off")," ")}function Ec(e,r){if(e&1&&(f(0,"i",39),p(1)),e&2){let t,n=u(2);o(),$(" ",(t=n.service().values)==null?null:t.RelativeHumidityHumidifierThreshold,"% - ",(t=n.service().values)==null?null:t.RelativeHumidityDehumidifierThreshold,"% ")}}function Ac(e,r){if(e&1&&(f(0,"i",39),p(1)),e&2){let t,n=u(2);o(),h(" ",(t=n.service().values)==null?null:t.RelativeHumidityHumidifierThreshold,"% ")}}function Dc(e,r){if(e&1&&(f(0,"i",39),p(1)),e&2){let t,n=u(2);o(),h(" ",(t=n.service().values)==null?null:t.RelativeHumidityDehumidifierThreshold,"% ")}}function Ic(e,r){if(e&1&&g(0,Ec,2,2)(1,Ac,2,1)(2,Dc,2,1),e&2){let t=u();C(t.hasHumidifier&&t.hasDehumidifier?0:t.hasHumidifier&&!t.hasDehumidifier?1:!t.hasHumidifier&&t.hasDehumidifier?2:-1)}}function Lc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.humidify")," ")}function Fc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.dehumidify")," ")}function Vc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.on")," ")}function Pc(e,r){if(e&1&&g(0,Fc,2,3)(1,Vc,2,3),e&2){let t,n=u();C(((t=n.service().values)==null?null:t.TargetHumidifierDehumidifierState)===2?0:1)}}var _o=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!1,{});type=E(void 0,{});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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Co,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-humidifier-dehumidifier"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"],type:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),f(8,"animate",6),c(),a(9,"stop",7),f(10,"animate",8),c(),a(11,"stop",9),f(12,"animate",6),c()(),a(13,"linearGradient",10)(14,"stop",11),f(15,"animate",12),c(),a(16,"stop",13),f(17,"animate",14),c(),a(18,"stop",15),f(19,"animate",12),c()()(),f(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),g(40,Bc,2,1,":svg:text",36),c()(),N(),a(41,"div",37),p(42),c(),a(43,"div",38),g(44,wc,2,3)(45,Ic,3,1)(46,Lc,2,3)(47,Pc,2,1),c()()()),n&2){let s,m,D;j("accessory-on",((s=i.service().values)==null?null:s.Active)||((s=i.service().values)==null?null:s.On)),o(2),y("aria-label",d(3,7,"accessories.core.humidifier_dehumidifier")),o(37),y("fill",((m=i.service().values)==null?null:m.CurrentHumidifierDehumidifierState)===2&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="humidifier"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#humidifyingGradient)":((m=i.service().values)==null?null:m.CurrentHumidifierDehumidifierState)===3&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="dehumidifier"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#dehumidifyingGradient)":(m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On?"#42d672":"#7b7b7b"),o(),C("CurrentRelativeHumidity"in i.service().values?40:-1),o(2),v(i.service().customName||i.service().serviceName),o(2),C("Active"in i.service().values&&!((D=i.service().values)!=null&&D.Active)||"On"in i.service().values&&!((D=i.service().values)!=null&&D.On)?44:((D=i.service().values)==null?null:D.TargetHumidifierDehumidifierState)===0&&(i.hasHumidifier||i.hasDehumidifier)?45:((D=i.service().values)==null?null:D.TargetHumidifierDehumidifierState)===1?46:47)}},dependencies:[X,w],encapsulation:2})}return e})();function Oc(e,r){if(e&1&&p(0),e&2){let t,n=u();h(" ",(t=n.service().values)==null?null:t.CurrentRelativeHumidity,"% ")}}function Nc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.no_data")," ")}var yo=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-humidity-sensor"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),F(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),b()(),N(),x(21,"div",20),p(22),b(),x(23,"div",21),g(24,Oc,1,1)(25,Nc,2,3),b()()()),n&2&&(o(2),y("aria-label",d(3,3,"accessories.core.humidity_sensor")),o(20),v(i.service().customName||i.service().serviceName),o(2),C("CurrentRelativeHumidity"in i.service().values?24:25))},dependencies:[w],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 Hc(e,r){e&1&&(x(0,"div",14),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.running")))}function Rc(e,r){e&1&&(x(0,"div",14),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.off")))}var xo=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-irrigation-system"]],inputs:{service:[1,"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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(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),b()(),N(),x(14,"div",13),p(15),b(),g(16,Hc,3,3,"div",14)(17,Rc,3,3,"div",14),b()()),n&2){let s,m,D;j("accessory-on",(s=i.service().values)==null?null:s.InUse),o(2),y("aria-label",d(3,5,"accessories.core.irrigation_system")),o(13),h(" ",i.service().customName||((m=i.service().values)==null?null:m.ConfiguredName)||i.service().serviceName," "),o(),C((D=i.service().values)!=null&&D.InUse?16:17)}},dependencies:[w],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 $c(e,r){e&1&&(x(0,"div",23),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function jc(e,r){e&1&&(x(0,"div",24),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var So=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-leak-sensor"]],inputs:{service:[1,"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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),x(8,"g",7),F(9,"path",6),b(),F(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),b()(),N(),x(24,"div",22),p(25),b(),g(26,$c,3,3,"div",23)(27,jc,3,3,"div",24),b()()),n&2){let s,m;j("accessory-on",(s=i.service().values)==null?null:s.LeakDetected),o(2),y("aria-label",d(3,5,"accessories.core.leak_sensor")),o(23),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.LeakDetected?26:27)}},dependencies:[w],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 Uc(e,r){if(e&1&&(x(0,"div",28),p(1),l(2,"number"),b()),e&2){let t,n=u();o(),h("",me(2,1,(t=n.service().values)==null?null:t.CurrentAmbientLightLevel,"0.1-1")," lux")}}function Wc(e,r){if(e&1&&(x(0,"div",28),p(1),l(2,"number"),b()),e&2){let t,n=u();o(),h("",me(2,1,(t=n.service().values)==null?null:t.CurrentAmbientLightLevel,"1.0-0")," lux")}}var ko=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-light-sensor"]],inputs:{service:[1,"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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(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),b()(),N(),x(28,"div",27),p(29),b(),g(30,Uc,3,4,"div",28)(31,Wc,3,4,"div",28),b()()),n&2){let s;o(2),y("aria-label",d(3,3,"accessories.core.light_sensor")),o(27),v(i.service().customName||i.service().serviceName),o(),C(((s=i.service().values)==null?null:s.CurrentAmbientLightLevel)<1?30:31)}},dependencies:[Ie,w],encapsulation:2})}return e})();var at=(()=>{class e{miredToKelvin(t){return Math.round(1e6/t)}kelvinToMired(t){return Math.round(1e6/t)}kelvinToHex(t){t=Math.max(1e3,Math.min(4e4,t));let n=t/100,i,s,m;return n<=66?(i=255,s=n,s=99.4708025861*Math.log(s)-161.1195681661,m=n<=19?0:138.5177312231*Math.log(n-10)-305.0447927307):(i=329.698727446*(n-60)**-.1332047592,s=288.1221695283*(n-60)**-.0755148492,m=255),i=Math.round(Math.min(Math.max(i,0),255)),s=Math.round(Math.min(Math.max(s,0),255)),m=Math.round(Math.min(Math.max(m,0),255)),`#${i.toString(16).padStart(2,"0")}${s.toString(16).padStart(2,"0")}${m.toString(16).padStart(2,"0")}`}kelvinToHsl(t){let n=t/100,i,s,m;n<=66?(i=255,s=Math.min(99.4708025861*Math.log(n)-161.1195681661,255),m=n<=19?0:Math.min(138.5177312231*Math.log(n-10)-305.0447927307,255)):(i=Math.min(329.698727446*(n-60)**-.1332047592,255),s=Math.min(288.1221695283*(n-60)**-.0755148492,255),m=255),i/=255,s/=255,m/=255;let D=Math.max(i,s,m),z=Math.min(i,s,m),q=D-z,le=0;q!==0&&(D===i?le=(s-m)/q%6:D===s?le=(m-i)/q+2:le=(i-s)/q+4,le=Math.round(le*60),le<0&&(le+=360));let Se=(D+z)/2,Fe=q===0?0:q/(1-Math.abs(2*Se-1));return`hsl(${Math.round(le)}, ${Math.round(Fe*100)}%, ${Math.round(Se*100)}%)`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Xt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var bo=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),Gc=(e,r)=>({"off-text":e,"on-text":r}),Vi=(e,r)=>({"mb-1":e,"":r});function qc(e,r){e&1&&f(0,"div")}function zc(e,r){if(e&1&&(a(0,"div",11)(1,"div",13)(2,"div",7),f(3,"i",14),c(),p(4),l(5,"translate"),a(6,"div",9),f(7,"i",10),c()()()),e&2){let t=u();o(3),L(O(6,Gc,!t.isAdaptiveLightingEnabled,t.isAdaptiveLightingEnabled)),o(),$(" ",d(5,4,"accessories.control.adaptive_lighting"),": ",t.isAdaptiveLightingEnabled?"ON":"OFF"," ")}}function Yc(e,r){if(e&1){let t=G();a(0,"h6",15),p(1),l(2,"translate"),c(),a(3,"nouislider",16),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetBrightness.value,i)||(s.targetBrightness.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onBrightnessStateChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.brightness"),": ",t.targetBrightness.value,"%"),o(2),T("min",t.targetBrightness.min)("max",t.targetBrightness.max)("step",t.targetBrightness.step),Z("ngModel",t.targetBrightness.value)}}function Kc(e,r){e&1&&(a(0,"div",17)(1,"span",18),p(2),l(3,"translate"),c()()),e&2&&(o(2),v(d(3,1,"accessories.control.adaptive_lighting_note")))}function Zc(e,r){if(e&1){let t=G();a(0,"h6",15),p(1),l(2,"translate"),c(),a(3,"nouislider",16),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetHue.value,i)||(s.targetHue.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onHueStateChange())}),c(),g(4,Kc,4,3,"div",17)}if(e&2){let t=u();o(),$("",d(2,9,"accessories.control.hue"),": ",t.targetHue.value,"\xB0"),o(2),L(O(11,Vi,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",0)("max",360)("step",1),Z("ngModel",t.targetHue.value),o(),C(t.isAdaptiveLightingEnabled?4:-1)}}function Qc(e,r){e&1&&(a(0,"div",17)(1,"span",18),p(2),l(3,"translate"),c()()),e&2&&(o(2),v(d(3,1,"accessories.control.adaptive_lighting_note")))}function Jc(e,r){if(e&1){let t=G();a(0,"h6",15),p(1),l(2,"translate"),c(),a(3,"nouislider",16),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetSaturation.value,i)||(s.targetSaturation.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onSaturationStateChange())}),c(),g(4,Qc,4,3,"div",17)}if(e&2){let t=u();o(),$("",d(2,9,"accessories.control.saturation"),": ",t.targetSaturation.value,"%"),o(2),L(O(11,Vi,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",0)("max",100)("step",1),Z("ngModel",t.targetSaturation.value),o(),C(t.isAdaptiveLightingEnabled?4:-1)}}function Xc(e,r){e&1&&(a(0,"div",17)(1,"span",18),p(2),l(3,"translate"),c()()),e&2&&(o(2),v(d(3,1,"accessories.control.adaptive_lighting_note")))}function ed(e,r){if(e&1){let t=G();a(0,"h6",15),p(1),l(2,"translate"),l(3,"convertMired"),c(),a(4,"nouislider",16),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetColorTemperature.value,i)||(s.targetColorTemperature.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onColorTemperatureStateChange())}),c(),g(5,Xc,4,3,"div",17)}if(e&2){let t=u();o(),$(" ",d(2,9,"accessories.control.color_temperature"),": ",d(3,11,t.targetColorTemperature.mired)," "),o(3),L(O(13,Vi,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",t.targetColorTemperature.min)("max",t.targetColorTemperature.max)("step",t.targetColorTemperature.step),Z("ngModel",t.targetColorTemperature.value),o(),C(t.isAdaptiveLightingEnabled?5:-1)}}var Pi=new ei("LightbulbAdaptiveLighting",{factory:()=>{}}),To=(()=>{class e extends he{$colour=k(at);isAdaptiveLightingEnabled$=k(Pi);targetMode;targetBrightness;targetBrightnessChanged=new ne;targetHue;targetHueChanged=new ne;targetSaturation;targetSaturationChanged=new ne;targetColorTemperature;targetColorTemperatureChanged=new ne;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,n){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(n)}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 n=this.targetHue.value;t.style.background=`linear-gradient(to right,
|
|
2
|
-
hsl(${n}, 0%, 50%),
|
|
3
|
-
hsl(${n}, 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 n=this.targetHue.value||0;this.applySliderGradient(`linear-gradient(to right,
|
|
11
|
-
hsl(${n}, 0%, 50%),
|
|
12
|
-
hsl(${n}, 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 n=this.$colour.kelvinToHsl(this.targetColorTemperature.min),i=this.$colour.kelvinToHsl(this.targetColorTemperature.max);this.applySliderGradient(`linear-gradient(to right, ${n}, ${i})`,`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.isAdaptiveLightingEnabled$&&(this.hasAdaptiveLighting=!0,this.isAdaptiveLightingEnabled$.subscribe(s=>{this.isAdaptiveLightingEnabled=s}))}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5),l(7,"translate"),a(8,"button",6),S("click",function(m){return i.setTargetMode(!1,m)}),a(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),a(13,"div",9),f(14,"i",10),c()(),a(15,"button",6),S("click",function(m){return i.setTargetMode(!0,m)}),a(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),a(20,"div",9),f(21,"i",10),c()(),g(22,qc,1,0,"div"),c(),g(23,zc,8,9,"div",11),g(24,Yc,4,8),g(25,Zc,5,14),g(26,Jc,5,14),g(27,ed,6,16),c(),f(28,"div",12),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,15,"form.button_close")),o(3),y("aria-label",d(7,17,"accessories.control.mode_control")),o(4),L(O(23,bo,!i.targetMode,i.targetMode)),o(),h(" ",d(12,19,"accessories.control.off")," "),o(6),L(O(26,bo,i.targetMode,!i.targetMode)),o(),h(" ",d(19,21,"accessories.control.on")," "),o(4),C(i.hasAdaptiveLighting?22:-1),o(),C(i.hasAdaptiveLighting?23:-1),o(),C(i.targetBrightness?24:-1),o(),C(i.targetHue?25:-1),o(),C(i.targetSaturation?26:-1),o(),C(i.targetColorTemperature?27:-1))},dependencies:[se,ce,de,pe,w,pt],encapsulation:2,changeDetection:0})}return e})();function td(e,r){if(e&1&&(f(0,"div",10),l(1,"translate")),e&2){let t,n=u();T("innerHTML",(t=n.service().values)!=null&&t.On?((t=n.service().values)==null?null:t.Brightness)+"%"+(n.hasAdaptiveLighting?" \xB7 <i class='fa fa-sun "+(n.isAdaptiveLightingEnabled?"on-text":"grey-text")+"'></i>":""):d(1,1,"accessories.control.off"),Ye)}}function id(e,r){if(e&1&&(f(0,"div",10),l(1,"translate")),e&2){let t,n=u();T("innerHTML",d(1,1,(t=n.service().values)!=null&&t.On||(t=n.service().values)!=null&&t.Active?"accessories.control.on"+(n.hasAdaptiveLighting?" \xB7 <i class='fa fa-sun "+(n.isAdaptiveLightingEnabled?"on-text":"grey-text")+"'></i>":""):"accessories.control.off"),Ye)}}var Mo=(()=>{class e{destroyRef=k(ke);injector=k(ee);$accessories=k(re);$modal=k(ie);intervalId;$colour=k(at);service=E.required({});readyForControl=E(!1,{});hasAdaptiveLighting=!1;isAdaptiveLightingEnabled=!1;isAdaptiveLightingEnabled$=new an(!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(){return ae(this,null,function*(){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=[{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}];this.hasAdaptiveLighting&&t.push({provide:Pi,useValue:this.isAdaptiveLightingEnabled$});let n=te(t,this.injector),i=this.$modal.open(To,{size:"md",backdrop:"static",injector:n});if(this.hasAdaptiveLighting){this.intervalId&&clearInterval(this.intervalId),this.intervalId=setInterval(()=>{this.isAdaptiveLightingEnabled$.next(!!this.service().values.CharacteristicValueActiveTransitionCount)},3e3);let s=this.isAdaptiveLightingEnabled$.subscribe(m=>{this.isAdaptiveLightingEnabled=m});try{yield i.result}catch{}finally{this.intervalId&&clearInterval(this.intervalId),s.unsubscribe(),this.intervalId=setInterval(()=>{this.isAdaptiveLightingEnabled$.next(!!this.service().values.CharacteristicValueActiveTransitionCount)},3e4)}}}})}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(ge(this.destroyRef)).subscribe(t=>{this.isAdaptiveLightingEnabled=t}))}Math=Math;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-lightbulb"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"path",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8),c()(),N(),a(10,"div",9),p(11),c(),g(12,td,2,3,"div",10)(13,id,2,3,"div",10),c()()),n&2){let s,m,D,z;j("accessory-on",((s=i.service().values)==null?null:s.On)||((s=i.service().values)==null?null:s.Active)),o(2),y("aria-label",d(3,7,"accessories.core.lightbulb")),o(3),y("fill",(m=i.service().values)!=null&&m.On||(m=i.service().values)!=null&&m.Active?"Hue"in i.service().values?"hsl("+((m=i.service().values)==null?null:m.Hue)+", "+((m=i.service().values)==null?null:m.Saturation)+"%, 50%)":"ColorTemperature"in i.service().values?i.$colour.kelvinToHsl(i.$colour.miredToKelvin((m=i.service().values)==null?null:m.ColorTemperature)):"#ffcf55":"none")("fill-opacity","Brightness"in i.service().values?.25+((D=i.service().values)==null?null:D.Brightness)/100*.5:.75),o(6),v(i.service().customName||i.service().serviceName),o(),C((z=i.service().values)!=null&&z.Brightness?12:13)}},dependencies:[X,w],encapsulation:2})}return e})();var li=(()=>{class e{transform(t){if(typeof t!="number"||Number.isNaN(t))return"";let n=Math.floor(t/60),i=t%60;return[n>0?`${n.toString()}m`:"",i>0?`${i.toString()}s`:""].filter(Boolean).join(" ")}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=nt({name:"duration",type:e,pure:!0})}return e})();var Bo=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function nd(e,r){if(e&1){let t=G();a(0,"h6",12),p(1),l(2,"translate"),l(3,"duration"),c(),a(4,"nouislider",13),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetLockManagementAutoSecurityTimeout.value,i)||(s.targetLockManagementAutoSecurityTimeout.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onLockManagementAutoSecurityTimeoutStateChange())}),c()}if(e&2){let t=u();o(),$(" ",d(2,6,"accessories.control.lock_auto"),": ",t.targetLockManagementAutoSecurityTimeout.value===0?"\u221E":d(3,8,t.targetLockManagementAutoSecurityTimeout.value)," "),o(3),T("min",t.targetLockManagementAutoSecurityTimeout.min)("max",t.targetLockManagementAutoSecurityTimeout.max)("step",10),Z("ngModel",t.targetLockManagementAutoSecurityTimeout.value)}}var wo=(()=>{class e extends he{lockTimeoutSubscription=null;serviceManagement;targetMode;targetLockManagementAutoSecurityTimeout;targetLockManagementAutoSecurityTimeoutChanged=new ne;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(pn()).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,n){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=ln((this.targetLockManagementAutoSecurityTimeout.value+.3)*1e3).pipe(ge(this.destroyRef)).subscribe(()=>{this.targetMode=1,this.cdr.markForCheck()})),this.blurTarget(n)}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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5),l(7,"translate"),a(8,"button",6),S("click",function(m){return i.setTargetMode(1,m)}),a(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),a(13,"div",9),f(14,"i",10),c()(),a(15,"button",6),S("click",function(m){return i.setTargetMode(0,m)}),a(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),a(20,"div",9),f(21,"i",10),c()()(),g(22,nd,5,10),c(),f(23,"div",11),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,10,"form.button_close")),o(3),y("aria-label",d(7,12,"accessories.control.mode_control")),o(4),L(O(18,Bo,i.targetMode===1,i.targetMode!==1)),o(),h(" ",d(12,14,"accessories.control.locked")," "),o(6),L(O(21,Bo,i.targetMode===0,i.targetMode!==0)),o(),h(" ",d(19,16,"accessories.control.unlocked")," "),o(4),C(i.serviceManagement?22:-1))},dependencies:[se,ce,de,pe,w,li],encapsulation:2,changeDetection:0})}return e})();var od=(e,r,t,n)=>({"accessory-on":e,unlocked:r,jammed:t,error:n}),rd=(e,r)=>({"red-text":e,"grey-text":r});function ad(e,r){if(e&1&&(f(0,"div",11),l(1,"translate")),e&2){let t,n,i=u();L(O(5,rd,!((t=i.service().values)!=null&&t.LockCurrentState),(t=i.service().values)==null?null:t.LockCurrentState)),T("innerText",d(1,3,(n=i.service().values)!=null&&n.LockCurrentState?"accessories.control.locked":"accessories.control.unlocked"))}}function sd(e,r){e&1&&(a(0,"div",10),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.jammed")))}function ld(e,r){e&1&&(a(0,"div",10),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.unknown")))}var Eo=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(wo,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-lock-mechanism"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()})("longClick",function(){return i.onLongClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"path",4)(6,"path",5)(7,"rect",6)(8,"circle",7),c()(),N(),a(9,"div",8),p(10),c(),g(11,ad,2,8,"div",9)(12,sd,3,3,"div",10)(13,ld,3,3,"div",10),c()()),n&2){let s,m;L(Dt(7,od,"LockCurrentState"in i.service().values&&((s=i.service().values)==null?null:s.LockCurrentState)!==1||((s=i.service().values)==null?null:s.On)===1,((s=i.service().values)==null?null:s.LockCurrentState)===0||((s=i.service().values)==null?null:s.On)===1,((s=i.service().values)==null?null:s.LockCurrentState)===2,((s=i.service().values)==null?null:s.LockCurrentState)===3)),o(2),y("aria-label",d(3,5,"accessories.core.lock_mechanism")),o(8),v(i.service().customName||i.service().serviceName),o(),C(((m=i.service().values)==null?null:m.LockCurrentState)<2?11:((m=i.service().values)==null?null:m.LockCurrentState)===2?12:((m=i.service().values)==null?null:m.LockCurrentState)===3?13:-1)}},dependencies:[X,w],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 xt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function cd(e,r){if(e&1){let t=G();a(0,"div",5),l(1,"translate"),a(2,"button",7),S("click",function(i){V(t);let s=u();return P(s.setActive(0,i))}),a(3,"div",8),f(4,"i",9),c(),p(5),l(6,"translate"),a(7,"div",10),f(8,"i",11),c()(),a(9,"button",7),S("click",function(i){V(t);let s=u();return P(s.setActive(1,i))}),a(10,"div",8),f(11,"i",9),c(),p(12),l(13,"translate"),a(14,"div",10),f(15,"i",11),c()()()}if(e&2){let t=u();y("aria-label",d(1,7,"accessories.control.mode_control")),o(4),L(O(13,xt,(t.service.values==null?null:t.service.values.Active)===0,(t.service.values==null?null:t.service.values.Active)!==0)),o(),h(" ",d(6,9,"accessories.control.off")," "),o(6),L(O(16,xt,(t.service.values==null?null:t.service.values.Active)===1,(t.service.values==null?null:t.service.values.Active)!==1)),o(),h(" ",d(13,11,"accessories.control.on")," ")}}function dd(e,r){if(e&1){let t=G();a(0,"div",5),l(1,"translate"),a(2,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetState(0,i))}),a(3,"div",8),f(4,"i",9),c(),p(5),l(6,"translate"),a(7,"div",10),f(8,"i",11),c()(),a(9,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetState(1,i))}),a(10,"div",8),f(11,"i",9),c(),p(12),l(13,"translate"),a(14,"div",10),f(15,"i",11),c()(),a(16,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetState(2,i))}),a(17,"div",8),f(18,"i",9),c(),p(19),l(20,"translate"),a(21,"div",10),f(22,"i",11),c()()()}if(e&2){let t=u();y("aria-label",d(1,10,"accessories.control.media_control")),o(4),L(O(18,xt,(t.service.values==null?null:t.service.values.CurrentMediaState)===0,(t.service.values==null?null:t.service.values.CurrentMediaState)!==0)),o(),h(" ",d(6,12,"accessories.control.play")," "),o(6),L(O(21,xt,(t.service.values==null?null:t.service.values.CurrentMediaState)===1,(t.service.values==null?null:t.service.values.CurrentMediaState)!==1)),o(),h(" ",d(13,14,"accessories.control.pause")," "),o(6),L(O(24,xt,(t.service.values==null?null:t.service.values.CurrentMediaState)===2,(t.service.values==null?null:t.service.values.CurrentMediaState)!==2)),o(),h(" ",d(20,16,"accessories.control.stop")," ")}}function pd(e,r){if(e&1){let t=G();a(0,"h6"),p(1),l(2,"translate"),c(),a(3,"div",12),l(4,"translate"),a(5,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetMode(!1,i))}),a(6,"div",8),f(7,"i",9),c(),p(8),l(9,"translate"),a(10,"div",10),f(11,"i",11),c()(),a(12,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetMode(!0,i))}),a(13,"div",8),f(14,"i",9),c(),p(15),l(16,"translate"),a(17,"div",10),f(18,"i",11),c()()()}if(e&2){let t=u();o(),h(" ",d(2,8,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),o(2),y("aria-label",d(4,10,"accessories.control.mute_control")),o(4),L(O(16,xt,!t.targetMode,t.targetMode)),o(),h(" ",d(9,12,"accessories.control.not_mute")," "),o(6),L(O(19,xt,t.targetMode,!t.targetMode)),o(),h(" ",d(16,14,"accessories.control.mute")," ")}}function md(e,r){if(e&1){let t=G();a(0,"h6",13),p(1),l(2,"translate"),c(),a(3,"nouislider",14),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetVolume.value,i)||(s.targetVolume.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onVolumeStateChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),o(2),T("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),Z("ngModel",t.targetVolume.value)}}var Ao=(()=>{class e extends he{targetMode;targetVolume;targetVolumeChanged=new ne;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,n){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),this.blurTarget(n)}setActive(t,n){this.service.getCharacteristic("Active").setValue(t),this.blurTarget(n)}setTargetState(t,n){this.service.getCharacteristic("TargetMediaState").setValue(t),this.blurTarget(n)}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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4),g(6,cd,16,19,"div",5)(7,dd,23,27,"div",5),g(8,pd,19,22),g(9,md,4,8),c(),f(10,"div",6),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,5,"form.button_close")),o(3),C("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),o(2),C("Mute"in i.service.values?8:-1),o(),C(i.targetVolume?9:-1))},dependencies:[se,ce,de,pe,w],encapsulation:2,changeDetection:0})}return e})();var ud=()=>[0,1],fd=(e,r)=>({"accessory-on":e,paused:r}),vd=()=>["Speaker","SmartSpeaker"];function hd(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.play")," ")}function gd(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.pause")," ")}function Cd(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.stop")," ")}function _d(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" \xB7 ",d(1,1,"accessories.control.mute")," ")}function yd(e,r){if(e&1&&p(0),e&2){let t,n=u(3);h(" \xB7 ",(t=n.service().values)==null?null:t.Volume,"% ")}}function xd(e,r){if(e&1&&g(0,yd,1,1),e&2){let t=u(2);C("Volume"in t.service().values?0:-1)}}function Sd(e,r){if(e&1&&(a(0,"div",10),g(1,hd,2,3)(2,gd,2,3)(3,Cd,2,3),g(4,_d,2,3)(5,xd,1,1),c()),e&2){let t,n,i=u();o(),C((t=(t=i.service().values)==null?null:t.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),o(3),C("Mute"in i.service().values&&((n=i.service().values)!=null&&n.Mute)?4:5)}}function kd(e,r){e&1&&(f(0,"div",11),l(1,"translate")),e&2&&T("innerText",d(1,1,"accessories.control.off"))}function bd(e,r){e&1&&(f(0,"div",11),l(1,"translate")),e&2&&T("innerText",d(1,1,"accessories.control.mute"))}function Td(e,r){if(e&1&&(a(0,"div",10),p(1),c()),e&2){let t,n=u();o(),h("",(t=n.service().values)==null?null:t.Volume,"%")}}function Md(e,r){e&1&&(a(0,"div",10),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.on")))}function Bd(e,r){e&1&&(a(0,"div",10),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.microphone")))}var Do=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Ao,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-microphone"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"rect",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"circle",8),c()(),N(),a(10,"div",9),p(11),c(),g(12,Sd,6,2,"div",10)(13,kd,2,3,"div",11)(14,bd,2,3,"div",11)(15,Td,2,1,"div",10)(16,Md,3,3,"div",10)(17,Bd,3,3,"div",10),c()()),n&2){let s,m;L(O(8,fd,"Active"in i.service().values?(s=i.service().values)==null?null:s.Active:"CurrentMediaState"in i.service().values?Be(7,ud).includes((s=i.service().values)==null?null:s.CurrentMediaState):"Mute"in i.service().values&&"Volume"in i.service().values?!((s=i.service().values)!=null&&s.Mute)&&((s=i.service().values)==null?null:s.Volume)>0:"Mute"in i.service().values&&!((s=i.service().values)!=null&&s.Mute),"CurrentMediaState"in i.service().values&&((s=i.service().values)==null?null:s.CurrentMediaState)===1)),o(2),y("aria-label",d(3,5,"accessories.core.microphone")),o(9),v(i.service().customName||i.service().serviceName),o(),C("CurrentMediaState"in i.service().values?12:"Active"in i.service().values&&!((m=i.service().values)!=null&&m.Active)?13:"Mute"in i.service().values&&((m=i.service().values)!=null&&m.Mute)?14:"Volume"in i.service().values?15:Be(11,vd).includes(i.service().customType||i.service().type)?16:17)}},dependencies:[X,w],encapsulation:2})}return e})();function wd(e,r){e&1&&(x(0,"div",25),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function Ed(e,r){e&1&&(x(0,"div",26),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var Io=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-motion-sensor"]],inputs:{service:[1,"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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6)(8,"path",7),b(),F(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),b()(),N(),x(25,"div",24),p(26),b(),g(27,wd,3,3,"div",25)(28,Ed,3,3,"div",26),b()()),n&2){let s,m;j("accessory-on",(s=i.service().values)==null?null:s.MotionDetected),o(2),y("aria-label",d(3,5,"accessories.core.motion_sensor")),o(24),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.MotionDetected?27:28)}},dependencies:[w],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 Ad(e,r){e&1&&(x(0,"div",22),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function Dd(e,r){e&1&&(x(0,"div",23),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var Lo=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-occupancy-sensor"]],inputs:{service:[1,"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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6)(8,"path",7),b(),F(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),b()(),N(),x(22,"div",21),p(23),b(),g(24,Ad,3,3,"div",22)(25,Dd,3,3,"div",23),b()()),n&2){let s,m;j("accessory-on",(s=i.service().values)==null?null:s.OccupancyDetected),o(2),y("aria-label",d(3,5,"accessories.core.occupancy_sensor")),o(21),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.OccupancyDetected?24:25)}},dependencies:[w],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 Fo=()=>[0,2];function Id(e,r){e&1&&(I(),f(0,"line",8)(1,"line",9)(2,"line",10))}function Ld(e,r){e&1&&(I(),f(0,"line",11)(1,"line",12)(2,"line",13))}function Fd(e,r){e&1&&(I(),f(0,"line",13)(1,"line",14)(2,"line",15))}var Vo=(()=>{class e{$settings=k(we);service=E.required({});readyForControl=E(!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(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-outlet"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"rect",4)(6,"circle",5),g(7,Id,3,0)(8,Ld,3,0)(9,Fd,3,0),c()(),N(),a(10,"div",6),p(11),c(),f(12,"div",7),l(13,"translate"),c()()),n&2){let s,m;j("accessory-on",((s=i.service().values)==null?null:s.On)||((s=i.service().values)==null?null:s.Active)||"LockTargetState"in i.service().values&&!((s=i.service().values)!=null&&s.LockTargetState)||"CurrentDoorState"in i.service().values&&Be(10,Fo).includes((s=i.service().values)==null?null:s.CurrentDoorState)),o(2),y("aria-label",d(3,6,"accessories.core.outlet")),o(5),C(i.browserLang==="en-GB"?7:i.browserLang==="en-AU"||i.browserLang==="en-NZ"?8:9),o(4),v(i.service().customName||i.service().serviceName),o(),T("innerText",d(13,8,(m=i.service().values)!=null&&m.On||(m=i.service().values)!=null&&m.Active||"LockTargetState"in i.service().values&&!((m=i.service().values)!=null&&m.LockTargetState)||"CurrentDoorState"in i.service().values&&Be(11,Fo).includes((m=i.service().values)==null?null:m.CurrentDoorState)?"accessories.control.on":"accessories.control.off"))}},dependencies:[X,w],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 Po=(()=>{class e{service=E.required({});readyForControl=E(!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(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-robot-vacuum"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3)(5,"defs")(6,"clipPath",4),f(7,"rect",5),c()(),a(8,"g",6),f(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),c(),a(19,"g",17)(20,"line",18),f(21,"animate",19)(22,"animate",20)(23,"animate",21),c(),a(24,"line",22),f(25,"animate",23)(26,"animate",24)(27,"animate",25),c(),a(28,"line",26),f(29,"animate",27)(30,"animate",28)(31,"animate",29),c()()()(),N(),a(32,"div",30),p(33),c(),f(34,"div",31),l(35,"translate"),c()()),n&2){let s,m;j("accessory-on",((s=i.service().values)==null?null:s.On)||((s=i.service().values)==null?null:s.Active)),o(2),y("aria-label",d(3,5,"accessories.core.robot_vacuum")),o(31),v(i.service().customName||i.service().serviceName),o(),T("innerText",d(35,7,(m=i.service().values)!=null&&m.On||(m=i.service().values)!=null&&m.Active?"accessories.control.on":"accessories.control.off"))}},dependencies:[X,w],styles:[".accessory-on svg .motion-lines{display:inline!important}"]})}return e})();var ci=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Vd(e,r){if(e&1){let t=G();x(0,"button",8),xe("click",function(i){V(t);let s=u();return P(s.setTargetMode(3,i))}),x(1,"div",9),F(2,"i",10),b(),p(3),l(4,"translate"),x(5,"div",11),F(6,"i",12),b()()}if(e&2){let t=u();o(2),L(O(5,ci,t.targetMode===3,t.targetMode!==3)),o(),h(" ",d(4,3,"accessories.control.off")," ")}}function Pd(e,r){if(e&1){let t=G();x(0,"button",8),xe("click",function(i){V(t);let s=u();return P(s.setTargetMode(0,i))}),x(1,"div",9),F(2,"i",10),b(),p(3),l(4,"translate"),x(5,"div",11),F(6,"i",12),b()()}if(e&2){let t=u();o(2),L(O(5,ci,t.targetMode===0,t.targetMode!==0)),o(),h(" ",d(4,3,"accessories.control.home")," ")}}function Od(e,r){if(e&1){let t=G();x(0,"button",8),xe("click",function(i){V(t);let s=u();return P(s.setTargetMode(1,i))}),x(1,"div",9),F(2,"i",10),b(),p(3),l(4,"translate"),x(5,"div",11),F(6,"i",12),b()()}if(e&2){let t=u();o(2),L(O(5,ci,t.targetMode===1,t.targetMode!==1)),o(),h(" ",d(4,3,"accessories.control.away")," ")}}function Nd(e,r){if(e&1){let t=G();x(0,"button",8),xe("click",function(i){V(t);let s=u();return P(s.setTargetMode(2,i))}),x(1,"div",9),F(2,"i",10),b(),p(3),l(4,"translate"),x(5,"div",11),F(6,"i",12),b()()}if(e&2){let t=u();o(2),L(O(5,ci,t.targetMode===2,t.targetMode!==2)),o(),h(" ",d(4,3,"accessories.control.night")," ")}}var Oo=(()=>{class e extends he{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,n){this.targetMode=t,this.service.getCharacteristic("SecuritySystemTargetState").setValue(this.targetMode),this.blurTarget(n)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(x(0,"div",0)(1,"div",1),F(2,"h5",2),x(3,"button",3),l(4,"translate"),xe("click",function(){return i.dismissModal()}),b()(),x(5,"div",4)(6,"div",5),l(7,"translate"),g(8,Vd,7,8,"button",6),g(9,Pd,7,8,"button",6),g(10,Od,7,8,"button",6),g(11,Nd,7,8,"button",6),b()(),F(12,"div",7),b()),n&2&&(o(2),Ke("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,7,"form.button_close")),o(3),y("aria-label",d(7,9,"accessories.control.mode_control")),o(2),C(i.targetModeValidValues.includes(3)?8:-1),o(),C(i.targetModeValidValues.includes(0)?9:-1),o(),C(i.targetModeValidValues.includes(1)?10:-1),o(),C(i.targetModeValidValues.includes(2)?11:-1))},dependencies:[se,w],encapsulation:2,changeDetection:0})}return e})();var Hd=(e,r,t,n,i)=>({"accessory-on":e,home:r,away:t,night:n,triggered:i});function Rd(e,r){e&1&&(a(0,"div",10),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.home")))}function $d(e,r){e&1&&(a(0,"div",10),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.away")))}function jd(e,r){e&1&&(a(0,"div",10),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.night")))}function Ud(e,r){e&1&&(a(0,"div",11),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.off")))}function Wd(e,r){e&1&&(a(0,"div",11),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.triggered")))}var No=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!1,{});onClick(){if(!this.readyForControl())return;let t=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Oo,{size:"md",backdrop:"static",injector:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-security-system"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"path",4)(6,"rect",5)(7,"line",6)(8,"line",7)(9,"line",8),c()(),N(),a(10,"div",9),p(11),c(),g(12,Rd,3,3,"div",10)(13,$d,3,3,"div",10)(14,jd,3,3,"div",10)(15,Ud,3,3,"div",11)(16,Wd,3,3,"div",11),c()()),n&2){let s,m;L(kn(7,Hd,((s=i.service().values)==null?null:s.SecuritySystemCurrentState)!==3,((s=i.service().values)==null?null:s.SecuritySystemCurrentState)===0,((s=i.service().values)==null?null:s.SecuritySystemCurrentState)===1,((s=i.service().values)==null?null:s.SecuritySystemCurrentState)===2,((s=i.service().values)==null?null:s.SecuritySystemCurrentState)===4)),o(2),y("aria-label",d(3,5,"accessories.core.security_system")),o(9),v(i.service().customName||i.service().serviceName),o(),C((m=(m=i.service().values)==null?null:m.SecuritySystemCurrentState)===0?12:m===1?13:m===2?14:m===3?15:m===4?16:-1)}},dependencies:[X,w],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 Gd(e,r){e&1&&(x(0,"div",17),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function qd(e,r){e&1&&(x(0,"div",18),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var Ho=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-smoke-sensor"]],inputs:{service:[1,"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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"text",5),p(7," SMOKE "),b(),F(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),b()(),N(),x(18,"div",16),p(19),b(),g(20,Gd,3,3,"div",17)(21,qd,3,3,"div",18),b()()),n&2){let s,m;j("accessory-on",(s=i.service().values)==null?null:s.SmokeDetected),o(2),y("aria-label",d(3,5,"accessories.core.smoke_sensor")),o(17),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.SmokeDetected?20:21)}},dependencies:[w],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 St=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function zd(e,r){if(e&1){let t=G();a(0,"div",5),l(1,"translate"),a(2,"button",7),S("click",function(i){V(t);let s=u();return P(s.setActive(0,i))}),a(3,"div",8),f(4,"i",9),c(),p(5),l(6,"translate"),a(7,"div",10),f(8,"i",11),c()(),a(9,"button",7),S("click",function(i){V(t);let s=u();return P(s.setActive(1,i))}),a(10,"div",8),f(11,"i",9),c(),p(12),l(13,"translate"),a(14,"div",10),f(15,"i",11),c()()()}if(e&2){let t=u();y("aria-label",d(1,7,"accessories.control.mode_control")),o(4),L(O(13,St,(t.service.values==null?null:t.service.values.Active)===0,(t.service.values==null?null:t.service.values.Active)!==0)),o(),h(" ",d(6,9,"accessories.control.off")," "),o(6),L(O(16,St,(t.service.values==null?null:t.service.values.Active)===1,(t.service.values==null?null:t.service.values.Active)!==1)),o(),h(" ",d(13,11,"accessories.control.on")," ")}}function Yd(e,r){if(e&1){let t=G();a(0,"div",5),l(1,"translate"),a(2,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetState(0,i))}),a(3,"div",8),f(4,"i",9),c(),p(5),l(6,"translate"),a(7,"div",10),f(8,"i",11),c()(),a(9,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetState(1,i))}),a(10,"div",8),f(11,"i",9),c(),p(12),l(13,"translate"),a(14,"div",10),f(15,"i",11),c()(),a(16,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetState(2,i))}),a(17,"div",8),f(18,"i",9),c(),p(19),l(20,"translate"),a(21,"div",10),f(22,"i",11),c()()()}if(e&2){let t=u();y("aria-label",d(1,10,"accessories.control.media_control")),o(4),L(O(18,St,(t.service.values==null?null:t.service.values.CurrentMediaState)===0,(t.service.values==null?null:t.service.values.CurrentMediaState)!==0)),o(),h(" ",d(6,12,"accessories.control.play")," "),o(6),L(O(21,St,(t.service.values==null?null:t.service.values.CurrentMediaState)===1,(t.service.values==null?null:t.service.values.CurrentMediaState)!==1)),o(),h(" ",d(13,14,"accessories.control.pause")," "),o(6),L(O(24,St,(t.service.values==null?null:t.service.values.CurrentMediaState)===2,(t.service.values==null?null:t.service.values.CurrentMediaState)!==2)),o(),h(" ",d(20,16,"accessories.control.stop")," ")}}function Kd(e,r){if(e&1){let t=G();a(0,"h6"),p(1),l(2,"translate"),c(),a(3,"div",12),l(4,"translate"),a(5,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetMode(!1,i))}),a(6,"div",8),f(7,"i",9),c(),p(8),l(9,"translate"),a(10,"div",10),f(11,"i",11),c()(),a(12,"button",7),S("click",function(i){V(t);let s=u();return P(s.setTargetMode(!0,i))}),a(13,"div",8),f(14,"i",9),c(),p(15),l(16,"translate"),a(17,"div",10),f(18,"i",11),c()()()}if(e&2){let t=u();o(),h(" ",d(2,8,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),o(2),y("aria-label",d(4,10,"accessories.control.mute_control")),o(4),L(O(16,St,!t.targetMode,t.targetMode)),o(),h(" ",d(9,12,"accessories.control.not_mute")," "),o(6),L(O(19,St,t.targetMode,!t.targetMode)),o(),h(" ",d(16,14,"accessories.control.mute")," ")}}function Zd(e,r){if(e&1){let t=G();a(0,"h6",13),p(1),l(2,"translate"),c(),a(3,"nouislider",14),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetVolume.value,i)||(s.targetVolume.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onVolumeStateChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),o(2),T("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),Z("ngModel",t.targetVolume.value)}}var Ro=(()=>{class e extends he{targetMode;targetVolume;targetVolumeChanged=new ne;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,n){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),this.blurTarget(n)}setActive(t,n){this.service.getCharacteristic("Active").setValue(t),this.blurTarget(n)}setTargetState(t,n){this.service.getCharacteristic("TargetMediaState").setValue(t),this.blurTarget(n)}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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4),g(6,zd,16,19,"div",5)(7,Yd,23,27,"div",5),g(8,Kd,19,22),g(9,Zd,4,8),c(),f(10,"div",6),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,5,"form.button_close")),o(3),C("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),o(2),C("Mute"in i.service.values?8:-1),o(),C(i.targetVolume?9:-1))},dependencies:[se,ce,de,pe,w],encapsulation:2,changeDetection:0})}return e})();var Qd=()=>[0,1],Jd=(e,r,t)=>({"accessory-on":e,paused:r,muted:t}),Xd=()=>["Speaker","SmartSpeaker"];function e1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.play")," ")}function t1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.pause")," ")}function i1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.stop")," ")}function n1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" \xB7 ",d(1,1,"accessories.control.mute")," ")}function o1(e,r){if(e&1&&p(0),e&2){let t,n=u(3);h(" \xB7 ",(t=n.service().values)==null?null:t.Volume,"% ")}}function r1(e,r){if(e&1&&g(0,o1,1,1),e&2){let t=u(2);C("Volume"in t.service().values?0:-1)}}function a1(e,r){if(e&1&&(a(0,"div",14),g(1,e1,2,3)(2,t1,2,3)(3,i1,2,3),g(4,n1,2,3)(5,r1,1,1),c()),e&2){let t,n,i=u();o(),C((t=(t=i.service().values)==null?null:t.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),o(3),C("Mute"in i.service().values&&((n=i.service().values)!=null&&n.Mute)?4:5)}}function s1(e,r){e&1&&(f(0,"div",15),l(1,"translate")),e&2&&T("innerText",d(1,1,"accessories.control.off"))}function l1(e,r){e&1&&(f(0,"div",15),l(1,"translate")),e&2&&T("innerText",d(1,1,"accessories.control.mute"))}function c1(e,r){if(e&1&&(a(0,"div",14),p(1),c()),e&2){let t,n=u();o(),h("",(t=n.service().values)==null?null:t.Volume,"%")}}function d1(e,r){e&1&&(a(0,"div",14),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.on")))}function p1(e,r){e&1&&(a(0,"div",14),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.speaker")))}var $o=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Ro,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-speaker"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(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),c()(),N(),a(14,"div",13),p(15),c(),g(16,a1,6,2,"div",14)(17,s1,2,3,"div",15)(18,l1,2,3,"div",15)(19,c1,2,1,"div",14)(20,d1,3,3,"div",14)(21,p1,3,3,"div",14),c()()),n&2){let s,m;L(At(8,Jd,"Active"in i.service().values?(s=i.service().values)==null?null:s.Active:"CurrentMediaState"in i.service().values?Be(7,Qd).includes((s=i.service().values)==null?null:s.CurrentMediaState):"Mute"in i.service().values&&"Volume"in i.service().values?!((s=i.service().values)!=null&&s.Mute)&&((s=i.service().values)==null?null:s.Volume)>0:"Mute"in i.service().values&&!((s=i.service().values)!=null&&s.Mute),"CurrentMediaState"in i.service().values&&((s=i.service().values)==null?null:s.CurrentMediaState)===1,"Mute"in i.service().values&&((s=i.service().values)==null?null:s.Mute))),o(2),y("aria-label",d(3,5,"accessories.core.speaker")),o(13),v(i.service().customName||i.service().serviceName),o(),C("CurrentMediaState"in i.service().values?16:"Active"in i.service().values&&!((m=i.service().values)!=null&&m.Active)?17:"Mute"in i.service().values&&((m=i.service().values)!=null&&m.Mute)?18:"Volume"in i.service().values?19:Be(12,Xd).includes(i.service().customType||i.service().type)?20:21)}},dependencies:[X,w],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 m1=(e,r,t)=>({"press-single":e,"press-double":r,"press-long":t}),jo=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-stateless-programmable-switch"]],inputs:{service:[1,"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(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"circle",5)(7,"circle",6)(8,"circle",7)(9,"circle",8)(10,"line",9)(11,"line",10),b()(),N(),x(12,"div",11),p(13),b(),x(14,"div",12),p(15),l(16,"translate"),b()()()),n&2){let s;L(At(9,m1,((s=i.service().values)==null?null:s.ProgrammableSwitchEvent)===0,((s=i.service().values)==null?null:s.ProgrammableSwitchEvent)===1,((s=i.service().values)==null?null:s.ProgrammableSwitchEvent)===2)),o(2),y("aria-label",d(3,5,"accessories.core.stateless_programmable_switch")),o(11),v(i.service().customName||i.service().serviceName),o(2),v(d(16,7,"accessories.control.stateless"))}},dependencies:[w],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 Uo=()=>[0,2],Wo=(()=>{class e{service=E.required({});readyForControl=E(!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(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-switch"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"circle",4)(6,"line",5)(7,"path",6),c()(),N(),a(8,"div",7),p(9),c(),f(10,"div",8),l(11,"translate"),c()()),n&2){let s,m;j("accessory-on",((s=i.service().values)==null?null:s.On)||((s=i.service().values)==null?null:s.Active)||"LockTargetState"in i.service().values&&!((s=i.service().values)!=null&&s.LockTargetState)||"CurrentDoorState"in i.service().values&&Be(9,Uo).includes((s=i.service().values)==null?null:s.CurrentDoorState)),o(2),y("aria-label",d(3,5,"accessories.core.switch")),o(7),v(i.service().customName||i.service().serviceName),o(),T("innerText",d(11,7,(m=i.service().values)!=null&&m.On||(m=i.service().values)!=null&&m.Active||"LockTargetState"in i.service().values&&!((m=i.service().values)!=null&&m.LockTargetState)||"CurrentDoorState"in i.service().values&&Be(10,Uo).includes((m=i.service().values)==null?null:m.CurrentDoorState)?"accessories.control.on":"accessories.control.off"))}},dependencies:[X,w],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 u1=(e,r)=>({"mb-4":e,"mb-0":r}),Oi=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function f1(e,r){if(e&1){let t=G();x(0,"div",7),l(1,"translate"),x(2,"button",8),xe("click",function(i){V(t);let s=u();return P(s.setActive(0,i))}),x(3,"div",9),F(4,"i",10),b(),p(5),l(6,"translate"),x(7,"div",11),F(8,"i",12),b()(),x(9,"button",8),xe("click",function(i){V(t);let s=u();return P(s.setActive(1,i))}),x(10,"div",9),F(11,"i",10),b(),p(12),l(13,"translate"),x(14,"div",11),F(15,"i",12),b()()()}if(e&2){let t=u();L(O(15,u1,t.sourceList.length,!t.sourceList.length)),y("aria-label",d(1,9,"accessories.control.mode_control")),o(4),L(O(18,Oi,(t.service.values==null?null:t.service.values.Active)===0,(t.service.values==null?null:t.service.values.Active)!==0)),o(),h(" ",d(6,11,"accessories.control.off")," "),o(6),L(O(21,Oi,(t.service.values==null?null:t.service.values.Active)===1,(t.service.values==null?null:t.service.values.Active)!==1)),o(),h(" ",d(13,13,"accessories.control.on")," ")}}function v1(e,r){e&1&&(x(0,"h6"),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.input")))}function h1(e,r){if(e&1){let t=G();x(0,"button",8),xe("click",function(i){let s=V(t).$implicit,m=u(2);return P(m.setInput(s.identifier,i))}),x(1,"div",9),F(2,"i",10),b(),p(3),x(4,"div",11),F(5,"i",12),b()()}if(e&2){let t=r.$implicit,n=u(2);o(2),L(O(3,Oi,(n.service.values==null?null:n.service.values.ActiveIdentifier)===t.identifier,(n.service.values==null?null:n.service.values.ActiveIdentifier)!==t.identifier)),o(),h(" ",t.name," ")}}function g1(e,r){if(e&1&&(g(0,v1,3,3,"h6"),x(1,"div",13),l(2,"translate"),Xe(3,h1,6,6,"button",14,ot),b()),e&2){let t=u();C(t.hasActive?0:-1),o(),y("aria-label",d(2,2,"accessories.control.input_control")),o(2),et(t.sourceList)}}var Go=(()=>{class e extends he{inputList=E.required({});hasActive=!1;sourceList=[];setupComponent(){"Active"in this.service.values&&(this.hasActive=!0),Object.keys(this.inputList).length&&Object.entries(this.inputList).forEach(([t,n])=>{this.sourceList.push({identifier:Number.parseInt(t,10),name:n})})}handleAccessoryUpdate(){"Active"in this.service.values&&(this.hasActive=!0)}setActive(t,n){this.service.getCharacteristic("Active").setValue(t),this.blurTarget(n)}setInput(t,n){this.service.getCharacteristic("ActiveIdentifier").setValue(t),this.blurTarget(n)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{inputList:[1,"inputList"]},features:[ve],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(n,i){n&1&&(x(0,"div",0)(1,"div",1),F(2,"h5",2),x(3,"button",3),l(4,"translate"),xe("click",function(){return i.dismissModal()}),b()(),x(5,"div",4),g(6,f1,16,24,"div",5),g(7,g1,5,4),b(),F(8,"div",6),b()),n&2&&(o(2),Ke("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,4,"form.button_close")),o(3),C(i.hasActive?6:-1),o(),C(i.sourceList.length?7:-1))},dependencies:[se,w],encapsulation:2,changeDetection:0})}return e})();function C1(e,r){if(e&1&&(a(0,"div",7),p(1),l(2,"translate"),c()),e&2){let t,n=u();o(),h(" ",n.channelList[(t=n.service().values)==null?null:t.ActiveIdentifier]||d(2,1,"accessories.control.on")," ")}}function _1(e,r){e&1&&(a(0,"div",7),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.off")))}var qo=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Go,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-television"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"line",4)(6,"rect",5),c()(),N(),a(7,"div",6),p(8),c(),g(9,C1,3,3,"div",7)(10,_1,3,3,"div",7),c()()),n&2){let s,m,D;j("accessory-on",((s=i.service().values)==null?null:s.Active)||((s=i.service().values)==null?null:s.On)),o(2),y("aria-label",d(3,5,"accessories.core.television")),o(6),h(" ",i.service().customName||((m=i.service().values)==null?null:m.ConfiguredName)||i.service().serviceName," "),o(),C((D=i.service().values)!=null&&D.On||(D=i.service().values)!=null&&D.Active?9:10)}},dependencies:[X,w],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 y1(e,r){if(e&1&&(p(0),l(1,"convertTemp"),l(2,"number"),l(3,"uppercase")),e&2){let t,n=u();$(" ",me(2,4,d(1,2,(t=n.service().values)==null?null:t.CurrentTemperature),"1.0-1"),"\xB0",d(3,7,n.temperatureUnits)," ")}}function x1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.no_data")," ")}var zo=(()=>{class e{$settings=k(we);service=E.required({});temperatureUnits=this.$settings.env.temperatureUnits;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-temperature-sensor"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(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),b()(),N(),x(29,"div",28),p(30),b(),x(31,"div",29),g(32,y1,4,9)(33,x1,2,3),b()()()),n&2&&(o(2),y("aria-label",d(3,3,"accessories.core.temperature_sensor")),o(28),v(i.service().customName||i.service().serviceName),o(2),C("CurrentTemperature"in i.service().values?32:33))},dependencies:[Ie,Ne,je,w],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 di=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function S1(e,r){if(e&1&&p(0),e&2){let t=u();h(" \xB7 ",t.service.values==null?null:t.service.values.CurrentRelativeHumidity,"% ")}}function k1(e,r){if(e&1){let t=G();a(0,"button",10),S("click",function(i){V(t);let s=u();return P(s.setTargetMode(0,i))}),a(1,"div",11),f(2,"i",12),c(),p(3),l(4,"translate"),a(5,"div",13),f(6,"i",14),c()()}if(e&2){let t=u();o(2),L(O(5,di,t.targetMode===0,t.targetMode!==0)),o(),h(" ",d(4,3,"accessories.control.off")," ")}}function b1(e,r){if(e&1){let t=G();a(0,"button",10),S("click",function(i){V(t);let s=u();return P(s.setTargetMode(3,i))}),a(1,"div",11),f(2,"i",12),c(),p(3),l(4,"translate"),a(5,"div",13),f(6,"i",14),c()()}if(e&2){let t=u();o(2),L(O(5,di,t.targetMode===3,t.targetMode!==3)),o(),h(" ",d(4,3,"accessories.control.auto")," ")}}function T1(e,r){if(e&1){let t=G();a(0,"button",10),S("click",function(i){V(t);let s=u();return P(s.setTargetMode(1,i))}),a(1,"div",11),f(2,"i",12),c(),p(3),l(4,"translate"),a(5,"div",13),f(6,"i",14),c()()}if(e&2){let t=u();o(2),L(O(5,di,t.targetMode===1,t.targetMode!==1)),o(),h(" ",d(4,3,"accessories.control.heat")," ")}}function M1(e,r){if(e&1){let t=G();a(0,"button",10),S("click",function(i){V(t);let s=u();return P(s.setTargetMode(2,i))}),a(1,"div",11),f(2,"i",12),c(),p(3),l(4,"translate"),a(5,"div",13),f(6,"i",14),c()()}if(e&2){let t=u();o(2),L(O(5,di,t.targetMode===2,t.targetMode!==2)),o(),h(" ",d(4,3,"accessories.control.cool")," ")}}function B1(e,r){if(e&1){let t=G();a(0,"h6",15),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c(),a(6,"nouislider",16),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetTemperature.value,i)||(s.targetTemperature.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onTemperatureStateChange())}),c()}if(e&2){let t=u();o(),tt(" ",d(2,7,"accessories.control.target"),": ",me(4,11,d(3,9,t.targetTemperature.value),"1.0-1"),"\xB0",d(5,14,t.temperatureUnits)," "),o(5),T("min",t.targetTemperature.min)("max",t.targetTemperature.max)("step",t.targetTemperature.step),Z("ngModel",t.targetTemperature.value)}}function w1(e,r){if(e&1){let t=G();a(0,"h6",17),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),l(6,"convertTemp"),l(7,"number"),l(8,"uppercase"),c(),a(9,"nouislider",16),J("ngModelChange",function(i){V(t);let s=u(2);return Q(s.autoTemp,i)||(s.autoTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onAutoThresholdStateChange())}),c()}if(e&2){let t=u(2);o(),Et(" ",d(2,9,"accessories.control.threshold_auto"),": ",me(4,13,d(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",d(5,16,t.temperatureUnits)," - ",me(7,20,d(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",d(8,23,t.temperatureUnits)," "),o(8),T("min",t.HeatingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),Z("ngModel",t.autoTemp)}}function E1(e,r){if(e&1){let t=G();a(0,"h6",15),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c(),a(6,"nouislider",16),J("ngModelChange",function(i){V(t);let s=u(2);return Q(s.targetHeatingTemp,i)||(s.targetHeatingTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onThresholdStateChange())}),c()}if(e&2){let t=u(2);o(),tt(" ",d(2,7,"accessories.control.threshold_auto"),": ",me(4,11,d(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",d(5,14,t.temperatureUnits)," "),o(5),T("min",t.HeatingThresholdTemperature.minValue)("max",t.HeatingThresholdTemperature.maxValue)("step",t.HeatingThresholdTemperature.minStep),Z("ngModel",t.targetHeatingTemp)}}function A1(e,r){if(e&1){let t=G();a(0,"h6",15),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c(),a(6,"nouislider",16),J("ngModelChange",function(i){V(t);let s=u(2);return Q(s.targetCoolingTemp,i)||(s.targetCoolingTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onThresholdStateChange())}),c()}if(e&2){let t=u(2);o(),tt(" ",d(2,7,"accessories.control.threshold_auto"),": ",me(4,11,d(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",d(5,14,t.temperatureUnits)," "),o(5),T("min",t.CoolingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),Z("ngModel",t.targetCoolingTemp)}}function D1(e,r){if(e&1&&g(0,w1,10,25)(1,E1,7,16)(2,A1,7,16),e&2){let t=u();C(t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?0:t.HeatingThresholdTemperature&&!t.CoolingThresholdTemperature?1:!t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?2:-1)}}var Yo=(()=>{class e extends he{$settings=k(we);targetMode;targetTemperature;targetTemperatureChanged=new ne;targetThresholdChanged=new ne;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,n){this.targetMode=t,this.service.getCharacteristic("TargetHeatingCoolingState").setValue(this.targetMode),this.blurTarget(n),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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"h6",5),f(7,"i",6),p(8),l(9,"convertTemp"),l(10,"number"),l(11,"uppercase"),g(12,S1,1,1),c(),a(13,"div",7),l(14,"translate"),g(15,k1,7,8,"button",8),g(16,b1,7,8,"button",8),g(17,T1,7,8,"button",8),g(18,M1,7,8,"button",8),c(),g(19,B1,7,16),g(20,D1,3,1),c(),f(21,"div",9),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,14,"form.button_close")),o(4),dt("color",(i.service.values==null?null:i.service.values.CurrentHeatingCoolingState)===2?"#1e8bbd":(i.service.values==null?null:i.service.values.CurrentHeatingCoolingState)===1?"#e69533":(i.service.values==null?null:i.service.values.TargetHeatingCoolingState)===3?"#42d672":"#7b7b7b"),o(),$("",me(10,18,d(9,16,i.service.values==null?null:i.service.values.CurrentTemperature),"1.0-1"),"\xB0",d(11,21,i.temperatureUnits)," "),o(4),C(i.hasHumidity?12:-1),o(),y("aria-label",d(14,23,"accessories.control.mode_control")),o(2),C(i.targetStateValidValues.includes(0)?15:-1),o(),C(i.targetStateValidValues.includes(3)?16:-1),o(),C(i.targetStateValidValues.includes(1)?17:-1),o(),C(i.targetStateValidValues.includes(2)?18:-1),o(),C("TargetTemperature"in i.service.values?19:-1),o(),C(i.targetStateValidValues.includes(3)?20:-1))},dependencies:[se,ce,de,pe,Ie,w,Ne,je],encapsulation:2,changeDetection:0})}return e})();function I1(e,r){if(e&1&&(I(),a(0,"text",18),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase"),c()),e&2){let t,n=u();o(),$(" ",me(3,4,d(2,2,(t=n.service().values)==null?null:t.CurrentTemperature),"1.0-1"),"\xB0",d(4,7,n.temperatureUnits)," ")}}function L1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.off")," ")}function F1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.heat")," ")}function V1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.cool")," ")}function P1(e,r){if(e&1&&(f(0,"i",21),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase")),e&2){let t,n=u();o(),$(" ",me(3,4,d(2,2,(t=n.service().values)==null?null:t.TargetTemperature),"1.0-1"),"\xB0",d(4,7,n.temperatureUnits)," ")}}var Ko=(()=>{class e{$modal=k(ie);injector=k(ee);$settings=k(we);$accessories=k(re);service=E.required({});readyForControl=E(!1,{});temperatureUnits=this.$settings.env.temperatureUnits;onClick(){if(!this.readyForControl())return;let t=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Yo,{size:"md",backdrop:"static",injector:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-thermostat"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),f(8,"animate",6),c(),a(9,"stop",7),f(10,"animate",8),c(),a(11,"stop",9),f(12,"animate",6),c()(),a(13,"linearGradient",10)(14,"stop",11),f(15,"animate",12),c(),a(16,"stop",13),f(17,"animate",14),c(),a(18,"stop",15),f(19,"animate",12),c()()(),f(20,"rect",16)(21,"rect",17),g(22,I1,5,9,":svg:text",18),c()(),N(),a(23,"div",19),p(24),c(),a(25,"div",20),g(26,L1,2,3)(27,F1,2,3)(28,V1,2,3)(29,P1,5,9),c()()()),n&2){let s,m,D;j("accessory-on",((s=i.service().values)==null?null:s.TargetHeatingCoolingState)>0),o(2),y("aria-label",d(3,7,"accessories.core.thermostat")),o(19),y("fill",((m=i.service().values)==null?null:m.CurrentHeatingCoolingState)===2?"url(#coolingGradient)":((m=i.service().values)==null?null:m.CurrentHeatingCoolingState)===1?"url(#heatingGradient)":((m=i.service().values)==null?null:m.TargetHeatingCoolingState)===3?"#42d672":"#7b7b7b"),o(),C("CurrentTemperature"in i.service().values?22:-1),o(2),v(i.service().customName||i.service().serviceName),o(2),C(((D=i.service().values)==null?null:D.TargetHeatingCoolingState)===0?26:((D=i.service().values)==null?null:D.CurrentHeatingCoolingState)===1?27:((D=i.service().values)==null?null:D.CurrentHeatingCoolingState)===2?28:((D=i.service().values)==null?null:D.TargetHeatingCoolingState)===3?29:-1)}},dependencies:[X,Ie,w,Ne,je],encapsulation:2})}return e})();var Zo=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-unknown"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),I(),x(3,"svg",3),F(4,"circle",4)(5,"path",5),b()(),N(),x(6,"div",6),p(7),b(),x(8,"div",7),p(9),b()()()),n&2&&(o(2),y("aria-label",i.service().humanType),o(5),v(i.service().customName||i.service().serviceName),o(2),v(i.service().humanType))},encapsulation:2})}return e})();var Qo=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function O1(e,r){if(e&1){let t=G();a(0,"h6"),p(1),l(2,"translate"),l(3,"duration"),c(),a(4,"nouislider",12),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetSetDuration.value,i)||(s.targetSetDuration.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onSetDurationStateChange())}),c()}if(e&2){let t=u();o(),$(" ",d(2,6,"accessories.control.set_duration"),": ",t.targetSetDuration.value===0?"\u221E":d(3,8,t.targetSetDuration.value)," "),o(3),T("min",t.targetSetDuration.min)("max",t.targetSetDuration.max)("step",15),Z("ngModel",t.targetSetDuration.value)}}var Jo=(()=>{class e extends he{targetMode;targetSetDuration;targetSetDurationChanged=new ne;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,n){this.targetMode=t,this.service.getCharacteristic("Active").setValue(this.targetMode),this.blurTarget(n)}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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5),l(7,"translate"),a(8,"button",6),S("click",function(m){return i.setTargetMode(!1,m)}),a(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),a(13,"div",9),f(14,"i",10),c()(),a(15,"button",6),S("click",function(m){return i.setTargetMode(!0,m)}),a(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),a(20,"div",9),f(21,"i",10),c()()(),g(22,O1,5,10),c(),f(23,"div",11),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,10,"form.button_close")),o(3),y("aria-label",d(7,12,"accessories.control.mode_control")),o(4),L(O(18,Qo,!i.targetMode,i.targetMode)),o(),h(" ",d(12,14,"accessories.control.off")," "),o(6),L(O(21,Qo,i.targetMode,!i.targetMode)),o(),h(" ",d(19,16,"accessories.control.on")," "),o(4),C(i.targetSetDuration?22:-1))},dependencies:[se,ce,de,pe,w,li],encapsulation:2,changeDetection:0})}return e})();function N1(e,r){e&1&&(a(0,"div",2),l(1,"translate"),I(),a(2,"svg",5),f(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),c()()),e&2&&y("aria-label",d(1,1,"accessories.core.generic_valve"))}function H1(e,r){e&1&&(a(0,"div",2),l(1,"translate"),I(),a(2,"svg",5),f(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),c()()),e&2&&y("aria-label",d(1,1,"accessories.core.irrigation_valve"))}function R1(e,r){e&1&&(a(0,"div",2),l(1,"translate"),I(),a(2,"svg",5),f(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),c()()),e&2&&y("aria-label",d(1,1,"accessories.core.shower_head_valve"))}function $1(e,r){e&1&&(a(0,"div",2),l(1,"translate"),I(),a(2,"svg",5),f(3,"rect",46)(4,"line",47)(5,"line",48)(6,"rect",49)(7,"path",50)(8,"line",51)(9,"line",52),c()()),e&2&&y("aria-label",d(1,1,"accessories.core.faucet_valve"))}function j1(e,r){if(e&1&&(a(0,"div",4),p(1),c()),e&2){let t=u();o(),v(t.remainingDuration)}}function U1(e,r){e&1&&(a(0,"div",4),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.running")))}function W1(e,r){e&1&&(a(0,"div",4),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.off")))}var Xo=(()=>{class e{destroyRef=k(ke);injector=k(ee);$accessories=k(re);$modal=k(ie);service=E.required({});readyForControl=E(!1,{});secondsActive=0;remainingDuration;remainingDurationInterval=cn(1e3).pipe(dn(()=>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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Jo,{size:"md",backdrop:"static",injector:t})}}isActive(){return this.service().values.Active?!0:(this.resetRemainingDuration(),!1)}setupRemainingDurationCounter(){this.remainingDurationInterval.pipe(ge(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(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-valve"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1),g(2,N1,13,3,"div",2)(3,H1,16,3,"div",2)(4,R1,20,3,"div",2)(5,$1,10,3,"div",2),a(6,"div",3),p(7),c(),g(8,j1,2,1,"div",4)(9,U1,3,3,"div",4)(10,W1,3,3,"div",4),c()()),n&2){let s,m,D,z;j("accessory-on",((s=i.service().values)==null?null:s.Active)||((s=i.service().values)==null?null:s.On)),o(2),C(((m=i.service().values)==null?null:m.ValveType)===0||!((m=i.service().values)!=null&&m.ValveType)?2:((m=i.service().values)==null?null:m.ValveType)===1?3:((m=i.service().values)==null?null:m.ValveType)===2?4:((m=i.service().values)==null?null:m.ValveType)===3?5:-1),o(5),h(" ",i.service().customName||((D=i.service().values)==null?null:D.ConfiguredName)||i.service().serviceName," "),o(),C((z=i.service().values)!=null&&z.Active&&i.remainingDuration?8:(z=i.service().values)!=null&&z.Active&&!i.remainingDuration||(z=i.service().values)!=null&&z.On?9:10)}},dependencies:[X,w],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 er=(()=>{class e{service=E.required({});readyForControl=E(!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(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-washing-machine"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(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),c()(),N(),a(18,"div",17),p(19),c(),f(20,"div",18),l(21,"translate"),c()()),n&2){let s,m;j("accessory-on",((s=i.service().values)==null?null:s.On)||((s=i.service().values)==null?null:s.Active)),o(2),y("aria-label",d(3,5,"accessories.core.washing_machine")),o(17),v(i.service().customName||i.service().serviceName),o(),T("innerText",d(21,7,(m=i.service().values)!=null&&m.On||(m=i.service().values)!=null&&m.Active?"accessories.control.on":"accessories.control.off"))}},dependencies:[X,w],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 G1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.closed")," ")}function q1(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u(2);$(" ",d(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function z1(e,r){if(e&1&&g(0,G1,2,3)(1,q1,2,4),e&2){let t=u();C((t.service.values==null?null:t.service.values.CurrentPosition)===0?0:1)}}function Y1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.opening"),"... ")}function K1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.closing"),"... ")}var tr=(()=>{class e extends he{targetMode;targetPositionChanged=new ne;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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5)(7,"div",6),g(8,z1,2,1)(9,Y1,2,3)(10,K1,2,3),c()(),a(11,"h6",7),p(12),l(13,"translate"),c(),a(14,"nouislider",8),J("ngModelChange",function(m){return Q(i.targetPosition.value,m)||(i.targetPosition.value=m),m}),S("ngModelChange",function(){return i.onTargetPositionChange()}),c(),a(15,"div",9)(16,"span",10),p(17),l(18,"translate"),c(),a(19,"span",10),p(20),l(21,"translate"),c()(),a(22,"h6",7),p(23),l(24,"translate"),c(),a(25,"nouislider",11),J("ngModelChange",function(m){return Q(i.service.getCharacteristic("CurrentPosition").value,m)||(i.service.getCharacteristic("CurrentPosition").value=m),m}),c(),a(26,"div",9)(27,"span",10),p(28),l(29,"translate"),c(),a(30,"span",10),p(31),l(32,"translate"),c()()(),f(33,"div",12),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,20,"form.button_close")),o(5),C((i.service.values==null?null:i.service.values.PositionState)===2?8:(i.service.values==null?null:i.service.values.PositionState)===1?9:(i.service.values==null?null:i.service.values.PositionState)===0?10:-1),o(4),$("",d(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),o(2),T("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),Z("ngModel",i.targetPosition.value),o(3),v(d(18,24,"accessories.control.closed")),o(3),v(d(21,26,"accessories.control.open")),o(3),$(" ",d(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),o(2),T("min",0)("max",100)("step",1)("disabled",!0),Z("ngModel",i.service.getCharacteristic("CurrentPosition").value),o(3),v(d(29,30,"accessories.control.closed")),o(3),v(d(32,32,"accessories.control.open")))},dependencies:[pe,se,ce,de,w],encapsulation:2,changeDetection:0})}return e})();function Z1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.closed")," ")}function Q1(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t,n=u(2);$(" ",d(1,2,"accessories.control.open")," ",(t=n.service().values)==null?null:t.CurrentPosition,"% ")}}function J1(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.open")," ")}function X1(e,r){if(e&1&&(a(0,"div",12),g(1,Z1,2,3),g(2,Q1,2,4),g(3,J1,2,3),c()),e&2){let t,n,i,s=u();o(),C(((t=s.service().values)==null?null:t.CurrentPosition)===0?1:-1),o(),C(((n=s.service().values)==null?null:n.CurrentPosition)>0&&((n=s.service().values)==null?null:n.CurrentPosition)<100?2:-1),o(),C(((i=s.service().values)==null?null:i.CurrentPosition)===100?3:-1)}}function ep(e,r){e&1&&(a(0,"div",13),p(1),l(2,"translate"),c()),e&2&&(o(),h("",d(2,1,"accessories.control.opening"),"..."))}function tp(e,r){e&1&&(a(0,"div",13),p(1),l(2,"translate"),c()),e&2&&(o(),h("",d(2,1,"accessories.control.closing"),"..."))}var ir=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(tr,{size:"md",backdrop:"static",injector:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-window-covering"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"rect",8)(10,"rect",9)(11,"rect",10),c()(),N(),a(12,"div",11),p(13),c(),g(14,X1,4,3,"div",12)(15,ep,3,3,"div",13)(16,tp,3,3,"div",13),c()()),n&2){let s,m;j("accessory-on",(s=i.service().values)==null?null:s.CurrentPosition),o(2),y("aria-label",d(3,5,"accessories.core.window_covering")),o(11),v(i.service().customName||i.service().serviceName),o(),C(((m=i.service().values)==null?null:m.PositionState)===2?14:((m=i.service().values)==null?null:m.PositionState)===1?15:((m=i.service().values)==null?null:m.PositionState)===0?16:-1)}},dependencies:[X,w],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 ip(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.closed")," ")}function np(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u(2);$(" ",d(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function op(e,r){if(e&1&&g(0,ip,2,3)(1,np,2,4),e&2){let t=u();C((t.service.values==null?null:t.service.values.CurrentPosition)===0?0:1)}}function rp(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.opening"),"... ")}function ap(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.closing"),"... ")}var nr=(()=>{class e extends he{targetMode;targetPositionChanged=new ne;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=fe(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ve],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5)(7,"div",6),g(8,op,2,1)(9,rp,2,3)(10,ap,2,3),c()(),a(11,"h6",7),p(12),l(13,"translate"),c(),a(14,"nouislider",8),J("ngModelChange",function(m){return Q(i.targetPosition.value,m)||(i.targetPosition.value=m),m}),S("ngModelChange",function(){return i.onTargetPositionChange()}),c(),a(15,"div",9)(16,"span",10),p(17),l(18,"translate"),c(),a(19,"span",10),p(20),l(21,"translate"),c()(),a(22,"h6",7),p(23),l(24,"translate"),c(),a(25,"nouislider",11),J("ngModelChange",function(m){return Q(i.service.getCharacteristic("CurrentPosition").value,m)||(i.service.getCharacteristic("CurrentPosition").value=m),m}),c(),a(26,"div",9)(27,"span",10),p(28),l(29,"translate"),c(),a(30,"span",10),p(31),l(32,"translate"),c()()(),f(33,"div",12),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,20,"form.button_close")),o(5),C((i.service.values==null?null:i.service.values.PositionState)===2?8:(i.service.values==null?null:i.service.values.PositionState)===1?9:(i.service.values==null?null:i.service.values.PositionState)===0?10:-1),o(4),$("",d(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),o(2),T("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),Z("ngModel",i.targetPosition.value),o(3),v(d(18,24,"accessories.control.closed")),o(3),v(d(21,26,"accessories.control.open")),o(3),$(" ",d(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),o(2),T("min",0)("max",100)("step",1)("disabled",!0),Z("ngModel",i.service.getCharacteristic("CurrentPosition").value),o(3),v(d(29,30,"accessories.control.closed")),o(3),v(d(32,32,"accessories.control.open")))},dependencies:[pe,se,ce,de,w],encapsulation:2,changeDetection:0})}return e})();function sp(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.closed")," ")}function lp(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t,n=u(2);$(" ",d(1,2,"accessories.control.open")," ",(t=n.service().values)==null?null:t.CurrentPosition,"% ")}}function cp(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.open")," ")}function dp(e,r){if(e&1&&(a(0,"div",12),g(1,sp,2,3),g(2,lp,2,4),g(3,cp,2,3),c()),e&2){let t,n,i,s=u();o(),C(((t=s.service().values)==null?null:t.CurrentPosition)===0?1:-1),o(),C(((n=s.service().values)==null?null:n.CurrentPosition)>0&&((n=s.service().values)==null?null:n.CurrentPosition)<100?2:-1),o(),C(((i=s.service().values)==null?null:i.CurrentPosition)===100?3:-1)}}function pp(e,r){e&1&&(a(0,"div",13),p(1),l(2,"translate"),c()),e&2&&(o(),h("",d(2,1,"accessories.control.opening"),"..."))}function mp(e,r){e&1&&(a(0,"div",13),p(1),l(2,"translate"),c()),e&2&&(o(),h("",d(2,1,"accessories.control.closing"),"..."))}var or=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!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=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(nr,{size:"md",backdrop:"static",injector:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-window"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"rect",8)(10,"rect",9)(11,"rect",10),c()(),N(),a(12,"div",11),p(13),c(),g(14,dp,4,3,"div",12)(15,pp,3,3,"div",13)(16,mp,3,3,"div",13),c()()),n&2){let s,m;j("accessory-on",(s=i.service().values)==null?null:s.CurrentPosition),o(2),y("aria-label",d(3,5,"accessories.core.window")),o(11),v(i.service().customName||i.service().serviceName),o(),C(((m=i.service().values)==null?null:m.PositionState)===2?14:((m=i.service().values)==null?null:m.PositionState)===1?15:((m=i.service().values)==null?null:m.PositionState)===0?16:-1)}},dependencies:[X,w],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 Gt={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"},We=(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})(We||{}),Ni=(function(e){return e[e.Idle=0]="Idle",e[e.Cleaning=1]="Cleaning",e})(Ni||{}),Re={Min:0,Max:254},It={MinMired:147,MaxMired:500};function rr(e){return e.deviceType===Gt.OnOffLight||e.deviceType===Gt.OnOffLightSwitch||e.deviceType===Gt.OnOffPlugInUnit}function Hi(e){return e.deviceType===Gt.RoboticVacuumCleaner}function Ri(e){return e.clusters?.rvcOperationalState?.operationalState??We.Stopped}function up(e){let r=Ri(e);return r===We.Running||r===We.Paused}function fp(e){return ae(this,null,function*(){let r=Ri(e);if(r===We.Running){let t=e.getCluster?.("rvcOperationalState");if(!t){let n=new Error("RVC operational state cluster not found");throw console.error(n.message),n}try{yield t.setAttributes({operationalState:We.Paused})}catch(n){throw console.error("Failed to pause Matter robotic vacuum:",n),n}}else if(r===We.Paused){let t=e.getCluster?.("rvcOperationalState");if(!t){let n=new Error("RVC operational state cluster not found");throw console.error(n.message),n}try{yield t.setAttributes({operationalState:We.Running})}catch(n){throw console.error("Failed to resume Matter robotic vacuum:",n),n}}else{let t=e.getCluster?.("rvcRunMode");if(!t){let n=new Error("RvcRunMode cluster not found");throw console.error(n.message),n}try{yield t.setAttributes({currentMode:Ni.Cleaning})}catch(n){throw console.error("Failed to start Matter robotic vacuum:",n),n}}})}function vp(e){return ae(this,null,function*(){let t=!(e.clusters?.onOff?.onOff??!1),n=e.getCluster?.("onOff");if(!n){let i=new Error("OnOff cluster not found");throw console.error(i.message),i}try{yield n.setAttributes({onOff:t})}catch(i){throw console.error("Failed to control Matter device:",i),i}})}function Je(e){return e.clusters?.onOff?.onOff??!1}function hp(e){return e.clusters?.levelControl!==void 0}function Qe(e){if(Hi(e))return up(e);if(hp(e)){let r=Je(e),t=Ge(e)>0;return r&&t}return Je(e)}function ut(e){Hi(e)?fp(e):vp(e)}function gp(e){switch(Ri(e)){case We.Running:return"accessories.control.cleaning";case We.Paused:return"accessories.control.paused";case We.SeekingCharger:return"Seeking Charger";case We.Charging:return"Charging";case We.Docked:return"Docked";case We.Stopped:default:return"accessories.control.stopped"}}function Cp(e){return Je(e)?"accessories.control.on":"accessories.control.off"}function ar(e){return Hi(e)?gp(e):Cp(e)}function Ge(e){return e.clusters?.levelControl?.currentLevel??Re.Min}function Lt(e){let r=Ge(e);return Math.round(r/Re.Max*100)}function Ft(e){return Math.round(e/Re.Max*100)}function Vt(e){return ae(this,null,function*(){let r=Ge(e);if(Je(e)){let n=e.getCluster?.("onOff");if(!n){let i=new Error("OnOff cluster not found");throw console.error(i.message),i}try{yield n.setAttributes({onOff:!1})}catch(i){throw console.error("Failed to turn Matter light off:",i),i}}else{let n=r||Re.Max,i=e.getCluster?.("levelControl");if(!i){let s=new Error("LevelControl cluster not found");throw console.error(s.message),s}try{yield i.setAttributes({currentLevel:n})}catch(s){throw console.error("Failed to turn Matter light on:",s),s}}})}function ft(e){return e.clusters?.colorControl?.colorTemperatureMireds??250}function sr(e){return e.clusters?.colorControl?.colorTemperatureMireds!==void 0}function kt(e){return e.clusters?.colorControl?.currentHue??0}function bt(e){return e.clusters?.colorControl?.currentSaturation??0}function lr(e){return!(e.clusters?.booleanState?.stateValue??!1)}function cr(e){return e.clusters?.occupancySensing?.occupancy?.occupied??!1}function dr(e){let r=e.clusters?.illuminanceMeasurement?.measuredValue??0;return r===0||r===null?0:10**((r-1)/1e4)}function pr(e){let r=e.clusters?.temperatureMeasurement?.measuredValue;return r==null?null:r/100}function mr(e){let r=e.clusters?.relativeHumidityMeasurement?.measuredValue;return r==null?null:r/100}function _p(e){return e.clusters?.smokeCoAlarm?.smokeState??0}function yp(e){return e.clusters?.smokeCoAlarm?.coState??0}function ur(e){let r=_p(e),t=yp(e);return r>0||t>0}function fr(e){return e.clusters?.booleanState?.stateValue??!1}function vr(e){return e.clusters?.airQuality?.airQuality??0}function Pt(e){return e.clusters?.doorLock?.lockState??1}function hr(e){return ae(this,null,function*(){let r=Pt(e),t=e.getCluster?.("doorLock");if(!t){let n=new Error("Door lock cluster not found");throw console.error(n.message),n}try{r===1?yield t.setAttributes({lockState:2}):yield t.setAttributes({lockState:1})}catch(n){throw console.error(`Failed to ${r===1?"unlock":"lock"} door:`,n),n}})}function gr(e,r){return ae(this,null,function*(){let t=e.getCluster?.("doorLock");if(!t){let i=new Error("Door lock cluster not found");throw console.error(i.message),i}let n=r?1:2;try{yield t.setAttributes({lockState:n})}catch(i){throw console.error("Failed to set door lock state:",i),i}})}function xp(e){return e.clusters?.windowCovering?.currentPositionLiftPercent100ths??0}function Sp(e){return Math.round(100-e/100)}function kp(e){return Math.round((100-e)*100)}function vt(e){let r=xp(e);return Sp(r)}function pi(e,r){return ae(this,null,function*(){let t=e.getCluster?.("windowCovering");if(!t){let i=new Error("Window covering cluster not found");throw console.error(i.message),i}let n=kp(r);try{yield t.setAttributes({targetPositionLiftPercent100ths:n})}catch(i){throw console.error("Failed to set window covering position:",i),i}})}function Cr(e){return ae(this,null,function*(){vt(e)>50?yield pi(e,0):yield pi(e,100)})}function bp(e){return e.clusters?.fanControl?.fanMode??0}function Tt(e){return e.clusters?.fanControl?.percentSetting??0}function Ot(e){let r=bp(e),t=Tt(e);return r>0||t>0}function _r(e){return ae(this,null,function*(){let r=Ot(e),t=e.getCluster?.("fanControl");if(!t){let n=new Error("Fan control cluster not found");throw console.error(n.message),n}try{r?yield t.setAttributes({percentSetting:0}):yield t.setAttributes({percentSetting:100})}catch(n){throw console.error(`Failed to turn fan ${r?"off":"on"}:`,n),n}})}function mi(e,r){return ae(this,null,function*(){let t=e.getCluster?.("fanControl");if(!t){let n=new Error("Fan control cluster not found");throw console.error(n.message),n}try{yield t.setAttributes({percentSetting:r})}catch(n){throw console.error("Failed to set fan speed:",n),n}})}function ui(e){let r=e.clusters?.thermostat?.externalMeasuredIndoorTemperature;return r==null?null:r/100}function Nt(e){return e.clusters?.thermostat?.systemMode??0}function qt(e){return(e.clusters?.thermostat?.occupiedHeatingSetpoint??2e3)/100}function zt(e){return(e.clusters?.thermostat?.occupiedCoolingSetpoint??2400)/100}function yr(e){return Nt(e)>0}function xr(e,r){return ae(this,null,function*(){let t=e.getCluster?.("thermostat");if(!t){let n=new Error("Thermostat cluster not found");throw console.error(n.message),n}try{yield t.setAttributes({systemMode:r})}catch(n){throw console.error("Failed to set thermostat system mode:",n),n}})}function $i(e,r){return ae(this,null,function*(){let t=e.getCluster?.("thermostat");if(!t){let i=new Error("Thermostat cluster not found");throw console.error(i.message),i}let n=Math.round(r*100);try{yield t.setAttributes({occupiedHeatingSetpoint:n})}catch(i){throw console.error("Failed to set heating setpoint:",i),i}})}function ji(e,r){return ae(this,null,function*(){let t=e.getCluster?.("thermostat");if(!t){let i=new Error("Thermostat cluster not found");throw console.error(i.message),i}let n=Math.round(r*100);try{yield t.setAttributes({occupiedCoolingSetpoint:n})}catch(i){throw console.error("Failed to set cooling setpoint:",i),i}})}var Tp=()=>[3,4],Mp=()=>[1,2],Bp=(e,r,t,n)=>({"accessory-on":e,"fill-red":r,"fill-orange":t,"fill-green":n}),wp=(e,r)=>({"grey-text":e,"red-text":r}),Sr=(()=>{class e{service=E.required({});labels=["Unknown","Good","Fair","Moderate","Poor","Very Poor","Extremely Poor"];get airQuality(){return vr(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-air-quality-sensor"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),F(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),b()(),N(),x(21,"div",20),p(22),b(),x(23,"div",21),p(24),b()()()),n&2&&(L(Dt(11,Bp,i.airQuality===5,i.airQuality===5,Be(9,Tp).includes(i.airQuality),Be(10,Mp).includes(i.airQuality))),o(2),y("aria-label",d(3,7,"accessories.core.air_quality_sensor")),o(20),v(i.service().customName||i.service().displayName),o(),L(O(16,wp,i.airQuality<5,i.airQuality===5)),o(),h(" ",i.labels[i.airQuality||0]," "))},dependencies:[w],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 kr=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),br=(()=>{class e{destroyRef=k(ke);$activeModal=k(Le);cdr=k(Pe);$colour=k(at);$toastr=k(Oe);modalData=k(Y);service;$accessories;targetMode;targetBrightness;targetBrightnessChanged=new ne;targetColorTemperature;targetColorTemperatureChanged=new ne;sliderIndex=0;ngOnInit(){if(!this.modalData.service||!this.modalData.$accessories){console.error("ColorTemperatureLightManageComponent: service or $accessories not provided"),this.$activeModal.dismiss("Missing required data");return}this.service=this.modalData.service,this.$accessories=this.modalData.$accessories,this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}setupComponent(){this.createDebouncedSubscription(this.targetBrightnessChanged,()=>ae(this,null,function*(){let t=Ge(this.service);try{if(this.targetBrightness.value===Re.Min){let n=this.service.getCluster?.("onOff");if(!n)throw new Error("OnOff cluster not found");yield n.setAttributes({onOff:!1})}else{let n=this.service.getCluster?.("levelControl");if(!n)throw new Error("LevelControl cluster not found");yield n.setAttributes({currentLevel:this.targetBrightness.value})}this.targetMode=this.targetBrightness.value>0}catch{this.$toastr.error("Failed to set light brightness","Error"),this.targetBrightness.value=t,this.targetMode=t>0,this.cdr.markForCheck()}}),300),this.createDebouncedSubscription(this.targetColorTemperatureChanged,t=>ae(this,null,function*(){let n=ft(this.service);try{let i=this.service.getCluster?.("colorControl");if(!i)throw new Error("ColorControl cluster not found");yield i.setAttributes({colorTemperatureMireds:t})}catch{this.$toastr.error("Failed to set light color temperature","Error"),this.targetColorTemperature.mired=n,this.targetColorTemperature.value=this.$colour.miredToKelvin(n),this.cdr.markForCheck()}}),300),this.targetMode=Je(this.service),this.loadTargetBrightness(),this.loadTargetColorTemperature()}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(ge(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}handleAccessoryUpdate(){this.targetMode=Je(this.service),this.targetBrightness.value=Ge(this.service);let t=ft(this.service);this.targetColorTemperature.mired=t,this.targetColorTemperature.value=this.$colour.miredToKelvin(t)}setTargetMode(t,n){return ae(this,null,function*(){let i=this.targetMode,s=this.targetBrightness.value;try{if(this.targetMode=t,t){let m=this.targetBrightness.value||this.targetBrightness.max;this.targetBrightness.value=m;let D=this.service.getCluster?.("levelControl");if(!D)throw new Error("LevelControl cluster not found");yield D.setAttributes({currentLevel:m})}else{let m=this.service.getCluster?.("onOff");if(!m)throw new Error("OnOff cluster not found");yield m.setAttributes({onOff:!1})}this.blurTarget(n)}catch{this.$toastr.error(`Failed to turn light ${t?"on":"off"}`,"Error"),this.targetMode=i,this.targetBrightness.value=s,this.cdr.markForCheck()}})}onBrightnessStateChange(){this.targetBrightnessChanged.next(this.targetBrightness.value)}onColorTemperatureStateChange(){let t=this.$colour.kelvinToMired(this.targetColorTemperature.value);this.targetColorTemperature.mired=t,this.targetColorTemperatureChanged.next(t)}createDebouncedSubscription(t,n,i=500){t.pipe(ze(i),ge(this.destroyRef)).subscribe(n)}applySliderGradient(t,n=".noUi-target"){requestAnimationFrame(()=>{document.querySelectorAll(n).forEach(s=>{s.style.background=t})})}blurTarget(t){t.target.blur()}loadTargetBrightness(){let t=Ge(this.service);this.targetBrightness={value:t,min:Re.Min,max:Re.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=ft(this.service);this.targetColorTemperature={value:this.$colour.miredToKelvin(t),mired:t,min:this.$colour.miredToKelvin(It.MaxMired),max:this.$colour.miredToKelvin(It.MinMired),step:10};let n=this.$colour.kelvinToHsl(this.targetColorTemperature.min),i=this.$colour.kelvinToHsl(this.targetColorTemperature.max);this.applySliderGradient(`linear-gradient(to right, ${n}, ${i})`,`.noUi-target:nth-of-type(${this.sliderIndex+1})`)}get brightnessPercentage(){return Ft(this.targetBrightness.value)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5),l(7,"translate"),a(8,"button",6),S("click",function(m){return i.setTargetMode(!1,m)}),a(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),a(13,"div",9),f(14,"i",10),c()(),a(15,"button",6),S("click",function(m){return i.setTargetMode(!0,m)}),a(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),a(20,"div",9),f(21,"i",10),c()()(),a(22,"h6",11),p(23),l(24,"translate"),c(),a(25,"nouislider",12),J("ngModelChange",function(m){return Q(i.targetBrightness.value,m)||(i.targetBrightness.value=m),m}),S("ngModelChange",function(){return i.onBrightnessStateChange()}),c(),a(26,"h6",11),p(27),l(28,"translate"),l(29,"convertMired"),c(),a(30,"nouislider",12),J("ngModelChange",function(m){return Q(i.targetColorTemperature.value,m)||(i.targetColorTemperature.value=m),m}),S("ngModelChange",function(){return i.onColorTemperatureStateChange()}),c()(),f(31,"div",13),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),o(),y("aria-label",d(4,21,"form.button_close")),o(3),y("aria-label",d(7,23,"accessories.control.mode_control")),o(4),L(O(35,kr,!i.targetMode,i.targetMode)),o(),h(" ",d(12,25,"accessories.control.off")," "),o(6),L(O(38,kr,i.targetMode,!i.targetMode)),o(),h(" ",d(19,27,"accessories.control.on")," "),o(5),$("",d(24,29,"accessories.control.brightness"),": ",i.brightnessPercentage,"%"),o(2),T("min",i.targetBrightness.min)("max",i.targetBrightness.max)("step",i.targetBrightness.step),Z("ngModel",i.targetBrightness.value),o(2),$(" ",d(28,31,"accessories.control.color_temperature"),": ",d(29,33,i.targetColorTemperature.mired)," "),o(3),T("min",i.targetColorTemperature.min)("max",i.targetColorTemperature.max)("step",i.targetColorTemperature.step),Z("ngModel",i.targetColorTemperature.value))},dependencies:[se,ce,de,pe,w,pt],encapsulation:2,changeDetection:0})}return e})();var Tr=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);$colour=k(at);service=E.required({});readyForControl=E(!1,{});onClick(){this.readyForControl()&&Vt(this.service())}onLongClick(){if(!this.readyForControl())return;let t=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(br,{size:"md",backdrop:"static",injector:t})}get isOn(){return Qe(this.service())}get brightness(){return Lt(this.service())}Math=Math;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-color-temperature-light"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){if(n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"path",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8),c()(),N(),a(10,"div",9),p(11),c(),f(12,"div",10),l(13,"translate"),c()()),n&2){let s;j("accessory-on",i.isOn),o(2),y("aria-label",d(3,7,"accessories.core.lightbulb")),o(3),y("fill",i.isOn?i.$colour.kelvinToHex(i.$colour.miredToKelvin(((s=i.service().clusters)==null||s.colorControl==null?null:s.colorControl.colorTemperatureMireds)||250)):"none")("fill-opacity",.25+i.brightness/100*.5),o(6),h(" ",i.service().customName||i.service().serviceName||i.service().displayName," "),o(),T("innerHTML",i.isOn?i.brightness+"%":d(13,9,"accessories.control.off"),Ye)}},dependencies:[X,w],encapsulation:2})}return e})();function Ep(e,r){e&1&&(x(0,"div",9),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.open")))}function Ap(e,r){e&1&&(x(0,"div",10),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.closed")))}var Mr=(()=>{class e{service=E.required({});get isOpen(){return lr(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-contact-sensor"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7),b()(),N(),x(9,"div",8),p(10),b(),g(11,Ep,3,3,"div",9)(12,Ap,3,3,"div",10),b()()),n&2&&(j("accessory-on",i.isOpen),o(2),y("aria-label",d(3,5,"accessories.core.contact_sensor")),o(8),v(i.service().customName||i.service().serviceName),o(),C(i.isOpen?11:12))},dependencies:[w],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 Br=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),wr=(()=>{class e{destroyRef=k(ke);$activeModal=k(Le);cdr=k(Pe);$toastr=k(Oe);modalData=k(Y);service;$accessories;targetMode;targetBrightness;targetBrightnessChanged=new ne;ngOnInit(){if(!this.modalData.service||!this.modalData.$accessories){console.error("DimmableLightManageComponent: service or $accessories not provided"),this.$activeModal.dismiss("Missing required data");return}this.service=this.modalData.service,this.$accessories=this.modalData.$accessories,this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}setupComponent(){this.createDebouncedSubscription(this.targetBrightnessChanged,()=>ae(this,null,function*(){let t=Ge(this.service);try{if(this.targetBrightness.value===Re.Min){let n=this.service.getCluster?.("onOff");if(!n)throw new Error("OnOff cluster not found");yield n.setAttributes({onOff:!1})}else{let n=this.service.getCluster?.("levelControl");if(!n)throw new Error("LevelControl cluster not found");yield n.setAttributes({currentLevel:this.targetBrightness.value})}this.targetMode=this.targetBrightness.value>0}catch{this.$toastr.error("Failed to set light brightness","Error"),this.targetBrightness.value=t,this.targetMode=t>0,this.cdr.markForCheck()}}),300),this.targetMode=Je(this.service),this.loadTargetBrightness()}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(ge(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}handleAccessoryUpdate(){this.targetMode=Je(this.service),this.targetBrightness.value=Ge(this.service)}setTargetMode(t,n){return ae(this,null,function*(){let i=this.targetMode,s=this.targetBrightness.value;try{if(this.targetMode=t,t){let m=this.targetBrightness.value||this.targetBrightness.max;this.targetBrightness.value=m;let D=this.service.getCluster?.("levelControl");if(!D)throw new Error("LevelControl cluster not found");yield D.setAttributes({currentLevel:m})}else{let m=this.service.getCluster?.("onOff");if(!m)throw new Error("OnOff cluster not found");yield m.setAttributes({onOff:!1})}this.blurTarget(n)}catch{this.$toastr.error(`Failed to turn light ${t?"on":"off"}`,"Error"),this.targetMode=i,this.targetBrightness.value=s,this.cdr.markForCheck()}})}onBrightnessStateChange(){this.targetBrightnessChanged.next(this.targetBrightness.value)}createDebouncedSubscription(t,n,i=500){t.pipe(ze(i),ge(this.destroyRef)).subscribe(n)}applySliderGradient(t,n=".noUi-target"){requestAnimationFrame(()=>{document.querySelectorAll(n).forEach(s=>{s.style.background=t})})}blurTarget(t){t.target.blur()}loadTargetBrightness(){let t=Ge(this.service);this.targetBrightness={value:t,min:Re.Min,max:Re.Max,step:1},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)")}get brightnessPercentage(){return Ft(this.targetBrightness.value)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5),l(7,"translate"),a(8,"button",6),S("click",function(m){return i.setTargetMode(!1,m)}),a(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),a(13,"div",9),f(14,"i",10),c()(),a(15,"button",6),S("click",function(m){return i.setTargetMode(!0,m)}),a(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),a(20,"div",9),f(21,"i",10),c()()(),a(22,"h6",11),p(23),l(24,"translate"),c(),a(25,"nouislider",12),J("ngModelChange",function(m){return Q(i.targetBrightness.value,m)||(i.targetBrightness.value=m),m}),S("ngModelChange",function(){return i.onBrightnessStateChange()}),c()(),f(26,"div",13),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),o(),y("aria-label",d(4,15,"form.button_close")),o(3),y("aria-label",d(7,17,"accessories.control.mode_control")),o(4),L(O(25,Br,!i.targetMode,i.targetMode)),o(),h(" ",d(12,19,"accessories.control.off")," "),o(6),L(O(28,Br,i.targetMode,!i.targetMode)),o(),h(" ",d(19,21,"accessories.control.on")," "),o(5),$("",d(24,23,"accessories.control.brightness"),": ",i.brightnessPercentage,"%"),o(2),T("min",i.targetBrightness.min)("max",i.targetBrightness.max)("step",i.targetBrightness.step),Z("ngModel",i.targetBrightness.value))},dependencies:[se,ce,de,pe,w],encapsulation:2,changeDetection:0})}return e})();var Er=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!1,{});onClick(){this.readyForControl()&&Vt(this.service())}onLongClick(){if(!this.readyForControl())return;let t=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(wr,{size:"md",backdrop:"static",injector:t})}get isOn(){return Qe(this.service())}get brightness(){return Lt(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-dimmable-light"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"path",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8),c()(),N(),a(10,"div",9),p(11),c(),f(12,"div",10),l(13,"translate"),c()()),n&2&&(j("accessory-on",i.isOn),o(2),y("aria-label",d(3,7,"accessories.core.lightbulb")),o(3),y("fill",i.isOn?"#ffcf55":"none")("fill-opacity",.25+i.brightness/100*.5),o(6),h(" ",i.service().customName||i.service().serviceName||i.service().displayName," "),o(),T("innerHTML",i.isOn?i.brightness+"%":d(13,9,"accessories.control.off"),Ye))},dependencies:[X,w],encapsulation:2})}return e})();var Ar=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),Dr=(()=>{class e{destroyRef=k(ke);$activeModal=k(Le);cdr=k(Pe);$toastr=k(Oe);modalData=k(Y);service;$accessories;targetMode;ngOnInit(){if(!this.modalData.service||!this.modalData.$accessories){console.error("DoorLockManageComponent: service or $accessories not provided"),this.$activeModal.dismiss("Missing required data");return}this.service=this.modalData.service,this.$accessories=this.modalData.$accessories,this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}setupComponent(){this.targetMode=Pt(this.service)}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(ge(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}handleAccessoryUpdate(){this.targetMode=Pt(this.service)}setTargetMode(t,n){return ae(this,null,function*(){let i=this.targetMode;try{this.targetMode=t,this.cdr.markForCheck();let s=t===1;yield gr(this.service,s),this.blurTarget(n)}catch{this.$toastr.error(`Failed to ${t===1?"lock":"unlock"} door`,"Error"),this.targetMode=i,this.cdr.markForCheck()}})}blurTarget(t){t.target.blur()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],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(n,i){n&1&&(x(0,"div",0)(1,"div",1),F(2,"h5",2),x(3,"button",3),l(4,"translate"),xe("click",function(){return i.dismissModal()}),b()(),x(5,"div",4)(6,"div",5),l(7,"translate"),x(8,"button",6),xe("click",function(m){return i.setTargetMode(1,m)}),x(9,"div",7),F(10,"i",8),b(),p(11),l(12,"translate"),x(13,"div",9),F(14,"i",10),b()(),x(15,"button",6),xe("click",function(m){return i.setTargetMode(2,m)}),x(16,"div",7),F(17,"i",8),b(),p(18),l(19,"translate"),x(20,"div",9),F(21,"i",10),b()()()(),F(22,"div",11),b()),n&2&&(o(2),Ke("innerText",i.service.customName||i.service.serviceName||i.service.displayName),o(),y("aria-label",d(4,9,"form.button_close")),o(3),y("aria-label",d(7,11,"accessories.control.mode_control")),o(4),L(O(17,Ar,i.targetMode===1,i.targetMode!==1)),o(),h(" ",d(12,13,"accessories.control.locked")," "),o(6),L(O(20,Ar,i.targetMode===2,i.targetMode!==2)),o(),h(" ",d(19,15,"accessories.control.unlocked")," "))},dependencies:[w],encapsulation:2,changeDetection:0})}return e})();var Dp=(e,r,t)=>({"accessory-on":e,unlocked:r,jammed:t});function Ip(e,r){e&1&&(a(0,"div",9),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.locked")))}function Lp(e,r){e&1&&(a(0,"div",10),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.unlocked")))}function Fp(e,r){e&1&&(a(0,"div",10),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.jammed")))}var Ir=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!1,{});onClick(){this.readyForControl()&&hr(this.service())}onLongClick(){if(!this.readyForControl())return;let t=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Dr,{size:"md",backdrop:"static",injector:t})}get lockState(){return Pt(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-door-lock"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){n&1&&(a(0,"div",0),S("shortClick",function(){return i.onClick()})("longClick",function(){return i.onLongClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"path",4)(6,"path",5)(7,"rect",6)(8,"circle",7),c()(),N(),a(9,"div",8),p(10),c(),g(11,Ip,3,3,"div",9)(12,Lp,3,3,"div",10)(13,Fp,3,3,"div",10),c()()),n&2&&(L(At(7,Dp,i.lockState!==1,i.lockState===2,i.lockState===0)),o(2),y("aria-label",d(3,5,"accessories.core.lock_mechanism")),o(8),h(" ",i.service().customName||i.service().serviceName||i.service().displayName," "),o(),C(i.lockState===1?11:i.lockState===2?12:i.lockState===0?13:-1))},dependencies:[X,w],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 Lr=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Vp(e,r){if(e&1){let t=G();a(0,"h6",11),p(1),l(2,"translate"),l(3,"convertMired"),c(),a(4,"nouislider",12),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetColorTemperature.value,i)||(s.targetColorTemperature.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onColorTemperatureStateChange())}),c()}if(e&2){let t=u();o(),$(" ",d(2,6,"accessories.control.color_temperature"),": ",d(3,8,t.targetColorTemperature.mired)," "),o(3),T("min",t.targetColorTemperature.min)("max",t.targetColorTemperature.max)("step",t.targetColorTemperature.step),Z("ngModel",t.targetColorTemperature.value)}}var Fr=(()=>{class e{destroyRef=k(ke);$activeModal=k(Le);cdr=k(Pe);$colour=k(at);$toastr=k(Oe);modalData=k(Y);service;$accessories;targetMode;targetBrightness;targetBrightnessChanged=new ne;targetColorTemperature;targetColorTemperatureChanged=new ne;targetHue;targetHueChanged=new ne;targetSaturation;targetSaturationChanged=new ne;sliderIndex=0;ngOnInit(){if(!this.modalData.service||!this.modalData.$accessories){console.error("ExtendedColorLightManageComponent: service or $accessories not provided"),this.$activeModal.dismiss("Missing required data");return}this.service=this.modalData.service,this.$accessories=this.modalData.$accessories,this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}setupComponent(){this.createDebouncedSubscription(this.targetBrightnessChanged,()=>ae(this,null,function*(){let t=Ge(this.service);try{if(this.targetBrightness.value===Re.Min){let n=this.service.getCluster?.("onOff");if(!n)throw new Error("OnOff cluster not found");yield n.setAttributes({onOff:!1})}else{let n=this.service.getCluster?.("levelControl");if(!n)throw new Error("LevelControl cluster not found");yield n.setAttributes({currentLevel:this.targetBrightness.value})}this.targetMode=this.targetBrightness.value>0}catch{this.$toastr.error("Failed to set light brightness","Error"),this.targetBrightness.value=t,this.targetMode=t>0,this.cdr.markForCheck()}}),300),this.createDebouncedSubscription(this.targetColorTemperatureChanged,t=>ae(this,null,function*(){let n=ft(this.service);try{let i=this.service.getCluster?.("colorControl");if(!i)throw new Error("ColorControl cluster not found");yield i.setAttributes({colorTemperatureMireds:t})}catch{this.$toastr.error("Failed to set light color temperature","Error"),this.targetColorTemperature.mired=n,this.targetColorTemperature.value=this.$colour.miredToKelvin(n),this.cdr.markForCheck()}}),300),this.createDebouncedSubscription(this.targetHueChanged,()=>ae(this,null,function*(){let t=kt(this.service),n=bt(this.service);try{let i=this.service.getCluster?.("colorControl");if(!i)throw new Error("ColorControl cluster not found");yield i.setAttributes({currentHue:this.targetHue.value,currentSaturation:this.targetSaturation.value})}catch{this.$toastr.error("Failed to set light hue","Error"),this.targetHue.value=t,this.targetSaturation.value=n,this.updateSaturationSliderGradient(),this.cdr.markForCheck()}}),300),this.createDebouncedSubscription(this.targetSaturationChanged,()=>ae(this,null,function*(){let t=kt(this.service),n=bt(this.service);try{let i=this.service.getCluster?.("colorControl");if(!i)throw new Error("ColorControl cluster not found");yield i.setAttributes({currentHue:this.targetHue.value,currentSaturation:this.targetSaturation.value})}catch{this.$toastr.error("Failed to set light saturation","Error"),this.targetHue.value=t,this.targetSaturation.value=n,this.cdr.markForCheck()}}),300),this.targetMode=Je(this.service),this.loadTargetBrightness(),this.supportsColorTemperature&&this.loadTargetColorTemperature(),this.loadTargetHueSaturation()}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(ge(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}handleAccessoryUpdate(){if(this.targetMode=Je(this.service),this.targetBrightness.value=Ge(this.service),this.supportsColorTemperature){let n=ft(this.service);this.targetColorTemperature.mired=n,this.targetColorTemperature.value=this.$colour.miredToKelvin(n)}let t=kt(this.service);this.targetHue.value!==t&&(this.targetHue.value=t,this.updateSaturationSliderGradient()),this.targetSaturation.value=bt(this.service)}setTargetMode(t,n){return ae(this,null,function*(){let i=this.targetMode,s=this.targetBrightness.value;try{if(this.targetMode=t,t){let m=this.targetBrightness.value||this.targetBrightness.max;this.targetBrightness.value=m;let D=this.service.getCluster?.("levelControl");if(!D)throw new Error("LevelControl cluster not found");yield D.setAttributes({currentLevel:m})}else{let m=this.service.getCluster?.("onOff");if(!m)throw new Error("OnOff cluster not found");yield m.setAttributes({onOff:!1})}this.blurTarget(n)}catch{this.$toastr.error(`Failed to turn light ${t?"on":"off"}`,"Error"),this.targetMode=i,this.targetBrightness.value=s,this.cdr.markForCheck()}})}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)}createDebouncedSubscription(t,n,i=500){t.pipe(ze(i),ge(this.destroyRef)).subscribe(n)}applySliderGradient(t,n=".noUi-target"){requestAnimationFrame(()=>{document.querySelectorAll(n).forEach(s=>{s.style.background=t})})}blurTarget(t){t.target.blur()}loadTargetBrightness(){let t=Ge(this.service);this.targetBrightness={value:t,min:Re.Min,max:Re.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=ft(this.service);this.targetColorTemperature={value:this.$colour.miredToKelvin(t),mired:t,min:this.$colour.miredToKelvin(It.MaxMired),max:this.$colour.miredToKelvin(It.MinMired),step:10};let n=this.$colour.kelvinToHsl(this.targetColorTemperature.min),i=this.$colour.kelvinToHsl(this.targetColorTemperature.max);this.applySliderGradient(`linear-gradient(to right, ${n}, ${i})`,`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.sliderIndex+=1}loadTargetHueSaturation(){let t=kt(this.service),n=bt(this.service);this.targetHue={value:t,min:0,max:254,step:1},this.targetSaturation={value:n,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 Ft(this.targetBrightness.value)}get huePercentage(){return Math.round(this.targetHue.value/254*100)}get saturationPercentage(){return Math.round(this.targetSaturation.value/254*100)}get supportsColorTemperature(){return sr(this.service)}updateSaturationSliderGradient(){let t=this.supportsColorTemperature?3:2,n=this.targetHue.value/254*360;this.applySliderGradient(`linear-gradient(to right, hsl(${n}, 0%, 50%), hsl(${n}, 100%, 50%))`,`.noUi-target:nth-of-type(${t+1})`)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5),l(7,"translate"),a(8,"button",6),S("click",function(m){return i.setTargetMode(!1,m)}),a(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),a(13,"div",9),f(14,"i",10),c()(),a(15,"button",6),S("click",function(m){return i.setTargetMode(!0,m)}),a(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),a(20,"div",9),f(21,"i",10),c()()(),a(22,"h6",11),p(23),l(24,"translate"),c(),a(25,"nouislider",12),J("ngModelChange",function(m){return Q(i.targetBrightness.value,m)||(i.targetBrightness.value=m),m}),S("ngModelChange",function(){return i.onBrightnessStateChange()}),c(),g(26,Vp,5,10),a(27,"h6",13),p(28),l(29,"translate"),c(),a(30,"nouislider",12),J("ngModelChange",function(m){return Q(i.targetHue.value,m)||(i.targetHue.value=m),m}),S("ngModelChange",function(){return i.onHueStateChange()}),c(),a(31,"h6",13),p(32),l(33,"translate"),c(),a(34,"nouislider",12),J("ngModelChange",function(m){return Q(i.targetSaturation.value,m)||(i.targetSaturation.value=m),m}),S("ngModelChange",function(){return i.onSaturationStateChange()}),c()(),f(35,"div",14),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),o(),y("aria-label",d(4,28,"form.button_close")),o(3),y("aria-label",d(7,30,"accessories.control.mode_control")),o(4),L(O(42,Lr,!i.targetMode,i.targetMode)),o(),h(" ",d(12,32,"accessories.control.off")," "),o(6),L(O(45,Lr,i.targetMode,!i.targetMode)),o(),h(" ",d(19,34,"accessories.control.on")," "),o(5),$("",d(24,36,"accessories.control.brightness"),": ",i.brightnessPercentage,"%"),o(2),T("min",i.targetBrightness.min)("max",i.targetBrightness.max)("step",i.targetBrightness.step),Z("ngModel",i.targetBrightness.value),o(),C(i.supportsColorTemperature?26:-1),o(2),$("",d(29,38,"accessories.control.hue"),": ",i.huePercentage,"%"),o(2),T("min",i.targetHue.min)("max",i.targetHue.max)("step",i.targetHue.step),Z("ngModel",i.targetHue.value),o(2),$("",d(33,40,"accessories.control.saturation"),": ",i.saturationPercentage,"%"),o(2),T("min",i.targetSaturation.min)("max",i.targetSaturation.max)("step",i.targetSaturation.step),Z("ngModel",i.targetSaturation.value))},dependencies:[se,ce,de,pe,w,pt],encapsulation:2,changeDetection:0})}return e})();var Vr=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!1,{});onClick(){this.readyForControl()&&Vt(this.service())}onLongClick(){if(!this.readyForControl())return;let t=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Fr,{size:"md",backdrop:"static",injector:t})}get isOn(){return Qe(this.service())}get brightness(){return Lt(this.service())}get lightColor(){let t=kt(this.service()),n=bt(this.service()),i=t/254*360,s=n/254*100;return`hsl(${i}, ${s}%, 50%)`}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-extended-color-light"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3),f(5,"path",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8),c()(),N(),a(10,"div",9),p(11),c(),f(12,"div",10),l(13,"translate"),c()()),n&2&&(j("accessory-on",i.isOn),o(2),y("aria-label",d(3,7,"accessories.core.lightbulb")),o(3),y("fill",i.isOn?i.lightColor:"none")("fill-opacity",.25+i.brightness/100*.5),o(6),h(" ",i.service().customName||i.service().serviceName||i.service().displayName," "),o(),T("innerHTML",i.isOn?i.brightness+"%":d(13,9,"accessories.control.off"),Ye))},dependencies:[X,w],encapsulation:2})}return e})();var Pr=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Pp(e,r){if(e&1){let t=G();a(0,"h6",12),p(1),l(2,"translate"),c(),a(3,"nouislider",13),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetSpeed.value,i)||(s.targetSpeed.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onTargetSpeedChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.rotation_speed"),": ",t.targetSpeed.value,"%"),o(2),T("min",t.targetSpeed.min)("max",t.targetSpeed.max)("step",t.targetSpeed.step),Z("ngModel",t.targetSpeed.value)}}var Or=(()=>{class e{destroyRef=k(ke);$activeModal=k(Le);cdr=k(Pe);$toastr=k(Oe);modalData=k(Y);service;$accessories;targetMode;targetSpeed;targetSpeedChanged=new ne;ngOnInit(){if(!this.modalData.service||!this.modalData.$accessories){console.error("MatterFanManageComponent: service or $accessories not provided"),this.$activeModal.dismiss("Missing required data");return}this.service=this.modalData.service,this.$accessories=this.modalData.$accessories,this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}setupComponent(){this.createDebouncedSubscription(this.targetSpeedChanged,()=>ae(this,null,function*(){let t=Tt(this.service);try{yield mi(this.service,this.targetSpeed.value)}catch{this.$toastr.error("Failed to set fan speed","Error"),this.targetSpeed.value=t,this.targetMode=t>0,this.cdr.markForCheck()}})),this.targetMode=Ot(this.service),this.loadSpeed()}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(ge(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}handleAccessoryUpdate(){this.targetMode=Ot(this.service),this.targetSpeed&&(this.targetSpeed.value=Tt(this.service))}setTargetMode(t,n){return ae(this,null,function*(){let i=this.targetMode,s=this.targetSpeed.value;try{if(this.targetMode=t,t){let m=this.targetSpeed.value||100;yield mi(this.service,m),this.targetSpeed.value=m}else yield mi(this.service,0),this.targetSpeed.value=0;this.blurTarget(n)}catch{this.$toastr.error(`Failed to turn fan ${t?"on":"off"}`,"Error"),this.targetMode=i,this.targetSpeed.value=s,this.cdr.markForCheck()}})}onTargetSpeedChange(){this.targetSpeedChanged.next(this.targetSpeed.value),this.targetMode=this.targetSpeed.value>0}createDebouncedSubscription(t,n,i=500){t.pipe(ze(i),ge(this.destroyRef)).subscribe(n)}applySliderGradient(t,n=".noUi-target"){requestAnimationFrame(()=>{document.querySelectorAll(n).forEach(s=>{s.style.background=t})})}blurTarget(t){t.target.blur()}loadSpeed(){this.targetSpeed={value:Tt(this.service),min:0,max:100,step:1},this.applySliderGradient("linear-gradient(to right, #add8e6, #416bdf)")}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5),l(7,"translate"),a(8,"button",6),S("click",function(m){return i.setTargetMode(!1,m)}),a(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),a(13,"div",9),f(14,"i",10),c()(),a(15,"button",6),S("click",function(m){return i.setTargetMode(!0,m)}),a(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),a(20,"div",9),f(21,"i",10),c()()(),g(22,Pp,4,8),c(),f(23,"div",11),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),o(),y("aria-label",d(4,10,"form.button_close")),o(3),y("aria-label",d(7,12,"accessories.control.mode_control")),o(4),L(O(18,Pr,!i.targetMode,i.targetMode)),o(),h(" ",d(12,14,"accessories.control.off")," "),o(6),L(O(21,Pr,i.targetMode,!i.targetMode)),o(),h(" ",d(19,16,"accessories.control.on")," "),o(4),C(i.targetSpeed?22:-1))},dependencies:[se,ce,de,pe,w],encapsulation:2,changeDetection:0})}return e})();function Op(e,r){if(e&1&&(a(0,"div",8),p(1),c()),e&2){let t=u();o(),h("",t.fanSpeed,"%")}}function Np(e,r){if(e&1&&(f(0,"div",9),l(1,"translate")),e&2){let t=u();T("innerText",d(1,1,t.isOn?"accessories.control.on":"accessories.control.off"))}}var Nr=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!1,{});onClick(){this.readyForControl()&&_r(this.service())}onLongClick(){if(!this.readyForControl())return;let t=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Or,{size:"md",backdrop:"static",injector:t})}get isOn(){return Ot(this.service())}get fanSpeed(){return Tt(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-fan"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3)(5,"g",4),f(6,"path",5),c(),f(7,"circle",6),c()(),N(),a(8,"div",7),p(9),c(),g(10,Op,2,1,"div",8)(11,Np,2,3,"div",9),c()()),n&2&&(j("accessory-on",i.isOn),o(2),j("spin",i.isOn),y("aria-label",d(3,7,"accessories.core.fan")),o(7),h(" ",i.service().customName||i.service().serviceName||i.service().displayName," "),o(),C(i.isOn&&i.fanSpeed>0?10:11))},dependencies:[X,w],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 Hp(e,r){if(e&1&&p(0),e&2){let t=u();h(" ",t.humidity,"% ")}}function Rp(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.no_data")," ")}var Hr=(()=>{class e{service=E.required({});get humidity(){return mr(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-humidity-sensor"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),F(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),b()(),N(),x(21,"div",20),p(22),b(),x(23,"div",21),g(24,Hp,1,1)(25,Rp,2,3),b()()()),n&2&&(o(2),y("aria-label",d(3,3,"accessories.core.humidity_sensor")),o(20),v(i.service().customName||i.service().serviceName),o(2),C(i.humidity!==null?24:25))},dependencies:[w],encapsulation:2})}return e})();function $p(e,r){if(e&1&&(x(0,"div",28),p(1),l(2,"number"),b()),e&2){let t=u();o(),h("",me(2,1,t.illuminance,"0.1-1")," lux")}}function jp(e,r){if(e&1&&(x(0,"div",28),p(1),l(2,"number"),b()),e&2){let t=u();o(),h("",me(2,1,t.illuminance,"1.0-0")," lux")}}var Rr=(()=>{class e{service=E.required({});get illuminance(){return dr(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-light-sensor"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(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),b()(),N(),x(28,"div",27),p(29),b(),g(30,$p,3,4,"div",28)(31,jp,3,4,"div",28),b()()),n&2&&(o(2),y("aria-label",d(3,3,"accessories.core.light_sensor")),o(27),v(i.service().customName||i.service().serviceName),o(),C(i.illuminance<1?30:31))},dependencies:[Ie,w],encapsulation:2})}return e})();function Up(e,r){e&1&&(x(0,"div",22),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function Wp(e,r){e&1&&(x(0,"div",23),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var $r=(()=>{class e{service=E.required({});get isOccupied(){return cr(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-occupancy-sensor"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6)(8,"path",7),b(),F(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),b()(),N(),x(22,"div",21),p(23),b(),g(24,Up,3,3,"div",22)(25,Wp,3,3,"div",23),b()()),n&2&&(j("accessory-on",i.isOccupied),o(2),y("aria-label",d(3,5,"accessories.core.occupancy_sensor")),o(21),v(i.service().customName||i.service().serviceName),o(),C(i.isOccupied?24:25))},dependencies:[w],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 jr=(()=>{class e{service=E.required({});readyForControl=E(!1,{});onClick(){this.readyForControl()&&ut(this.service())}get isOn(){return Qe(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-on-off-light-switch"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){n&1&&(x(0,"div",0),xe("click",function(){return i.onClick()}),x(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"circle",4)(6,"line",5)(7,"path",6),b()(),N(),x(8,"div",7),p(9),b(),F(10,"div",8),l(11,"translate"),b()()),n&2&&(j("accessory-on",i.isOn),o(2),y("aria-label",d(3,5,"accessories.core.switch")),o(7),h(" ",i.service().customName||i.service().serviceName||i.service().displayName," "),o(),Ke("innerText",d(11,7,i.isOn?"accessories.control.on":"accessories.control.off")))},dependencies:[w],encapsulation:2})}return e})();var Ur=(()=>{class e{service=E.required({});readyForControl=E(!1,{});onClick(){this.readyForControl()&&ut(this.service())}get isOn(){return Qe(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-on-off-light"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){n&1&&(x(0,"div",0),xe("click",function(){return i.onClick()}),x(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"path",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8),b()(),N(),x(10,"div",9),p(11),b(),F(12,"div",10),l(13,"translate"),b()()),n&2&&(j("accessory-on",i.isOn),o(2),y("aria-label",d(3,6,"accessories.core.lightbulb")),o(3),y("fill",i.isOn?"#ffcf55":"none"),o(6),h(" ",i.service().customName||i.service().serviceName||i.service().displayName," "),o(),Ke("innerHTML",d(13,8,i.isOn?"accessories.control.on":"accessories.control.off"),Ye))},dependencies:[w],encapsulation:2})}return e})();function Gp(e,r){e&1&&(I(),F(0,"line",8)(1,"line",9)(2,"line",10))}function qp(e,r){e&1&&(I(),F(0,"line",11)(1,"line",12)(2,"line",13))}function zp(e,r){e&1&&(I(),F(0,"line",13)(1,"line",14)(2,"line",15))}var Wr=(()=>{class e{$settings=k(we);service=E.required({});readyForControl=E(!1,{});browserLang=this.$settings.browserLang;onClick(){this.readyForControl()&&ut(this.service())}get isOn(){return Qe(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-on-off-plug-in-unit"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){n&1&&(x(0,"div",0),xe("click",function(){return i.onClick()}),x(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"circle",5),g(7,Gp,3,0)(8,qp,3,0)(9,zp,3,0),b()(),N(),x(10,"div",6),p(11),b(),F(12,"div",7),l(13,"translate"),b()()),n&2&&(j("accessory-on",i.isOn),o(2),y("aria-label",d(3,6,"accessories.core.outlet")),o(5),C(i.browserLang==="en-GB"?7:i.browserLang==="en-AU"||i.browserLang==="en-NZ"?8:9),o(4),h(" ",i.service().customName||i.service().serviceName||i.service().displayName," "),o(),Ke("innerText",d(13,8,i.isOn?"accessories.control.on":"accessories.control.off")))},dependencies:[w],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 Ui=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),Gr=(()=>{class e{destroyRef=k(ke);$activeModal=k(Le);cdr=k(Pe);$toastr=k(Oe);modalData=k(Y);service;$accessories;currentMode=0;ngOnInit(){if(!this.modalData.service||!this.modalData.$accessories){console.error("RoboticVacuumCleanerManageComponent: service or $accessories not provided"),this.$activeModal.dismiss("Missing required data");return}this.service=this.modalData.service,this.$accessories=this.modalData.$accessories,this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}setupComponent(){this.updateModeFromService()}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(ge(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}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,n){return ae(this,null,function*(){if(t===2&&this.currentMode===0)return;let i=this.currentMode;try{if(this.currentMode=t,this.cdr.markForCheck(),t===0){let s=this.service.getCluster?.("rvcRunMode");if(!s)throw new Error("RvcRunMode cluster not found");yield s.setAttributes({currentMode:0})}else if(t===1){let s=this.service.getCluster?.("rvcRunMode");if(!s)throw new Error("RvcRunMode cluster not found");yield s.setAttributes({currentMode:1})}else if(t===2){let s=this.service.getCluster?.("rvcOperationalState");if(!s)throw new Error("RvcOperationalState cluster not found");yield s.setAttributes({operationalState:2})}this.blurTarget(n)}catch{let m=t===0?"stop":t===1?"start":"pause";this.$toastr.error(`Failed to ${m} robotic vacuum`,"Error"),this.currentMode=i,this.cdr.markForCheck()}})}blurTarget(t){t.target.blur()}get isPauseDisabled(){return this.currentMode===0}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],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(n,i){n&1&&(x(0,"div",0)(1,"div",1),F(2,"h5",2),x(3,"button",3),l(4,"translate"),xe("click",function(){return i.dismissModal()}),b()(),x(5,"div",4)(6,"div",5),l(7,"translate"),x(8,"button",6),xe("click",function(m){return i.setMode(0,m)}),x(9,"div",7),F(10,"i",8),b(),p(11),l(12,"translate"),x(13,"div",9),F(14,"i",10),b()(),x(15,"button",6),xe("click",function(m){return i.setMode(2,m)}),x(16,"div",7),F(17,"i",8),b(),p(18),l(19,"translate"),x(20,"div",9),F(21,"i",10),b()(),x(22,"button",6),xe("click",function(m){return i.setMode(1,m)}),x(23,"div",7),F(24,"i",8),b(),p(25),l(26,"translate"),x(27,"div",9),F(28,"i",10),b()()()(),F(29,"div",11),b()),n&2&&(o(2),Ke("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,14,"form.button_close")),o(3),y("aria-label",d(7,16,"accessories.control.mode_control")),o(4),L(O(24,Ui,i.currentMode===0,i.currentMode!==0)),o(),h(" ",d(12,18,"accessories.control.stopped")," "),o(4),j("btn-pause-disabled",i.isPauseDisabled),o(2),L(O(27,Ui,i.currentMode===2,i.currentMode!==2)),o(),h(" ",d(19,20,"accessories.control.paused")," "),o(6),L(O(30,Ui,i.currentMode===1,i.currentMode!==1)),o(),h(" ",d(26,22,"accessories.control.cleaning")," "))},dependencies:[w],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 qr=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!1,{});onClick(){if(!this.readyForControl()){console.warn("Robotic vacuum: Not ready for control");return}ut(this.service())}onLongClick(){if(!this.readyForControl()||!this.canShowModal)return;let t=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Gr,{size:"md",backdrop:"static",injector:t})}get isActive(){return Qe(this.service())}get statusText(){return ar(this.service())}get canShowModal(){return!rr(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-robotic-vacuum-cleaner"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){n&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),l(3,"translate"),I(),a(4,"svg",3)(5,"defs")(6,"clipPath",4),f(7,"rect",5),c()(),a(8,"g",6),f(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),c(),a(19,"g",17)(20,"line",18),f(21,"animate",19)(22,"animate",20)(23,"animate",21),c(),a(24,"line",22),f(25,"animate",23)(26,"animate",24)(27,"animate",25),c(),a(28,"line",26),f(29,"animate",27)(30,"animate",28)(31,"animate",29),c()()()(),N(),a(32,"div",30),p(33),c(),f(34,"div",31),l(35,"translate"),c()()),n&2&&(j("accessory-on",i.isActive),o(2),y("aria-label",d(3,5,"accessories.core.robotic_vacuum_cleaner")),o(31),v(i.service().customName||i.service().serviceName),o(),T("innerText",d(35,7,i.statusText)))},dependencies:[X,w],styles:[".accessory-box.accessory-on[_ngcontent-%COMP%] .motion-lines[_ngcontent-%COMP%]{display:block!important}"]})}return e})();function Yp(e,r){e&1&&(x(0,"div",17),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function Kp(e,r){e&1&&(x(0,"div",18),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var zr=(()=>{class e{service=E.required({});get isTriggered(){return ur(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-smoke-co-alarm"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"text",5),p(7," ALARM "),b(),F(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),b()(),N(),x(18,"div",16),p(19),b(),g(20,Yp,3,3,"div",17)(21,Kp,3,3,"div",18),b()()),n&2&&(j("accessory-on",i.isTriggered),o(2),y("aria-label",d(3,5,"accessories.core.smoke_sensor")),o(17),v(i.service().customName||i.service().serviceName),o(),C(i.isTriggered?20:21))},dependencies:[w],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 Zp(e,r){if(e&1&&(p(0),l(1,"convertTemp"),l(2,"number"),l(3,"uppercase")),e&2){let t=u();$(" ",me(2,4,d(1,2,t.temperature),"1.0-1"),"\xB0",d(3,7,t.temperatureUnits)," ")}}function Qp(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.no_data")," ")}var Yr=(()=>{class e{$settings=k(we);service=E.required({});temperatureUnits=this.$settings.env.temperatureUnits;get temperature(){return pr(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-temperature-sensor"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(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),b()(),N(),x(29,"div",28),p(30),b(),x(31,"div",29),g(32,Zp,4,9)(33,Qp,2,3),b()()()),n&2&&(o(2),y("aria-label",d(3,3,"accessories.core.temperature_sensor")),o(28),v(i.service().customName||i.service().serviceName),o(2),C(i.temperature!==null?32:33))},dependencies:[Ie,Ne,je,w],encapsulation:2})}return e})();var fi=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Jp(e,r){if(e&1&&(a(0,"h6",5),f(1,"i",13),p(2),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c()),e&2){let t=u();o(),dt("color",t.targetMode===3?"#1e8bbd":t.targetMode===4?"#e69533":t.targetMode===1?"#42d672":"#7b7b7b"),o(),$("",me(4,6,d(3,4,t.currentTemperature),"1.0-1"),"\xB0",d(5,9,t.temperatureUnits)," ")}}function Xp(e,r){if(e&1){let t=G();a(0,"h6",14),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),l(6,"convertTemp"),l(7,"number"),l(8,"uppercase"),c(),a(9,"nouislider",15),J("ngModelChange",function(i){V(t);let s=u();return Q(s.autoTemp,i)||(s.autoTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onAutoTempChange())}),c()}if(e&2){let t=u();o(),Et(" ",d(2,9,"accessories.control.threshold_auto"),": ",me(4,13,d(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",d(5,16,t.temperatureUnits)," - ",me(7,20,d(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",d(8,23,t.temperatureUnits)," "),o(8),T("min",t.minHeatSetpoint)("max",t.maxCoolSetpoint)("step",.5),Z("ngModel",t.autoTemp)}}function em(e,r){if(e&1){let t=G();a(0,"h6",16),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c(),a(6,"nouislider",15),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetHeatingTemp,i)||(s.targetHeatingTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onHeatingTempChange())}),c()}if(e&2){let t=u();o(),tt(" ",d(2,7,"accessories.control.target"),": ",me(4,11,d(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",d(5,14,t.temperatureUnits)," "),o(5),T("min",t.minHeatSetpoint)("max",t.maxHeatSetpoint)("step",.5),Z("ngModel",t.targetHeatingTemp)}}function tm(e,r){if(e&1){let t=G();a(0,"h6",16),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c(),a(6,"nouislider",15),J("ngModelChange",function(i){V(t);let s=u();return Q(s.targetCoolingTemp,i)||(s.targetCoolingTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onCoolingTempChange())}),c()}if(e&2){let t=u();o(),tt(" ",d(2,7,"accessories.control.target"),": ",me(4,11,d(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",d(5,14,t.temperatureUnits)," "),o(5),T("min",t.minCoolSetpoint)("max",t.maxCoolSetpoint)("step",.5),Z("ngModel",t.targetCoolingTemp)}}var Kr=(()=>{class e{destroyRef=k(ke);$activeModal=k(Le);cdr=k(Pe);$settings=k(we);$toastr=k(Oe);modalData=k(Y);service;$accessories;targetMode;targetHeatingTemp;targetCoolingTemp;autoTemp;temperatureUnits=this.$settings.env.temperatureUnits;heatingTempChanged=new ne;coolingTempChanged=new ne;autoTempChanged=new ne;minHeatSetpoint=7;maxHeatSetpoint=30;minCoolSetpoint=10;maxCoolSetpoint=35;ngOnInit(){if(!this.modalData.service||!this.modalData.$accessories){console.error("MatterThermostatManageComponent: service or $accessories not provided"),this.$activeModal.dismiss("Missing required data");return}this.service=this.modalData.service,this.$accessories=this.modalData.$accessories,this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}setupComponent(){this.createDebouncedSubscription(this.heatingTempChanged,()=>ae(this,null,function*(){try{yield $i(this.service,this.targetHeatingTemp)}catch{this.$toastr.error("Failed to set heating temperature","Error"),this.targetHeatingTemp=qt(this.service),this.cdr.markForCheck()}})),this.createDebouncedSubscription(this.coolingTempChanged,()=>ae(this,null,function*(){try{yield ji(this.service,this.targetCoolingTemp)}catch{this.$toastr.error("Failed to set cooling temperature","Error"),this.targetCoolingTemp=zt(this.service),this.cdr.markForCheck()}})),this.createDebouncedSubscription(this.autoTempChanged,()=>ae(this,null,function*(){try{yield $i(this.service,this.autoTemp[0]),yield ji(this.service,this.autoTemp[1])}catch{this.$toastr.error("Failed to set temperature range","Error"),this.targetHeatingTemp=qt(this.service),this.targetCoolingTemp=zt(this.service),this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp],this.cdr.markForCheck()}})),this.targetMode=Nt(this.service),this.targetHeatingTemp=qt(this.service),this.targetCoolingTemp=zt(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))")}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(ge(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}createDebouncedSubscription(t,n,i=500){t.pipe(ze(i),ge(this.destroyRef)).subscribe(n)}applySliderGradient(t,n=".noUi-target"){requestAnimationFrame(()=>{document.querySelectorAll(n).forEach(s=>{s.style.background=t})})}blurTarget(t){t.target.blur()}handleAccessoryUpdate(){this.targetMode=Nt(this.service),this.targetHeatingTemp=qt(this.service),this.targetCoolingTemp=zt(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,n){return ae(this,null,function*(){let i=this.targetMode;try{this.targetMode=t,this.cdr.markForCheck(),yield xr(this.service,this.targetMode),this.blurTarget(n),this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}catch{this.$toastr.error("Failed to set thermostat mode","Error"),this.targetMode=i,this.cdr.markForCheck()}})}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 ui(this.service)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],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(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4),g(6,Jp,6,11,"h6",5),a(7,"div",6),l(8,"translate"),a(9,"button",7),S("click",function(m){return i.setTargetMode(0,m)}),a(10,"div",8),f(11,"i",9),c(),p(12),l(13,"translate"),a(14,"div",10),f(15,"i",11),c()(),a(16,"button",7),S("click",function(m){return i.setTargetMode(1,m)}),a(17,"div",8),f(18,"i",9),c(),p(19),l(20,"translate"),a(21,"div",10),f(22,"i",11),c()(),a(23,"button",7),S("click",function(m){return i.setTargetMode(4,m)}),a(24,"div",8),f(25,"i",9),c(),p(26),l(27,"translate"),a(28,"div",10),f(29,"i",11),c()(),a(30,"button",7),S("click",function(m){return i.setTargetMode(3,m)}),a(31,"div",8),f(32,"i",9),c(),p(33),l(34,"translate"),a(35,"div",10),f(36,"i",11),c()()(),g(37,Xp,10,25),g(38,em,7,16),g(39,tm,7,16),c(),f(40,"div",12),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),o(),y("aria-label",d(4,19,"form.button_close")),o(3),C(i.currentTemperature!==null?6:-1),o(),y("aria-label",d(8,21,"accessories.control.mode_control")),o(4),L(O(31,fi,i.targetMode===0,i.targetMode!==0)),o(),h(" ",d(13,23,"accessories.control.off")," "),o(6),L(O(34,fi,i.targetMode===1,i.targetMode!==1)),o(),h(" ",d(20,25,"accessories.control.auto")," "),o(6),L(O(37,fi,i.targetMode===4,i.targetMode!==4)),o(),h(" ",d(27,27,"accessories.control.heat")," "),o(6),L(O(40,fi,i.targetMode===3,i.targetMode!==3)),o(),h(" ",d(34,29,"accessories.control.cool")," "),o(4),C(i.targetMode===1?37:-1),o(),C(i.targetMode===4?38:-1),o(),C(i.targetMode===3?39:-1))},dependencies:[se,ce,de,pe,Ie,w,Ne,je],encapsulation:2,changeDetection:0})}return e})();function im(e,r){if(e&1&&(I(),a(0,"text",18),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase"),c()),e&2){let t=u();o(),$(" ",me(3,4,d(2,2,t.currentTemperature),"1.0-1"),"\xB0",d(4,7,t.temperatureUnits)," ")}}function nm(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.off")," ")}function om(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.cool")," ")}function rm(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.heat")," ")}function am(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.auto")," ")}var Zr=(()=>{class e{$modal=k(ie);injector=k(ee);$settings=k(we);$accessories=k(re);service=E.required({});readyForControl=E(!1,{});temperatureUnits=this.$settings.env.temperatureUnits;onClick(){if(!this.readyForControl())return;let t=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Kr,{size:"md",backdrop:"static",injector:t})}get isOn(){return yr(this.service())}get systemMode(){return Nt(this.service())}get currentTemperature(){return ui(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-thermostat"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){n&1&&(a(0,"div",0),S("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1)(2,"div",2),l(3,"translate"),I(),a(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),f(8,"animate",6),c(),a(9,"stop",7),f(10,"animate",8),c(),a(11,"stop",9),f(12,"animate",6),c()(),a(13,"linearGradient",10)(14,"stop",11),f(15,"animate",12),c(),a(16,"stop",13),f(17,"animate",14),c(),a(18,"stop",15),f(19,"animate",12),c()()(),f(20,"rect",16)(21,"rect",17),g(22,im,5,9,":svg:text",18),c()(),N(),a(23,"div",19),p(24),c(),a(25,"div",20),g(26,nm,2,3)(27,om,2,3)(28,rm,2,3)(29,am,2,3),c()()()),n&2&&(j("accessory-on",i.isOn),o(2),y("aria-label",d(3,7,"accessories.core.thermostat")),o(19),y("fill",i.systemMode===3?"url(#coolingGradient)":i.systemMode===4?"url(#heatingGradient)":i.systemMode===1?"#42d672":"#7b7b7b"),o(),C(i.currentTemperature!==null?22:-1),o(2),h(" ",i.service().customName||i.service().serviceName||i.service().displayName," "),o(2),C(i.systemMode===0?26:i.systemMode===3?27:i.systemMode===4?28:i.systemMode===1?29:-1))},dependencies:[X,Ie,w,Ne,je],encapsulation:2})}return e})();var Qr=(()=>{class e{service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-unknown"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),I(),x(3,"svg",3),F(4,"circle",4)(5,"path",5),b()(),N(),x(6,"div",6),p(7),b(),x(8,"div",7),p(9),b()()()),n&2&&(o(2),y("aria-label",i.service().humanType),o(5),v(i.service().customName||i.service().serviceName),o(2),v(i.service().humanType))},encapsulation:2})}return e})();function sm(e,r){e&1&&(x(0,"div",23),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function lm(e,r){e&1&&(x(0,"div",24),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var Jr=(()=>{class e{service=E.required({});get isLeaking(){return fr(this.service())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-water-leak-detector"]],inputs:{service:[1,"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(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),x(8,"g",7),F(9,"path",6),b(),F(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),b()(),N(),x(24,"div",22),p(25),b(),g(26,sm,3,3,"div",23)(27,lm,3,3,"div",24),b()()),n&2&&(j("accessory-on",i.isLeaking),o(2),y("aria-label",d(3,5,"accessories.core.leak_sensor")),o(23),v(i.service().customName||i.service().serviceName),o(),C(i.isLeaking?26:27))},dependencies:[w],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 cm(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.closed")," ")}function dm(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.open")," ")}function pm(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u();$(" ",d(1,2,"accessories.control.open")," ",t.currentPosition,"% ")}}var Xr=(()=>{class e{destroyRef=k(ke);$activeModal=k(Le);cdr=k(Pe);$toastr=k(Oe);modalData=k(Y);service;$accessories;targetPositionChanged=new ne;targetPosition;ngOnInit(){if(!this.modalData.service||!this.modalData.$accessories){console.error("WindowCoveringManageComponent: service or $accessories not provided"),this.$activeModal.dismiss("Missing required data");return}this.service=this.modalData.service,this.$accessories=this.modalData.$accessories,this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}setupComponent(){this.loadTargetPosition(),this.createDebouncedSubscription(this.targetPositionChanged,()=>ae(this,null,function*(){let t=vt(this.service);try{yield pi(this.service,this.targetPosition.value)}catch{this.$toastr.error("Failed to set window covering position","Error"),this.targetPosition.value=t,this.cdr.markForCheck()}}))}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(ge(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}handleAccessoryUpdate(){this.targetPosition&&(this.targetPosition.value=vt(this.service))}onTargetPositionChange(){this.targetPositionChanged.next(this.targetPosition.value)}createDebouncedSubscription(t,n,i=500){t.pipe(ze(i),ge(this.destroyRef)).subscribe(n)}applySliderGradient(t,n=".noUi-target"){requestAnimationFrame(()=>{document.querySelectorAll(n).forEach(s=>{s.style.background=t})})}loadTargetPosition(){this.targetPosition={value:vt(this.service),min:0,max:100,step:1},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)")}get currentPosition(){return vt(this.service)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],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,"min","max","step","disabled","ngModel"],[1,"modal-footer"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"div",1),f(2,"h5",2),a(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),a(5,"div",4)(6,"div",5)(7,"div",6),g(8,cm,2,3)(9,dm,2,3)(10,pm,2,4),c()(),a(11,"h6",7),p(12),l(13,"translate"),c(),a(14,"nouislider",8),J("ngModelChange",function(m){return Q(i.targetPosition.value,m)||(i.targetPosition.value=m),m}),S("ngModelChange",function(){return i.onTargetPositionChange()}),c(),a(15,"div",9)(16,"span",10),p(17),l(18,"translate"),c(),a(19,"span",10),p(20),l(21,"translate"),c()(),a(22,"h6",7),p(23),l(24,"translate"),c(),f(25,"nouislider",11),a(26,"div",9)(27,"span",10),p(28),l(29,"translate"),c(),a(30,"span",10),p(31),l(32,"translate"),c()()(),f(33,"div",12),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName||i.service.displayName),o(),y("aria-label",d(4,20,"form.button_close")),o(5),C(i.currentPosition===0?8:i.currentPosition===100?9:10),o(4),$("",d(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),o(2),T("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),Z("ngModel",i.targetPosition.value),o(3),v(d(18,24,"accessories.control.closed")),o(3),v(d(21,26,"accessories.control.open")),o(3),$("",d(24,28,"accessories.control.current"),": ",i.currentPosition,"%"),o(2),T("min",0)("max",100)("step",1)("disabled",!0)("ngModel",i.currentPosition),o(3),v(d(29,30,"accessories.control.closed")),o(3),v(d(32,32,"accessories.control.open")))},dependencies:[pe,se,ce,de,w],encapsulation:2,changeDetection:0})}return e})();function mm(e,r){e&1&&(a(0,"div",2),l(1,"translate"),I(),a(2,"svg",5),f(3,"rect",6)(4,"rect",7)(5,"rect",8)(6,"rect",9)(7,"rect",10)(8,"rect",11)(9,"rect",12),c()()),e&2&&y("aria-label",d(1,1,"accessories.core.window_covering"))}function um(e,r){e&1&&(a(0,"div",2),l(1,"translate"),I(),a(2,"svg",5),f(3,"rect",13)(4,"rect",14)(5,"rect",15)(6,"rect",16)(7,"line",17)(8,"rect",18),c()()),e&2&&y("aria-label",d(1,1,"accessories.core.door"))}function fm(e,r){e&1&&(a(0,"div",2),l(1,"translate"),I(),a(2,"svg",5),f(3,"rect",6)(4,"rect",19)(5,"rect",20)(6,"rect",21)(7,"rect",22)(8,"rect",23)(9,"rect",24),c()()),e&2&&y("aria-label",d(1,1,"accessories.core.window"))}function vm(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.closed")," ")}function hm(e,r){e&1&&(p(0),l(1,"translate")),e&2&&h(" ",d(1,1,"accessories.control.open")," ")}function gm(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u();$(" ",d(1,2,"accessories.control.open")," ",t.currentPosition,"% ")}}var ea=(()=>{class e{$accessories=k(re);injector=k(ee);$modal=k(ie);service=E.required({});readyForControl=E(!1,{});onClick(){this.readyForControl()&&Cr(this.service())}onLongClick(){if(!this.readyForControl())return;let t=te([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Xr,{size:"md",backdrop:"static",injector:t})}get currentPosition(){return vt(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(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-matter-window-covering"]],inputs:{service:[1,"service"],readyForControl:[1,"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(n,i){n&1&&(a(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),a(1,"div",1),g(2,mm,10,3,"div",2),g(3,um,9,3,"div",2),g(4,fm,10,3,"div",2),a(5,"div",3),p(6),c(),a(7,"div",4),g(8,vm,2,3)(9,hm,2,3)(10,gm,2,4),c()()()),n&2&&(j("accessory-on",i.currentPosition>0),o(2),C(i.isWindowCovering?2:-1),o(),C(i.isDoor?3:-1),o(),C(i.isWindow?4:-1),o(2),h(" ",i.service().customName||i.service().serviceName||i.service().displayName," "),o(2),C(i.currentPosition===0?8:i.currentPosition===100?9:10))},dependencies:[X,w],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 Cm(e,r){if(e&1){let t=G();a(0,"button",2),l(1,"translate"),S("click",function(){V(t);let i=u();return P(i.$accessories.showAccessoryInformation(i.service()))}),f(2,"i",3),c()}e&2&&y("aria-label",d(1,1,"accessories.service_info"))}function _m(e,r){e&1&&f(0,"i",1)}function ym(e,r){if(e&1&&(a(0,"app-on-off-light",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.on_off_light"))}}function xm(e,r){if(e&1&&(a(0,"app-dimmable-light",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.dimmable_light"))}}function Sm(e,r){if(e&1&&(a(0,"app-color-temperature-light",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.color_temperature_light"))}}function km(e,r){if(e&1&&(a(0,"app-extended-color-light",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.extended_color_light"))}}function bm(e,r){if(e&1&&(a(0,"app-on-off-plug-in-unit",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.on_off_plug_in_unit"))}}function Tm(e,r){if(e&1&&(a(0,"app-on-off-light-switch",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.on_off_light_switch"))}}function Mm(e,r){if(e&1&&(a(0,"app-robotic-vacuum-cleaner",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.robotic_vacuum_cleaner"))}}function Bm(e,r){if(e&1&&(a(0,"app-matter-contact-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.contact_sensor"))}}function wm(e,r){if(e&1&&(a(0,"app-matter-occupancy-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.occupancy_sensor"))}}function Em(e,r){if(e&1&&(a(0,"app-matter-light-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.light_sensor"))}}function Am(e,r){if(e&1&&(a(0,"app-matter-temperature-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.temperature_sensor"))}}function Dm(e,r){if(e&1&&(a(0,"app-matter-humidity-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.humidity_sensor"))}}function Im(e,r){if(e&1&&(a(0,"app-matter-smoke-co-alarm",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.smoke_co_alarm"))}}function Lm(e,r){if(e&1&&(a(0,"app-matter-water-leak-detector",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.leak_sensor"))}}function Fm(e,r){if(e&1&&(a(0,"app-matter-air-quality-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.air_quality_sensor"))}}function Vm(e,r){if(e&1&&(a(0,"app-matter-door-lock",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.lock_mechanism"))}}function Pm(e,r){if(e&1&&(a(0,"app-matter-window-covering",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.window_covering"))}}function Om(e,r){if(e&1&&(a(0,"app-matter-window-covering",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.door"))}}function Nm(e,r){if(e&1&&(a(0,"app-matter-window-covering",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.window"))}}function Hm(e,r){if(e&1&&(a(0,"app-matter-fan",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.fan"))}}function Rm(e,r){if(e&1&&(a(0,"app-matter-thermostat",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.matterReadyForControl),o(),v(d(2,3,"accessories.core.thermostat"))}}function $m(e,r){if(e&1&&(a(0,"app-matter-unknown",5),p(1),c()),e&2){let t=u(2);T("service",t.service()),o(),v(t.service().humanType)}}function jm(e,r){if(e&1&&g(0,ym,3,5,"app-on-off-light",4)(1,xm,3,5,"app-dimmable-light",4)(2,Sm,3,5,"app-color-temperature-light",4)(3,km,3,5,"app-extended-color-light",4)(4,bm,3,5,"app-on-off-plug-in-unit",4)(5,Tm,3,5,"app-on-off-light-switch",4)(6,Mm,3,5,"app-robotic-vacuum-cleaner",4)(7,Bm,3,4,"app-matter-contact-sensor",5)(8,wm,3,4,"app-matter-occupancy-sensor",5)(9,Em,3,4,"app-matter-light-sensor",5)(10,Am,3,4,"app-matter-temperature-sensor",5)(11,Dm,3,4,"app-matter-humidity-sensor",5)(12,Im,3,4,"app-matter-smoke-co-alarm",5)(13,Lm,3,4,"app-matter-water-leak-detector",5)(14,Fm,3,4,"app-matter-air-quality-sensor",5)(15,Vm,3,5,"app-matter-door-lock",4)(16,Pm,3,5,"app-matter-window-covering",4)(17,Om,3,5,"app-matter-window-covering",4)(18,Nm,3,5,"app-matter-window-covering",4)(19,Hm,3,5,"app-matter-fan",4)(20,Rm,3,5,"app-matter-thermostat",4)(21,$m,2,2,"app-matter-unknown",5),e&2){let t,n=u();C((t=n.service().customType||n.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 Um(e,r){if(e&1&&(a(0,"app-switch",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.switch"))}}function Wm(e,r){if(e&1&&(a(0,"app-thermostat",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.thermostat"))}}function Gm(e,r){if(e&1&&(a(0,"app-outlet",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.outlet"))}}function qm(e,r){if(e&1&&(a(0,"app-fan",6),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.fan"))}}function zm(e,r){if(e&1&&(a(0,"app-fan",6),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.fan"))}}function Ym(e,r){if(e&1&&(a(0,"app-air-purifier",6),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.air_purifier"))}}function Km(e,r){if(e&1&&(a(0,"app-lightbulb",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.lightbulb"))}}function Zm(e,r){if(e&1&&(a(0,"app-light-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.light_sensor"))}}function Qm(e,r){if(e&1&&(a(0,"app-lock-mechanism",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.lock_mechanism"))}}function Jm(e,r){if(e&1&&(a(0,"app-temperature-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.temperature_sensor"))}}function Xm(e,r){if(e&1&&(a(0,"app-garage-door-opener",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.garage_door_opener"))}}function eu(e,r){if(e&1&&(a(0,"app-motion-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.motion_sensor"))}}function tu(e,r){if(e&1&&(a(0,"app-occupancy-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.occupancy_sensor"))}}function iu(e,r){if(e&1&&(a(0,"app-contact-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.contact_sensor"))}}function nu(e,r){if(e&1&&(a(0,"app-humidity-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.humidity_sensor"))}}function ou(e,r){if(e&1&&(a(0,"app-air-quality-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.air_quality_sensor"))}}function ru(e,r){if(e&1&&(a(0,"app-window-covering",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.window_covering"))}}function au(e,r){if(e&1&&(a(0,"app-window",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.window"))}}function su(e,r){if(e&1&&(a(0,"app-door",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.door"))}}function lu(e,r){if(e&1&&(a(0,"app-television",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.television"))}}function cu(e,r){if(e&1&&(a(0,"app-battery",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.battery"))}}function du(e,r){if(e&1&&(a(0,"app-battery",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.battery"))}}function pu(e,r){if(e&1&&(a(0,"app-speaker",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.speaker"))}}function mu(e,r){if(e&1&&(a(0,"app-speaker",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.speaker"))}}function uu(e,r){if(e&1&&(a(0,"app-doorbell",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.doorbell"))}}function fu(e,r){if(e&1&&(a(0,"app-microphone",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.microphone"))}}function vu(e,r){if(e&1&&(a(0,"app-security-system",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.security_system"))}}function hu(e,r){if(e&1&&(a(0,"app-leak-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.leak_sensor"))}}function gu(e,r){if(e&1&&(a(0,"app-smoke-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.smoke_sensor"))}}function Cu(e,r){if(e&1&&(a(0,"app-carbon-monoxide-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.carbon_monoxide_sensor"))}}function _u(e,r){if(e&1&&(a(0,"app-carbon-dioxide-sensor",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.carbon_dioxide_sensor"))}}function yu(e,r){if(e&1&&(a(0,"app-valve",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.valve"))}}function xu(e,r){if(e&1&&(a(0,"app-irrigation-system",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.irrigation_system"))}}function Su(e,r){if(e&1&&(a(0,"app-heater-cooler",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.heater_cooler"))}}function ku(e,r){if(e&1&&(a(0,"app-heater-cooler",7),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("type","heater")("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,4,"accessories.core.heater"))}}function bu(e,r){if(e&1&&(a(0,"app-heater-cooler",7),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("type","cooler")("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,4,"accessories.core.cooler"))}}function Tu(e,r){if(e&1&&(a(0,"app-humidifier-dehumidifier",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.humidifier_dehumidifier"))}}function Mu(e,r){if(e&1&&(a(0,"app-humidifier-dehumidifier",7),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("type","humidifier")("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,4,"accessories.core.humidifier"))}}function Bu(e,r){if(e&1&&(a(0,"app-humidifier-dehumidifier",7),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("type","dehumidifier")("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,4,"accessories.core.dehumidifier"))}}function wu(e,r){if(e&1&&(a(0,"app-stateless-programmable-switch",5),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service()),o(),v(d(2,2,"accessories.core.stateless_programmable_switch"))}}function Eu(e,r){if(e&1&&(a(0,"app-filter-maintenance",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.filter_maintenance"))}}function Au(e,r){if(e&1&&(a(0,"app-robot-vacuum",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.robot_vacuum"))}}function Du(e,r){if(e&1&&(a(0,"app-washing-machine",4),p(1),l(2,"translate"),c()),e&2){let t=u(2);T("service",t.service())("readyForControl",t.$accessories.hapReadyForControl),o(),v(d(2,3,"accessories.core.washing_machine"))}}function Iu(e,r){if(e&1&&(a(0,"app-unknown",5),p(1),c()),e&2){let t=u(2);T("service",t.service()),o(),v(t.service().humanType)}}function Lu(e,r){if(e&1&&g(0,Um,3,5,"app-switch",4)(1,Wm,3,5,"app-thermostat",4)(2,Gm,3,5,"app-outlet",4)(3,qm,3,5,"app-fan",6)(4,zm,3,5,"app-fan",6)(5,Ym,3,5,"app-air-purifier",6)(6,Km,3,5,"app-lightbulb",4)(7,Zm,3,4,"app-light-sensor",5)(8,Qm,3,5,"app-lock-mechanism",4)(9,Jm,3,4,"app-temperature-sensor",5)(10,Xm,3,5,"app-garage-door-opener",4)(11,eu,3,4,"app-motion-sensor",5)(12,tu,3,4,"app-occupancy-sensor",5)(13,iu,3,4,"app-contact-sensor",5)(14,nu,3,4,"app-humidity-sensor",5)(15,ou,3,4,"app-air-quality-sensor",5)(16,ru,3,5,"app-window-covering",4)(17,au,3,5,"app-window",4)(18,su,3,5,"app-door",4)(19,lu,3,5,"app-television",4)(20,cu,3,4,"app-battery",5)(21,du,3,4,"app-battery",5)(22,pu,3,5,"app-speaker",4)(23,mu,3,5,"app-speaker",4)(24,uu,3,5,"app-doorbell",4)(25,fu,3,5,"app-microphone",4)(26,vu,3,5,"app-security-system",4)(27,hu,3,4,"app-leak-sensor",5)(28,gu,3,4,"app-smoke-sensor",5)(29,Cu,3,4,"app-carbon-monoxide-sensor",5)(30,_u,3,4,"app-carbon-dioxide-sensor",5)(31,yu,3,5,"app-valve",4)(32,xu,3,4,"app-irrigation-system",5)(33,Su,3,5,"app-heater-cooler",4)(34,ku,3,6,"app-heater-cooler",7)(35,bu,3,6,"app-heater-cooler",7)(36,Tu,3,5,"app-humidifier-dehumidifier",4)(37,Mu,3,6,"app-humidifier-dehumidifier",7)(38,Bu,3,6,"app-humidifier-dehumidifier",7)(39,wu,3,4,"app-stateless-programmable-switch",5)(40,Eu,3,5,"app-filter-maintenance",4)(41,Au,3,5,"app-robot-vacuum",4)(42,Du,3,5,"app-washing-machine",4)(43,Iu,2,2,"app-unknown",5),e&2){let t,n=u();C((t=n.service().customType||n.service().type||n.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 KS=(()=>{class e{$accessories=k(re);service=E.required({});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-accessory-tile"]],inputs:{service:[1,"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(n,i){n&1&&(_n(0),g(1,Cm,3,3,"button",0)(2,_m,1,0,"i",1),g(3,jm,22,1)(4,Lu,44,1),yn()),n&2&&(o(),C(i.service().protocol==="matter"&&i.$accessories.matterReadyForControl||i.service().protocol!=="matter"&&i.$accessories.hapReadyForControl?1:2),o(2),C(i.service().protocol==="matter"?3:4))},dependencies:[Wo,Ko,Vo,mo,eo,Mo,ko,Eo,zo,vo,Io,Lo,ro,yo,to,ir,or,so,qo,io,$o,No,So,Ho,oo,no,Xo,xo,go,_o,jo,fo,co,Zo,Do,Po,er,Ur,Wr,jr,Er,Tr,Vr,qr,Mr,$r,Rr,Yr,Hr,zr,Jr,Sr,Ir,ea,Nr,Zr,Qr,w],encapsulation:2})}return e})();export{Ne as a,re as b,KS as c};
|