homeassistant/custom_components/hacs/hacs_frontend_experimental/frontend_es5/8565.wJ9COULmd4M.js

3 lines
28 KiB
JavaScript
Raw Normal View History

2025-01-10 21:08:35 -08:00
/*! For license information please see 8565.wJ9COULmd4M.js.LICENSE.txt */
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([[8565],{48769:function(t,e,i){i(88820)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i(6946))},48567:function(t,e,i){i(48769)},98565:function(t,e,i){i.r(e),i.d(e,{LitVirtualizer:function(){return N},RangeChangedEvent:function(){return g},VisibilityChangedEvent:function(){return k}});var n=i(88962),r=i(71650),s=i(33368),l=i(68308),o=i(69205),a=i(43204),h=i(5095),u=i(5701),c=i(99312),_=i(81043),d=i(62746),v=(i(88770),i(51467),i(36513),i(57835)),f=i(76187),m=i(99266),y=i(40039),p=(i(94738),i(98214),i(46798),i(51358),i(96043),i(5239),i(98490),i(48567),i(9849),i(50289),i(94167),i(85717),i(47084),i(34997),i(12148),i(87438),i(22890),i(40271),i(60163),i(46349),i(70320),i(80628),i(97393),i(67712),i(32550),i(76843),i(56889)),g=function(t){function e(t){var i;return(0,r.Z)(this,e),(i=(0,l.Z)(this,e,[e.eventName,{bubbles:!1}])).first=t.first,i.last=t.last,i}return(0,o.Z)(e,t),(0,s.Z)(e)}((0,p.Z)(Event));g.eventName="rangeChanged";var k=function(t){function e(t){var i;return(0,r.Z)(this,e),(i=(0,l.Z)(this,e,[e.eventName,{bubbles:!1}])).first=t.first,i.last=t.last,i}return(0,o.Z)(e,t),(0,s.Z)(e)}((0,p.Z)(Event));k.eventName="visibilityChanged";var b=function(t){function e(){return(0,r.Z)(this,e),(0,l.Z)(this,e,[e.eventName,{bubbles:!1}])}return(0,o.Z)(e,t),(0,s.Z)(e)}((0,p.Z)(Event));b.eventName="unpinned";var w,C=i(82390),E=(i(78399),i(56086),i(47884),i(81912),i(64584),i(41483),i(12367),i(9454),function(t){function e(t,i){var n;(0,r.Z)(this,e),(n=(0,l.Z)(this,e,[i]))._clients=new Set,n._retarget=null,n._end=null,n.__destination=null,n.correctingScrollError=!1,n._checkForArrival=n._checkForArrival.bind((0,C.Z)(n)),n._updateManagedScrollTo=n._updateManagedScrollTo.bind((0,C.Z)(n)),n.scrollTo=n.scrollTo.bind((0,C.Z)(n)),n.scrollBy=n.scrollBy.bind((0,C.Z)(n));var s=n._node;return n._originalScrollTo=s.scrollTo,n._originalScrollBy=s.scrollBy,n._originalScroll=s.scroll,n._attach(t),n}return(0,o.Z)(e,t),(0,s.Z)(e,[{key:"_destination",get:function(){return this.__destination}},{key:"scrolling",get:function(){return null!==this._destination}},{key:"scrollTo",value:function(t,e){var i="number"==typeof t&&"number"==typeof e?{left:t,top:e}:t;this._scrollTo(i)}},{key:"scrollBy",value:function(t,e){var i="number"==typeof t&&"number"==typeof e?{left:t,top:e}:t;void 0!==i.top&&(i.top+=this.scrollTop),void 0!==i.left&&(i.left+=this.scrollLeft),this._scrollTo(i)}},{key:"_nativeScrollTo",value:function(t){this._originalScrollTo.bind(this._element||window)(t)}},{key:"_scrollTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null!==this._end&&this._end(),"smooth"===t.behavior?(this._setDestination(t),this._retarget=e,this._end=i):this._resetScrollState(),this._nativeScrollTo(t)}},{key:"_setDestination",value:function(t){var e=t.top,i=t.left;return e=void 0===e?void 0:Math.max(0,Math.min(e,this.maxScrollTop)),i=void 0===i?void 0:Math.max(0,Math.min(i,this.maxScrollLeft)),(null===this._destination||i!==this._destination.left||e!==this._destination.top)&&(this.__destination={top:e,left:i,behavior:"smooth"},!0)}},{key:"_resetScrollState",value:function(){this.__destination=null,this._retarget=null,this._end=null}},{key:"_updateManagedScrollTo",value:function(t){this._destination&&this._setDestination(t)&&this._nativeScrollTo(this._destination)}},{key:"managedScrollTo",value:function(t,e,i){return this._scrollTo(t,e,i),this._updateManagedScrollTo}},{key:"correctScrollError",value:function(t){var e=this;this.correctingScrollError=!0,requestAnimationFrame((function(){return requestAnimationFrame((function(){return e.correctingScrollError=!1}))})),this._nativeScrollTo(t),this._retarget&&this._setDestination(this._retarget()),this._destination&&this._nativeScrollTo(this._destination)}},{key:"_checkForArrival",value:function(){if(null!==this._destination){var t=this.scrollTop,e=this.scrollLeft,i=this._destination,n=i.top,r=i.left;n
//# sourceMappingURL=8565.wJ9COULmd4M.js.map