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 5860.4388f7296c9e334e.js.LICENSE.txt */
|
||||
export const ids=["5860"];export const modules={24427:function(r,e,i){var a=i("9065"),t=i("50778"),o=i("4428"),n=i("57243"),s=i("35359"),c=i("20552"),l=i("46799");class d extends n.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}`:""},i={"flex-basis":this.indeterminate?"100%":100*this.buffer+"%"},a={transform:this.indeterminate?"scaleX(1)":`scaleX(${this.progress})`};return n.dy` <div role="progressbar" class="mdc-linear-progress ${(0,s.$)(r)}" style="${(0,l.V)(e)}" dir="${(0,c.o)(this.reverse?"rtl":void 0)}" aria-label="${(0,c.o)(this.ariaLabel)}" aria-valuemin="0" aria-valuemax="1" aria-valuenow="${(0,c.o)(this.indeterminate?void 0:this.progress)}" @transitionend="${this.syncClosedState}"> <div class="mdc-linear-progress__buffer"> <div class="mdc-linear-progress__buffer-bar" style="${(0,l.V)(i)}"> </div> <div class="mdc-linear-progress__buffer-dots"></div> </div> <div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar" style="${(0,l.V)(a)}"> <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>`}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,i=2.00611057*r,a=.37651913*r,t=.84386165*r,o=1.60277782*r;this.stylePrimaryHalf=`${e}px`,this.stylePrimaryFull=`${i}px`,this.styleSecondaryQuarter=`${a}px`,this.styleSecondaryHalf=`${t}px`,this.styleSecondaryFull=`${o}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,a.gn)([(0,t.IO)(".mdc-linear-progress")],d.prototype,"rootEl",void 0),(0,a.gn)([(0,t.Cb)({type:Boolean,reflect:!0})],d.prototype,"indeterminate",void 0),(0,a.gn)([(0,t.Cb)({type:Number})],d.prototype,"progress",void 0),(0,a.gn)([(0,t.Cb)({type:Number})],d.prototype,"buffer",void 0),(0,a.gn)([(0,t.Cb)({type:Boolean,reflect:!0})],d.prototype,"reverse",void 0),(0,a.gn)([(0,t.Cb)({type:Boolean,reflect:!0})],d.prototype,"closed",void 0),(0,a.gn)([o.L,(0,t.Cb)({attribute:"aria-label"})],d.prototype,"ariaLabel",void 0),(0,a.gn)([(0,t.SB)()],d.prototype,"stylePrimaryHalf",void 0),(0,a.gn)([(0,t.SB)()],d.prototype,"stylePrimaryFull",void 0),(0,a.gn)([(0,t.SB)()],d.prototype,"styleSecondaryQuarter",void 0),(0,a.gn)([(0,t.SB)()],d.prototype,"styleSecondaryHalf",void 0),(0,a.gn)([(0,t.SB)()],d.prototype,"styleSecondaryFull",void 0),(0,a.gn)([(0,t.SB)()],d.prototype,"animationReady",void 0),(0,a.gn)([(0,t.SB)(Line truncated
|
||||
//# sourceMappingURL=5860.4388f7296c9e334e.js.map
|
||||
Reference in new issue
Block a user