UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

1 lines 2.32 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[81593],{79144:function(t,e,n){n.d(e,{W:function(){return y.A},default:function(){return o}});var r=n(88648),o=n(79501),i=n(33156),a=n(93275),f=n(73836),s=n(93084),u=n(69913),l=n(85136),c=n(19795),g=n(89516),p=n(11826),h=n(17966),d=n(70255),v=n(83276),m=n(67797),b=n(39378),y=n(67665),w=(n(62953),n(33810));const A=w.A.prototype.filterData;w.A.prototype.filterData=function(t,e){if("boundaryFilter"!==t.get("filterMode"))return void A.call(this,t,e);if(!this.hostedBy(t))return;const n=this._dimName,r=this._window.value,o=this.getTargetSeriesModels();for(const i of o){const t=i.getData(),e=t.mapDimensionsAll(n);if(!e.length)continue;const o=t.getStore(),a=t.getDimensionIndex(e[0]),f=t.count();let s=-1,u=-1;for(let n=0;n<f;n++){const t=o.get(a,n);isNaN(t)||(t<r[0]?s=n:t>r[1]&&-1===u&&(u=n))}t.filterSelf(t=>{if(t===s||t===u)return!0;const e=o.get(a,t);return!isNaN(e)&&e>=r[0]&&e<=r[1]});for(const n of e)t.setApproximateExtent(r,n)}},r.Y([i.a,a.a,f.a,s.a,u.a,l.a,c.a,g.a,p.a,h.a,v._,m.i,b.a,d.a])},35370:function(t,e,n){var r=n(26198);t.exports=function(t,e,n){for(var o=0,i=arguments.length>2?n:r(e),a=new t(i);i>o;)a[o]=e[o++];return a}},77957:function(t,e,n){var r=n(76080),o=n(79504),i=n(47055),a=n(48981),f=n(56969),s=n(26198),u=n(2360),l=n(35370),c=Array,g=o([].push);t.exports=function(t,e,n,o){for(var p,h,d,v=a(t),m=i(v),b=r(e,n),y=u(null),w=s(m),A=0;w>A;A++)d=m[A],(h=f(b(d,A,v)))in y?g(y[h],d):y[h]=[d];if(o&&(p=o(v))!==c)for(h in y)y[h]=l(p,y[h]);return y}},3690:function(t,e,n){n(15823)("Uint16",function(t){return function(e,n,r){return t(this,e,n,r)}})},46058:function(t,e,n){var r=n(46518),o=n(77957),i=n(6469);r({target:"Array",proto:!0},{group:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("group")},13611:function(t,e,n){var r=n(46518),o=n(44576),i=n(62106),a=n(43724),f=TypeError,s=Object.defineProperty,u=o.self!==o;try{if(a){var l=Object.getOwnPropertyDescriptor(o,"self");!u&&l&&l.get&&l.enumerable||i(o,"self",{get:function(){return o},set:function(t){if(this!==o)throw new f("Illegal invocation");s(o,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:u},{self:o})}catch(c){}}}]);