homeassistant/custom_components/hacs/hacs_frontend_experimental/frontend_es5/2692.HTK-B6MxzdU.js

3 lines
15 KiB
JavaScript
Raw Normal View History

2025-01-10 21:08:35 -08:00
/*! For license information please see 2692.HTK-B6MxzdU.js.LICENSE.txt */
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([[2692],{82692:function(r,e,a){var i,n,s=a(33368),t=a(71650),o=a(68308),l=a(69205),c=a(43204),d=a(95260),m=a(40039),p=a(99312),f=a(81043),g=a(88962),y=a(34541),u=a(47838),b=(a(64777),a(46798),a(47084),a(76843),a(38103)),h=a(5095),_=a(53180),v=a(10694),x=a(86634),w=function(r){function e(){var r;return(0,t.Z)(this,e),(r=(0,o.Z)(this,e,arguments)).indeterminate=!1,r.progress=0,r.buffer=1,r.reverse=!1,r.closed=!1,r.stylePrimaryHalf="",r.stylePrimaryFull="",r.styleSecondaryQuarter="",r.styleSecondaryHalf="",r.styleSecondaryFull="",r.animationReady=!0,r.closedAnimationOff=!1,r.resizeObserver=null,r}var a,n;return(0,l.Z)(e,r),(0,s.Z)(e,[{key:"connectedCallback",value:function(){(0,y.Z)((0,u.Z)(e.prototype),"connectedCallback",this).call(this),this.rootEl&&this.attachResizeObserver()}},{key:"render",value:function(){var r={"mdc-linear-progress--closed":this.closed,"mdc-linear-progress--closed-animation-off":this.closedAnimationOff,"mdc-linear-progress--indeterminate":this.indeterminate,"mdc-linear-progress--animation-ready":this.animationReady},e={"--mdc-linear-progress-primary-half":this.stylePrimaryHalf,"--mdc-linear-progress-primary-half-neg":""!==this.stylePrimaryHalf?"-".concat(this.stylePrimaryHalf):"","--mdc-linear-progress-primary-full":this.stylePrimaryFull,"--mdc-linear-progress-primary-full-neg":""!==this.stylePrimaryFull?"-".concat(this.stylePrimaryFull):"","--mdc-linear-progress-secondary-quarter":this.styleSecondaryQuarter,"--mdc-linear-progress-secondary-quarter-neg":""!==this.styleSecondaryQuarter?"-".concat(this.styleSecondaryQuarter):"","--mdc-linear-progress-secondary-half":this.styleSecondaryHalf,"--mdc-linear-progress-secondary-half-neg":""!==this.styleSecondaryHalf?"-".concat(this.styleSecondaryHalf):"","--mdc-linear-progress-secondary-full":this.styleSecondaryFull,"--mdc-linear-progress-secondary-full-neg":""!==this.styleSecondaryFull?"-".concat(this.styleSecondaryFull):""},a={"flex-basis":this.indeterminate?"100%":"".concat(100*this.buffer,"%")},n={transform:this.indeterminate?"scaleX(1)":"scaleX(".concat(this.progress,")")};return(0,h.dy)(i||(i=(0,g.Z)([' <div role="progressbar" class="mdc-linear-progress ','" style="','" dir="','" aria-label="','" aria-valuemin="0" aria-valuemax="1" aria-valuenow="','" @transitionend="','"> <div class="mdc-linear-progress__buffer"> <div class="mdc-linear-progress__buffer-bar" style="','"> </div> <div class="mdc-linear-progress__buffer-dots"></div> </div> <div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar" style="','"> <span class="mdc-linear-progress__bar-inner"></span> </div> <div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar"> <span class="mdc-linear-progress__bar-inner"></span> </div> </div>'])),(0,_.$)(r),(0,x.V)(e),(0,v.o)(this.reverse?"rtl":void 0),(0,v.o)(this.ariaLabel),(0,v.o)(this.indeterminate?void 0:this.progress),this.syncClosedState,(0,x.V)(a),(0,x.V)(n))}},{key:"update",value:function(r){!r.has("closed")||this.closed&&void 0!==r.get("closed")||this.syncClosedState(),(0,y.Z)((0,u.Z)(e.prototype),"update",this).call(this,r)}},{key:"firstUpdated",value:(n=(0,f.Z)((0,p.Z)().mark((function r(a){return(0,p.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:(0,y.Z)((0,u.Z)(e.prototype),"firstUpdated",this).call(this,a),this.attachResizeObserver();case 2:case"end":return r.stop()}}),r,this)}))),function(r){return n.apply(this,arguments)})},{key:"syncClosedState",value:function(){this.closedAnimationOff=this.closed}},{key:"updated",value:function(r){!r.has("indeterminate")&&r.has("reverse")&&this.indeterminate&&this.restartAnimation(),r.has("indeterminate")&&void 0!==r.get("indeterminate")&&this.indeterminate&&window.ResizeObserver&&this.calculateAndSetAnimationDimensions(this.rootEl.offsetWidth),(0,y.Z)((0,u.Z)(e.prototype),"updated",this).call(this,r)}},{key:"disconnectedCallback",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),(0,y.Z)((0,u.Z)(e.prototype),"disconnectedCallback",
//# sourceMappingURL=2692.HTK-B6MxzdU.js.map