24.4b5f0f3ea342b634f9c3.js 17 KB

123456789
  1. (window.webpackJsonpNVIV=window.webpackJsonpNVIV||[]).push([[24],{1861:function(e,t,r){"use strict";r.r(t),r.d(t,"MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS",(function(){return u})),r.d(t,"MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY",(function(){return k})),r.d(t,"MatProgressSpinner",(function(){return _})),r.d(t,"MatProgressSpinnerModule",(function(){return b})),r.d(t,"MatSpinner",(function(){return y}));var n=r(0),o=r(3),a=r(47),s=r(1),i=r(23),m=r(13),d=r(95);
  2. /**
  3. * @license
  4. * Copyright Google LLC All Rights Reserved.
  5. *
  6. * Use of this source code is governed by an MIT-style license that can be
  7. * found in the LICENSE file at https://angular.io/license
  8. */
  9. function p(e,t){if(1&e&&(n["ɵɵnamespaceSVG"](),n["ɵɵelement"](0,"circle",3)),2&e){var r=n["ɵɵnextContext"]();n["ɵɵstyleProp"]("animation-name","mat-progress-spinner-stroke-rotate-"+r.diameter)("stroke-dashoffset",r._strokeDashOffset,"px")("stroke-dasharray",r._strokeCircumference,"px")("stroke-width",r._circleStrokeWidth,"%"),n["ɵɵattribute"]("r",r._circleRadius)}}function f(e,t){if(1&e&&(n["ɵɵnamespaceSVG"](),n["ɵɵelement"](0,"circle",3)),2&e){var r=n["ɵɵnextContext"]();n["ɵɵstyleProp"]("stroke-dashoffset",r._strokeDashOffset,"px")("stroke-dasharray",r._strokeCircumference,"px")("stroke-width",r._circleStrokeWidth,"%"),n["ɵɵattribute"]("r",r._circleRadius)}}function c(e,t){if(1&e&&(n["ɵɵnamespaceSVG"](),n["ɵɵelement"](0,"circle",3)),2&e){var r=n["ɵɵnextContext"]();n["ɵɵstyleProp"]("animation-name","mat-progress-spinner-stroke-rotate-"+r.diameter)("stroke-dashoffset",r._strokeDashOffset,"px")("stroke-dasharray",r._strokeCircumference,"px")("stroke-width",r._circleStrokeWidth,"%"),n["ɵɵattribute"]("r",r._circleRadius)}}function l(e,t){if(1&e&&(n["ɵɵnamespaceSVG"](),n["ɵɵelement"](0,"circle",3)),2&e){var r=n["ɵɵnextContext"]();n["ɵɵstyleProp"]("stroke-dashoffset",r._strokeDashOffset,"px")("stroke-dasharray",r._strokeCircumference,"px")("stroke-width",r._circleStrokeWidth,"%"),n["ɵɵattribute"]("r",r._circleRadius)}}var g=function(e){this._elementRef=e},h=Object(a.mixinColor)(g,"primary"),u=new n.InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:k});function k(){return{diameter:100}}var _=function(e){function t(r,n,o,a,s){var i=e.call(this,r)||this;i._elementRef=r,i._document=o,i._diameter=100,i._value=0,i._fallbackAnimation=!1,i.mode="determinate";var m=t._diameters;return m.has(o.head)||m.set(o.head,new Set([100])),i._fallbackAnimation=n.EDGE||n.TRIDENT,i._noopAnimations="NoopAnimations"===a&&!!s&&!s._forceAnimations,s&&(s.diameter&&(i.diameter=s.diameter),s.strokeWidth&&(i.strokeWidth=s.strokeWidth)),i}return Object(s.c)(t,e),Object.defineProperty(t.prototype,"diameter",{get:function(){return this._diameter},set:function(e){this._diameter=Object(i.f)(e),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=Object(i.f)(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,Object(i.f)(e)))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this._elementRef.nativeElement;this._styleRoot=Object(m.c)(e)||this._document.head,this._attachStyleNode();var t="mat-progress-spinner-indeterminate"+(this._fallbackAnimation?"-fallback":"")+"-animation";e.classList.add(t)},Object.defineProperty(t.prototype,"_circleRadius",{get:function(){return(this.diameter-10)/2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_viewBox",{get:function(){var e=2*this._circleRadius+this.strokeWidth;return"0 0 "+e+" "+e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_strokeCircumference",{get:function(){return 2*Math.PI*this._circleRadius},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_strokeDashOffset",{get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_circleStrokeWidth",{get:function(){return this.strokeWidth/this.diameter*100},enumerable:!0,configurable:!0}),t.prototype._attachStyleNode=function(){var e=this._styleRoot,r=this._diameter,n=t._diameters,o=n.get(e);if(!o||!o.has(r)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",r+""),a.textContent=this._getAnimationText(),e.appendChild(a),o||(o=new Set,n.set(e,o)),o.add(r)}},t.prototype._getAnimationText=function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)},t._diameters=new WeakMap,t.ctorParameters=function(){return[{type:n.ElementRef},{type:m.a},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[o.DOCUMENT]}]},{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[d.ANIMATION_MODULE_TYPE]}]},{type:void 0,decorators:[{type:n.Inject,args:[u]}]}]},t.propDecorators={diameter:[{type:n.Input}],strokeWidth:[{type:n.Input}],mode:[{type:n.Input}],value:[{type:n.Input}]},t.ɵfac=function(e){return new(e||t)(n["ɵɵdirectiveInject"](n.ElementRef),n["ɵɵdirectiveInject"](m.a),n["ɵɵdirectiveInject"](o.DOCUMENT,8),n["ɵɵdirectiveInject"](d.ANIMATION_MODULE_TYPE,8),n["ɵɵdirectiveInject"](u))},t.ɵcmp=n["ɵɵdefineComponent"]({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(n["ɵɵattribute"]("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),n["ɵɵstyleProp"]("width",t.diameter,"px")("height",t.diameter,"px"),n["ɵɵclassProp"]("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",value:"value",mode:"mode"},exportAs:["matProgressSpinner"],features:[n["ɵɵInheritDefinitionFeature"]],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(n["ɵɵnamespaceSVG"](),n["ɵɵelementStart"](0,"svg",0),n["ɵɵtemplate"](1,p,1,9,"circle",1),n["ɵɵtemplate"](2,f,1,7,"circle",2),n["ɵɵelementEnd"]()),2&e&&(n["ɵɵstyleProp"]("width",t.diameter,"px")("height",t.diameter,"px"),n["ɵɵproperty"]("ngSwitch","indeterminate"===t.mode),n["ɵɵattribute"]("viewBox",t._viewBox),n["ɵɵadvance"](1),n["ɵɵproperty"]("ngSwitchCase",!0),n["ɵɵadvance"](1),n["ɵɵproperty"]("ngSwitchCase",!1))},directives:[o.NgSwitch,o.NgSwitchCase],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t}(h),y=function(e){function t(t,r,n,o,a){var s=e.call(this,t,r,n,o,a)||this;return s.mode="indeterminate",s}return Object(s.c)(t,e),t.ctorParameters=function(){return[{type:n.ElementRef},{type:m.a},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[o.DOCUMENT]}]},{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[d.ANIMATION_MODULE_TYPE]}]},{type:void 0,decorators:[{type:n.Inject,args:[u]}]}]},t.ɵfac=function(e){return new(e||t)(n["ɵɵdirectiveInject"](n.ElementRef),n["ɵɵdirectiveInject"](m.a),n["ɵɵdirectiveInject"](o.DOCUMENT,8),n["ɵɵdirectiveInject"](d.ANIMATION_MODULE_TYPE,8),n["ɵɵdirectiveInject"](u))},t.ɵcmp=n["ɵɵdefineComponent"]({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(n["ɵɵstyleProp"]("width",t.diameter,"px")("height",t.diameter,"px"),n["ɵɵclassProp"]("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[n["ɵɵInheritDefinitionFeature"]],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(n["ɵɵnamespaceSVG"](),n["ɵɵelementStart"](0,"svg",0),n["ɵɵtemplate"](1,c,1,9,"circle",1),n["ɵɵtemplate"](2,l,1,7,"circle",2),n["ɵɵelementEnd"]()),2&e&&(n["ɵɵstyleProp"]("width",t.diameter,"px")("height",t.diameter,"px"),n["ɵɵproperty"]("ngSwitch","indeterminate"===t.mode),n["ɵɵattribute"]("viewBox",t._viewBox),n["ɵɵadvance"](1),n["ɵɵproperty"]("ngSwitchCase",!0),n["ɵɵadvance"](1),n["ɵɵproperty"]("ngSwitchCase",!1))},directives:[o.NgSwitch,o.NgSwitchCase],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t}(_),b=function(){function e(){}return e.ɵmod=n["ɵɵdefineNgModule"]({type:e}),e.ɵinj=n["ɵɵdefineInjector"]({factory:function(t){return new(t||e)},imports:[[a.MatCommonModule,o.CommonModule],a.MatCommonModule]}),("undefined"==typeof ngJitMode||ngJitMode)&&n["ɵɵsetNgModuleScope"](e,{declarations:function(){return[_,y]},imports:function(){return[a.MatCommonModule,o.CommonModule]},exports:function(){return[_,y,a.MatCommonModule]}}),e}()}}]);