homebridge-config-ui-x 5.4.2-beta.7 → 5.4.2-beta.8
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 +5 -2
- package/package.json +10 -5
- package/public/{chunk-YTNU24TR.js → chunk-2BOBWHVT.js} +1 -1
- package/public/{chunk-AAAB34AQ.js → chunk-2GB56HTN.js} +1 -1
- package/public/{chunk-2L22XQX2.js → chunk-2OYNBG2N.js} +1 -1
- package/public/{chunk-QPF5PFRM.js → chunk-2RM2ZIP4.js} +1 -1
- package/public/{chunk-7SEIUUE7.js → chunk-3P4RM2BA.js} +1 -1
- package/public/{chunk-VBNG2YQZ.js → chunk-465U4FZV.js} +1 -1
- package/public/{chunk-BMX3HHRX.js → chunk-4NMZRHR6.js} +1 -1
- package/public/{chunk-4MSFCTVQ.js → chunk-4WAU3AJS.js} +1 -1
- package/public/{chunk-KCU6EMJC.js → chunk-55FCKDDQ.js} +1 -1
- package/public/{chunk-ZY6Y43WL.js → chunk-5TCYRJ6A.js} +1 -1
- package/public/{chunk-MFTJIWVF.js → chunk-6AV3Q7A4.js} +1 -1
- package/public/{chunk-KIMRA3K7.js → chunk-6GMXEQVA.js} +1 -1
- package/public/{chunk-2XWUBKEU.js → chunk-77JZBWAC.js} +1 -1
- package/public/{chunk-V2NELL63.js → chunk-AE7VAWOU.js} +1 -1
- package/public/chunk-BDFT33ET.js +1 -0
- package/public/chunk-BI3O3AIO.js +4 -0
- package/public/{chunk-RRPADCBT.js → chunk-BU65ZOCD.js} +1 -1
- package/public/{chunk-SRK7ZHJU.js → chunk-BYV54PEG.js} +1 -1
- package/public/{chunk-GHMXPHAP.js → chunk-CNMM42I5.js} +1 -1
- package/public/{chunk-CR4ZBYZW.js → chunk-D3JHDB7S.js} +1 -1
- package/public/{chunk-4F3BAQ5O.js → chunk-DASXSZCK.js} +1 -1
- package/public/{chunk-RMAGF64Q.js → chunk-DT2WDJ2I.js} +1 -1
- package/public/{chunk-QRNW5KEK.js → chunk-EA3EXGPZ.js} +1 -1
- package/public/{chunk-JWMUHHT5.js → chunk-F6PYAH7Z.js} +1 -1
- package/public/{chunk-KXDI62KE.js → chunk-FELMUB4D.js} +1 -1
- package/public/{chunk-FZEXQZ5N.js → chunk-FGCUDKSH.js} +1 -1
- package/public/{chunk-77UFZWOO.js → chunk-G7FA4DP4.js} +1 -1
- package/public/chunk-GKQ4M2JD.js +1 -0
- package/public/{chunk-3CKT2OQ7.js → chunk-H36QJYLQ.js} +3 -3
- package/public/{chunk-I4Z2M6DW.js → chunk-H3PPMCMP.js} +1 -1
- package/public/{chunk-IENA5L67.js → chunk-HG4HVFLB.js} +1 -1
- package/public/{chunk-6I6TS7NS.js → chunk-I2TETZLW.js} +1 -1
- package/public/{chunk-JQJAMZI2.js → chunk-I5ZTZWWC.js} +1 -1
- package/public/{chunk-6V5YFV75.js → chunk-ILM36GEA.js} +1 -1
- package/public/{chunk-WST3XDBS.js → chunk-JSC6PYTD.js} +1 -1
- package/public/{chunk-M425JDIT.js → chunk-LJCIV6Z3.js} +1 -1
- package/public/{chunk-QK4KTNPQ.js → chunk-LPHTUMGC.js} +1 -1
- package/public/{chunk-6OUDSSXN.js → chunk-LUUY2SYK.js} +1 -1
- package/public/{chunk-2AOMAYLO.js → chunk-LVUMUQV7.js} +1 -1
- package/public/chunk-LWTXCMFH.js +1 -0
- package/public/{chunk-BZOIXE5M.js → chunk-M5FWDVIL.js} +1 -1
- package/public/{chunk-EEI3BPIT.js → chunk-NFWGYMP7.js} +1 -1
- package/public/{chunk-OXSXPR4C.js → chunk-NJOBXAPT.js} +1 -1
- package/public/{chunk-SLXQKTB6.js → chunk-O3SGSKKI.js} +1 -1
- package/public/{chunk-27YDRGYU.js → chunk-OVKGLIQA.js} +1 -1
- package/public/{chunk-X2QQNXTE.js → chunk-PBA72Y7F.js} +1 -1
- package/public/{chunk-Z6JMYIUL.js → chunk-PSIKVTV4.js} +1 -1
- package/public/chunk-R5BOGDS2.js +30 -0
- package/public/{chunk-4NCLSTUB.js → chunk-RQFAIEO7.js} +1 -1
- package/public/{chunk-Z4TBQ5ME.js → chunk-RSIANNNF.js} +1 -1
- package/public/{chunk-TQMERWYR.js → chunk-SMYT4RBA.js} +1 -1
- package/public/{chunk-NJ4ZO76F.js → chunk-TGOCI72Q.js} +1 -1
- package/public/{chunk-J2JC6ZWM.js → chunk-TK3Z5QBS.js} +1 -1
- package/public/{chunk-YZHAZSGE.js → chunk-U6PYN4II.js} +1 -1
- package/public/{chunk-N6WB5CGQ.js → chunk-UHWT4HS2.js} +1 -1
- package/public/chunk-UOLP7IQJ.js +1 -0
- package/public/{chunk-QUBAEQEC.js → chunk-V2P2FPJ7.js} +1 -1
- package/public/{chunk-NWUQOZLK.js → chunk-WFXGDJ4B.js} +1 -1
- package/public/{chunk-KJFP33AO.js → chunk-WMTKD5YY.js} +1 -1
- package/public/{chunk-IA32PJPE.js → chunk-Y6KHINTU.js} +1 -1
- package/public/{chunk-YSS66NWX.js → chunk-Y752BA6L.js} +1 -1
- package/public/{chunk-ZRXHCE63.js → chunk-YAA5O4PJ.js} +1 -1
- package/public/{chunk-SRHJQ5GP.js → chunk-YATJTZML.js} +1 -1
- package/public/chunk-YLIPTO6D.js +40 -0
- package/public/{chunk-7UI7QM4V.js → chunk-YNFL6Q3L.js} +1 -1
- package/public/chunk-YRIAJM6Y.js +1 -0
- package/public/{chunk-UFVCERK3.js → chunk-ZHPB347D.js} +1 -1
- package/public/{chunk-Q4UWK2FE.js → chunk-ZMKY2XSO.js} +1 -1
- package/public/{chunk-NORLI5CD.js → chunk-ZNJ3LVKA.js} +1 -1
- package/public/index.html +2 -2
- package/public/{main-PCGBMA6M.js → main-RLR5VDBK.js} +1 -1
- package/public/{styles-LKRXKJ7O.css → styles-AUT3PDLG.css} +1 -1
- package/public/chunk-456M2QQG.js +0 -4
- package/public/chunk-4HFHNSTN.js +0 -1
- package/public/chunk-6WJPBOPW.js +0 -1
- package/public/chunk-7Q6VGFH2.js +0 -1
- package/public/chunk-BWN7SS7H.js +0 -30
- package/public/chunk-EQ64EQAS.js +0 -40
- package/public/chunk-TNZKTZDM.js +0 -1
- package/public/chunk-WZ6F47WI.js +0 -1
package/public/chunk-EQ64EQAS.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import{a as bi,b as Be,c as wi}from"./chunk-KXDI62KE.js";import{m as Y,n as X}from"./chunk-QRNW5KEK.js";import{a as Si,e as oe,l as re,z as Q}from"./chunk-GHMXPHAP.js";import{b as Ae}from"./chunk-M425JDIT.js";import{b as E}from"./chunk-77UFZWOO.js";import{$b as rt,Bc as _i,Ca as si,Cc as fe,Dc as U,Ec as D,Fa as li,Fc as Te,G as ii,Gc as st,H as ni,Hb as w,Hc as yi,Ib as x,Ic as ki,Jb as _,Jc as d,Kc as p,Lb as ui,Lc as ce,M as te,Mb as fi,Nb as vi,Ob as f,Pb as o,Q as oi,Qb as s,Rb as m,Sb as xe,Sc as Bt,Tb as Se,Ub as Pe,Vb as gi,Wb as hi,Xa as At,_b as O,ab as a,bc as C,dc as u,ea as ri,fa as ai,fb as ci,gb as ot,id as P,ka as F,mb as b,n as ee,o as ti,ob as di,oc as Ci,od as De,pb as pi,qa as M,qc as l,qd as Ee,ra as T,rc as k,sa as I,sc as h,ta as L,tc as j,ub as We,uc as Le,vb as mi,vc as xi,wc as at,xc as $,yc as G,zc as q}from"./chunk-3CKT2OQ7.js";var je=function(e){return e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values",e}(je||{}),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 xo(e){return ct(e)&&typeof e.from=="function"}function ct(e){return typeof e=="object"&&typeof e.to=="function"}function Mi(e){e.parentElement.removeChild(e)}function Ft(e){return e!=null}function Ti(e){e.preventDefault()}function _o(e){return e.filter(function(n){return this[n]?!1:this[n]=!0},{})}function yo(e,n){return Math.round(e/n)*n}function ko(e,n){var t=e.getBoundingClientRect(),r=e.ownerDocument,i=r.documentElement,c=Di(r);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(c.x=0),n?t.top+c.y-i.clientTop:t.left+c.x-i.clientLeft}function Ve(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}function Ei(e,n,t){t>0&&(ke(e,n),setTimeout(function(){lt(e,n)},t))}function Vi(e){return Math.max(Math.min(e,100),0)}function dt(e){return Array.isArray(e)?e:[e]}function So(e){e=String(e);var n=e.split(".");return n.length>1?n[1].length:0}function ke(e,n){e.classList&&!/\s/.test(n)?e.classList.add(n):e.className+=" "+n}function lt(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 bo(e,n){return e.classList?e.classList.contains(n):new RegExp("\\b"+n+"\\b").test(e.className)}function Di(e){var n=window.pageXOffset!==void 0,t=(e.compatMode||"")==="CSS1Compat",r=n?window.pageXOffset:t?e.documentElement.scrollLeft:e.body.scrollLeft,i=n?window.pageYOffset:t?e.documentElement.scrollTop:e.body.scrollTop;return{x:r,y:i}}function wo(){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 Mo(){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 Ht(e,n){return 100/(n-e)}function It(e,n,t){return n*100/(e[t+1]-e[t])}function Eo(e,n){return It(e,e[0]<0?n+Math.abs(e[0]):n-e[0],0)}function Vo(e,n){return n*(e[1]-e[0])/100+e[0]}function Qe(e,n){for(var t=1;e>=n[t];)t+=1;return t}function Po(e,n,t){if(t>=e.slice(-1)[0])return 100;var r=Qe(t,e),i=e[r-1],c=e[r],S=n[r-1],Z=n[r];return S+Eo([i,c],t)/Ht(S,Z)}function Do(e,n,t){if(t>=100)return e.slice(-1)[0];var r=Qe(t,n),i=e[r-1],c=e[r],S=n[r-1],Z=n[r];return Vo([i,c],(t-S)*Ht(S,Z))}function Ao(e,n,t,r){if(r===100)return r;var i=Qe(r,e),c=e[i-1],S=e[i];return t?r-c>(S-c)/2?S:c:n[i-1]?e[i-1]+yo(r-e[i-1],n[i-1]):r}var Bo=function(){function e(n,t,r){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.snap=t;var i,c=[];for(Object.keys(n).forEach(function(S){c.push([dt(n[S]),S])}),c.sort(function(S,Z){return S[0][0]-Z[0][0]}),i=0;i<c.length;i++)this.handleEntryPoint(c[i][1],c[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=[],r=0;r<this.xNumSteps.length-1;r++)t[r]=It(this.xVal,n,r);return t},e.prototype.getAbsoluteDistance=function(n,t,r){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);!r&&n===this.xPct[i+1]&&i++,t===null&&(t=[]);var c,S=1,Z=t[i],ie=0,R=0,K=0,de=0;for(r?c=(n-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):c=(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-c*100>100?(R=ie*c,S=(Z-100*c)/t[i+de],c=1):(R=t[i+de]*ie/100*S,S=0),r?(K=K-R,this.xPct.length+de>=1&&de--):(K=K+R,this.xPct.length-de>=1&&de++),Z=t[i+de]*S;return n+K},e.prototype.toStepping=function(n){return n=Po(this.xVal,this.xPct,n),n},e.prototype.fromStepping=function(n){return Do(this.xVal,this.xPct,n)},e.prototype.getStep=function(n){return n=Ao(this.xPct,this.xSteps,this.snap,n),n},e.prototype.getDefaultStep=function(n,t,r){var i=Qe(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])/r},e.prototype.getNearbySteps=function(n){var t=Qe(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(So);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 r;if(n==="min"?r=0:n==="max"?r=100:r=parseFloat(n),!Ve(r)||!Ve(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(r),this.xVal.push(t[0]);var i=Number(t[1]);r?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]=It([this.xVal[n],this.xVal[n+1]],t,0)/Ht(this.xPct[n],this.xPct[n+1]);var r=(this.xVal[n+1]-this.xVal[n])/this.xNumSteps[n],i=Math.ceil(Number(r.toFixed(3))-1),c=this.xVal[n]+this.xNumSteps[n]*i;this.xHighestCompleteStep[n]=c}},e}(),Pi={to:function(e){return e===void 0?"":e.toFixed(2)},from:Number},Fo={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"},Oe={tooltips:".__tooltips",aria:".__aria"};function Io(e,n){if(!Ve(n))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=n}function Ho(e,n){if(!Ve(n))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=n}function Lo(e,n){if(!Ve(n))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=n}function Oo(e,n){if(!Ve(n))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=n}function No(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 Bo(n,e.snap||!1,e.singleStep)}function Ro(e,n){if(n=dt(n),!Array.isArray(n)||!n.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=n.length,e.start=n}function Wo(e,n){if(typeof n!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=n}function jo(e,n){if(typeof n!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=n}function Uo(e,n){if(typeof n!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=n}function Ai(e,n){var t=[!1],r;if(n==="lower"?n=[!0,!1]:n==="upper"&&(n=[!1,!0]),n===!0||n===!1){for(r=1;r<e.handles;r++)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 zo(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 Bi(e,n){if(!Ve(n))throw new Error("noUiSlider: 'margin' option must be numeric.");n!==0&&(e.margin=e.spectrum.getDistance(n))}function $o(e,n){if(!Ve(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(!Ve(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||Ve(n[0])||Ve(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 r=n[0]+n[1],i=e.spectrum.xVal[0],c=e.spectrum.xVal[e.spectrum.xVal.length-1];if(r/(c-i)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function qo(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 Zo(e,n){if(typeof n!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=n.indexOf("tap")>=0,r=n.indexOf("drag")>=0,i=n.indexOf("fixed")>=0,c=n.indexOf("snap")>=0,S=n.indexOf("hover")>=0,Z=n.indexOf("unconstrained")>=0,ie=n.indexOf("invert-connects")>=0,R=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");Bi(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||c,drag:r,dragAll:R,smoothSteps:K,fixed:i,snap:c,hover:S,unconstrained:Z,invertConnects:ie}}function Ko(e,n){if(n!==!1)if(n===!0||ct(n)){e.tooltips=[];for(var t=0;t<e.handles;t++)e.tooltips.push(n)}else{if(n=dt(n),n.length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");n.forEach(function(r){if(typeof r!="boolean"&&!ct(r))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=n}}function Qo(e,n){if(n.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=n}function Yo(e,n){if(!ct(n))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=n}function Xo(e,n){if(!xo(n))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=n}function Jo(e,n){if(typeof n!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=n}function er(e,n){e.documentElement=n}function tr(e,n){if(typeof n!="string"&&n!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=n}function ir(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 Fi(e){var n={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:Pi,format:Pi},t={step:{r:!1,t:Io},keyboardPageMultiplier:{r:!1,t:Ho},keyboardMultiplier:{r:!1,t:Lo},keyboardDefaultStep:{r:!1,t:Oo},start:{r:!0,t:Ro},connect:{r:!0,t:Ai},direction:{r:!0,t:qo},snap:{r:!1,t:Wo},animate:{r:!1,t:jo},animationDuration:{r:!1,t:Uo},range:{r:!0,t:No},orientation:{r:!1,t:zo},margin:{r:!1,t:Bi},limit:{r:!1,t:$o},padding:{r:!1,t:Go},behaviour:{r:!0,t:Zo},ariaFormat:{r:!1,t:Yo},format:{r:!1,t:Xo},tooltips:{r:!1,t:Ko},keyboardSupport:{r:!0,t:Jo},documentElement:{r:!1,t:er},cssPrefix:{r:!0,t:tr},cssClasses:{r:!0,t:ir},handleAttributes:{r:!1,t:Qo}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Fo,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(t).forEach(function(ie){if(!Ft(e[ie])&&r[ie]===void 0){if(t[ie].r)throw new Error("noUiSlider: '"+ie+"' is required.");return}t[ie].t(n,Ft(e[ie])?e[ie]:r[ie])}),n.pips=e.pips;var i=document.createElement("div"),c=i.style.msTransform!==void 0,S=i.style.transform!==void 0;n.transformRule=S?"transform":c?"msTransform":"webkitTransform";var Z=[["left","top"],["right","bottom"]];return n.style=Z[n.dir][n.ort],n}function nr(e,n,t){var r=wo(),i=To(),c=i&&Mo(),S=e,Z,ie,R,K,de,_e,J=n.spectrum,Fe=[],pe=[],be=[],ht=0,Ie={},qe=!1,Ge=e.ownerDocument,Je=n.documentElement||Ge.documentElement,et=Ge.body,$n=Ge.dir==="rtl"||n.ort===1?0:100;function He(v,g){var y=Ge.createElement("div");return g&&ke(y,g),v.appendChild(y),y}function Gn(v,g){var y=He(v,n.cssClasses.origin),V=He(y,n.cssClasses.handle);if(He(V,n.cssClasses.touchArea),V.setAttribute("data-handle",String(g)),n.keyboardSupport&&(V.setAttribute("tabindex","0"),V.addEventListener("keydown",function(B){return lo(B,g)})),n.handleAttributes!==void 0){var A=n.handleAttributes[g];Object.keys(A).forEach(function(B){V.setAttribute(B,A[B])})}return V.setAttribute("role","slider"),V.setAttribute("aria-orientation",n.ort?"vertical":"horizontal"),g===0?ke(V,n.cssClasses.handleLower):g===n.handles-1&&ke(V,n.cssClasses.handleUpper),y.handle=V,y}function Ct(v,g){return g?He(v,n.cssClasses.connect):!1}function qn(v,g){ie=He(g,n.cssClasses.connects),R=[],K=[],K.push(Ct(ie,v[0]));for(var y=0;y<n.handles;y++)R.push(Gn(g,y)),be[y]=y,K.push(Ct(ie,v[y+1]))}function Zn(v){ke(v,n.cssClasses.target),n.dir===0?ke(v,n.cssClasses.ltr):ke(v,n.cssClasses.rtl),n.ort===0?ke(v,n.cssClasses.horizontal):ke(v,n.cssClasses.vertical);var g=getComputedStyle(v).direction;return g==="rtl"?ke(v,n.cssClasses.textDirectionRtl):ke(v,n.cssClasses.textDirectionLtr),He(v,n.cssClasses.base)}function Kn(v,g){return!n.tooltips||!n.tooltips[g]?!1:He(v.firstChild,n.cssClasses.tooltip)}function Rt(){return S.hasAttribute("disabled")}function xt(v){var g=R[v];return g.hasAttribute("disabled")}function Qn(v){v!=null?(R[v].setAttribute("disabled",""),R[v].handle.removeAttribute("tabindex")):(S.setAttribute("disabled",""),R.forEach(function(g){g.handle.removeAttribute("tabindex")}))}function Yn(v){v!=null?(R[v].removeAttribute("disabled"),R[v].handle.setAttribute("tabindex","0")):(S.removeAttribute("disabled"),R.forEach(function(g){g.removeAttribute("disabled"),g.handle.setAttribute("tabindex","0")}))}function _t(){_e&&(Ze("update"+Oe.tooltips),_e.forEach(function(v){v&&Mi(v)}),_e=null)}function Wt(){_t(),_e=R.map(Kn),wt("update"+Oe.tooltips,function(v,g,y){if(!(!_e||!n.tooltips)&&_e[g]!==!1){var V=v[g];n.tooltips[g]!==!0&&(V=n.tooltips[g].to(y[g])),_e[g].innerHTML=V}})}function Xn(){Ze("update"+Oe.aria),wt("update"+Oe.aria,function(v,g,y,V,A){be.forEach(function(B){var W=R[B],H=tt(pe,B,0,!0,!0,!0),se=tt(pe,B,100,!0,!0,!0),le=A[B],me=String(n.ariaFormat.to(y[B]));H=J.fromStepping(H).toFixed(1),se=J.fromStepping(se).toFixed(1),le=J.fromStepping(le).toFixed(1),W.children[0].setAttribute("aria-valuemin",H),W.children[0].setAttribute("aria-valuemax",se),W.children[0].setAttribute("aria-valuenow",le),W.children[0].setAttribute("aria-valuetext",me)})})}function Jn(v){if(v.mode===je.Range||v.mode===je.Steps)return J.xVal;if(v.mode===je.Count){if(v.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var g=v.values-1,y=100/g,V=[];g--;)V[g]=g*y;return V.push(100),jt(V,v.stepped)}return v.mode===je.Positions?jt(v.values,v.stepped):v.mode===je.Values?v.stepped?v.values.map(function(A){return J.fromStepping(J.getStep(J.toStepping(A)))}):v.values:[]}function jt(v,g){return v.map(function(y){return J.fromStepping(g?J.getStep(y):y)})}function eo(v){function g(le,me){return Number((le+me).toFixed(7))}var y=Jn(v),V={},A=J.xVal[0],B=J.xVal[J.xVal.length-1],W=!1,H=!1,se=0;return y=_o(y.slice().sort(function(le,me){return le-me})),y[0]!==A&&(y.unshift(A),W=!0),y[y.length-1]!==B&&(y.push(B),H=!0),y.forEach(function(le,me){var ue,ne,ge,ye=le,he=y[me+1],Ce,Et,Vt,Pt,Xt,Dt,Jt,ei=v.mode===je.Steps;for(ei&&(ue=J.xNumSteps[me]),ue||(ue=he-ye),he===void 0&&(he=ye),ue=Math.max(ue,1e-7),ne=ye;ne<=he;ne=g(ne,ue)){for(Ce=J.toStepping(ne),Et=Ce-se,Xt=Et/(v.density||1),Dt=Math.round(Xt),Jt=Et/Dt,ge=1;ge<=Dt;ge+=1)Vt=se+ge*Jt,V[Vt.toFixed(5)]=[J.fromStepping(Vt),0];Pt=y.indexOf(ne)>-1?we.LargeValue:ei?we.SmallValue:we.NoValue,!me&&W&&ne!==he&&(Pt=0),ne===he&&H||(V[Ce.toFixed(5)]=[ne,Pt]),se=Ce}}),V}function to(v,g,y){var V,A,B=Ge.createElement("div"),W=(V={},V[we.None]="",V[we.NoValue]=n.cssClasses.valueNormal,V[we.LargeValue]=n.cssClasses.valueLarge,V[we.SmallValue]=n.cssClasses.valueSub,V),H=(A={},A[we.None]="",A[we.NoValue]=n.cssClasses.markerNormal,A[we.LargeValue]=n.cssClasses.markerLarge,A[we.SmallValue]=n.cssClasses.markerSub,A),se=[n.cssClasses.valueHorizontal,n.cssClasses.valueVertical],le=[n.cssClasses.markerHorizontal,n.cssClasses.markerVertical];ke(B,n.cssClasses.pips),ke(B,n.ort===0?n.cssClasses.pipsHorizontal:n.cssClasses.pipsVertical);function me(ne,ge){var ye=ge===n.cssClasses.value,he=ye?se:le,Ce=ye?W:H;return ge+" "+he[n.ort]+" "+Ce[ne]}function ue(ne,ge,ye){if(ye=g?g(ge,ye):ye,ye!==we.None){var he=He(B,!1);he.className=me(ye,n.cssClasses.marker),he.style[n.style]=ne+"%",ye>we.NoValue&&(he=He(B,!1),he.className=me(ye,n.cssClasses.value),he.setAttribute("data-value",String(ge)),he.style[n.style]=ne+"%",he.innerHTML=String(y.to(ge)))}}return Object.keys(v).forEach(function(ne){ue(ne,v[ne][0],v[ne][1])}),B}function yt(){de&&(Mi(de),de=null)}function kt(v){yt();var g=eo(v),y=v.filter,V=v.format||{to:function(A){return String(Math.round(A))}};return de=S.appendChild(to(g,y,V)),de}function Ut(){var v=Z.getBoundingClientRect(),g="offset"+["Width","Height"][n.ort];return n.ort===0?v.width||Z[g]:v.height||Z[g]}function Ne(v,g,y,V){var A=function(W){var H=io(W,V.pageOffset,V.target||g);if(!H||Rt()&&!V.doNotReject||bo(S,n.cssClasses.tap)&&!V.doNotReject||v===r.start&&H.buttons!==void 0&&H.buttons>1||V.hover&&H.buttons)return!1;c||H.preventDefault(),H.calcPoint=H.points[n.ort],y(H,V)},B=[];return v.split(" ").forEach(function(W){g.addEventListener(W,A,c?{passive:!0}:!1),B.push([W,A])}),B}function io(v,g,y){var V=v.type.indexOf("touch")===0,A=v.type.indexOf("mouse")===0,B=v.type.indexOf("pointer")===0,W=0,H=0;if(v.type.indexOf("MSPointer")===0&&(B=!0),v.type==="mousedown"&&!v.buttons&&!v.touches)return!1;if(V){var se=function(ue){var ne=ue.target;return ne===y||y.contains(ne)||v.composed&&v.composedPath().shift()===y};if(v.type==="touchstart"){var le=Array.prototype.filter.call(v.touches,se);if(le.length>1)return!1;W=le[0].pageX,H=le[0].pageY}else{var me=Array.prototype.find.call(v.changedTouches,se);if(!me)return!1;W=me.pageX,H=me.pageY}}return g=g||Di(Ge),(A||B)&&(W=v.clientX+g.x,H=v.clientY+g.y),v.pageOffset=g,v.points=[W,H],v.cursor=A||B,v}function zt(v){var g=v-ko(Z,n.ort),y=g*100/Ut();return y=Vi(y),n.dir?100-y:y}function no(v){var g=100,y=!1;return R.forEach(function(V,A){if(!xt(A)){var B=pe[A],W=Math.abs(B-v),H=W===100&&g===100,se=W<g,le=W<=g&&v>B;(se||le||H)&&(y=A,g=W)}}),y}function oo(v,g){v.type==="mouseout"&&v.target.nodeName==="HTML"&&v.relatedTarget===null&&St(v,g)}function ro(v,g){if(navigator.appVersion.indexOf("MSIE 9")===-1&&v.buttons===0&&g.buttonsProperty!==0)return St(v,g);var y=(n.dir?-1:1)*(v.calcPoint-g.startCalcPoint),V=y*100/g.baseSize;Gt(y>0,V,g.locations,g.handleNumbers,g.connect)}function St(v,g){g.handle&&(lt(g.handle,n.cssClasses.active),ht-=1),g.listeners.forEach(function(y){Je.removeEventListener(y[0],y[1])}),ht===0&&(lt(S,n.cssClasses.drag),Tt(),v.cursor&&(et.style.cursor="",et.removeEventListener("selectstart",Ti))),n.events.smoothSteps&&(g.handleNumbers.forEach(function(y){Re(y,pe[y],!0,!0,!1,!1)}),g.handleNumbers.forEach(function(y){ve("update",y)})),g.handleNumbers.forEach(function(y){ve("change",y),ve("set",y),ve("end",y)})}function bt(v,g){if(!g.handleNumbers.some(xt)){var y;if(g.handleNumbers.length===1){var V=R[g.handleNumbers[0]];y=V.children[0],ht+=1,ke(y,n.cssClasses.active)}v.stopPropagation();var A=[],B=Ne(r.move,Je,ro,{target:v.target,handle:y,connect:g.connect,listeners:A,startCalcPoint:v.calcPoint,baseSize:Ut(),pageOffset:v.pageOffset,handleNumbers:g.handleNumbers,buttonsProperty:v.buttons,locations:pe.slice()}),W=Ne(r.end,Je,St,{target:v.target,handle:y,listeners:A,doNotReject:!0,handleNumbers:g.handleNumbers}),H=Ne("mouseout",Je,oo,{target:v.target,handle:y,listeners:A,doNotReject:!0,handleNumbers:g.handleNumbers});A.push.apply(A,B.concat(W,H)),v.cursor&&(et.style.cursor=getComputedStyle(v.target).cursor,R.length>1&&ke(S,n.cssClasses.drag),et.addEventListener("selectstart",Ti,!1)),g.handleNumbers.forEach(function(se){ve("start",se)})}}function ao(v){v.stopPropagation();var g=zt(v.calcPoint),y=no(g);y!==!1&&(n.events.snap||Ei(S,n.cssClasses.tap,n.animationDuration),Re(y,g,!0,!0),Tt(),ve("slide",y,!0),ve("update",y,!0),n.events.snap?bt(v,{handleNumbers:[y]}):(ve("change",y,!0),ve("set",y,!0)))}function so(v){var g=zt(v.calcPoint),y=J.getStep(g),V=J.fromStepping(y);Object.keys(Ie).forEach(function(A){A.split(".")[0]==="hover"&&Ie[A].forEach(function(B){B.call(nt,V)})})}function lo(v,g){if(Rt()||xt(g))return!1;var y=["Left","Right"],V=["Down","Up"],A=["PageDown","PageUp"],B=["Home","End"];n.dir&&!n.ort?y.reverse():n.ort&&!n.dir&&(V.reverse(),A.reverse());var W=v.key.replace("Arrow",""),H=W===A[0],se=W===A[1],le=W===V[0]||W===y[0]||H,me=W===V[1]||W===y[1]||se,ue=W===B[0],ne=W===B[1];if(!le&&!me&&!ue&&!ne)return!0;v.preventDefault();var ge;if(me||le){var ye=le?0:1,he=Qt(g),Ce=he[ye];if(Ce===null)return!1;Ce===!1&&(Ce=J.getDefaultStep(pe[g],le,n.keyboardDefaultStep)),se||H?Ce*=n.keyboardPageMultiplier:Ce*=n.keyboardMultiplier,Ce=Math.max(Ce,1e-7),Ce=(le?-1:1)*Ce,ge=Fe[g]+Ce}else ne?ge=n.spectrum.xVal[n.spectrum.xVal.length-1]:ge=n.spectrum.xVal[0];return Re(g,J.toStepping(ge),!0,!0),ve("slide",g),ve("update",g),ve("change",g),ve("set",g),!1}function $t(v){v.fixed||R.forEach(function(g,y){Ne(r.start,g.children[0],bt,{handleNumbers:[y]})}),v.tap&&Ne(r.start,Z,ao,{}),v.hover&&Ne(r.move,Z,so,{hover:!0}),v.drag&&K.forEach(function(g,y){if(!(g===!1||y===0||y===K.length-1)){var V=R[y-1],A=R[y],B=[g],W=[V,A],H=[y-1,y];ke(g,n.cssClasses.draggable),v.fixed&&(B.push(V.children[0]),B.push(A.children[0])),v.dragAll&&(W=R,H=be),B.forEach(function(se){Ne(r.start,se,bt,{handles:W,handleNumbers:H,connect:g})})}})}function wt(v,g){Ie[v]=Ie[v]||[],Ie[v].push(g),v.split(".")[0]==="update"&&R.forEach(function(y,V){ve("update",V)})}function co(v){return v===Oe.aria||v===Oe.tooltips}function Ze(v){var g=v&&v.split(".")[0],y=g?v.substring(g.length):v;Object.keys(Ie).forEach(function(V){var A=V.split(".")[0],B=V.substring(A.length);(!g||g===A)&&(!y||y===B)&&(!co(B)||y===B)&&delete Ie[V]})}function ve(v,g,y){Object.keys(Ie).forEach(function(V){var A=V.split(".")[0];v===A&&Ie[V].forEach(function(B){B.call(nt,Fe.map(n.format.to),g,Fe.slice(),y||!1,pe.slice(),nt)})})}function tt(v,g,y,V,A,B,W){var H;return R.length>1&&!n.events.unconstrained&&(V&&g>0&&(H=J.getAbsoluteDistance(v[g-1],n.margin,!1),y=Math.max(y,H)),A&&g<R.length-1&&(H=J.getAbsoluteDistance(v[g+1],n.margin,!0),y=Math.min(y,H))),R.length>1&&n.limit&&(V&&g>0&&(H=J.getAbsoluteDistance(v[g-1],n.limit,!1),y=Math.min(y,H)),A&&g<R.length-1&&(H=J.getAbsoluteDistance(v[g+1],n.limit,!0),y=Math.max(y,H))),n.padding&&(g===0&&(H=J.getAbsoluteDistance(0,n.padding[0],!1),y=Math.max(y,H)),g===R.length-1&&(H=J.getAbsoluteDistance(100,n.padding[1],!0),y=Math.min(y,H))),W||(y=J.getStep(y)),y=Vi(y),y===v[g]&&!B?!1:y}function Mt(v,g){var y=n.ort;return(y?g:v)+", "+(y?v:g)}function Gt(v,g,y,V,A){var B=y.slice(),W=V[0],H=n.events.smoothSteps,se=[!v,v],le=[v,!v];V=V.slice(),v&&V.reverse(),V.length>1?V.forEach(function(ue,ne){var ge=tt(B,ue,B[ue]+g,se[ne],le[ne],!1,H);ge===!1?g=0:(g=ge-B[ue],B[ue]=ge)}):se=le=[!0];var me=!1;V.forEach(function(ue,ne){me=Re(ue,y[ue]+g,se[ne],le[ne],!1,H)||me}),me&&(V.forEach(function(ue){ve("update",ue),ve("slide",ue)}),A!=null&&ve("drag",W))}function qt(v,g){return n.dir?100-v-g:v}function po(v,g){pe[v]=g,Fe[v]=J.fromStepping(g);var y=qt(g,0)-$n,V="translate("+Mt(y+"%","0")+")";if(R[v].style[n.transformRule]=V,n.events.invertConnects&&pe.length>1){var A=pe.every(function(B,W,H){return W===0||B>=H[W-1]});if(qe!==!A){ho();return}}Ke(v),Ke(v+1),qe&&(Ke(v-1),Ke(v+2))}function Tt(){be.forEach(function(v){var g=pe[v]>50?-1:1,y=3+(R.length+g*v);R[v].style.zIndex=String(y)})}function Re(v,g,y,V,A,B){return A||(g=tt(pe,v,g,y,V,!1,B)),g===!1?!1:(po(v,g),!0)}function Ke(v){if(K[v]){var g=pe.slice();qe&&g.sort(function(H,se){return H-se});var y=0,V=100;v!==0&&(y=g[v-1]),v!==K.length-1&&(V=g[v]);var A=V-y,B="translate("+Mt(qt(y,A)+"%","0")+")",W="scale("+Mt(A/100,"1")+")";K[v].style[n.transformRule]=B+" "+W}}function Zt(v,g){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[g]:v}function it(v,g,y){var V=dt(v),A=pe[0]===void 0;g=g===void 0?!0:g,n.animate&&!A&&Ei(S,n.cssClasses.tap,n.animationDuration),be.forEach(function(H){Re(H,Zt(V[H],H),!0,!1,y)});var B=be.length===1?0:1;if(A&&J.hasNoSize()&&(y=!0,pe[0]=0,be.length>1)){var W=100/(be.length-1);be.forEach(function(H){pe[H]=H*W})}for(;B<be.length;++B)be.forEach(function(H){Re(H,pe[H],!0,!0,y)});Tt(),be.forEach(function(H){ve("update",H),V[H]!==null&&g&&ve("set",H)})}function mo(v){it(n.start,v)}function uo(v,g,y,V){if(v=Number(v),!(v>=0&&v<be.length))throw new Error("noUiSlider: invalid handle number, got: "+v);Re(v,Zt(g,v),!0,!0,V),ve("update",v),y&&ve("set",v)}function Kt(v){if(v===void 0&&(v=!1),v)return Fe.length===1?Fe[0]:Fe.slice(0);var g=Fe.map(n.format.to);return g.length===1?g[0]:g}function fo(){for(Ze(Oe.aria),Ze(Oe.tooltips),Object.keys(n.cssClasses).forEach(function(v){lt(S,n.cssClasses[v])});S.firstChild;)S.removeChild(S.firstChild);delete S.noUiSlider}function Qt(v){var g=pe[v],y=J.getNearbySteps(g),V=Fe[v],A=y.thisStep.step,B=null;if(n.snap)return[V-y.stepBefore.startValue||null,y.stepAfter.startValue-V||null];A!==!1&&V+A>y.stepAfter.startValue&&(A=y.stepAfter.startValue-V),V>y.thisStep.startValue?B=y.thisStep.step:y.stepBefore.step===!1?B=!1:B=V-y.stepBefore.highestStep,g===100?A=null:g===0&&(B=null);var W=J.countStepDecimals();return A!==null&&A!==!1&&(A=Number(A.toFixed(W))),B!==null&&B!==!1&&(B=Number(B.toFixed(W))),[B,A]}function vo(){return be.map(Qt)}function go(v,g){var y=Kt(),V=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];V.forEach(function(B){v[B]!==void 0&&(t[B]=v[B])});var A=Fi(t);V.forEach(function(B){v[B]!==void 0&&(n[B]=A[B])}),J=A.spectrum,n.margin=A.margin,n.limit=A.limit,n.padding=A.padding,n.pips?kt(n.pips):yt(),n.tooltips?Wt():_t(),pe=[],it(Ft(v.start)?v.start:y,g),v.connect&&Yt()}function Yt(){for(;ie.firstChild;)ie.removeChild(ie.firstChild);for(var v=0;v<=n.handles;v++)K[v]=Ct(ie,n.connect[v]),Ke(v);$t({drag:n.events.drag,fixed:!0})}function ho(){qe=!qe,Ai(n,n.connect.map(function(v){return!v})),Yt()}function Co(){Z=Zn(S),qn(n.connect,Z),$t(n.events),it(n.start),n.pips&&kt(n.pips),n.tooltips&&Wt(),Xn()}Co();var nt={destroy:fo,steps:vo,on:wt,off:Ze,get:Kt,set:it,setHandle:uo,reset:mo,disable:Qn,enable:Yn,__moveHandles:function(v,g,y){Gt(v,g,pe,y)},options:t,updateOptions:go,target:S,removePips:yt,removeTooltips:_t,getPositions:function(){return pe.slice()},getTooltips:function(){return _e},getOrigins:function(){return R},pips:kt};return nt}function Ii(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=Fi(n),r=nr(e,t,n);return e.noUiSlider=r,r}var Lt=class{to(n){return String(parseFloat(parseFloat(String(n)).toFixed(2)))}from(n){return parseFloat(n)}},ae=(()=>{class e{constructor(t,r,i){this.ngZone=t,this.el=r,this.renderer=i,this.handles=[],this.config={},this.change=new We(!0),this.update=new We(!0),this.slide=new We(!0),this.set=new We(!0),this.start=new We(!0),this.end=new We(!0),this.onChange=Function.prototype,this.cleanups=[],this.eventHandler=(c,S,Z,ie)=>{let R=this.toValues(S),K=!1;if(this.value===void 0){this.value=R;return}Array.isArray(R)&&this.value[Z]!=R[Z]&&(K=!0),!Array.isArray(R)&&this.value!=R&&(K=!0),K&&this.ngZone.run(()=>{c.observers.length>0&&c.emit(R),this.onChange(R)}),Array.isArray(R)?this.value[Z]=R[Z]:this.value=R},this.defaultKeyHandler=c=>{let S=this.slider.steps(),Z=parseInt(c.target.getAttribute("data-handle")),ie=1,R=1,K=0,de=0;switch(c.which){case 34:R=this.config.pageSteps;break;case 40:case 37:ie=-1,K=S[Z][0],c.preventDefault();break;case 33:R=this.config.pageSteps;break;case 38:case 39:K=S[Z][1],c.preventDefault();break;default:break}de=ie*R*K;let _e;Array.isArray(this.value)?(_e=[...this.value],_e[Z]=_e[Z]+de):_e=this.value+de,this.slider.set(_e)}}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 r=t.map(this.config.format.from);return r.length==1?r[0]:r}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 r=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(r.tooltips=this.tooltips||this.config.tooltips,r.format=this.format||this.config.format||new Lt,this.ngZone.runOutsideAngular(()=>{this.slider=Ii(this.el.nativeElement.querySelector("div"),Object.assign(this.config,r))}),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 c=this.config.onKeydown||this.defaultKeyHandler;this.ngZone.runOutsideAngular(()=>{this.cleanups.push(this.renderer.listen(i,"keydown",c),this.renderer.listen(i,"click",()=>{i.focus()}))})}}this.slider.on("set",(i,c,S)=>{this.eventHandler(this.set,i,c,S)}),this.slider.on("update",(i,c,S)=>{this.update.observers.length>0&&this.ngZone.run(()=>{this.update.emit(this.toValues(i))})}),this.slider.on("change",(i,c,S)=>{this.change.observers.length>0&&this.ngZone.run(()=>{this.change.emit(this.toValues(i))})}),this.slider.on("slide",(i,c,S)=>{this.eventHandler(this.slide,i,c,S)}),this.slider.on("start",(i,c,S)=>{this.start.observers.length>0&&this.ngZone.run(()=>{this.start.emit(this.toValues(i))})}),this.slider.on("end",(i,c,S)=>{this.end.observers.length>0&&this.ngZone.run(()=>{this.end.emit(this.toValues(i))})})}}return e.\u0275fac=function(t){return new(t||e)(ot(mi),ot(li),ot(ci))},e.\u0275cmp=b({type:e,selectors:[["nouislider"]],hostVars:2,hostBindings:function(t,r){t&2&&Ci("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:[_i([{provide:Si,useExisting:ri(()=>e),multi:!0}]),si],decls:1,vars:1,template:function(t,r){t&1&&Pe(0,"div"),t&2&&w("disabled",r.disabled?!0:void 0)},styles:["[_nghost-%COMP%]{display:block;margin-top:1rem;margin-bottom:1rem}"]}),e})();var pt=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function rr(e,n){if(e&1){let t=O();o(0,"button",6),C("click",function(i){M(t);let c=u(2);return T(c.setTargetMode(0,i))}),o(1,"div",7),m(2,"i",8),s(),l(3),d(4,"translate"),o(5,"div",9),m(6,"i",10),s()()}if(e&2){let t=u(2);a(2),f("ngClass",D(4,pt,t.targetMode===0,t.targetMode!==0)),a(),h(" ",p(4,2,"accessories.control.manual")," ")}}function ar(e,n){if(e&1){let t=O();o(0,"button",6),C("click",function(i){M(t);let c=u(2);return T(c.setTargetMode(1,i))}),o(1,"div",7),m(2,"i",8),s(),l(3),d(4,"translate"),o(5,"div",9),m(6,"i",10),s()()}if(e&2){let t=u(2);a(2),f("ngClass",D(4,pt,t.targetMode===1,t.targetMode!==1)),a(),h(" ",p(4,2,"accessories.control.auto")," ")}}function sr(e,n){if(e&1&&(o(0,"h6",12),l(1),d(2,"translate"),s(),o(3,"div",13),x(4,rr,7,7,"button",14),x(5,ar,7,7,"button",14),s()),e&2){let t=u();a(),k(p(2,3,"accessories.control.mode")),a(3),_(t.targetModeValidValues.includes(0)?4:-1),a(),_(t.targetModeValidValues.includes(1)?5:-1)}}function lr(e,n){if(e&1){let t=O();o(0,"h6",12),l(1),d(2,"translate"),s(),o(3,"nouislider",15),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetRotationSpeed.value,i)||(c.targetRotationSpeed.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onTargetRotationSpeedChange())}),s()}if(e&2){let t=u();a(),j("",p(2,6,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value,"%"),a(2),f("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),$("ngModel",t.targetRotationSpeed.value)}}var Hi=(()=>{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,r){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),r.target.blur()}setTargetMode(t,r){this.targetMode=t,this.service.getCharacteristic("TargetAirPurifierState").setValue(this.targetMode),r.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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:24,vars:20,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","aria-label","Air Purifier State Control",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","aria-label","Air Purifier Mode Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5)(7,"button",6),C("click",function(S){return i.setTargetState(0,S)}),o(8,"div",7),m(9,"i",8),s(),l(10),d(11,"translate"),o(12,"div",9),m(13,"i",10),s()(),o(14,"button",6),C("click",function(S){return i.setTargetState(1,S)}),o(15,"div",7),m(16,"i",8),s(),l(17),d(18,"translate"),o(19,"div",9),m(20,"i",10),s()()(),x(21,sr,6,5),x(22,lr,4,8),s(),m(23,"div",11),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,8,"form.button_close")),a(6),f("ngClass",D(14,pt,i.targetState===0,i.targetState!==0)),a(),h(" ",p(11,10,"accessories.control.off")," "),a(6),f("ngClass",D(17,pt,i.targetState===1,i.targetState!==1)),a(),h(" ",p(18,12,"accessories.control.on")," "),a(4),_(i.targetModeValidValues.length?21:-1),a(),_(i.targetRotationSpeed?22:-1))},dependencies:[Q,oe,re,ae,P,E],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 z=(()=>{class e{downTimeout;done=!1;duration=350;longClick=Bt();shortClick=Bt();onEnter(t){this.shortClick.emit(t)}onMouseUp(t){clearTimeout(this.downTimeout),this.done||(this.done=!0,this.shortClick.emit(t))}onTouchEnd(t){clearTimeout(this.downTimeout),t.preventDefault(),t.stopPropagation(),this.done||(this.done=!0,this.shortClick.emit(t))}onMouseDown(t){t instanceof MouseEvent&&t.button!==0||(this.done=!1,t instanceof TouchEvent&&(t.preventDefault(),t.stopPropagation()),this.downTimeout=setTimeout(()=>{this.done||(this.done=!0,this.longClick.emit(t))},this.duration))}onMouseMove(){this.done=!0,clearTimeout(this.downTimeout)}ngOnDestroy(){clearTimeout(this.downTimeout)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=di({type:e,selectors:[["","shortClick",""],["","longClick",""]],hostBindings:function(r,i){r&1&&C("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 cr=(e,n)=>({"switch-on":e,purifying:n});function dr(e,n){if(e&1&&(o(0,"div",18),l(1),s()),e&2){let t=u(2);a(),h("",t.service.values.RotationSpeed,"%")}}function pr(e,n){e&1&&(o(0,"div",18),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.on")))}function mr(e,n){if(e&1&&x(0,dr,2,1,"div",18)(1,pr,3,3,"div",18),e&2){let t=u();_("RotationSpeed"in t.service.values?0:1)}}function ur(e,n){e&1&&(o(0,"div",18),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.idle")))}function fr(e,n){e&1&&(o(0,"div",18),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.off")))}var Li=(()=>{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(Hi,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-air-purifier"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:22,vars:7,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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"path",4)(5,"path",5)(6,"line",6)(7,"line",7)(8,"line",8)(9,"line",9)(10,"line",10)(11,"line",11)(12,"line",12)(13,"line",13)(14,"line",14)(15,"circle",15)(16,"line",16),s()(),L(),o(17,"div",17),l(18),s(),x(19,mr,2,1)(20,ur,3,3,"div",18)(21,fr,3,3,"div",18),s()()),r&2&&(f("ngClass",D(4,cr,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)),a(2),w("aria-label","Air Purifier"),a(16),k(i.service.customName||i.service.serviceName),a(),_(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?19: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?20:21))},dependencies:[z,P,E],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 vr=()=>[3,4],gr=()=>[1,2],hr=(e,n,t,r)=>({"switch-on":e,"fill-red":n,"fill-orange":t,"fill-green":r}),Cr=(e,n)=>({"grey-text":e,"red-text":n}),Oi=(()=>{class e{service;labels=["Unknown","Excellent","Good","Fair","Inferior","Poor"];static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-air-quality-sensor"]],inputs:{service:"service"},decls:24,vars:15,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(r,i){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4),o(5,"g",5),m(6,"path",6),s(),m(7,"line",7)(8,"line",8)(9,"line",9)(10,"line",10)(11,"line",11)(12,"line",12)(13,"line",13)(14,"line",14)(15,"line",15)(16,"line",16)(17,"line",17)(18,"line",18)(19,"line",19),s()(),L(),o(20,"div",20),l(21),s(),o(22,"div",21),l(23),s()()()),r&2&&(f("ngClass",st(7,hr,i.service.values.AirQuality===5,i.service.values.AirQuality===5,fe(5,vr).includes(i.service.values.AirQuality),fe(6,gr).includes(i.service.values.AirQuality))),a(2),w("aria-label","Air Quality Sensor"),a(19),k(i.service.customName||i.service.serviceName),a(),f("ngClass",D(12,Cr,i.service.values.AirQuality<5,i.service.values.AirQuality===5)),a(),h(" ",i.labels[i.service.values.AirQuality||0]," "))},dependencies:[P],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 xr=e=>({"switch-on":e});function _r(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.battery_notcharging")," ")}function yr(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.battery_charging")," ")}function kr(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.battery_notchargeable")," ")}function Sr(e,n){e&1&&(o(0,"span",10),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.battery_low")))}function br(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.battery_charged")," ")}var Ni=(()=>{class e{service;Math=Math;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-battery"]],inputs:{service:"service"},decls:17,vars:10,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(r,i){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"rect",5)(6,"rect",6),o(7,"text",7),l(8),s()()(),L(),o(9,"div",8),l(10),s(),o(11,"div",9),x(12,_r,2,3)(13,yr,2,3)(14,kr,2,3)(15,Sr,3,3,"span",10)(16,br,2,3),s()()()),r&2&&(f("ngClass",U(8,xr,i.service.values.ChargingState===1)),a(2),w("aria-label","Battery"),a(2),w("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"),a(4),h(" ",i.service.values.BatteryLevel||0,"% "),a(2),k(i.service.customName||i.service.serviceName),a(2),_(i.service.values.ChargingState===0?12:i.service.values.ChargingState===1?13:i.service.values.ChargingState===2?14:i.service.values.StatusLowBattery===1||i.service.values.BatteryLevel===0?15:16))},dependencies:[P,E],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 wr=e=>({"switch-on":e});function Mr(e,n){e&1&&(o(0,"div",16),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.detected")))}function Tr(e,n){e&1&&(o(0,"div",17),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.not_detected")))}var Ri=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-carbon-dioxide-sensor"]],inputs:{service:"service"},decls:20,vars:6,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(r,i){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4),o(5,"text",5),l(6," CO2 "),s(),m(7,"line",6)(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"path",13)(15,"path",14),s()(),L(),o(16,"div",15),l(17),s(),x(18,Mr,3,3,"div",16)(19,Tr,3,3,"div",17),s()()),r&2&&(f("ngClass",U(4,wr,i.service.values.CarbonDioxideDetected)),a(2),w("aria-label","Carbon Dioxide Sensor"),a(15),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.CarbonDioxideDetected?18:19))},dependencies:[P,E],styles:[".switch-on svg .air-line{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite} .switch-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 Er=e=>({"switch-on":e});function Vr(e,n){e&1&&(o(0,"div",16),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.detected")))}function Pr(e,n){e&1&&(o(0,"div",17),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.not_detected")))}var Wi=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-carbon-monoxide-sensor"]],inputs:{service:"service"},decls:20,vars:6,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(r,i){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4),o(5,"text",5),l(6," CO "),s(),m(7,"line",6)(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"path",13)(15,"path",14),s()(),L(),o(16,"div",15),l(17),s(),x(18,Vr,3,3,"div",16)(19,Pr,3,3,"div",17),s()()),r&2&&(f("ngClass",U(4,Er,i.service.values.CarbonMonoxideDetected)),a(2),w("aria-label","Carbon Monoxide Sensor"),a(15),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.CarbonMonoxideDetected?18:19))},dependencies:[P,E],styles:[".switch-on svg .air-line{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite} .switch-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 Dr=e=>({"switch-on":e});function Ar(e,n){e&1&&(o(0,"div",9),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.open")))}function Br(e,n){e&1&&(o(0,"div",10),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.closed")))}var ji=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-contact-sensor"]],inputs:{service:"service"},decls:12,vars:6,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(r,i){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"rect",5)(6,"rect",6)(7,"rect",7),s()(),L(),o(8,"div",8),l(9),s(),x(10,Ar,3,3,"div",9)(11,Br,3,3,"div",10),s()()),r&2&&(f("ngClass",U(4,Dr,i.service.values.ContactSensorState)),a(2),w("aria-label","Contact Sensor"),a(7),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.ContactSensorState?10:11))},dependencies:[P,E],styles:[".switch-on svg .left-sensor{fill:#ff9800;fill-opacity:.5} .switch-on svg .right-object{x:24px} .switch-on svg .right-sensor{x:24px;fill:#ff9800;fill-opacity:.5}"]})}return e})();function Fr(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.closed")," ")}function Ir(e,n){if(e&1&&(l(0),d(1,"translate")),e&2){let t=u(2);j(" ",p(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function Hr(e,n){if(e&1&&x(0,Fr,2,3)(1,Ir,2,4),e&2){let t=u();_(t.service.values.CurrentPosition===0?0:1)}}function Lr(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.opening"),"... ")}function Or(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.closing"),"... ")}var Ui=(()=>{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(r){return new(r||e)};static \u0275cmp=b({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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5)(7,"div",6),x(8,Hr,2,1)(9,Lr,2,3)(10,Or,2,3),s()(),o(11,"h6",7),l(12),d(13,"translate"),s(),o(14,"nouislider",8),q("ngModelChange",function(S){return G(i.targetPosition.value,S)||(i.targetPosition.value=S),S}),C("ngModelChange",function(){return i.onTargetPositionChange()}),s(),o(15,"div",9)(16,"span",10),l(17),d(18,"translate"),s(),o(19,"span",10),l(20),d(21,"translate"),s()(),o(22,"h6",7),l(23),d(24,"translate"),s(),o(25,"nouislider",11),q("ngModelChange",function(S){return G(i.service.getCharacteristic("CurrentPosition").value,S)||(i.service.getCharacteristic("CurrentPosition").value=S),S}),s(),o(26,"div",9)(27,"span",10),l(28),d(29,"translate"),s(),o(30,"span",10),l(31),d(32,"translate"),s()()(),m(33,"div",12),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,20,"form.button_close")),a(5),_(i.service.values.PositionState===2?8:i.service.values.PositionState===1?9:i.service.values.PositionState===0?10:-1),a(4),j("",p(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),a(2),f("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),$("ngModel",i.targetPosition.value),a(3),k(p(18,24,"accessories.control.closed")),a(3),k(p(21,26,"accessories.control.open")),a(3),j(" ",p(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),a(2),f("min",0)("max",100)("step",1)("disabled",!0),$("ngModel",i.service.getCharacteristic("CurrentPosition").value),a(3),k(p(29,30,"accessories.control.closed")),a(3),k(p(32,32,"accessories.control.open")))},dependencies:[ae,Q,oe,re,E],encapsulation:2})}return e})();var Nr=e=>({"accessory-on":e});function Rr(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.closed")," ")}function Wr(e,n){if(e&1&&(l(0),d(1,"translate")),e&2){let t=u(2);j(" ",p(1,2,"accessories.control.open")," ",t.service.values.CurrentPosition,"% ")}}function jr(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.open")," ")}function Ur(e,n){if(e&1&&(o(0,"div",11),x(1,Rr,2,3),x(2,Wr,2,4),x(3,jr,2,3),s()),e&2){let t=u();a(),_(t.service.values.CurrentPosition===0?1:-1),a(),_(t.service.values.CurrentPosition>0&&t.service.values.CurrentPosition<100?2:-1),a(),_(t.service.values.CurrentPosition===100?3:-1)}}function zr(e,n){e&1&&(o(0,"div",12),l(1),d(2,"translate"),s()),e&2&&(a(),h("",p(2,1,"accessories.control.opening"),"..."))}function $r(e,n){e&1&&(o(0,"div",12),l(1),d(2,"translate"),s()),e&2&&(a(),h("",p(2,1,"accessories.control.closing"),"..."))}var zi=(()=>{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(Ui,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-door"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:15,vars:6,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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"rect",5)(6,"rect",6)(7,"rect",7)(8,"line",8)(9,"rect",9),s()(),L(),o(10,"div",10),l(11),s(),x(12,Ur,4,3,"div",11)(13,zr,3,3,"div",12)(14,$r,3,3,"div",12),s()()),r&2&&(f("ngClass",U(4,Nr,i.service.values.CurrentPosition)),a(2),w("aria-label","Door"),a(9),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.PositionState===2?12:i.service.values.PositionState===1?13:i.service.values.PositionState===0?14:-1))},dependencies:[z,P,E],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 Ue=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Gr(e,n){if(e&1){let t=O();o(0,"div",5)(1,"button",7),C("click",function(i){M(t);let c=u();return T(c.setActive(0,i))}),o(2,"div",8),m(3,"i",9),s(),l(4),d(5,"translate"),o(6,"div",10),m(7,"i",11),s()(),o(8,"button",7),C("click",function(i){M(t);let c=u();return T(c.setActive(1,i))}),o(9,"div",8),m(10,"i",9),s(),l(11),d(12,"translate"),o(13,"div",10),m(14,"i",11),s()()()}if(e&2){let t=u();a(3),f("ngClass",D(8,Ue,t.service.values.Active===0,t.service.values.Active!==0)),a(),h(" ",p(5,4,"accessories.control.off")," "),a(6),f("ngClass",D(11,Ue,t.service.values.Active===1,t.service.values.Active!==1)),a(),h(" ",p(12,6,"accessories.control.on")," ")}}function qr(e,n){if(e&1){let t=O();o(0,"div",5)(1,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetState(0,i))}),o(2,"div",8),m(3,"i",9),s(),l(4),d(5,"translate"),o(6,"div",10),m(7,"i",11),s()(),o(8,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetState(1,i))}),o(9,"div",8),m(10,"i",9),s(),l(11),d(12,"translate"),o(13,"div",10),m(14,"i",11),s()(),o(15,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetState(2,i))}),o(16,"div",8),m(17,"i",9),s(),l(18),d(19,"translate"),o(20,"div",10),m(21,"i",11),s()()()}if(e&2){let t=u();a(3),f("ngClass",D(12,Ue,t.service.values.CurrentMediaState===0,t.service.values.CurrentMediaState!==0)),a(),h(" ",p(5,6,"accessories.control.play")," "),a(6),f("ngClass",D(15,Ue,t.service.values.CurrentMediaState===1,t.service.values.CurrentMediaState!==1)),a(),h(" ",p(12,8,"accessories.control.pause")," "),a(6),f("ngClass",D(18,Ue,t.service.values.CurrentMediaState===2,t.service.values.CurrentMediaState!==2)),a(),h(" ",p(19,10,"accessories.control.stop")," ")}}function Zr(e,n){if(e&1){let t=O();o(0,"h6"),l(1),d(2,"translate"),s(),o(3,"div",12)(4,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(!1,i))}),o(5,"div",8),m(6,"i",9),s(),l(7),d(8,"translate"),o(9,"div",10),m(10,"i",11),s()(),o(11,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(!0,i))}),o(12,"div",8),m(13,"i",9),s(),l(14),d(15,"translate"),o(16,"div",10),m(17,"i",11),s()()()}if(e&2){let t=u();a(),h(" ",p(2,5,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),a(5),f("ngClass",D(11,Ue,!t.targetMode,t.targetMode)),a(),h(" ",p(8,7,"accessories.control.not_mute")," "),a(6),f("ngClass",D(14,Ue,t.targetMode,!t.targetMode)),a(),h(" ",p(15,9,"accessories.control.mute")," ")}}function Kr(e,n){if(e&1){let t=O();o(0,"h6",13),l(1),d(2,"translate"),s(),o(3,"nouislider",14),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetVolume.value,i)||(c.targetVolume.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onVolumeStateChange())}),s()}if(e&2){let t=u();a(),j("",p(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),a(2),f("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),$("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,r){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),r.target.blur()}setActive(t,r){this.service.getCharacteristic("Active").setValue(t),r.target.blur()}setTargetState(t,r){this.service.getCharacteristic("TargetMediaState").setValue(t),r.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(r){return new(r||e)};static \u0275cmp=b({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","aria-label","Doorbell Mode Control",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","aria-label","Doorbell Mute Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4),x(6,Gr,15,14,"div",5)(7,qr,22,21,"div",5),x(8,Zr,18,17),x(9,Kr,4,8),s(),m(10,"div",6),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,5,"form.button_close")),a(3),_("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),a(2),_("Mute"in i.service.values?8:-1),a(),_(i.targetVolume?9:-1))},dependencies:[Q,oe,re,ae,P,E],encapsulation:2})}return e})();var Qr=()=>[0,1],Gi=()=>["Speaker","SmartSpeaker"],Yr=(e,n)=>({"switch-on":e,paused:n});function Xr(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.play")," ")}function Jr(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.pause")," ")}function ea(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.stop")," ")}function ta(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" \xB7 ",p(1,1,"accessories.control.mute")," ")}function ia(e,n){if(e&1&&l(0),e&2){let t=u(3);h(" \xB7 ",t.service.values.Volume,"% ")}}function na(e,n){if(e&1&&x(0,ia,1,1),e&2){let t=u(2);_("Volume"in t.service.values?0:-1)}}function oa(e,n){if(e&1&&(o(0,"div",7),x(1,Xr,2,3)(2,Jr,2,3)(3,ea,2,3),x(4,ta,2,3)(5,na,1,1),s()),e&2){let t,r=u();a(),_((t=r.service.values.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),a(3),_("Mute"in r.service.values&&r.service.values.Mute?4:5)}}function ra(e,n){e&1&&(m(0,"div",8),d(1,"translate")),e&2&&f("innerText",p(1,1,"accessories.control.off"))}function aa(e,n){e&1&&(m(0,"div",8),d(1,"translate")),e&2&&f("innerText",p(1,1,"accessories.control.mute"))}function sa(e,n){if(e&1&&(o(0,"div",7),l(1),s()),e&2){let t=u();a(),h("",t.service.values.Volume,"%")}}function la(e,n){e&1&&(o(0,"div",7),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.on")))}function ca(e,n){e&1&&(o(0,"div",7),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.doorbell")))}var qi=(()=>{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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-doorbell"]],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"],["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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"circle",5),s()(),L(),o(6,"div",6),l(7),s(),x(8,oa,6,2,"div",7)(9,ra,2,3,"div",8)(10,aa,2,3,"div",8)(11,sa,2,1,"div",7)(12,la,3,3,"div",7)(13,ca,3,3,"div",7),s()()),r&2&&(f("ngClass",D(6,Yr,"Active"in i.service.values?i.service.values.Active:"CurrentMediaState"in i.service.values?fe(4,Qr).includes(i.service.values.CurrentMediaState):fe(5,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)),a(2),w("aria-label","Doorbell"),a(5),k(i.service.customName||i.service.serviceName),a(),_("CurrentMediaState"in i.service.values?8:"Active"in i.service.values&&!i.service.values.Active?9:"Mute"in i.service.values&&i.service.values.Mute?10:"Volume"in i.service.values?11:fe(9,Gi).includes(i.service.customType||i.service.type)?12:13))},dependencies:[z,P,E],encapsulation:2})}return e})();var mt=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function da(e,n){if(e&1){let t=O();o(0,"h6",12),l(1),d(2,"translate"),s(),o(3,"div",13)(4,"button",6),C("click",function(i){M(t);let c=u();return T(c.setRotationDirection(0,i))}),o(5,"div",7),m(6,"i",8),s(),l(7),d(8,"translate"),o(9,"div",9),m(10,"i",10),s()(),o(11,"button",6),C("click",function(i){M(t);let c=u();return T(c.setRotationDirection(1,i))}),o(12,"div",7),m(13,"i",8),s(),l(14),d(15,"translate"),o(16,"div",9),m(17,"i",10),s()()()}if(e&2){let t=u();a(),k(p(2,5,"accessories.control.rotation_direction")),a(5),f("ngClass",D(11,mt,t.service.values.RotationDirection===0,t.service.values.RotationDirection!==0)),a(),h(" ",p(8,7,"accessories.control.rotation_clockwise")," "),a(6),f("ngClass",D(14,mt,t.service.values.RotationDirection===1,t.service.values.RotationDirection!==1)),a(),h(" ",p(15,9,"accessories.control.rotation_c_clockwise")," ")}}function pa(e,n){e&1&&l(0,"%")}function ma(e,n){if(e&1){let t=O();o(0,"h6",12),l(1),d(2,"translate"),x(3,pa,1,0),s(),o(4,"nouislider",14),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetRotationSpeed.value,i)||(c.targetRotationSpeed.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onTargetRotationSpeedChange())}),s()}if(e&2){let t=u();a(),j(" ",p(2,7,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value),a(2),_(t.targetRotationSpeed.unit==="percentage"?3:-1),a(),f("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),$("ngModel",t.targetRotationSpeed.value)}}var Zi=(()=>{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,r){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),r.target.blur()}onTargetRotationSpeedChange(){this.targetRotationSpeedChanged.next(this.targetRotationSpeed.value)}setRotationDirection(t,r){this.service.getCharacteristic("RotationDirection").setValue(t),r.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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:24,vars:20,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","aria-label","Fan Mode Control",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","aria-label","Fan Direction Control",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5)(7,"button",6),C("click",function(S){return i.setTargetMode(!1,S)}),o(8,"div",7),m(9,"i",8),s(),l(10),d(11,"translate"),o(12,"div",9),m(13,"i",10),s()(),o(14,"button",6),C("click",function(S){return i.setTargetMode(!0,S)}),o(15,"div",7),m(16,"i",8),s(),l(17),d(18,"translate"),o(19,"div",9),m(20,"i",10),s()()(),x(21,da,18,17),x(22,ma,5,9),s(),m(23,"div",11),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,8,"form.button_close")),a(6),f("ngClass",D(14,mt,!i.targetMode,i.targetMode)),a(),h(" ",p(11,10,"accessories.control.off")," "),a(6),f("ngClass",D(17,mt,i.targetMode,!i.targetMode)),a(),h(" ",p(18,12,"accessories.control.on")," "),a(4),_(i.hasRotationDirection?21:-1),a(),_(i.targetRotationSpeed?22:-1))},dependencies:[Q,oe,re,ae,P,E],encapsulation:2})}return e})();var ua=e=>({"switch-on":e}),fa=(e,n)=>({spin:e,"spin-counter":n});function va(e,n){if(e&1&&(o(0,"div",8),l(1),s()),e&2){let t=u();a(),j("",t.service.values.RotationSpeed,"",t.rotationSpeedUnit)}}function ga(e,n){if(e&1&&(m(0,"div",9),d(1,"translate")),e&2){let t=u();f("innerText",p(1,1,t.service.values.On||t.service.values.Active?"accessories.control.on":"accessories.control.off"))}}var Ki=(()=>{class e{$modal=F(X);service;readyForControl=!1;rotationSpeedUnit="";hasRotationDirection=!1;ngOnInit(){"RotationSpeed"in this.service.values&&this.service.serviceCharacteristics.find(r=>r.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(Zi,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-fan"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:11,vars:10,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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3)(4,"g",4),m(5,"path",5),s(),m(6,"circle",6),s()(),L(),o(7,"div",7),l(8),s(),x(9,va,2,2,"div",8)(10,ga,2,3,"div",9),s()()),r&2&&(f("ngClass",U(5,ua,i.service.values.On||i.service.values.Active)),a(2),f("ngClass",D(7,fa,(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)),w("aria-label","Fan"),a(6),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.On&&i.service.values.RotationSpeed?9:10))},dependencies:[z,P,E],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 Qi=(()=>{class e{$activeModal=F(Y);service;targetMode;ngOnInit(){setTimeout(()=>{document.querySelectorAll(".noUi-target").forEach(r=>{r.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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:15,vars:16,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","aria-label","Fan Mode Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"h6",5),l(7),d(8,"translate"),s(),o(9,"nouislider",6),q("ngModelChange",function(S){return G(i.service.values.FilterLifeLevel,S)||(i.service.values.FilterLifeLevel=S),S}),s(),o(10,"div",7)(11,"button",8),C("click",function(S){return i.resetFilterLife(S)}),l(12),d(13,"translate"),s()()(),m(14,"div",9),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,10,"form.button_close")),a(4),j("",p(8,12,"accessories.control.filter_level"),": ",i.service.values.FilterLifeLevel,"%"),a(2),f("min",0)("max",100)("step",1)("disabled",!0),$("ngModel",i.service.values.FilterLifeLevel),a(3),h(" ",p(13,14,"form.button_reset")," "))},dependencies:[Q,oe,re,ae,E],encapsulation:2})}return e})();var ha=(e,n)=>({replace:e,dirty:n}),Ca=e=>({"red-text":e});function xa(e,n){e&1&&(l(0," \xB7 "),o(1,"span",28),l(2),d(3,"translate"),s()),e&2&&(a(2),k(p(3,1,"accessories.control.replace")))}var Yi=(()=>{class e{$modal=F(X);service;readyForControl=!1;onClick(){if(!this.readyForControl)return;let t=this.$modal.open(Qi,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-filter-maintenance"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:31,vars:11,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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"ellipse",4)(5,"ellipse",5)(6,"line",6)(7,"line",7)(8,"path",8)(9,"line",9)(10,"line",10)(11,"line",11)(12,"line",12)(13,"line",13)(14,"line",14)(15,"line",15)(16,"line",16)(17,"line",17)(18,"line",18)(19,"line",19)(20,"line",20)(21,"line",21)(22,"line",22)(23,"line",23)(24,"line",24),s()(),L(),o(25,"div",25),l(26),s(),o(27,"div",26)(28,"span",27),l(29),s(),x(30,xa,4,3),s()()()),r&2&&(f("ngClass",D(6,ha,i.service.values.FilterChangeIndication===1||i.service.values.FilterLifeLevel<10,i.service.values.FilterChangeIndication!==1&&i.service.values.FilterLifeLevel<50)),a(2),w("aria-label","Filter Maintenance"),a(24),k(i.service.customName||i.service.serviceName),a(2),f("ngClass",U(9,Ca,i.service.values.FilterChangeIndication===1)),a(),h(" ",i.service.values.FilterLifeLevel,"% "),a(),_(i.service.values.FilterChangeIndication===1?30:-1))},dependencies:[P,z,E],styles:[".dirty svg .status{fill:#ff9800!important} .replace svg .status{fill:#d32f2f!important} body.dark-mode svg .back{fill:#2b2b2b!important}"]})}return e})();var _a=()=>[0,2,3,4],ya=(e,n,t,r,i,c,S)=>({"switch-on":e,opening:n,open:t,closing:r,closed:i,stopped:c,obstructed:S});function ka(e,n){e&1&&(o(0,"div",30),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.obstructed")))}function Sa(e,n){e&1&&(o(0,"div",30),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.open")))}function ba(e,n){e&1&&(o(0,"div",31),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.closed")))}function wa(e,n){e&1&&(o(0,"div",30),l(1),d(2,"translate"),s()),e&2&&(a(),h("",p(2,1,"accessories.control.opening"),"..."))}function Ma(e,n){e&1&&(o(0,"div",30),l(1),d(2,"translate"),s()),e&2&&(a(),h("",p(2,1,"accessories.control.closing"),"..."))}function Ta(e,n){e&1&&(o(0,"div",30),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.stopped")))}function Ea(e,n){if(e&1&&x(0,Sa,3,3,"div",30)(1,ba,3,3,"div",31)(2,wa,3,3,"div",30)(3,Ma,3,3,"div",30)(4,Ta,3,3,"div",30),e&2){let t,r=u();_((t=r.service.values.CurrentDoorState)===0?0:t===1?1:t===2?2:t===3?3:t===4?4:-1)}}function Va(e,n){e&1&&(o(0,"div",30),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.open")))}function Pa(e,n){e&1&&(o(0,"div",31),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.closed")))}function Da(e,n){if(e&1&&x(0,Va,3,3,"div",30)(1,Pa,3,3,"div",31),e&2){let t=u();_(t.service.values.On||t.service.values.Active?0:1)}}var Xi=(()=>{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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-garage-door-opener"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:34,vars:13,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(r,i){r&1&&(o(0,"div",0),C("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"circle",4)(5,"line",5)(6,"line",6)(7,"circle",7)(8,"line",8)(9,"line",9)(10,"line",10)(11,"line",11)(12,"line",12)(13,"line",13)(14,"line",14)(15,"line",15)(16,"line",16)(17,"line",17)(18,"line",18)(19,"line",19)(20,"line",20)(21,"line",21)(22,"line",22)(23,"line",23)(24,"line",24)(25,"line",25)(26,"line",26)(27,"line",27)(28,"line",28),s()(),L(),o(29,"div",29),l(30),s(),x(31,ka,3,3,"div",30)(32,Ea,5,1)(33,Da,2,1),s()()),r&2&&(f("ngClass",ki(5,ya,i.service.values.ObstructionDetected||fe(4,_a).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)),a(2),w("aria-label","Garage Door"),a(28),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.ObstructionDetected?31:"CurrentDoorState"in i.service.values?32:33))},dependencies:[z,P,E],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 Aa=(e,n,t)=>({cooling:e,heating:n,"no-current-state":t}),Ye=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Ba(e,n){if(e&1){let t=O();o(0,"button",7),C("click",function(i){M(t);let c=u(2);return T(c.setTargetMode(0,i))}),o(1,"div",8),m(2,"i",9),s(),l(3),d(4,"translate"),o(5,"div",10),m(6,"i",11),s()()}if(e&2){let t=u(2);a(2),f("ngClass",D(4,Ye,t.targetMode===0,t.targetMode!==0)),a(),h(" ",p(4,2,"accessories.control.auto")," ")}}function Fa(e,n){if(e&1){let t=O();o(0,"button",7),C("click",function(i){M(t);let c=u(2);return T(c.setTargetMode(1,i))}),o(1,"div",8),m(2,"i",9),s(),l(3),d(4,"translate"),o(5,"div",10),m(6,"i",11),s()()}if(e&2){let t=u(2);a(2),f("ngClass",D(4,Ye,t.targetMode===1,t.targetMode!==1)),a(),h(" ",p(4,2,"accessories.control.heat")," ")}}function Ia(e,n){if(e&1){let t=O();o(0,"button",7),C("click",function(i){M(t);let c=u(2);return T(c.setTargetMode(2,i))}),o(1,"div",8),m(2,"i",9),s(),l(3),d(4,"translate"),o(5,"div",10),m(6,"i",11),s()()}if(e&2){let t=u(2);a(2),f("ngClass",D(4,Ye,t.targetMode===2,t.targetMode!==2)),a(),h(" ",p(4,2,"accessories.control.cool")," ")}}function Ha(e,n){if(e&1&&(o(0,"h6",13),l(1),d(2,"translate"),s(),o(3,"div",14),x(4,Ba,7,7,"button",15),x(5,Fa,7,7,"button",15),x(6,Ia,7,7,"button",15),s()),e&2){let t=u();a(),k(p(2,4,"accessories.control.mode")),a(3),_(t.targetStateValidValues.includes(0)?4:-1),a(),_(t.targetStateValidValues.includes(1)?5:-1),a(),_(t.targetStateValidValues.includes(2)?6:-1)}}function La(e,n){if(e&1){let t=O();o(0,"h6",16),l(1),d(2,"translate"),d(3,"convertTemp"),d(4,"number"),d(5,"uppercase"),d(6,"convertTemp"),d(7,"number"),d(8,"uppercase"),s(),o(9,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u(2);return G(c.autoTemp,i)||(c.autoTemp=i),T(i)}),C("ngModelChange",function(){M(t);let i=u(2);return T(i.onAutoTemperatureStateChange())}),s()}if(e&2){let t=u(2);a(),at(" ",p(2,9,"accessories.control.target_auto"),": ",ce(4,13,p(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",p(5,16,t.temperatureUnits)," - ",ce(7,20,p(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",p(8,23,t.temperatureUnits)," "),a(8),f("min",t.HeatingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),$("ngModel",t.autoTemp)}}function Oa(e,n){if(e&1){let t=O();o(0,"h6",13),l(1),d(2,"translate"),d(3,"convertTemp"),d(4,"number"),d(5,"uppercase"),s(),o(6,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u(2);return G(c.targetHeatingTemp,i)||(c.targetHeatingTemp=i),T(i)}),C("ngModelChange",function(){M(t);let i=u(2);return T(i.onTemperatureStateChange())}),s()}if(e&2){let t=u(2);a(),Le(" ",p(2,7,"accessories.control.target_auto"),": ",ce(4,11,p(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",p(5,14,t.temperatureUnits)," "),a(5),f("min",t.HeatingThresholdTemperature.minValue)("max",t.HeatingThresholdTemperature.maxValue)("step",t.HeatingThresholdTemperature.minStep),$("ngModel",t.targetHeatingTemp)}}function Na(e,n){if(e&1){let t=O();o(0,"h6",13),l(1),d(2,"translate"),d(3,"convertTemp"),d(4,"number"),d(5,"uppercase"),s(),o(6,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u(2);return G(c.targetCoolingTemp,i)||(c.targetCoolingTemp=i),T(i)}),C("ngModelChange",function(){M(t);let i=u(2);return T(i.onTemperatureStateChange())}),s()}if(e&2){let t=u(2);a(),Le(" ",p(2,7,"accessories.control.target_auto"),": ",ce(4,11,p(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",p(5,14,t.temperatureUnits)," "),a(5),f("min",t.CoolingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),$("ngModel",t.targetCoolingTemp)}}function Ra(e,n){if(e&1&&x(0,La,10,25)(1,Oa,7,16)(2,Na,7,16),e&2){let t=u();_(t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?0:t.HeatingThresholdTemperature&&!t.CoolingThresholdTemperature?1:!t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?2:-1)}}var Ji=(()=>{class e{$activeModal=F(Y);$settings=F(Ae);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(r=>{r.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,r){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetTemperature(),r.target.blur()}setTargetMode(t,r){this.targetMode=t,this.service.getCharacteristic("TargetHeaterCoolerState").setValue(this.targetMode),this.loadTargetTemperature(),r.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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:28,vars:33,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"temperature-circle","temperature-circle-big","mb-4",3,"innerText","ngClass"],["role","group","aria-label","Heater Cooler State Control",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","aria-label","Heater Cooler Mode Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4),m(6,"div",5),d(7,"convertTemp"),d(8,"number"),d(9,"uppercase"),o(10,"div",6)(11,"button",7),C("click",function(S){return i.setTargetState(0,S)}),o(12,"div",8),m(13,"i",9),s(),l(14),d(15,"translate"),o(16,"div",10),m(17,"i",11),s()(),o(18,"button",7),C("click",function(S){return i.setTargetState(1,S)}),o(19,"div",8),m(20,"i",9),s(),l(21),d(22,"translate"),o(23,"div",10),m(24,"i",11),s()()(),x(25,Ha,7,6),x(26,Ra,3,1),s(),m(27,"div",12),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,10,"form.button_close")),a(3),f("innerText",ce(8,14,p(7,12,i.service.values.CurrentTemperature),"1.0-1")+"\xB0"+p(9,17,i.temperatureUnits))("ngClass",Te(23,Aa,i.service.values.CurrentHeaterCoolerState===3&&i.service.values.Active===1,i.service.values.CurrentHeaterCoolerState===2&&i.service.values.Active===1,i.service.values.CurrentHeaterCoolerState<2&&i.service.values.Active===1)),a(7),f("ngClass",D(27,Ye,i.targetState===0,i.targetState!==0)),a(),h(" ",p(15,19,"accessories.control.off")," "),a(6),f("ngClass",D(30,Ye,i.targetState===1,i.targetState!==1)),a(),h(" ",p(22,21,"accessories.control.on")," "),a(4),_(i.targetStateValidValues.length?25:-1),a(),_(i.targetStateValidValues.includes(0)?26:-1))},dependencies:[P,Q,oe,re,ae,Ee,E,Be,De],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}}.temperature-circle-big[_ngcontent-%COMP%]{width:80px;height:80px;line-height:80px;font-size:22px}@keyframes _ngcontent-%COMP%_animate-cooling{0%{background-position:0 100%}to{background-position:0 0}}@keyframes _ngcontent-%COMP%_animate-heating{0%{background-position:0 0}to{background-position:0 100%}}.cooling[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-cooling 5s linear infinite;background-image:linear-gradient(0deg,#1e8bbd,#66d6d6,#1e8bbd,#66d6d6);background-size:100% 300%;color:#fff}.heating[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-heating 5s linear infinite;background-image:linear-gradient(0deg,#cc5e00,#e69533,#cc5e00,#e69533);background-size:100% 300%;color:#fff}.no-current-state[_ngcontent-%COMP%]{background-color:#42d672;color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out}"]})}return e})();var Wa=e=>({"switch-on":e});function ja(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.off")," ")}function Ua(e,n){if(e&1&&(m(0,"i",26),l(1),d(2,"convertTemp"),d(3,"number"),d(4,"uppercase"),d(5,"convertTemp"),d(6,"number"),d(7,"uppercase")),e&2){let t=u(2);a(),xi(" ",ce(3,6,p(2,4,t.service.values.HeatingThresholdTemperature),"1.0-1"),"\xB0",p(4,9,t.temperatureUnits)," - ",ce(6,13,p(5,11,t.service.values.CoolingThresholdTemperature),"1.0-1"),"\xB0",p(7,16,t.temperatureUnits)," ")}}function za(e,n){if(e&1&&(m(0,"i",26),l(1),d(2,"convertTemp"),d(3,"number"),d(4,"uppercase")),e&2){let t=u(2);a(),j(" ",ce(3,4,p(2,2,t.service.values.HeatingThresholdTemperature),"1.0-1"),"\xB0",p(4,7,t.temperatureUnits)," ")}}function $a(e,n){if(e&1&&(m(0,"i",26),l(1),d(2,"convertTemp"),d(3,"number"),d(4,"uppercase")),e&2){let t=u(2);a(),j(" ",ce(3,4,p(2,2,t.service.values.CoolingThresholdTemperature),"1.0-1"),"\xB0",p(4,7,t.temperatureUnits)," ")}}function Ga(e,n){if(e&1&&x(0,Ua,8,18)(1,za,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 qa(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.heat")," ")}function Za(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.cool")," ")}function Ka(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.on")," ")}var en=(()=>{class e{$modal=F(X);$settings=F(Ae);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(Ji,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-heater-cooler"]],inputs:{service:"service",readyForControl:"readyForControl",type:"type"},decls:39,vars:15,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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3)(4,"defs")(5,"linearGradient",4)(6,"stop",5),m(7,"animate",6),s(),o(8,"stop",7),m(9,"animate",8),s(),o(10,"stop",9),m(11,"animate",6),s()(),o(12,"linearGradient",10)(13,"stop",11),m(14,"animate",12),s(),o(15,"stop",13),m(16,"animate",14),s(),o(17,"stop",15),m(18,"animate",12),s()()(),m(19,"rect",16)(20,"line",17)(21,"line",18)(22,"line",19)(23,"line",20)(24,"line",21)(25,"rect",22),o(26,"text",23),l(27),d(28,"convertTemp"),d(29,"number"),d(30,"uppercase"),s()()(),L(),o(31,"div",24),l(32),s(),o(33,"div",25),x(34,ja,2,3)(35,Ga,3,1)(36,qa,2,3)(37,Za,2,3)(38,Ka,2,3),s()()()),r&2&&(f("ngClass",U(13,Wa,i.service.values.Active||i.service.values.On)),a(2),w("aria-label","Heater Cooler"),a(23),w("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"),a(2),h(" ","CurrentTemperature"in i.service.values?ce(29,8,p(28,6,i.service.values.CurrentTemperature),"1.0-1")+"\xB0"+p(30,11,i.temperatureUnits):""," "),a(5),k(i.service.customName||i.service.serviceName),a(2),_("Active"in i.service.values&&!i.service.values.Active||"On"in i.service.values&&!i.service.values.On?34:i.service.values.TargetHeaterCoolerState===0&&(i.hasHeating||i.hasCooling)?35:i.service.values.TargetHeaterCoolerState===1?36:i.service.values.TargetHeaterCoolerState===2?37:38))},dependencies:[z,P,Ee,E,Be,De],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}}.temperature-circle-big[_ngcontent-%COMP%]{width:80px;height:80px;line-height:80px;font-size:22px}@keyframes _ngcontent-%COMP%_animate-cooling{0%{background-position:0 100%}to{background-position:0 0}}@keyframes _ngcontent-%COMP%_animate-heating{0%{background-position:0 0}to{background-position:0 100%}}.cooling[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-cooling 5s linear infinite;background-image:linear-gradient(0deg,#1e8bbd,#66d6d6,#1e8bbd,#66d6d6);background-size:100% 300%;color:#fff}.heating[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-heating 5s linear infinite;background-image:linear-gradient(0deg,#cc5e00,#e69533,#cc5e00,#e69533);background-size:100% 300%;color:#fff}.no-current-state[_ngcontent-%COMP%]{background-color:#42d672;color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out}"]})}return e})();var Qa=(e,n,t)=>({dehumidifying:e,humidifying:n,"no-current-state":t}),Xe=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Ya(e,n){if(e&1){let t=O();o(0,"button",8),C("click",function(i){M(t);let c=u(2);return T(c.setTargetMode(0,i))}),o(1,"div",9),m(2,"i",10),s(),l(3),d(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u(2);a(2),f("ngClass",D(4,Xe,t.targetMode===0,t.targetMode!==0)),a(),h(" ",p(4,2,"accessories.control.auto")," ")}}function Xa(e,n){if(e&1){let t=O();o(0,"button",8),C("click",function(i){M(t);let c=u(2);return T(c.setTargetMode(1,i))}),o(1,"div",9),m(2,"i",10),s(),l(3),d(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u(2);a(2),f("ngClass",D(4,Xe,t.targetMode===1,t.targetMode!==1)),a(),h(" ",p(4,2,"accessories.control.humidify")," ")}}function Ja(e,n){if(e&1){let t=O();o(0,"button",8),C("click",function(i){M(t);let c=u(2);return T(c.setTargetMode(2,i))}),o(1,"div",9),m(2,"i",10),s(),l(3),d(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u(2);a(2),f("ngClass",D(4,Xe,t.targetMode===2,t.targetMode!==2)),a(),h(" ",p(4,2,"accessories.control.dehumidify")," ")}}function es(e,n){if(e&1&&(o(0,"h6",14),l(1),d(2,"translate"),s(),o(3,"div",15),x(4,Ya,7,7,"button",16),x(5,Xa,7,7,"button",16),x(6,Ja,7,7,"button",16),s()),e&2){let t=u();a(),k(p(2,4,"accessories.control.mode")),a(3),_(t.targetStateValidValues.includes(0)?4:-1),a(),_(t.targetStateValidValues.includes(1)?5:-1),a(),_(t.targetStateValidValues.includes(2)?6:-1)}}function ts(e,n){if(e&1){let t=O();o(0,"h6",14),l(1),d(2,"translate"),s(),o(3,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u(2);return G(c.autoHumidity,i)||(c.autoHumidity=i),T(i)}),C("ngModelChange",function(){M(t);let i=u(2);return T(i.onAutoHumidityStateChange())}),s()}if(e&2){let t=u(2);a(),Le(" ",p(2,7,"accessories.control.target_auto"),": ",t.autoHumidity[0],"% - ",t.autoHumidity[1],"% "),a(2),f("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),$("ngModel",t.autoHumidity)}}function is(e,n){if(e&1){let t=O();o(0,"h6",14),l(1),d(2,"translate"),s(),o(3,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u(2);return G(c.targetHumidifierHumidity,i)||(c.targetHumidifierHumidity=i),T(i)}),C("ngModelChange",function(){M(t);let i=u(2);return T(i.onHumidityStateChange())}),s()}if(e&2){let t=u(2);a(),j("",p(2,6,"accessories.control.target_auto"),": ",t.targetHumidifierHumidity,"%"),a(2),f("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityHumidifierThreshold.maxValue)("step",t.RelativeHumidityHumidifierThreshold.minStep),$("ngModel",t.targetHumidifierHumidity)}}function ns(e,n){if(e&1){let t=O();o(0,"h6",14),l(1),d(2,"translate"),s(),o(3,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u(2);return G(c.targetDehumidifierHumidity,i)||(c.targetDehumidifierHumidity=i),T(i)}),C("ngModelChange",function(){M(t);let i=u(2);return T(i.onHumidityStateChange())}),s()}if(e&2){let t=u(2);a(),j("",p(2,6,"accessories.control.target_auto"),": ",t.targetDehumidifierHumidity,"%"),a(2),f("min",t.RelativeHumidityDehumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),$("ngModel",t.targetDehumidifierHumidity)}}function os(e,n){if(e&1&&x(0,ts,4,9)(1,is,4,8)(2,ns,4,8),e&2){let t=u();_(t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?0:t.RelativeHumidityHumidifierThreshold&&!t.RelativeHumidityDehumidifierThreshold?1:!t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?2:-1)}}var tn=(()=>{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(r=>{r.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,r){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetHumidity(),r.target.blur()}setTargetMode(t,r){this.targetMode=t,this.service.getCharacteristic("TargetHumidifierDehumidifierState").setValue(this.targetMode),this.loadTargetHumidity(),r.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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:26,vars:26,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,"humidity-drop","humidity-drop-big","mb-3",3,"ngClass"],[1,"humidity-drop-text",3,"innerText"],["role","group","aria-label","Humidifier Dehumidifier State Control",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","aria-label","Humidifier Dehumidifier Mode Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5),m(7,"div",6),s(),o(8,"div",7)(9,"button",8),C("click",function(S){return i.setTargetState(0,S)}),o(10,"div",9),m(11,"i",10),s(),l(12),d(13,"translate"),o(14,"div",11),m(15,"i",12),s()(),o(16,"button",8),C("click",function(S){return i.setTargetState(1,S)}),o(17,"div",9),m(18,"i",10),s(),l(19),d(20,"translate"),o(21,"div",11),m(22,"i",12),s()()(),x(23,es,7,6),x(24,os,3,1),s(),m(25,"div",13),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,10,"form.button_close")),a(3),f("ngClass",Te(16,Qa,i.service.values.CurrentHumidifierDehumidifierState===3&&i.service.values.Active===1,i.service.values.CurrentHumidifierDehumidifierState===2&&i.service.values.Active===1,i.service.values.CurrentHumidifierDehumidifierState===1&&i.service.values.Active===1)),a(),f("innerText",i.service.values.CurrentRelativeHumidity+"%"),a(4),f("ngClass",D(20,Xe,i.targetState===0,i.targetState!==0)),a(),h(" ",p(13,12,"accessories.control.off")," "),a(6),f("ngClass",D(23,Xe,i.targetState===1,i.targetState!==1)),a(),h(" ",p(20,14,"accessories.control.on")," "),a(4),_(i.targetStateValidValues.length?23:-1),a(),_(i.targetStateValidValues.includes(0)?24:-1))},dependencies:[P,Q,oe,re,ae,E],styles:[".humidity-drop[_ngcontent-%COMP%]{position:relative;display:inline-block;width:50px;height:50px;line-height:45px;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:29px;font-size:10px;margin-bottom:7px;margin-top:5px}.humidity-drop-collapse[_ngcontent-%COMP%] .humidity-drop-text[_ngcontent-%COMP%]{margin-left:0}}.humidity-drop-text[_ngcontent-%COMP%]{transform:rotate(-45deg);margin-left:-4px}.humidity-drop-big[_ngcontent-%COMP%]{width:80px;height:80px;line-height:76px;font-size:22px}.humidity-drop-big[_ngcontent-%COMP%] .humidity-drop-text[_ngcontent-%COMP%]{margin-left:-3px}@keyframes _ngcontent-%COMP%_animate-humidifying{0%{background-position:0 100%}to{background-position:0 0}}@keyframes _ngcontent-%COMP%_animate-dehumidifying{0%{background-position:0 0}to{background-position:0 100%}}.humidifying[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-dehumidifying 5s linear infinite;background-image:linear-gradient(0deg,#1e8bbd,#66d6d6,#1e8bbd,#66d6d6);background-size:100% 300%;color:#fff}.dehumidifying[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-humidifying 5s linear infinite;background-image:linear-gradient(0deg,#cc5e00,#e69533,#cc5e00,#e69533);background-size:100% 300%;color:#fff}.no-current-state[_ngcontent-%COMP%]{background-color:#42d672;color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out}"]})}return e})();var rs=e=>({"switch-on":e});function as(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.off")," ")}function ss(e,n){if(e&1&&(m(0,"i",39),l(1)),e&2){let t=u(2);a(),j(" ",t.service.values.RelativeHumidityHumidifierThreshold,"% - ",t.service.values.RelativeHumidityDehumidifierThreshold,"% ")}}function ls(e,n){if(e&1&&(m(0,"i",39),l(1)),e&2){let t=u(2);a(),h(" ",t.service.values.RelativeHumidityHumidifierThreshold,"% ")}}function cs(e,n){if(e&1&&(m(0,"i",39),l(1)),e&2){let t=u(2);a(),h(" ",t.service.values.RelativeHumidityDehumidifierThreshold,"% ")}}function ds(e,n){if(e&1&&x(0,ss,2,2)(1,ls,2,1)(2,cs,2,1),e&2){let t=u();_(t.hasHumidifier&&t.hasDehumidifier?0:t.hasHumidifier&&!t.hasDehumidifier?1:!t.hasHumidifier&&t.hasDehumidifier?2:-1)}}function ps(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.humidify")," ")}function ms(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.dehumidify")," ")}function us(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.on")," ")}function fs(e,n){if(e&1&&x(0,ms,2,3)(1,us,2,3),e&2){let t=u();_(t.service.values.TargetHumidifierDehumidifierState===2?0:1)}}var nn=(()=>{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(tn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-humidifier-dehumidifier"]],inputs:{service:"service",readyForControl:"readyForControl",type:"type"},decls:48,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"],["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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3)(4,"defs")(5,"linearGradient",4)(6,"stop",5),m(7,"animate",6),s(),o(8,"stop",7),m(9,"animate",8),s(),o(10,"stop",9),m(11,"animate",6),s()(),o(12,"linearGradient",10)(13,"stop",11),m(14,"animate",12),s(),o(15,"stop",13),m(16,"animate",14),s(),o(17,"stop",15),m(18,"animate",12),s()()(),m(19,"rect",16)(20,"line",17)(21,"line",18)(22,"line",19)(23,"line",20)(24,"line",21)(25,"line",22)(26,"line",23)(27,"line",24)(28,"line",25)(29,"line",26)(30,"line",27)(31,"line",28)(32,"line",29)(33,"line",30)(34,"line",31)(35,"line",32)(36,"line",33)(37,"line",34)(38,"rect",35),o(39,"text",36),l(40),s()()(),L(),o(41,"div",37),l(42),s(),o(43,"div",38),x(44,as,2,3)(45,ds,3,1)(46,ps,2,3)(47,fs,2,1),s()()()),r&2&&(f("ngClass",U(6,rs,i.service.values.Active||i.service.values.On)),a(2),w("aria-label","Heater Cooler"),a(36),w("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"),a(2),h(" ","CurrentRelativeHumidity"in i.service.values?i.service.values.CurrentRelativeHumidity+"%":""," "),a(2),k(i.service.customName||i.service.serviceName),a(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:[z,P,E],styles:[".humidity-drop[_ngcontent-%COMP%]{position:relative;display:inline-block;width:50px;height:50px;line-height:45px;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:29px;font-size:10px;margin-bottom:7px;margin-top:5px}.humidity-drop-collapse[_ngcontent-%COMP%] .humidity-drop-text[_ngcontent-%COMP%]{margin-left:0}}.humidity-drop-text[_ngcontent-%COMP%]{transform:rotate(-45deg);margin-left:-4px}.humidity-drop-big[_ngcontent-%COMP%]{width:80px;height:80px;line-height:76px;font-size:22px}.humidity-drop-big[_ngcontent-%COMP%] .humidity-drop-text[_ngcontent-%COMP%]{margin-left:-3px}@keyframes _ngcontent-%COMP%_animate-humidifying{0%{background-position:0 100%}to{background-position:0 0}}@keyframes _ngcontent-%COMP%_animate-dehumidifying{0%{background-position:0 0}to{background-position:0 100%}}.humidifying[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-dehumidifying 5s linear infinite;background-image:linear-gradient(0deg,#1e8bbd,#66d6d6,#1e8bbd,#66d6d6);background-size:100% 300%;color:#fff}.dehumidifying[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-humidifying 5s linear infinite;background-image:linear-gradient(0deg,#cc5e00,#e69533,#cc5e00,#e69533);background-size:100% 300%;color:#fff}.no-current-state[_ngcontent-%COMP%]{background-color:#42d672;color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out}"]})}return e})();var on=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-humidity-sensor"]],inputs:{service:"service"},decls:6,vars:2,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"humidity-drop","humidity-drop-collapse"],[1,"humidity-drop-text",3,"innerText"],[1,"accessory-label","mt-auto"]],template:function(r,i){r&1&&(xe(0,"div",0)(1,"div",1)(2,"div",2),Pe(3,"div",3),Se(),xe(4,"div",4),l(5),Se()()()),r&2&&(a(3),rt("innerText",(typeof i.service.values.CurrentRelativeHumidity=="number"?i.service.values.CurrentRelativeHumidity:"?")+"%"),a(2),k(i.service.customName||i.service.serviceName))},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 vs=e=>({"switch-on":e});function gs(e,n){e&1&&(o(0,"div",14),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.running")))}function hs(e,n){e&1&&(o(0,"div",14),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.off")))}var rn=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-irrigation-system"]],inputs:{service:"service"},decls:17,vars:6,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(r,i){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"line",5)(6,"line",6)(7,"line",7)(8,"line",8)(9,"rect",9)(10,"rect",10)(11,"rect",11)(12,"rect",12),s()(),L(),o(13,"div",13),l(14),s(),x(15,gs,3,3,"div",14)(16,hs,3,3,"div",14),s()()),r&2&&(f("ngClass",U(4,vs,i.service.values.InUse)),a(2),w("aria-label","Irrigation System"),a(12),h(" ",i.service.customName||i.service.values.ConfiguredName||i.service.serviceName," "),a(),_(i.service.values.InUse?15:16))},dependencies:[P,E],styles:[".switch-on svg .field{fill:#4caf50} .switch-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 Cs=e=>({"switch-on":e});function xs(e,n){e&1&&(o(0,"div",21),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.detected")))}function _s(e,n){e&1&&(o(0,"div",22),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.not_detected")))}var an=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-leak-sensor"]],inputs:{service:"service"},decls:24,vars:6,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(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.25","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","red-text"],[1,"accessory-label","grey-text"]],template:function(r,i){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4),o(5,"g",5),m(6,"path",6),s(),m(7,"line",7)(8,"line",8)(9,"line",9)(10,"line",10)(11,"line",11)(12,"line",12)(13,"line",13)(14,"line",14)(15,"line",15)(16,"line",16)(17,"line",17)(18,"line",18)(19,"line",19),s()(),L(),o(20,"div",20),l(21),s(),x(22,xs,3,3,"div",21)(23,_s,3,3,"div",22),s()()),r&2&&(f("ngClass",U(4,Cs,i.service.values.LeakDetected)),a(2),w("aria-label","Leak Sensor"),a(19),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.LeakDetected?22:23))},dependencies:[P,E],styles:[".switch-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})();var ut=(()=>{class e{miredToKelvin(t){return Math.round(1e6/t)}kelvinToMired(t){return Math.round(1e6/t)}kelvinToHsl(t){let r=t/100,i,c,S;r<=66?(i=255,c=Math.min(99.4708025861*Math.log(r)-161.1195681661,255),S=r<=19?0:Math.min(138.5177312231*Math.log(r-10)-305.0447927307,255)):(i=Math.min(329.698727446*(r-60)**-.1332047592,255),c=Math.min(288.1221695283*(r-60)**-.0755148492,255),S=255),i/=255,c/=255,S/=255;let Z=Math.max(i,c,S),ie=Math.min(i,c,S),R=Z-ie,K=0;R!==0&&(Z===i?K=(c-S)/R%6:Z===c?K=(S-i)/R+2:K=(i-c)/R+4,K=Math.round(K*60),K<0&&(K+=360));let de=(Z+ie)/2,_e=R===0?0:R/(1-Math.abs(2*de-1));return`hsl(${Math.round(K)}, ${Math.round(_e*100)}%, ${Math.round(de*100)}%)`}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var sn=(e,n)=>({"fa-check-circle":e,"fa-blank":n}),ys=(e,n)=>({"off-text":e,"on-text":n}),Ot=(e,n)=>({"mb-1":e,"":n});function ks(e,n){e&1&&m(0,"div")}function Ss(e,n){if(e&1&&(o(0,"div",11)(1,"div",13)(2,"div",7),m(3,"i",14),s(),l(4),d(5,"translate"),o(6,"div",9),m(7,"i",10),s()()()),e&2){let t=u();a(3),f("ngClass",D(5,ys,!t.isAdaptiveLightingEnabled,t.isAdaptiveLightingEnabled)),a(),j(" ",p(5,3,"accessories.control.adaptive_lighting"),": ",t.isAdaptiveLightingEnabled?"ON":"OFF"," ")}}function bs(e,n){if(e&1){let t=O();o(0,"h6",15),l(1),d(2,"translate"),s(),o(3,"nouislider",16),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetBrightness.value,i)||(c.targetBrightness.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onBrightnessStateChange())}),s()}if(e&2){let t=u();a(),j("",p(2,6,"accessories.control.brightness"),": ",t.targetBrightness.value,"%"),a(2),f("min",t.targetBrightness.min)("max",t.targetBrightness.max)("step",t.targetBrightness.step),$("ngModel",t.targetBrightness.value)}}function ws(e,n){e&1&&(o(0,"div",18)(1,"span",19),l(2),d(3,"translate"),s()()),e&2&&(a(2),k(p(3,1,"accessories.control.adaptive_lighting_note")))}function Ms(e,n){if(e&1){let t=O();o(0,"h6",15),l(1),d(2,"translate"),s(),o(3,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetHue.value,i)||(c.targetHue.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onHueStateChange())}),s(),x(4,ws,4,3,"div",18)}if(e&2){let t=u();a(),j("",p(2,8,"accessories.control.hue"),": ",t.targetHue.value,"\xB0"),a(2),f("min",0)("max",360)("step",1),$("ngModel",t.targetHue.value),f("ngClass",D(10,Ot,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),a(),_(t.isAdaptiveLightingEnabled?4:-1)}}function Ts(e,n){e&1&&(o(0,"div",18)(1,"span",19),l(2),d(3,"translate"),s()()),e&2&&(a(2),k(p(3,1,"accessories.control.adaptive_lighting_note")))}function Es(e,n){if(e&1){let t=O();o(0,"h6",15),l(1),d(2,"translate"),s(),o(3,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetSaturation.value,i)||(c.targetSaturation.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onSaturationStateChange())}),s(),x(4,Ts,4,3,"div",18)}if(e&2){let t=u();a(),j("",p(2,8,"accessories.control.saturation"),": ",t.targetSaturation.value,"%"),a(2),f("min",0)("max",100)("step",1),$("ngModel",t.targetSaturation.value),f("ngClass",D(10,Ot,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),a(),_(t.isAdaptiveLightingEnabled?4:-1)}}function Vs(e,n){e&1&&(o(0,"div",18)(1,"span",19),l(2),d(3,"translate"),s()()),e&2&&(a(2),k(p(3,1,"accessories.control.adaptive_lighting_note")))}function Ps(e,n){if(e&1){let t=O();o(0,"h6",15),l(1),d(2,"translate"),d(3,"convertMired"),s(),o(4,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetColorTemperature.value,i)||(c.targetColorTemperature.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onColorTemperatureStateChange())}),s(),x(5,Vs,4,3,"div",18)}if(e&2){let t=u();a(),j(" ",p(2,8,"accessories.control.color_temperature"),": ",p(3,10,t.targetColorTemperature.mired)," "),a(3),f("min",t.targetColorTemperature.min)("max",t.targetColorTemperature.max)("step",t.targetColorTemperature.step),$("ngModel",t.targetColorTemperature.value),f("ngClass",D(12,Ot,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),a(),_(t.isAdaptiveLightingEnabled?5:-1)}}var ln=(()=>{class e{$activeModal=F(Y);$colour=F(ut);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,r){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),r.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 r=this.targetHue.value;t.style.background=`linear-gradient(to right,
|
|
2
|
-
hsl(${r}, 0%, 50%),
|
|
3
|
-
hsl(${r}, 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 r=document.querySelectorAll(".noUi-target")[this.sliderIndex];r&&(r.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 r=document.querySelectorAll(".noUi-target")[this.sliderIndex];r&&(r.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 r=document.querySelectorAll(".noUi-target")[this.sliderIndex];if(r){let i=this.targetHue.value||0;r.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 r=document.querySelectorAll(".noUi-target")[this.sliderIndex];if(r){let i=this.$colour.kelvinToHsl(this.targetColorTemperature.min),c=this.$colour.kelvinToHsl(this.targetColorTemperature.max);r.style.background=`linear-gradient(to right, ${i}, ${c})`}},10),this.isAdaptiveLightingEnabled$&&(this.hasAdaptiveLighting=!0,this.isAdaptiveLightingEnabled$.subscribe(r=>{this.isAdaptiveLightingEnabled=r})))}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],inputs:{service:"service",isAdaptiveLightingEnabled$:"isAdaptiveLightingEnabled$"},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"],["role","group","aria-label","Lightbulb Mode Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5)(7,"button",6),C("click",function(S){return i.setTargetMode(!1,S)}),o(8,"div",7),m(9,"i",8),s(),l(10),d(11,"translate"),o(12,"div",9),m(13,"i",10),s()(),o(14,"button",6),C("click",function(S){return i.setTargetMode(!0,S)}),o(15,"div",7),m(16,"i",8),s(),l(17),d(18,"translate"),o(19,"div",9),m(20,"i",10),s()(),x(21,ks,1,0,"div"),s(),x(22,Ss,8,8,"div",11),x(23,bs,4,8),x(24,Ms,5,13),x(25,Es,5,13),x(26,Ps,6,15),s(),m(27,"div",12),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,12,"form.button_close")),a(6),f("ngClass",D(18,sn,!i.targetMode,i.targetMode)),a(),h(" ",p(11,14,"accessories.control.off")," "),a(6),f("ngClass",D(21,sn,i.targetMode,!i.targetMode)),a(),h(" ",p(18,16,"accessories.control.on")," "),a(4),_(i.hasAdaptiveLighting?21:-1),a(),_(i.hasAdaptiveLighting?22:-1),a(),_(i.targetBrightness?23:-1),a(),_(i.targetHue?24:-1),a(),_(i.targetSaturation?25:-1),a(),_(i.targetColorTemperature?26:-1))},dependencies:[Q,oe,re,ae,P,E,bi],encapsulation:2})}return e})();var Ds=e=>({"light-on":e});function As(e,n){if(e&1&&(m(0,"div",10),d(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>":""):p(1,1,"accessories.control.off"),At)}}function Bs(e,n){if(e&1&&(m(0,"div",10),d(1,"translate")),e&2){let t=u();f("innerHTML",p(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"),At)}}var cn=(()=>{class e{$modal=F(X);intervalId;$colour=F(ut);service;readyForControl=!1;hasAdaptiveLighting=!1;isAdaptiveLightingEnabled=!1;isAdaptiveLightingEnabled$=new ti(!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 r=this.isAdaptiveLightingEnabled$.subscribe(i=>{this.isAdaptiveLightingEnabled=i});t.result.finally(()=>{this.intervalId&&clearInterval(this.intervalId),r.unsubscribe(),this.intervalId=setInterval(()=>{this.isAdaptiveLightingEnabled$.next(!!this.service.values.CharacteristicValueActiveTransitionCount)},3e4)})}}}kelvinToHex(t){t=Math.max(1e3,Math.min(4e4,t));let r=t/100,i,c,S;return r<=66?(i=255,c=r,c=99.4708025861*Math.log(c)-161.1195681661,S=r<=19?0:138.5177312231*Math.log(r-10)-305.0447927307):(i=329.698727446*(r-60)**-.1332047592,c=288.1221695283*(r-60)**-.0755148492,S=255),i=Math.round(Math.min(Math.max(i,0),255)),c=Math.round(Math.min(Math.max(c,0),255)),S=Math.round(Math.min(Math.max(S,0),255)),`#${i.toString(16).padStart(2,"0")}${c.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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-light-bulb"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:13,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"],["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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"path",4)(5,"line",5)(6,"line",6)(7,"line",7)(8,"line",8),s()(),L(),o(9,"div",9),l(10),s(),x(11,As,2,3,"div",10)(12,Bs,2,3,"div",10),s()()),r&2&&(f("ngClass",U(6,Ds,i.service.values.On||i.service.values.Active)),a(2),w("aria-label","Light Bulb"),a(2),w("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),a(6),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.Brightness?11:12))},dependencies:[z,P,E],encapsulation:2})}return e})();function Fs(e,n){if(e&1&&(xe(0,"div",28),l(1),d(2,"number"),Se()),e&2){let t=u();a(),h("",ce(2,1,t.service.values.CurrentAmbientLightLevel,"0.1-1")," lux")}}function Is(e,n){if(e&1&&(xe(0,"div",28),l(1),d(2,"number"),Se()),e&2){let t=u();a(),h("",ce(2,1,t.service.values.CurrentAmbientLightLevel,"1.0-0")," lux")}}var dn=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-light-sensor"]],inputs:{service:"service"},decls:31,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"],["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(r,i){r&1&&(xe(0,"div",0)(1,"div",1)(2,"div",2),I(),xe(3,"svg",3),Pe(4,"rect",4)(5,"circle",5)(6,"line",6)(7,"line",7)(8,"line",8)(9,"line",9)(10,"line",10)(11,"line",11)(12,"line",12)(13,"line",13)(14,"line",14)(15,"line",15)(16,"line",16)(17,"line",17)(18,"line",18)(19,"line",19)(20,"line",20)(21,"line",21)(22,"line",22)(23,"line",23)(24,"line",24)(25,"line",25)(26,"line",26),Se()(),L(),xe(27,"div",27),l(28),Se(),x(29,Fs,3,4,"div",28)(30,Is,3,4,"div",28),Se()()),r&2&&(a(2),w("aria-label","Light Sensor"),a(26),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.CurrentAmbientLightLevel<1?29:30))},dependencies:[Ee],encapsulation:2})}return e})();var ft=(()=>{class e{transform(t){if(typeof t!="number"||Number.isNaN(t))return"";let r=Math.floor(t/60),i=t%60;return[r>0?`${r.toString()}m`:"",i>0?`${i.toString()}s`:""].filter(Boolean).join(" ")}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=pi({name:"duration",type:e,pure:!0})}return e})();var pn=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Hs(e,n){if(e&1){let t=O();o(0,"h6",12),l(1),d(2,"translate"),d(3,"duration"),s(),o(4,"nouislider",13),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetLockManagementAutoSecurityTimeout.value,i)||(c.targetLockManagementAutoSecurityTimeout.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onLockManagementAutoSecurityTimeoutStateChange())}),s()}if(e&2){let t=u();a(),j(" ",p(2,6,"accessories.control.lock_auto"),": ",t.targetLockManagementAutoSecurityTimeout.value===0?"\u221E":p(3,8,t.targetLockManagementAutoSecurityTimeout.value)," "),a(3),f("min",t.targetLockManagementAutoSecurityTimeout.min)("max",t.targetLockManagementAutoSecurityTimeout.max)("step",10),$("ngModel",t.targetLockManagementAutoSecurityTimeout.value)}}var mn=(()=>{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),oi()).subscribe(()=>{this.serviceManagement.getCharacteristic("LockManagementAutoSecurityTimeout").setValue(this.targetLockManagementAutoSecurityTimeout.value)}),this.loadTargetLockManagementAutoSecurityTimeout())}setTargetMode(t,r){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)),r.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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:23,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"],["role","group","aria-label","Lock Mode Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5)(7,"button",6),C("click",function(S){return i.setTargetMode(1,S)}),o(8,"div",7),m(9,"i",8),s(),l(10),d(11,"translate"),o(12,"div",9),m(13,"i",10),s()(),o(14,"button",6),C("click",function(S){return i.setTargetMode(0,S)}),o(15,"div",7),m(16,"i",8),s(),l(17),d(18,"translate"),o(19,"div",9),m(20,"i",10),s()()(),x(21,Hs,5,10),s(),m(22,"div",11),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,7,"form.button_close")),a(6),f("ngClass",D(13,pn,i.targetMode===1,i.targetMode!==1)),a(),h(" ",p(11,9,"accessories.control.locked")," "),a(6),f("ngClass",D(16,pn,i.targetMode===0,i.targetMode!==0)),a(),h(" ",p(18,11,"accessories.control.unlocked")," "),a(4),_(i.serviceManagement?21:-1))},dependencies:[Q,oe,re,ae,P,E,ft],encapsulation:2})}return e})();var Ls=(e,n,t,r)=>({"switch-on":e,unlocked:n,jammed:t,error:r}),Os=(e,n)=>({"red-text":e,"grey-text":n});function Ns(e,n){if(e&1&&(m(0,"div",9),d(1,"translate")),e&2){let t=u();f("innerText",p(1,2,t.service.values.LockCurrentState?"accessories.control.locked":"accessories.control.unlocked"))("ngClass",D(4,Os,!t.service.values.LockCurrentState,t.service.values.LockCurrentState))}}function Rs(e,n){e&1&&(o(0,"div",10),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.jammed")))}function Ws(e,n){e&1&&(o(0,"div",10),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.unknown")))}var un=(()=>{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(mn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-lock-mechanism"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:13,vars:9,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(r,i){r&1&&(o(0,"div",0),C("shortClick",function(){return i.onClick()})("longClick",function(){return i.onLongClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"path",4)(5,"path",5)(6,"rect",6)(7,"circle",7),s()(),L(),o(8,"div",8),l(9),s(),x(10,Ns,2,7,"div",9)(11,Rs,3,3,"div",10)(12,Ws,3,3,"div",10),s()()),r&2&&(f("ngClass",st(4,Ls,"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)),a(2),w("aria-label","Lock Mechanism"),a(7),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.LockCurrentState<2?10:i.service.values.LockCurrentState===2?11:i.service.values.LockCurrentState===3?12:-1))},dependencies:[z,P,E],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 ze=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function js(e,n){if(e&1){let t=O();o(0,"div",5)(1,"button",7),C("click",function(i){M(t);let c=u();return T(c.setActive(0,i))}),o(2,"div",8),m(3,"i",9),s(),l(4),d(5,"translate"),o(6,"div",10),m(7,"i",11),s()(),o(8,"button",7),C("click",function(i){M(t);let c=u();return T(c.setActive(1,i))}),o(9,"div",8),m(10,"i",9),s(),l(11),d(12,"translate"),o(13,"div",10),m(14,"i",11),s()()()}if(e&2){let t=u();a(3),f("ngClass",D(8,ze,t.service.values.Active===0,t.service.values.Active!==0)),a(),h(" ",p(5,4,"accessories.control.off")," "),a(6),f("ngClass",D(11,ze,t.service.values.Active===1,t.service.values.Active!==1)),a(),h(" ",p(12,6,"accessories.control.on")," ")}}function Us(e,n){if(e&1){let t=O();o(0,"div",5)(1,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetState(0,i))}),o(2,"div",8),m(3,"i",9),s(),l(4),d(5,"translate"),o(6,"div",10),m(7,"i",11),s()(),o(8,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetState(1,i))}),o(9,"div",8),m(10,"i",9),s(),l(11),d(12,"translate"),o(13,"div",10),m(14,"i",11),s()(),o(15,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetState(2,i))}),o(16,"div",8),m(17,"i",9),s(),l(18),d(19,"translate"),o(20,"div",10),m(21,"i",11),s()()()}if(e&2){let t=u();a(3),f("ngClass",D(12,ze,t.service.values.CurrentMediaState===0,t.service.values.CurrentMediaState!==0)),a(),h(" ",p(5,6,"accessories.control.play")," "),a(6),f("ngClass",D(15,ze,t.service.values.CurrentMediaState===1,t.service.values.CurrentMediaState!==1)),a(),h(" ",p(12,8,"accessories.control.pause")," "),a(6),f("ngClass",D(18,ze,t.service.values.CurrentMediaState===2,t.service.values.CurrentMediaState!==2)),a(),h(" ",p(19,10,"accessories.control.stop")," ")}}function zs(e,n){if(e&1){let t=O();o(0,"h6"),l(1),d(2,"translate"),s(),o(3,"div",12)(4,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(!1,i))}),o(5,"div",8),m(6,"i",9),s(),l(7),d(8,"translate"),o(9,"div",10),m(10,"i",11),s()(),o(11,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(!0,i))}),o(12,"div",8),m(13,"i",9),s(),l(14),d(15,"translate"),o(16,"div",10),m(17,"i",11),s()()()}if(e&2){let t=u();a(),h(" ",p(2,5,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),a(5),f("ngClass",D(11,ze,!t.targetMode,t.targetMode)),a(),h(" ",p(8,7,"accessories.control.not_mute")," "),a(6),f("ngClass",D(14,ze,t.targetMode,!t.targetMode)),a(),h(" ",p(15,9,"accessories.control.mute")," ")}}function $s(e,n){if(e&1){let t=O();o(0,"h6",13),l(1),d(2,"translate"),s(),o(3,"nouislider",14),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetVolume.value,i)||(c.targetVolume.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onVolumeStateChange())}),s()}if(e&2){let t=u();a(),j("",p(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),a(2),f("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),$("ngModel",t.targetVolume.value)}}var fn=(()=>{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,r){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),r.target.blur()}setActive(t,r){this.service.getCharacteristic("Active").setValue(t),r.target.blur()}setTargetState(t,r){this.service.getCharacteristic("TargetMediaState").setValue(t),r.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(r){return new(r||e)};static \u0275cmp=b({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","aria-label","Microphone Mode Control",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","aria-label","Microphone Mute Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4),x(6,js,15,14,"div",5)(7,Us,22,21,"div",5),x(8,zs,18,17),x(9,$s,4,8),s(),m(10,"div",6),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,5,"form.button_close")),a(3),_("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),a(2),_("Mute"in i.service.values?8:-1),a(),_(i.targetVolume?9:-1))},dependencies:[Q,oe,re,ae,P,E],encapsulation:2})}return e})();var Gs=()=>[0,1],vn=()=>["Speaker","SmartSpeaker"],qs=(e,n)=>({"switch-on":e,paused:n});function Zs(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.play")," ")}function Ks(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.pause")," ")}function Qs(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.stop")," ")}function Ys(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" \xB7 ",p(1,1,"accessories.control.mute")," ")}function Xs(e,n){if(e&1&&l(0),e&2){let t=u(3);h(" \xB7 ",t.service.values.Volume,"% ")}}function Js(e,n){if(e&1&&x(0,Xs,1,1),e&2){let t=u(2);_("Volume"in t.service.values?0:-1)}}function el(e,n){if(e&1&&(o(0,"div",10),x(1,Zs,2,3)(2,Ks,2,3)(3,Qs,2,3),x(4,Ys,2,3)(5,Js,1,1),s()),e&2){let t,r=u();a(),_((t=r.service.values.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),a(3),_("Mute"in r.service.values&&r.service.values.Mute?4:5)}}function tl(e,n){e&1&&(m(0,"div",11),d(1,"translate")),e&2&&f("innerText",p(1,1,"accessories.control.off"))}function il(e,n){e&1&&(m(0,"div",11),d(1,"translate")),e&2&&f("innerText",p(1,1,"accessories.control.mute"))}function nl(e,n){if(e&1&&(o(0,"div",10),l(1),s()),e&2){let t=u();a(),h("",t.service.values.Volume,"%")}}function ol(e,n){e&1&&(o(0,"div",10),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.on")))}function rl(e,n){e&1&&(o(0,"div",10),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.microphone")))}var gn=(()=>{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(fn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-microphone"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:17,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"],["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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"line",5)(6,"line",6)(7,"line",7)(8,"circle",8),s()(),L(),o(9,"div",9),l(10),s(),x(11,el,6,2,"div",10)(12,tl,2,3,"div",11)(13,il,2,3,"div",11)(14,nl,2,1,"div",10)(15,ol,3,3,"div",10)(16,rl,3,3,"div",10),s()()),r&2&&(f("ngClass",D(6,qs,"Active"in i.service.values?i.service.values.Active:"CurrentMediaState"in i.service.values?fe(4,Gs).includes(i.service.values.CurrentMediaState):fe(5,vn).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)),a(2),w("aria-label","Microphone"),a(8),k(i.service.customName||i.service.serviceName),a(),_("CurrentMediaState"in i.service.values?11:"Active"in i.service.values&&!i.service.values.Active?12:"Mute"in i.service.values&&i.service.values.Mute?13:"Volume"in i.service.values?14:fe(9,vn).includes(i.service.customType||i.service.type)?15:16))},dependencies:[z,P,E],encapsulation:2})}return e})();var al=e=>({"switch-on":e});function sl(e,n){e&1&&(o(0,"div",25),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.detected")))}function ll(e,n){e&1&&(o(0,"div",26),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.not_detected")))}var hn=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-motion-sensor"]],inputs:{service:"service"},decls:28,vars:6,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(r,i){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4),o(5,"g",5),m(6,"path",6)(7,"path",7),s(),m(8,"rect",8)(9,"rect",9)(10,"rect",10)(11,"line",11)(12,"line",12)(13,"line",13)(14,"line",14)(15,"line",15)(16,"line",16)(17,"line",17)(18,"line",18)(19,"line",19)(20,"line",20)(21,"line",21)(22,"line",22)(23,"line",23),s()(),L(),o(24,"div",24),l(25),s(),x(26,sl,3,3,"div",25)(27,ll,3,3,"div",26),s()()),r&2&&(f("ngClass",U(4,al,i.service.values.MotionDetected)),a(2),w("aria-label","Motion Sensor"),a(23),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.MotionDetected?26:27))},dependencies:[P,E],styles:[".switch-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 cl=e=>({"switch-on":e});function dl(e,n){e&1&&(o(0,"div",22),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.detected")))}function pl(e,n){e&1&&(o(0,"div",23),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.not_detected")))}var Cn=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-occupancy-sensor"]],inputs:{service:"service"},decls:25,vars:6,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(r,i){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4),o(5,"g",5),m(6,"path",6)(7,"path",7),s(),m(8,"line",8)(9,"line",9)(10,"line",10)(11,"line",11)(12,"line",12)(13,"line",13)(14,"line",14)(15,"line",15)(16,"line",16)(17,"line",17)(18,"line",18)(19,"line",19)(20,"line",20),s()(),L(),o(21,"div",21),l(22),s(),x(23,dl,3,3,"div",22)(24,pl,3,3,"div",23),s()()),r&2&&(f("ngClass",U(4,cl,i.service.values.OccupancyDetected)),a(2),w("aria-label","Occupancy Sensor"),a(20),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.OccupancyDetected?23:24))},dependencies:[P,E],styles:[".switch-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 xn=()=>[0,2],ml=e=>({"switch-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):"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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-outlet"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:15,vars:10,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"],["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"],["x","6","y","11","width","20","height","10","fill","#7f7f7f","stroke","none","stroke-width","1.5","rx","1","ry","1",1,"plug"],["x1","16","y1","16","x2","16","y2","32","stroke","#7f7f7f","stroke-linecap","round","stroke-width","1.5",1,"plug"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(r,i){r&1&&(o(0,"div",0),C("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"circle",5)(6,"line",6)(7,"line",7)(8,"line",8)(9,"rect",9)(10,"line",10),s()(),L(),o(11,"div",11),l(12),s(),m(13,"div",12),d(14,"translate"),s()()),r&2&&(f("ngClass",U(7,ml,i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&fe(6,xn).includes(i.service.values.CurrentDoorState))),a(2),w("aria-label","Outlet"),a(10),k(i.service.customName||i.service.serviceName),a(),f("innerText",p(14,4,i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&fe(9,xn).includes(i.service.values.CurrentDoorState)?"accessories.control.on":"accessories.control.off")))},dependencies:[z,P,E],styles:[".accessory-svg[_ngcontent-%COMP%] .plug[_ngcontent-%COMP%]{opacity:0;pointer-events:none;transform:translateY(100%);transition:transform 1.5s cubic-bezier(.4,0,.2,1),opacity 1.5s}.switch-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] .outer[_ngcontent-%COMP%]{stroke:#1976d2;stroke-opacity:.75;stroke-width:2.5}.switch-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{stroke:#1976d2;stroke-opacity:.75}.switch-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] .plug[_ngcontent-%COMP%]{opacity:1;pointer-events:auto;transform:translateY(0)}"]})}return e})();var ul=e=>({"switch-on":e}),yn=(()=>{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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-robot-vacuum"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:35,vars:8,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(r,i){r&1&&(o(0,"div",0),C("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3)(4,"defs")(5,"clipPath",4),m(6,"rect",5),s()(),o(7,"g",6),m(8,"ellipse",7)(9,"line",8)(10,"line",9)(11,"path",10)(12,"ellipse",11)(13,"circle",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16),s(),o(18,"g",17)(19,"line",18),m(20,"animate",19)(21,"animate",20)(22,"animate",21),s(),o(23,"line",22),m(24,"animate",23)(25,"animate",24)(26,"animate",25),s(),o(27,"line",26),m(28,"animate",27)(29,"animate",28)(30,"animate",29),s()()()(),L(),o(31,"div",30),l(32),s(),m(33,"div",31),d(34,"translate"),s()()),r&2&&(f("ngClass",U(6,ul,i.service.values.On||i.service.values.Active)),a(2),w("aria-label","Robot Vacuum"),a(30),k(i.service.customName||i.service.serviceName),a(),f("innerText",p(34,4,i.service.values.On||i.service.values.Active?"accessories.control.on":"accessories.control.off")))},dependencies:[z,P,E],styles:[".switch-on svg .motion-lines{display:inline!important}"]})}return e})();var vt=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function fl(e,n){if(e&1){let t=O();o(0,"button",8),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(3,i))}),o(1,"div",9),m(2,"i",10),s(),l(3),d(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u();a(2),f("ngClass",D(4,vt,t.targetMode===3,t.targetMode!==3)),a(),h(" ",p(4,2,"accessories.control.off")," ")}}function vl(e,n){if(e&1){let t=O();o(0,"button",8),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(0,i))}),o(1,"div",9),m(2,"i",10),s(),l(3),d(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u();a(2),f("ngClass",D(4,vt,t.targetMode===0,t.targetMode!==0)),a(),h(" ",p(4,2,"accessories.control.home")," ")}}function gl(e,n){if(e&1){let t=O();o(0,"button",8),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(1,i))}),o(1,"div",9),m(2,"i",10),s(),l(3),d(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u();a(2),f("ngClass",D(4,vt,t.targetMode===1,t.targetMode!==1)),a(),h(" ",p(4,2,"accessories.control.away")," ")}}function hl(e,n){if(e&1){let t=O();o(0,"button",8),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(2,i))}),o(1,"div",9),m(2,"i",10),s(),l(3),d(4,"translate"),o(5,"div",11),m(6,"i",12),s()()}if(e&2){let t=u();a(2),f("ngClass",D(4,vt,t.targetMode===2,t.targetMode!==2)),a(),h(" ",p(4,2,"accessories.control.night")," ")}}var kn=(()=>{class e{$activeModal=F(Y);service;targetMode;targetModeValidValues=[];ngOnInit(){this.targetMode=this.service.values.SecuritySystemTargetState,this.targetModeValidValues=this.service.getCharacteristic("SecuritySystemTargetState").validValues}setTargetMode(t,r){this.targetMode=t,this.service.getCharacteristic("SecuritySystemTargetState").setValue(this.targetMode),r.target.blur()}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:12,vars:8,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","aria-label","Security System Mode Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5),x(7,fl,7,7,"button",6),x(8,vl,7,7,"button",6),x(9,gl,7,7,"button",6),x(10,hl,7,7,"button",6),s()(),m(11,"div",7),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,6,"form.button_close")),a(4),_(i.targetModeValidValues.includes(3)?7:-1),a(),_(i.targetModeValidValues.includes(0)?8:-1),a(),_(i.targetModeValidValues.includes(1)?9:-1),a(),_(i.targetModeValidValues.includes(2)?10:-1))},dependencies:[Q,P,E],encapsulation:2})}return e})();var Cl=(e,n,t,r,i)=>({"switch-on":e,home:n,away:t,night:r,triggered:i});function xl(e,n){e&1&&(o(0,"div",10),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.home")))}function _l(e,n){e&1&&(o(0,"div",10),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.away")))}function yl(e,n){e&1&&(o(0,"div",10),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.night")))}function kl(e,n){e&1&&(o(0,"div",11),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.off")))}function Sl(e,n){e&1&&(o(0,"div",11),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.triggered")))}var Sn=(()=>{class e{$modal=F(X);service;readyForControl=!1;onClick(){if(!this.readyForControl)return;let t=this.$modal.open(kn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-security-system"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:16,vars:10,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(r,i){if(r&1&&(o(0,"div",0),C("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"path",4)(5,"rect",5)(6,"line",6)(7,"line",7)(8,"line",8),s()(),L(),o(9,"div",9),l(10),s(),x(11,xl,3,3,"div",10)(12,_l,3,3,"div",10)(13,yl,3,3,"div",10)(14,kl,3,3,"div",11)(15,Sl,3,3,"div",11),s()()),r&2){let c;f("ngClass",yi(4,Cl,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)),a(2),w("aria-label","Security System"),a(8),k(i.service.customName||i.service.serviceName),a(),_((c=i.service.values.SecuritySystemCurrentState)===0?11:c===1?12:c===2?13:c===3?14:c===4?15:-1)}},dependencies:[z,P,E],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 bl=e=>({"switch-on":e});function wl(e,n){e&1&&(o(0,"div",17),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.detected")))}function Ml(e,n){e&1&&(o(0,"div",18),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.not_detected")))}var bn=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-smoke-sensor"]],inputs:{service:"service"},decls:21,vars:6,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(r,i){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4),o(5,"text",5),l(6," SMOKE "),s(),m(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),s()(),L(),o(17,"div",16),l(18),s(),x(19,wl,3,3,"div",17)(20,Ml,3,3,"div",18),s()()),r&2&&(f("ngClass",U(4,bl,i.service.values.SmokeDetected)),a(2),w("aria-label","Smoke Sensor"),a(16),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.SmokeDetected?19:20))},dependencies:[P,E],styles:[".switch-on svg .air-line{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite} .switch-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 Tl(e,n){if(e&1){let t=O();o(0,"div",5)(1,"button",7),C("click",function(i){M(t);let c=u();return T(c.setActive(0,i))}),o(2,"div",8),m(3,"i",9),s(),l(4),d(5,"translate"),o(6,"div",10),m(7,"i",11),s()(),o(8,"button",7),C("click",function(i){M(t);let c=u();return T(c.setActive(1,i))}),o(9,"div",8),m(10,"i",9),s(),l(11),d(12,"translate"),o(13,"div",10),m(14,"i",11),s()()()}if(e&2){let t=u();a(3),f("ngClass",D(8,$e,t.service.values.Active===0,t.service.values.Active!==0)),a(),h(" ",p(5,4,"accessories.control.off")," "),a(6),f("ngClass",D(11,$e,t.service.values.Active===1,t.service.values.Active!==1)),a(),h(" ",p(12,6,"accessories.control.on")," ")}}function El(e,n){if(e&1){let t=O();o(0,"div",5)(1,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetState(0,i))}),o(2,"div",8),m(3,"i",9),s(),l(4),d(5,"translate"),o(6,"div",10),m(7,"i",11),s()(),o(8,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetState(1,i))}),o(9,"div",8),m(10,"i",9),s(),l(11),d(12,"translate"),o(13,"div",10),m(14,"i",11),s()(),o(15,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetState(2,i))}),o(16,"div",8),m(17,"i",9),s(),l(18),d(19,"translate"),o(20,"div",10),m(21,"i",11),s()()()}if(e&2){let t=u();a(3),f("ngClass",D(12,$e,t.service.values.CurrentMediaState===0,t.service.values.CurrentMediaState!==0)),a(),h(" ",p(5,6,"accessories.control.play")," "),a(6),f("ngClass",D(15,$e,t.service.values.CurrentMediaState===1,t.service.values.CurrentMediaState!==1)),a(),h(" ",p(12,8,"accessories.control.pause")," "),a(6),f("ngClass",D(18,$e,t.service.values.CurrentMediaState===2,t.service.values.CurrentMediaState!==2)),a(),h(" ",p(19,10,"accessories.control.stop")," ")}}function Vl(e,n){if(e&1){let t=O();o(0,"h6"),l(1),d(2,"translate"),s(),o(3,"div",12)(4,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(!1,i))}),o(5,"div",8),m(6,"i",9),s(),l(7),d(8,"translate"),o(9,"div",10),m(10,"i",11),s()(),o(11,"button",7),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(!0,i))}),o(12,"div",8),m(13,"i",9),s(),l(14),d(15,"translate"),o(16,"div",10),m(17,"i",11),s()()()}if(e&2){let t=u();a(),h(" ",p(2,5,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),a(5),f("ngClass",D(11,$e,!t.targetMode,t.targetMode)),a(),h(" ",p(8,7,"accessories.control.not_mute")," "),a(6),f("ngClass",D(14,$e,t.targetMode,!t.targetMode)),a(),h(" ",p(15,9,"accessories.control.mute")," ")}}function Pl(e,n){if(e&1){let t=O();o(0,"h6",13),l(1),d(2,"translate"),s(),o(3,"nouislider",14),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetVolume.value,i)||(c.targetVolume.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onVolumeStateChange())}),s()}if(e&2){let t=u();a(),j("",p(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),a(2),f("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),$("ngModel",t.targetVolume.value)}}var wn=(()=>{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,r){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),r.target.blur()}setActive(t,r){this.service.getCharacteristic("Active").setValue(t),r.target.blur()}setTargetState(t,r){this.service.getCharacteristic("TargetMediaState").setValue(t),r.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(r){return new(r||e)};static \u0275cmp=b({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","aria-label","Speaker Mode Control",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","aria-label","Speaker Mute Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4),x(6,Tl,15,14,"div",5)(7,El,22,21,"div",5),x(8,Vl,18,17),x(9,Pl,4,8),s(),m(10,"div",6),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,5,"form.button_close")),a(3),_("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),a(2),_("Mute"in i.service.values?8:-1),a(),_(i.targetVolume?9:-1))},dependencies:[Q,oe,re,ae,P,E],encapsulation:2})}return e})();var Dl=()=>[0,1],Mn=()=>["Speaker","SmartSpeaker"],Al=(e,n,t)=>({"switch-on":e,paused:n,muted:t});function Bl(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.play")," ")}function Fl(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.pause")," ")}function Il(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.stop")," ")}function Hl(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" \xB7 ",p(1,1,"accessories.control.mute")," ")}function Ll(e,n){if(e&1&&l(0),e&2){let t=u(3);h(" \xB7 ",t.service.values.Volume,"% ")}}function Ol(e,n){if(e&1&&x(0,Ll,1,1),e&2){let t=u(2);_("Volume"in t.service.values?0:-1)}}function Nl(e,n){if(e&1&&(o(0,"div",14),x(1,Bl,2,3)(2,Fl,2,3)(3,Il,2,3),x(4,Hl,2,3)(5,Ol,1,1),s()),e&2){let t,r=u();a(),_((t=r.service.values.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),a(3),_("Mute"in r.service.values&&r.service.values.Mute?4:5)}}function Rl(e,n){e&1&&(m(0,"div",15),d(1,"translate")),e&2&&f("innerText",p(1,1,"accessories.control.off"))}function Wl(e,n){e&1&&(m(0,"div",15),d(1,"translate")),e&2&&f("innerText",p(1,1,"accessories.control.mute"))}function jl(e,n){if(e&1&&(o(0,"div",14),l(1),s()),e&2){let t=u();a(),h("",t.service.values.Volume,"%")}}function Ul(e,n){e&1&&(o(0,"div",14),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.on")))}function zl(e,n){e&1&&(o(0,"div",14),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(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(wn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-speaker"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:21,vars:11,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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"circle",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12),s()(),L(),o(13,"div",13),l(14),s(),x(15,Nl,6,2,"div",14)(16,Rl,2,3,"div",15)(17,Wl,2,3,"div",15)(18,jl,2,1,"div",14)(19,Ul,3,3,"div",14)(20,zl,3,3,"div",14),s()()),r&2&&(f("ngClass",Te(6,Al,"Active"in i.service.values?i.service.values.Active:"CurrentMediaState"in i.service.values?fe(4,Dl).includes(i.service.values.CurrentMediaState):fe(5,Mn).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)),a(2),w("aria-label","Speaker"),a(12),k(i.service.customName||i.service.serviceName),a(),_("CurrentMediaState"in i.service.values?15:"Active"in i.service.values&&!i.service.values.Active?16:"Mute"in i.service.values&&i.service.values.Mute?17:"Volume"in i.service.values?18:fe(10,Mn).includes(i.service.customType||i.service.type)?19:20))},dependencies:[z,P,E],styles:[".switch-on:not(.paused):not(.muted) svg .wave-inner{animation:_ngcontent-%COMP%_pulse-inner 2s infinite} .switch-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(.switch-on) svg .inner{fill:#2b2b2b!important}"]})}return e})();var $l=(e,n,t)=>({"press-single":e,"press-double":n,"press-long":t}),En=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-stateless-programmable-switch"]],inputs:{service:"service"},decls:16,vars:10,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(r,i){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"circle",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"line",9)(10,"line",10),s()(),L(),o(11,"div",11),l(12),s(),o(13,"div",12),l(14),d(15,"translate"),s()()()),r&2&&(f("ngClass",Te(6,$l,i.service.values.ProgrammableSwitchEvent===0,i.service.values.ProgrammableSwitchEvent===1,i.service.values.ProgrammableSwitchEvent===2)),a(2),w("aria-label","Stateless Programmable Switch"),a(10),k(i.service.customName||i.service.serviceName),a(2),k(p(15,4,"accessories.control.stateless")))},dependencies:[P,E],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 Vn=()=>[0,2],Gl=e=>({"switch-on":e}),Pn=(()=>{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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-switch"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:11,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"],["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(r,i){r&1&&(o(0,"div",0),C("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"circle",4)(5,"line",5)(6,"path",6),s()(),L(),o(7,"div",7),l(8),s(),m(9,"div",8),d(10,"translate"),s()()),r&2&&(f("ngClass",U(7,Gl,i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&fe(6,Vn).includes(i.service.values.CurrentDoorState))),a(2),w("aria-label","Switch"),a(6),k(i.service.customName||i.service.serviceName),a(),f("innerText",p(10,4,i.service.values.On||i.service.values.Active||"LockTargetState"in i.service.values&&!i.service.values.LockTargetState||"CurrentDoorState"in i.service.values&&fe(9,Vn).includes(i.service.values.CurrentDoorState)?"accessories.control.on":"accessories.control.off")))},dependencies:[z,P,E],styles:[".switch-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{stroke:#1976d2;stroke-opacity:.75;stroke-width:2.5}.switch-on[_ngcontent-%COMP%] .accessory-svg[_ngcontent-%COMP%] line[_ngcontent-%COMP%]{stroke:#1976d2;stroke-opacity:.75}.switch-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}),Nt=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Zl(e,n){if(e&1){let t=O();o(0,"div",5)(1,"button",7),C("click",function(i){M(t);let c=u();return T(c.setActive(0,i))}),o(2,"div",8),m(3,"i",9),s(),l(4),d(5,"translate"),o(6,"div",10),m(7,"i",11),s()(),o(8,"button",7),C("click",function(i){M(t);let c=u();return T(c.setActive(1,i))}),o(9,"div",8),m(10,"i",9),s(),l(11),d(12,"translate"),o(13,"div",10),m(14,"i",11),s()()()}if(e&2){let t=u();f("ngClass",D(9,ql,t.sourceList.length,!t.sourceList.length)),a(3),f("ngClass",D(12,Nt,t.service.values.Active===0,t.service.values.Active!==0)),a(),h(" ",p(5,5,"accessories.control.off")," "),a(6),f("ngClass",D(15,Nt,t.service.values.Active===1,t.service.values.Active!==1)),a(),h(" ",p(12,7,"accessories.control.on")," ")}}function Kl(e,n){e&1&&(o(0,"h6"),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.input")))}function Ql(e,n){if(e&1){let t=O();o(0,"button",7),C("click",function(i){let c=M(t).$implicit,S=u(2);return T(S.setInput(c.identifier,i))}),o(1,"div",8),m(2,"i",9),s(),l(3),o(4,"div",10),m(5,"i",11),s()()}if(e&2){let t=n.$implicit,r=u(2);a(2),f("ngClass",D(2,Nt,r.service.values.ActiveIdentifier===t.identifier,r.service.values.ActiveIdentifier!==t.identifier)),a(),h(" ",t.name," ")}}function Yl(e,n){if(e&1&&(x(0,Kl,3,3,"h6"),o(1,"div",12),fi(2,Ql,6,5,"button",13,ui),s()),e&2){let t=u();_(t.hasActive?0:-1),a(2),vi(t.sourceList)}}var Dn=(()=>{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,r])=>{this.sourceList.push({identifier:Number.parseInt(t,10),name:r})})}setActive(t,r){this.service.getCharacteristic("Active").setValue(t),r.target.blur()}setInput(t,r){this.service.getCharacteristic("ActiveIdentifier").setValue(t),r.target.blur()}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({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","aria-label","Television Mode Control",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","aria-label","Television Input Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4),x(6,Zl,15,18,"div",5),x(7,Yl,4,1),s(),m(8,"div",6),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,4,"form.button_close")),a(3),_(i.hasActive?6:-1),a(),_(i.sourceList.length?7:-1))},dependencies:[Q,P,E],encapsulation:2})}return e})();var Xl=e=>({"switch-on":e});function Jl(e,n){if(e&1&&(o(0,"div",7),l(1),d(2,"translate"),s()),e&2){let t=u();a(),h(" ",t.channelList[t.service.values.ActiveIdentifier]||p(2,1,"accessories.control.on")," ")}}function ec(e,n){e&1&&(o(0,"div",7),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.off")))}var An=(()=>{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(Dn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service,t.componentInstance.inputList=this.channelList}}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-television"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:10,vars:6,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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"line",4)(5,"rect",5),s()(),L(),o(6,"div",6),l(7),s(),x(8,Jl,3,3,"div",7)(9,ec,3,3,"div",7),s()()),r&2&&(f("ngClass",U(4,Xl,i.service.values.Active||i.service.values.On)),a(2),w("aria-label","Television"),a(5),h(" ",i.service.customName||i.service.values.ConfiguredName||i.service.serviceName," "),a(),_(i.service.values.On||i.service.values.Active?8:9))},dependencies:[z,P,E],styles:["body.dark-mode .screen{fill:#2b2b2b;stroke:#7f7f7f} .switch-on svg .screen{animation:_ngcontent-%COMP%_color-change 3s infinite alternate} .switch-on svg .stand{stroke:#7f7f7f;stroke-opacity:1}@keyframes _ngcontent-%COMP%_color-change{0%{fill:#4fc3f7}to{fill:#0288d1}}"]})}return e})();var Bn=(()=>{class e{$settings=F(Ae);service;temperatureUnits=this.$settings.env.temperatureUnits;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-temperature-sensor"]],inputs:{service:"service"},decls:8,vars:9,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"temperature-circle","temperature-circle-collapse",3,"innerText"],[1,"accessory-label","mt-auto"]],template:function(r,i){r&1&&(xe(0,"div",0)(1,"div",1),Pe(2,"div",2),d(3,"convertTemp"),d(4,"number"),d(5,"uppercase"),xe(6,"div",3),l(7),Se()()()),r&2&&(a(2),rt("innerText",(typeof i.service.values.CurrentTemperature=="number"?ce(4,4,p(3,2,i.service.values.CurrentTemperature),"1.0-1"):"?")+"\xB0"+p(5,7,i.temperatureUnits)),a(5),k(i.service.customName||i.service.serviceName))},dependencies:[Ee,Be,De],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 tc=(e,n,t)=>({cooling:e,heating:n,"no-current-state":t}),gt=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function ic(e,n){if(e&1&&(o(0,"div",6),m(1,"div",10),s()),e&2){let t=u();a(),f("innerText",t.service.values.CurrentRelativeHumidity+"%")}}function nc(e,n){if(e&1){let t=O();o(0,"button",11),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(0,i))}),o(1,"div",12),m(2,"i",13),s(),l(3),d(4,"translate"),o(5,"div",14),m(6,"i",15),s()()}if(e&2){let t=u();a(2),f("ngClass",D(4,gt,t.targetMode===0,t.targetMode!==0)),a(),h(" ",p(4,2,"accessories.control.off")," ")}}function oc(e,n){if(e&1){let t=O();o(0,"button",11),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(3,i))}),o(1,"div",12),m(2,"i",13),s(),l(3),d(4,"translate"),o(5,"div",14),m(6,"i",15),s()()}if(e&2){let t=u();a(2),f("ngClass",D(4,gt,t.targetMode===3,t.targetMode!==3)),a(),h(" ",p(4,2,"accessories.control.auto")," ")}}function rc(e,n){if(e&1){let t=O();o(0,"button",11),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(1,i))}),o(1,"div",12),m(2,"i",13),s(),l(3),d(4,"translate"),o(5,"div",14),m(6,"i",15),s()()}if(e&2){let t=u();a(2),f("ngClass",D(4,gt,t.targetMode===1,t.targetMode!==1)),a(),h(" ",p(4,2,"accessories.control.heat")," ")}}function ac(e,n){if(e&1){let t=O();o(0,"button",11),C("click",function(i){M(t);let c=u();return T(c.setTargetMode(2,i))}),o(1,"div",12),m(2,"i",13),s(),l(3),d(4,"translate"),o(5,"div",14),m(6,"i",15),s()()}if(e&2){let t=u();a(2),f("ngClass",D(4,gt,t.targetMode===2,t.targetMode!==2)),a(),h(" ",p(4,2,"accessories.control.cool")," ")}}function sc(e,n){if(e&1){let t=O();o(0,"h6",16),l(1),d(2,"translate"),d(3,"convertTemp"),d(4,"number"),d(5,"uppercase"),s(),o(6,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetTemperature.value,i)||(c.targetTemperature.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onTemperatureStateChange())}),s()}if(e&2){let t=u();a(),Le(" ",p(2,7,"accessories.control.target"),": ",ce(4,11,p(3,9,t.targetTemperature.value),"1.0-1"),"\xB0",p(5,14,t.temperatureUnits)," "),a(5),f("min",t.targetTemperature.min)("max",t.targetTemperature.max)("step",t.targetTemperature.step),$("ngModel",t.targetTemperature.value)}}function lc(e,n){if(e&1){let t=O();o(0,"h6",18),l(1),d(2,"translate"),d(3,"convertTemp"),d(4,"number"),d(5,"uppercase"),d(6,"convertTemp"),d(7,"number"),d(8,"uppercase"),s(),o(9,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u(2);return G(c.autoTemp,i)||(c.autoTemp=i),T(i)}),C("ngModelChange",function(){M(t);let i=u(2);return T(i.onAutoThresholdStateChange())}),s()}if(e&2){let t=u(2);a(),at(" ",p(2,9,"accessories.control.threshold_auto"),": ",ce(4,13,p(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",p(5,16,t.temperatureUnits)," - ",ce(7,20,p(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",p(8,23,t.temperatureUnits)," "),a(8),f("min",t.HeatingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),$("ngModel",t.autoTemp)}}function cc(e,n){if(e&1){let t=O();o(0,"h6",16),l(1),d(2,"translate"),d(3,"convertTemp"),d(4,"number"),d(5,"uppercase"),s(),o(6,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u(2);return G(c.targetHeatingTemp,i)||(c.targetHeatingTemp=i),T(i)}),C("ngModelChange",function(){M(t);let i=u(2);return T(i.onThresholdStateChange())}),s()}if(e&2){let t=u(2);a(),Le(" ",p(2,7,"accessories.control.threshold_auto"),": ",ce(4,11,p(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",p(5,14,t.temperatureUnits)," "),a(5),f("min",t.HeatingThresholdTemperature.minValue)("max",t.HeatingThresholdTemperature.maxValue)("step",t.HeatingThresholdTemperature.minStep),$("ngModel",t.targetHeatingTemp)}}function dc(e,n){if(e&1){let t=O();o(0,"h6",16),l(1),d(2,"translate"),d(3,"convertTemp"),d(4,"number"),d(5,"uppercase"),s(),o(6,"nouislider",17),q("ngModelChange",function(i){M(t);let c=u(2);return G(c.targetCoolingTemp,i)||(c.targetCoolingTemp=i),T(i)}),C("ngModelChange",function(){M(t);let i=u(2);return T(i.onThresholdStateChange())}),s()}if(e&2){let t=u(2);a(),Le(" ",p(2,7,"accessories.control.threshold_auto"),": ",ce(4,11,p(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",p(5,14,t.temperatureUnits)," "),a(5),f("min",t.CoolingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),$("ngModel",t.targetCoolingTemp)}}function pc(e,n){if(e&1&&x(0,lc,10,25)(1,cc,7,16)(2,dc,7,16),e&2){let t=u();_(t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?0:t.HeatingThresholdTemperature&&!t.CoolingThresholdTemperature?1:!t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?2:-1)}}var Fn=(()=>{class e{$activeModal=F(Y);$settings=F(Ae);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(r=>{r.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,r){this.targetMode=t,this.service.getCharacteristic("TargetHeatingCoolingState").setValue(this.targetMode),r.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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:19,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,"temperature-circle","temperature-circle-big","mb-4",3,"innerText","ngClass"],[1,"humidity-drop","humidity-drop-big","ms-5","no-current-state"],["role","group","aria-label","Thermostat Mode Control",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"],[1,"humidity-drop-text",3,"innerText"],["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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4),m(6,"div",5),d(7,"convertTemp"),d(8,"number"),d(9,"uppercase"),x(10,ic,2,1,"div",6),o(11,"div",7),x(12,nc,7,7,"button",8),x(13,oc,7,7,"button",8),x(14,rc,7,7,"button",8),x(15,ac,7,7,"button",8),s(),x(16,sc,7,16),x(17,pc,3,1),s(),m(18,"div",9),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,11,"form.button_close")),a(3),f("innerText",ce(8,15,p(7,13,i.service.values.CurrentTemperature),"1.0-1")+"\xB0"+p(9,18,i.temperatureUnits))("ngClass",Te(20,tc,i.service.values.CurrentHeatingCoolingState===2&&i.service.values.TargetHeatingCoolingState>0,i.service.values.CurrentHeatingCoolingState===1&&i.service.values.TargetHeatingCoolingState>0,i.service.values.TargetHeatingCoolingState>0&&i.service.values.CurrentHeatingCoolingState===0)),a(4),_(i.hasHumidity?10:-1),a(2),_(i.targetStateValidValues.includes(0)?12:-1),a(),_(i.targetStateValidValues.includes(3)?13:-1),a(),_(i.targetStateValidValues.includes(1)?14:-1),a(),_(i.targetStateValidValues.includes(2)?15:-1),a(),_("TargetTemperature"in i.service.values?16:-1),a(),_(i.targetStateValidValues.includes(3)?17:-1))},dependencies:[P,Q,oe,re,ae,Ee,E,Be,De],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}}.temperature-circle-big[_ngcontent-%COMP%]{width:80px;height:80px;line-height:80px;font-size:22px}@keyframes _ngcontent-%COMP%_animate-cooling{0%{background-position:0 100%}to{background-position:0 0}}@keyframes _ngcontent-%COMP%_animate-heating{0%{background-position:0 0}to{background-position:0 100%}}.cooling[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-cooling 5s linear infinite;background-image:linear-gradient(0deg,#1e8bbd,#66d6d6,#1e8bbd,#66d6d6);background-size:100% 300%;color:#fff}.heating[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-heating 5s linear infinite;background-image:linear-gradient(0deg,#cc5e00,#e69533,#cc5e00,#e69533);background-size:100% 300%;color:#fff}.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)}.humidity-drop-text[_ngcontent-%COMP%]{transform:rotate(-45deg);margin-left:-5px}.humidity-drop-big[_ngcontent-%COMP%]{width:80px;height:80px;line-height:70px;font-size:22px}.humidity-drop-big[_ngcontent-%COMP%] .humidity-drop-text[_ngcontent-%COMP%]{margin-left:-9px}.no-current-state[_ngcontent-%COMP%]{background-color:#42d672;color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out}"]})}return e})();var mc=e=>({"switch-on":e}),uc=(e,n,t)=>({cooling:e,heating:n,"no-current-state":t});function fc(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.off")," ")}function vc(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.heat")," ")}function gc(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.cool")," ")}function hc(e,n){if(e&1&&(m(0,"i",5),l(1),d(2,"convertTemp"),d(3,"number"),d(4,"uppercase")),e&2){let t=u();a(),j(" ",ce(3,4,p(2,2,t.service.values.TargetTemperature),"1.0-1"),"\xB0",p(4,7,t.temperatureUnits)," ")}}var In=(()=>{class e{$modal=F(X);$settings=F(Ae);service;readyForControl=!1;temperatureUnits=this.$settings.env.temperatureUnits;onClick(){if(!this.readyForControl)return;let t=this.$modal.open(Fn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-thermostat"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:13,vars:18,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick","ngClass"],[1,"d-flex","flex-column","h-100"],[1,"temperature-circle","temperature-circle-collapse",3,"innerText","ngClass"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"fa","fas","fa-bullseye"]],template:function(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1),m(2,"div",2),d(3,"convertTemp"),d(4,"number"),d(5,"uppercase"),o(6,"div",3),l(7),s(),o(8,"div",4),x(9,fc,2,3)(10,vc,2,3)(11,gc,2,3)(12,hc,5,9),s()()()),r&2&&(f("ngClass",U(12,mc,i.service.values.TargetHeatingCoolingState>0)),a(2),f("innerText",ce(4,7,p(3,5,i.service.values.CurrentTemperature),"1.0-1")+"\xB0"+p(5,10,i.temperatureUnits))("ngClass",Te(14,uc,i.service.values.CurrentHeatingCoolingState===2&&i.service.values.TargetHeatingCoolingState>0,i.service.values.CurrentHeatingCoolingState===1&&i.service.values.TargetHeatingCoolingState>0,i.service.values.TargetHeatingCoolingState>0&&i.service.values.CurrentHeatingCoolingState===0)),a(5),k(i.service.customName||i.service.serviceName),a(2),_(i.service.values.TargetHeatingCoolingState===0?9:i.service.values.TargetHeatingCoolingState===1?10:i.service.values.TargetHeatingCoolingState===2?11:i.service.values.TargetHeatingCoolingState===3?12:-1))},dependencies:[z,P,Ee,E,Be,De],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}}.temperature-circle-big[_ngcontent-%COMP%]{width:80px;height:80px;line-height:80px;font-size:22px}@keyframes _ngcontent-%COMP%_animate-cooling{0%{background-position:0 100%}to{background-position:0 0}}@keyframes _ngcontent-%COMP%_animate-heating{0%{background-position:0 0}to{background-position:0 100%}}.cooling[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-cooling 5s linear infinite;background-image:linear-gradient(0deg,#1e8bbd,#66d6d6,#1e8bbd,#66d6d6);background-size:100% 300%;color:#fff}.heating[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animate-heating 5s linear infinite;background-image:linear-gradient(0deg,#cc5e00,#e69533,#cc5e00,#e69533);background-size:100% 300%;color:#fff}.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)}.humidity-drop-text[_ngcontent-%COMP%]{transform:rotate(-45deg);margin-left:-5px}.humidity-drop-big[_ngcontent-%COMP%]{width:80px;height:80px;line-height:70px;font-size:22px}.humidity-drop-big[_ngcontent-%COMP%] .humidity-drop-text[_ngcontent-%COMP%]{margin-left:-9px}.no-current-state[_ngcontent-%COMP%]{background-color:#42d672;color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out}"]})}return e})();var Hn=(()=>{class e{service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-unknown"]],inputs:{service:"service"},decls:10,vars:3,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","16","cy","16","r","14","fill","none","stroke","#7f7f7f","stroke-width","1.5"],["d",`M12.2575393,17.7112593
|
|
25
|
-
L12.1868707,17.7112593
|
|
26
|
-
C11.0779698,17.7112593 10.6478221,16.9467914 11.2212184,16.0037726
|
|
27
|
-
L16.4805582,7.35415962
|
|
28
|
-
C17.67876,5.38357359 18.0624739,5.55948915 17.3376772,7.746963
|
|
29
|
-
L15.7252918,12.6132252
|
|
30
|
-
C15.3772095,13.6637556 15.9942825,14.5048291 17.0992511,14.5048291
|
|
31
|
-
L20.1977772,14.5048291
|
|
32
|
-
L20.1846183,14.5177121
|
|
33
|
-
L20.2552868,14.5177121
|
|
34
|
-
C21.3641878,14.5177121 21.7943355,15.2821799 21.2209392,16.2251988
|
|
35
|
-
L16.1844844,24.5082506
|
|
36
|
-
C14.864477,26.6791606 14.4411534,26.4839632 15.241777,24.0676402
|
|
37
|
-
L16.7168658,19.6157462
|
|
38
|
-
C17.0649481,18.5652158 16.447875,17.7241422 15.3429064,17.7241422
|
|
39
|
-
L12.2443804,17.7241422
|
|
40
|
-
L12.2575393,17.7112593 Z`,"fill","#7f7f7f"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(r,i){r&1&&(xe(0,"div",0)(1,"div",1)(2,"div",2),I(),xe(3,"svg",3),Pe(4,"circle",4)(5,"path",5),Se()(),L(),xe(6,"div",6),l(7),Se(),xe(8,"div",7),l(9),Se()()()),r&2&&(a(2),w("aria-label","Unknown"),a(5),k(i.service.customName||i.service.serviceName),a(2),k(i.service.humanType))},encapsulation:2})}return e})();var Ln=(e,n)=>({"fa-check-circle":e,"fa-blank":n});function Cc(e,n){if(e&1){let t=O();o(0,"h6"),l(1),d(2,"translate"),d(3,"duration"),s(),o(4,"nouislider",12),q("ngModelChange",function(i){M(t);let c=u();return G(c.targetSetDuration.value,i)||(c.targetSetDuration.value=i),T(i)}),C("ngModelChange",function(){M(t);let i=u();return T(i.onSetDurationStateChange())}),s()}if(e&2){let t=u();a(),j(" ",p(2,6,"accessories.control.set_duration"),": ",t.targetSetDuration.value===0?"\u221E":p(3,8,t.targetSetDuration.value)," "),a(3),f("min",t.targetSetDuration.min)("max",t.targetSetDuration.max)("step",15),$("ngModel",t.targetSetDuration.value)}}var On=(()=>{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,r){this.targetMode=t,this.service.getCharacteristic("Active").setValue(this.targetMode),r.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 r=document.querySelectorAll(".noUi-target")[0];r&&(r.style.background="linear-gradient(to right, #add8e6, #416bdf)")},10))}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],inputs:{service:"service"},decls:23,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"],["role","group","aria-label","Valve Mode Control",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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5)(7,"button",6),C("click",function(S){return i.setTargetMode(!1,S)}),o(8,"div",7),m(9,"i",8),s(),l(10),d(11,"translate"),o(12,"div",9),m(13,"i",10),s()(),o(14,"button",6),C("click",function(S){return i.setTargetMode(!0,S)}),o(15,"div",7),m(16,"i",8),s(),l(17),d(18,"translate"),o(19,"div",9),m(20,"i",10),s()()(),x(21,Cc,5,10),s(),m(22,"div",11),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,7,"form.button_close")),a(6),f("ngClass",D(13,Ln,!i.targetMode,i.targetMode)),a(),h(" ",p(11,9,"accessories.control.off")," "),a(6),f("ngClass",D(16,Ln,i.targetMode,!i.targetMode)),a(),h(" ",p(18,11,"accessories.control.on")," "),a(4),_(i.targetSetDuration?21:-1))},dependencies:[Q,oe,re,ae,P,E,ft],encapsulation:2})}return e})();var xc=e=>({"switch-on":e});function _c(e,n){e&1&&(o(0,"div",2),I(),o(1,"svg",5),m(2,"line",6)(3,"line",7)(4,"line",8)(5,"line",9)(6,"circle",10)(7,"circle",11)(8,"circle",12)(9,"circle",13)(10,"circle",14)(11,"circle",15),s()()),e&2&&w("aria-label","Generic Valve")}function yc(e,n){e&1&&(o(0,"div",2),I(),o(1,"svg",5),m(2,"circle",16)(3,"circle",17)(4,"circle",18)(5,"circle",19)(6,"circle",20)(7,"circle",21)(8,"circle",22)(9,"circle",23)(10,"circle",24)(11,"circle",25)(12,"line",26)(13,"line",27)(14,"line",28),s()()),e&2&&w("aria-label","Irrigation Valve")}function kc(e,n){e&1&&(o(0,"div",2),I(),o(1,"svg",5),m(2,"line",29)(3,"line",30)(4,"line",31)(5,"path",32)(6,"line",33)(7,"circle",34)(8,"circle",35)(9,"circle",36)(10,"circle",37)(11,"circle",38)(12,"circle",39)(13,"circle",40)(14,"circle",41)(15,"circle",42)(16,"circle",43)(17,"circle",44)(18,"circle",45),s()()),e&2&&w("aria-label","Shower Head Valve")}function Sc(e,n){e&1&&(o(0,"div",2),I(),o(1,"svg",5),m(2,"rect",46)(3,"line",47)(4,"line",48)(5,"rect",49)(6,"path",50)(7,"line",51)(8,"line",52),s()()),e&2&&w("aria-label","Faucet Valve")}function bc(e,n){if(e&1&&(o(0,"div",4),l(1),s()),e&2){let t=u();a(),k(t.remainingDuration)}}function wc(e,n){e&1&&(o(0,"div",4),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.running")))}function Mc(e,n){e&1&&(o(0,"div",4),l(1),d(2,"translate"),s()),e&2&&(a(),k(p(2,1,"accessories.control.off")))}var Nn=(()=>{class e{$modal=F(X);service;readyForControl=!1;secondsActive=0;remainingDuration;remainingDurationInterval=ii(1e3).pipe(ni(()=>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(On,{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(r){return new(r||e)};static \u0275cmp=b({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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1),x(2,_c,12,1,"div",2)(3,yc,15,1,"div",2)(4,kc,19,1,"div",2)(5,Sc,9,1,"div",2),o(6,"div",3),l(7),s(),x(8,bc,2,1,"div",4)(9,wc,3,3,"div",4)(10,Mc,3,3,"div",4),s()()),r&2&&(f("ngClass",U(4,xc,i.service.values.Active||i.service.values.On)),a(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),a(5),h(" ",i.service.customName||i.service.values.ConfiguredName||i.service.serviceName," "),a(),_(i.service.values.Active&&i.remainingDuration?8:i.service.values.Active&&!i.remainingDuration||i.service.values.On?9:10))},dependencies:[z,P,E],styles:[".switch-on svg .grass{stroke:#4caf50!important} .switch-on svg .drop{fill-opacity:.5} .switch-on svg .drop-in{animation:_ngcontent-%COMP%_blink 1.5s infinite} .switch-on svg .drop-out{animation:_ngcontent-%COMP%_blink 1.5s infinite;animation-delay:.75s} .switch-on svg .drop-top{animation:_ngcontent-%COMP%_blink 1.5s infinite} .switch-on svg .drop-middle{animation:_ngcontent-%COMP%_blink 1.5s infinite;animation-delay:.5s} .switch-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}} .switch-on svg .stream{stroke-opacity:.5;animation:_ngcontent-%COMP%_blink-on-off 4s infinite} .switch-on svg .sink{fill:#1976d2}"]})}return e})();var Tc=e=>({"switch-on":e}),Rn=(()=>{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(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-washing-machine"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:21,vars:8,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(r,i){r&1&&(o(0,"div",0),C("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"rect",5)(6,"rect",6)(7,"rect",7)(8,"rect",8)(9,"rect",9)(10,"rect",10)(11,"rect",11)(12,"rect",12)(13,"rect",13)(14,"rect",14)(15,"rect",15)(16,"circle",16),s()(),L(),o(17,"div",17),l(18),s(),m(19,"div",18),d(20,"translate"),s()()),r&2&&(f("ngClass",U(6,Tc,i.service.values.On||i.service.values.Active)),a(2),w("aria-label","Washing Machine"),a(16),k(i.service.customName||i.service.serviceName),a(),f("innerText",p(20,4,i.service.values.On||i.service.values.Active?"accessories.control.on":"accessories.control.off")))},dependencies:[z,P,E],styles:[".switch-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 Ec(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.closed")," ")}function Vc(e,n){if(e&1&&(l(0),d(1,"translate")),e&2){let t=u(2);j(" ",p(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function Pc(e,n){if(e&1&&x(0,Ec,2,3)(1,Vc,2,4),e&2){let t=u();_(t.service.values.CurrentPosition===0?0:1)}}function Dc(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.opening"),"... ")}function Ac(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.closing"),"... ")}var Wn=(()=>{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(r){return new(r||e)};static \u0275cmp=b({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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5)(7,"div",6),x(8,Pc,2,1)(9,Dc,2,3)(10,Ac,2,3),s()(),o(11,"h6",7),l(12),d(13,"translate"),s(),o(14,"nouislider",8),q("ngModelChange",function(S){return G(i.targetPosition.value,S)||(i.targetPosition.value=S),S}),C("ngModelChange",function(){return i.onTargetPositionChange()}),s(),o(15,"div",9)(16,"span",10),l(17),d(18,"translate"),s(),o(19,"span",10),l(20),d(21,"translate"),s()(),o(22,"h6",7),l(23),d(24,"translate"),s(),o(25,"nouislider",11),q("ngModelChange",function(S){return G(i.service.getCharacteristic("CurrentPosition").value,S)||(i.service.getCharacteristic("CurrentPosition").value=S),S}),s(),o(26,"div",9)(27,"span",10),l(28),d(29,"translate"),s(),o(30,"span",10),l(31),d(32,"translate"),s()()(),m(33,"div",12),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,20,"form.button_close")),a(5),_(i.service.values.PositionState===2?8:i.service.values.PositionState===1?9:i.service.values.PositionState===0?10:-1),a(4),j("",p(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),a(2),f("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),$("ngModel",i.targetPosition.value),a(3),k(p(18,24,"accessories.control.closed")),a(3),k(p(21,26,"accessories.control.open")),a(3),j(" ",p(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),a(2),f("min",0)("max",100)("step",1)("disabled",!0),$("ngModel",i.service.getCharacteristic("CurrentPosition").value),a(3),k(p(29,30,"accessories.control.closed")),a(3),k(p(32,32,"accessories.control.open")))},dependencies:[ae,Q,oe,re,E],encapsulation:2})}return e})();var Bc=e=>({"accessory-on":e});function Fc(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.closed")," ")}function Ic(e,n){if(e&1&&(l(0),d(1,"translate")),e&2){let t=u(2);j(" ",p(1,2,"accessories.control.open")," ",t.service.values.CurrentPosition,"% ")}}function Hc(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.open")," ")}function Lc(e,n){if(e&1&&(o(0,"div",12),x(1,Fc,2,3),x(2,Ic,2,4),x(3,Hc,2,3),s()),e&2){let t=u();a(),_(t.service.values.CurrentPosition===0?1:-1),a(),_(t.service.values.CurrentPosition>0&&t.service.values.CurrentPosition<100?2:-1),a(),_(t.service.values.CurrentPosition===100?3:-1)}}function Oc(e,n){e&1&&(o(0,"div",13),l(1),d(2,"translate"),s()),e&2&&(a(),h("",p(2,1,"accessories.control.opening"),"..."))}function Nc(e,n){e&1&&(o(0,"div",13),l(1),d(2,"translate"),s()),e&2&&(a(),h("",p(2,1,"accessories.control.closing"),"..."))}var jn=(()=>{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(Wn,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-window-covering"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:16,vars:6,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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"rect",5)(6,"rect",6)(7,"rect",7)(8,"rect",8)(9,"rect",9)(10,"rect",10),s()(),L(),o(11,"div",11),l(12),s(),x(13,Lc,4,3,"div",12)(14,Oc,3,3,"div",13)(15,Nc,3,3,"div",13),s()()),r&2&&(f("ngClass",U(4,Bc,i.service.values.CurrentPosition)),a(2),w("aria-label","Window Covering"),a(10),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.PositionState===2?13:i.service.values.PositionState===1?14:i.service.values.PositionState===0?15:-1))},dependencies:[z,P,E],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 Rc(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.closed")," ")}function Wc(e,n){if(e&1&&(l(0),d(1,"translate")),e&2){let t=u(2);j(" ",p(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function jc(e,n){if(e&1&&x(0,Rc,2,3)(1,Wc,2,4),e&2){let t=u();_(t.service.values.CurrentPosition===0?0:1)}}function Uc(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.opening"),"... ")}function zc(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.closing"),"... ")}var Un=(()=>{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(r){return new(r||e)};static \u0275cmp=b({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(r,i){r&1&&(o(0,"div",0)(1,"div",1),m(2,"h5",2),o(3,"button",3),d(4,"translate"),C("click",function(){return i.dismissModal()}),s()(),o(5,"div",4)(6,"div",5)(7,"div",6),x(8,jc,2,1)(9,Uc,2,3)(10,zc,2,3),s()(),o(11,"h6",7),l(12),d(13,"translate"),s(),o(14,"nouislider",8),q("ngModelChange",function(S){return G(i.targetPosition.value,S)||(i.targetPosition.value=S),S}),C("ngModelChange",function(){return i.onTargetPositionChange()}),s(),o(15,"div",9)(16,"span",10),l(17),d(18,"translate"),s(),o(19,"span",10),l(20),d(21,"translate"),s()(),o(22,"h6",7),l(23),d(24,"translate"),s(),o(25,"nouislider",11),q("ngModelChange",function(S){return G(i.service.getCharacteristic("CurrentPosition").value,S)||(i.service.getCharacteristic("CurrentPosition").value=S),S}),s(),o(26,"div",9)(27,"span",10),l(28),d(29,"translate"),s(),o(30,"span",10),l(31),d(32,"translate"),s()()(),m(33,"div",12),s()),r&2&&(a(2),f("innerText",i.service.customName||i.service.serviceName),a(),w("aria-label",p(4,20,"form.button_close")),a(5),_(i.service.values.PositionState===2?8:i.service.values.PositionState===1?9:i.service.values.PositionState===0?10:-1),a(4),j("",p(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),a(2),f("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),$("ngModel",i.targetPosition.value),a(3),k(p(18,24,"accessories.control.closed")),a(3),k(p(21,26,"accessories.control.open")),a(3),j(" ",p(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),a(2),f("min",0)("max",100)("step",1)("disabled",!0),$("ngModel",i.service.getCharacteristic("CurrentPosition").value),a(3),k(p(29,30,"accessories.control.closed")),a(3),k(p(32,32,"accessories.control.open")))},dependencies:[ae,Q,oe,re,E],encapsulation:2})}return e})();var $c=e=>({"accessory-on":e});function Gc(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.closed")," ")}function qc(e,n){if(e&1&&(l(0),d(1,"translate")),e&2){let t=u(2);j(" ",p(1,2,"accessories.control.open")," ",t.service.values.CurrentPosition,"% ")}}function Zc(e,n){e&1&&(l(0),d(1,"translate")),e&2&&h(" ",p(1,1,"accessories.control.open")," ")}function Kc(e,n){if(e&1&&(o(0,"div",12),x(1,Gc,2,3),x(2,qc,2,4),x(3,Zc,2,3),s()),e&2){let t=u();a(),_(t.service.values.CurrentPosition===0?1:-1),a(),_(t.service.values.CurrentPosition>0&&t.service.values.CurrentPosition<100?2:-1),a(),_(t.service.values.CurrentPosition===100?3:-1)}}function Qc(e,n){e&1&&(o(0,"div",13),l(1),d(2,"translate"),s()),e&2&&(a(),h("",p(2,1,"accessories.control.opening"),"..."))}function Yc(e,n){e&1&&(o(0,"div",13),l(1),d(2,"translate"),s()),e&2&&(a(),h("",p(2,1,"accessories.control.closing"),"..."))}var zn=(()=>{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(Un,{size:"md",backdrop:"static"});t.componentInstance.service=this.service}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({type:e,selectors:[["app-window"]],inputs:{service:"service",readyForControl:"readyForControl"},decls:16,vars:6,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(r,i){r&1&&(o(0,"div",0),C("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),o(1,"div",1)(2,"div",2),I(),o(3,"svg",3),m(4,"rect",4)(5,"rect",5)(6,"rect",6)(7,"rect",7)(8,"rect",8)(9,"rect",9)(10,"rect",10),s()(),L(),o(11,"div",11),l(12),s(),x(13,Kc,4,3,"div",12)(14,Qc,3,3,"div",13)(15,Yc,3,3,"div",13),s()()),r&2&&(f("ngClass",U(4,$c,i.service.values.CurrentPosition)),a(2),w("aria-label","Window"),a(10),k(i.service.customName||i.service.serviceName),a(),_(i.service.values.PositionState===2?13:i.service.values.PositionState===1?14:i.service.values.PositionState===0?15:-1))},dependencies:[z,P,E],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 Xc(e,n){if(e&1){let t=O();o(0,"a",6),C("click",function(){M(t);let i=u();return T(i.$accessories.showAccessoryInformation(i.service))}),m(1,"i",7),s()}}function Jc(e,n){e&1&&m(0,"i",1)}function e0(e,n){if(e&1&&(o(0,"app-switch",2),l(1,"Switch"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function t0(e,n){if(e&1&&(o(0,"app-thermostat",2),l(1,"Thermostat"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function i0(e,n){if(e&1&&(o(0,"app-outlet",2),l(1,"Outlet"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function n0(e,n){if(e&1&&(o(0,"app-fan",3),l(1,"Fan"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function o0(e,n){if(e&1&&(o(0,"app-fan",3),l(1,"Fan"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function r0(e,n){if(e&1&&(o(0,"app-air-purifier",3),l(1,"Air Purifier"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function a0(e,n){if(e&1&&(o(0,"app-light-bulb",2),l(1,"Lightbulb"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function s0(e,n){if(e&1&&(o(0,"app-light-sensor",4),l(1,"Light Sensor"),s()),e&2){let t=u();f("service",t.service)}}function l0(e,n){if(e&1&&(o(0,"app-lock-mechanism",2),l(1,"Lock Mechanism"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function c0(e,n){if(e&1&&(o(0,"app-temperature-sensor",4),l(1,"Temperature Sensor"),s()),e&2){let t=u();f("service",t.service)}}function d0(e,n){if(e&1&&(o(0,"app-garage-door-opener",2),l(1,"Garage Door Opener"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function p0(e,n){if(e&1&&(o(0,"app-motion-sensor",4),l(1,"Motion Sensor"),s()),e&2){let t=u();f("service",t.service)}}function m0(e,n){if(e&1&&(o(0,"app-occupancy-sensor",4),l(1,"Occupancy Sensor"),s()),e&2){let t=u();f("service",t.service)}}function u0(e,n){if(e&1&&(o(0,"app-contact-sensor",4),l(1,"Contact Sensor"),s()),e&2){let t=u();f("service",t.service)}}function f0(e,n){if(e&1&&(o(0,"app-humidity-sensor",4),l(1,"Humidity Sensor"),s()),e&2){let t=u();f("service",t.service)}}function v0(e,n){if(e&1&&(o(0,"app-air-quality-sensor",4),l(1,"Air Quality Sensor"),s()),e&2){let t=u();f("service",t.service)}}function g0(e,n){if(e&1&&(o(0,"app-window-covering",2),l(1,"Window Covering"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function h0(e,n){if(e&1&&(o(0,"app-window",2),l(1,"Window"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function C0(e,n){if(e&1&&(o(0,"app-door",2),l(1,"Door"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function x0(e,n){if(e&1&&(o(0,"app-television",2),l(1,"Television"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function _0(e,n){if(e&1&&(o(0,"app-battery",4),l(1,"Battery"),s()),e&2){let t=u();f("service",t.service)}}function y0(e,n){if(e&1&&(o(0,"app-battery",4),l(1,"Battery"),s()),e&2){let t=u();f("service",t.service)}}function k0(e,n){if(e&1&&(o(0,"app-speaker",2),l(1,"Speaker"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function S0(e,n){if(e&1&&(o(0,"app-speaker",2),l(1,"Speaker"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function b0(e,n){if(e&1&&(o(0,"app-doorbell",2),l(1,"Doorbell"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function w0(e,n){if(e&1&&(o(0,"app-microphone",2),l(1,"Microphone"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function M0(e,n){if(e&1&&(o(0,"app-security-system",2),l(1,"Security System"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function T0(e,n){if(e&1&&(o(0,"app-leak-sensor",4),l(1,"Leak Sensor"),s()),e&2){let t=u();f("service",t.service)}}function E0(e,n){if(e&1&&(o(0,"app-smoke-sensor",4),l(1,"Smoke Sensor"),s()),e&2){let t=u();f("service",t.service)}}function V0(e,n){if(e&1&&(o(0,"app-carbon-monoxide-sensor",4),l(1,"Carbon Monoxide Sensor"),s()),e&2){let t=u();f("service",t.service)}}function P0(e,n){if(e&1&&(o(0,"app-carbon-dioxide-sensor",4),l(1,"Carbon Dioxide Sensor"),s()),e&2){let t=u();f("service",t.service)}}function D0(e,n){if(e&1&&(o(0,"app-valve",2),l(1,"Valve"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function A0(e,n){if(e&1&&(o(0,"app-irrigation-system",4),l(1,"Irrigation System"),s()),e&2){let t=u();f("service",t.service)}}function B0(e,n){if(e&1&&(o(0,"app-heater-cooler",2),l(1,"Heater Cooler"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function F0(e,n){if(e&1&&(o(0,"app-heater-cooler",5),l(1,"Heater"),s()),e&2){let t=u();f("service",t.service)("type","heater")("readyForControl",t.$accessories.readyForControl)}}function I0(e,n){if(e&1&&(o(0,"app-heater-cooler",5),l(1,"Cooler"),s()),e&2){let t=u();f("service",t.service)("type","cooler")("readyForControl",t.$accessories.readyForControl)}}function H0(e,n){if(e&1&&(o(0,"app-humidifier-dehumidifier",2),l(1,"Humidifier Dehumidifier"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function L0(e,n){if(e&1&&(o(0,"app-humidifier-dehumidifier",5),l(1,"Humidifier Dehumidifier"),s()),e&2){let t=u();f("service",t.service)("type","humidifier")("readyForControl",t.$accessories.readyForControl)}}function O0(e,n){if(e&1&&(o(0,"app-humidifier-dehumidifier",5),l(1,"Humidifier Dehumidifier"),s()),e&2){let t=u();f("service",t.service)("type","dehumidifier")("readyForControl",t.$accessories.readyForControl)}}function N0(e,n){if(e&1&&(o(0,"app-stateless-programmable-switch",4),l(1,"Stateless Programmable Switch"),s()),e&2){let t=u();f("service",t.service)}}function R0(e,n){if(e&1&&(o(0,"app-filter-maintenance",2),l(1,"Filter Maintenance"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function W0(e,n){if(e&1&&(o(0,"app-robot-vacuum",2),l(1,"Robot Vacuum"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function j0(e,n){if(e&1&&(o(0,"app-washing-machine",2),l(1,"Washing Machine"),s()),e&2){let t=u();f("service",t.service)("readyForControl",t.$accessories.readyForControl)}}function U0(e,n){if(e&1&&(o(0,"app-unknown",4),l(1),s()),e&2){let t=u();f("service",t.service),a(),k(t.service.humanType)}}var S2=(()=>{class e{$accessories=F(wi);service;static \u0275fac=function(r){return new(r||e)};static \u0275cmp=b({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(r,i){if(r&1&&(gi(0),x(1,Xc,2,0,"a",0),x(2,Jc,1,0,"i",1),x(3,e0,2,2,"app-switch",2)(4,t0,2,2,"app-thermostat",2)(5,i0,2,2,"app-outlet",2)(6,n0,2,2,"app-fan",3)(7,o0,2,2,"app-fan",3)(8,r0,2,2,"app-air-purifier",3)(9,a0,2,2,"app-light-bulb",2)(10,s0,2,1,"app-light-sensor",4)(11,l0,2,2,"app-lock-mechanism",2)(12,c0,2,1,"app-temperature-sensor",4)(13,d0,2,2,"app-garage-door-opener",2)(14,p0,2,1,"app-motion-sensor",4)(15,m0,2,1,"app-occupancy-sensor",4)(16,u0,2,1,"app-contact-sensor",4)(17,f0,2,1,"app-humidity-sensor",4)(18,v0,2,1,"app-air-quality-sensor",4)(19,g0,2,2,"app-window-covering",2)(20,h0,2,2,"app-window",2)(21,C0,2,2,"app-door",2)(22,x0,2,2,"app-television",2)(23,_0,2,1,"app-battery",4)(24,y0,2,1,"app-battery",4)(25,k0,2,2,"app-speaker",2)(26,S0,2,2,"app-speaker",2)(27,b0,2,2,"app-doorbell",2)(28,w0,2,2,"app-microphone",2)(29,M0,2,2,"app-security-system",2)(30,T0,2,1,"app-leak-sensor",4)(31,E0,2,1,"app-smoke-sensor",4)(32,V0,2,1,"app-carbon-monoxide-sensor",4)(33,P0,2,1,"app-carbon-dioxide-sensor",4)(34,D0,2,2,"app-valve",2)(35,A0,2,1,"app-irrigation-system",4)(36,B0,2,2,"app-heater-cooler",2)(37,F0,2,3,"app-heater-cooler",5)(38,I0,2,3,"app-heater-cooler",5)(39,H0,2,2,"app-humidifier-dehumidifier",2)(40,L0,2,3,"app-humidifier-dehumidifier",5)(41,O0,2,3,"app-humidifier-dehumidifier",5)(42,N0,2,1,"app-stateless-programmable-switch",4)(43,R0,2,2,"app-filter-maintenance",2)(44,W0,2,2,"app-robot-vacuum",2)(45,j0,2,2,"app-washing-machine",2)(46,U0,2,2,"app-unknown",4),hi()),r&2){let c;a(),_(i.$accessories.readyForControl?1:-1),a(),_(i.$accessories.readyForControl?-1:2),a(),_((c=i.service.customType||i.service.type)==="Switch"?3:c==="Thermostat"?4:c==="Outlet"?5:c==="Fan"?6:c==="Fanv2"?7:c==="AirPurifier"?8:c==="Lightbulb"?9:c==="LightSensor"?10:c==="LockMechanism"?11:c==="TemperatureSensor"?12:c==="GarageDoorOpener"?13:c==="MotionSensor"?14:c==="OccupancySensor"?15:c==="ContactSensor"?16:c==="HumiditySensor"?17:c==="AirQualitySensor"?18:c==="WindowCovering"?19:c==="Window"?20:c==="Door"?21:c==="Television"?22:c==="Battery"?23:c==="BatteryService"?24:c==="Speaker"?25:c==="SmartSpeaker"?26:c==="Doorbell"?27:c==="Microphone"?28:c==="SecuritySystem"?29:c==="LeakSensor"?30:c==="SmokeSensor"?31:c==="CarbonMonoxideSensor"?32:c==="CarbonDioxideSensor"?33:c==="Valve"?34:c==="IrrigationSystem"?35:c==="HeaterCooler"?36:c==="Heater"?37:c==="Cooler"?38:c==="HumidifierDehumidifier"?39:c==="Humidifier"?40:c==="Dehumidifier"?41:c==="StatelessProgrammableSwitch"?42:c==="FilterMaintenance"?43:c==="RobotVacuum"?44:c==="WashingMachine"?45:46)}},dependencies:[Pn,In,_n,Ki,Li,cn,dn,un,Bn,Xi,hn,Cn,ji,on,Oi,jn,zn,zi,An,Ni,Tn,Sn,an,bn,Wi,Ri,Nn,rn,en,nn,En,Yi,qi,Hn,gn,yn,Rn],encapsulation:2})}return e})();export{S2 as a};
|