iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 17.4 kB
JavaScript
/*! For license information please see 15451.1ce8a8fe0fcb88e9.js.LICENSE.txt */
export const __webpack_ids__=["15451"];export const __webpack_modules__={45228:function(t,n,e){function o(t,n){if(t.closest)return t.closest(n);for(var e=t;e;){if(i(e,n))return e;e=e.parentElement}return null}function i(t,n){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,n)}e.d(n,{oq:()=>o,wB:()=>i})},74269:function(t,n,e){var o=e(9065),i=e(15093),r=(e(16060),e(4428)),c=e(91532),a=e(57243),s=e(20552);class d extends a.oi{constructor(){super(...arguments),this.disabled=!1,this.icon="",this.shouldRenderRipple=!1,this.rippleHandlers=new c.A((()=>(this.shouldRenderRipple=!0,this.ripple)))}renderRipple(){return this.shouldRenderRipple?a.dy` <mwc-ripple .disabled="${this.disabled}" unbounded> </mwc-ripple>`:""}focus(){const t=this.buttonElement;t&&(this.rippleHandlers.startFocus(),t.focus())}blur(){const t=this.buttonElement;t&&(this.rippleHandlers.endFocus(),t.blur())}render(){return a.dy`<button class="mdc-icon-button mdc-icon-button--display-flex" aria-label="${this.ariaLabel||this.icon}" aria-haspopup="${(0,s.o)(this.ariaHasPopup)}" ?disabled="${this.disabled}" @focus="${this.handleRippleFocus}" @blur="${this.handleRippleBlur}" @mousedown="${this.handleRippleMouseDown}" @mouseenter="${this.handleRippleMouseEnter}" @mouseleave="${this.handleRippleMouseLeave}" @touchstart="${this.handleRippleTouchStart}" @touchend="${this.handleRippleDeactivate}" @touchcancel="${this.handleRippleDeactivate}">${this.renderRipple()} ${this.icon?a.dy`<i class="material-icons">${this.icon}</i>`:""} <span><slot></slot></span> </button>`}handleRippleMouseDown(t){const n=()=>{window.removeEventListener("mouseup",n),this.handleRippleDeactivate()};window.addEventListener("mouseup",n),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}(0,o.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0})],d.prototype,"disabled",void 0),(0,o.__decorate)([(0,i.Cb)({type:String})],d.prototype,"icon",void 0),(0,o.__decorate)([r.L,(0,i.Cb)({type:String,attribute:"aria-label"})],d.prototype,"ariaLabel",void 0),(0,o.__decorate)([r.L,(0,i.Cb)({type:String,attribute:"aria-haspopup"})],d.prototype,"ariaHasPopup",void 0),(0,o.__decorate)([(0,i.IO)("button")],d.prototype,"buttonElement",void 0),(0,o.__decorate)([(0,i.GC)("mwc-ripple")],d.prototype,"ripple",void 0),(0,o.__decorate)([(0,i.SB)()],d.prototype,"shouldRenderRipple",void 0),(0,o.__decorate)([(0,i.hO)({passive:!0})],d.prototype,"handleRippleMouseDown",null),(0,o.__decorate)([(0,i.hO)({passive:!0})],d.prototype,"handleRippleTouchStart",null);const u=a.iv`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:400;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{display:none}.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:48px;max-width:48px}@media screen and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:100%;width:100%}}@media screen and (forced-colors:active)and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors:active)and (forced-colors:active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-disabled-on-light,rgba(0,0,0,.38))}.mdc-icon-button img,.mdc-icon-button svg{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:0;position:absolute;top:0;width:100%}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:0;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%,-50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:0;position:absolute;top:0;width:100%}:host{display:inline-block;outline:0}:host([disabled]){pointer-events:none}.mdc-icon-button ::slotted(*),.mdc-icon-button i,.mdc-icon-button img,.mdc-icon-button svg{display:block}:host{--mdc-ripple-color:currentcolor;-webkit-tap-highlight-color:transparent}.mdc-icon-button,:host{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size,48px);height:var(--mdc-icon-button-size,48px);padding:calc((var(--mdc-icon-button-size,48px) - var(--mdc-icon-size,24px))/ 2)}.mdc-icon-button ::slotted(*),.mdc-icon-button i,.mdc-icon-button img,.mdc-icon-button svg{display:block;width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px)}`;let l=class extends d{};l.styles=[u],l=(0,o.__decorate)([(0,i.Mo)("mwc-icon-button")],l)},88977:function(t,n,e){e.d(n,{L:()=>r});const o={en:"US",hi:"IN",deva:"IN",te:"IN",mr:"IN",ta:"IN",gu:"IN",kn:"IN",or:"IN",ml:"IN",pa:"IN",bho:"IN",awa:"IN",as:"IN",mwr:"IN",mai:"IN",mag:"IN",bgc:"IN",hne:"IN",dcc:"IN",bn:"BD",beng:"BD",rkt:"BD",dz:"BT",tibt:"BT",tn:"BW",am:"ET",ethi:"ET",om:"ET",quc:"GT",id:"ID",jv:"ID",su:"ID",mad:"ID",ms_arab:"ID",he:"IL",hebr:"IL",jam:"JM",ja:"JP",jpan:"JP",km:"KH",khmr:"KH",ko:"KR",kore:"KR",lo:"LA",laoo:"LA",mh:"MH",my:"MM",mymr:"MM",mt:"MT",ne:"NP",fil:"PH",ceb:"PH",ilo:"PH",ur:"PK",pa_arab:"PK",lah:"PK",ps:"PK",sd:"PK",skr:"PK",gn:"PY",th:"TH",thai:"TH",tts:"TH",zh_hant:"TW",hant:"TW",sm:"WS",zu:"ZA",sn:"ZW",arq:"DZ",ar:"EG",arab:"EG",arz:"EG",fa:"IR",az_arab:"IR",dv:"MV",thaa:"MV"};const i={AG:0,ATG:0,28:0,AS:0,ASM:0,16:0,BD:0,BGD:0,50:0,BR:0,BRA:0,76:0,BS:0,BHS:0,44:0,BT:0,BTN:0,64:0,BW:0,BWA:0,72:0,BZ:0,BLZ:0,84:0,CA:0,CAN:0,124:0,CO:0,COL:0,170:0,DM:0,DMA:0,212:0,DO:0,DOM:0,214:0,ET:0,ETH:0,231:0,GT:0,GTM:0,320:0,GU:0,GUM:0,316:0,HK:0,HKG:0,344:0,HN:0,HND:0,340:0,ID:0,IDN:0,360:0,IL:0,ISR:0,376:0,IN:0,IND:0,356:0,JM:0,JAM:0,388:0,JP:0,JPN:0,392:0,KE:0,KEN:0,404:0,KH:0,KHM:0,116:0,KR:0,KOR:0,410:0,LA:0,LA0:0,418:0,MH:0,MHL:0,584:0,MM:0,MMR:0,104:0,MO:0,MAC:0,446:0,MT:0,MLT:0,470:0,MX:0,MEX:0,484:0,MZ:0,MOZ:0,508:0,NI:0,NIC:0,558:0,NP:0,NPL:0,524:0,PA:0,PAN:0,591:0,PE:0,PER:0,604:0,PH:0,PHL:0,608:0,PK:0,PAK:0,586:0,PR:0,PRI:0,630:0,PT:0,PRT:0,620:0,PY:0,PRY:0,600:0,SA:0,SAU:0,682:0,SG:0,SGP:0,702:0,SV:0,SLV:0,222:0,TH:0,THA:0,764:0,TT:0,TTO:0,780:0,TW:0,TWN:0,158:0,UM:0,UMI:0,581:0,US:0,USA:0,840:0,VE:0,VEN:0,862:0,VI:0,VIR:0,850:0,WS:0,WSM:0,882:0,YE:0,YEM:0,887:0,ZA:0,ZAF:0,710:0,ZW:0,ZWE:0,716:0,AE:6,ARE:6,784:6,AF:6,AFG:6,4:6,BH:6,BHR:6,48:6,DJ:6,DJI:6,262:6,DZ:6,DZA:6,12:6,EG:6,EGY:6,818:6,IQ:6,IRQ:6,368:6,IR:6,IRN:6,364:6,JO:6,JOR:6,400:6,KW:6,KWT:6,414:6,LY:6,LBY:6,434:6,OM:6,OMN:6,512:6,QA:6,QAT:6,634:6,SD:6,SDN:6,729:6,SY:6,SYR:6,760:6,MV:5,MDV:5,462:5};function r(t){return function(t,n,e){if(t){var o,i=t.toLowerCase().split(/[-_]/),r=i[0],c=r;if(i[1]&&4===i[1].length?(c+="_"+i[1],o=i[2]):o=i[1],o||(o=n[c]||n[r]),o)return function(t,n){var e=n["string"==typeof t?t.toUpperCase():t];return"number"==typeof e?e:1}(o.match(/^\d+$/)?Number(o):o,e)}return 1}(t,o,i)}},35709:function(t,n,e){var o=e(27847),i=e(72309),r=e(13465).f,c=o("unscopables"),a=Array.prototype;void 0===a[c]&&r(a,c,{configurable:!0,value:i(null)}),t.exports=function(t){a[c][t]=!0}},17743:function(t,n,e){var o=e(13053);t.exports=function(t,n,e){for(var i=0,r=arguments.length>2?e:o(n),c=new t(r);r>i;)c[i]=n[i++];return c}},37595:function(t,n,e){var o=e(31269),i=e(72878),r=e(25091),c=e(12360),a=e(70273),s=e(13053),d=e(72309),u=e(17743),l=Array,p=i([].push);t.exports=function(t,n,e,i){for(var m,b,h,f=c(t),g=r(f),_=o(n,e),v=d(null),x=s(g),y=0;x>y;y++)h=g[y],(b=a(_(h,y,f)))in v?p(v[b],h):v[b]=[h];if(i&&(m=i(f))!==l)for(b in v)v[b]=u(m,v[b]);return v}},22139:function(t,n,e){var o=e(40810),i=e(37595),r=e(35709);o({target:"Array",proto:!0},{group:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r("group")},1231:function(t,n,e){e.d(n,{B:()=>s});var o=e(9065),i=e(15093),r=e(57243);class c extends r.oi{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}(0,o.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0})],c.prototype,"inset",void 0),(0,o.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0,attribute:"inset-start"})],c.prototype,"insetStart",void 0),(0,o.__decorate)([(0,i.Cb)({type:Boolean,reflect:!0,attribute:"inset-end"})],c.prototype,"insetEnd",void 0);const a=r.iv`:host{box-sizing:border-box;color:var(--md-divider-color,var(--md-sys-color-outline-variant,#cac4d0));display:flex;height:var(--md-divider-thickness,1px);width:100%}:host([inset-start]),:host([inset]){padding-inline-start:16px}:host([inset-end]),:host([inset]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors:active){:host::before{background:CanvasText}}`;let s=class extends c{};s.styles=[a],s=(0,o.__decorate)([(0,i.Mo)("md-divider")],s)},55428:function(t,n,e){e.d(n,{j:()=>i});let o={};function i(){return o}},34151:function(t,n,e){function o(t){return n=>{const e=(t?Math[t]:Math.trunc)(n);return 0===e?0:e}}e.d(n,{u:()=>o})},18492:function(t,n,e){e.d(n,{d:()=>i});e(9359),e(1331),e(70104);var o=e(53907);function i(t,...n){const e=o.L.bind(null,t||n.find((t=>"object"==typeof t)));return n.map(e)}},76808:function(t,n,e){e.d(n,{I7:()=>a,dP:()=>i,jE:()=>o,vh:()=>c,yJ:()=>r});Math.pow(10,8);const o=6048e5,i=864e5,r=6e4,c=36e5,a=Symbol.for("constructDateFrom")},53907:function(t,n,e){e.d(n,{L:()=>i});var o=e(76808);function i(t,n){return"function"==typeof t?t(n):t&&"object"==typeof t&&o.I7 in t?t[o.I7](n):t instanceof Date?new t.constructor(n):new Date(n)}},78052:function(t,n,e){e.d(n,{w:()=>s});var o=e(18112);function i(t){const n=(0,o.Q)(t),e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+t-+e}var r=e(18492),c=e(76808),a=e(7591);function s(t,n,e){const[o,s]=(0,r.d)(e?.in,t,n),d=(0,a.b)(o),u=(0,a.b)(s),l=+d-i(d),p=+u-i(u);return Math.round((l-p)/c.dP)}},13809:function(t,n,e){e.d(n,{j:()=>r});var o=e(18492),i=e(78052);function r(t,n,e){const[r,a]=(0,o.d)(e?.in,t,n),s=c(r,a),d=Math.abs((0,i.w)(r,a));r.setDate(r.getDate()-s*d);const u=s*(d-Number(c(r,a)===-s));return 0===u?0:u}function c(t,n){const e=t.getFullYear()-n.getFullYear()||t.getMonth()-n.getMonth()||t.getDate()-n.getDate()||t.getHours()-n.getHours()||t.getMinutes()-n.getMinutes()||t.getSeconds()-n.getSeconds()||t.getMilliseconds()-n.getMilliseconds();return e<0?-1:e>0?1:e}},94763:function(t,n,e){e.d(n,{p:()=>r});var o=e(34151),i=e(13809);function r(t,n,e){const r=(0,i.j)(t,n,e)/7;return(0,o.u)(e?.roundingMethod)(r)}},74760:function(t,n,e){e.d(n,{D:()=>c});var o=e(76808),i=e(53907),r=e(18112);function c(t,n){const e=()=>(0,i.L)(n?.in,NaN),c=n?.additionalDigits??2,h=function(t){const n={},e=t.split(a.dateTimeDelimiter);let o;if(e.length>2)return n;/:/.test(e[0])?o=e[0]:(n.date=e[0],o=e[1],a.timeZoneDelimiter.test(n.date)&&(n.date=t.split(a.timeZoneDelimiter)[0],o=t.substr(n.date.length,t.length)));if(o){const t=a.timezone.exec(o);t?(n.time=o.replace(t[1],""),n.timezone=t[1]):n.time=o}return n}(t);let f;if(h.date){const t=function(t,n){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),o=t.match(e);if(!o)return{year:NaN,restDateString:""};const i=o[1]?parseInt(o[1]):null,r=o[2]?parseInt(o[2]):null;return{year:null===r?i:100*r,restDateString:t.slice((o[1]||o[2]).length)}}(h.date,c);f=function(t,n){if(null===n)return new Date(NaN);const e=t.match(s);if(!e)return new Date(NaN);const o=!!e[4],i=l(e[1]),r=l(e[2])-1,c=l(e[3]),a=l(e[4]),d=l(e[5])-1;if(o)return function(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}(0,a,d)?function(t,n,e){const o=new Date(0);o.setUTCFullYear(t,0,4);const i=o.getUTCDay()||7,r=7*(n-1)+e+1-i;return o.setUTCDate(o.getUTCDate()+r),o}(n,a,d):new Date(NaN);{const t=new Date(0);return function(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(m[n]||(b(t)?29:28))}(n,r,c)&&function(t,n){return n>=1&&n<=(b(t)?366:365)}(n,i)?(t.setUTCFullYear(n,r,Math.max(i,c)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!f||isNaN(+f))return e();const g=+f;let _,v=0;if(h.time&&(v=function(t){const n=t.match(d);if(!n)return NaN;const e=p(n[1]),i=p(n[2]),r=p(n[3]);if(!function(t,n,e){if(24===t)return 0===n&&0===e;return e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}(e,i,r))return NaN;return e*o.vh+i*o.yJ+1e3*r}(h.time),isNaN(v)))return e();if(!h.timezone){const t=new Date(g+v),e=(0,r.Q)(0,n?.in);return e.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),e.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),e}return _=function(t){if("Z"===t)return 0;const n=t.match(u);if(!n)return 0;const e="+"===n[1]?-1:1,i=parseInt(n[2]),r=n[3]&&parseInt(n[3])||0;if(!function(t,n){return n>=0&&n<=59}(0,r))return NaN;return e*(i*o.vh+r*o.yJ)}(h.timezone),isNaN(_)?e():(0,r.Q)(g+v+_,n?.in)}const a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,d=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(t){return t?parseInt(t):1}function p(t){return t&&parseFloat(t.replace(",","."))||0}const m=[31,null,31,30,31,30,31,31,30,31,30,31];function b(t){return t%400==0||t%4==0&&t%100!=0}},7591:function(t,n,e){e.d(n,{b:()=>i});var o=e(18112);function i(t,n){const e=(0,o.Q)(t,n?.in);return e.setHours(0,0,0,0),e}},29558:function(t,n,e){e.d(n,{z:()=>r});var o=e(55428),i=e(18112);function r(t,n){const e=(0,o.j)(),r=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,c=(0,i.Q)(t,n?.in),a=c.getDay(),s=(a<r?7:0)+a-r;return c.setDate(c.getDate()-s),c.setHours(0,0,0,0),c}},18112:function(t,n,e){e.d(n,{Q:()=>i});var o=e(53907);function i(t,n){return(0,o.L)(n||t,t)}},69634:function(t,n,e){e.d(n,{V:()=>o.V});var o=e(11386)}};
//# sourceMappingURL=15451.1ce8a8fe0fcb88e9.js.map