Initial Commit
This commit is contained in:
commit
d4a69c41be
2748 files changed
+80489
No files matched your search
@@ -0,0 +1,3 @@
|
||||
/*! For license information please see 2311.7ae37f1abe7c4d6c.js.LICENSE.txt */
|
||||
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["2311"],{22299:function(r,e,a){a.a(r,(async function(r,i){try{a.d(e,{z:function(){return y}});var n=a(31948),s=(a(71695),a(61495),a(40251),a(47021),a(9065)),t=a(4428),o=a(57243),l=a(50778),c=a(35359),d=a(20552),m=a(46799),p=r([n]);n=(p.then?(await p)():p)[0];let g,f=r=>r;class y extends o.oi{constructor(){super(...arguments),this.indeterminate=!1,this.progress=0,this.buffer=1,this.reverse=!1,this.closed=!1,this.stylePrimaryHalf="",this.stylePrimaryFull="",this.styleSecondaryQuarter="",this.styleSecondaryHalf="",this.styleSecondaryFull="",this.animationReady=!0,this.closedAnimationOff=!1,this.resizeObserver=null}connectedCallback(){super.connectedCallback(),this.rootEl&&this.attachResizeObserver()}render(){const 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?`-${this.stylePrimaryHalf}`:"","--mdc-linear-progress-primary-full":this.stylePrimaryFull,"--mdc-linear-progress-primary-full-neg":""!==this.stylePrimaryFull?`-${this.stylePrimaryFull}`:"","--mdc-linear-progress-secondary-quarter":this.styleSecondaryQuarter,"--mdc-linear-progress-secondary-quarter-neg":""!==this.styleSecondaryQuarter?`-${this.styleSecondaryQuarter}`:"","--mdc-linear-progress-secondary-half":this.styleSecondaryHalf,"--mdc-linear-progress-secondary-half-neg":""!==this.styleSecondaryHalf?`-${this.styleSecondaryHalf}`:"","--mdc-linear-progress-secondary-full":this.styleSecondaryFull,"--mdc-linear-progress-secondary-full-neg":""!==this.styleSecondaryFull?`-${this.styleSecondaryFull}`:""},a={"flex-basis":this.indeterminate?"100%":100*this.buffer+"%"},i={transform:this.indeterminate?"scaleX(1)":`scaleX(${this.progress})`};return(0,o.dy)(g||(g=f` <div role="progressbar" class="mdc-linear-progress ${0}" style="${0}" dir="${0}" aria-label="${0}" aria-valuemin="0" aria-valuemax="1" aria-valuenow="${0}" @transitionend="${0}"> <div class="mdc-linear-progress__buffer"> <div class="mdc-linear-progress__buffer-bar" style="${0}"> </div> <div class="mdc-linear-progress__buffer-dots"></div> </div> <div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar" style="${0}"> <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,c.$)(r),(0,m.V)(e),(0,d.o)(this.reverse?"rtl":void 0),(0,d.o)(this.ariaLabel),(0,d.o)(this.indeterminate?void 0:this.progress),this.syncClosedState,(0,m.V)(a),(0,m.V)(i))}update(r){!r.has("closed")||this.closed&&void 0!==r.get("closed")||this.syncClosedState(),super.update(r)}async firstUpdated(r){super.firstUpdated(r),this.attachResizeObserver()}syncClosedState(){this.closedAnimationOff=this.closed}updated(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),super.updated(r)}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),super.disconnectedCallback()}attachResizeObserver(){if(window.ResizeObserver)return this.resizeObserver=new window.ResizeObserver((r=>{if(this.indeterminate)for(const e of r)if(e.contentRect){const r=e.contentRect.width;this.calculateAndSetAnimationDimensions(r)}})),void this.resizeObserver.observe(this.rootEl);this.resizeObserver=null}calculateAndSetAnimationDimensions(r){const e=.8367142*r,a=2.00611057*r,i=.37651913*r,n=.84386165*r,s=1.60277782*r;this.stylePrimaryHalf=`${e}px`,this.stylePrimaryFull=`${a}px`,this.styleSecondaryQuarter=`${i}px`,this.styleSecondaryHalf=`${n}px`,this.styleSecondaryFull=`${s}px`,this.restartAnimation()}async restartAnimation(){this.animationReady=!1,await this.updateComplete,await new Promise(requestAnimationFrame),this.animationReady=!0,await this.updateComplete}open(){this.closed=!1}close(){this.closed=!0}}(0,s.gn)([(0,l.IO)(".mdc-linear-progress")],y.prototype,"rootEl",void 0),(0,s.gn)([(0,l.Cb)({type:Boolean,reflect:!0})],y.prototype,"indeterminate",void 0),(0,s.gn)([(0,l.Cb)({type:Number})],y.prototype,"progress",void 0),(0,s.gn)([(0,l.Cb)({type:Number})],y.prototype,"buffer",void 0),(0,s.gn)([(0,l.Cb)({type:Boolean,reflect:!0})],y.prototype,"reverse",void 0),(0,s.gn)([(0,l.Cb)({type:Boolean,reflect:!0})],y.prototype,"closed",void 0),(0,s.gn)([t.L,(0,l.Cb)({attribute:"aria-label"})],y.prototype,"ariaLabel",void 0),(0,s.gn)([(0,l.SB)()],y.prototype,"stylePrimaryHalf",void 0),(0,s.gn)([(0,l.SB)()],y.prototype,"stylePrimaryFull",void 0),(0,s.gn)([(0,l.SB)()],y.prototype,"styleSecoLine truncated
|
||||
//# sourceMappingURL=2311.7ae37f1abe7c4d6c.js.map
|
||||
Reference in new issue
Block a user