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 5766.e7baf78361b168a9.js.LICENSE.txt */
|
||||
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["5766"],{22299:function(e,r,t){t.a(e,(async function(e,i){try{t.d(r,{z:function(){return f}});var a=t(31948),o=(t(71695),t(61495),t(40251),t(47021),t(9065)),s=t(4428),n=t(57243),c=t(50778),d=t(35359),l=t(20552),m=t(46799),p=e([a]);a=(p.then?(await p)():p)[0];let g,h=e=>e;class f 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 e={"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},r={"--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}`:""},t={"flex-basis":this.indeterminate?"100%":100*this.buffer+"%"},i={transform:this.indeterminate?"scaleX(1)":`scaleX(${this.progress})`};return(0,n.dy)(g||(g=h` <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,d.$)(e),(0,m.V)(r),(0,l.o)(this.reverse?"rtl":void 0),(0,l.o)(this.ariaLabel),(0,l.o)(this.indeterminate?void 0:this.progress),this.syncClosedState,(0,m.V)(t),(0,m.V)(i))}update(e){!e.has("closed")||this.closed&&void 0!==e.get("closed")||this.syncClosedState(),super.update(e)}async firstUpdated(e){super.firstUpdated(e),this.attachResizeObserver()}syncClosedState(){this.closedAnimationOff=this.closed}updated(e){!e.has("indeterminate")&&e.has("reverse")&&this.indeterminate&&this.restartAnimation(),e.has("indeterminate")&&void 0!==e.get("indeterminate")&&this.indeterminate&&window.ResizeObserver&&this.calculateAndSetAnimationDimensions(this.rootEl.offsetWidth),super.updated(e)}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),super.disconnectedCallback()}attachResizeObserver(){if(window.ResizeObserver)return this.resizeObserver=new window.ResizeObserver((e=>{if(this.indeterminate)for(const r of e)if(r.contentRect){const e=r.contentRect.width;this.calculateAndSetAnimationDimensions(e)}})),void this.resizeObserver.observe(this.rootEl);this.resizeObserver=null}calculateAndSetAnimationDimensions(e){const r=.8367142*e,t=2.00611057*e,i=.37651913*e,a=.84386165*e,o=1.60277782*e;this.stylePrimaryHalf=`${r}px`,this.stylePrimaryFull=`${t}px`,this.styleSecondaryQuarter=`${i}px`,this.styleSecondaryHalf=`${a}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,o.gn)([(0,c.IO)(".mdc-linear-progress")],f.prototype,"rootEl",void 0),(0,o.gn)([(0,c.Cb)({type:Boolean,reflect:!0})],f.prototype,"indeterminate",void 0),(0,o.gn)([(0,c.Cb)({type:Number})],f.prototype,"progress",void 0),(0,o.gn)([(0,c.Cb)({type:Number})],f.prototype,"buffer",void 0),(0,o.gn)([(0,c.Cb)({type:Boolean,reflect:!0})],f.prototype,"reverse",void 0),(0,o.gn)([(0,c.Cb)({type:Boolean,reflect:!0})],f.prototype,"closed",void 0),(0,o.gn)([s.L,(0,c.Cb)({attribute:"aria-label"})],f.prototype,"ariaLabel",void 0),(0,o.gn)([(0,c.SB)()],f.prototype,"stylePrimaryHalf",void 0),(0,o.gn)([(0,c.SB)()],f.prototype,"stylePrimaryFull",void 0),(0,o.gn)([(0,c.SB)()],f.prototype,"styleSecoLine truncated
|
||||
//# sourceMappingURL=5766.e7baf78361b168a9.js.map
|
||||
Reference in new issue
Block a user