iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 3.32 kB
JavaScript
;(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[52894],{77972:function(n,t,u){u.d(t,{A:function(){return e}});var o=u(73420),r=u(83504);function e(n,t,u){return(0,o.w)((null==u?void 0:u.in)||n,+(0,r.a)(n)+t)}},81977:function(n,t,u){u.d(t,{P:function(){return e}});var o=u(73420),r=u(83504);function e(n,t,u){const e=(0,r.a)(n,null==u?void 0:u.in);if(isNaN(t))return(0,o.w)((null==u?void 0:u.in)||n,NaN);if(!t)return e;const i=e.getDate(),l=(0,o.w)((null==u?void 0:u.in)||n,e.getTime());l.setMonth(e.getMonth()+t+1,0);return i>=l.getDate()?l:(e.setFullYear(l.getFullYear(),l.getMonth(),i),e)}},66465:function(n,t,u){u.d(t,{J:function(){return r}});var o=u(92913);function r(n,t,u){return(0,o.f)(n,7*t,u)}},56434:function(n,t,u){u.d(t,{e:function(){return r}});var o=u(81977);function r(n,t,u){return(0,o.P)(n,12*t,u)}},95785:function(n,t,u){u.d(t,{z:function(){return r}});var o=u(83504);function r(n,t){const u=+(0,o.a)(n)-+(0,o.a)(t);return u<0?-1:u>0?1:u}},29224:function(n,t,u){u.d(t,{U:function(){return r}});u(62953);var o=u(74816);function r(n,t,u){const[r,e]=(0,o.x)(null==u?void 0:u.in,n,t);return 12*(r.getFullYear()-e.getFullYear())+(r.getMonth()-e.getMonth())}},87950:function(n,t,u){u.d(t,{W:function(){return l}});u(62953);var o=u(74816),r=u(95785),e=u(29224),i=u(31810);function l(n,t,u){const[l,c,a]=(0,o.x)(null==u?void 0:u.in,n,n,t),f=(0,r.z)(c,a),s=Math.abs((0,e.U)(c,a));if(s<1)return 0;1===c.getMonth()&&c.getDate()>27&&c.setDate(30),c.setMonth(c.getMonth()-f*s);let d=(0,r.z)(c,a)===-f;(0,i.c)(l)&&1===s&&1===(0,r.z)(l,a)&&(d=!1);const v=f*(s-+d);return 0===v?0:v}},73983:function(n,t,u){u.d(t,{D:function(){return r}});var o=u(83504);function r(n,t){const u=(0,o.a)(n,null==t?void 0:t.in);return u.setHours(23,59,59,999),u}},36307:function(n,t,u){u.d(t,{p:function(){return r}});var o=u(83504);function r(n,t){const u=(0,o.a)(n,null==t?void 0:t.in),r=u.getMonth();return u.setFullYear(u.getFullYear(),r+1,0),u.setHours(23,59,59,999),u}},69137:function(n,t,u){u.d(t,{$:function(){return e}});var o=u(2045),r=u(83504);function e(n,t){var u,e,i,l,c,a;const f=(0,o.q)(),s=null!==(u=null!==(e=null!==(i=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(c=t.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==e?e:null===(a=f.locale)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==u?u:0,d=(0,r.a)(n,null==t?void 0:t.in),v=d.getDay(),g=6+(v<s?-7:0)-(v-s);return d.setDate(d.getDate()+g),d.setHours(23,59,59,999),d}},69748:function(n,t,u){u.d(t,{Q:function(){return r}});var o=u(83504);function r(n,t){const u=(0,o.a)(n,null==t?void 0:t.in),r=u.getFullYear();return u.setFullYear(r+1,0,0),u.setHours(23,59,59,999),u}},78016:function(n,t,u){u.d(t,{e:function(){return r}});var o=u(83504);function r(n,t){return 1===(0,o.a)(n,null==t?void 0:t.in).getDate()}},31810:function(n,t,u){u.d(t,{c:function(){return i}});var o=u(73983),r=u(36307),e=u(83504);function i(n,t){const u=(0,e.a)(n,null==t?void 0:t.in);return+(0,o.D)(u,t)===+(0,r.p)(u,t)}},83309:function(n,t,u){u.d(t,{r:function(){return e}});u(62953);var o=u(74816),r=u(35932);function e(n,t,u){const[e,i]=(0,o.x)(null==u?void 0:u.in,n,t);return+(0,r.o)(e)===+(0,r.o)(i)}}}]);