4364c7be3b
+ Fixed the npwd script to latest version which fixes animation glitches. + Updated hypnonema to latest version.
1 line
35 KiB
JavaScript
1 line
35 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{VePF:function(t,e,i){"use strict";i.r(e),i.d(e,"StatusModule",function(){return It});var s=i("ofXK"),a=i("tyNb"),n=i("mrSG"),r=i("AcyG"),o=i("sxot"),c=i("fXoL"),h=i("tk/3"),l=i("/rnm"),d=i("bTqV"),p=i("Qu3c"),m=i("NFeN"),u=i("FKr1"),b=i("8LU1"),g=i("nLfN"),f=i("R1ws");function _(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}function C(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}function x(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}function k(t,e){if(1&t&&(c.hc(),c.Sb(0,"circle",3)),2&t){const t=c.ic();c.xc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),c.Gb("r",t._getCircleRadius())}}const v=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.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}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{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] svg{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] svg{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";class S{constructor(t){this._elementRef=t}}const w=Object(u.q)(S,"primary"),y=new c.t("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let A=(()=>{class t extends w{constructor(e,i,s,a,n){super(e),this._elementRef=e,this._document=s,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(s.head)||r.set(s.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===a&&!!n&&!n._forceAnimations,n&&(n.diameter&&(this.diameter=n.diameter),n.strokeWidth&&(this.strokeWidth=n.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Object(b.f)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Object(b.f)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Object(b.f)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Object(g.c)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,s=t._diameters;let a=s.get(e);if(!a||!a.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),a||(a=new Set,s.set(e,a)),a.add(i)}}_getAnimationText(){const t=this._getStrokeCircumference();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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(g.a),c.Rb(s.d,8),c.Rb(f.a,8),c.Rb(y))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(c.Gb("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.Jb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[c.Cb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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(t,e){1&t&&(c.hc(),c.Xb(0,"svg",0),c.Ac(1,_,1,9,"circle",1),c.Ac(2,C,1,7,"circle",2),c.Wb()),2&t&&(c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.nc("ngSwitch","indeterminate"===e.mode),c.Gb("viewBox",e._getViewBox()),c.Fb(1),c.nc("ngSwitchCase",!0),c.Fb(1),c.nc("ngSwitchCase",!1))},directives:[s.m,s.n],styles:[v],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),R=(()=>{class t extends A{constructor(t,e,i,s,a){super(t,e,i,s,a),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(g.a),c.Rb(s.d,8),c.Rb(f.a,8),c.Rb(y))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.Jb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[c.Cb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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(t,e){1&t&&(c.hc(),c.Xb(0,"svg",0),c.Ac(1,x,1,9,"circle",1),c.Ac(2,k,1,7,"circle",2),c.Wb()),2&t&&(c.xc("width",e.diameter,"px")("height",e.diameter,"px"),c.nc("ngSwitch","indeterminate"===e.mode),c.Gb("viewBox",e._getViewBox()),c.Fb(1),c.nc("ngSwitchCase",!0),c.Fb(1),c.nc("ngSwitchCase",!1))},directives:[s.m,s.n],styles:[v],encapsulation:2,changeDetection:0}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({imports:[[u.e,s.c],u.e]}),t})();var D=i("+0xr"),E=i("FtGj"),O=i("XNiG"),T=i("VRyK"),L=i("IzEk"),F=i("1G5W"),W=i("JX91"),M=i("u47x"),V=i("0EQZ"),X=i("kmnG"),j=i("cH1L"),P=i("3Pt+");const B=["*"],N=new c.t("MatChipRemove"),U=new c.t("MatChipAvatar"),q=new c.t("MatChipTrailingIcon");class G{constructor(t){this._elementRef=t}}const z=Object(u.u)(Object(u.q)(Object(u.r)(G),"primary"),-1);let $=(()=>{class t extends z{constructor(t,e,i,s,a,n,r,o){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new O.a,this._onBlur=new O.a,this.selectionChange=new c.p,this.destroyed=new c.p,this.removed=new c.p,this._addHostClassName(),this._chipRippleTarget=n.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new u.n(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=s||{},this._animationsDisabled="NoopAnimations"===r,this.tabIndex=null!=o&&parseInt(o)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=Object(b.c)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=Object(b.c)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=Object(b.c)(t)}get removable(){return this._removable}set removable(t){this._removable=Object(b.c)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t="mat-basic-chip",e=this._elementRef.nativeElement;e.hasAttribute(t)||e.tagName.toLowerCase()===t?e.classList.add(t):e.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case E.c:case E.b:this.remove(),t.preventDefault();break;case E.n:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Object(L.a)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(c.C),c.Rb(g.a),c.Rb(u.d,8),c.Rb(c.i),c.Rb(s.d),c.Rb(f.a,8),c.cc("tabindex"))},t.\u0275dir=c.Mb({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(c.Kb(i,U,1),c.Kb(i,q,1),c.Kb(i,N,1)),2&t){let t;c.pc(t=c.fc())&&(e.avatar=t.first),c.pc(t=c.fc())&&(e.trailingIcon=t.first),c.pc(t=c.fc())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&c.ec("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(c.Gb("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),c.Jb("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[c.Cb]}),t})();const K=new c.t("mat-chips-default-options");class H{constructor(t,e,i,s){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=s}}const J=Object(u.t)(H);let Z=0;class Q{constructor(t,e){this.source=t,this.value=e}}let Y=(()=>{class t extends J{constructor(t,e,i,s,a,n,r){super(n,s,a,r),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new O.a,this._uid="mat-chip-list-"+Z++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new c.p,this.valueChange=new c.p,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(b.c)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=Object(b.c)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(b.c)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=Object(b.c)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Object(T.a)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Object(T.a)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Object(T.a)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Object(T.a)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new M.d(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(F.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Object(F.a)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Object(W.a)(null),Object(F.a)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new V.c(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;t.keyCode===E.b&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&t<this.chips.length}_isInputEmpty(t){return!(!t||"input"!==t.nodeName.toLowerCase()||t.value)}_setSelectionByValue(t,e=!0){if(this._clearSelection(),this.chips.forEach(t=>t.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new Q(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(c.m),c.Rb(c.i),c.Rb(j.b,8),c.Rb(P.l,8),c.Rb(P.e,8),c.Rb(u.a),c.Rb(P.i,10))},t.\u0275cmp=c.Lb({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&c.Kb(i,$,1),2&t){let t;c.pc(t=c.fc())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&c.ec("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(c.ac("id",e._uid),c.Gb("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),c.Jb("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[c.Eb([{provide:X.d,useExisting:t}]),c.Cb],ngContentSelectors:B,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(c.mc(),c.Xb(0,"div",0),c.lc(1),c.Wb())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})();const tt={separatorKeyCodes:[E.f]};let et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({providers:[u.a,{provide:K,useValue:tt}],imports:[[u.e]]}),t})();var it=i("GFHR");function st(t,e){1&t&&(c.Xb(0,"div"),c.Sb(1,"mat-spinner",5),c.Wb())}function at(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Actions"),c.Wb())}function nt(t,e){if(1&t){const t=c.Yb();c.Xb(0,"td",18),c.Xb(1,"button",19),c.ec("click",function(){c.tc(t);const i=e.$implicit;return c.ic(2).suspendScreen(i)}),c.Xb(2,"mat-icon"),c.Cc(3,"stop"),c.Wb(),c.Wb(),c.Wb()}}function rt(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Screen-Name"),c.Wb())}function ot(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(t.screenName)}}function ct(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Status"),c.Wb())}function ht(t,e){1&t&&(c.Xb(0,"mat-chip",23),c.Cc(1,"Playing"),c.Wb())}function lt(t,e){1&t&&(c.Xb(0,"mat-chip",23),c.Cc(1,"Repeating"),c.Wb())}function dt(t,e){if(1&t&&(c.Ac(0,ht,2,0,"ng-template",20),c.Ac(1,lt,2,0,"ng-template",null,22,c.Bc)),2&t){const t=c.qc(2),e=c.ic().$implicit;c.nc("ngIfElse",t)("ngIf",!e.repeat)}}function pt(t,e){1&t&&(c.Xb(0,"mat-chip",25),c.Cc(1,"Paused"),c.Wb())}function mt(t,e){1&t&&(c.Xb(0,"mat-chip"),c.Cc(1,"Ended"),c.Wb())}function ut(t,e){if(1&t&&(c.Ac(0,pt,2,0,"ng-template",20),c.Ac(1,mt,2,0,"ng-template",null,24,c.Bc)),2&t){const t=c.qc(2),e=c.ic().$implicit;c.nc("ngIfElse",t)("ngIf",e.isPaused&&!e.ended)}}function bt(t,e){if(1&t&&(c.Xb(0,"td",18),c.Xb(1,"mat-chip-list"),c.Ac(2,dt,3,2,"ng-template",20),c.Ac(3,ut,3,2,"ng-template",null,21,c.Bc),c.Wb(),c.Wb()),2&t){const t=e.$implicit,i=c.qc(4);c.Fb(2),c.nc("ngIfElse",i)("ngIf",!t.isPaused&&!t.ended)}}function gt(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Current Time"),c.Wb())}function ft(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.jc(2,"minuteSeconds"),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(c.kc(2,1,t.currentTime))}}function _t(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Duration"),c.Wb())}function Ct(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.jc(2,"minuteSeconds"),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(c.kc(2,1,t.duration))}}function xt(t,e){1&t&&(c.Xb(0,"th",17),c.Cc(1,"Currently Playing"),c.Wb())}function kt(t,e){if(1&t&&(c.Xb(0,"td",18),c.Cc(1),c.Wb()),2&t){const t=e.$implicit;c.Fb(1),c.Dc(t.currentSource)}}function vt(t,e){1&t&&c.Sb(0,"tr",26)}function St(t,e){1&t&&c.Sb(0,"tr",27)}function wt(t,e){if(1&t&&(c.Xb(0,"table",6),c.Vb(1,7),c.Ac(2,at,2,0,"th",8),c.Ac(3,nt,4,0,"td",9),c.Ub(),c.Vb(4,10),c.Ac(5,rt,2,0,"th",8),c.Ac(6,ot,2,1,"td",9),c.Ub(),c.Vb(7,11),c.Ac(8,ct,2,0,"th",8),c.Ac(9,bt,5,2,"td",9),c.Ub(),c.Vb(10,12),c.Ac(11,gt,2,0,"th",8),c.Ac(12,ft,3,3,"td",9),c.Ub(),c.Vb(13,13),c.Ac(14,_t,2,0,"th",8),c.Ac(15,Ct,3,3,"td",9),c.Ub(),c.Vb(16,14),c.Ac(17,xt,2,0,"th",8),c.Ac(18,kt,2,1,"td",9),c.Ub(),c.Ac(19,vt,1,0,"tr",15),c.Ac(20,St,1,0,"tr",16),c.Wb()),2&t){const t=c.ic();c.nc("dataSource",t.screens$),c.Fb(19),c.nc("matHeaderRowDef",t.displayedColumns),c.Fb(1),c.nc("matRowDefColumns",t.displayedColumns)}}const yt=[{path:"",component:(()=>{class t{constructor(t,e,i){this.http=t,this.store=e,this.nuiService=i,this.displayedColumns=["actions","name","isPaused","currentTime","duration","currentSource"]}ngOnInit(){this.refresh()}suspendScreen(t){this.nuiService.closeScreen(t.screenName),setTimeout(()=>{this.nuiService.requestDuiState(t.screenName)},1e3)}refresh(){this.nuiService.requestDuiState("")}}return t.\u0275fac=function(e){return new(e||t)(c.Rb(h.a),c.Rb(r.g),c.Rb(l.a))},t.\u0275cmp=c.Lb({type:t,selectors:[["app-status"]],decls:11,vars:4,consts:[[1,"wrapper"],[4,"ngIf","ngIfElse"],["content",""],[1,"fab-container"],["color","accent","mat-fab","","matTooltip","Refresh",1,"md-fab-right",3,"click"],[1,"loading-spinner"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","isPaused"],["matColumnDef","currentTime"],["matColumnDef","duration"],["matColumnDef","currentSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["color","warn","mat-icon-button","","matTooltip","Stop Screen",3,"click"],[3,"ngIfElse","ngIf"],["elseBlock",""],["repeatBlock",""],[2,"background-color","forestgreen"],["elseBlock2",""],["color","accent"],["mat-header-row",""],["mat-row",""]],template:function(t,e){if(1&t&&(c.Xb(0,"div",0),c.Xb(1,"h3"),c.Cc(2,"Status"),c.Wb(),c.Ac(3,st,2,0,"div",1),c.jc(4,"async"),c.Ac(5,wt,21,3,"ng-template",null,2,c.Bc),c.Xb(7,"div",3),c.Xb(8,"button",4),c.ec("click",function(){return e.refresh()}),c.Xb(9,"mat-icon"),c.Cc(10,"refresh"),c.Wb(),c.Wb(),c.Wb(),c.Wb()),2&t){const t=c.qc(6);c.Fb(3),c.nc("ngIf",c.kc(4,2,e.isLoading))("ngIfElse",t)}},directives:[s.k,d.b,p.a,m.a,R,D.j,D.c,D.e,D.b,D.g,D.i,D.d,D.a,Y,$,D.f,D.h],pipes:[s.b,it.a],styles:[".wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;min-height:390px}.loading-spinner[_ngcontent-%COMP%]{left:40%}.mat-cell[_ngcontent-%COMP%]:first-child, .mat-header-cell[_ngcontent-%COMP%]:first-child{flex:0 0 5%}.mat-cell[_ngcontent-%COMP%]:nth-child(5), .mat-header-cell[_ngcontent-%COMP%]:nth-child(5){flex:0 0 10%}.mat-column-currentSource[_ngcontent-%COMP%]{flex:0 0 50%}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.fab-container[_ngcontent-%COMP%]{flex-grow:1}.md-fab-right[_ngcontent-%COMP%]{left:550px;position:absolute!important;bottom:0}"]}),Object(n.a)([Object(r.d)(o.a.getStatuses)],t.prototype,"screens$",void 0),Object(n.a)([Object(r.d)(o.a.isLoading)],t.prototype,"isLoading",void 0),t})()}];let At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({imports:[[a.d.forChild(yt)],a.d]}),t})();var Rt=i("PCNd");let It=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c.Pb({type:t}),t.\u0275inj=c.Ob({imports:[[s.c,At,d.c,p.b,m.b,D.k,I,Rt.a,et]]}),t})()}}]); |