Files
doneit-web/_platforms/browser/www/4694-es2015.a6fbfc1c86e893f10f58.js
T

1 line
18 KiB
JavaScript
Raw Normal View History

2021-08-18 18:58:02 +01:00
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[4694],{24694:function(i,r,t){"use strict";t.r(r),t.d(r,{ion_progress_bar:function(){return o}});var e=t(31667),n=t(36177),a=t(13772),s=t(61269);const o=class{constructor(i){(0,e.r)(this,i),this.type="determinate",this.reversed=!1,this.value=0,this.buffer=1}render(){const{color:i,type:r,reversed:t,value:a,buffer:o}=this,c=n.c.getBoolean("_testing"),f=(0,n.b)(this);return(0,e.h)(e.H,{role:"progressbar","aria-valuenow":"determinate"===r?a:null,"aria-valuemin":"0","aria-valuemax":"1",class:(0,s.c)(i,{[f]:!0,[`progress-bar-${r}`]:!0,"progress-paused":c,"progress-bar-reversed":"rtl"===document.dir?!t:t})},"indeterminate"===r?m():b(a,o))}},m=()=>[(0,e.h)("div",{class:"indeterminate-bar-primary"},(0,e.h)("span",{class:"progress-indeterminate"})),(0,e.h)("div",{class:"indeterminate-bar-secondary"},(0,e.h)("span",{class:"progress-indeterminate"}))],b=(i,r)=>{const t=(0,a.h)(0,i,1),n=(0,a.h)(0,r,1);return[(0,e.h)("div",{class:"progress",style:{transform:`scaleX(${t})`}}),1!==n&&(0,e.h)("div",{class:"buffer-circles"}),(0,e.h)("div",{class:"progress-buffer-bar",style:{transform:`scaleX(${n})`}})]};o.style={ios:':host{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.2);--progress-background:var(--ion-color-primary, #3880ff);--buffer-background:var(--background);display:block;position:relative;width:100%;contain:strict;direction:ltr;overflow:hidden}:host(.ion-color){--progress-background:var(--ion-color-base);--buffer-background:rgba(var(--ion-color-base-rgb), 0.2)}:host(.progress-bar-indeterminate){background:var(--buffer-background)}.progress,.progress-indeterminate,.indeterminate-bar-primary,.indeterminate-bar-secondary,.progress-buffer-bar,.progress-buffer-bar:before,.buffer-circles{left:0;right:0;top:0;bottom:0;position:absolute;width:100%;height:100%}.progress,.progress-buffer-bar{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms linear;transition:-webkit-transform 150ms linear;transition:transform 150ms linear;transition:transform 150ms linear, -webkit-transform 150ms linear}.progress,.progress-indeterminate{background:var(--progress-background);z-index:2}.progress-buffer-bar{background:#fff;z-index:1}.progress-buffer-bar:before{background:var(--buffer-background);content:""}.indeterminate-bar-primary{top:0;right:0;bottom:0;left:-145.166611%;-webkit-animation:primary-indeterminate-translate 2s infinite linear;animation:primary-indeterminate-translate 2s infinite linear}.indeterminate-bar-primary .progress-indeterminate{-webkit-animation:primary-indeterminate-scale 2s infinite linear;animation:primary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.indeterminate-bar-secondary{top:0;right:0;bottom:0;left:-54.888891%;-webkit-animation:secondary-indeterminate-translate 2s infinite linear;animation:secondary-indeterminate-translate 2s infinite linear}.indeterminate-bar-secondary .progress-indeterminate{-webkit-animation:secondary-indeterminate-scale 2s infinite linear;animation:secondary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.buffer-circles{background:radial-gradient(ellipse at center, var(--buffer-background) 0%, var(--buffer-background) 30%, transparent 30%) repeat-x 5px center;background-size:10px 10px;z-index:0;-webkit-animation:buffering 450ms infinite linear;animation:buffering 450ms infinite linear}:host(.progress-bar-reversed) .progress,:host(.progress-bar-reversed) .progress-buffer-bar{-webkit-transform-origin:right top;transform-origin:right top}:host(.progress-bar-reversed) .buffer-circles,:host(.progress-bar-reversed) .indeterminate-bar-primary,:host(.progress-bar-reversed) .indeterminate-bar-secondary,:host(.progress-bar-reversed) .progress-indeterminate{animation-direction:reverse}:host(.progress-paused) .indeterminate-bar-secondary,:host(.progress-paused) .indeterminate-bar-primary,:host(.progress-paused) .buffer-circles{-webkit-animation-play-state