homebridge-config-ui-x 5.4.2-beta.2 → 5.4.2-beta.21
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 +25 -5
- package/dist/core/auth/auth.controller.d.ts +1 -0
- package/dist/core/config/config.service.d.ts +3 -1
- package/dist/core/config/config.service.js +3 -2
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/core/config/config.startup.d.ts +1 -0
- package/dist/core/config/config.startup.js +13 -3
- package/dist/core/config/config.startup.js.map +1 -1
- package/dist/core/spa/spa-html.service.d.ts +5 -0
- package/dist/core/spa/spa-html.service.js +39 -0
- package/dist/core/spa/spa-html.service.js.map +1 -0
- package/dist/core/spa/spa.filter.d.ts +2 -0
- package/dist/core/spa/spa.filter.js +17 -2
- package/dist/core/spa/spa.filter.js.map +1 -1
- package/dist/main.js +8 -3
- package/dist/main.js.map +1 -1
- package/dist/modules/accessories/accessories.service.js +5 -1
- package/dist/modules/accessories/accessories.service.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
- package/dist/modules/plugins/plugins.service.d.ts +1 -0
- package/dist/modules/plugins/plugins.service.js +27 -15
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/package.json +18 -13
- package/public/3rdpartylicenses.txt +91 -91
- package/public/assets/monaco/ThirdPartyNotices.txt +448 -0
- package/public/assets/monaco/min/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/public/assets/monaco/min/vs/base/worker/workerMain.js +31 -0
- package/public/assets/monaco/min/vs/basic-languages/shell/shell.js +10 -0
- package/public/assets/monaco/min/vs/editor/editor.main.css +8 -0
- package/public/assets/monaco/min/vs/editor/editor.main.js +798 -0
- package/public/assets/monaco/min/vs/language/json/jsonMode.js +19 -0
- package/public/assets/monaco/min/vs/language/json/jsonWorker.js +42 -0
- package/public/assets/monaco/min/vs/loader.js +11 -0
- package/public/chunk-24MFIAJC.js +1 -0
- package/public/chunk-2GPXWXUT.js +1 -0
- package/public/chunk-3LEW5FOJ.js +5 -0
- package/public/chunk-5RI5TLFW.js +1 -0
- package/public/{chunk-QX6BFGHZ.js → chunk-5WYRGCHF.js} +1 -1
- package/public/chunk-5YEBXXYW.js +1 -0
- package/public/{chunk-ZUTM7S4U.js → chunk-7FVJXUCR.js} +1 -1
- package/public/chunk-AEEAPTXE.js +1 -0
- package/public/chunk-AM53KSWA.js +1 -0
- package/public/chunk-ANRLCCQG.js +1 -0
- package/public/chunk-BH4JDZF4.js +1 -0
- package/public/chunk-BHMKIJVI.js +1 -0
- package/public/{chunk-IWFKJHPR.js → chunk-BQMDK4YS.js} +2 -2
- package/public/{chunk-3POLSI6J.js → chunk-C64P3A75.js} +1 -1
- package/public/{chunk-WCOLHYTR.js → chunk-CCHRGHTT.js} +1 -1
- package/public/chunk-CDS2MSIW.js +1 -0
- package/public/{chunk-J6CJ26QN.js → chunk-CIVLN3HQ.js} +1 -1
- package/public/{chunk-CMOVUX6R.js → chunk-CTYK4ZDT.js} +1 -1
- package/public/chunk-DOOSRLOB.js +1 -0
- package/public/{chunk-OYULLXTP.js → chunk-E6AE64XW.js} +1 -1
- package/public/chunk-EKP4IO3L.js +4 -0
- package/public/{chunk-H45DK7IX.js → chunk-EWO5Q2EI.js} +2 -2
- package/public/{chunk-FXJWZ2UF.js → chunk-F3ULAZ4E.js} +1 -1
- package/public/chunk-F6VJ3EFY.js +1 -0
- package/public/chunk-FB6OF4XR.js +1 -0
- package/public/chunk-G5PK6IZW.js +2 -0
- package/public/chunk-GFPRNM6N.js +1 -0
- package/public/chunk-GTGO4A2X.js +1 -0
- package/public/chunk-IJXZNORX.js +1 -0
- package/public/chunk-KCX2WQ7I.js +20 -0
- package/public/{chunk-D7VCPH6W.js → chunk-KNZTEJFP.js} +1 -1
- package/public/{chunk-H5WTK5UT.js → chunk-KXMDG63G.js} +1 -1
- package/public/chunk-L432DR6J.js +1 -0
- package/public/chunk-LNGNBQBM.js +1 -0
- package/public/{chunk-2C3X2ESN.js → chunk-M7Q6VBJE.js} +1 -1
- package/public/chunk-MCMJ5GFL.js +1 -0
- package/public/chunk-MDV2S56W.js +1 -0
- package/public/chunk-MIOXSBCB.js +1 -0
- package/public/{chunk-TWIBESLE.js → chunk-MKVX26LQ.js} +1 -1
- package/public/chunk-MODJOHCZ.js +1 -0
- package/public/chunk-MVMZJM7B.js +9 -0
- package/public/chunk-NMHMMKMV.js +1 -0
- package/public/chunk-NVX4KPO6.js +1 -0
- package/public/chunk-OLGI5A27.js +1 -0
- package/public/chunk-P6VGWWMV.js +1 -0
- package/public/chunk-PCCN3UQI.js +49 -0
- package/public/chunk-POHAQOWN.js +1 -0
- package/public/chunk-PVFUJ4PR.js +4 -0
- package/public/chunk-QZJJX4BS.js +1 -0
- package/public/{chunk-WTDK2HE6.js → chunk-RH474C2P.js} +1 -1
- package/public/chunk-RN2CW4V7.js +4 -0
- package/public/chunk-SEYIRMYP.js +40 -0
- package/public/{chunk-6E4QOLAB.js → chunk-SJP6OUG5.js} +1 -1
- package/public/chunk-TXNEVPOK.js +14 -0
- package/public/chunk-UFFCOH7L.js +1 -0
- package/public/chunk-UO7UMJN3.js +1 -0
- package/public/{chunk-5E4D6S2D.js → chunk-UUM2722D.js} +1 -1
- package/public/chunk-VNH6VAIL.js +1 -0
- package/public/chunk-VSICB3TW.js +1 -0
- package/public/chunk-W5UULTHE.js +1 -0
- package/public/chunk-XBQ6GTWH.js +3 -0
- package/public/chunk-XHOBTVZN.js +1 -0
- package/public/chunk-XSTH4HOH.js +1 -0
- package/public/chunk-YBETHBKT.js +1 -0
- package/public/chunk-YGABEALD.js +1 -0
- package/public/chunk-YWY6NRRB.js +1 -0
- package/public/chunk-ZUW7E67I.js +1 -0
- package/public/index.html +2 -2
- package/public/main-CVBTY5OH.js +1 -0
- package/public/polyfills-5KWHJ7II.js +2 -0
- package/public/{styles-LKRXKJ7O.css → styles-AUT3PDLG.css} +1 -1
- package/public/assets/hap-icons/light-bulb.svg +0 -25
- package/public/assets/hap-icons/outlet.svg +0 -25
- package/public/assets/hap-icons/switch.svg +0 -25
- package/public/assets/hap-icons/unknown.svg +0 -25
- package/public/assets/monaco-0.21.3/README.md +0 -96
- package/public/assets/monaco-0.21.3/ThirdPartyNotices.txt +0 -283
- package/public/assets/monaco-0.21.3/min/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/public/assets/monaco-0.21.3/min/vs/base/worker/workerMain.js +0 -160
- package/public/assets/monaco-0.21.3/min/vs/basic-languages/shell/shell.js +0 -7
- package/public/assets/monaco-0.21.3/min/vs/editor/editor.main.css +0 -6
- package/public/assets/monaco-0.21.3/min/vs/editor/editor.main.js +0 -2368
- package/public/assets/monaco-0.21.3/min/vs/editor/editor.main.nls.js +0 -39
- package/public/assets/monaco-0.21.3/min/vs/language/json/jsonMode.js +0 -7
- package/public/assets/monaco-0.21.3/min/vs/language/json/jsonWorker.js +0 -7
- package/public/assets/monaco-0.21.3/min/vs/loader.js +0 -38
- package/public/assets/monaco-0.21.3/package.json +0 -38
- package/public/assets/service-icons/air-purifier.svg +0 -50
- package/public/assets/service-icons/air-quality-sensor.svg +0 -30
- package/public/assets/service-icons/carbon-dioxide-sensor.svg +0 -53
- package/public/assets/service-icons/carbon-monoxide-sensor.svg +0 -53
- package/public/assets/service-icons/contact-sensor.svg +0 -45
- package/public/assets/service-icons/door.svg +0 -49
- package/public/assets/service-icons/doorbell.svg +0 -7
- package/public/assets/service-icons/fan.svg +0 -15
- package/public/assets/service-icons/filter-maintenance.svg +0 -54
- package/public/assets/service-icons/garage-door.svg +0 -120
- package/public/assets/service-icons/irrigation-system.svg +0 -34
- package/public/assets/service-icons/leak-sensor.svg +0 -42
- package/public/assets/service-icons/light-sensor.svg +0 -34
- package/public/assets/service-icons/lock-mechanism.svg +0 -39
- package/public/assets/service-icons/microphone.svg +0 -12
- package/public/assets/service-icons/motion-sensor.svg +0 -84
- package/public/assets/service-icons/occupancy-sensor.svg +0 -49
- package/public/assets/service-icons/robot-vacuum.svg +0 -76
- package/public/assets/service-icons/security-system.svg +0 -19
- package/public/assets/service-icons/smoke-sensor.svg +0 -38
- package/public/assets/service-icons/speaker.svg +0 -28
- package/public/assets/service-icons/stateless-programmable-switch.svg +0 -18
- package/public/assets/service-icons/television.svg +0 -17
- package/public/assets/service-icons/valve-faucet.svg +0 -22
- package/public/assets/service-icons/valve-generic.svg +0 -25
- package/public/assets/service-icons/valve-irrigation.svg +0 -34
- package/public/assets/service-icons/valve-shower-head.svg +0 -32
- package/public/assets/service-icons/washing-machine.svg +0 -34
- package/public/assets/service-icons/window-covering.svg +0 -44
- package/public/assets/service-icons/window.svg +0 -71
- package/public/chunk-2H6KO42L.js +0 -1
- package/public/chunk-3M6IUC74.js +0 -1
- package/public/chunk-5PN3M3TS.js +0 -1
- package/public/chunk-5VJLO72Y.js +0 -1
- package/public/chunk-6CQ7JJUY.js +0 -1
- package/public/chunk-7EQFLCW4.js +0 -1
- package/public/chunk-7ZUAPFH6.js +0 -1
- package/public/chunk-A5YMO7NI.js +0 -1
- package/public/chunk-BEPC7IPQ.js +0 -23
- package/public/chunk-BG7RRQGG.js +0 -1
- package/public/chunk-BO3HTTPA.js +0 -1
- package/public/chunk-CN4SGKOR.js +0 -1
- package/public/chunk-DFFTJVRY.js +0 -1
- package/public/chunk-FCJZJIQL.js +0 -1
- package/public/chunk-FG5GS755.js +0 -1
- package/public/chunk-FMHXNJHJ.js +0 -1
- package/public/chunk-FSWVJTPN.js +0 -1
- package/public/chunk-FUTRU3DJ.js +0 -4
- package/public/chunk-FVKMBZOU.js +0 -9
- package/public/chunk-G3JSRG2Q.js +0 -2
- package/public/chunk-GHMFFLJG.js +0 -1
- package/public/chunk-HT7KLIKB.js +0 -1
- package/public/chunk-HWAWBYVQ.js +0 -1
- package/public/chunk-IOKYXV5M.js +0 -4
- package/public/chunk-JFPT3QXX.js +0 -30
- package/public/chunk-JL4UQXPL.js +0 -1
- package/public/chunk-KZKL7DGI.js +0 -1
- package/public/chunk-LDCR6K2U.js +0 -12
- package/public/chunk-LXAXEGMX.js +0 -1
- package/public/chunk-MHTCWHP3.js +0 -1
- package/public/chunk-NDBMU5RD.js +0 -14
- package/public/chunk-NHNGZ4PI.js +0 -1
- package/public/chunk-NORBG6QU.js +0 -1
- package/public/chunk-OA7Y3E5A.js +0 -2
- package/public/chunk-PA5E2G2J.js +0 -4
- package/public/chunk-Q3EG5UQP.js +0 -1
- package/public/chunk-QE27FJRU.js +0 -1
- package/public/chunk-QVCO7S7N.js +0 -20
- package/public/chunk-R3KUMAWN.js +0 -1
- package/public/chunk-RHZTPEXE.js +0 -1
- package/public/chunk-RZXCKXEZ.js +0 -1
- package/public/chunk-SL5FI37R.js +0 -1
- package/public/chunk-SULJOYSB.js +0 -3
- package/public/chunk-TR3AIWBS.js +0 -1
- package/public/chunk-V6JVOQNN.js +0 -1
- package/public/chunk-WX32WZFA.js +0 -1
- package/public/chunk-WYMH5QZG.js +0 -1
- package/public/chunk-X5YIKTO6.js +0 -1
- package/public/chunk-Z2T4OZ7I.js +0 -1
- package/public/chunk-ZAIVLZNZ.js +0 -1
- package/public/chunk-ZKQAULZM.js +0 -1
- package/public/chunk-ZLYGOSRJ.js +0 -1
- package/public/main-ILQAVUPM.js +0 -1
- package/public/polyfills-WE4HA5DL.js +0 -2
- /package/public/assets/{monaco-0.21.3 → monaco}/LICENSE +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import{a as Si,b as Ae,c as bi}from"./chunk-GTGO4A2X.js";import{m as Y,n as X}from"./chunk-BQMDK4YS.js";import{B as Q,a as ki,e as oe,l as re}from"./chunk-AM53KSWA.js";import{b as Ve}from"./chunk-5RI5TLFW.js";import{l as T}from"./chunk-FB6OF4XR.js";import{$b as ot,Ba as si,Db as O,G as ti,Ga as Dt,Gb as y,H as ii,Ib as u,Jc as B,La as r,M as te,Pa as li,Pc as De,Q as ni,Qa as nt,Rc as Ee,Tb as hi,Vb as d,Wa as w,Wb as g,Xb as C,Ya as ci,Yb as N,Za as di,Zb as He,_b as Ci,ac as G,bb as Re,bc as z,cb as pi,cc as q,da as oi,ea as ri,ec as xi,fc as fe,gc as U,hc as D,ic as rt,ja as F,jc as at,kb as b,kc as _i,lb as x,lc as yi,mb as _,mc as l,n as ee,nc as c,o as ei,oa as M,ob as mi,oc as ce,pa as E,pb as ui,qa as A,qb as fi,ra as H,rb as f,sb as o,tb as s,ub as m,vb as ve,vc as At,wb as Ce,xb as Me,ya as ai,yb as vi,zb as gi}from"./chunk-3LEW5FOJ.js";var We=(function(e){return e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values",e})(We||{}),we=(function(e){return e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue",e})(we||{});function Co(e){return lt(e)&&typeof e.from=="function"}function lt(e){return typeof e=="object"&&typeof e.to=="function"}function wi(e){e.parentElement.removeChild(e)}function It(e){return e!=null}function Ti(e){e.preventDefault()}function xo(e){return e.filter(function(n){return this[n]?!1:this[n]=!0},{})}function _o(e,n){return Math.round(e/n)*n}function yo(e,n){var t=e.getBoundingClientRect(),a=e.ownerDocument,i=a.documentElement,p=Bi(a);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(p.x=0),n?t.top+p.y-i.clientTop:t.left+p.x-i.clientLeft}function Be(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}function Mi(e,n,t){t>0&&(Se(e,n),setTimeout(function(){st(e,n)},t))}function Ei(e){return Math.max(Math.min(e,100),0)}function ct(e){return Array.isArray(e)?e:[e]}function ko(e){e=String(e);var n=e.split(".");return n.length>1?n[1].length:0}function Se(e,n){e.classList&&!/\s/.test(n)?e.classList.add(n):e.className+=" "+n}function st(e,n){e.classList&&!/\s/.test(n)?e.classList.remove(n):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," ")}function So(e,n){return e.classList?e.classList.contains(n):new RegExp("\\b"+n+"\\b").test(e.className)}function Bi(e){var n=window.pageXOffset!==void 0,t=(e.compatMode||"")==="CSS1Compat",a=n?window.pageXOffset:t?e.documentElement.scrollLeft:e.body.scrollLeft,i=n?window.pageYOffset:t?e.documentElement.scrollTop:e.body.scrollTop;return{x:a,y:i}}function bo(){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 wo(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,n)}catch{}return e}function To(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Ft(e,n){return 100/(n-e)}function Pt(e,n,t){return n*100/(e[t+1]-e[t])}function Mo(e,n){return Pt(e,e[0]<0?n+Math.abs(e[0]):n-e[0],0)}function Eo(e,n){return n*(e[1]-e[0])/100+e[0]}function Ke(e,n){for(var t=1;e>=n[t];)t+=1;return t}function Vo(e,n,t){if(t>=e.slice(-1)[0])return 100;var a=Ke(t,e),i=e[a-1],p=e[a],S=n[a-1],Z=n[a];return S+Mo([i,p],t)/Ft(S,Z)}function Bo(e,n,t){if(t>=100)return e.slice(-1)[0];var a=Ke(t,n),i=e[a-1],p=e[a],S=n[a-1],Z=n[a];return Eo([i,p],(t-S)*Ft(S,Z))}function Do(e,n,t,a){if(a===100)return a;var i=Ke(a,e),p=e[i-1],S=e[i];return t?a-p>(S-p)/2?S:p:n[i-1]?e[i-1]+_o(a-e[i-1],n[i-1]):a}var Ao=(function(){function e(n,t,a){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[a||!1],this.xNumSteps=[!1],this.snap=t;var i,p=[];for(Object.keys(n).forEach(function(S){p.push([ct(n[S]),S])}),p.sort(function(S,Z){return S[0][0]-Z[0][0]}),i=0;i<p.length;i++)this.handleEntryPoint(p[i][1],p[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(n){for(var t=[],a=0;a<this.xNumSteps.length-1;a++)t[a]=Pt(this.xVal,n,a);return t},e.prototype.getAbsoluteDistance=function(n,t,a){var i=0;if(n<this.xPct[this.xPct.length-1])for(;n>this.xPct[i+1];)i++;else n===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);!a&&n===this.xPct[i+1]&&i++,t===null&&(t=[]);var p,S=1,Z=t[i],ie=0,W=0,K=0,de=0;for(a?p=(n-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):p=(this.xPct[i+1]-n)/(this.xPct[i+1]-this.xPct[i]);Z>0;)ie=this.xPct[i+1+de]-this.xPct[i+de],t[i+de]*S+100-p*100>100?(W=ie*p,S=(Z-100*p)/t[i+de],p=1):(W=t[i+de]*ie/100*S,S=0),a?(K=K-W,this.xPct.length+de>=1&&de--):(K=K+W,this.xPct.length-de>=1&&de++),Z=t[i+de]*S;return n+K},e.prototype.toStepping=function(n){return n=Vo(this.xVal,this.xPct,n),n},e.prototype.fromStepping=function(n){return Bo(this.xVal,this.xPct,n)},e.prototype.getStep=function(n){return n=Do(this.xPct,this.xSteps,this.snap,n),n},e.prototype.getDefaultStep=function(n,t,a){var i=Ke(n,this.xPct);return(n===100||t&&n===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/a},e.prototype.getNearbySteps=function(n){var t=Ke(n,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 n=this.xNumSteps.map(ko);return Math.max.apply(null,n)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(n){return this.getStep(this.toStepping(n))},e.prototype.handleEntryPoint=function(n,t){var a;if(n==="min"?a=0:n==="max"?a=100:a=parseFloat(n),!Be(a)||!Be(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(a),this.xVal.push(t[0]);var i=Number(t[1]);a?this.xSteps.push(isNaN(i)?!1:i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(n,t){if(t){if(this.xVal[n]===this.xVal[n+1]){this.xSteps[n]=this.xHighestCompleteStep[n]=this.xVal[n];return}this.xSteps[n]=Pt([this.xVal[n],this.xVal[n+1]],t,0)/Ft(this.xPct[n],this.xPct[n+1]);var a=(this.xVal[n+1]-this.xVal[n])/this.xNumSteps[n],i=Math.ceil(Number(a.toFixed(3))-1),p=this.xVal[n]+this.xNumSteps[n]*i;this.xHighestCompleteStep[n]=p}},e})(),Vi={to:function(e){return e===void 0?"":e.toFixed(2)},from:Number},Io={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"},Le={tooltips:".__tooltips",aria:".__aria"};function Po(e,n){if(!Be(n))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=n}function Fo(e,n){if(!Be(n))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=n}function Ho(e,n){if(!Be(n))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=n}function Lo(e,n){if(!Be(n))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=n}function Oo(e,n){if(typeof n!="object"||Array.isArray(n))throw new Error("noUiSlider: 'range' is not an object.");if(n.min===void 0||n.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new Ao(n,e.snap||!1,e.singleStep)}function No(e,n){if(n=ct(n),!Array.isArray(n)||!n.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=n.length,e.start=n}function Ro(e,n){if(typeof n!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=n}function Wo(e,n){if(typeof n!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=n}function jo(e,n){if(typeof n!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=n}function Di(e,n){var t=[!1],a;if(n==="lower"?n=[!0,!1]:n==="upper"&&(n=[!1,!0]),n===!0||n===!1){for(a=1;a<e.handles;a++)t.push(n);t.push(!1)}else{if(!Array.isArray(n)||!n.length||n.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=n}e.connect=t}function Uo(e,n){switch(n){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Ai(e,n){if(!Be(n))throw new Error("noUiSlider: 'margin' option must be numeric.");n!==0&&(e.margin=e.spectrum.getDistance(n))}function $o(e,n){if(!Be(n))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(n),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function Go(e,n){var t;if(!Be(n)&&!Array.isArray(n))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(n)&&!(n.length===2||Be(n[0])||Be(n[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(n!==0){for(Array.isArray(n)||(n=[n,n]),e.padding=[e.spectrum.getDistance(n[0]),e.spectrum.getDistance(n[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 a=n[0]+n[1],i=e.spectrum.xVal[0],p=e.spectrum.xVal[e.spectrum.xVal.length-1];if(a/(p-i)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function zo(e,n){switch(n){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function qo(e,n){if(typeof n!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=n.indexOf("tap")>=0,a=n.indexOf("drag")>=0,i=n.indexOf("fixed")>=0,p=n.indexOf("snap")>=0,S=n.indexOf("hover")>=0,Z=n.indexOf("unconstrained")>=0,ie=n.indexOf("invert-connects")>=0,W=n.indexOf("drag-all")>=0,K=n.indexOf("smooth-steps")>=0;if(i){if(e.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Ai(e,e.start[1]-e.start[0])}if(ie&&e.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(Z&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:t||p,drag:a,dragAll:W,smoothSteps:K,fixed:i,snap:p,hover:S,unconstrained:Z,invertConnects:ie}}function Zo(e,n){if(n!==!1)if(n===!0||lt(n)){e.tooltips=[];for(var t=0;t<e.handles;t++)e.tooltips.push(n)}else{if(n=ct(n),n.length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");n.forEach(function(a){if(typeof a!="boolean"&&!lt(a))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=n}}function Ko(e,n){if(n.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=n}function Qo(e,n){if(!lt(n))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=n}function Yo(e,n){if(!Co(n))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=n}function Xo(e,n){if(typeof n!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=n}function Jo(e,n){e.documentElement=n}function er(e,n){if(typeof n!="string"&&n!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=n}function tr(e,n){if(typeof n!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof e.cssPrefix=="string"?(e.cssClasses={},Object.keys(n).forEach(function(t){e.cssClasses[t]=e.cssPrefix+n[t]})):e.cssClasses=n}function Ii(e){var n={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:Vi,format:Vi},t={step:{r:!1,t:Po},keyboardPageMultiplier:{r:!1,t:Fo},keyboardMultiplier:{r:!1,t:Ho},keyboardDefaultStep:{r:!1,t:Lo},start:{r:!0,t:No},connect:{r:!0,t:Di},direction:{r:!0,t:zo},snap:{r:!1,t:Ro},animate:{r:!1,t:Wo},animationDuration:{r:!1,t:jo},range:{r:!0,t:Oo},orientation:{r:!1,t:Uo},margin:{r:!1,t:Ai},limit:{r:!1,t:$o},padding:{r:!1,t:Go},behaviour:{r:!0,t:qo},ariaFormat:{r:!1,t:Qo},format:{r:!1,t:Yo},tooltips:{r:!1,t:Zo},keyboardSupport:{r:!0,t:Xo},documentElement:{r:!1,t:Jo},cssPrefix:{r:!0,t:er},cssClasses:{r:!0,t:tr},handleAttributes:{r:!1,t:Ko}},a={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Io,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(t).forEach(function(ie){if(!It(e[ie])&&a[ie]===void 0){if(t[ie].r)throw new Error("noUiSlider: '"+ie+"' is required.");return}t[ie].t(n,It(e[ie])?e[ie]:a[ie])}),n.pips=e.pips;var i=document.createElement("div"),p=i.style.msTransform!==void 0,S=i.style.transform!==void 0;n.transformRule=S?"transform":p?"msTransform":"webkitTransform";var Z=[["left","top"],["right","bottom"]];return n.style=Z[n.dir][n.ort],n}function ir(e,n,t){var a=bo(),i=To(),p=i&&wo(),S=e,Z,ie,W,K,de,ye,J=n.spectrum,Ie=[],pe=[],be=[],gt=0,Pe={},ze=!1,Ge=e.ownerDocument,Xe=n.documentElement||Ge.documentElement,Je=Ge.body,$n=Ge.dir==="rtl"||n.ort===1?0:100;function Fe(v,h){var k=Ge.createElement("div");return h&&Se(k,h),v.appendChild(k),k}function Gn(v,h){var k=Fe(v,n.cssClasses.origin),V=Fe(k,n.cssClasses.handle);if(Fe(V,n.cssClasses.touchArea),V.setAttribute("data-handle",String(h)),n.keyboardSupport&&(V.setAttribute("tabindex","0"),V.addEventListener("keydown",function(P){return so(P,h)})),n.handleAttributes!==void 0){var I=n.handleAttributes[h];Object.keys(I).forEach(function(P){V.setAttribute(P,I[P])})}return V.setAttribute("role","slider"),V.setAttribute("aria-orientation",n.ort?"vertical":"horizontal"),h===0?Se(V,n.cssClasses.handleLower):h===n.handles-1&&Se(V,n.cssClasses.handleUpper),k.handle=V,k}function ht(v,h){return h?Fe(v,n.cssClasses.connect):!1}function zn(v,h){ie=Fe(h,n.cssClasses.connects),W=[],K=[],K.push(ht(ie,v[0]));for(var k=0;k<n.handles;k++)W.push(Gn(h,k)),be[k]=k,K.push(ht(ie,v[k+1]))}function qn(v){Se(v,n.cssClasses.target),n.dir===0?Se(v,n.cssClasses.ltr):Se(v,n.cssClasses.rtl),n.ort===0?Se(v,n.cssClasses.horizontal):Se(v,n.cssClasses.vertical);var h=getComputedStyle(v).direction;return h==="rtl"?Se(v,n.cssClasses.textDirectionRtl):Se(v,n.cssClasses.textDirectionLtr),Fe(v,n.cssClasses.base)}function Zn(v,h){return!n.tooltips||!n.tooltips[h]?!1:Fe(v.firstChild,n.cssClasses.tooltip)}function Nt(){return S.hasAttribute("disabled")}function Ct(v){var h=W[v];return h.hasAttribute("disabled")}function Kn(v){v!=null?(W[v].setAttribute("disabled",""),W[v].handle.removeAttribute("tabindex")):(S.setAttribute("disabled",""),W.forEach(function(h){h.handle.removeAttribute("tabindex")}))}function Qn(v){v!=null?(W[v].removeAttribute("disabled"),W[v].handle.setAttribute("tabindex","0")):(S.removeAttribute("disabled"),W.forEach(function(h){h.removeAttribute("disabled"),h.handle.setAttribute("tabindex","0")}))}function xt(){ye&&(qe("update"+Le.tooltips),ye.forEach(function(v){v&&wi(v)}),ye=null)}function Rt(){xt(),ye=W.map(Zn),bt("update"+Le.tooltips,function(v,h,k){if(!(!ye||!n.tooltips)&&ye[h]!==!1){var V=v[h];n.tooltips[h]!==!0&&(V=n.tooltips[h].to(k[h])),ye[h].innerHTML=V}})}function Yn(){qe("update"+Le.aria),bt("update"+Le.aria,function(v,h,k,V,I){be.forEach(function(P){var j=W[P],L=et(pe,P,0,!0,!0,!0),se=et(pe,P,100,!0,!0,!0),le=I[P],me=String(n.ariaFormat.to(k[P]));L=J.fromStepping(L).toFixed(1),se=J.fromStepping(se).toFixed(1),le=J.fromStepping(le).toFixed(1),j.children[0].setAttribute("aria-valuemin",L),j.children[0].setAttribute("aria-valuemax",se),j.children[0].setAttribute("aria-valuenow",le),j.children[0].setAttribute("aria-valuetext",me)})})}function Xn(v){if(v.mode===We.Range||v.mode===We.Steps)return J.xVal;if(v.mode===We.Count){if(v.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var h=v.values-1,k=100/h,V=[];h--;)V[h]=h*k;return V.push(100),Wt(V,v.stepped)}return v.mode===We.Positions?Wt(v.values,v.stepped):v.mode===We.Values?v.stepped?v.values.map(function(I){return J.fromStepping(J.getStep(J.toStepping(I)))}):v.values:[]}function Wt(v,h){return v.map(function(k){return J.fromStepping(h?J.getStep(k):k)})}function Jn(v){function h(le,me){return Number((le+me).toFixed(7))}var k=Xn(v),V={},I=J.xVal[0],P=J.xVal[J.xVal.length-1],j=!1,L=!1,se=0;return k=xo(k.slice().sort(function(le,me){return le-me})),k[0]!==I&&(k.unshift(I),j=!0),k[k.length-1]!==P&&(k.push(P),L=!0),k.forEach(function(le,me){var ue,ne,he,ke=le,xe=k[me+1],_e,Mt,Et,Vt,Yt,Bt,Xt,Jt=v.mode===We.Steps;for(Jt&&(ue=J.xNumSteps[me]),ue||(ue=xe-ke),xe===void 0&&(xe=ke),ue=Math.max(ue,1e-7),ne=ke;ne<=xe;ne=h(ne,ue)){for(_e=J.toStepping(ne),Mt=_e-se,Yt=Mt/(v.density||1),Bt=Math.round(Yt),Xt=Mt/Bt,he=1;he<=Bt;he+=1)Et=se+he*Xt,V[Et.toFixed(5)]=[J.fromStepping(Et),0];Vt=k.indexOf(ne)>-1?we.LargeValue:Jt?we.SmallValue:we.NoValue,!me&&j&&ne!==xe&&(Vt=0),ne===xe&&L||(V[_e.toFixed(5)]=[ne,Vt]),se=_e}}),V}function eo(v,h,k){var V,I,P=Ge.createElement("div"),j=(V={},V[we.None]="",V[we.NoValue]=n.cssClasses.valueNormal,V[we.LargeValue]=n.cssClasses.valueLarge,V[we.SmallValue]=n.cssClasses.valueSub,V),L=(I={},I[we.None]="",I[we.NoValue]=n.cssClasses.markerNormal,I[we.LargeValue]=n.cssClasses.markerLarge,I[we.SmallValue]=n.cssClasses.markerSub,I),se=[n.cssClasses.valueHorizontal,n.cssClasses.valueVertical],le=[n.cssClasses.markerHorizontal,n.cssClasses.markerVertical];Se(P,n.cssClasses.pips),Se(P,n.ort===0?n.cssClasses.pipsHorizontal:n.cssClasses.pipsVertical);function me(ne,he){var ke=he===n.cssClasses.value,xe=ke?se:le,_e=ke?j:L;return he+" "+xe[n.ort]+" "+_e[ne]}function ue(ne,he,ke){if(ke=h?h(he,ke):ke,ke!==we.None){var xe=Fe(P,!1);xe.className=me(ke,n.cssClasses.marker),xe.style[n.style]=ne+"%",ke>we.NoValue&&(xe=Fe(P,!1),xe.className=me(ke,n.cssClasses.value),xe.setAttribute("data-value",String(he)),xe.style[n.style]=ne+"%",xe.innerHTML=String(k.to(he)))}}return Object.keys(v).forEach(function(ne){ue(ne,v[ne][0],v[ne][1])}),P}function _t(){de&&(wi(de),de=null)}function yt(v){_t();var h=Jn(v),k=v.filter,V=v.format||{to:function(I){return String(Math.round(I))}};return de=S.appendChild(eo(h,k,V)),de}function jt(){var v=Z.getBoundingClientRect(),h="offset"+["Width","Height"][n.ort];return n.ort===0?v.width||Z[h]:v.height||Z[h]}function Oe(v,h,k,V){var I=function(j){var L=to(j,V.pageOffset,V.target||h);if(!L||Nt()&&!V.doNotReject||So(S,n.cssClasses.tap)&&!V.doNotReject||v===a.start&&L.buttons!==void 0&&L.buttons>1||V.hover&&L.buttons)return!1;p||L.preventDefault(),L.calcPoint=L.points[n.ort],k(L,V)},P=[];return v.split(" ").forEach(function(j){h.addEventListener(j,I,p?{passive:!0}:!1),P.push([j,I])}),P}function to(v,h,k){var V=v.type.indexOf("touch")===0,I=v.type.indexOf("mouse")===0,P=v.type.indexOf("pointer")===0,j=0,L=0;if(v.type.indexOf("MSPointer")===0&&(P=!0),v.type==="mousedown"&&!v.buttons&&!v.touches)return!1;if(V){var se=function(ue){var ne=ue.target;return ne===k||k.contains(ne)||v.composed&&v.composedPath().shift()===k};if(v.type==="touchstart"){var le=Array.prototype.filter.call(v.touches,se);if(le.length>1)return!1;j=le[0].pageX,L=le[0].pageY}else{var me=Array.prototype.find.call(v.changedTouches,se);if(!me)return!1;j=me.pageX,L=me.pageY}}return h=h||Bi(Ge),(I||P)&&(j=v.clientX+h.x,L=v.clientY+h.y),v.pageOffset=h,v.points=[j,L],v.cursor=I||P,v}function Ut(v){var h=v-yo(Z,n.ort),k=h*100/jt();return k=Ei(k),n.dir?100-k:k}function io(v){var h=100,k=!1;return W.forEach(function(V,I){if(!Ct(I)){var P=pe[I],j=Math.abs(P-v),L=j===100&&h===100,se=j<h,le=j<=h&&v>P;(se||le||L)&&(k=I,h=j)}}),k}function no(v,h){v.type==="mouseout"&&v.target.nodeName==="HTML"&&v.relatedTarget===null&&kt(v,h)}function oo(v,h){if(navigator.appVersion.indexOf("MSIE 9")===-1&&v.buttons===0&&h.buttonsProperty!==0)return kt(v,h);var k=(n.dir?-1:1)*(v.calcPoint-h.startCalcPoint),V=k*100/h.baseSize;Gt(k>0,V,h.locations,h.handleNumbers,h.connect)}function kt(v,h){h.handle&&(st(h.handle,n.cssClasses.active),gt-=1),h.listeners.forEach(function(k){Xe.removeEventListener(k[0],k[1])}),gt===0&&(st(S,n.cssClasses.drag),Tt(),v.cursor&&(Je.style.cursor="",Je.removeEventListener("selectstart",Ti))),n.events.smoothSteps&&(h.handleNumbers.forEach(function(k){Ne(k,pe[k],!0,!0,!1,!1)}),h.handleNumbers.forEach(function(k){ge("update",k)})),h.handleNumbers.forEach(function(k){ge("change",k),ge("set",k),ge("end",k)})}function St(v,h){if(!h.handleNumbers.some(Ct)){var k;if(h.handleNumbers.length===1){var V=W[h.handleNumbers[0]];k=V.children[0],gt+=1,Se(k,n.cssClasses.active)}v.stopPropagation();var I=[],P=Oe(a.move,Xe,oo,{target:v.target,handle:k,connect:h.connect,listeners:I,startCalcPoint:v.calcPoint,baseSize:jt(),pageOffset:v.pageOffset,handleNumbers:h.handleNumbers,buttonsProperty:v.buttons,locations:pe.slice()}),j=Oe(a.end,Xe,kt,{target:v.target,handle:k,listeners:I,doNotReject:!0,handleNumbers:h.handleNumbers}),L=Oe("mouseout",Xe,no,{target:v.target,handle:k,listeners:I,doNotReject:!0,handleNumbers:h.handleNumbers});I.push.apply(I,P.concat(j,L)),v.cursor&&(Je.style.cursor=getComputedStyle(v.target).cursor,W.length>1&&Se(S,n.cssClasses.drag),Je.addEventListener("selectstart",Ti,!1)),h.handleNumbers.forEach(function(se){ge("start",se)})}}function ro(v){v.stopPropagation();var h=Ut(v.calcPoint),k=io(h);k!==!1&&(n.events.snap||Mi(S,n.cssClasses.tap,n.animationDuration),Ne(k,h,!0,!0),Tt(),ge("slide",k,!0),ge("update",k,!0),n.events.snap?St(v,{handleNumbers:[k]}):(ge("change",k,!0),ge("set",k,!0)))}function ao(v){var h=Ut(v.calcPoint),k=J.getStep(h),V=J.fromStepping(k);Object.keys(Pe).forEach(function(I){I.split(".")[0]==="hover"&&Pe[I].forEach(function(P){P.call(it,V)})})}function so(v,h){if(Nt()||Ct(h))return!1;var k=["Left","Right"],V=["Down","Up"],I=["PageDown","PageUp"],P=["Home","End"];n.dir&&!n.ort?k.reverse():n.ort&&!n.dir&&(V.reverse(),I.reverse());var j=v.key.replace("Arrow",""),L=j===I[0],se=j===I[1],le=j===V[0]||j===k[0]||L,me=j===V[1]||j===k[1]||se,ue=j===P[0],ne=j===P[1];if(!le&&!me&&!ue&&!ne)return!0;v.preventDefault();var he;if(me||le){var ke=le?0:1,xe=Kt(h),_e=xe[ke];if(_e===null)return!1;_e===!1&&(_e=J.getDefaultStep(pe[h],le,n.keyboardDefaultStep)),se||L?_e*=n.keyboardPageMultiplier:_e*=n.keyboardMultiplier,_e=Math.max(_e,1e-7),_e=(le?-1:1)*_e,he=Ie[h]+_e}else ne?he=n.spectrum.xVal[n.spectrum.xVal.length-1]:he=n.spectrum.xVal[0];return Ne(h,J.toStepping(he),!0,!0),ge("slide",h),ge("update",h),ge("change",h),ge("set",h),!1}function $t(v){v.fixed||W.forEach(function(h,k){Oe(a.start,h.children[0],St,{handleNumbers:[k]})}),v.tap&&Oe(a.start,Z,ro,{}),v.hover&&Oe(a.move,Z,ao,{hover:!0}),v.drag&&K.forEach(function(h,k){if(!(h===!1||k===0||k===K.length-1)){var V=W[k-1],I=W[k],P=[h],j=[V,I],L=[k-1,k];Se(h,n.cssClasses.draggable),v.fixed&&(P.push(V.children[0]),P.push(I.children[0])),v.dragAll&&(j=W,L=be),P.forEach(function(se){Oe(a.start,se,St,{handles:j,handleNumbers:L,connect:h})})}})}function bt(v,h){Pe[v]=Pe[v]||[],Pe[v].push(h),v.split(".")[0]==="update"&&W.forEach(function(k,V){ge("update",V)})}function lo(v){return v===Le.aria||v===Le.tooltips}function qe(v){var h=v&&v.split(".")[0],k=h?v.substring(h.length):v;Object.keys(Pe).forEach(function(V){var I=V.split(".")[0],P=V.substring(I.length);(!h||h===I)&&(!k||k===P)&&(!lo(P)||k===P)&&delete Pe[V]})}function ge(v,h,k){Object.keys(Pe).forEach(function(V){var I=V.split(".")[0];v===I&&Pe[V].forEach(function(P){P.call(it,Ie.map(n.format.to),h,Ie.slice(),k||!1,pe.slice(),it)})})}function et(v,h,k,V,I,P,j){var L;return W.length>1&&!n.events.unconstrained&&(V&&h>0&&(L=J.getAbsoluteDistance(v[h-1],n.margin,!1),k=Math.max(k,L)),I&&h<W.length-1&&(L=J.getAbsoluteDistance(v[h+1],n.margin,!0),k=Math.min(k,L))),W.length>1&&n.limit&&(V&&h>0&&(L=J.getAbsoluteDistance(v[h-1],n.limit,!1),k=Math.min(k,L)),I&&h<W.length-1&&(L=J.getAbsoluteDistance(v[h+1],n.limit,!0),k=Math.max(k,L))),n.padding&&(h===0&&(L=J.getAbsoluteDistance(0,n.padding[0],!1),k=Math.max(k,L)),h===W.length-1&&(L=J.getAbsoluteDistance(100,n.padding[1],!0),k=Math.min(k,L))),j||(k=J.getStep(k)),k=Ei(k),k===v[h]&&!P?!1:k}function wt(v,h){var k=n.ort;return(k?h:v)+", "+(k?v:h)}function Gt(v,h,k,V,I){var P=k.slice(),j=V[0],L=n.events.smoothSteps,se=[!v,v],le=[v,!v];V=V.slice(),v&&V.reverse(),V.length>1?V.forEach(function(ue,ne){var he=et(P,ue,P[ue]+h,se[ne],le[ne],!1,L);he===!1?h=0:(h=he-P[ue],P[ue]=he)}):se=le=[!0];var me=!1;V.forEach(function(ue,ne){me=Ne(ue,k[ue]+h,se[ne],le[ne],!1,L)||me}),me&&(V.forEach(function(ue){ge("update",ue),ge("slide",ue)}),I!=null&&ge("drag",j))}function zt(v,h){return n.dir?100-v-h:v}function co(v,h){pe[v]=h,Ie[v]=J.fromStepping(h);var k=zt(h,0)-$n,V="translate("+wt(k+"%","0")+")";if(W[v].style[n.transformRule]=V,n.events.invertConnects&&pe.length>1){var I=pe.every(function(P,j,L){return j===0||P>=L[j-1]});if(ze!==!I){go();return}}Ze(v),Ze(v+1),ze&&(Ze(v-1),Ze(v+2))}function Tt(){be.forEach(function(v){var h=pe[v]>50?-1:1,k=3+(W.length+h*v);W[v].style.zIndex=String(k)})}function Ne(v,h,k,V,I,P){return I||(h=et(pe,v,h,k,V,!1,P)),h===!1?!1:(co(v,h),!0)}function Ze(v){if(K[v]){var h=pe.slice();ze&&h.sort(function(L,se){return L-se});var k=0,V=100;v!==0&&(k=h[v-1]),v!==K.length-1&&(V=h[v]);var I=V-k,P="translate("+wt(zt(k,I)+"%","0")+")",j="scale("+wt(I/100,"1")+")";K[v].style[n.transformRule]=P+" "+j}}function qt(v,h){return v===null||v===!1||v===void 0||(typeof v=="number"&&(v=String(v)),v=n.format.from(v),v!==!1&&(v=J.toStepping(v)),v===!1||isNaN(v))?pe[h]:v}function tt(v,h,k){var V=ct(v),I=pe[0]===void 0;h=h===void 0?!0:h,n.animate&&!I&&Mi(S,n.cssClasses.tap,n.animationDuration),be.forEach(function(L){Ne(L,qt(V[L],L),!0,!1,k)});var P=be.length===1?0:1;if(I&&J.hasNoSize()&&(k=!0,pe[0]=0,be.length>1)){var j=100/(be.length-1);be.forEach(function(L){pe[L]=L*j})}for(;P<be.length;++P)be.forEach(function(L){Ne(L,pe[L],!0,!0,k)});Tt(),be.forEach(function(L){ge("update",L),V[L]!==null&&h&&ge("set",L)})}function po(v){tt(n.start,v)}function mo(v,h,k,V){if(v=Number(v),!(v>=0&&v<be.length))throw new Error("noUiSlider: invalid handle number, got: "+v);Ne(v,qt(h,v),!0,!0,V),ge("update",v),k&&ge("set",v)}function Zt(v){if(v===void 0&&(v=!1),v)return Ie.length===1?Ie[0]:Ie.slice(0);var h=Ie.map(n.format.to);return h.length===1?h[0]:h}function uo(){for(qe(Le.aria),qe(Le.tooltips),Object.keys(n.cssClasses).forEach(function(v){st(S,n.cssClasses[v])});S.firstChild;)S.removeChild(S.firstChild);delete S.noUiSlider}function Kt(v){var h=pe[v],k=J.getNearbySteps(h),V=Ie[v],I=k.thisStep.step,P=null;if(n.snap)return[V-k.stepBefore.startValue||null,k.stepAfter.startValue-V||null];I!==!1&&V+I>k.stepAfter.startValue&&(I=k.stepAfter.startValue-V),V>k.thisStep.startValue?P=k.thisStep.step:k.stepBefore.step===!1?P=!1:P=V-k.stepBefore.highestStep,h===100?I=null:h===0&&(P=null);var j=J.countStepDecimals();return I!==null&&I!==!1&&(I=Number(I.toFixed(j))),P!==null&&P!==!1&&(P=Number(P.toFixed(j))),[P,I]}function fo(){return be.map(Kt)}function vo(v,h){var k=Zt(),V=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];V.forEach(function(P){v[P]!==void 0&&(t[P]=v[P])});var I=Ii(t);V.forEach(function(P){v[P]!==void 0&&(n[P]=I[P])}),J=I.spectrum,n.margin=I.margin,n.limit=I.limit,n.padding=I.padding,n.pips?yt(n.pips):_t(),n.tooltips?Rt():xt(),pe=[],tt(It(v.start)?v.start:k,h),v.connect&&Qt()}function Qt(){for(;ie.firstChild;)ie.removeChild(ie.firstChild);for(var v=0;v<=n.handles;v++)K[v]=ht(ie,n.connect[v]),Ze(v);$t({drag:n.events.drag,fixed:!0})}function go(){ze=!ze,Di(n,n.connect.map(function(v){return!v})),Qt()}function ho(){Z=qn(S),zn(n.connect,Z),$t(n.events),tt(n.start),n.pips&&yt(n.pips),n.tooltips&&Rt(),Yn()}ho();var it={destroy:uo,steps:fo,on:bt,off:qe,get:Zt,set:tt,setHandle:mo,reset:po,disable:Kn,enable:Qn,__moveHandles:function(v,h,k){Gt(v,h,pe,k)},options:t,updateOptions:vo,target:S,removePips:_t,removeTooltips:xt,getPositions:function(){return pe.slice()},getTooltips:function(){return ye},getOrigins:function(){return W},pips:yt};return it}function Pi(e,n){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=Ii(n),a=ir(e,t,n);return e.noUiSlider=a,a}var Ht=class{to(n){return String(parseFloat(parseFloat(String(n)).toFixed(2)))}from(n){return parseFloat(n)}},ae=(()=>{class e{constructor(t,a,i){this.ngZone=t,this.el=a,this.renderer=i,this.handles=[],this.config={},this.change=new Re(!0),this.update=new Re(!0),this.slide=new Re(!0),this.set=new Re(!0),this.start=new Re(!0),this.end=new Re(!0),this.onChange=Function.prototype,this.cleanups=[],this.eventHandler=(p,S,Z,ie)=>{let W=this.toValues(S),K=!1;if(this.value===void 0){this.value=W;return}Array.isArray(W)&&this.value[Z]!=W[Z]&&(K=!0),!Array.isArray(W)&&this.value!=W&&(K=!0),K&&this.ngZone.run(()=>{p.observers.length>0&&p.emit(W),this.onChange(W)}),Array.isArray(W)?this.value[Z]=W[Z]:this.value=W},this.defaultKeyHandler=p=>{let S=this.slider.steps(),Z=parseInt(p.target.getAttribute("data-handle")),ie=1,W=1,K=0,de=0;switch(p.which){case 34:W=this.config.pageSteps;break;case 40:case 37:ie=-1,K=S[Z][0],p.preventDefault();break;case 33:W=this.config.pageSteps;break;case 38:case 39:K=S[Z][1],p.preventDefault();break;default:break}de=ie*W*K;let ye;Array.isArray(this.value)?(ye=[...this.value],ye[Z]=ye[Z]+de):ye=this.value+de,this.slider.set(ye)}}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 a=t.map(this.config.format.from);return a.length==1?a[0]:a}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 a=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(a.tooltips=this.tooltips||this.config.tooltips,a.format=this.format||this.config.format||new Ht,this.ngZone.runOutsideAngular(()=>{this.slider=Pi(this.el.nativeElement.querySelector("div"),Object.assign(this.config,a))}),this.handles=[].slice.call(this.el.nativeElement.querySelectorAll(".noUi-handle")),this.config.keyboard){this.config.pageSteps===void 0&&(this.config.pageSteps=10);for(let i of this.handles){i.setAttribute("tabindex",0);let p=this.config.onKeydown||this.defaultKeyHandler;this.ngZone.runOutsideAngular(()=>{this.cleanups.push(this.renderer.listen(i,"keydown",p),this.renderer.listen(i,"click",()=>{i.focus()}))})}}this.slider.on("set",(i,p,S)=>{this.eventHandler(this.set,i,p,S)}),this.slider.on("update",(i,p,S)=>{this.update.observers.length>0&&this.ngZone.run(()=>{this.update.emit(this.toValues(i))})}),this.slider.on("change",(i,p,S)=>{this.change.observers.length>0&&this.ngZone.run(()=>{this.change.emit(this.toValues(i))})}),this.slider.on("slide",(i,p,S)=>{this.eventHandler(this.slide,i,p,S)}),this.slider.on("start",(i,p,S)=>{this.start.observers.length>0&&this.ngZone.run(()=>{this.start.emit(this.toValues(i))})}),this.slider.on("end",(i,p,S)=>{this.end.observers.length>0&&this.ngZone.run(()=>{this.end.emit(this.toValues(i))})})}}return e.\u0275fac=function(t){return new(t||e)(nt(pi),nt(si),nt(li))},e.\u0275cmp=w({type:e,selectors:[["nouislider"]],hostVars:2,hostBindings:function(t,a){t&2&&hi("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:[xi([{provide:ki,useExisting:oi(()=>e),multi:!0}]),ai],decls:1,vars:1,template:function(t,a){t&1&&Me(0,"div"),t&2&&b("disabled",a.disabled?!0:void 0)},styles:["[_nghost-%COMP%]{display:block;margin-top:1rem;margin-bottom:1rem}"]}),e})();var dt=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function or(e,n){if(e&1){let t=O();o(0,"button",6),y("click",function(i){M(t);let p=u(2);return E(p.setTargetMode(0,i))}),o(1,"div",7),m(2,"i",8),s(),d(3),l(4,"translate"),o(5,"div",9),m(6,"i",10),s()()}if(e&2){let t=u(2);r(2),f("ngClass",D(4,dt,t.targetMode===0,t.targetMode!==0)),r(),C(" ",c(4,2,"accessories.control.manual")," ")}}function rr(e,n){if(e&1){let t=O();o(0,"button",6),y("click",function(i){M(t);let p=u(2);return E(p.setTargetMode(1,i))}),o(1,"div",7),m(2,"i",8),s(),d(3),l(4,"translate"),o(5,"div",9),m(6,"i",10),s()()}if(e&2){let t=u(2);r(2),f("ngClass",D(4,dt,t.targetMode===1,t.targetMode!==1)),r(),C(" ",c(4,2,"accessories.control.auto")," ")}}function ar(e,n){if(e&1&&(o(0,"h6",12),d(1),l(2,"translate"),s(),o(3,"div",5),l(4,"translate"),x(5,or,7,7,"button",13),x(6,rr,7,7,"button",13),s()),e&2){let t=u();r(),g(c(2,4,"accessories.control.mode")),r(2),b("aria-label",c(4,6,"accessories.control.mode_control")),r(2),_(t.targetModeValidValues.includes(0)?5:-1),r(),_(t.targetModeValidValues.includes(1)?6:-1)}}function sr(e,n){if(e&1){let t=O();o(0,"h6",12),d(1),l(2,"translate"),s(),o(3,"nouislider",14),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetRotationSpeed.value,i)||(p.targetRotationSpeed.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onTargetRotationSpeedChange())}),s()}if(e&2){let t=u();r(),N("",c(2,6,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value,"%"),r(2),f("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),G("ngModel",t.targetRotationSpeed.value)}}var Fi=(()=>{class e{$activeModal=F(Y);service;targetState;targetMode;targetModeValidValues=[];targetRotationSpeed;targetRotationSpeedChanged=new ee;constructor(){this.targetRotationSpeedChanged.pipe(te(500)).subscribe(()=>{this.service.getCharacteristic("RotationSpeed").setValue(this.targetRotationSpeed.value),this.targetRotationSpeed.value&&!this.service.values.Active?(this.targetState=1,this.service.getCharacteristic("Active").setValue(this.targetMode)):!this.targetRotationSpeed.value&&this.service.values.Active&&(this.targetState=0,this.service.getCharacteristic("Active").setValue(this.targetMode))})}ngOnInit(){this.targetState=this.service.values.Active||this.service.values.On,this.targetMode=this.service.values.TargetAirPurifierState,"TargetAirPurifierState"in this.service.values&&(this.targetModeValidValues=this.service.getCharacteristic("TargetAirPurifierState").validValues),this.loadRotationSpeed()}setTargetState(t,a){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.targetState&&this.targetRotationSpeed&&!this.targetRotationSpeed.value&&(this.targetRotationSpeed.value=this.service.getCharacteristic("RotationSpeed").maxValue),a.target.blur()}setTargetMode(t,a){this.targetMode=t,this.service.getCharacteristic("TargetAirPurifierState").setValue(this.targetMode),a.target.blur()}onTargetRotationSpeedChange(){this.targetRotationSpeedChanged.next(this.targetRotationSpeed.value)}dismissModal(){this.$activeModal.dismiss("Dismiss")}loadRotationSpeed(){let t=this.service.getCharacteristic("RotationSpeed");t&&(this.targetRotationSpeed={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(i=>{i.style.background="linear-gradient(to right, #add8e6, #416bdf)"})},10))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:25,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","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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","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(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5),l(7,"translate"),o(8,"button",6),y("click",function(S){return i.setTargetState(0,S)}),o(9,"div",7),m(10,"i",8),s(),d(11),l(12,"translate"),o(13,"div",9),m(14,"i",10),s()(),o(15,"button",6),y("click",function(S){return i.setTargetState(1,S)}),o(16,"div",7),m(17,"i",8),s(),d(18),l(19,"translate"),o(20,"div",9),m(21,"i",10),s()()(),x(22,ar,7,8),x(23,sr,4,8),s(),m(24,"div",11),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,9,"form.button_close")),r(3),b("aria-label",c(7,11,"accessories.control.state_control")),r(4),f("ngClass",D(17,dt,i.targetState===0,i.targetState!==0)),r(),C(" ",c(12,13,"accessories.control.off")," "),r(6),f("ngClass",D(20,dt,i.targetState===1,i.targetState!==1)),r(),C(" ",c(19,15,"accessories.control.on")," "),r(4),_(i.targetModeValidValues.length?22:-1),r(),_(i.targetRotationSpeed?23:-1))},dependencies:[Q,oe,re,ae,B,T],styles:[".purifying svg .air-line{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 $=(()=>{class e{downTimeout;done=!1;touchInProgress=!1;touchStartTime=0;duration=350;longClick=At();shortClick=At();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(t instanceof TouchEvent){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}t instanceof MouseEvent&&!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(a){return new(a||e)};static \u0275dir=ci({type:e,selectors:[["","shortClick",""],["","longClick",""]],hostBindings:function(a,i){a&1&&y("keyup.enter",function(S){return i.onEnter(S)})("mouseup",function(S){return i.onMouseUp(S)})("touchend",function(S){return i.onTouchEnd(S)})("touchstart",function(S){return i.onMouseDown(S)})("mousedown",function(S){return i.onMouseDown(S)})("mousemove",function(S){return i.onMouseMove(S)})("touchmove",function(S){return i.onMouseMove(S)})},inputs:{duration:"duration"},outputs:{longClick:"longClick",shortClick:"shortClick"}})}return e})();var lr=(e,n)=>({"accessory-on":e,purifying:n});function cr(e,n){if(e&1&&(o(0,"div",18),d(1),s()),e&2){let t=u(2);r(),C("",t.service.values.RotationSpeed,"%")}}function dr(e,n){e&1&&(o(0,"div",18),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.on")))}function pr(e,n){if(e&1&&x(0,cr,2,1,"div",18)(1,dr,3,3,"div",18),e&2){let t=u();_("RotationSpeed"in t.service.values?0:1)}}function mr(e,n){e&1&&(o(0,"div",18),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.idle")))}function ur(e,n){e&1&&(o(0,"div",18),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.off")))}var Hi=(()=>{class e{$modal=F(X);hasTargetValidValues=!1;service;readyForControl=!1;ngOnInit(){"TargetAirPurifierState"in this.service.values&&(this.hasTargetValidValues=this.service.getCharacteristic("TargetAirPurifierState").validValues.length>0)}onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On),"RotationSpeed"in this.service.values&&!this.service.values.On&&!this.service.values.Active&&!this.service.values.RotationSpeed&&(this.service.values.RotationSpeed=this.service.getCharacteristic("RotationSpeed").maxValue))}onLongClick(){if(this.readyForControl&&(this.hasTargetValidValues||"RotationSpeed"in this.service.values)){let t=this.$modal.open(Fi,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-air-purifier"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:23,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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-line"],["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-line","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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(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),s()(),H(),o(18,"div",17),d(19),s(),x(20,pr,2,1)(21,mr,3,3,"div",18)(22,ur,3,3,"div",18),s()()),a&2&&(f("ngClass",D(6,lr,i.service.values.Active&&!("CurrentAirPurifierState"in i.service.values)||i.service.values.Active&&"CurrentAirPurifierState"in i.service.values&&i.service.values.CurrentAirPurifierState!==0||i.service.values.On,i.service.values.Active&&!("CurrentAirPurifierState"in i.service.values)||i.service.values.Active&&"CurrentAirPurifierState"in i.service.values&&i.service.values.CurrentAirPurifierState===2||i.service.values.On)),r(2),b("aria-label",c(3,4,"accessories.core.air_purifier")),r(17),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.Active&&!("CurrentAirPurifierState"in i.service.values)||i.service.values.Active&&"CurrentAirPurifierState"in i.service.values&&i.service.values.CurrentAirPurifierState===2||i.service.values.On?20:i.service.values.Active&&!("CurrentAirPurifierState"in i.service.values)||i.service.values.Active&&"CurrentAirPurifierState"in i.service.values&&i.service.values.CurrentAirPurifierState===1||i.service.values.On?21:22))},dependencies:[$,B,T],styles:[".purifying svg .air-line{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 fr=()=>[3,4],vr=()=>[1,2],gr=(e,n,t,a)=>({"accessory-on":e,"fill-red":n,"fill-orange":t,"fill-green":a}),hr=(e,n)=>({"grey-text":e,"red-text":n}),Li=(()=>{class e{service;labels=["Unknown","Excellent","Good","Fair","Inferior","Poor"];static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-air-quality-sensor"]],inputs:{service:"service"},decls:25,vars:17,consts:[[1,"accessory-box",3,"ngClass"],[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",3,"ngClass"]],template:function(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4),o(6,"g",5),m(7,"path",6),s(),m(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),s()(),H(),o(21,"div",20),d(22),s(),o(23,"div",21),d(24),s()()()),a&2&&(f("ngClass",at(9,gr,i.service.values.AirQuality===5,i.service.values.AirQuality===5,fe(7,fr).includes(i.service.values.AirQuality),fe(8,vr).includes(i.service.values.AirQuality))),r(2),b("aria-label",c(3,5,"accessories.core.air_quality_sensor")),r(20),g(i.service.customName||i.service.serviceName),r(),f("ngClass",D(14,hr,i.service.values.AirQuality<5,i.service.values.AirQuality===5)),r(),C(" ",i.labels[i.service.values.AirQuality||0]," "))},dependencies:[B,T],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 Cr=e=>({"accessory-on":e});function xr(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.battery_notcharging")," ")}function _r(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.battery_charging")," ")}function yr(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.battery_notchargeable")," ")}function kr(e,n){e&1&&(o(0,"span",10),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.battery_low")))}function Sr(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.battery_charged")," ")}var Oi=(()=>{class e{service;Math=Math;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-battery"]],inputs:{service:"service"},decls:18,vars:12,consts:[[1,"accessory-box",3,"ngClass"],[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(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4)(6,"rect",5)(7,"rect",6),o(8,"text",7),d(9),s()()(),H(),o(10,"div",8),d(11),s(),o(12,"div",9),x(13,xr,2,3)(14,_r,2,3)(15,yr,2,3)(16,kr,3,3,"span",10)(17,Sr,2,3),s()()()),a&2&&(f("ngClass",U(10,Cr,i.service.values.ChargingState===1)),r(2),b("aria-label",c(3,8,"accessories.core.battery")),r(3),b("width",i.Math.round(29/100*(i.service.values.BatteryLevel||0)))("fill",i.service.values.ChargingState===1?"#4caf50":i.service.values.StatusLowBattery===1?"#e69533":"#808080")("fill-opacity",i.service.values.ChargingState===1||i.service.values.StatusLowBattery===1?"0.5":"1"),r(4),C(" ",i.service.values.BatteryLevel||0,"% "),r(2),g(i.service.customName||i.service.serviceName),r(2),_(i.service.values.ChargingState===0?13:i.service.values.ChargingState===1?14:i.service.values.ChargingState===2?15:i.service.values.StatusLowBattery===1||i.service.values.BatteryLevel===0?16:17))},dependencies:[B,T],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})();var br=e=>({"accessory-on":e});function wr(e,n){e&1&&(o(0,"div",16),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.detected")))}function Tr(e,n){e&1&&(o(0,"div",17),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.not_detected")))}var Ni=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-carbon-dioxide-sensor"]],inputs:{service:"service"},decls:21,vars:8,consts:[[1,"accessory-box",3,"ngClass"],[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(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4),o(6,"text",5),d(7," CO2 "),s(),m(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),s()(),H(),o(17,"div",15),d(18),s(),x(19,wr,3,3,"div",16)(20,Tr,3,3,"div",17),s()()),a&2&&(f("ngClass",U(6,br,i.service.values.CarbonDioxideDetected)),r(2),b("aria-label",c(3,4,"accessories.core.carbon_dioxide_sensor")),r(16),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.CarbonDioxideDetected?19:20))},dependencies:[B,T],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 Mr=e=>({"accessory-on":e});function Er(e,n){e&1&&(o(0,"div",16),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.detected")))}function Vr(e,n){e&1&&(o(0,"div",17),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.not_detected")))}var Ri=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-carbon-monoxide-sensor"]],inputs:{service:"service"},decls:21,vars:8,consts:[[1,"accessory-box",3,"ngClass"],[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(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4),o(6,"text",5),d(7," CO "),s(),m(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),s()(),H(),o(17,"div",15),d(18),s(),x(19,Er,3,3,"div",16)(20,Vr,3,3,"div",17),s()()),a&2&&(f("ngClass",U(6,Mr,i.service.values.CarbonMonoxideDetected)),r(2),b("aria-label",c(3,4,"accessories.core.carbon_monoxide_sensor")),r(16),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.CarbonMonoxideDetected?19:20))},dependencies:[B,T],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 Br=e=>({"accessory-on":e});function Dr(e,n){e&1&&(o(0,"div",9),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.open")))}function Ar(e,n){e&1&&(o(0,"div",10),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.closed")))}var Wi=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-contact-sensor"]],inputs:{service:"service"},decls:13,vars:8,consts:[[1,"accessory-box",3,"ngClass"],[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(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7),s()(),H(),o(9,"div",8),d(10),s(),x(11,Dr,3,3,"div",9)(12,Ar,3,3,"div",10),s()()),a&2&&(f("ngClass",U(6,Br,i.service.values.ContactSensorState)),r(2),b("aria-label",c(3,4,"accessories.core.contact_sensor")),r(8),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.ContactSensorState?11:12))},dependencies:[B,T],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 Ir(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.closed")," ")}function Pr(e,n){if(e&1&&(d(0),l(1,"translate")),e&2){let t=u(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function Fr(e,n){if(e&1&&x(0,Ir,2,3)(1,Pr,2,4),e&2){let t=u();_(t.service.values.CurrentPosition===0?0:1)}}function Hr(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.opening"),"... ")}function Lr(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.closing"),"... ")}var ji=(()=>{class e{$activeModal=F(Y);service;targetMode;targetPositionChanged=new ee;targetPosition;constructor(){this.targetPositionChanged.pipe(te(500)).subscribe(()=>{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)})}ngOnInit(){this.targetMode=this.service.values.On,this.loadTargetPosition()}onTargetPositionChange(){this.targetPositionChanged.next(this.targetPosition.value)}dismissModal(){this.$activeModal.dismiss("Dismiss")}loadTargetPosition(){let t=this.service.getCharacteristic("TargetPosition");t&&(this.targetPosition={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(i=>{i.style.background="linear-gradient(to right, #242424, #ffd6aa)"})},10))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},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(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5)(7,"div",6),x(8,Fr,2,1)(9,Hr,2,3)(10,Lr,2,3),s()(),o(11,"h6",7),d(12),l(13,"translate"),s(),o(14,"nouislider",8),q("ngModelChange",function(S){return z(i.targetPosition.value,S)||(i.targetPosition.value=S),S}),y("ngModelChange",function(){return i.onTargetPositionChange()}),s(),o(15,"div",9)(16,"span",10),d(17),l(18,"translate"),s(),o(19,"span",10),d(20),l(21,"translate"),s()(),o(22,"h6",7),d(23),l(24,"translate"),s(),o(25,"nouislider",11),q("ngModelChange",function(S){return z(i.service.getCharacteristic("CurrentPosition").value,S)||(i.service.getCharacteristic("CurrentPosition").value=S),S}),s(),o(26,"div",9)(27,"span",10),d(28),l(29,"translate"),s(),o(30,"span",10),d(31),l(32,"translate"),s()()(),m(33,"div",12),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,20,"form.button_close")),r(5),_(i.service.values.PositionState===2?8:i.service.values.PositionState===1?9:i.service.values.PositionState===0?10:-1),r(4),N("",c(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),r(2),f("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),G("ngModel",i.targetPosition.value),r(3),g(c(18,24,"accessories.control.closed")),r(3),g(c(21,26,"accessories.control.open")),r(3),N(" ",c(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),r(2),f("min",0)("max",100)("step",1)("disabled",!0),G("ngModel",i.service.getCharacteristic("CurrentPosition").value),r(3),g(c(29,30,"accessories.control.closed")),r(3),g(c(32,32,"accessories.control.open")))},dependencies:[ae,Q,oe,re,T],encapsulation:2})}return e})();var Or=e=>({"accessory-on":e});function Nr(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.closed")," ")}function Rr(e,n){if(e&1&&(d(0),l(1,"translate")),e&2){let t=u(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.values.CurrentPosition,"% ")}}function Wr(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.open")," ")}function jr(e,n){if(e&1&&(o(0,"div",11),x(1,Nr,2,3),x(2,Rr,2,4),x(3,Wr,2,3),s()),e&2){let t=u();r(),_(t.service.values.CurrentPosition===0?1:-1),r(),_(t.service.values.CurrentPosition>0&&t.service.values.CurrentPosition<100?2:-1),r(),_(t.service.values.CurrentPosition===100?3:-1)}}function Ur(e,n){e&1&&(o(0,"div",12),d(1),l(2,"translate"),s()),e&2&&(r(),C("",c(2,1,"accessories.control.opening"),"..."))}function $r(e,n){e&1&&(o(0,"div",12),d(1),l(2,"translate"),s()),e&2&&(r(),C("",c(2,1,"accessories.control.closing"),"..."))}var Ui=(()=>{class e{$modal=F(X);service;readyForControl=!1;onClick(){this.readyForControl&&(this.service.values.TargetPosition?this.service.getCharacteristic("TargetPosition").setValue(0):this.service.getCharacteristic("TargetPosition").setValue(100))}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(ji,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-door"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:16,vars:8,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"line",8)(10,"rect",9),s()(),H(),o(11,"div",10),d(12),s(),x(13,jr,4,3,"div",11)(14,Ur,3,3,"div",12)(15,$r,3,3,"div",12),s()()),a&2&&(f("ngClass",U(6,Or,i.service.values.CurrentPosition)),r(2),b("aria-label",c(3,4,"accessories.core.door")),r(10),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.PositionState===2?13:i.service.values.PositionState===1?14:i.service.values.PositionState===0?15:-1))},dependencies:[$,B,T],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 je=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Gr(e,n){if(e&1){let t=O();o(0,"div",5),l(1,"translate"),o(2,"button",7),y("click",function(i){M(t);let p=u();return E(p.setActive(0,i))}),o(3,"div",8),m(4,"i",9),s(),d(5),l(6,"translate"),o(7,"div",10),m(8,"i",11),s()(),o(9,"button",7),y("click",function(i){M(t);let p=u();return E(p.setActive(1,i))}),o(10,"div",8),m(11,"i",9),s(),d(12),l(13,"translate"),o(14,"div",10),m(15,"i",11),s()()()}if(e&2){let t=u();b("aria-label",c(1,5,"accessories.control.mode_control")),r(4),f("ngClass",D(11,je,t.service.values.Active===0,t.service.values.Active!==0)),r(),C(" ",c(6,7,"accessories.control.off")," "),r(6),f("ngClass",D(14,je,t.service.values.Active===1,t.service.values.Active!==1)),r(),C(" ",c(13,9,"accessories.control.on")," ")}}function zr(e,n){if(e&1){let t=O();o(0,"div",5),l(1,"translate"),o(2,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetState(0,i))}),o(3,"div",8),m(4,"i",9),s(),d(5),l(6,"translate"),o(7,"div",10),m(8,"i",11),s()(),o(9,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetState(1,i))}),o(10,"div",8),m(11,"i",9),s(),d(12),l(13,"translate"),o(14,"div",10),m(15,"i",11),s()(),o(16,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetState(2,i))}),o(17,"div",8),m(18,"i",9),s(),d(19),l(20,"translate"),o(21,"div",10),m(22,"i",11),s()()()}if(e&2){let t=u();b("aria-label",c(1,7,"accessories.control.media_control")),r(4),f("ngClass",D(15,je,t.service.values.CurrentMediaState===0,t.service.values.CurrentMediaState!==0)),r(),C(" ",c(6,9,"accessories.control.play")," "),r(6),f("ngClass",D(18,je,t.service.values.CurrentMediaState===1,t.service.values.CurrentMediaState!==1)),r(),C(" ",c(13,11,"accessories.control.pause")," "),r(6),f("ngClass",D(21,je,t.service.values.CurrentMediaState===2,t.service.values.CurrentMediaState!==2)),r(),C(" ",c(20,13,"accessories.control.stop")," ")}}function qr(e,n){if(e&1){let t=O();o(0,"h6"),d(1),l(2,"translate"),s(),o(3,"div",12),l(4,"translate"),o(5,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(!1,i))}),o(6,"div",8),m(7,"i",9),s(),d(8),l(9,"translate"),o(10,"div",10),m(11,"i",11),s()(),o(12,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(!0,i))}),o(13,"div",8),m(14,"i",9),s(),d(15),l(16,"translate"),o(17,"div",10),m(18,"i",11),s()()()}if(e&2){let t=u();r(),C(" ",c(2,6,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),r(2),b("aria-label",c(4,8,"accessories.control.mute_control")),r(4),f("ngClass",D(14,je,!t.targetMode,t.targetMode)),r(),C(" ",c(9,10,"accessories.control.not_mute")," "),r(6),f("ngClass",D(17,je,t.targetMode,!t.targetMode)),r(),C(" ",c(16,12,"accessories.control.mute")," ")}}function Zr(e,n){if(e&1){let t=O();o(0,"h6",13),d(1),l(2,"translate"),s(),o(3,"nouislider",14),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetVolume.value,i)||(p.targetVolume.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onVolumeStateChange())}),s()}if(e&2){let t=u();r(),N("",c(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),r(2),f("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),G("ngModel",t.targetVolume.value)}}var $i=(()=>{class e{$activeModal=F(Y);service;targetMode;targetVolume;targetVolumeChanged=new ee;constructor(){this.targetVolumeChanged.pipe(te(500)).subscribe(()=>{this.service.getCharacteristic("Volume").setValue(this.targetVolume.value)})}ngOnInit(){this.targetMode=this.service.values.Mute,this.loadTargetVolume()}setTargetMode(t,a){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),a.target.blur()}setActive(t,a){this.service.getCharacteristic("Active").setValue(t),a.target.blur()}setTargetState(t,a){this.service.getCharacteristic("TargetMediaState").setValue(t),a.target.blur()}onVolumeStateChange(){this.targetVolumeChanged.next(this.targetVolume.value)}dismissModal(){this.$activeModal.dismiss("Dismiss")}loadTargetVolume(){let t=this.service.getCharacteristic("Volume");t&&(this.targetVolume={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(i=>{i.style.background="linear-gradient(to right, #ffffff, #ffd966, #ff0000)"})},10))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","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(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4),x(6,Gr,16,17,"div",5)(7,zr,23,24,"div",5),x(8,qr,19,20),x(9,Zr,4,8),s(),m(10,"div",6),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,5,"form.button_close")),r(3),_("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),r(2),_("Mute"in i.service.values?8:-1),r(),_(i.targetVolume?9:-1))},dependencies:[Q,oe,re,ae,B,T],encapsulation:2})}return e})();var Kr=()=>[0,1],Gi=()=>["Speaker","SmartSpeaker"],Qr=(e,n)=>({"accessory-on":e,paused:n});function Yr(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.play")," ")}function Xr(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.pause")," ")}function Jr(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.stop")," ")}function ea(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" \xB7 ",c(1,1,"accessories.control.mute")," ")}function ta(e,n){if(e&1&&d(0),e&2){let t=u(3);C(" \xB7 ",t.service.values.Volume,"% ")}}function ia(e,n){if(e&1&&x(0,ta,1,1),e&2){let t=u(2);_("Volume"in t.service.values?0:-1)}}function na(e,n){if(e&1&&(o(0,"div",7),x(1,Yr,2,3)(2,Xr,2,3)(3,Jr,2,3),x(4,ea,2,3)(5,ia,1,1),s()),e&2){let t,a=u();r(),_((t=a.service.values.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),r(3),_("Mute"in a.service.values&&a.service.values.Mute?4:5)}}function oa(e,n){e&1&&(m(0,"div",8),l(1,"translate")),e&2&&f("innerText",c(1,1,"accessories.control.off"))}function ra(e,n){e&1&&(m(0,"div",8),l(1,"translate")),e&2&&f("innerText",c(1,1,"accessories.control.mute"))}function aa(e,n){if(e&1&&(o(0,"div",7),d(1),s()),e&2){let t=u();r(),C("",t.service.values.Volume,"%")}}function sa(e,n){e&1&&(o(0,"div",7),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.on")))}function la(e,n){e&1&&(o(0,"div",7),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.core.doorbell")))}var zi=(()=>{class e{$modal=F(X);service;readyForControl=!1;onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active===0?1:0):"TargetMediaState"in this.service.values?this.service.getCharacteristic("TargetMediaState").setValue(this.service.values.TargetMediaState===0?1:0):"Mute"in this.service.values&&this.service.getCharacteristic("Mute").setValue(!this.service.values.Mute))}onLongClick(){if(this.readyForControl&&("Active"in this.service.values||"TargetMediaState"in this.service.values||"Volume"in this.service.values||"Mute"in this.service.values)){let t=this.$modal.open($i,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-doorbell"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:15,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4)(6,"circle",5),s()(),H(),o(7,"div",6),d(8),s(),x(9,na,6,2,"div",7)(10,oa,2,3,"div",8)(11,ra,2,3,"div",8)(12,aa,2,1,"div",7)(13,sa,3,3,"div",7)(14,la,3,3,"div",7),s()()),a&2&&(f("ngClass",D(8,Qr,"Active"in i.service.values?i.service.values.Active:"CurrentMediaState"in i.service.values?fe(6,Kr).includes(i.service.values.CurrentMediaState):fe(7,Gi).includes(i.service.customType||i.service.type)?"Mute"in i.service.values&&!i.service.values.Mute:!1,"CurrentMediaState"in i.service.values&&i.service.values.CurrentMediaState===1)),r(2),b("aria-label",c(3,4,"accessories.core.doorbell")),r(6),g(i.service.customName||i.service.serviceName),r(),_("CurrentMediaState"in i.service.values?9:"Active"in i.service.values&&!i.service.values.Active?10:"Mute"in i.service.values&&i.service.values.Mute?11:"Volume"in i.service.values?12:fe(11,Gi).includes(i.service.customType||i.service.type)?13:14))},dependencies:[$,B,T],encapsulation:2})}return e})();var pt=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function ca(e,n){if(e&1){let t=O();o(0,"h6",12),d(1),l(2,"translate"),s(),o(3,"div",13),l(4,"translate"),o(5,"button",6),y("click",function(i){M(t);let p=u();return E(p.setRotationDirection(0,i))}),o(6,"div",7),m(7,"i",8),s(),d(8),l(9,"translate"),o(10,"div",9),m(11,"i",10),s()(),o(12,"button",6),y("click",function(i){M(t);let p=u();return E(p.setRotationDirection(1,i))}),o(13,"div",7),m(14,"i",8),s(),d(15),l(16,"translate"),o(17,"div",9),m(18,"i",10),s()()()}if(e&2){let t=u();r(),g(c(2,6,"accessories.control.rotation_direction")),r(2),b("aria-label",c(4,8,"accessories.control.direction_control")),r(4),f("ngClass",D(14,pt,t.service.values.RotationDirection===0,t.service.values.RotationDirection!==0)),r(),C(" ",c(9,10,"accessories.control.rotation_clockwise")," "),r(6),f("ngClass",D(17,pt,t.service.values.RotationDirection===1,t.service.values.RotationDirection!==1)),r(),C(" ",c(16,12,"accessories.control.rotation_c_clockwise")," ")}}function da(e,n){e&1&&d(0,"%")}function pa(e,n){if(e&1){let t=O();o(0,"h6",12),d(1),l(2,"translate"),x(3,da,1,0),s(),o(4,"nouislider",14),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetRotationSpeed.value,i)||(p.targetRotationSpeed.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onTargetRotationSpeedChange())}),s()}if(e&2){let t=u();r(),N(" ",c(2,7,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value),r(2),_(t.targetRotationSpeed.unit==="percentage"?3:-1),r(),f("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),G("ngModel",t.targetRotationSpeed.value)}}var qi=(()=>{class e{$activeModal=F(Y);service;targetMode;targetRotationSpeed;targetRotationSpeedChanged=new ee;hasRotationDirection=!1;constructor(){this.targetRotationSpeedChanged.pipe(te(500)).subscribe(()=>{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))})}ngOnInit(){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)}setTargetMode(t,a){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),a.target.blur()}onTargetRotationSpeedChange(){this.targetRotationSpeedChanged.next(this.targetRotationSpeed.value)}setRotationDirection(t,a){this.service.getCharacteristic("RotationDirection").setValue(t),a.target.blur()}dismissModal(){this.$activeModal.dismiss("Dismiss")}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},setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(i=>{i.style.background="linear-gradient(to right, #add8e6, #416bdf)"})},10))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:25,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","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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","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(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5),l(7,"translate"),o(8,"button",6),y("click",function(S){return i.setTargetMode(!1,S)}),o(9,"div",7),m(10,"i",8),s(),d(11),l(12,"translate"),o(13,"div",9),m(14,"i",10),s()(),o(15,"button",6),y("click",function(S){return i.setTargetMode(!0,S)}),o(16,"div",7),m(17,"i",8),s(),d(18),l(19,"translate"),o(20,"div",9),m(21,"i",10),s()()(),x(22,ca,19,20),x(23,pa,5,9),s(),m(24,"div",11),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,9,"form.button_close")),r(3),b("aria-label",c(7,11,"accessories.control.mode_control")),r(4),f("ngClass",D(17,pt,!i.targetMode,i.targetMode)),r(),C(" ",c(12,13,"accessories.control.off")," "),r(6),f("ngClass",D(20,pt,i.targetMode,!i.targetMode)),r(),C(" ",c(19,15,"accessories.control.on")," "),r(4),_(i.hasRotationDirection?22:-1),r(),_(i.targetRotationSpeed?23:-1))},dependencies:[Q,oe,re,ae,B,T],encapsulation:2})}return e})();var ma=e=>({"accessory-on":e}),ua=(e,n)=>({spin:e,"spin-counter":n});function fa(e,n){if(e&1&&(o(0,"div",8),d(1),s()),e&2){let t=u();r(),N("",t.service.values.RotationSpeed,"",t.rotationSpeedUnit)}}function va(e,n){if(e&1&&(m(0,"div",9),l(1,"translate")),e&2){let t=u();f("innerText",c(1,1,t.service.values.On||t.service.values.Active?"accessories.control.on":"accessories.control.off"))}}var Zi=(()=>{class e{$modal=F(X);service;readyForControl=!1;rotationSpeedUnit="";hasRotationDirection=!1;ngOnInit(){"RotationSpeed"in this.service.values&&this.service.serviceCharacteristics.find(a=>a.type==="RotationSpeed").unit==="percentage"&&(this.rotationSpeedUnit="%"),"RotationDirection"in this.service.values&&(this.hasRotationDirection=!0)}onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1),"RotationSpeed"in this.service.values&&!this.service.values.On&&!this.service.values.RotationSpeed&&(this.service.values.RotationSpeed=this.service.getCharacteristic("RotationSpeed").maxValue))}onLongClick(){if(this.readyForControl&&("RotationSpeed"in this.service.values||"RotationDirection"in this.service.values)){let t=this.$modal.open(qi,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-fan"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:12,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg",3,"ngClass"],["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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3)(5,"g",4),m(6,"path",5),s(),m(7,"circle",6),s()(),H(),o(8,"div",7),d(9),s(),x(10,fa,2,2,"div",8)(11,va,2,3,"div",9),s()()),a&2&&(f("ngClass",U(7,ma,i.service.values.On||i.service.values.Active)),r(2),f("ngClass",D(9,ua,(i.service.values.On||i.service.values.Active)&&(!i.hasRotationDirection||i.hasRotationDirection&&i.service.values.RotationDirection===0),(i.service.values.On||i.service.values.Active)&&i.hasRotationDirection&&i.service.values.RotationDirection===1)),b("aria-label",c(3,5,"accessories.core.fan")),r(7),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.On&&i.service.values.RotationSpeed?10:11))},dependencies:[$,B,T],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 Ki=(()=>{class e{$activeModal=F(Y);service;targetMode;ngOnInit(){setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(a=>{a.style.background="linear-gradient(to right, #8B4513, #4169E1)"})},10)}resetFilterLife(t){this.service.getCharacteristic("ResetFilterIndication").setValue(1),t.target.blur()}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:16,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mb-4"],[3,"ngModelChange","min","max","step","disabled","ngModel"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mt-5","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"modal-footer"]],template:function(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"h6",5),d(7),l(8,"translate"),s(),o(9,"nouislider",6),q("ngModelChange",function(S){return z(i.service.values.FilterLifeLevel,S)||(i.service.values.FilterLifeLevel=S),S}),s(),o(10,"div",7),l(11,"translate"),o(12,"button",8),y("click",function(S){return i.resetFilterLife(S)}),d(13),l(14,"translate"),s()()(),m(15,"div",9),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,11,"form.button_close")),r(4),N("",c(8,13,"accessories.control.filter_level"),": ",i.service.values.FilterLifeLevel,"%"),r(2),f("min",0)("max",100)("step",1)("disabled",!0),G("ngModel",i.service.values.FilterLifeLevel),r(),b("aria-label",c(11,15,"accessories.core.filter_maintenance")),r(3),C(" ",c(14,17,"form.button_reset")," "))},dependencies:[Q,oe,re,ae,T],encapsulation:2})}return e})();var ga=(e,n)=>({replace:e,dirty:n}),ha=e=>({"red-text":e});function Ca(e,n){e&1&&(d(0," \xB7 "),o(1,"span",28),d(2),l(3,"translate"),s()),e&2&&(r(2),g(c(3,1,"accessories.control.replace")))}var Qi=(()=>{class e{$modal=F(X);service;readyForControl=!1;onClick(){if(!this.readyForControl)return;let t=this.$modal.open(Ki,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-filter-maintenance"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:32,vars:13,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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"],[3,"ngClass"],[1,"red-text"]],template:function(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(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),s()(),H(),o(26,"div",25),d(27),s(),o(28,"div",26)(29,"span",27),d(30),s(),x(31,Ca,4,3),s()()()),a&2&&(f("ngClass",D(8,ga,i.service.values.FilterChangeIndication===1||i.service.values.FilterLifeLevel<10,i.service.values.FilterChangeIndication!==1&&i.service.values.FilterLifeLevel<50)),r(2),b("aria-label",c(3,6,"accessories.core.filter_maintenance")),r(25),g(i.service.customName||i.service.serviceName),r(2),f("ngClass",U(11,ha,i.service.values.FilterChangeIndication===1)),r(),C(" ",i.service.values.FilterLifeLevel,"% "),r(),_(i.service.values.FilterChangeIndication===1?31:-1))},dependencies:[B,$,T],styles:[".dirty svg .status{fill:#ff9800!important} .replace svg .status{fill:#d32f2f!important} body.dark-mode svg .back{fill:#2b2b2b!important}"]})}return e})();var xa=()=>[0,2,3,4],_a=(e,n,t,a,i,p,S)=>({"accessory-on":e,opening:n,open:t,closing:a,closed:i,stopped:p,obstructed:S});function ya(e,n){e&1&&(o(0,"div",30),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.obstructed")))}function ka(e,n){e&1&&(o(0,"div",30),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.open")))}function Sa(e,n){e&1&&(o(0,"div",31),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.closed")))}function ba(e,n){e&1&&(o(0,"div",30),d(1),l(2,"translate"),s()),e&2&&(r(),C("",c(2,1,"accessories.control.opening"),"..."))}function wa(e,n){e&1&&(o(0,"div",30),d(1),l(2,"translate"),s()),e&2&&(r(),C("",c(2,1,"accessories.control.closing"),"..."))}function Ta(e,n){e&1&&(o(0,"div",30),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.stopped")))}function Ma(e,n){if(e&1&&x(0,ka,3,3,"div",30)(1,Sa,3,3,"div",31)(2,ba,3,3,"div",30)(3,wa,3,3,"div",30)(4,Ta,3,3,"div",30),e&2){let t,a=u();_((t=a.service.values.CurrentDoorState)===0?0:t===1?1:t===2?2:t===3?3:t===4?4:-1)}}function Ea(e,n){e&1&&(o(0,"div",30),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.open")))}function Va(e,n){e&1&&(o(0,"div",31),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.closed")))}function Ba(e,n){if(e&1&&x(0,Ea,3,3,"div",30)(1,Va,3,3,"div",31),e&2){let t=u();_(t.service.values.On||t.service.values.Active?0:1)}}var Yi=(()=>{class e{service;readyForControl=!1;onClick(){this.readyForControl&&("TargetDoorState"in this.service.values?this.service.getCharacteristic("TargetDoorState").setValue(this.service.values.TargetDoorState?0:1):"On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(!this.service.values.Active))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-garage-door-opener"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:35,vars:15,consts:[["tabindex","0",1,"accessory-box",3,"shortClick","ngClass"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","15.5","cy","10.25","r","3","stroke","#7f7f7f","stroke-width","0.5","fill","#1976d2","fill-opacity","0.5",1,"window"],["x1","1","y1","12","x2","15","y2","1","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","31","y1","12","x2","16","y2","1","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["cx","15.5","cy","1.3","r","0.5","stroke","#7f7f7f","stroke-width","1.5"],["x1","3","y1","11","x2","3","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","29","y1","11","x2","29","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","3","y1","31","x2","6","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","26","y1","31","x2","29","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","6","y1","17","x2","6","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap",""],["x1","26","y1","17","x2","26","y2","31","stroke","#7f7f7f","stroke-width","1.5"],["x1","5.25","y1","17","x2","26.75","y2","17","stroke","#7f7f7f","stroke-width","1"],["x1","6.75","y1","18","x2","25.25","y2","18","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line1"],["x1","5.25","y1","19","x2","26.75","y2","19","stroke","#7f7f7f","stroke-width","1",1,"line","line2"],["x1","6.75","y1","20","x2","25.25","y2","20","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line3"],["x1","5.25","y1","21","x2","26.75","y2","21","stroke","#7f7f7f","stroke-width","1",1,"line","line4"],["x1","6.75","y1","22","x2","25.25","y2","22","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line5"],["x1","5.25","y1","23","x2","26.75","y2","23","stroke","#7f7f7f","stroke-width","1",1,"line","line6"],["x1","6.75","y1","24","x2","25.25","y2","24","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line7"],["x1","5.25","y1","25","x2","26.75","y2","25","stroke","#7f7f7f","stroke-width","1",1,"line","line8"],["x1","6.75","y1","26","x2","25.25","y2","26","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line9"],["x1","5.25","y1","27","x2","26.75","y2","27","stroke","#7f7f7f","stroke-width","1",1,"line","line10"],["x1","6.75","y1","28","x2","25.25","y2","28","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line11"],["x1","5.25","y1","29","x2","26.75","y2","29","stroke","#7f7f7f","stroke-width","1",1,"line","line12"],["x1","6.75","y1","30","x2","25.25","y2","30","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line13"],["x1","5.25","y1","31","x2","26.75","y2","31","stroke","#7f7f7f","stroke-width","1",1,"line","line14"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(a,i){a&1&&(o(0,"div",0),y("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(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),s()(),H(),o(30,"div",29),d(31),s(),x(32,ya,3,3,"div",30)(33,Ma,5,1)(34,Ba,2,1),s()()),a&2&&(f("ngClass",yi(7,_a,i.service.values.ObstructionDetected||fe(6,xa).includes(i.service.values.CurrentDoorState)||i.service.values.On||i.service.values.Active,i.service.values.CurrentDoorState===2&&!i.service.values.ObstructionDetected,i.service.values.CurrentDoorState===0&&!i.service.values.ObstructionDetected,i.service.values.CurrentDoorState===3&&!i.service.values.ObstructionDetected,i.service.values.CurrentDoorState===1&&!i.service.values.ObstructionDetected,i.service.values.CurrentDoorState===4&&!i.service.values.ObstructionDetected,i.service.values.ObstructionDetected)),r(2),b("aria-label",c(3,4,"accessories.core.garage_door_opener")),r(29),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.ObstructionDetected?32:"CurrentDoorState"in i.service.values?33:34))},dependencies:[$,B,T],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 Qe=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Da(e,n){if(e&1){let t=O();o(0,"button",8),y("click",function(i){M(t);let p=u(2);return E(p.setTargetMode(0,i))}),o(1,"div",9),m(2,"i",10),s(),d(3),l(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u(2);r(2),f("ngClass",D(4,Qe,t.targetMode===0,t.targetMode!==0)),r(),C(" ",c(4,2,"accessories.control.auto")," ")}}function Aa(e,n){if(e&1){let t=O();o(0,"button",8),y("click",function(i){M(t);let p=u(2);return E(p.setTargetMode(1,i))}),o(1,"div",9),m(2,"i",10),s(),d(3),l(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u(2);r(2),f("ngClass",D(4,Qe,t.targetMode===1,t.targetMode!==1)),r(),C(" ",c(4,2,"accessories.control.heat")," ")}}function Ia(e,n){if(e&1){let t=O();o(0,"button",8),y("click",function(i){M(t);let p=u(2);return E(p.setTargetMode(2,i))}),o(1,"div",9),m(2,"i",10),s(),d(3),l(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u(2);r(2),f("ngClass",D(4,Qe,t.targetMode===2,t.targetMode!==2)),r(),C(" ",c(4,2,"accessories.control.cool")," ")}}function Pa(e,n){if(e&1&&(o(0,"h6",14),d(1),l(2,"translate"),s(),o(3,"div",15),l(4,"translate"),x(5,Da,7,7,"button",16),x(6,Aa,7,7,"button",16),x(7,Ia,7,7,"button",16),s()),e&2){let t=u();r(),g(c(2,5,"accessories.control.mode")),r(2),b("aria-label",c(4,7,"accessories.control.mode_control")),r(2),_(t.targetStateValidValues.includes(0)?5:-1),r(),_(t.targetStateValidValues.includes(1)?6:-1),r(),_(t.targetStateValidValues.includes(2)?7:-1)}}function Fa(e,n){if(e&1){let t=O();o(0,"h6",17),d(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),l(6,"convertTemp"),l(7,"number"),l(8,"uppercase"),s(),o(9,"nouislider",18),q("ngModelChange",function(i){M(t);let p=u(2);return z(p.autoTemp,i)||(p.autoTemp=i),E(i)}),y("ngModelChange",function(){M(t);let i=u(2);return E(i.onAutoTemperatureStateChange())}),s()}if(e&2){let t=u(2);r(),ot(" ",c(2,9,"accessories.control.target_auto"),": ",ce(4,13,c(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",c(5,16,t.temperatureUnits)," - ",ce(7,20,c(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",c(8,23,t.temperatureUnits)," "),r(8),f("min",t.HeatingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),G("ngModel",t.autoTemp)}}function Ha(e,n){if(e&1){let t=O();o(0,"h6",14),d(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),s(),o(6,"nouislider",18),q("ngModelChange",function(i){M(t);let p=u(2);return z(p.targetHeatingTemp,i)||(p.targetHeatingTemp=i),E(i)}),y("ngModelChange",function(){M(t);let i=u(2);return E(i.onTemperatureStateChange())}),s()}if(e&2){let t=u(2);r(),He(" ",c(2,7,"accessories.control.target_auto"),": ",ce(4,11,c(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),r(5),f("min",t.HeatingThresholdTemperature.minValue)("max",t.HeatingThresholdTemperature.maxValue)("step",t.HeatingThresholdTemperature.minStep),G("ngModel",t.targetHeatingTemp)}}function La(e,n){if(e&1){let t=O();o(0,"h6",14),d(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),s(),o(6,"nouislider",18),q("ngModelChange",function(i){M(t);let p=u(2);return z(p.targetCoolingTemp,i)||(p.targetCoolingTemp=i),E(i)}),y("ngModelChange",function(){M(t);let i=u(2);return E(i.onTemperatureStateChange())}),s()}if(e&2){let t=u(2);r(),He(" ",c(2,7,"accessories.control.target_auto"),": ",ce(4,11,c(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),r(5),f("min",t.CoolingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),G("ngModel",t.targetCoolingTemp)}}function Oa(e,n){if(e&1&&x(0,Fa,10,25)(1,Ha,7,16)(2,La,7,16),e&2){let t=u();_(t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?0:t.HeatingThresholdTemperature&&!t.CoolingThresholdTemperature?1:!t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?2:-1)}}var Xi=(()=>{class e{$activeModal=F(Y);$settings=F(Ve);service;temperatureUnits=this.$settings.env.temperatureUnits;targetState;targetMode;targetTemperatureChanged=new ee;targetStateValidValues=[];CoolingThresholdTemperature;HeatingThresholdTemperature;targetCoolingTemp;targetHeatingTemp;autoTemp;constructor(){this.targetTemperatureChanged.pipe(te(500)).subscribe(()=>{this.HeatingThresholdTemperature&&this.service.getCharacteristic("HeatingThresholdTemperature").setValue(this.targetHeatingTemp),this.CoolingThresholdTemperature&&this.service.getCharacteristic("CoolingThresholdTemperature").setValue(this.targetCoolingTemp)})}ngOnInit(){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(),setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(a=>{a.style.background="linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))"})},10)}setTargetState(t,a){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetTemperature(),a.target.blur()}setTargetMode(t,a){this.targetMode=t,this.service.getCharacteristic("TargetHeaterCoolerState").setValue(this.targetMode),this.loadTargetTemperature(),a.target.blur()}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)}dismissModal(){this.$activeModal.dismiss("Dismiss")}loadTargetTemperature(){this.targetCoolingTemp=this.service.getCharacteristic("CoolingThresholdTemperature")?.value,this.targetHeatingTemp=this.service.getCharacteristic("HeatingThresholdTemperature")?.value,this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp]}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:31,vars:32,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-fw","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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","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(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"h6",5),m(7,"i",6),d(8),l(9,"convertTemp"),l(10,"number"),l(11,"uppercase"),s(),o(12,"div",7),l(13,"translate"),o(14,"button",8),y("click",function(S){return i.setTargetState(0,S)}),o(15,"div",9),m(16,"i",10),s(),d(17),l(18,"translate"),o(19,"div",11),m(20,"i",12),s()(),o(21,"button",8),y("click",function(S){return i.setTargetState(1,S)}),o(22,"div",9),m(23,"i",10),s(),d(24),l(25,"translate"),o(26,"div",11),m(27,"i",12),s()()(),x(28,Pa,8,9),x(29,Oa,3,1),s(),m(30,"div",13),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,11,"form.button_close")),r(5),N("",ce(10,15,c(9,13,i.service.values.CurrentTemperature),"1.0-1"),"\xB0",c(11,18,i.temperatureUnits)," "),r(4),b("aria-label",c(13,20,"accessories.control.state_control")),r(4),f("ngClass",D(26,Qe,i.targetState===0,i.targetState!==0)),r(),C(" ",c(18,22,"accessories.control.off")," "),r(6),f("ngClass",D(29,Qe,i.targetState===1,i.targetState!==1)),r(),C(" ",c(25,24,"accessories.control.on")," "),r(4),_(i.targetStateValidValues.length?28:-1),r(),_(i.targetStateValidValues.includes(0)?29:-1))},dependencies:[B,Q,oe,re,ae,Ee,T,Ae,De],encapsulation:2})}return e})();var Na=e=>({"accessory-on":e});function Ra(e,n){if(e&1&&(A(),o(0,"text",23),d(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase"),s()),e&2){let t=u();r(),N(" ",ce(3,4,c(2,2,t.service.values.CurrentTemperature),"1.0-1"),"\xB0",c(4,7,t.temperatureUnits)," ")}}function Wa(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.off")," ")}function ja(e,n){if(e&1&&(m(0,"i",26),d(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase"),l(5,"convertTemp"),l(6,"number"),l(7,"uppercase")),e&2){let t=u(2);r(),Ci(" ",ce(3,6,c(2,4,t.service.values.HeatingThresholdTemperature),"1.0-1"),"\xB0",c(4,9,t.temperatureUnits)," - ",ce(6,13,c(5,11,t.service.values.CoolingThresholdTemperature),"1.0-1"),"\xB0",c(7,16,t.temperatureUnits)," ")}}function Ua(e,n){if(e&1&&(m(0,"i",26),d(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase")),e&2){let t=u(2);r(),N(" ",ce(3,4,c(2,2,t.service.values.HeatingThresholdTemperature),"1.0-1"),"\xB0",c(4,7,t.temperatureUnits)," ")}}function $a(e,n){if(e&1&&(m(0,"i",26),d(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase")),e&2){let t=u(2);r(),N(" ",ce(3,4,c(2,2,t.service.values.CoolingThresholdTemperature),"1.0-1"),"\xB0",c(4,7,t.temperatureUnits)," ")}}function Ga(e,n){if(e&1&&x(0,ja,8,18)(1,Ua,5,9)(2,$a,5,9),e&2){let t=u();_(t.hasHeating&&t.hasCooling?0:t.hasHeating&&!t.hasCooling?1:!t.hasHeating&&t.hasCooling?2:-1)}}function za(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.heat")," ")}function qa(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.cool")," ")}function Za(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.on")," ")}var Ji=(()=>{class e{$modal=F(X);$settings=F(Ve);service;readyForControl=!1;type;temperatureUnits=this.$settings.env.temperatureUnits;hasHeating=!1;hasCooling=!1;ngOnInit(){this.hasHeating="HeatingThresholdTemperature"in this.service.values,this.hasCooling="CoolingThresholdTemperature"in this.service.values}onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On))}onLongClick(){if(this.readyForControl&&"TargetHeaterCoolerState"in this.service.values){let t=this.$modal.open(Xi,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-heater-cooler"]],inputs:{service:"service",readyForControl:"readyForControl",type:"type"},decls:36,vars:10,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),m(8,"animate",6),s(),o(9,"stop",7),m(10,"animate",8),s(),o(11,"stop",9),m(12,"animate",6),s()(),o(13,"linearGradient",10)(14,"stop",11),m(15,"animate",12),s(),o(16,"stop",13),m(17,"animate",14),s(),o(18,"stop",15),m(19,"animate",12),s()()(),m(20,"rect",16)(21,"line",17)(22,"line",18)(23,"line",19)(24,"line",20)(25,"line",21)(26,"rect",22),x(27,Ra,5,9,":svg:text",23),s()(),H(),o(28,"div",24),d(29),s(),o(30,"div",25),x(31,Wa,2,3)(32,Ga,3,1)(33,za,2,3)(34,qa,2,3)(35,Za,2,3),s()()()),a&2&&(f("ngClass",U(8,Na,i.service.values.Active||i.service.values.On)),r(2),b("aria-label",c(3,6,"accessories.core.heater_cooler")),r(24),b("fill",i.service.values.CurrentHeaterCoolerState===3&&i.service.values.Active===1||i.type==="cooler"&&(i.service.values.Active||i.service.values.On)?"url(#coolingGradient)":i.service.values.CurrentHeaterCoolerState===2&&i.service.values.Active===1||i.type==="heater"&&(i.service.values.Active||i.service.values.On)?"url(#heatingGradient)":i.service.values.Active||i.service.values.On?"#42d672":"#7b7b7b"),r(),_("CurrentTemperature"in i.service.values?27:-1),r(2),g(i.service.customName||i.service.serviceName),r(2),_("Active"in i.service.values&&!i.service.values.Active||"On"in i.service.values&&!i.service.values.On?31:i.service.values.TargetHeaterCoolerState===0&&(i.hasHeating||i.hasCooling)?32:i.service.values.TargetHeaterCoolerState===1?33:i.service.values.TargetHeaterCoolerState===2?34:35))},dependencies:[$,B,Ee,T,Ae,De],encapsulation:2})}return e})();var Ye=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Ka(e,n){if(e&1){let t=O();o(0,"button",8),y("click",function(i){M(t);let p=u(2);return E(p.setTargetMode(0,i))}),o(1,"div",9),m(2,"i",10),s(),d(3),l(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u(2);r(2),f("ngClass",D(4,Ye,t.targetMode===0,t.targetMode!==0)),r(),C(" ",c(4,2,"accessories.control.auto")," ")}}function Qa(e,n){if(e&1){let t=O();o(0,"button",8),y("click",function(i){M(t);let p=u(2);return E(p.setTargetMode(1,i))}),o(1,"div",9),m(2,"i",10),s(),d(3),l(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u(2);r(2),f("ngClass",D(4,Ye,t.targetMode===1,t.targetMode!==1)),r(),C(" ",c(4,2,"accessories.control.humidify")," ")}}function Ya(e,n){if(e&1){let t=O();o(0,"button",8),y("click",function(i){M(t);let p=u(2);return E(p.setTargetMode(2,i))}),o(1,"div",9),m(2,"i",10),s(),d(3),l(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u(2);r(2),f("ngClass",D(4,Ye,t.targetMode===2,t.targetMode!==2)),r(),C(" ",c(4,2,"accessories.control.dehumidify")," ")}}function Xa(e,n){if(e&1&&(o(0,"h6",14),d(1),l(2,"translate"),s(),o(3,"div",15),l(4,"translate"),x(5,Ka,7,7,"button",16),x(6,Qa,7,7,"button",16),x(7,Ya,7,7,"button",16),s()),e&2){let t=u();r(),g(c(2,5,"accessories.control.mode")),r(2),b("aria-label",c(4,7,"accessories.control.mode_control")),r(2),_(t.targetStateValidValues.includes(0)?5:-1),r(),_(t.targetStateValidValues.includes(1)?6:-1),r(),_(t.targetStateValidValues.includes(2)?7:-1)}}function Ja(e,n){if(e&1){let t=O();o(0,"h6",14),d(1),l(2,"translate"),s(),o(3,"nouislider",17),q("ngModelChange",function(i){M(t);let p=u(2);return z(p.autoHumidity,i)||(p.autoHumidity=i),E(i)}),y("ngModelChange",function(){M(t);let i=u(2);return E(i.onAutoHumidityStateChange())}),s()}if(e&2){let t=u(2);r(),He(" ",c(2,7,"accessories.control.target_auto"),": ",t.autoHumidity[0],"% - ",t.autoHumidity[1],"% "),r(2),f("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),G("ngModel",t.autoHumidity)}}function es(e,n){if(e&1){let t=O();o(0,"h6",14),d(1),l(2,"translate"),s(),o(3,"nouislider",17),q("ngModelChange",function(i){M(t);let p=u(2);return z(p.targetHumidifierHumidity,i)||(p.targetHumidifierHumidity=i),E(i)}),y("ngModelChange",function(){M(t);let i=u(2);return E(i.onHumidityStateChange())}),s()}if(e&2){let t=u(2);r(),N("",c(2,6,"accessories.control.target_auto"),": ",t.targetHumidifierHumidity,"%"),r(2),f("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityHumidifierThreshold.maxValue)("step",t.RelativeHumidityHumidifierThreshold.minStep),G("ngModel",t.targetHumidifierHumidity)}}function ts(e,n){if(e&1){let t=O();o(0,"h6",14),d(1),l(2,"translate"),s(),o(3,"nouislider",17),q("ngModelChange",function(i){M(t);let p=u(2);return z(p.targetDehumidifierHumidity,i)||(p.targetDehumidifierHumidity=i),E(i)}),y("ngModelChange",function(){M(t);let i=u(2);return E(i.onHumidityStateChange())}),s()}if(e&2){let t=u(2);r(),N("",c(2,6,"accessories.control.target_auto"),": ",t.targetDehumidifierHumidity,"%"),r(2),f("min",t.RelativeHumidityDehumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),G("ngModel",t.targetDehumidifierHumidity)}}function is(e,n){if(e&1&&x(0,Ja,4,9)(1,es,4,8)(2,ts,4,8),e&2){let t=u();_(t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?0:t.RelativeHumidityHumidifierThreshold&&!t.RelativeHumidityDehumidifierThreshold?1:!t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?2:-1)}}var en=(()=>{class e{$activeModal=F(Y);service;targetState;targetMode;targetHumidityChanged=new ee;targetStateValidValues=[];RelativeHumidityDehumidifierThreshold;RelativeHumidityHumidifierThreshold;targetDehumidifierHumidity;targetHumidifierHumidity;autoHumidity;constructor(){this.targetHumidityChanged.pipe(te(500)).subscribe(()=>{this.RelativeHumidityHumidifierThreshold&&this.service.getCharacteristic("RelativeHumidityHumidifierThreshold").setValue(this.targetHumidifierHumidity),this.RelativeHumidityDehumidifierThreshold&&this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold").setValue(this.targetDehumidifierHumidity)})}ngOnInit(){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(),setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(a=>{a.style.background="linear-gradient(to left, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))"})},10)}loadTargetHumidity(){this.targetDehumidifierHumidity=this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold")?.value,this.targetHumidifierHumidity=this.service.getCharacteristic("RelativeHumidityHumidifierThreshold")?.value,this.autoHumidity=[this.targetHumidifierHumidity,this.targetDehumidifierHumidity]}setTargetState(t,a){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetHumidity(),a.target.blur()}setTargetMode(t,a){this.targetMode=t,this.service.getCharacteristic("TargetHumidifierDehumidifierState").setValue(this.targetMode),this.loadTargetHumidity(),a.target.blur()}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)}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:28,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"],[1,"mt-2","mb-4","fs-4"],[1,"fas","fa-fw","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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","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(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"h6",5),m(7,"i",6),d(8),s(),o(9,"div",7),l(10,"translate"),o(11,"button",8),y("click",function(S){return i.setTargetState(0,S)}),o(12,"div",9),m(13,"i",10),s(),d(14),l(15,"translate"),o(16,"div",11),m(17,"i",12),s()(),o(18,"button",8),y("click",function(S){return i.setTargetState(1,S)}),o(19,"div",9),m(20,"i",10),s(),d(21),l(22,"translate"),o(23,"div",11),m(24,"i",12),s()()(),x(25,Xa,8,9),x(26,is,3,1),s(),m(27,"div",13),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,10,"form.button_close")),r(5),C("",i.service.values.CurrentRelativeHumidity,"% "),r(),b("aria-label",c(10,12,"accessories.control.state_control")),r(4),f("ngClass",D(18,Ye,i.targetState===0,i.targetState!==0)),r(),C(" ",c(15,14,"accessories.control.off")," "),r(6),f("ngClass",D(21,Ye,i.targetState===1,i.targetState!==1)),r(),C(" ",c(22,16,"accessories.control.on")," "),r(4),_(i.targetStateValidValues.length?25:-1),r(),_(i.targetStateValidValues.includes(0)?26:-1))},dependencies:[B,Q,oe,re,ae,T],encapsulation:2})}return e})();var ns=e=>({"accessory-on":e});function os(e,n){if(e&1&&(A(),o(0,"text",36),d(1),s()),e&2){let t=u();r(),C(" ",t.service.values.CurrentRelativeHumidity,"% ")}}function rs(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.off")," ")}function as(e,n){if(e&1&&(m(0,"i",39),d(1)),e&2){let t=u(2);r(),N(" ",t.service.values.RelativeHumidityHumidifierThreshold,"% - ",t.service.values.RelativeHumidityDehumidifierThreshold,"% ")}}function ss(e,n){if(e&1&&(m(0,"i",39),d(1)),e&2){let t=u(2);r(),C(" ",t.service.values.RelativeHumidityHumidifierThreshold,"% ")}}function ls(e,n){if(e&1&&(m(0,"i",39),d(1)),e&2){let t=u(2);r(),C(" ",t.service.values.RelativeHumidityDehumidifierThreshold,"% ")}}function cs(e,n){if(e&1&&x(0,as,2,2)(1,ss,2,1)(2,ls,2,1),e&2){let t=u();_(t.hasHumidifier&&t.hasDehumidifier?0:t.hasHumidifier&&!t.hasDehumidifier?1:!t.hasHumidifier&&t.hasDehumidifier?2:-1)}}function ds(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.humidify")," ")}function ps(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.dehumidify")," ")}function ms(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.on")," ")}function us(e,n){if(e&1&&x(0,ps,2,3)(1,ms,2,3),e&2){let t=u();_(t.service.values.TargetHumidifierDehumidifierState===2?0:1)}}var tn=(()=>{class e{$modal=F(X);service;readyForControl=!1;type;hasHumidifier=!1;hasDehumidifier=!1;ngOnInit(){this.hasHumidifier="RelativeHumidityHumidifierThreshold"in this.service.values,this.hasDehumidifier="RelativeHumidityDehumidifierThreshold"in this.service.values}onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On))}onLongClick(){if(this.readyForControl&&"TargetHumidifierDehumidifierState"in this.service.values){let t=this.$modal.open(en,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-humidifier-dehumidifier"]],inputs:{service:"service",readyForControl:"readyForControl",type:"type"},decls:48,vars:10,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),m(8,"animate",6),s(),o(9,"stop",7),m(10,"animate",8),s(),o(11,"stop",9),m(12,"animate",6),s()(),o(13,"linearGradient",10)(14,"stop",11),m(15,"animate",12),s(),o(16,"stop",13),m(17,"animate",14),s(),o(18,"stop",15),m(19,"animate",12),s()()(),m(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),x(40,os,2,1,":svg:text",36),s()(),H(),o(41,"div",37),d(42),s(),o(43,"div",38),x(44,rs,2,3)(45,cs,3,1)(46,ds,2,3)(47,us,2,1),s()()()),a&2&&(f("ngClass",U(8,ns,i.service.values.Active||i.service.values.On)),r(2),b("aria-label",c(3,6,"accessories.core.humidifier_dehumidifier")),r(37),b("fill",i.service.values.CurrentHumidifierDehumidifierState===2&&i.service.values.Active===1||i.type==="humidifier"&&(i.service.values.Active||i.service.values.On)?"url(#humidifyingGradient)":i.service.values.CurrentHumidifierDehumidifierState===3&&i.service.values.Active===1||i.type==="dehumidifier"&&(i.service.values.Active||i.service.values.On)?"url(#dehumidifyingGradient)":i.service.values.Active||i.service.values.On?"#42d672":"#7b7b7b"),r(),_("CurrentRelativeHumidity"in i.service.values?40:-1),r(2),g(i.service.customName||i.service.serviceName),r(2),_("Active"in i.service.values&&!i.service.values.Active||"On"in i.service.values&&!i.service.values.On?44:i.service.values.TargetHumidifierDehumidifierState===0&&(i.hasHumidifier||i.hasDehumidifier)?45:i.service.values.TargetHumidifierDehumidifierState===1?46:47))},dependencies:[$,B,T],encapsulation:2})}return e})();function fs(e,n){if(e&1&&d(0),e&2){let t=u();C(" ",t.service.values.CurrentRelativeHumidity,"% ")}}function vs(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.no_data")," ")}var nn=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-humidity-sensor"]],inputs:{service:"service"},decls:26,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["transform","translate(1.8, -4.3), scale(0.85)"],["d","M23.61 24.58C23.61 28.67 20.44 31.99 16.56 31.99C12.68 31.99 9.52 28.67 9.52 24.58C9.52 20.49 12.68 17.13 16.56 10.87C20.44 17.13 23.61 20.49 23.61 24.58Z","fill","#1976d2","fill-opacity","0.4","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(a,i){a&1&&(ve(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),ve(4,"svg",3),Me(5,"rect",4),ve(6,"g",5),Me(7,"path",6),Ce(),Me(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),Ce()(),H(),ve(21,"div",20),d(22),Ce(),ve(23,"div",21),x(24,fs,1,1)(25,vs,2,3),Ce()()()),a&2&&(r(2),b("aria-label",c(3,3,"accessories.core.humidity_sensor")),r(20),g(i.service.customName||i.service.serviceName),r(2),_("CurrentRelativeHumidity"in i.service.values?24:25))},dependencies:[T],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})();var gs=e=>({"accessory-on":e});function hs(e,n){e&1&&(o(0,"div",14),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.running")))}function Cs(e,n){e&1&&(o(0,"div",14),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.off")))}var on=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-irrigation-system"]],inputs:{service:"service"},decls:18,vars:8,consts:[[1,"accessory-box",3,"ngClass"],[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(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(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),s()(),H(),o(14,"div",13),d(15),s(),x(16,hs,3,3,"div",14)(17,Cs,3,3,"div",14),s()()),a&2&&(f("ngClass",U(6,gs,i.service.values.InUse)),r(2),b("aria-label",c(3,4,"accessories.core.irrigation_system")),r(13),C(" ",i.service.customName||i.service.values.ConfiguredName||i.service.serviceName," "),r(),_(i.service.values.InUse?16:17))},dependencies:[B,T],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})();var xs=e=>({"accessory-on":e});function _s(e,n){e&1&&(o(0,"div",23),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.detected")))}function ys(e,n){e&1&&(o(0,"div",24),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.not_detected")))}var rn=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-leak-sensor"]],inputs:{service:"service"},decls:28,vars:8,consts:[[1,"accessory-box",3,"ngClass"],[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(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4),o(6,"g",5),m(7,"path",6),s(),o(8,"g",7),m(9,"path",6),s(),m(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),s()(),H(),o(24,"div",22),d(25),s(),x(26,_s,3,3,"div",23)(27,ys,3,3,"div",24),s()()),a&2&&(f("ngClass",U(6,xs,i.service.values.LeakDetected)),r(2),b("aria-label",c(3,4,"accessories.core.leak_sensor")),r(23),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.LeakDetected?26:27))},dependencies:[B,T],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 ks(e,n){if(e&1&&(ve(0,"div",28),d(1),l(2,"number"),Ce()),e&2){let t=u();r(),C("",ce(2,1,t.service.values.CurrentAmbientLightLevel,"0.1-1")," lux")}}function Ss(e,n){if(e&1&&(ve(0,"div",28),d(1),l(2,"number"),Ce()),e&2){let t=u();r(),C("",ce(2,1,t.service.values.CurrentAmbientLightLevel,"1.0-0")," lux")}}var an=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-light-sensor"]],inputs:{service:"service"},decls:32,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["cx","16","cy","13.75","r","5","stroke","#ff9800","fill","none","stroke-width","1.2","stroke-opacity","0.5"],["x1","16","y1","3","x2","16","y2","7","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","23.5","y1","6","x2","20.5","y2","9","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","22.75","y1","13.5","x2","26.75","y2","13.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","20.75","y1","18.25","x2","23.75","y2","21.25","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","16","y1","20.5","x2","16","y2","24.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","11.25","y1","18.25","x2","8.25","y2","21.25","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","5.25","y1","13.5","x2","9.25","y2","13.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","8.5","y1","6","x2","11.5","y2","9","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(a,i){a&1&&(ve(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),ve(4,"svg",3),Me(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),Ce()(),H(),ve(28,"div",27),d(29),Ce(),x(30,ks,3,4,"div",28)(31,Ss,3,4,"div",28),Ce()()),a&2&&(r(2),b("aria-label",c(3,3,"accessories.core.light_sensor")),r(27),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.CurrentAmbientLightLevel<1?30:31))},dependencies:[Ee,T],encapsulation:2})}return e})();var mt=(()=>{class e{miredToKelvin(t){return Math.round(1e6/t)}kelvinToMired(t){return Math.round(1e6/t)}kelvinToHsl(t){let a=t/100,i,p,S;a<=66?(i=255,p=Math.min(99.4708025861*Math.log(a)-161.1195681661,255),S=a<=19?0:Math.min(138.5177312231*Math.log(a-10)-305.0447927307,255)):(i=Math.min(329.698727446*(a-60)**-.1332047592,255),p=Math.min(288.1221695283*(a-60)**-.0755148492,255),S=255),i/=255,p/=255,S/=255;let Z=Math.max(i,p,S),ie=Math.min(i,p,S),W=Z-ie,K=0;W!==0&&(Z===i?K=(p-S)/W%6:Z===p?K=(S-i)/W+2:K=(i-p)/W+4,K=Math.round(K*60),K<0&&(K+=360));let de=(Z+ie)/2,ye=W===0?0:W/(1-Math.abs(2*de-1));return`hsl(${Math.round(K)}, ${Math.round(ye*100)}%, ${Math.round(de*100)}%)`}static \u0275fac=function(a){return new(a||e)};static \u0275prov=ri({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var sn=(e,n)=>({"fa-check-circle":e,"fa-blank":n}),bs=(e,n)=>({"off-text":e,"on-text":n}),Lt=(e,n)=>({"mb-1":e,"":n});function ws(e,n){e&1&&m(0,"div")}function Ts(e,n){if(e&1&&(o(0,"div",11)(1,"div",13)(2,"div",7),m(3,"i",14),s(),d(4),l(5,"translate"),o(6,"div",9),m(7,"i",10),s()()()),e&2){let t=u();r(3),f("ngClass",D(5,bs,!t.isAdaptiveLightingEnabled,t.isAdaptiveLightingEnabled)),r(),N(" ",c(5,3,"accessories.control.adaptive_lighting"),": ",t.isAdaptiveLightingEnabled?"ON":"OFF"," ")}}function Ms(e,n){if(e&1){let t=O();o(0,"h6",15),d(1),l(2,"translate"),s(),o(3,"nouislider",16),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetBrightness.value,i)||(p.targetBrightness.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onBrightnessStateChange())}),s()}if(e&2){let t=u();r(),N("",c(2,6,"accessories.control.brightness"),": ",t.targetBrightness.value,"%"),r(2),f("min",t.targetBrightness.min)("max",t.targetBrightness.max)("step",t.targetBrightness.step),G("ngModel",t.targetBrightness.value)}}function Es(e,n){e&1&&(o(0,"div",18)(1,"span",19),d(2),l(3,"translate"),s()()),e&2&&(r(2),g(c(3,1,"accessories.control.adaptive_lighting_note")))}function Vs(e,n){if(e&1){let t=O();o(0,"h6",15),d(1),l(2,"translate"),s(),o(3,"nouislider",17),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetHue.value,i)||(p.targetHue.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onHueStateChange())}),s(),x(4,Es,4,3,"div",18)}if(e&2){let t=u();r(),N("",c(2,8,"accessories.control.hue"),": ",t.targetHue.value,"\xB0"),r(2),f("min",0)("max",360)("step",1),G("ngModel",t.targetHue.value),f("ngClass",D(10,Lt,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),r(),_(t.isAdaptiveLightingEnabled?4:-1)}}function Bs(e,n){e&1&&(o(0,"div",18)(1,"span",19),d(2),l(3,"translate"),s()()),e&2&&(r(2),g(c(3,1,"accessories.control.adaptive_lighting_note")))}function Ds(e,n){if(e&1){let t=O();o(0,"h6",15),d(1),l(2,"translate"),s(),o(3,"nouislider",17),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetSaturation.value,i)||(p.targetSaturation.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onSaturationStateChange())}),s(),x(4,Bs,4,3,"div",18)}if(e&2){let t=u();r(),N("",c(2,8,"accessories.control.saturation"),": ",t.targetSaturation.value,"%"),r(2),f("min",0)("max",100)("step",1),G("ngModel",t.targetSaturation.value),f("ngClass",D(10,Lt,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),r(),_(t.isAdaptiveLightingEnabled?4:-1)}}function As(e,n){e&1&&(o(0,"div",18)(1,"span",19),d(2),l(3,"translate"),s()()),e&2&&(r(2),g(c(3,1,"accessories.control.adaptive_lighting_note")))}function Is(e,n){if(e&1){let t=O();o(0,"h6",15),d(1),l(2,"translate"),l(3,"convertMired"),s(),o(4,"nouislider",17),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetColorTemperature.value,i)||(p.targetColorTemperature.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onColorTemperatureStateChange())}),s(),x(5,As,4,3,"div",18)}if(e&2){let t=u();r(),N(" ",c(2,8,"accessories.control.color_temperature"),": ",c(3,10,t.targetColorTemperature.mired)," "),r(3),f("min",t.targetColorTemperature.min)("max",t.targetColorTemperature.max)("step",t.targetColorTemperature.step),G("ngModel",t.targetColorTemperature.value),f("ngClass",D(12,Lt,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),r(),_(t.isAdaptiveLightingEnabled?5:-1)}}var ln=(()=>{class e{$activeModal=F(Y);$colour=F(mt);service;isAdaptiveLightingEnabled$;targetMode;targetBrightness;targetBrightnessChanged=new ee;targetHue;targetHueChanged=new ee;targetSaturation;targetSaturationChanged=new ee;targetColorTemperature;targetColorTemperatureChanged=new ee;hasAdaptiveLighting=!1;isAdaptiveLightingEnabled=!1;sliderIndex=0;constructor(){this.targetBrightnessChanged.pipe(te(500)).subscribe(()=>{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.targetHueChanged.pipe(te(500)).subscribe(()=>{this.service.getCharacteristic("Hue").setValue(this.targetHue.value)}),this.targetSaturationChanged.pipe(te(500)).subscribe(()=>{this.service.getCharacteristic("Saturation").setValue(this.targetSaturation.value)}),this.targetColorTemperatureChanged.pipe(te(500)).subscribe(t=>{this.service.getCharacteristic("ColorTemperature").setValue(t)})}ngOnInit(){this.targetMode=this.service.values.On,this.loadTargetBrightness(),this.loadTargetHue(),this.loadTargetSaturation(),this.loadTargetColorTemperature()}setTargetMode(t,a){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),a.target.blur()}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 a=this.targetHue.value;t.style.background=`linear-gradient(to right,
|
|
2
|
+
hsl(${a}, 0%, 50%),
|
|
3
|
+
hsl(${a}, 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)}dismissModal(){this.$activeModal.dismiss("Dismiss")}loadTargetBrightness(){let t=this.service.getCharacteristic("Brightness");t&&(this.targetBrightness={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},setTimeout(()=>{let a=document.querySelectorAll(".noUi-target")[this.sliderIndex];a&&(a.style.background="linear-gradient(to right, #242424, #ffd6aa)",this.sliderIndex+=1)},10))}loadTargetHue(){this.service.getCharacteristic("Hue")&&(this.targetHue={value:this.service.getCharacteristic("Hue").value},setTimeout(()=>{let a=document.querySelectorAll(".noUi-target")[this.sliderIndex];a&&(a.style.background=`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%))`),this.sliderIndex+=1},10))}loadTargetSaturation(){this.service.getCharacteristic("Saturation")&&(this.targetSaturation={value:this.service.getCharacteristic("Saturation").value},setTimeout(()=>{let a=document.querySelectorAll(".noUi-target")[this.sliderIndex];if(a){let i=this.targetHue.value||0;a.style.background=`linear-gradient(to right,
|
|
11
|
+
hsl(${i}, 0%, 50%),
|
|
12
|
+
hsl(${i}, 100%, 50%))`}this.sliderIndex+=1},10))}loadTargetColorTemperature(){let t=this.service.getCharacteristic("ColorTemperature");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},setTimeout(()=>{let a=document.querySelectorAll(".noUi-target")[this.sliderIndex];if(a){let i=this.$colour.kelvinToHsl(this.targetColorTemperature.min),p=this.$colour.kelvinToHsl(this.targetColorTemperature.max);a.style.background=`linear-gradient(to right, ${i}, ${p})`}},10),this.isAdaptiveLightingEnabled$&&(this.hasAdaptiveLighting=!0,this.isAdaptiveLightingEnabled$.subscribe(a=>{this.isAdaptiveLightingEnabled=a})))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service",isAdaptiveLightingEnabled$:"isAdaptiveLightingEnabled$"},decls:29,vars:27,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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","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-fw","fa-xl","fa-sun",3,"ngClass"],[1,"mt-4"],[3,"ngModelChange","min","max","step","ngModel"],[3,"ngModelChange","min","max","step","ngModel","ngClass"],[1,"d-flex","text-center","mt-0","mb-1"],[1,"grey-text","small"]],template:function(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5),l(7,"translate"),o(8,"button",6),y("click",function(S){return i.setTargetMode(!1,S)}),o(9,"div",7),m(10,"i",8),s(),d(11),l(12,"translate"),o(13,"div",9),m(14,"i",10),s()(),o(15,"button",6),y("click",function(S){return i.setTargetMode(!0,S)}),o(16,"div",7),m(17,"i",8),s(),d(18),l(19,"translate"),o(20,"div",9),m(21,"i",10),s()(),x(22,ws,1,0,"div"),s(),x(23,Ts,8,8,"div",11),x(24,Ms,4,8),x(25,Vs,5,13),x(26,Ds,5,13),x(27,Is,6,15),s(),m(28,"div",12),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,13,"form.button_close")),r(3),b("aria-label",c(7,15,"accessories.control.mode_control")),r(4),f("ngClass",D(21,sn,!i.targetMode,i.targetMode)),r(),C(" ",c(12,17,"accessories.control.off")," "),r(6),f("ngClass",D(24,sn,i.targetMode,!i.targetMode)),r(),C(" ",c(19,19,"accessories.control.on")," "),r(4),_(i.hasAdaptiveLighting?22:-1),r(),_(i.hasAdaptiveLighting?23:-1),r(),_(i.targetBrightness?24:-1),r(),_(i.targetHue?25:-1),r(),_(i.targetSaturation?26:-1),r(),_(i.targetColorTemperature?27:-1))},dependencies:[Q,oe,re,ae,B,T,Si],encapsulation:2})}return e})();var Ps=e=>({"accessory-on":e});function Fs(e,n){if(e&1&&(m(0,"div",10),l(1,"translate")),e&2){let t=u();f("innerHTML",t.service.values.On?t.service.values.Brightness+"%"+(t.hasAdaptiveLighting?" \xB7 <i class='fa fa-sun "+(t.isAdaptiveLightingEnabled?"on-text":"grey-text")+"'></i>":""):c(1,1,"accessories.control.off"),Dt)}}function Hs(e,n){if(e&1&&(m(0,"div",10),l(1,"translate")),e&2){let t=u();f("innerHTML",c(1,1,t.service.values.On||t.service.values.Active?"accessories.control.on"+(t.hasAdaptiveLighting?" \xB7 <i class='fa fa-sun "+(t.isAdaptiveLightingEnabled?"on-text":"grey-text")+"'></i>":""):"accessories.control.off"),Dt)}}var cn=(()=>{class e{$modal=F(X);intervalId;$colour=F(mt);service;readyForControl=!1;hasAdaptiveLighting=!1;isAdaptiveLightingEnabled=!1;isAdaptiveLightingEnabled$=new ei(!1);ngOnInit(){this.loadAdaptiveLighting()}ngOnDestroy(){this.intervalId&&clearInterval(this.intervalId)}onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1),"Brightness"in this.service.values&&!this.service.values.On&&!this.service.values.Brightness&&(this.service.values.Brightness=this.service.getCharacteristic("Brightness").maxValue))}onLongClick(){if(this.readyForControl&&("Brightness"in this.service.values||"Hue"in this.service.values||"Saturation"in this.service.values||"ColorTemperature"in this.service.values)){let t=this.$modal.open(ln,{size:"md",backdrop:"static"});if(t.componentInstance.service=this.service,this.hasAdaptiveLighting){t.componentInstance.isAdaptiveLightingEnabled$=this.isAdaptiveLightingEnabled$,this.intervalId&&clearInterval(this.intervalId),this.intervalId=setInterval(()=>{this.isAdaptiveLightingEnabled$.next(!!this.service.values.CharacteristicValueActiveTransitionCount)},3e3);let a=this.isAdaptiveLightingEnabled$.subscribe(i=>{this.isAdaptiveLightingEnabled=i});t.result.finally(()=>{this.intervalId&&clearInterval(this.intervalId),a.unsubscribe(),this.intervalId=setInterval(()=>{this.isAdaptiveLightingEnabled$.next(!!this.service.values.CharacteristicValueActiveTransitionCount)},3e4)})}}}kelvinToHex(t){t=Math.max(1e3,Math.min(4e4,t));let a=t/100,i,p,S;return a<=66?(i=255,p=a,p=99.4708025861*Math.log(p)-161.1195681661,S=a<=19?0:138.5177312231*Math.log(a-10)-305.0447927307):(i=329.698727446*(a-60)**-.1332047592,p=288.1221695283*(a-60)**-.0755148492,S=255),i=Math.round(Math.min(Math.max(i,0),255)),p=Math.round(Math.min(Math.max(p,0),255)),S=Math.round(Math.min(Math.max(S,0),255)),`#${i.toString(16).padStart(2,"0")}${p.toString(16).padStart(2,"0")}${S.toString(16).padStart(2,"0")}`}loadAdaptiveLighting(){"CharacteristicValueActiveTransitionCount"in this.service.values&&(this.hasAdaptiveLighting=!0,this.isAdaptiveLightingEnabled$.next(!!this.service.values.CharacteristicValueActiveTransitionCount),this.intervalId=setInterval(()=>{this.isAdaptiveLightingEnabled$.next(!!this.service.values.CharacteristicValueActiveTransitionCount)},3e4),this.isAdaptiveLightingEnabled$.subscribe(t=>{this.isAdaptiveLightingEnabled=t}))}Math=Math;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-lightbulb"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:14,vars:10,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"path",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8),s()(),H(),o(10,"div",9),d(11),s(),x(12,Fs,2,3,"div",10)(13,Hs,2,3,"div",10),s()()),a&2&&(f("ngClass",U(8,Ps,i.service.values.On||i.service.values.Active)),r(2),b("aria-label",c(3,6,"accessories.core.lightbulb")),r(3),b("fill",i.service.values.On||i.service.values.Active?"Hue"in i.service.values?"hsl("+i.service.values.Hue+", "+i.service.values.Saturation+"%, 50%)":"ColorTemperature"in i.service.values?i.$colour.kelvinToHsl(i.$colour.miredToKelvin(i.service.values.ColorTemperature)):"#ffcf55":"none")("fill-opacity","Brightness"in i.service.values?.25+i.service.values.Brightness/100*.5:.75),r(6),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.Brightness?12:13))},dependencies:[$,B,T],encapsulation:2})}return e})();var ut=(()=>{class e{transform(t){if(typeof t!="number"||Number.isNaN(t))return"";let a=Math.floor(t/60),i=t%60;return[a>0?`${a.toString()}m`:"",i>0?`${i.toString()}s`:""].filter(Boolean).join(" ")}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=di({name:"duration",type:e,pure:!0})}return e})();var dn=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Ls(e,n){if(e&1){let t=O();o(0,"h6",12),d(1),l(2,"translate"),l(3,"duration"),s(),o(4,"nouislider",13),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetLockManagementAutoSecurityTimeout.value,i)||(p.targetLockManagementAutoSecurityTimeout.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onLockManagementAutoSecurityTimeoutStateChange())}),s()}if(e&2){let t=u();r(),N(" ",c(2,6,"accessories.control.lock_auto"),": ",t.targetLockManagementAutoSecurityTimeout.value===0?"\u221E":c(3,8,t.targetLockManagementAutoSecurityTimeout.value)," "),r(3),f("min",t.targetLockManagementAutoSecurityTimeout.min)("max",t.targetLockManagementAutoSecurityTimeout.max)("step",10),G("ngModel",t.targetLockManagementAutoSecurityTimeout.value)}}var pn=(()=>{class e{$activeModal=F(Y);lockTimeout;service;serviceManagement;targetMode;targetLockManagementAutoSecurityTimeout;targetLockManagementAutoSecurityTimeoutChanged=new ee;ngOnInit(){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(te(300),ni()).subscribe(()=>{this.serviceManagement.getCharacteristic("LockManagementAutoSecurityTimeout").setValue(this.targetLockManagementAutoSecurityTimeout.value)}),this.loadTargetLockManagementAutoSecurityTimeout())}setTargetMode(t,a){this.targetMode=t,this.service.getCharacteristic("LockTargetState").setValue(this.targetMode),this.lockTimeout&&(clearTimeout(this.lockTimeout),this.lockTimeout=null),this.targetMode===0&&this.targetLockManagementAutoSecurityTimeout?.value>0&&(this.lockTimeout=setTimeout(()=>{this.targetMode=1},(this.targetLockManagementAutoSecurityTimeout.value+.3)*1e3)),a.target.blur()}onLockManagementAutoSecurityTimeoutStateChange(){this.targetLockManagementAutoSecurityTimeoutChanged.next(this.targetLockManagementAutoSecurityTimeout.value)}dismissModal(){this.$activeModal.dismiss("Dismiss")}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},setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(i=>{i.style.background="linear-gradient(to right, #ffffff, #ffd966, #ff0000)"})},10))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:24,vars:22,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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5),l(7,"translate"),o(8,"button",6),y("click",function(S){return i.setTargetMode(1,S)}),o(9,"div",7),m(10,"i",8),s(),d(11),l(12,"translate"),o(13,"div",9),m(14,"i",10),s()(),o(15,"button",6),y("click",function(S){return i.setTargetMode(0,S)}),o(16,"div",7),m(17,"i",8),s(),d(18),l(19,"translate"),o(20,"div",9),m(21,"i",10),s()()(),x(22,Ls,5,10),s(),m(23,"div",11),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,8,"form.button_close")),r(3),b("aria-label",c(7,10,"accessories.control.mode_control")),r(4),f("ngClass",D(16,dn,i.targetMode===1,i.targetMode!==1)),r(),C(" ",c(12,12,"accessories.control.locked")," "),r(6),f("ngClass",D(19,dn,i.targetMode===0,i.targetMode!==0)),r(),C(" ",c(19,14,"accessories.control.unlocked")," "),r(4),_(i.serviceManagement?22:-1))},dependencies:[Q,oe,re,ae,B,T,ut],encapsulation:2})}return e})();var Os=(e,n,t,a)=>({"accessory-on":e,unlocked:n,jammed:t,error:a}),Ns=(e,n)=>({"red-text":e,"grey-text":n});function Rs(e,n){if(e&1&&(m(0,"div",9),l(1,"translate")),e&2){let t=u();f("innerText",c(1,2,t.service.values.LockCurrentState?"accessories.control.locked":"accessories.control.unlocked"))("ngClass",D(4,Ns,!t.service.values.LockCurrentState,t.service.values.LockCurrentState))}}function Ws(e,n){e&1&&(o(0,"div",10),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.jammed")))}function js(e,n){e&1&&(o(0,"div",10),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.unknown")))}var mn=(()=>{class e{$modal=F(X);service;readyForControl=!1;onClick(){this.readyForControl&&("LockTargetState"in this.service.values?this.service.getCharacteristic("LockTargetState").setValue(this.service.values.LockTargetState?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On))}onLongClick(){if(this.readyForControl&&"LockTargetState"in this.service.values){let t=this.$modal.open(pn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-lock-mechanism"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:14,vars:11,consts:[["tabindex","0",1,"accessory-box",3,"shortClick","longClick","ngClass"],[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","ngClass"],[1,"accessory-label","red-text"]],template:function(a,i){a&1&&(o(0,"div",0),y("shortClick",function(){return i.onClick()})("longClick",function(){return i.onLongClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"path",4)(6,"path",5)(7,"rect",6)(8,"circle",7),s()(),H(),o(9,"div",8),d(10),s(),x(11,Rs,2,7,"div",9)(12,Ws,3,3,"div",10)(13,js,3,3,"div",10),s()()),a&2&&(f("ngClass",at(6,Os,"LockCurrentState"in i.service.values&&i.service.values.LockCurrentState!==1||i.service.values.On===1,i.service.values.LockCurrentState===0||i.service.values.On===1,i.service.values.LockCurrentState===2,i.service.values.LockCurrentState===3)),r(2),b("aria-label",c(3,4,"accessories.core.lock_mechanism")),r(8),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.LockCurrentState<2?11:i.service.values.LockCurrentState===2?12:i.service.values.LockCurrentState===3?13:-1))},dependencies:[$,B,T],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 Ue=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Us(e,n){if(e&1){let t=O();o(0,"div",5),l(1,"translate"),o(2,"button",7),y("click",function(i){M(t);let p=u();return E(p.setActive(0,i))}),o(3,"div",8),m(4,"i",9),s(),d(5),l(6,"translate"),o(7,"div",10),m(8,"i",11),s()(),o(9,"button",7),y("click",function(i){M(t);let p=u();return E(p.setActive(1,i))}),o(10,"div",8),m(11,"i",9),s(),d(12),l(13,"translate"),o(14,"div",10),m(15,"i",11),s()()()}if(e&2){let t=u();b("aria-label",c(1,5,"accessories.control.mode_control")),r(4),f("ngClass",D(11,Ue,t.service.values.Active===0,t.service.values.Active!==0)),r(),C(" ",c(6,7,"accessories.control.off")," "),r(6),f("ngClass",D(14,Ue,t.service.values.Active===1,t.service.values.Active!==1)),r(),C(" ",c(13,9,"accessories.control.on")," ")}}function $s(e,n){if(e&1){let t=O();o(0,"div",5),l(1,"translate"),o(2,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetState(0,i))}),o(3,"div",8),m(4,"i",9),s(),d(5),l(6,"translate"),o(7,"div",10),m(8,"i",11),s()(),o(9,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetState(1,i))}),o(10,"div",8),m(11,"i",9),s(),d(12),l(13,"translate"),o(14,"div",10),m(15,"i",11),s()(),o(16,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetState(2,i))}),o(17,"div",8),m(18,"i",9),s(),d(19),l(20,"translate"),o(21,"div",10),m(22,"i",11),s()()()}if(e&2){let t=u();b("aria-label",c(1,7,"accessories.control.media_control")),r(4),f("ngClass",D(15,Ue,t.service.values.CurrentMediaState===0,t.service.values.CurrentMediaState!==0)),r(),C(" ",c(6,9,"accessories.control.play")," "),r(6),f("ngClass",D(18,Ue,t.service.values.CurrentMediaState===1,t.service.values.CurrentMediaState!==1)),r(),C(" ",c(13,11,"accessories.control.pause")," "),r(6),f("ngClass",D(21,Ue,t.service.values.CurrentMediaState===2,t.service.values.CurrentMediaState!==2)),r(),C(" ",c(20,13,"accessories.control.stop")," ")}}function Gs(e,n){if(e&1){let t=O();o(0,"h6"),d(1),l(2,"translate"),s(),o(3,"div",12),l(4,"translate"),o(5,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(!1,i))}),o(6,"div",8),m(7,"i",9),s(),d(8),l(9,"translate"),o(10,"div",10),m(11,"i",11),s()(),o(12,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(!0,i))}),o(13,"div",8),m(14,"i",9),s(),d(15),l(16,"translate"),o(17,"div",10),m(18,"i",11),s()()()}if(e&2){let t=u();r(),C(" ",c(2,6,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),r(2),b("aria-label",c(4,8,"accessories.control.mute_control")),r(4),f("ngClass",D(14,Ue,!t.targetMode,t.targetMode)),r(),C(" ",c(9,10,"accessories.control.not_mute")," "),r(6),f("ngClass",D(17,Ue,t.targetMode,!t.targetMode)),r(),C(" ",c(16,12,"accessories.control.mute")," ")}}function zs(e,n){if(e&1){let t=O();o(0,"h6",13),d(1),l(2,"translate"),s(),o(3,"nouislider",14),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetVolume.value,i)||(p.targetVolume.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onVolumeStateChange())}),s()}if(e&2){let t=u();r(),N("",c(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),r(2),f("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),G("ngModel",t.targetVolume.value)}}var un=(()=>{class e{$activeModal=F(Y);service;targetMode;targetVolume;targetVolumeChanged=new ee;constructor(){this.targetVolumeChanged.pipe(te(500)).subscribe(()=>{this.service.getCharacteristic("Volume").setValue(this.targetVolume.value)})}ngOnInit(){this.targetMode=this.service.values.Mute,this.loadTargetVolume()}setTargetMode(t,a){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),a.target.blur()}setActive(t,a){this.service.getCharacteristic("Active").setValue(t),a.target.blur()}setTargetState(t,a){this.service.getCharacteristic("TargetMediaState").setValue(t),a.target.blur()}onVolumeStateChange(){this.targetVolumeChanged.next(this.targetVolume.value)}dismissModal(){this.$activeModal.dismiss("Dismiss")}loadTargetVolume(){let t=this.service.getCharacteristic("Volume");t&&(this.targetVolume={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(i=>{i.style.background="linear-gradient(to right, #ffffff, #ffd966, #ff0000)"})},10))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","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(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4),x(6,Us,16,17,"div",5)(7,$s,23,24,"div",5),x(8,Gs,19,20),x(9,zs,4,8),s(),m(10,"div",6),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,5,"form.button_close")),r(3),_("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),r(2),_("Mute"in i.service.values?8:-1),r(),_(i.targetVolume?9:-1))},dependencies:[Q,oe,re,ae,B,T],encapsulation:2})}return e})();var qs=()=>[0,1],fn=()=>["Speaker","SmartSpeaker"],Zs=(e,n)=>({"accessory-on":e,paused:n});function Ks(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.play")," ")}function Qs(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.pause")," ")}function Ys(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.stop")," ")}function Xs(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" \xB7 ",c(1,1,"accessories.control.mute")," ")}function Js(e,n){if(e&1&&d(0),e&2){let t=u(3);C(" \xB7 ",t.service.values.Volume,"% ")}}function el(e,n){if(e&1&&x(0,Js,1,1),e&2){let t=u(2);_("Volume"in t.service.values?0:-1)}}function tl(e,n){if(e&1&&(o(0,"div",10),x(1,Ks,2,3)(2,Qs,2,3)(3,Ys,2,3),x(4,Xs,2,3)(5,el,1,1),s()),e&2){let t,a=u();r(),_((t=a.service.values.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),r(3),_("Mute"in a.service.values&&a.service.values.Mute?4:5)}}function il(e,n){e&1&&(m(0,"div",11),l(1,"translate")),e&2&&f("innerText",c(1,1,"accessories.control.off"))}function nl(e,n){e&1&&(m(0,"div",11),l(1,"translate")),e&2&&f("innerText",c(1,1,"accessories.control.mute"))}function ol(e,n){if(e&1&&(o(0,"div",10),d(1),s()),e&2){let t=u();r(),C("",t.service.values.Volume,"%")}}function rl(e,n){e&1&&(o(0,"div",10),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.on")))}function al(e,n){e&1&&(o(0,"div",10),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.microphone")))}var vn=(()=>{class e{$modal=F(X);service;readyForControl=!1;onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active===0?1:0):"TargetMediaState"in this.service.values?this.service.getCharacteristic("TargetMediaState").setValue(this.service.values.TargetMediaState===0?1:0):"Mute"in this.service.values&&this.service.getCharacteristic("Mute").setValue(!this.service.values.Mute))}onLongClick(){if(this.readyForControl&&("Active"in this.service.values||"TargetMediaState"in this.service.values||"Volume"in this.service.values||"Mute"in this.service.values)){let t=this.$modal.open(un,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-microphone"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:18,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"circle",8),s()(),H(),o(10,"div",9),d(11),s(),x(12,tl,6,2,"div",10)(13,il,2,3,"div",11)(14,nl,2,3,"div",11)(15,ol,2,1,"div",10)(16,rl,3,3,"div",10)(17,al,3,3,"div",10),s()()),a&2&&(f("ngClass",D(8,Zs,"Active"in i.service.values?i.service.values.Active:"CurrentMediaState"in i.service.values?fe(6,qs).includes(i.service.values.CurrentMediaState):fe(7,fn).includes(i.service.customType||i.service.type)?"Mute"in i.service.values&&!i.service.values.Mute:!1,"CurrentMediaState"in i.service.values&&i.service.values.CurrentMediaState===1)),r(2),b("aria-label",c(3,4,"accessories.core.microphone")),r(9),g(i.service.customName||i.service.serviceName),r(),_("CurrentMediaState"in i.service.values?12:"Active"in i.service.values&&!i.service.values.Active?13:"Mute"in i.service.values&&i.service.values.Mute?14:"Volume"in i.service.values?15:fe(11,fn).includes(i.service.customType||i.service.type)?16:17))},dependencies:[$,B,T],encapsulation:2})}return e})();var sl=e=>({"accessory-on":e});function ll(e,n){e&1&&(o(0,"div",25),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.detected")))}function cl(e,n){e&1&&(o(0,"div",26),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.not_detected")))}var gn=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-motion-sensor"]],inputs:{service:"service"},decls:29,vars:8,consts:[[1,"accessory-box",3,"ngClass"],[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(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4),o(6,"g",5),m(7,"path",6)(8,"path",7),s(),m(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),s()(),H(),o(25,"div",24),d(26),s(),x(27,ll,3,3,"div",25)(28,cl,3,3,"div",26),s()()),a&2&&(f("ngClass",U(6,sl,i.service.values.MotionDetected)),r(2),b("aria-label",c(3,4,"accessories.core.motion_sensor")),r(24),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.MotionDetected?27:28))},dependencies:[B,T],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 dl=e=>({"accessory-on":e});function pl(e,n){e&1&&(o(0,"div",22),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.detected")))}function ml(e,n){e&1&&(o(0,"div",23),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.not_detected")))}var hn=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-occupancy-sensor"]],inputs:{service:"service"},decls:26,vars:8,consts:[[1,"accessory-box",3,"ngClass"],[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(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4),o(6,"g",5),m(7,"path",6)(8,"path",7),s(),m(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),s()(),H(),o(22,"div",21),d(23),s(),x(24,pl,3,3,"div",22)(25,ml,3,3,"div",23),s()()),a&2&&(f("ngClass",U(6,dl,i.service.values.OccupancyDetected)),r(2),b("aria-label",c(3,4,"accessories.core.occupancy_sensor")),r(21),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.OccupancyDetected?24:25))},dependencies:[B,T],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 Cn=()=>[0,2],ul=e=>({"accessory-on":e});function fl(e,n){e&1&&(A(),m(0,"line",8)(1,"line",9)(2,"line",10))}function vl(e,n){e&1&&(A(),m(0,"line",11)(1,"line",12)(2,"line",13))}var xn=(()=>{class e{$settings=F(Ve);service;readyForControl=!1;browserLang=this.$settings.browserLang;onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"LockTargetState"in this.service.values?this.service.getCharacteristic("LockTargetState").setValue(this.service.values.LockTargetState?0:1):"TargetDoorState"in this.service.values&&this.service.getCharacteristic("TargetDoorState").setValue(this.service.values.TargetDoorState?0:1))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-outlet"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:13,vars:13,consts:[["tabindex","0",1,"accessory-box",3,"shortClick","ngClass"],[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","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(a,i){a&1&&(o(0,"div",0),y("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4)(6,"circle",5),x(7,fl,3,0)(8,vl,3,0),s()(),H(),o(9,"div",6),d(10),s(),m(11,"div",7),l(12,"translate"),s()()),a&2&&(f("ngClass",U(10,ul,i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&fe(9,Cn).includes(i.service.values.CurrentDoorState))),r(2),b("aria-label",c(3,5,"accessories.core.outlet")),r(5),_(i.browserLang==="en-GB"?7:8),r(3),g(i.service.customName||i.service.serviceName),r(),f("innerText",c(12,7,i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&fe(12,Cn).includes(i.service.values.CurrentDoorState)?"accessories.control.on":"accessories.control.off")))},dependencies:[$,B,T],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 gl=e=>({"accessory-on":e}),_n=(()=>{class e{service;readyForControl=!1;onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-robot-vacuum"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:36,vars:10,consts:[["tabindex","0",1,"accessory-box",3,"shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3)(5,"defs")(6,"clipPath",4),m(7,"rect",5),s()(),o(8,"g",6),m(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),s(),o(19,"g",17)(20,"line",18),m(21,"animate",19)(22,"animate",20)(23,"animate",21),s(),o(24,"line",22),m(25,"animate",23)(26,"animate",24)(27,"animate",25),s(),o(28,"line",26),m(29,"animate",27)(30,"animate",28)(31,"animate",29),s()()()(),H(),o(32,"div",30),d(33),s(),m(34,"div",31),l(35,"translate"),s()()),a&2&&(f("ngClass",U(8,gl,i.service.values.On||i.service.values.Active)),r(2),b("aria-label",c(3,4,"accessories.core.robot_vacuum")),r(31),g(i.service.customName||i.service.serviceName),r(),f("innerText",c(35,6,i.service.values.On||i.service.values.Active?"accessories.control.on":"accessories.control.off")))},dependencies:[$,B,T],styles:[".accessory-on svg .motion-lines{display:inline!important}"]})}return e})();var ft=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function hl(e,n){if(e&1){let t=O();o(0,"button",8),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(3,i))}),o(1,"div",9),m(2,"i",10),s(),d(3),l(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u();r(2),f("ngClass",D(4,ft,t.targetMode===3,t.targetMode!==3)),r(),C(" ",c(4,2,"accessories.control.off")," ")}}function Cl(e,n){if(e&1){let t=O();o(0,"button",8),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(0,i))}),o(1,"div",9),m(2,"i",10),s(),d(3),l(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u();r(2),f("ngClass",D(4,ft,t.targetMode===0,t.targetMode!==0)),r(),C(" ",c(4,2,"accessories.control.home")," ")}}function xl(e,n){if(e&1){let t=O();o(0,"button",8),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(1,i))}),o(1,"div",9),m(2,"i",10),s(),d(3),l(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u();r(2),f("ngClass",D(4,ft,t.targetMode===1,t.targetMode!==1)),r(),C(" ",c(4,2,"accessories.control.away")," ")}}function _l(e,n){if(e&1){let t=O();o(0,"button",8),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(2,i))}),o(1,"div",9),m(2,"i",10),s(),d(3),l(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u();r(2),f("ngClass",D(4,ft,t.targetMode===2,t.targetMode!==2)),r(),C(" ",c(4,2,"accessories.control.night")," ")}}var yn=(()=>{class e{$activeModal=F(Y);service;targetMode;targetModeValidValues=[];ngOnInit(){this.targetMode=this.service.values.SecuritySystemTargetState,this.targetModeValidValues=this.service.getCharacteristic("SecuritySystemTargetState").validValues}setTargetMode(t,a){this.targetMode=t,this.service.getCharacteristic("SecuritySystemTargetState").setValue(this.targetMode),a.target.blur()}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","fa-xl","fa-blank"]],template:function(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5),l(7,"translate"),x(8,hl,7,7,"button",6),x(9,Cl,7,7,"button",6),x(10,xl,7,7,"button",6),x(11,_l,7,7,"button",6),s()(),m(12,"div",7),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,7,"form.button_close")),r(3),b("aria-label",c(7,9,"accessories.control.mode_control")),r(2),_(i.targetModeValidValues.includes(3)?8:-1),r(),_(i.targetModeValidValues.includes(0)?9:-1),r(),_(i.targetModeValidValues.includes(1)?10:-1),r(),_(i.targetModeValidValues.includes(2)?11:-1))},dependencies:[Q,B,T],encapsulation:2})}return e})();var yl=(e,n,t,a,i)=>({"accessory-on":e,home:n,away:t,night:a,triggered:i});function kl(e,n){e&1&&(o(0,"div",10),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.home")))}function Sl(e,n){e&1&&(o(0,"div",10),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.away")))}function bl(e,n){e&1&&(o(0,"div",10),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.night")))}function wl(e,n){e&1&&(o(0,"div",11),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.off")))}function Tl(e,n){e&1&&(o(0,"div",11),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.triggered")))}var kn=(()=>{class e{$modal=F(X);service;readyForControl=!1;onClick(){if(!this.readyForControl)return;let t=this.$modal.open(yn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-security-system"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:17,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){if(a&1&&(o(0,"div",0),y("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"path",4)(6,"rect",5)(7,"line",6)(8,"line",7)(9,"line",8),s()(),H(),o(10,"div",9),d(11),s(),x(12,kl,3,3,"div",10)(13,Sl,3,3,"div",10)(14,bl,3,3,"div",10)(15,wl,3,3,"div",11)(16,Tl,3,3,"div",11),s()()),a&2){let p;f("ngClass",_i(6,yl,i.service.values.SecuritySystemCurrentState!==3,i.service.values.SecuritySystemCurrentState===0,i.service.values.SecuritySystemCurrentState===1,i.service.values.SecuritySystemCurrentState===2,i.service.values.SecuritySystemCurrentState===4)),r(2),b("aria-label",c(3,4,"accessories.core.security_system")),r(9),g(i.service.customName||i.service.serviceName),r(),_((p=i.service.values.SecuritySystemCurrentState)===0?12:p===1?13:p===2?14:p===3?15:p===4?16:-1)}},dependencies:[$,B,T],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})();var Ml=e=>({"accessory-on":e});function El(e,n){e&1&&(o(0,"div",17),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.detected")))}function Vl(e,n){e&1&&(o(0,"div",18),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.not_detected")))}var Sn=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-smoke-sensor"]],inputs:{service:"service"},decls:22,vars:8,consts:[[1,"accessory-box",3,"ngClass"],[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(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4),o(6,"text",5),d(7," SMOKE "),s(),m(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),s()(),H(),o(18,"div",16),d(19),s(),x(20,El,3,3,"div",17)(21,Vl,3,3,"div",18),s()()),a&2&&(f("ngClass",U(6,Ml,i.service.values.SmokeDetected)),r(2),b("aria-label",c(3,4,"accessories.core.smoke_sensor")),r(17),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.SmokeDetected?20:21))},dependencies:[B,T],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 $e=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Bl(e,n){if(e&1){let t=O();o(0,"div",5),l(1,"translate"),o(2,"button",7),y("click",function(i){M(t);let p=u();return E(p.setActive(0,i))}),o(3,"div",8),m(4,"i",9),s(),d(5),l(6,"translate"),o(7,"div",10),m(8,"i",11),s()(),o(9,"button",7),y("click",function(i){M(t);let p=u();return E(p.setActive(1,i))}),o(10,"div",8),m(11,"i",9),s(),d(12),l(13,"translate"),o(14,"div",10),m(15,"i",11),s()()()}if(e&2){let t=u();b("aria-label",c(1,5,"accessories.control.mode_control")),r(4),f("ngClass",D(11,$e,t.service.values.Active===0,t.service.values.Active!==0)),r(),C(" ",c(6,7,"accessories.control.off")," "),r(6),f("ngClass",D(14,$e,t.service.values.Active===1,t.service.values.Active!==1)),r(),C(" ",c(13,9,"accessories.control.on")," ")}}function Dl(e,n){if(e&1){let t=O();o(0,"div",5),l(1,"translate"),o(2,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetState(0,i))}),o(3,"div",8),m(4,"i",9),s(),d(5),l(6,"translate"),o(7,"div",10),m(8,"i",11),s()(),o(9,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetState(1,i))}),o(10,"div",8),m(11,"i",9),s(),d(12),l(13,"translate"),o(14,"div",10),m(15,"i",11),s()(),o(16,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetState(2,i))}),o(17,"div",8),m(18,"i",9),s(),d(19),l(20,"translate"),o(21,"div",10),m(22,"i",11),s()()()}if(e&2){let t=u();b("aria-label",c(1,7,"accessories.control.media_control")),r(4),f("ngClass",D(15,$e,t.service.values.CurrentMediaState===0,t.service.values.CurrentMediaState!==0)),r(),C(" ",c(6,9,"accessories.control.play")," "),r(6),f("ngClass",D(18,$e,t.service.values.CurrentMediaState===1,t.service.values.CurrentMediaState!==1)),r(),C(" ",c(13,11,"accessories.control.pause")," "),r(6),f("ngClass",D(21,$e,t.service.values.CurrentMediaState===2,t.service.values.CurrentMediaState!==2)),r(),C(" ",c(20,13,"accessories.control.stop")," ")}}function Al(e,n){if(e&1){let t=O();o(0,"h6"),d(1),l(2,"translate"),s(),o(3,"div",12),l(4,"translate"),o(5,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(!1,i))}),o(6,"div",8),m(7,"i",9),s(),d(8),l(9,"translate"),o(10,"div",10),m(11,"i",11),s()(),o(12,"button",7),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(!0,i))}),o(13,"div",8),m(14,"i",9),s(),d(15),l(16,"translate"),o(17,"div",10),m(18,"i",11),s()()()}if(e&2){let t=u();r(),C(" ",c(2,6,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),r(2),b("aria-label",c(4,8,"accessories.control.mute_control")),r(4),f("ngClass",D(14,$e,!t.targetMode,t.targetMode)),r(),C(" ",c(9,10,"accessories.control.not_mute")," "),r(6),f("ngClass",D(17,$e,t.targetMode,!t.targetMode)),r(),C(" ",c(16,12,"accessories.control.mute")," ")}}function Il(e,n){if(e&1){let t=O();o(0,"h6",13),d(1),l(2,"translate"),s(),o(3,"nouislider",14),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetVolume.value,i)||(p.targetVolume.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onVolumeStateChange())}),s()}if(e&2){let t=u();r(),N("",c(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),r(2),f("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),G("ngModel",t.targetVolume.value)}}var bn=(()=>{class e{$activeModal=F(Y);service;targetMode;targetVolume;targetVolumeChanged=new ee;constructor(){this.targetVolumeChanged.pipe(te(500)).subscribe(()=>{this.service.getCharacteristic("Volume").setValue(this.targetVolume.value)})}ngOnInit(){this.targetMode=this.service.values.Mute,this.loadTargetVolume()}setTargetMode(t,a){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),a.target.blur()}setActive(t,a){this.service.getCharacteristic("Active").setValue(t),a.target.blur()}setTargetState(t,a){this.service.getCharacteristic("TargetMediaState").setValue(t),a.target.blur()}onVolumeStateChange(){this.targetVolumeChanged.next(this.targetVolume.value)}dismissModal(){this.$activeModal.dismiss("Dismiss")}loadTargetVolume(){let t=this.service.getCharacteristic("Volume");t&&(this.targetVolume={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(i=>{i.style.background="linear-gradient(to right, #ffffff, #ffd966, #ff0000)"})},10))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","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(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4),x(6,Bl,16,17,"div",5)(7,Dl,23,24,"div",5),x(8,Al,19,20),x(9,Il,4,8),s(),m(10,"div",6),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,5,"form.button_close")),r(3),_("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),r(2),_("Mute"in i.service.values?8:-1),r(),_(i.targetVolume?9:-1))},dependencies:[Q,oe,re,ae,B,T],encapsulation:2})}return e})();var Pl=()=>[0,1],wn=()=>["Speaker","SmartSpeaker"],Fl=(e,n,t)=>({"accessory-on":e,paused:n,muted:t});function Hl(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.play")," ")}function Ll(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.pause")," ")}function Ol(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.stop")," ")}function Nl(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" \xB7 ",c(1,1,"accessories.control.mute")," ")}function Rl(e,n){if(e&1&&d(0),e&2){let t=u(3);C(" \xB7 ",t.service.values.Volume,"% ")}}function Wl(e,n){if(e&1&&x(0,Rl,1,1),e&2){let t=u(2);_("Volume"in t.service.values?0:-1)}}function jl(e,n){if(e&1&&(o(0,"div",14),x(1,Hl,2,3)(2,Ll,2,3)(3,Ol,2,3),x(4,Nl,2,3)(5,Wl,1,1),s()),e&2){let t,a=u();r(),_((t=a.service.values.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),r(3),_("Mute"in a.service.values&&a.service.values.Mute?4:5)}}function Ul(e,n){e&1&&(m(0,"div",15),l(1,"translate")),e&2&&f("innerText",c(1,1,"accessories.control.off"))}function $l(e,n){e&1&&(m(0,"div",15),l(1,"translate")),e&2&&f("innerText",c(1,1,"accessories.control.mute"))}function Gl(e,n){if(e&1&&(o(0,"div",14),d(1),s()),e&2){let t=u();r(),C("",t.service.values.Volume,"%")}}function zl(e,n){e&1&&(o(0,"div",14),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.on")))}function ql(e,n){e&1&&(o(0,"div",14),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.speaker")))}var Tn=(()=>{class e{$modal=F(X);service;readyForControl=!1;onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active===0?1:0):"TargetMediaState"in this.service.values?this.service.getCharacteristic("TargetMediaState").setValue(this.service.values.TargetMediaState===0?1:0):"Mute"in this.service.values&&this.service.getCharacteristic("Mute").setValue(!this.service.values.Mute))}onLongClick(){if(this.readyForControl&&("Active"in this.service.values||"TargetMediaState"in this.service.values||"Volume"in this.service.values||"Mute"in this.service.values)){let t=this.$modal.open(bn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-speaker"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:22,vars:13,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(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),s()(),H(),o(14,"div",13),d(15),s(),x(16,jl,6,2,"div",14)(17,Ul,2,3,"div",15)(18,$l,2,3,"div",15)(19,Gl,2,1,"div",14)(20,zl,3,3,"div",14)(21,ql,3,3,"div",14),s()()),a&2&&(f("ngClass",rt(8,Fl,"Active"in i.service.values?i.service.values.Active:"CurrentMediaState"in i.service.values?fe(6,Pl).includes(i.service.values.CurrentMediaState):fe(7,wn).includes(i.service.customType||i.service.type)?"Mute"in i.service.values&&!i.service.values.Mute:!1,"CurrentMediaState"in i.service.values&&i.service.values.CurrentMediaState===1,"Mute"in i.service.values&&i.service.values.Mute)),r(2),b("aria-label",c(3,4,"accessories.core.speaker")),r(13),g(i.service.customName||i.service.serviceName),r(),_("CurrentMediaState"in i.service.values?16:"Active"in i.service.values&&!i.service.values.Active?17:"Mute"in i.service.values&&i.service.values.Mute?18:"Volume"in i.service.values?19:fe(12,wn).includes(i.service.customType||i.service.type)?20:21))},dependencies:[$,B,T],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 Zl=(e,n,t)=>({"press-single":e,"press-double":n,"press-long":t}),Mn=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-stateless-programmable-switch"]],inputs:{service:"service"},decls:17,vars:12,consts:[[1,"accessory-box",3,"ngClass"],[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(a,i){a&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4)(6,"circle",5)(7,"circle",6)(8,"circle",7)(9,"circle",8)(10,"line",9)(11,"line",10),s()(),H(),o(12,"div",11),d(13),s(),o(14,"div",12),d(15),l(16,"translate"),s()()()),a&2&&(f("ngClass",rt(8,Zl,i.service.values.ProgrammableSwitchEvent===0,i.service.values.ProgrammableSwitchEvent===1,i.service.values.ProgrammableSwitchEvent===2)),r(2),b("aria-label",c(3,4,"accessories.core.stateless_programmable_switch")),r(11),g(i.service.customName||i.service.serviceName),r(2),g(c(16,6,"accessories.control.stateless")))},dependencies:[B,T],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 En=()=>[0,2],Kl=e=>({"accessory-on":e}),Vn=(()=>{class e{service;readyForControl=!1;onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"LockTargetState"in this.service.values?this.service.getCharacteristic("LockTargetState").setValue(this.service.values.LockTargetState?0:1):"TargetDoorState"in this.service.values&&this.service.getCharacteristic("TargetDoorState").setValue(this.service.values.TargetDoorState?0:1))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-switch"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:12,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"circle",4)(6,"line",5)(7,"path",6),s()(),H(),o(8,"div",7),d(9),s(),m(10,"div",8),l(11,"translate"),s()()),a&2&&(f("ngClass",U(9,Kl,i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&fe(8,En).includes(i.service.values.CurrentDoorState))),r(2),b("aria-label",c(3,4,"accessories.core.switch")),r(7),g(i.service.customName||i.service.serviceName),r(),f("innerText",c(11,6,i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&fe(11,En).includes(i.service.values.CurrentDoorState)?"accessories.control.on":"accessories.control.off")))},dependencies:[$,B,T],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 Ql=(e,n)=>({"mb-4":e,"mb-0":n}),Ot=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Yl(e,n){if(e&1){let t=O();o(0,"div",5),l(1,"translate"),o(2,"button",7),y("click",function(i){M(t);let p=u();return E(p.setActive(0,i))}),o(3,"div",8),m(4,"i",9),s(),d(5),l(6,"translate"),o(7,"div",10),m(8,"i",11),s()(),o(9,"button",7),y("click",function(i){M(t);let p=u();return E(p.setActive(1,i))}),o(10,"div",8),m(11,"i",9),s(),d(12),l(13,"translate"),o(14,"div",10),m(15,"i",11),s()()()}if(e&2){let t=u();f("ngClass",D(12,Ql,t.sourceList.length,!t.sourceList.length)),b("aria-label",c(1,6,"accessories.control.mode_control")),r(4),f("ngClass",D(15,Ot,t.service.values.Active===0,t.service.values.Active!==0)),r(),C(" ",c(6,8,"accessories.control.off")," "),r(6),f("ngClass",D(18,Ot,t.service.values.Active===1,t.service.values.Active!==1)),r(),C(" ",c(13,10,"accessories.control.on")," ")}}function Xl(e,n){e&1&&(o(0,"h6"),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.input")))}function Jl(e,n){if(e&1){let t=O();o(0,"button",7),y("click",function(i){let p=M(t).$implicit,S=u(2);return E(S.setInput(p.identifier,i))}),o(1,"div",8),m(2,"i",9),s(),d(3),o(4,"div",10),m(5,"i",11),s()()}if(e&2){let t=n.$implicit,a=u(2);r(2),f("ngClass",D(2,Ot,a.service.values.ActiveIdentifier===t.identifier,a.service.values.ActiveIdentifier!==t.identifier)),r(),C(" ",t.name," ")}}function ec(e,n){if(e&1&&(x(0,Xl,3,3,"h6"),o(1,"div",12),l(2,"translate"),ui(3,Jl,6,5,"button",13,mi),s()),e&2){let t=u();_(t.hasActive?0:-1),r(),b("aria-label",c(2,2,"accessories.control.input_control")),r(2),fi(t.sourceList)}}var Bn=(()=>{class e{$activeModal=F(Y);service;inputList;hasActive=!1;sourceList=[];ngOnInit(){"Active"in this.service.values&&(this.hasActive=!0),Object.keys(this.inputList).length&&Object.entries(this.inputList).forEach(([t,a])=>{this.sourceList.push({identifier:Number.parseInt(t,10),name:a})})}setActive(t,a){this.service.getCharacteristic("Active").setValue(t),a.target.blur()}setInput(t,a){this.service.getCharacteristic("ActiveIdentifier").setValue(t),a.target.blur()}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service",inputList:"inputList"},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,"ngClass"],[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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","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(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4),x(6,Yl,16,21,"div",5),x(7,ec,5,4),s(),m(8,"div",6),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,4,"form.button_close")),r(3),_(i.hasActive?6:-1),r(),_(i.sourceList.length?7:-1))},dependencies:[Q,B,T],encapsulation:2})}return e})();var tc=e=>({"accessory-on":e});function ic(e,n){if(e&1&&(o(0,"div",7),d(1),l(2,"translate"),s()),e&2){let t=u();r(),C(" ",t.channelList[t.service.values.ActiveIdentifier]||c(2,1,"accessories.control.on")," ")}}function nc(e,n){e&1&&(o(0,"div",7),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.off")))}var Dn=(()=>{class e{$modal=F(X);service;readyForControl=!1;channelList={};ngOnInit(){if(this.service.linkedServices)for(let[,t]of Object.entries(this.service.linkedServices))t.type==="InputSource"&&(this.channelList[t.values.Identifier]=t.values.ConfiguredName||`Input ${t.values.Identifier}`)}onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On))}onLongClick(){if(this.readyForControl&&("Active"in this.service.values||Object.keys(this.channelList).length)){let t=this.$modal.open(Bn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.inputList=this.channelList}}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-television"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:11,vars:8,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"line",4)(6,"rect",5),s()(),H(),o(7,"div",6),d(8),s(),x(9,ic,3,3,"div",7)(10,nc,3,3,"div",7),s()()),a&2&&(f("ngClass",U(6,tc,i.service.values.Active||i.service.values.On)),r(2),b("aria-label",c(3,4,"accessories.core.television")),r(6),C(" ",i.service.customName||i.service.values.ConfiguredName||i.service.serviceName," "),r(),_(i.service.values.On||i.service.values.Active?9:10))},dependencies:[$,B,T],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 oc(e,n){if(e&1&&(d(0),l(1,"convertTemp"),l(2,"number"),l(3,"uppercase")),e&2){let t=u();N(" ",ce(2,4,c(1,2,t.service.values.CurrentTemperature),"1.0-1"),"\xB0",c(3,7,t.temperatureUnits)," ")}}function rc(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.no_data")," ")}var An=(()=>{class e{$settings=F(Ve);service;temperatureUnits=this.$settings.env.temperatureUnits;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-temperature-sensor"]],inputs:{service:"service"},decls:34,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x1","16","y1","5","x2","16","y2","17","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["cx","16","cy","20","r","3","stroke","#7f7f7f","stroke-width","1.2","fill","#1976d2","fill-opacity","0.5"],["x1","9","y1","6","x2","13","y2","6","stroke","#7f7f7f","stroke-width","0.8"],["x1","9","y1","9","x2","13","y2","9","stroke","#7f7f7f","stroke-width","0.8"],["x1","9","y1","12","x2","13","y2","12","stroke","#7f7f7f","stroke-width","0.8"],["x1","9","y1","15","x2","13","y2","15","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","6","x2","23","y2","6","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","9","x2","23","y2","9","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","12","x2","23","y2","12","stroke","#7f7f7f","stroke-width","0.8"],["x1","19","y1","15","x2","23","y2","15","stroke","#7f7f7f","stroke-width","0.8"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(a,i){a&1&&(ve(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),A(),ve(4,"svg",3),Me(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),Ce()(),H(),ve(29,"div",28),d(30),Ce(),ve(31,"div",29),x(32,oc,4,9)(33,rc,2,3),Ce()()()),a&2&&(r(2),b("aria-label",c(3,3,"accessories.core.temperature_sensor")),r(28),g(i.service.customName||i.service.serviceName),r(2),_("CurrentTemperature"in i.service.values?32:33))},dependencies:[Ee,Ae,De,T],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 vt=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function ac(e,n){if(e&1&&d(0),e&2){let t=u();C(" \xB7 ",t.service.values.CurrentRelativeHumidity,"% ")}}function sc(e,n){if(e&1){let t=O();o(0,"button",10),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(0,i))}),o(1,"div",11),m(2,"i",12),s(),d(3),l(4,"translate"),o(5,"div",13),m(6,"i",14),s()()}if(e&2){let t=u();r(2),f("ngClass",D(4,vt,t.targetMode===0,t.targetMode!==0)),r(),C(" ",c(4,2,"accessories.control.off")," ")}}function lc(e,n){if(e&1){let t=O();o(0,"button",10),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(3,i))}),o(1,"div",11),m(2,"i",12),s(),d(3),l(4,"translate"),o(5,"div",13),m(6,"i",14),s()()}if(e&2){let t=u();r(2),f("ngClass",D(4,vt,t.targetMode===3,t.targetMode!==3)),r(),C(" ",c(4,2,"accessories.control.auto")," ")}}function cc(e,n){if(e&1){let t=O();o(0,"button",10),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(1,i))}),o(1,"div",11),m(2,"i",12),s(),d(3),l(4,"translate"),o(5,"div",13),m(6,"i",14),s()()}if(e&2){let t=u();r(2),f("ngClass",D(4,vt,t.targetMode===1,t.targetMode!==1)),r(),C(" ",c(4,2,"accessories.control.heat")," ")}}function dc(e,n){if(e&1){let t=O();o(0,"button",10),y("click",function(i){M(t);let p=u();return E(p.setTargetMode(2,i))}),o(1,"div",11),m(2,"i",12),s(),d(3),l(4,"translate"),o(5,"div",13),m(6,"i",14),s()()}if(e&2){let t=u();r(2),f("ngClass",D(4,vt,t.targetMode===2,t.targetMode!==2)),r(),C(" ",c(4,2,"accessories.control.cool")," ")}}function pc(e,n){if(e&1){let t=O();o(0,"h6",15),d(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),s(),o(6,"nouislider",16),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetTemperature.value,i)||(p.targetTemperature.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onTemperatureStateChange())}),s()}if(e&2){let t=u();r(),He(" ",c(2,7,"accessories.control.target"),": ",ce(4,11,c(3,9,t.targetTemperature.value),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),r(5),f("min",t.targetTemperature.min)("max",t.targetTemperature.max)("step",t.targetTemperature.step),G("ngModel",t.targetTemperature.value)}}function mc(e,n){if(e&1){let t=O();o(0,"h6",17),d(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),l(6,"convertTemp"),l(7,"number"),l(8,"uppercase"),s(),o(9,"nouislider",16),q("ngModelChange",function(i){M(t);let p=u(2);return z(p.autoTemp,i)||(p.autoTemp=i),E(i)}),y("ngModelChange",function(){M(t);let i=u(2);return E(i.onAutoThresholdStateChange())}),s()}if(e&2){let t=u(2);r(),ot(" ",c(2,9,"accessories.control.threshold_auto"),": ",ce(4,13,c(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",c(5,16,t.temperatureUnits)," - ",ce(7,20,c(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",c(8,23,t.temperatureUnits)," "),r(8),f("min",t.HeatingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),G("ngModel",t.autoTemp)}}function uc(e,n){if(e&1){let t=O();o(0,"h6",15),d(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),s(),o(6,"nouislider",16),q("ngModelChange",function(i){M(t);let p=u(2);return z(p.targetHeatingTemp,i)||(p.targetHeatingTemp=i),E(i)}),y("ngModelChange",function(){M(t);let i=u(2);return E(i.onThresholdStateChange())}),s()}if(e&2){let t=u(2);r(),He(" ",c(2,7,"accessories.control.threshold_auto"),": ",ce(4,11,c(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),r(5),f("min",t.HeatingThresholdTemperature.minValue)("max",t.HeatingThresholdTemperature.maxValue)("step",t.HeatingThresholdTemperature.minStep),G("ngModel",t.targetHeatingTemp)}}function fc(e,n){if(e&1){let t=O();o(0,"h6",15),d(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),s(),o(6,"nouislider",16),q("ngModelChange",function(i){M(t);let p=u(2);return z(p.targetCoolingTemp,i)||(p.targetCoolingTemp=i),E(i)}),y("ngModelChange",function(){M(t);let i=u(2);return E(i.onThresholdStateChange())}),s()}if(e&2){let t=u(2);r(),He(" ",c(2,7,"accessories.control.threshold_auto"),": ",ce(4,11,c(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",c(5,14,t.temperatureUnits)," "),r(5),f("min",t.CoolingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),G("ngModel",t.targetCoolingTemp)}}function vc(e,n){if(e&1&&x(0,mc,10,25)(1,uc,7,16)(2,fc,7,16),e&2){let t=u();_(t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?0:t.HeatingThresholdTemperature&&!t.CoolingThresholdTemperature?1:!t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?2:-1)}}var In=(()=>{class e{$activeModal=F(Y);$settings=F(Ve);service;targetMode;targetTemperature;targetTemperatureChanged=new ee;targetThresholdChanged=new ee;targetStateValidValues=[];CoolingThresholdTemperature;HeatingThresholdTemperature;targetCoolingTemp;targetHeatingTemp;autoTemp;hasHumidity=!1;temperatureUnits=this.$settings.env.temperatureUnits;constructor(){this.targetTemperatureChanged.pipe(te(500)).subscribe(()=>{this.service.getCharacteristic("TargetTemperature").setValue(this.targetTemperature.value)}),this.targetThresholdChanged.pipe(te(500)).subscribe(()=>{this.HeatingThresholdTemperature&&this.service.getCharacteristic("HeatingThresholdTemperature").setValue(this.targetHeatingTemp),this.CoolingThresholdTemperature&&this.service.getCharacteristic("CoolingThresholdTemperature").setValue(this.targetCoolingTemp)})}ngOnInit(){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),setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(a=>{a.style.background="linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))"})},10)}setTargetMode(t,a){this.targetMode=t,this.service.getCharacteristic("TargetHeatingCoolingState").setValue(this.targetMode),a.target.blur()}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)}dismissModal(){this.$activeModal.dismiss("Dismiss")}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]}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:22,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"],[1,"mt-2","mb-4","fs-4"],[1,"fas","fa-fw","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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","fa-xl","fa-blank"],[1,"mt-4"],[3,"ngModelChange","min","max","step","ngModel"],[1,"mt-4","mb-1"]],template:function(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"h6",5),m(7,"i",6),d(8),l(9,"convertTemp"),l(10,"number"),l(11,"uppercase"),x(12,ac,1,1),s(),o(13,"div",7),l(14,"translate"),x(15,sc,7,7,"button",8),x(16,lc,7,7,"button",8),x(17,cc,7,7,"button",8),x(18,dc,7,7,"button",8),s(),x(19,pc,7,16),x(20,vc,3,1),s(),m(21,"div",9),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,12,"form.button_close")),r(5),N("",ce(10,16,c(9,14,i.service.values.CurrentTemperature),"1.0-1"),"\xB0",c(11,19,i.temperatureUnits)," "),r(4),_(i.hasHumidity?12:-1),r(),b("aria-label",c(14,21,"accessories.control.mode_control")),r(2),_(i.targetStateValidValues.includes(0)?15:-1),r(),_(i.targetStateValidValues.includes(3)?16:-1),r(),_(i.targetStateValidValues.includes(1)?17:-1),r(),_(i.targetStateValidValues.includes(2)?18:-1),r(),_("TargetTemperature"in i.service.values?19:-1),r(),_(i.targetStateValidValues.includes(3)?20:-1))},dependencies:[B,Q,oe,re,ae,Ee,T,Ae,De],encapsulation:2})}return e})();var gc=e=>({"accessory-on":e});function hc(e,n){if(e&1&&(A(),o(0,"text",18),d(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase"),s()),e&2){let t=u();r(),N(" ",ce(3,4,c(2,2,t.service.values.CurrentTemperature),"1.0-1"),"\xB0",c(4,7,t.temperatureUnits)," ")}}function Cc(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.off")," ")}function xc(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.heat")," ")}function _c(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.cool")," ")}function yc(e,n){if(e&1&&(m(0,"i",21),d(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase")),e&2){let t=u();r(),N(" ",ce(3,4,c(2,2,t.service.values.TargetTemperature),"1.0-1"),"\xB0",c(4,7,t.temperatureUnits)," ")}}var Pn=(()=>{class e{$modal=F(X);$settings=F(Ve);service;readyForControl=!1;temperatureUnits=this.$settings.env.temperatureUnits;onClick(){if(!this.readyForControl)return;let t=this.$modal.open(In,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-thermostat"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:30,vars:10,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),m(8,"animate",6),s(),o(9,"stop",7),m(10,"animate",8),s(),o(11,"stop",9),m(12,"animate",6),s()(),o(13,"linearGradient",10)(14,"stop",11),m(15,"animate",12),s(),o(16,"stop",13),m(17,"animate",14),s(),o(18,"stop",15),m(19,"animate",12),s()()(),m(20,"rect",16)(21,"rect",17),x(22,hc,5,9,":svg:text",18),s()(),H(),o(23,"div",19),d(24),s(),o(25,"div",20),x(26,Cc,2,3)(27,xc,2,3)(28,_c,2,3)(29,yc,5,9),s()()()),a&2&&(f("ngClass",U(8,gc,i.service.values.TargetHeatingCoolingState>0)),r(2),b("aria-label",c(3,6,"accessories.core.thermostat")),r(19),b("fill",i.service.values.TargetHeatingCoolingState===2?"url(#coolingGradient)":i.service.values.TargetHeatingCoolingState===1?"url(#heatingGradient)":i.service.values.TargetHeatingCoolingState===3?"#42d672":"#7b7b7b"),r(),_("CurrentTemperature"in i.service.values?22:-1),r(2),g(i.service.customName||i.service.serviceName),r(2),_(i.service.values.TargetHeatingCoolingState===0?26:i.service.values.TargetHeatingCoolingState===1?27:i.service.values.TargetHeatingCoolingState===2?28:i.service.values.TargetHeatingCoolingState===3?29:-1))},dependencies:[$,B,Ee,T,Ae,De],encapsulation:2})}return e})();var Fn=(()=>{class e{service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-unknown"]],inputs:{service:"service"},decls:10,vars:3,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","16","cy","16","r","14","fill","none","stroke","#7f7f7f","stroke-width","1.5"],["d",`M12.2575393,17.7112593
|
|
25
|
+
L12.1868707,17.7112593
|
|
26
|
+
C11.0779698,17.7112593 10.6478221,16.9467914 11.2212184,16.0037726
|
|
27
|
+
L16.4805582,7.35415962
|
|
28
|
+
C17.67876,5.38357359 18.0624739,5.55948915 17.3376772,7.746963
|
|
29
|
+
L15.7252918,12.6132252
|
|
30
|
+
C15.3772095,13.6637556 15.9942825,14.5048291 17.0992511,14.5048291
|
|
31
|
+
L20.1977772,14.5048291
|
|
32
|
+
L20.1846183,14.5177121
|
|
33
|
+
L20.2552868,14.5177121
|
|
34
|
+
C21.3641878,14.5177121 21.7943355,15.2821799 21.2209392,16.2251988
|
|
35
|
+
L16.1844844,24.5082506
|
|
36
|
+
C14.864477,26.6791606 14.4411534,26.4839632 15.241777,24.0676402
|
|
37
|
+
L16.7168658,19.6157462
|
|
38
|
+
C17.0649481,18.5652158 16.447875,17.7241422 15.3429064,17.7241422
|
|
39
|
+
L12.2443804,17.7241422
|
|
40
|
+
L12.2575393,17.7112593 Z`,"fill","#7f7f7f"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(a,i){a&1&&(ve(0,"div",0)(1,"div",1)(2,"div",2),A(),ve(3,"svg",3),Me(4,"circle",4)(5,"path",5),Ce()(),H(),ve(6,"div",6),d(7),Ce(),ve(8,"div",7),d(9),Ce()()()),a&2&&(r(2),b("aria-label",i.service.humanType),r(5),g(i.service.customName||i.service.serviceName),r(2),g(i.service.humanType))},encapsulation:2})}return e})();var Hn=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function kc(e,n){if(e&1){let t=O();o(0,"h6"),d(1),l(2,"translate"),l(3,"duration"),s(),o(4,"nouislider",12),q("ngModelChange",function(i){M(t);let p=u();return z(p.targetSetDuration.value,i)||(p.targetSetDuration.value=i),E(i)}),y("ngModelChange",function(){M(t);let i=u();return E(i.onSetDurationStateChange())}),s()}if(e&2){let t=u();r(),N(" ",c(2,6,"accessories.control.set_duration"),": ",t.targetSetDuration.value===0?"\u221E":c(3,8,t.targetSetDuration.value)," "),r(3),f("min",t.targetSetDuration.min)("max",t.targetSetDuration.max)("step",15),G("ngModel",t.targetSetDuration.value)}}var Ln=(()=>{class e{$activeModal=F(Y);service;targetMode;targetSetDuration;targetSetDurationChanged=new ee;constructor(){this.targetSetDurationChanged.pipe(te(500)).subscribe(()=>{this.service.getCharacteristic("SetDuration").setValue(this.targetSetDuration.value)})}ngOnInit(){this.targetMode=this.service.values.Active,this.loadTargetSetDuration()}setTargetMode(t,a){this.targetMode=t,this.service.getCharacteristic("Active").setValue(this.targetMode),a.target.blur()}onSetDurationStateChange(){this.targetSetDurationChanged.next(this.targetSetDuration.value)}dismissModal(){this.$activeModal.dismiss("Dismiss")}loadTargetSetDuration(){let t=this.service.getCharacteristic("SetDuration");t&&(this.targetSetDuration={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},setTimeout(()=>{let a=document.querySelectorAll(".noUi-target")[0];a&&(a.style.background="linear-gradient(to right, #add8e6, #416bdf)")},10))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:24,vars:22,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-fw","fa-xl",3,"ngClass"],[1,"float-end"],[1,"fas","fa-fw","fa-xl","fa-blank"],[1,"modal-footer"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5),l(7,"translate"),o(8,"button",6),y("click",function(S){return i.setTargetMode(!1,S)}),o(9,"div",7),m(10,"i",8),s(),d(11),l(12,"translate"),o(13,"div",9),m(14,"i",10),s()(),o(15,"button",6),y("click",function(S){return i.setTargetMode(!0,S)}),o(16,"div",7),m(17,"i",8),s(),d(18),l(19,"translate"),o(20,"div",9),m(21,"i",10),s()()(),x(22,kc,5,10),s(),m(23,"div",11),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,8,"form.button_close")),r(3),b("aria-label",c(7,10,"accessories.control.mode_control")),r(4),f("ngClass",D(16,Hn,!i.targetMode,i.targetMode)),r(),C(" ",c(12,12,"accessories.control.off")," "),r(6),f("ngClass",D(19,Hn,i.targetMode,!i.targetMode)),r(),C(" ",c(19,14,"accessories.control.on")," "),r(4),_(i.targetSetDuration?22:-1))},dependencies:[Q,oe,re,ae,B,T,ut],encapsulation:2})}return e})();var Sc=e=>({"accessory-on":e});function bc(e,n){e&1&&(o(0,"div",2),l(1,"translate"),A(),o(2,"svg",5),m(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),s()()),e&2&&b("aria-label",c(1,1,"accessories.core.generic_valve"))}function wc(e,n){e&1&&(o(0,"div",2),l(1,"translate"),A(),o(2,"svg",5),m(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),s()()),e&2&&b("aria-label",c(1,1,"accessories.core.irrigation_valve"))}function Tc(e,n){e&1&&(o(0,"div",2),l(1,"translate"),A(),o(2,"svg",5),m(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),s()()),e&2&&b("aria-label",c(1,1,"accessories.core.shower_head_valve"))}function Mc(e,n){e&1&&(o(0,"div",2),l(1,"translate"),A(),o(2,"svg",5),m(3,"rect",46)(4,"line",47)(5,"line",48)(6,"rect",49)(7,"path",50)(8,"line",51)(9,"line",52),s()()),e&2&&b("aria-label",c(1,1,"accessories.core.faucet_valve"))}function Ec(e,n){if(e&1&&(o(0,"div",4),d(1),s()),e&2){let t=u();r(),g(t.remainingDuration)}}function Vc(e,n){e&1&&(o(0,"div",4),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.running")))}function Bc(e,n){e&1&&(o(0,"div",4),d(1),l(2,"translate"),s()),e&2&&(r(),g(c(2,1,"accessories.control.off")))}var On=(()=>{class e{$modal=F(X);service;readyForControl=!1;secondsActive=0;remainingDuration;remainingDurationInterval=ti(1e3).pipe(ii(()=>this.isActive()));remainingDurationSubscription;ngOnInit(){"SetDuration"in this.service.values&&this.setupRemainingDurationCounter()}onClick(){this.readyForControl&&("Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!this.service.values.On))}onLongClick(){if(this.readyForControl&&"SetDuration"in this.service.values){let t=this.$modal.open(Ln,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}ngOnDestroy(){this.remainingDurationSubscription&&this.remainingDurationSubscription.unsubscribe()}isActive(){return this.service.values.Active?!0:(this.resetRemainingDuration(),!1)}setupRemainingDurationCounter(){this.remainingDurationSubscription=this.remainingDurationInterval.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(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-valve"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:11,vars:6,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1),x(2,bc,13,3,"div",2)(3,wc,16,3,"div",2)(4,Tc,20,3,"div",2)(5,Mc,10,3,"div",2),o(6,"div",3),d(7),s(),x(8,Ec,2,1,"div",4)(9,Vc,3,3,"div",4)(10,Bc,3,3,"div",4),s()()),a&2&&(f("ngClass",U(4,Sc,i.service.values.Active||i.service.values.On)),r(2),_(i.service.values.ValveType===0||!i.service.values.ValveType?2:i.service.values.ValveType===1?3:i.service.values.ValveType===2?4:i.service.values.ValveType===3?5:-1),r(5),C(" ",i.service.customName||i.service.values.ConfiguredName||i.service.serviceName," "),r(),_(i.service.values.Active&&i.remainingDuration?8:i.service.values.Active&&!i.remainingDuration||i.service.values.On?9:10))},dependencies:[$,B,T],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 Dc=e=>({"accessory-on":e}),Nn=(()=>{class e{service;readyForControl=!1;onClick(){this.readyForControl&&("On"in this.service.values?this.service.getCharacteristic("On").setValue(!this.service.values.On):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.service.values.Active?0:1))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-washing-machine"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:22,vars:10,consts:[["tabindex","0",1,"accessory-box",3,"shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(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),s()(),H(),o(18,"div",17),d(19),s(),m(20,"div",18),l(21,"translate"),s()()),a&2&&(f("ngClass",U(8,Dc,i.service.values.On||i.service.values.Active)),r(2),b("aria-label",c(3,4,"accessories.core.washing_machine")),r(17),g(i.service.customName||i.service.serviceName),r(),f("innerText",c(21,6,i.service.values.On||i.service.values.Active?"accessories.control.on":"accessories.control.off")))},dependencies:[$,B,T],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 Ac(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.closed")," ")}function Ic(e,n){if(e&1&&(d(0),l(1,"translate")),e&2){let t=u(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function Pc(e,n){if(e&1&&x(0,Ac,2,3)(1,Ic,2,4),e&2){let t=u();_(t.service.values.CurrentPosition===0?0:1)}}function Fc(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.opening"),"... ")}function Hc(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.closing"),"... ")}var Rn=(()=>{class e{$activeModal=F(Y);service;targetMode;targetPositionChanged=new ee;targetPosition;constructor(){this.targetPositionChanged.pipe(te(500)).subscribe(()=>{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)})}ngOnInit(){this.targetMode=this.service.values.On,this.loadTargetPosition()}onTargetPositionChange(){this.targetPositionChanged.next(this.targetPosition.value)}dismissModal(){this.$activeModal.dismiss("Dismiss")}loadTargetPosition(){let t=this.service.getCharacteristic("TargetPosition");t&&(this.targetPosition={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(i=>{i.style.background="linear-gradient(to right, #242424, #ffd6aa)"})},10))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},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(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5)(7,"div",6),x(8,Pc,2,1)(9,Fc,2,3)(10,Hc,2,3),s()(),o(11,"h6",7),d(12),l(13,"translate"),s(),o(14,"nouislider",8),q("ngModelChange",function(S){return z(i.targetPosition.value,S)||(i.targetPosition.value=S),S}),y("ngModelChange",function(){return i.onTargetPositionChange()}),s(),o(15,"div",9)(16,"span",10),d(17),l(18,"translate"),s(),o(19,"span",10),d(20),l(21,"translate"),s()(),o(22,"h6",7),d(23),l(24,"translate"),s(),o(25,"nouislider",11),q("ngModelChange",function(S){return z(i.service.getCharacteristic("CurrentPosition").value,S)||(i.service.getCharacteristic("CurrentPosition").value=S),S}),s(),o(26,"div",9)(27,"span",10),d(28),l(29,"translate"),s(),o(30,"span",10),d(31),l(32,"translate"),s()()(),m(33,"div",12),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,20,"form.button_close")),r(5),_(i.service.values.PositionState===2?8:i.service.values.PositionState===1?9:i.service.values.PositionState===0?10:-1),r(4),N("",c(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),r(2),f("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),G("ngModel",i.targetPosition.value),r(3),g(c(18,24,"accessories.control.closed")),r(3),g(c(21,26,"accessories.control.open")),r(3),N(" ",c(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),r(2),f("min",0)("max",100)("step",1)("disabled",!0),G("ngModel",i.service.getCharacteristic("CurrentPosition").value),r(3),g(c(29,30,"accessories.control.closed")),r(3),g(c(32,32,"accessories.control.open")))},dependencies:[ae,Q,oe,re,T],encapsulation:2})}return e})();var Lc=e=>({"accessory-on":e});function Oc(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.closed")," ")}function Nc(e,n){if(e&1&&(d(0),l(1,"translate")),e&2){let t=u(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.values.CurrentPosition,"% ")}}function Rc(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.open")," ")}function Wc(e,n){if(e&1&&(o(0,"div",12),x(1,Oc,2,3),x(2,Nc,2,4),x(3,Rc,2,3),s()),e&2){let t=u();r(),_(t.service.values.CurrentPosition===0?1:-1),r(),_(t.service.values.CurrentPosition>0&&t.service.values.CurrentPosition<100?2:-1),r(),_(t.service.values.CurrentPosition===100?3:-1)}}function jc(e,n){e&1&&(o(0,"div",13),d(1),l(2,"translate"),s()),e&2&&(r(),C("",c(2,1,"accessories.control.opening"),"..."))}function Uc(e,n){e&1&&(o(0,"div",13),d(1),l(2,"translate"),s()),e&2&&(r(),C("",c(2,1,"accessories.control.closing"),"..."))}var Wn=(()=>{class e{$modal=F(X);service;readyForControl=!1;onClick(){this.readyForControl&&(this.service.values.TargetPosition?this.service.getCharacteristic("TargetPosition").setValue(0):this.service.getCharacteristic("TargetPosition").setValue(100))}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(Rn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-window-covering"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:17,vars:8,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"rect",8)(10,"rect",9)(11,"rect",10),s()(),H(),o(12,"div",11),d(13),s(),x(14,Wc,4,3,"div",12)(15,jc,3,3,"div",13)(16,Uc,3,3,"div",13),s()()),a&2&&(f("ngClass",U(6,Lc,i.service.values.CurrentPosition)),r(2),b("aria-label",c(3,4,"accessories.core.window_covering")),r(11),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.PositionState===2?14:i.service.values.PositionState===1?15:i.service.values.PositionState===0?16:-1))},dependencies:[$,B,T],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 $c(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.closed")," ")}function Gc(e,n){if(e&1&&(d(0),l(1,"translate")),e&2){let t=u(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function zc(e,n){if(e&1&&x(0,$c,2,3)(1,Gc,2,4),e&2){let t=u();_(t.service.values.CurrentPosition===0?0:1)}}function qc(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.opening"),"... ")}function Zc(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.closing"),"... ")}var jn=(()=>{class e{$activeModal=F(Y);service;targetMode;targetPositionChanged=new ee;targetPosition;constructor(){this.targetPositionChanged.pipe(te(500)).subscribe(()=>{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)})}ngOnInit(){this.targetMode=this.service.values.On,this.loadTargetPosition()}onTargetPositionChange(){this.targetPositionChanged.next(this.targetPosition.value)}dismissModal(){this.$activeModal.dismiss("Dismiss")}loadTargetPosition(){let t=this.service.getCharacteristic("TargetPosition");t&&(this.targetPosition={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(i=>{i.style.background="linear-gradient(to right, #242424, #ffd6aa)"})},10))}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["ng-component"]],inputs:{service:"service"},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(a,i){a&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),l(4,"translate"),y("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5)(7,"div",6),x(8,zc,2,1)(9,qc,2,3)(10,Zc,2,3),s()(),o(11,"h6",7),d(12),l(13,"translate"),s(),o(14,"nouislider",8),q("ngModelChange",function(S){return z(i.targetPosition.value,S)||(i.targetPosition.value=S),S}),y("ngModelChange",function(){return i.onTargetPositionChange()}),s(),o(15,"div",9)(16,"span",10),d(17),l(18,"translate"),s(),o(19,"span",10),d(20),l(21,"translate"),s()(),o(22,"h6",7),d(23),l(24,"translate"),s(),o(25,"nouislider",11),q("ngModelChange",function(S){return z(i.service.getCharacteristic("CurrentPosition").value,S)||(i.service.getCharacteristic("CurrentPosition").value=S),S}),s(),o(26,"div",9)(27,"span",10),d(28),l(29,"translate"),s(),o(30,"span",10),d(31),l(32,"translate"),s()()(),m(33,"div",12),s()),a&2&&(r(2),f("innerText",i.service.customName||i.service.serviceName),r(),b("aria-label",c(4,20,"form.button_close")),r(5),_(i.service.values.PositionState===2?8:i.service.values.PositionState===1?9:i.service.values.PositionState===0?10:-1),r(4),N("",c(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),r(2),f("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),G("ngModel",i.targetPosition.value),r(3),g(c(18,24,"accessories.control.closed")),r(3),g(c(21,26,"accessories.control.open")),r(3),N(" ",c(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),r(2),f("min",0)("max",100)("step",1)("disabled",!0),G("ngModel",i.service.getCharacteristic("CurrentPosition").value),r(3),g(c(29,30,"accessories.control.closed")),r(3),g(c(32,32,"accessories.control.open")))},dependencies:[ae,Q,oe,re,T],encapsulation:2})}return e})();var Kc=e=>({"accessory-on":e});function Qc(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.closed")," ")}function Yc(e,n){if(e&1&&(d(0),l(1,"translate")),e&2){let t=u(2);N(" ",c(1,2,"accessories.control.open")," ",t.service.values.CurrentPosition,"% ")}}function Xc(e,n){e&1&&(d(0),l(1,"translate")),e&2&&C(" ",c(1,1,"accessories.control.open")," ")}function Jc(e,n){if(e&1&&(o(0,"div",12),x(1,Qc,2,3),x(2,Yc,2,4),x(3,Xc,2,3),s()),e&2){let t=u();r(),_(t.service.values.CurrentPosition===0?1:-1),r(),_(t.service.values.CurrentPosition>0&&t.service.values.CurrentPosition<100?2:-1),r(),_(t.service.values.CurrentPosition===100?3:-1)}}function e0(e,n){e&1&&(o(0,"div",13),d(1),l(2,"translate"),s()),e&2&&(r(),C("",c(2,1,"accessories.control.opening"),"..."))}function t0(e,n){e&1&&(o(0,"div",13),d(1),l(2,"translate"),s()),e&2&&(r(),C("",c(2,1,"accessories.control.closing"),"..."))}var Un=(()=>{class e{$modal=F(X);service;readyForControl=!1;onClick(){this.readyForControl&&(this.service.values.TargetPosition?this.service.getCharacteristic("TargetPosition").setValue(0):this.service.getCharacteristic("TargetPosition").setValue(100))}onLongClick(){if(!this.readyForControl)return;let t=this.$modal.open(jn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-window"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:17,vars:8,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[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(a,i){a&1&&(o(0,"div",0),y("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),l(3,"translate"),A(),o(4,"svg",3),m(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"rect",8)(10,"rect",9)(11,"rect",10),s()(),H(),o(12,"div",11),d(13),s(),x(14,Jc,4,3,"div",12)(15,e0,3,3,"div",13)(16,t0,3,3,"div",13),s()()),a&2&&(f("ngClass",U(6,Kc,i.service.values.CurrentPosition)),r(2),b("aria-label",c(3,4,"accessories.core.window")),r(11),g(i.service.customName||i.service.serviceName),r(),_(i.service.values.PositionState===2?14:i.service.values.PositionState===1?15:i.service.values.PositionState===0?16:-1))},dependencies:[$,B,T],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})();function i0(e,n){if(e&1){let t=O();o(0,"a",6),y("click",function(){M(t);let i=u();return E(i.$accessories.showAccessoryInformation(i.service))}),m(1,"i",7),s()}}function n0(e,n){e&1&&m(0,"i",1)}function o0(e,n){if(e&1&&(o(0,"app-switch",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.switch"))}}function r0(e,n){if(e&1&&(o(0,"app-thermostat",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.thermostat"))}}function a0(e,n){if(e&1&&(o(0,"app-outlet",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.outlet"))}}function s0(e,n){if(e&1&&(o(0,"app-fan",3),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.fan"))}}function l0(e,n){if(e&1&&(o(0,"app-fan",3),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.fan"))}}function c0(e,n){if(e&1&&(o(0,"app-air-purifier",3),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.air_purifier"))}}function d0(e,n){if(e&1&&(o(0,"app-lightbulb",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.lightbulb"))}}function p0(e,n){if(e&1&&(o(0,"app-light-sensor",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.light_sensor"))}}function m0(e,n){if(e&1&&(o(0,"app-lock-mechanism",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.lock_mechanism"))}}function u0(e,n){if(e&1&&(o(0,"app-temperature-sensor",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.temperature_sensor"))}}function f0(e,n){if(e&1&&(o(0,"app-garage-door-opener",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.garage_door_opener"))}}function v0(e,n){if(e&1&&(o(0,"app-motion-sensor",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.motion_sensor"))}}function g0(e,n){if(e&1&&(o(0,"app-occupancy-sensor",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.occupancy_sensor"))}}function h0(e,n){if(e&1&&(o(0,"app-contact-sensor",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.contact_sensor"))}}function C0(e,n){if(e&1&&(o(0,"app-humidity-sensor",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.humidity_sensor"))}}function x0(e,n){if(e&1&&(o(0,"app-air-quality-sensor",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.air_quality_sensor"))}}function _0(e,n){if(e&1&&(o(0,"app-window-covering",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.window_covering"))}}function y0(e,n){if(e&1&&(o(0,"app-window",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.window"))}}function k0(e,n){if(e&1&&(o(0,"app-door",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.door"))}}function S0(e,n){if(e&1&&(o(0,"app-television",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.television"))}}function b0(e,n){if(e&1&&(o(0,"app-battery",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.battery"))}}function w0(e,n){if(e&1&&(o(0,"app-battery",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.battery"))}}function T0(e,n){if(e&1&&(o(0,"app-speaker",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.speaker"))}}function M0(e,n){if(e&1&&(o(0,"app-speaker",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.speaker"))}}function E0(e,n){if(e&1&&(o(0,"app-doorbell",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.doorbell"))}}function V0(e,n){if(e&1&&(o(0,"app-microphone",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.microphone"))}}function B0(e,n){if(e&1&&(o(0,"app-security-system",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.security_system"))}}function D0(e,n){if(e&1&&(o(0,"app-leak-sensor",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.leak_sensor"))}}function A0(e,n){if(e&1&&(o(0,"app-smoke-sensor",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.smoke_sensor"))}}function I0(e,n){if(e&1&&(o(0,"app-carbon-monoxide-sensor",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.carbon_monoxide_sensor"))}}function P0(e,n){if(e&1&&(o(0,"app-carbon-dioxide-sensor",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.carbon_dioxide_sensor"))}}function F0(e,n){if(e&1&&(o(0,"app-valve",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.valve"))}}function H0(e,n){if(e&1&&(o(0,"app-irrigation-system",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.irrigation_system"))}}function L0(e,n){if(e&1&&(o(0,"app-heater-cooler",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.heater_cooler"))}}function O0(e,n){if(e&1&&(o(0,"app-heater-cooler",5),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("type","heater")("readyForControl",t.$accessories.readyForControl),r(),g(c(2,4,"accessories.core.heater"))}}function N0(e,n){if(e&1&&(o(0,"app-heater-cooler",5),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("type","cooler")("readyForControl",t.$accessories.readyForControl),r(),g(c(2,4,"accessories.core.cooler"))}}function R0(e,n){if(e&1&&(o(0,"app-humidifier-dehumidifier",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.humidifier_dehumidifier"))}}function W0(e,n){if(e&1&&(o(0,"app-humidifier-dehumidifier",5),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("type","humidifier")("readyForControl",t.$accessories.readyForControl),r(),g(c(2,4,"accessories.core.humidifier"))}}function j0(e,n){if(e&1&&(o(0,"app-humidifier-dehumidifier",5),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("type","dehumidifier")("readyForControl",t.$accessories.readyForControl),r(),g(c(2,4,"accessories.core.dehumidifier"))}}function U0(e,n){if(e&1&&(o(0,"app-stateless-programmable-switch",4),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service),r(),g(c(2,2,"accessories.core.stateless_programmable_switch"))}}function $0(e,n){if(e&1&&(o(0,"app-filter-maintenance",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.filter_maintenance"))}}function G0(e,n){if(e&1&&(o(0,"app-robot-vacuum",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.robot_vacuum"))}}function z0(e,n){if(e&1&&(o(0,"app-washing-machine",2),d(1),l(2,"translate"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl),r(),g(c(2,3,"accessories.core.washing_machine"))}}function q0(e,n){if(e&1&&(o(0,"app-unknown",4),d(1),s()),e&2){let t=u();f("service",t.service),r(),g(t.service.humanType)}}var Hg=(()=>{class e{$accessories=F(bi);service;static \u0275fac=function(a){return new(a||e)};static \u0275cmp=w({type:e,selectors:[["app-accessory-tile"]],inputs:{service:"service"},decls:47,vars:3,consts:[["href","javascript:void(0)",1,"manage-accessory-button"],[1,"fas","fa-fw","fa-spin","fa-sync-alt","refreshing-accessory-status-icon","grey-text"],[3,"service","readyForControl"],[1,"w-100",3,"service","readyForControl"],[3,"service"],[3,"service","type","readyForControl"],["href","javascript:void(0)",1,"manage-accessory-button",3,"click"],[1,"fas","fa-fw","fa-bars","grey-text"]],template:function(a,i){if(a&1&&(vi(0),x(1,i0,2,0,"a",0),x(2,n0,1,0,"i",1),x(3,o0,3,5,"app-switch",2)(4,r0,3,5,"app-thermostat",2)(5,a0,3,5,"app-outlet",2)(6,s0,3,5,"app-fan",3)(7,l0,3,5,"app-fan",3)(8,c0,3,5,"app-air-purifier",3)(9,d0,3,5,"app-lightbulb",2)(10,p0,3,4,"app-light-sensor",4)(11,m0,3,5,"app-lock-mechanism",2)(12,u0,3,4,"app-temperature-sensor",4)(13,f0,3,5,"app-garage-door-opener",2)(14,v0,3,4,"app-motion-sensor",4)(15,g0,3,4,"app-occupancy-sensor",4)(16,h0,3,4,"app-contact-sensor",4)(17,C0,3,4,"app-humidity-sensor",4)(18,x0,3,4,"app-air-quality-sensor",4)(19,_0,3,5,"app-window-covering",2)(20,y0,3,5,"app-window",2)(21,k0,3,5,"app-door",2)(22,S0,3,5,"app-television",2)(23,b0,3,4,"app-battery",4)(24,w0,3,4,"app-battery",4)(25,T0,3,5,"app-speaker",2)(26,M0,3,5,"app-speaker",2)(27,E0,3,5,"app-doorbell",2)(28,V0,3,5,"app-microphone",2)(29,B0,3,5,"app-security-system",2)(30,D0,3,4,"app-leak-sensor",4)(31,A0,3,4,"app-smoke-sensor",4)(32,I0,3,4,"app-carbon-monoxide-sensor",4)(33,P0,3,4,"app-carbon-dioxide-sensor",4)(34,F0,3,5,"app-valve",2)(35,H0,3,4,"app-irrigation-system",4)(36,L0,3,5,"app-heater-cooler",2)(37,O0,3,6,"app-heater-cooler",5)(38,N0,3,6,"app-heater-cooler",5)(39,R0,3,5,"app-humidifier-dehumidifier",2)(40,W0,3,6,"app-humidifier-dehumidifier",5)(41,j0,3,6,"app-humidifier-dehumidifier",5)(42,U0,3,4,"app-stateless-programmable-switch",4)(43,$0,3,5,"app-filter-maintenance",2)(44,G0,3,5,"app-robot-vacuum",2)(45,z0,3,5,"app-washing-machine",2)(46,q0,2,2,"app-unknown",4),gi()),a&2){let p;r(),_(i.$accessories.readyForControl?1:-1),r(),_(i.$accessories.readyForControl?-1:2),r(),_((p=i.service.customType||i.service.type)==="Switch"?3:p==="Thermostat"?4:p==="Outlet"?5:p==="Fan"?6:p==="Fanv2"?7:p==="AirPurifier"?8:p==="Lightbulb"?9:p==="LightSensor"?10:p==="LockMechanism"?11:p==="TemperatureSensor"?12:p==="GarageDoorOpener"?13:p==="MotionSensor"?14:p==="OccupancySensor"?15:p==="ContactSensor"?16:p==="HumiditySensor"?17:p==="AirQualitySensor"?18:p==="WindowCovering"?19:p==="Window"?20:p==="Door"?21:p==="Television"?22:p==="Battery"?23:p==="BatteryService"?24:p==="Speaker"?25:p==="SmartSpeaker"?26:p==="Doorbell"?27:p==="Microphone"?28:p==="SecuritySystem"?29:p==="LeakSensor"?30:p==="SmokeSensor"?31:p==="CarbonMonoxideSensor"?32:p==="CarbonDioxideSensor"?33:p==="Valve"?34:p==="IrrigationSystem"?35:p==="HeaterCooler"?36:p==="Heater"?37:p==="Cooler"?38:p==="HumidifierDehumidifier"?39:p==="Humidifier"?40:p==="Dehumidifier"?41:p==="StatelessProgrammableSwitch"?42:p==="FilterMaintenance"?43:p==="RobotVacuum"?44:p==="WashingMachine"?45:46)}},dependencies:[Vn,Pn,xn,Zi,Hi,cn,an,mn,An,Yi,gn,hn,Wi,nn,Li,Wn,Un,Ui,Dn,Oi,Tn,kn,rn,Sn,Ri,Ni,On,on,Ji,tn,Mn,Qi,zi,Fn,vn,_n,Nn,T],encapsulation:2})}return e})();export{Hg as a};
|