1 line
43 KiB
JavaScript
1 line
43 KiB
JavaScript
function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),e}function _createSuper(e){return function(){var t,i=_getPrototypeOf(e);if(_isNativeReflectConstruct()){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(i,arguments,n)}else t=i.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{VePF:function(e,t,i){"use strict";i.r(t),i.d(t,"StatusModule",(function(){return Xe}));var n=i("ofXK"),a=i("tyNb"),r=i("mrSG"),s=i("AcyG"),o=i("sxot"),c=i("fXoL"),l=i("tk/3"),h=i("/rnm"),d=i("bTqV"),p=i("Qu3c"),u=i("NFeN"),m=i("FKr1"),f=i("8LU1"),b=i("nLfN"),g=i("R1ws");function _(e,t){if(1&e&&(c.ic(),c.Sb(0,"circle",3)),2&e){var i=c.jc();c.Ac("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),c.Fb("r",i._circleRadius)}}function k(e,t){if(1&e&&(c.ic(),c.Sb(0,"circle",3)),2&e){var i=c.jc();c.Ac("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),c.Fb("r",i._circleRadius)}}function v(e,t){if(1&e&&(c.ic(),c.Sb(0,"circle",3)),2&e){var i=c.jc();c.Ac("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),c.Fb("r",i._circleRadius)}}function y(e,t){if(1&e&&(c.ic(),c.Sb(0,"circle",3)),2&e){var i=c.jc();c.Ac("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),c.Fb("r",i._circleRadius)}}var C,x,w,S,R,A,I,E,O,D=Object(m.r)((function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),T=new c.s("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),j=((w=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,s){var o;_classCallCheck(this,i),(o=t.call(this,e))._elementRef=e,o._document=a,o._diameter=100,o._value=0,o._fallbackAnimation=!1,o.mode="determinate";var c=i._diameters;return c.has(a.head)||c.set(a.head,new Set([100])),o._fallbackAnimation=n.EDGE||n.TRIDENT,o._noopAnimations="NoopAnimations"===r&&!!s&&!s._forceAnimations,s&&(s.diameter&&(o.diameter=s.diameter),s.strokeWidth&&(o.strokeWidth=s.strokeWidth)),o}return _createClass(i,[{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=Object(b.c)(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,n=i._diameters,a=n.get(e);if(!a||!a.has(t)){var r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",t+""),r.textContent=this._getAnimationText(),e.appendChild(r),a||(a=new Set,n.set(e,a)),a.add(t)}}},{key:"_getAnimationText",value: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,"".concat(.95*this._strokeCircumference)).replace(/END_VALUE/g,"".concat(.2*this._strokeCircumference)).replace(/DIAMETER/g,"".concat(this.diameter))}},{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=Object(f.f)(e),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=Object(f.f)(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,Object(f.f)(e)))}},{key:"_circleRadius",get:function(){return(this.diameter-10)/2}},{key:"_viewBox",get:function(){var e=2*this._circleRadius+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_strokeCircumference",get:function(){return 2*Math.PI*this._circleRadius}},{key:"_strokeDashOffset",get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}},{key:"_circleStrokeWidth",get:function(){return this.strokeWidth/this.diameter*100}}]),i}(D)).\u0275fac=function(e){return new(e||w)(c.Rb(c.m),c.Rb(b.a),c.Rb(n.d,8),c.Rb(g.a,8),c.Rb(T))},w.\u0275cmp=c.Lb({type:w,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(c.Fb("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),c.Ac("width",t.diameter,"px")("height",t.diameter,"px"),c.Ib("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[c.Bb],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&&(c.ic(),c.Xb(0,"svg",0),c.Bc(1,_,1,9,"circle",1),c.Bc(2,k,1,7,"circle",2),c.Wb()),2&e&&(c.Ac("width",t.diameter,"px")("height",t.diameter,"px"),c.oc("ngSwitch","indeterminate"===t.mode),c.Fb("viewBox",t._viewBox),c.Eb(1),c.oc("ngSwitchCase",!0),c.Eb(1),c.oc("ngSwitchCase",!1))},directives:[n.m,n.n],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}),w._diameters=new WeakMap,w),B=((x=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,s){var o;return _classCallCheck(this,i),(o=t.call(this,e,n,a,r,s)).mode="indeterminate",o}return i}(j)).\u0275fac=function(e){return new(e||x)(c.Rb(c.m),c.Rb(b.a),c.Rb(n.d,8),c.Rb(g.a,8),c.Rb(T))},x.\u0275cmp=c.Lb({type:x,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(c.Ac("width",t.diameter,"px")("height",t.diameter,"px"),c.Ib("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[c.Bb],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&&(c.ic(),c.Xb(0,"svg",0),c.Bc(1,v,1,9,"circle",1),c.Bc(2,y,1,7,"circle",2),c.Wb()),2&e&&(c.Ac("width",t.diameter,"px")("height",t.diameter,"px"),c.oc("ngSwitch","indeterminate"===t.mode),c.Fb("viewBox",t._viewBox),c.Eb(1),c.oc("ngSwitchCase",!0),c.Eb(1),c.oc("ngSwitchCase",!1))},directives:[n.m,n.n],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}),x),M=((C=function e(){_classCallCheck(this,e)}).\u0275mod=c.Pb({type:C}),C.\u0275inj=c.Ob({factory:function(e){return new(e||C)},imports:[[m.e,n.c],m.e]}),C),X=i("+0xr"),F=i("FtGj"),W=i("XNiG"),L=i("VRyK"),P=i("IzEk"),V=i("1G5W"),N=i("JX91"),U=i("u47x"),z=i("0EQZ"),q=i("kmnG"),H=i("cH1L"),K=i("3Pt+"),$=["*"],G=Object(m.v)(Object(m.r)(Object(m.s)(Object(m.t)((function e(t){_classCallCheck(this,e),this._elementRef=t}))),"primary"),-1),Z=((I=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||I)},I.\u0275dir=c.Mb({type:I,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),I),Q=((A=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||A)},A.\u0275dir=c.Mb({type:A,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),A),J=((R=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,s,o,l,h){var d;return _classCallCheck(this,i),(d=t.call(this,e))._elementRef=e,d._ngZone=n,d._changeDetectorRef=o,d._hasFocus=!1,d.chipListSelectable=!0,d._chipListMultiple=!1,d._selected=!1,d._selectable=!0,d._removable=!0,d._onFocus=new W.a,d._onBlur=new W.a,d.selectionChange=new c.p,d.destroyed=new c.p,d.removed=new c.p,d._addHostClassName(),d._chipRippleTarget=(h||document).createElement("div"),d._chipRippleTarget.classList.add("mat-chip-ripple"),d._elementRef.nativeElement.appendChild(d._chipRippleTarget),d._chipRipple=new m.o(_assertThisInitialized(d),n,d._chipRippleTarget,a),d._chipRipple.setupTriggerEvents(e),d.rippleConfig=r||{},d._animationsDisabled="NoopAnimations"===s,d.tabIndex=null!=l&&parseInt(l)||-1,d}return _createClass(i,[{key:"_addHostClassName",value:function(){var e=this._elementRef.nativeElement;e.hasAttribute("mat-basic-chip")||"mat-basic-chip"===e.tagName.toLowerCase()?e.classList.add("mat-basic-chip"):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(e){if(!this.disabled)switch(e.keyCode){case F.c:case F.b:this.remove(),e.preventDefault();break;case F.n:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.asObservable().pipe(Object(P.a)(1)).subscribe((function(){e._ngZone.run((function(){e._hasFocus=!1,e._onBlur.next({chip:e})}))}))}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}},{key:"_markForCheck",value:function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=Object(f.c)(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=Object(f.c)(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=Object(f.c)(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),i}(G)).\u0275fac=function(e){return new(e||R)(c.Rb(c.m),c.Rb(c.B),c.Rb(b.a),c.Rb(m.d,8),c.Rb(g.a,8),c.Rb(c.i),c.cc("tabindex"),c.Rb(n.d,8))},R.\u0275dir=c.Mb({type:R,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,i){var n;1&e&&(c.Kb(i,Z,!0),c.Kb(i,Q,!0),c.Kb(i,Y,!0)),2&e&&(c.qc(n=c.gc())&&(t.avatar=n.first),c.qc(n=c.gc())&&(t.trailingIcon=n.first),c.qc(n=c.gc())&&(t.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&c.fc("click",(function(e){return t._handleClick(e)}))("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()})),2&e&&(c.Fb("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),c.Ib("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[c.Bb]}),R),Y=((S=function(){function e(t,i){_classCallCheck(this,e),this._parentChip=t,i&&"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}return _createClass(e,[{key:"_handleClick",value:function(e){var t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}]),e}()).\u0275fac=function(e){return new(e||S)(c.Rb(J),c.Rb(c.m))},S.\u0275dir=c.Mb({type:S,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&c.fc("click",(function(e){return t._handleClick(e)}))}}),S),ee=new c.s("mat-chips-default-options"),te=Object(m.u)((function e(t,i,n,a){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=a})),ie=0,ne=function e(t,i){_classCallCheck(this,e),this.source=t,this.value=i},ae=((E=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,s,o,l){var h;return _classCallCheck(this,i),(h=t.call(this,o,r,s,l))._elementRef=e,h._changeDetectorRef=n,h._dir=a,h.ngControl=l,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new W.a,h._uid="mat-chip-list-".concat(ie++),h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(e,t){return e===t},h._required=!1,h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new c.p,h.valueChange=new c.p,h.ngControl&&(h.ngControl.valueAccessor=_assertThisInitialized(h)),h}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new U.d(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(V.a)(this._destroyed)).subscribe((function(t){return e._keyManager.withHorizontalOrientation(t)})),this._keyManager.tabOut.pipe(Object(V.a)(this._destroyed)).subscribe((function(){e._allowFocusEscape()})),this.chips.changes.pipe(Object(N.a)(null),Object(V.a)(this._destroyed)).subscribe((function(){e.disabled&&Promise.resolve().then((function(){e._syncChipsState()})),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()}))}},{key:"ngOnInit",value:function(){this._selectionModel=new z.c(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;e.keyCode===F.b&&this._isInputEmpty(t)?(this._keyManager.setLastItemActive(),e.preventDefault()):t&&t.classList.contains("mat-chip")&&(e.keyCode===F.h?(this._keyManager.setFirstItemActive(),e.preventDefault()):e.keyCode===F.e?(this._keyManager.setLastItemActive(),e.preventDefault()):this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e<this.chips.length}},{key:"_isInputEmpty",value:function(e){return!(!e||"input"!==e.nodeName.toLowerCase()||e.value)}},{key:"_setSelectionByValue",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach((function(e){return e.deselect()})),Array.isArray(e))e.forEach((function(e){return t._selectValue(e,i)})),this._sortValues();else{var n=this._selectValue(e,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find((function(i){return null!=i.value&&t._compareWith(i.value,e)}));return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())}))}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach((function(t){t!==e&&t.deselect()})),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(t){t.selected&&e._selectionModel.select(t)})),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.change.emit(new ne(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){e.focused||e._markAsTouched()})):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()})))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){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)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach((function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()})),t.isUserInput&&e._propagateChanges()}))}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(t){var i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&e._keyManager.updateActiveItem(i),e.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){e._blur(),e.stateChanges.next()}))}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(t){var i=t.chip,n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&i._hasFocus&&(e._lastDestroyedChipIndex=n)}))}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips.some((function(e){return e._hasFocus}))}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach((function(t){t.disabled=e._disabled,t._chipListMultiple=e.multiple}))}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Object(f.c)(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Object(f.c)(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Object(f.c)(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=Object(f.c)(e),this.chips&&this.chips.forEach((function(e){return e.chipListSelectable=t._selectable}))}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return Object(L.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e.selectionChange}))))}},{key:"chipFocusChanges",get:function(){return Object(L.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e._onFocus}))))}},{key:"chipBlurChanges",get:function(){return Object(L.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e._onBlur}))))}},{key:"chipRemoveChanges",get:function(){return Object(L.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e.destroyed}))))}}]),i}(te)).\u0275fac=function(e){return new(e||E)(c.Rb(c.m),c.Rb(c.i),c.Rb(H.b,8),c.Rb(K.l,8),c.Rb(K.e,8),c.Rb(m.a),c.Rb(K.i,10))},E.\u0275cmp=c.Lb({type:E,selectors:[["mat-chip-list"]],contentQueries:function(e,t,i){var n;1&e&&c.Kb(i,J,!0),2&e&&c.qc(n=c.gc())&&(t.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&c.fc("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()}))("keydown",(function(e){return t._keydown(e)})),2&e&&(c.ac("id",t._uid),c.Fb("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),c.Ib("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.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.Db([{provide:q.d,useExisting:E}]),c.Bb],ngContentSelectors:$,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(c.nc(),c.Xb(0,"div",0),c.mc(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}),E),re={separatorKeyCodes:[F.f]},se=((O=function e(){_classCallCheck(this,e)}).\u0275mod=c.Pb({type:O}),O.\u0275inj=c.Ob({factory:function(e){return new(e||O)},providers:[m.a,{provide:ee,useValue:re}]}),O),oe=i("GFHR");function ce(e,t){1&e&&(c.Xb(0,"div"),c.Sb(1,"mat-spinner",5),c.Wb())}function le(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Actions"),c.Wb())}function he(e,t){if(1&e){var i=c.Yb();c.Xb(0,"td",18),c.Xb(1,"button",19),c.fc("click",(function(){c.uc(i);var e=t.$implicit;return c.jc(2).suspendScreen(e)})),c.Xb(2,"mat-icon"),c.Dc(3,"stop"),c.Wb(),c.Wb(),c.Wb()}}function de(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Screen-Name"),c.Wb())}function pe(e,t){if(1&e&&(c.Xb(0,"td",18),c.Dc(1),c.Wb()),2&e){var i=t.$implicit;c.Eb(1),c.Ec(i.screenName)}}function ue(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Status"),c.Wb())}function me(e,t){1&e&&(c.Xb(0,"mat-chip",23),c.Dc(1,"Playing"),c.Wb())}function fe(e,t){1&e&&(c.Xb(0,"mat-chip",23),c.Dc(1,"Repeating"),c.Wb())}function be(e,t){if(1&e&&(c.Bc(0,me,2,0,"ng-template",20),c.Bc(1,fe,2,0,"ng-template",null,22,c.Cc)),2&e){var i=c.rc(2),n=c.jc().$implicit;c.oc("ngIf",!n.repeat)("ngIfElse",i)}}function ge(e,t){1&e&&(c.Xb(0,"mat-chip",25),c.Dc(1,"Paused"),c.Wb())}function _e(e,t){1&e&&(c.Xb(0,"mat-chip"),c.Dc(1,"Ended"),c.Wb())}function ke(e,t){if(1&e&&(c.Bc(0,ge,2,0,"ng-template",20),c.Bc(1,_e,2,0,"ng-template",null,24,c.Cc)),2&e){var i=c.rc(2),n=c.jc().$implicit;c.oc("ngIf",n.isPaused&&!n.ended)("ngIfElse",i)}}function ve(e,t){if(1&e&&(c.Xb(0,"td",18),c.Xb(1,"mat-chip-list"),c.Bc(2,be,3,2,"ng-template",20),c.Bc(3,ke,3,2,"ng-template",null,21,c.Cc),c.Wb(),c.Wb()),2&e){var i=t.$implicit,n=c.rc(4);c.Eb(2),c.oc("ngIf",!i.isPaused&&!i.ended)("ngIfElse",n)}}function ye(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Current Time"),c.Wb())}function Ce(e,t){if(1&e&&(c.Xb(0,"td",18),c.Dc(1),c.kc(2,"minuteSeconds"),c.Wb()),2&e){var i=t.$implicit;c.Eb(1),c.Ec(c.lc(2,1,i.currentTime))}}function xe(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Duration"),c.Wb())}function we(e,t){if(1&e&&(c.Xb(0,"td",18),c.Dc(1),c.kc(2,"minuteSeconds"),c.Wb()),2&e){var i=t.$implicit;c.Eb(1),c.Ec(c.lc(2,1,i.duration))}}function Se(e,t){1&e&&(c.Xb(0,"th",17),c.Dc(1,"Currently Playing"),c.Wb())}function Re(e,t){if(1&e&&(c.Xb(0,"td",18),c.Dc(1),c.Wb()),2&e){var i=t.$implicit;c.Eb(1),c.Ec(i.currentSource)}}function Ae(e,t){1&e&&c.Sb(0,"tr",26)}function Ie(e,t){1&e&&c.Sb(0,"tr",27)}function Ee(e,t){if(1&e&&(c.Xb(0,"table",6),c.Vb(1,7),c.Bc(2,le,2,0,"th",8),c.Bc(3,he,4,0,"td",9),c.Ub(),c.Vb(4,10),c.Bc(5,de,2,0,"th",8),c.Bc(6,pe,2,1,"td",9),c.Ub(),c.Vb(7,11),c.Bc(8,ue,2,0,"th",8),c.Bc(9,ve,5,2,"td",9),c.Ub(),c.Vb(10,12),c.Bc(11,ye,2,0,"th",8),c.Bc(12,Ce,3,3,"td",9),c.Ub(),c.Vb(13,13),c.Bc(14,xe,2,0,"th",8),c.Bc(15,we,3,3,"td",9),c.Ub(),c.Vb(16,14),c.Bc(17,Se,2,0,"th",8),c.Bc(18,Re,2,1,"td",9),c.Ub(),c.Bc(19,Ae,1,0,"tr",15),c.Bc(20,Ie,1,0,"tr",16),c.Wb()),2&e){var i=c.jc();c.oc("dataSource",i.screens$),c.Eb(19),c.oc("matHeaderRowDef",i.displayedColumns),c.Eb(1),c.oc("matRowDefColumns",i.displayedColumns)}}var Oe,De,Te,je=[{path:"",component:(Oe=function(){function e(t,i,n){_classCallCheck(this,e),this.http=t,this.store=i,this.nuiService=n,this.displayedColumns=["actions","name","isPaused","currentTime","duration","currentSource"]}return _createClass(e,[{key:"ngOnInit",value:function(){this.refresh()}},{key:"suspendScreen",value:function(e){this.nuiService.closeScreen(e.screenName),this.refresh()}},{key:"refresh",value:function(){this.nuiService.requestDuiState("")}}]),e}(),Oe.\u0275fac=function(e){return new(e||Oe)(c.Rb(l.a),c.Rb(s.g),c.Rb(h.a))},Oe.\u0275cmp=c.Lb({type:Oe,selectors:[["app-status"]],decls:11,vars:4,consts:[[1,"wrapper"],[4,"ngIf","ngIfElse"],["content",""],[1,"fab-container"],["mat-fab","","matTooltip","Refresh","color","accent",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",""],["mat-icon-button","","color","warn","matTooltip","Suspend Screen",3,"click"],[3,"ngIf","ngIfElse"],["elseBlock",""],["repeatBlock",""],[2,"background-color","forestgreen"],["elseBlock2",""],["color","accent"],["mat-header-row",""],["mat-row",""]],template:function(e,t){if(1&e&&(c.Xb(0,"div",0),c.Xb(1,"h3"),c.Dc(2,"Status"),c.Wb(),c.Bc(3,ce,2,0,"div",1),c.kc(4,"async"),c.Bc(5,Ee,21,3,"ng-template",null,2,c.Cc),c.Xb(7,"div",3),c.Xb(8,"button",4),c.fc("click",(function(){return t.refresh()})),c.Xb(9,"mat-icon"),c.Dc(10,"refresh"),c.Wb(),c.Wb(),c.Wb(),c.Wb()),2&e){var i=c.rc(6);c.Eb(3),c.oc("ngIf",c.lc(4,2,t.isLoading))("ngIfElse",i)}},directives:[n.k,d.b,p.a,u.a,B,X.j,X.c,X.e,X.b,X.g,X.i,X.d,X.a,ae,J,X.f,X.h],pipes:[n.b,oe.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(r.a)([Object(s.d)(o.a.getStatuses)],Oe.prototype,"screens$",void 0),Object(r.a)([Object(s.d)(o.a.isLoading)],Oe.prototype,"isLoading",void 0),Oe)}],Be=((De=function e(){_classCallCheck(this,e)}).\u0275mod=c.Pb({type:De}),De.\u0275inj=c.Ob({factory:function(e){return new(e||De)},imports:[[a.d.forChild(je)],a.d]}),De),Me=i("PCNd"),Xe=((Te=function e(){_classCallCheck(this,e)}).\u0275mod=c.Pb({type:Te}),Te.\u0275inj=c.Ob({factory:function(e){return new(e||Te)},imports:[[n.c,Be,d.c,p.b,u.b,X.k,M,Me.a,se]]}),Te)}}]); |