Files
Elite-Gaming-FiveM/resources/Hypnonema/client/html/6.js
T
Jacob 4364c7be3b Fixed Animation Freeze + Video Screens
+ Fixed the npwd script to latest version which fixes animation glitches.
+ Updated hypnonema to latest version.
2022-02-24 00:44:42 +00:00

1 line
61 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{uBXI:function(e,t,n){"use strict";n.r(t),n.d(t,"ScreensModule",function(){return ft});var i=n("ofXK"),r=n("tyNb"),a=n("mrSG"),o=n("AcyG"),s=n("sxot"),l=n("fXoL"),c=n("/rnm"),d=n("+0xr"),b=n("bTqV"),p=n("Qu3c"),m=n("NFeN");function u(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Actions"),l.Wb())}function h(e,t){if(1&e){const e=l.Yb();l.Xb(0,"td",15),l.Xb(1,"button",16),l.ec("click",function(){l.tc(e);const n=t.$implicit;return l.ic().editScreen(n)}),l.Xb(2,"mat-icon"),l.Cc(3,"edit"),l.Wb(),l.Wb(),l.Xb(4,"button",17),l.ec("click",function(){l.tc(e);const n=t.$implicit;return l.ic().deleteScreen(n)}),l.Xb(5,"mat-icon"),l.Cc(6,"delete"),l.Wb(),l.Wb(),l.Wb()}}function g(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Name"),l.Wb())}function f(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(e.name)}}function _(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Always On"),l.Wb())}function v(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(e.alwaysOn)}}function C(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"Model-Name"),l.Wb())}function F(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(null==e.targetSettings?null:e.targetSettings.modelName)}}function y(e,t){1&e&&(l.Xb(0,"th",14),l.Cc(1,"RenderTarget Name"),l.Wb())}function x(e,t){if(1&e&&(l.Xb(0,"td",15),l.Cc(1),l.Wb()),2&e){const e=t.$implicit;l.Fb(1),l.Dc(null==e.targetSettings?null:e.targetSettings.renderTargetName)}}function X(e,t){1&e&&l.Sb(0,"tr",18)}function D(e,t){1&e&&l.Sb(0,"tr",19)}let S=(()=>{class e{constructor(e,t,n){this.router=e,this.nuiService=t,this.store=n,this.displayedColumns=["actions","name","modelName","targetName","alwaysOn"]}ngOnInit(){}editScreen(e){this.store.dispatch(new s.g(e)),this.router.navigateByUrl("/screens/edit-screen")}deleteScreen(e){this.nuiService.deleteScreen(e.name)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(r.a),l.Rb(c.a),l.Rb(o.g))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-screens"]],decls:26,vars:3,consts:[[1,"wrapper"],[1,"screens-table"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","alwaysOn"],["matColumnDef","modelName"],["matColumnDef","targetName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"fab-container"],["color","primary","mat-fab","","matTooltip","create a new Screen","routerLink","/screens/create-new-screen",1,"md-fab-right"],["mat-header-cell",""],["mat-cell",""],["aria-label","Edit Screen","color","accent","mat-icon-button","","matTooltip","Edit Screen",3,"click"],["aria-label","Delete Screen","color","warn","mat-icon-button","","matTooltip","Delete Screen",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(l.Xb(0,"div",0),l.Xb(1,"div",1),l.Xb(2,"h3"),l.Cc(3,"Screens"),l.Wb(),l.Xb(4,"table",2),l.Vb(5,3),l.Ac(6,u,2,0,"th",4),l.Ac(7,h,7,0,"td",5),l.Ub(),l.Vb(8,6),l.Ac(9,g,2,0,"th",4),l.Ac(10,f,2,1,"td",5),l.Ub(),l.Vb(11,7),l.Ac(12,_,2,0,"th",4),l.Ac(13,v,2,1,"td",5),l.Ub(),l.Vb(14,8),l.Ac(15,C,2,0,"th",4),l.Ac(16,F,2,1,"td",5),l.Ub(),l.Vb(17,9),l.Ac(18,y,2,0,"th",4),l.Ac(19,x,2,1,"td",5),l.Ub(),l.Ac(20,X,1,0,"tr",10),l.Ac(21,D,1,0,"tr",11),l.Wb(),l.Wb(),l.Xb(22,"div",12),l.Xb(23,"button",13),l.Xb(24,"mat-icon"),l.Cc(25,"add"),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Fb(4),l.nc("dataSource",t.screens$),l.Fb(16),l.nc("matHeaderRowDef",t.displayedColumns),l.Fb(1),l.nc("matRowDefColumns",t.displayedColumns))},directives:[d.j,d.c,d.e,d.b,d.g,d.i,b.b,p.a,r.b,m.a,d.d,d.a,d.f,d.h],styles:[".wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.screens-table[_ngcontent-%COMP%]{height:390px}.fab-container[_ngcontent-%COMP%]{flex-grow:1}.md-fab-right[_ngcontent-%COMP%]{left:550px;position:relative!important;top:-15px}table[_ngcontent-%COMP%]{width:100%}"]}),Object(a.a)([Object(o.d)(s.a.getScreens)],e.prototype,"screens$",void 0),e})();var W=n("3Pt+"),w=n("Wp6s"),O=n("+rOU"),R=n("u47x"),I=n("cH1L"),T=n("8LU1"),E=n("FtGj"),A=n("XNiG"),k=n("LRne"),N=n("JX91"),j=n("1G5W");function M(e,t){1&e&&l.lc(0)}const P=["*"];let L=(()=>{class e{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.m))},e.\u0275dir=l.Mb({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),e})(),z=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.O))},e.\u0275dir=l.Mb({type:e,selectors:[["","cdkStepLabel",""]]}),e})(),Z=0;const q="edit",Y="done",V="error",G=new l.t("STEPPER_GLOBAL_OPTIONS");let B=(()=>{class e{constructor(e,t){this._stepper=e,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(e){this._editable=Object(T.c)(e)}get optional(){return this._optional}set optional(e){this._optional=Object(T.c)(e)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=Object(T.c)(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(e){this._customError=Object(T.c)(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(Object(l.W)(()=>H)),l.Rb(G,8))},e.\u0275cmp=l.Lb({type:e,selectors:[["cdk-step"]],contentQueries:function(e,t,n){if(1&e&&l.Kb(n,z,1),2&e){let e;l.pc(e=l.fc())&&(t.stepLabel=e.first)}},viewQuery:function(e,t){if(1&e&&l.Gc(l.O,3),2&e){let e;l.pc(e=l.fc())&&(t.content=e.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[l.Db],ngContentSelectors:P,decls:1,vars:0,template:function(e,t){1&e&&(l.mc(),l.Ac(0,M,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),H=(()=>{class e{constructor(e,t,n,i){this._dir=e,this._changeDetectorRef=t,this._elementRef=n,this._destroyed=new A.a,this.steps=new l.G,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.p,this._orientation="horizontal",this._groupId=Z++,this._document=i}get linear(){return this._linear}set linear(e){this._linear=Object(T.c)(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=Object(T.f)(e);if(this.steps&&this._steps){this._isValidIndex(e);const n=this.selected;n&&(n.interacted=!0),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(e)}else this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=this.steps?this.steps.toArray().indexOf(e):-1}ngAfterContentInit(){this._steps.changes.pipe(Object(N.a)(this._steps),Object(j.a)(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(e=>e._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new R.d(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(k.a)()).pipe(Object(N.a)(this._layoutDirection()),Object(j.a)(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const n=this.steps.toArray()[e],i=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,t)}_getDefaultIndicatorLogic(e,t){return e._showError&&e.hasError&&!t?V:!e.completed||t?"number":e.editable?q:Y}_getGuidelineLogic(e,t,n="number"){return e._showError&&e.hasError&&!t?V:e.completed&&!t?Y:e.completed&&t?n:e.editable&&t?q:n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=Object(E.s)(e),n=e.keyCode,i=this._keyManager;null==i.activeItemIndex||t||n!==E.n&&n!==E.f?i.onKeydown(e):(this.selectedIndex=i.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(e=>{const t=e.stepControl;return(t?t.invalid||t.pending||!e.interacted:!e.completed)&&!e.optional&&!e._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(I.b,8),l.Rb(l.i),l.Rb(l.m),l.Rb(i.d))},e.\u0275dir=l.Mb({type:e,selectors:[["","cdkStepper",""]],contentQueries:function(e,t,n){if(1&e&&(l.Kb(n,B,1),l.Kb(n,L,1)),2&e){let e;l.pc(e=l.fc())&&(t._steps=e),l.pc(e=l.fc())&&(t._stepHeader=e)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),e})(),$=(()=>{class e{constructor(e){this._stepper=e,this.type="submit"}_handleClick(){this._stepper.next()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(H))},e.\u0275dir=l.Mb({type:e,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.ec("click",function(){return t._handleClick()}),2&e&&l.ac("type",t.type)},inputs:{type:"type"}}),e})(),U=(()=>{class e{constructor(e){this._stepper=e,this.type="button"}_handleClick(){this._stepper.previous()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(H))},e.\u0275dir=l.Mb({type:e,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&l.ec("click",function(){return t._handleClick()}),2&e&&l.ac("type",t.type)},inputs:{type:"type"}}),e})(),K=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({imports:[[I.a]]}),e})();var Q=n("FKr1"),J=n("/uUt"),ee=n("R0Ic");function te(e,t){if(1&e&&l.Tb(0,8),2&e){const e=l.ic();l.nc("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function ne(e,t){if(1&e&&(l.Xb(0,"span"),l.Cc(1),l.Wb()),2&e){const e=l.ic(2);l.Fb(1),l.Dc(e._getDefaultTextForState(e.state))}}function ie(e,t){if(1&e&&(l.Xb(0,"mat-icon"),l.Cc(1),l.Wb()),2&e){const e=l.ic(2);l.Fb(1),l.Dc(e._getDefaultTextForState(e.state))}}function re(e,t){if(1&e&&(l.Vb(0,9),l.Ac(1,ne,2,1,"span",10),l.Ac(2,ie,2,1,"mat-icon",11),l.Ub()),2&e){const e=l.ic();l.nc("ngSwitch",e.state),l.Fb(1),l.nc("ngSwitchCase","number")}}function ae(e,t){if(1&e&&(l.Xb(0,"div",12),l.Tb(1,13),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.nc("ngTemplateOutlet",e._templateLabel().template)}}function oe(e,t){if(1&e&&(l.Xb(0,"div",12),l.Cc(1),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.Dc(e.label)}}function se(e,t){if(1&e&&(l.Xb(0,"div",14),l.Cc(1),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.Dc(e._intl.optionalLabel)}}function le(e,t){if(1&e&&(l.Xb(0,"div",15),l.Cc(1),l.Wb()),2&e){const e=l.ic();l.Fb(1),l.Dc(e.errorMessage)}}function ce(e,t){1&e&&l.lc(0)}const de=["*"];function be(e,t){1&e&&l.Sb(0,"div",6)}function pe(e,t){if(1&e){const e=l.Yb();l.Vb(0),l.Xb(1,"mat-step-header",4),l.ec("click",function(){return t.$implicit.select()})("keydown",function(t){return l.tc(e),l.ic()._onKeydown(t)}),l.Wb(),l.Ac(2,be,1,0,"div",5),l.Ub()}if(2&e){const e=t.$implicit,n=t.index,i=t.last,r=l.ic();l.Fb(1),l.nc("tabIndex",r._getFocusIndex()===n?0:-1)("id",r._getStepLabelId(n))("index",n)("state",r._getIndicatorType(n,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===n)("active",e.completed||r.selectedIndex===n||!r.linear)("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple)("color",e.color||r.color),l.Gb("aria-posinset",n+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(n))("aria-selected",r.selectedIndex==n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),l.Fb(1),l.nc("ngIf",!i)}}function me(e,t){if(1&e){const e=l.Yb();l.Xb(0,"div",7),l.ec("@stepTransition.done",function(t){return l.tc(e),l.ic()._animationDone.next(t)}),l.Tb(1,8),l.Wb()}if(2&e){const e=t.$implicit,n=t.index,i=l.ic();l.nc("@stepTransition",i._getAnimationDirection(n))("id",i._getStepContentId(n)),l.Gb("aria-labelledby",i._getStepLabelId(n))("aria-expanded",i.selectedIndex===n),l.Fb(1),l.nc("ngTemplateOutlet",e.content)}}let ue=(()=>{class e extends z{}return e.\u0275fac=function(t){return he(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["","matStepLabel",""]],features:[l.Cb]}),e})();const he=l.Zb(ue);let ge=(()=>{class e{constructor(){this.changes=new A.a,this.optionalLabel="Optional"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(l.Nb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const fe={provide:ge,deps:[[new l.D,new l.M,ge]],useFactory:function(e){return e||new ge}};class _e extends L{constructor(e){super(e)}}const ve=Object(Q.q)(_e,"primary");let Ce=(()=>{class e extends ve{constructor(e,t,n,i){super(n),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof ue?null:this.label}_templateLabel(){return this.label instanceof ue?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(ge),l.Rb(R.e),l.Rb(l.m),l.Rb(l.i))},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[l.Cb],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(l.Sb(0,"div",0),l.Xb(1,"div"),l.Xb(2,"div",1),l.Ac(3,te,1,2,"ng-container",2),l.Ac(4,re,3,2,"ng-container",3),l.Wb(),l.Wb(),l.Xb(5,"div",4),l.Ac(6,ae,2,1,"div",5),l.Ac(7,oe,2,1,"div",5),l.Ac(8,se,2,1,"div",6),l.Ac(9,le,2,1,"div",7),l.Wb()),2&e&&(l.nc("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),l.Fb(1),l.Ib("mat-step-icon-state-",t.state," mat-step-icon"),l.Jb("mat-step-icon-selected",t.selected),l.Fb(1),l.nc("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),l.Fb(1),l.nc("ngSwitchCase",!0),l.Fb(2),l.Jb("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),l.Fb(1),l.nc("ngIf",t._templateLabel()),l.Fb(1),l.nc("ngIf",t._stringLabel()),l.Fb(1),l.nc("ngIf",t.optional&&"error"!=t.state),l.Fb(1),l.nc("ngIf","error"==t.state))},directives:[Q.l,i.m,i.n,i.o,i.k,i.p,m.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e})();const Fe={horizontalStepTransition:Object(ee.m)("stepTransition",[Object(ee.j)("previous",Object(ee.k)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(ee.j)("current",Object(ee.k)({transform:"none",visibility:"inherit"})),Object(ee.j)("next",Object(ee.k)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(ee.l)("* => *",Object(ee.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(ee.m)("stepTransition",[Object(ee.j)("previous",Object(ee.k)({height:"0px",visibility:"hidden"})),Object(ee.j)("next",Object(ee.k)({height:"0px",visibility:"hidden"})),Object(ee.j)("current",Object(ee.k)({height:"*",visibility:"inherit"})),Object(ee.l)("* <=> current",Object(ee.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let ye=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.O))},e.\u0275dir=l.Mb({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),e})(),xe=(()=>{class e extends B{constructor(e,t,n){super(e,n),this._errorStateMatcher=t}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(Object(l.W)(()=>Xe)),l.Rb(Q.a,4),l.Rb(G,8))},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-step"]],contentQueries:function(e,t,n){if(1&e&&l.Kb(n,ue,1),2&e){let e;l.pc(e=l.fc())&&(t.stepLabel=e.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[l.Eb([{provide:Q.a,useExisting:e},{provide:B,useExisting:e}]),l.Cb],ngContentSelectors:de,decls:1,vars:0,template:function(e,t){1&e&&(l.mc(),l.Ac(0,ce,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),Xe=(()=>{class e extends H{constructor(){super(...arguments),this.steps=new l.G,this.animationDone=new l.p,this._iconOverrides={},this._animationDone=new A.a}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Object(j.a)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Object(J.a)((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Object(j.a)(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}}return e.\u0275fac=function(t){return De(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["","matStepper",""]],contentQueries:function(e,t,n){if(1&e&&(l.Kb(n,xe,1),l.Kb(n,ye,1)),2&e){let e;l.pc(e=l.fc())&&(t._steps=e),l.pc(e=l.fc())&&(t._icons=e)}},viewQuery:function(e,t){if(1&e&&l.Gc(Ce,1),2&e){let e;l.pc(e=l.fc())&&(t._stepHeader=e)}},inputs:{disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},features:[l.Eb([{provide:H,useExisting:e}]),l.Cb]}),e})();const De=l.Zb(Xe);let Se=(()=>{class e extends Xe{constructor(){super(...arguments),this.labelPosition="end"}}return e.\u0275fac=function(t){return We(t||e)},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(e,t){2&e&&l.Jb("mat-stepper-label-position-end","end"==t.labelPosition)("mat-stepper-label-position-bottom","bottom"==t.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[l.Eb([{provide:Xe,useExisting:e},{provide:H,useExisting:e}]),l.Cb],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(l.Xb(0,"div",0),l.Ac(1,pe,3,19,"ng-container",1),l.Wb(),l.Xb(2,"div",2),l.Ac(3,me,2,5,"div",3),l.Wb()),2&e&&(l.Fb(1),l.nc("ngForOf",t.steps),l.Fb(2),l.nc("ngForOf",t.steps))},directives:[i.j,Ce,i.k,i.p],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Fe.horizontalStepTransition]},changeDetection:0}),e})();const We=l.Zb(Se);let we=(()=>{class e extends ${}return e.\u0275fac=function(t){return Oe(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&l.ac("type",t.type)},inputs:{type:"type"},features:[l.Cb]}),e})();const Oe=l.Zb(we);let Re=(()=>{class e extends U{}return e.\u0275fac=function(t){return Ie(t||e)},e.\u0275dir=l.Mb({type:e,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&l.ac("type",t.type)},inputs:{type:"type"},features:[l.Cb]}),e})();const Ie=l.Zb(Re);let Te=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({providers:[fe,Q.a],imports:[[Q.e,i.c,O.e,b.c,K,m.b,Q.m],Q.e]}),e})();var Ee=n("kmnG"),Ae=n("qFsG"),ke=n("bSwM"),Ne=n("5RNC");let je=(()=>{class e{constructor(e){this.ngControl=e}set appEnableControl(e){this.ngControl&&this.ngControl.control&&(e?this.ngControl.control.enable():this.ngControl.control.disable())}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(W.i))},e.\u0275dir=l.Mb({type:e,selectors:[["","appEnableControl",""]],inputs:{appEnableControl:"appEnableControl"}}),e})();function Me(e,t){1&e&&l.Cc(0,"Enter details")}function Pe(e,t){1&e&&l.Cc(0,"RenderTarget Settings")}function Le(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"mat-form-field"),l.Sb(2,"input",16),l.Xb(3,"mat-error"),l.Cc(4,"Please enter a name"),l.Wb(),l.Wb(),l.Xb(5,"mat-form-field",17),l.Sb(6,"input",18),l.Xb(7,"mat-error"),l.Cc(8,"Please enter a valid renderTarget"),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(2),l.nc("appEnableControl",!1===e.renderTargetForm.get("is3DRendered").value),l.Fb(4),l.nc("appEnableControl",!1===e.renderTargetForm.get("is3DRendered").value)}}function ze(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Sb(3,"input",19),l.Xb(4,"mat-error"),l.Cc(5,"Please enter X Position"),l.Wb(),l.Xb(6,"mat-label"),l.Cc(7,"Position X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(8,"div"),l.Xb(9,"mat-form-field"),l.Sb(10,"input",20),l.Xb(11,"mat-error"),l.Cc(12,"Please enter Y Position"),l.Wb(),l.Xb(13,"mat-label"),l.Cc(14,"Position Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(15,"div"),l.Xb(16,"mat-form-field"),l.Sb(17,"input",21),l.Xb(18,"mat-error"),l.Cc(19,"Please enter Z Position"),l.Wb(),l.Xb(20,"mat-label"),l.Cc(21,"Position Z"),l.Wb(),l.Wb(),l.Wb(),l.Xb(22,"div"),l.Xb(23,"mat-form-field"),l.Sb(24,"input",22),l.Xb(25,"mat-error"),l.Cc(26,"Please enter X Rotation"),l.Wb(),l.Xb(27,"mat-label"),l.Cc(28,"Rotation X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(29,"div"),l.Xb(30,"mat-form-field"),l.Sb(31,"input",23),l.Xb(32,"mat-error"),l.Cc(33,"Please enter Y Rotation"),l.Wb(),l.Xb(34,"mat-label"),l.Cc(35,"Rotation Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(36,"div"),l.Xb(37,"mat-form-field"),l.Sb(38,"input",24),l.Xb(39,"mat-error"),l.Cc(40,"Please enter Z Rotation"),l.Wb(),l.Xb(41,"mat-label"),l.Cc(42,"Rotation Z"),l.Wb(),l.Wb(),l.Wb(),l.Xb(43,"div"),l.Xb(44,"mat-form-field"),l.Sb(45,"input",25),l.Xb(46,"mat-error"),l.Cc(47,"Please enter X Scale"),l.Wb(),l.Xb(48,"mat-label"),l.Cc(49,"Scale X"),l.Wb(),l.Wb(),l.Wb(),l.Xb(50,"div"),l.Xb(51,"mat-form-field"),l.Sb(52,"input",26),l.Xb(53,"mat-error"),l.Cc(54,"Please enter Y Scale"),l.Wb(),l.Xb(55,"mat-label"),l.Cc(56,"Scale Y"),l.Wb(),l.Wb(),l.Wb(),l.Xb(57,"div"),l.Xb(58,"mat-form-field"),l.Sb(59,"input",27),l.Xb(60,"mat-error"),l.Cc(61,"Please enter Z Scale"),l.Wb(),l.Xb(62,"mat-label"),l.Cc(63,"Scale Z"),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(3),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value),l.Fb(7),l.nc("appEnableControl",!0===e.renderTargetForm.get("is3DRendered").value)}}function Ze(e,t){1&e&&l.Cc(0,"Sound Settings")}function qe(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"em"),l.Cc(3,"Sound Attenuation"),l.Wb(),l.Sb(4,"mat-slider",28),l.Cc(5),l.Wb(),l.Xb(6,"div"),l.Xb(7,"em"),l.Cc(8,"Sound Min. Distance"),l.Wb(),l.Sb(9,"mat-slider",29),l.Cc(10),l.Wb(),l.Xb(11,"div"),l.Xb(12,"em"),l.Cc(13,"Sound Max. Distance"),l.Wb(),l.Sb(14,"mat-slider",30),l.Cc(15),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(4),l.nc("max",100)("min",1),l.Fb(1),l.Ec(" ",e.soundForm.get("soundAttenuation").value," "),l.Fb(4),l.nc("max",250)("min",1),l.Fb(1),l.Ec(" ",e.soundForm.get("soundMinDistance").value," "),l.Fb(4),l.nc("max",1e3)("min",1),l.Fb(1),l.Ec(" ",e.soundForm.get("soundMaxDistance").value," ")}}function Ye(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Xb(3,"mat-label"),l.Cc(4,"Model-Name"),l.Wb(),l.Sb(5,"input",10),l.Wb(),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-form-field"),l.Xb(8,"mat-label"),l.Cc(9,"RenderTarget-Name"),l.Wb(),l.Sb(10,"input",11),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(5),l.nc("appEnableControl",!1===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!1===e.screenForm.get("is3DRendered").value)}}function Ve(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-form-field"),l.Xb(3,"mat-label"),l.Cc(4,"Position X"),l.Wb(),l.Sb(5,"input",12),l.Wb(),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-form-field"),l.Xb(8,"mat-label"),l.Cc(9,"Position Y"),l.Wb(),l.Sb(10,"input",13),l.Wb(),l.Wb(),l.Xb(11,"div"),l.Xb(12,"mat-form-field"),l.Xb(13,"mat-label"),l.Cc(14,"Position Z"),l.Wb(),l.Sb(15,"input",14),l.Wb(),l.Wb(),l.Xb(16,"div"),l.Xb(17,"mat-form-field"),l.Xb(18,"mat-label"),l.Cc(19,"Rotation X"),l.Wb(),l.Sb(20,"input",15),l.Wb(),l.Wb(),l.Xb(21,"div"),l.Xb(22,"mat-form-field"),l.Xb(23,"mat-label"),l.Cc(24,"Rotation Y"),l.Wb(),l.Sb(25,"input",16),l.Wb(),l.Wb(),l.Xb(26,"div"),l.Xb(27,"mat-form-field"),l.Xb(28,"mat-label"),l.Cc(29,"Rotation Z"),l.Wb(),l.Sb(30,"input",17),l.Wb(),l.Wb(),l.Xb(31,"div"),l.Xb(32,"mat-form-field"),l.Xb(33,"mat-label"),l.Cc(34,"Scale X"),l.Wb(),l.Sb(35,"input",18),l.Wb(),l.Wb(),l.Xb(36,"div"),l.Xb(37,"mat-form-field"),l.Xb(38,"mat-label"),l.Cc(39,"Scale Y"),l.Wb(),l.Sb(40,"input",19),l.Wb(),l.Wb(),l.Xb(41,"div"),l.Xb(42,"mat-form-field"),l.Xb(43,"mat-label"),l.Cc(44,"Scale Z"),l.Wb(),l.Sb(45,"input",20),l.Wb(),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value),l.Fb(5),l.nc("appEnableControl",!0===e.screenForm.get("is3DRendered").value)}}function Ge(e,t){if(1&e&&(l.Xb(0,"div"),l.Xb(1,"div"),l.Xb(2,"mat-label"),l.Cc(3,"Sound-Attenuation"),l.Wb(),l.Sb(4,"mat-slider",21),l.Cc(5),l.Wb(),l.Xb(6,"div"),l.Xb(7,"mat-label"),l.Cc(8,"Sound Min. Distance"),l.Wb(),l.Sb(9,"mat-slider",22),l.Cc(10),l.Wb(),l.Xb(11,"div"),l.Xb(12,"mat-label"),l.Cc(13,"Sound Max. Distance"),l.Wb(),l.Sb(14,"mat-slider",23),l.Cc(15),l.Wb(),l.Wb()),2&e){const e=l.ic();l.Fb(4),l.nc("max",100)("min",0)("step",1),l.Fb(1),l.Ec(" ",e.screenForm.get("soundAttenuation").value," "),l.Fb(4),l.nc("max",200)("min",1)("step",1),l.Fb(1),l.Ec(" ",e.screenForm.get("soundMinDistance").value," "),l.Fb(4),l.nc("max",1e3)("min",1)("step",10),l.Fb(1),l.Ec(" ",e.screenForm.get("soundMaxDistance").value," ")}}const Be=[{path:"",component:S},{path:"create-new-screen",component:(()=>{class e{constructor(e,t){this.fb=e,this.nuiService=t}get screenName(){return this.screenForm.get("name").value}get modelName(){return this.renderTargetForm.get("modelName").value}get renderTargetName(){return this.renderTargetForm.get("renderTargetName").value}get is3DRendered(){return this.renderTargetForm.get("is3DRendered").value}get positionX(){return this.renderTargetForm.get("positionX").value}get positionY(){return this.renderTargetForm.get("positionY").value}get positionZ(){return this.renderTargetForm.get("positionZ").value}get rotationX(){return this.renderTargetForm.get("rotationX").value}get rotationZ(){return this.renderTargetForm.get("rotationZ").value}get rotationY(){return this.renderTargetForm.get("rotationY").value}get scaleX(){return this.renderTargetForm.get("scaleX").value}get scaleZ(){return this.renderTargetForm.get("scaleZ").value}get scaleY(){return this.renderTargetForm.get("scaleY").value}get globalVolume(){return this.soundForm.get("globalVolume").value}get soundMaxDistance(){return this.soundForm.get("soundMaxDistance").value}get soundMinDistance(){return this.soundForm.get("soundMinDistance").value}get soundAttenuation(){return this.soundForm.get("soundAttenuation").value}get is3DAudioEnabled(){return this.soundForm.get("is3DAudioEnabled").value}get alwaysOn(){return this.screenForm.get("alwaysOn").value}ngOnInit(){this.screenForm=this.fb.group({name:["",[W.q.required]],alwaysOn:[!1]}),this.renderTargetForm=this.fb.group({modelName:["",[W.q.required]],renderTargetName:["",[W.q.required]],is3DRendered:[!1],positionX:[0,[W.q.required]],positionY:[0,[W.q.required]],positionZ:[0,[W.q.required]],rotationX:[0,[W.q.required]],rotationY:[0,[W.q.required]],rotationZ:[0,[W.q.required]],scaleX:[0,[W.q.required]],scaleY:[0,[W.q.required]],scaleZ:[0,[W.q.required]]}),this.soundForm=this.fb.group({globalVolume:[100],soundAttenuation:[5],soundMinDistance:[15],soundMaxDistance:[100],is3DAudioEnabled:[!0]}),this.renderTargetForm.get("is3DRendered").valueChanges.subscribe(e=>{e?(this.renderTargetForm.get("modelName").disable(),this.renderTargetForm.get("renderTargetName").disable(),this.renderTargetForm.get("positionX").enable(),this.renderTargetForm.get("positionY").enable(),this.renderTargetForm.get("positionZ").enable(),this.renderTargetForm.get("scaleX").enable(),this.renderTargetForm.get("scaleY").enable(),this.renderTargetForm.get("scaleZ").enable(),this.renderTargetForm.get("rotationX").enable(),this.renderTargetForm.get("rotationY").enable(),this.renderTargetForm.get("rotationZ").enable()):(this.renderTargetForm.get("modelName").enable(),this.renderTargetForm.get("renderTargetName").enable(),this.renderTargetForm.get("positionX").disable(),this.renderTargetForm.get("positionY").disable(),this.renderTargetForm.get("positionZ").disable(),this.renderTargetForm.get("scaleX").disable(),this.renderTargetForm.get("scaleY").disable(),this.renderTargetForm.get("scaleZ").disable(),this.renderTargetForm.get("rotationX").disable(),this.renderTargetForm.get("rotationY").disable(),this.renderTargetForm.get("rotationZ").disable())})}createScreen(){this.nuiService.createScreen(this.screenName,this.alwaysOn,this.globalVolume,this.soundAttenuation,this.soundMinDistance,this.soundMaxDistance,this.is3DRendered,this.is3DAudioEnabled,this.modelName,this.renderTargetName,this.positionX,this.positionY,this.positionZ,this.rotationX,this.rotationY,this.rotationZ,this.scaleX,this.scaleY,this.scaleZ)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(W.c),l.Rb(c.a))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-create-new-screen"]],decls:61,vars:13,consts:[[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],["formControlName","name","matInput","","placeholder","Name","required",""],[2,"padding-bottom","5px","padding-top","20px"],["formControlName","alwaysOn","matTooltip","whether to always show the screen even if no video is playing"],["mat-button","","matStepperNext",""],["formControlName","is3DRendered"],[4,"ngIf"],["mat-button","","matStepperPrevious",""],[2,"margin-top","20px"],["formControlName","globalVolume","step","1","thumbLabel","","value","100",3,"max","min"],["formControlName","is3DAudioEnabled"],["color","primary","mat-raised-button","",3,"click"],["formControlName","modelName","matInput","","matTooltip","The name of the model to which the rendertarget belongs","placeholder","Model-Name","required","",3,"appEnableControl"],[2,"padding-left","5px"],["formControlName","renderTargetName","matInput","","placeholder","RenderTarget Name","required","",3,"appEnableControl"],["formControlName","positionX","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","positionY","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","positionZ","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","rotationX","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","rotationY","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","rotationZ","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","scaleX","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","scaleY","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","scaleZ","matInput","","required","","type","number",3,"appEnableControl"],["formControlName","soundAttenuation","step","1","thumbLabel","","value","5",3,"max","min"],["formControlName","soundMinDistance","step","1","thumbLabel","","value","10",3,"max","min"],["formControlName","soundMaxDistance","step","10","thumbLabel","","value","100",3,"max","min"]],template:function(e,t){1&e&&(l.Xb(0,"mat-card"),l.Xb(1,"mat-card-header"),l.Xb(2,"mat-card-title"),l.Cc(3,"Create Screen"),l.Wb(),l.Xb(4,"mat-card-subtitle"),l.Cc(5,"Create a new Screen which can be used to play videos on"),l.Wb(),l.Wb(),l.Xb(6,"mat-card-content"),l.Xb(7,"mat-horizontal-stepper",0,1),l.Xb(9,"mat-step",2),l.Xb(10,"form",3),l.Ac(11,Me,1,0,"ng-template",4),l.Xb(12,"mat-form-field"),l.Sb(13,"input",5),l.Xb(14,"mat-hint"),l.Cc(15,"The name is for you to better distinct between screens and "),l.Xb(16,"strong"),l.Cc(17,"must be unique!"),l.Wb(),l.Wb(),l.Xb(18,"mat-error"),l.Cc(19,"Please enter a name"),l.Wb(),l.Wb(),l.Xb(20,"div",6),l.Xb(21,"mat-checkbox",7),l.Cc(22,"Always On "),l.Wb(),l.Wb(),l.Xb(23,"div"),l.Xb(24,"button",8),l.Cc(25,"Next"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Xb(26,"mat-step",2),l.Xb(27,"form",3),l.Ac(28,Pe,1,0,"ng-template",4),l.Xb(29,"mat-checkbox",9),l.Cc(30,"Is 3D Rendered"),l.Wb(),l.Ac(31,Le,9,2,"div",10),l.Ac(32,ze,64,9,"div",10),l.Xb(33,"div"),l.Xb(34,"button",11),l.Cc(35,"Back"),l.Wb(),l.Xb(36,"button",8),l.Cc(37,"Next"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Xb(38,"mat-step",2),l.Xb(39,"form",3),l.Ac(40,Ze,1,0,"ng-template",4),l.Xb(41,"div",12),l.Xb(42,"em"),l.Cc(43,"Global Volume"),l.Wb(),l.Sb(44,"mat-slider",13),l.Cc(45),l.Wb(),l.Xb(46,"div"),l.Xb(47,"mat-checkbox",14),l.Cc(48,"Use 3D Audio"),l.Wb(),l.Sb(49,"br"),l.Xb(50,"mat-hint"),l.Xb(51,"i"),l.Cc(52,"Hint: 3D Audio may impact CPU performance!"),l.Wb(),l.Wb(),l.Sb(53,"br"),l.Sb(54,"br"),l.Wb(),l.Ac(55,qe,16,9,"div",10),l.Xb(56,"div"),l.Xb(57,"button",11),l.Cc(58,"Back"),l.Wb(),l.Xb(59,"button",15),l.ec("click",function(){return t.createScreen()}),l.Cc(60,"Submit"),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Fb(7),l.nc("linear",!0),l.Fb(2),l.nc("stepControl",t.screenForm),l.Fb(1),l.nc("formGroup",t.screenForm),l.Fb(16),l.nc("stepControl",t.renderTargetForm),l.Fb(1),l.nc("formGroup",t.renderTargetForm),l.Fb(4),l.nc("ngIf",!1===t.renderTargetForm.get("is3DRendered").value),l.Fb(1),l.nc("ngIf",!0===t.renderTargetForm.get("is3DRendered").value),l.Fb(6),l.nc("stepControl",t.soundForm),l.Fb(1),l.nc("formGroup",t.soundForm),l.Fb(5),l.nc("max",100)("min",1),l.Fb(1),l.Ec(" ",t.soundForm.get("globalVolume").value," "),l.Fb(10),l.nc("ngIf",!1===t.soundForm.get("is3DAudioEnabled").value))},directives:[w.a,w.c,w.f,w.e,w.b,Se,xe,W.r,W.k,W.e,ue,Ee.c,W.b,Ae.a,W.j,W.d,W.p,Ee.f,Ee.b,ke.a,p.a,b.b,we,i.k,Re,Ne.a,je,W.n,Ee.g],styles:[""]}),e})()},{path:"edit-screen",component:(()=>{class e{constructor(e,t){this.fb=e,this.nuiService=t,this.screenForm=this.fb.group({screenName:["",[W.q.required]],modelName:["",[W.q.required]],renderTargetName:["",[W.q.required]],soundAttenuation:[5],is3DAudioEnabled:[!1],soundMaxDistance:[100],soundMinDistance:[10],globalVolume:[100],alwaysOn:[!1],is3DRendered:[!1],positionX:[0],positionY:[0],positionZ:[0],rotationX:[0],rotationY:[0],rotationZ:[0],scaleX:[0],scaleY:[0],scaleZ:[0]})}ngOnInit(){this.screen.subscribe(e=>{e&&(this.screenId=e.id,this.screenForm.patchValue({screenName:e.name,modelName:e.is3DRendered?"":e.targetSettings.modelName,renderTargetName:e.is3DRendered?"":e.targetSettings.renderTargetName,soundAttenuation:e.browserSettings.soundAttenuation,soundMinDistance:e.browserSettings.soundMinDistance,soundMaxDistance:e.browserSettings.soundMaxDistance,globalVolume:e.browserSettings.globalVolume,alwaysOn:e.alwaysOn,is3DRendered:e.is3DRendered,positionX:e.is3DRendered?e.positionalSettings.positionX:0,positionY:e.is3DRendered?e.positionalSettings.positionY:0,positionZ:e.is3DRendered?e.positionalSettings.positionZ:0,rotationX:e.is3DRendered?e.positionalSettings.rotationX:0,rotationY:e.is3DRendered?e.positionalSettings.rotationY:0,rotationZ:e.is3DRendered?e.positionalSettings.rotationZ:0,scaleX:e.is3DRendered?e.positionalSettings.scaleX:0,scaleY:e.is3DRendered?e.positionalSettings.scaleY:0,scaleZ:e.is3DRendered?e.positionalSettings.scaleZ:0,is3DAudioEnabled:e.browserSettings.is3DAudioEnabled}))}),this.screenForm.get("is3DRendered").valueChanges.subscribe(e=>{e?(this.screenForm.get("renderTargetName").disable(),this.screenForm.get("modelName").disable(),this.screenForm.get("positionX").enable(),this.screenForm.get("positionY").enable(),this.screenForm.get("positionZ").enable(),this.screenForm.get("rotationX").enable(),this.screenForm.get("rotationY").enable(),this.screenForm.get("rotationZ").enable(),this.screenForm.get("scaleX").enable(),this.screenForm.get("scaleY").enable(),this.screenForm.get("scaleZ").enable()):(this.screenForm.get("renderTargetName").enable(),this.screenForm.get("modelName").enable(),this.screenForm.get("positionX").disable(),this.screenForm.get("positionY").disable(),this.screenForm.get("positionZ").disable(),this.screenForm.get("rotationX").disable(),this.screenForm.get("rotationY").disable(),this.screenForm.get("rotationZ").disable(),this.screenForm.get("scaleX").disable(),this.screenForm.get("scaleY").disable(),this.screenForm.get("scaleZ").disable())})}submit(){this.nuiService.editScreen(this.screenForm.get("screenName").value,this.screenId,this.screenForm.get("is3DRendered").value,this.screenForm.get("alwaysOn").value,this.screenForm.get("modelName").value,this.screenForm.get("renderTargetName").value,this.screenForm.get("globalVolume").value,this.screenForm.get("soundAttenuation").value,this.screenForm.get("soundMinDistance").value,this.screenForm.get("soundMaxDistance").value,this.screenForm.get("positionX").value,this.screenForm.get("positionY").value,this.screenForm.get("positionZ").value,this.screenForm.get("rotationX").value,this.screenForm.get("rotationY").value,this.screenForm.get("rotationZ").value,this.screenForm.get("scaleX").value,this.screenForm.get("scaleY").value,this.screenForm.get("scaleZ").value,this.screenForm.get("is3DAudioEnabled").value)}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(W.c),l.Rb(c.a))},e.\u0275cmp=l.Lb({type:e,selectors:[["app-edit-screen"]],decls:37,vars:8,consts:[[2,"display","flex"],[1,"form-container"],[3,"formGroup"],["formControlName","screenName","matInput","","name","screenName","required",""],["formControlName","alwaysOn"],["formControlName","is3DRendered",2,"margin-left","10px"],[4,"ngIf"],["formControlName","globalVolume","thumbLabel","",3,"max","min","step"],["formControlName","is3DAudioEnabled",2,"margin-left","10px"],["color","accent","mat-raised-button","","type","submit",2,"display","flex","margin-top","-10px","float","right","margin-right","-70px",3,"click"],["formControlName","modelName","matInput","","name","modelName","required","",3,"appEnableControl"],["formControlName","renderTargetName","matInput","","name","renderTargetName","required","",3,"appEnableControl"],["formControlName","positionX","matInput","","name","positionX","required","","type","number",3,"appEnableControl"],["formControlName","positionY","matInput","","name","positionY","required","","type","number",3,"appEnableControl"],["formControlName","positionZ","matInput","","name","positionZ","required","","type","number",3,"appEnableControl"],["formControlName","rotationX","matInput","","name","rotationX","required","","type","number",3,"appEnableControl"],["formControlName","rotationY","matInput","","name","rotationY","required","","type","number",3,"appEnableControl"],["formControlName","rotationZ","matInput","","name","rotationZ","required","","type","number",3,"appEnableControl"],["formControlName","scaleX","matInput","","name","scaleX","required","","type","number",3,"appEnableControl"],["formControlName","scaleY","matInput","","name","scaleY","required","","type","number",3,"appEnableControl"],["formControlName","scaleZ","matInput","","name","scaleZ","required","","type","number",3,"appEnableControl"],["formControlName","soundAttenuation","thumbLabel","",3,"max","min","step"],["formControlName","soundMinDistance","thumbLabel","",3,"max","min","step"],["formControlName","soundMaxDistance","thumbLabel","",3,"max","min","step"]],template:function(e,t){1&e&&(l.Xb(0,"mat-card",0),l.Xb(1,"mat-card-header"),l.Xb(2,"mat-card-title"),l.Cc(3,"Edit Screen"),l.Wb(),l.Wb(),l.Xb(4,"mat-card-content"),l.Xb(5,"div",1),l.Xb(6,"form",2),l.Xb(7,"div"),l.Xb(8,"mat-form-field"),l.Xb(9,"mat-label"),l.Cc(10,"Name"),l.Wb(),l.Sb(11,"input",3),l.Wb(),l.Wb(),l.Xb(12,"div"),l.Xb(13,"mat-checkbox",4),l.Cc(14,"Always On"),l.Wb(),l.Xb(15,"mat-checkbox",5),l.Cc(16,"3D Rendered"),l.Wb(),l.Wb(),l.Ac(17,Ye,11,2,"div",6),l.Ac(18,Ve,46,9,"div",6),l.Xb(19,"div"),l.Xb(20,"mat-label"),l.Cc(21,"Global Volume"),l.Wb(),l.Sb(22,"mat-slider",7),l.Cc(23),l.Wb(),l.Xb(24,"div"),l.Xb(25,"mat-checkbox",8),l.Cc(26,"Enable 3D Audio"),l.Wb(),l.Sb(27,"br"),l.Xb(28,"mat-hint"),l.Xb(29,"i"),l.Cc(30,"Hint: 3D Audio may impact CPU performance!"),l.Wb(),l.Wb(),l.Sb(31,"br"),l.Sb(32,"br"),l.Wb(),l.Ac(33,Ge,16,12,"div",6),l.Sb(34,"div"),l.Xb(35,"button",9),l.ec("click",function(){return t.submit()}),l.Cc(36,"Submit "),l.Wb(),l.Wb(),l.Wb(),l.Wb(),l.Wb()),2&e&&(l.Fb(6),l.nc("formGroup",t.screenForm),l.Fb(11),l.nc("ngIf",!1===t.screenForm.get("is3DRendered").value),l.Fb(1),l.nc("ngIf",!0===t.screenForm.get("is3DRendered").value),l.Fb(4),l.nc("max",100)("min",1)("step",1),l.Fb(1),l.Ec(" ",t.screenForm.get("globalVolume").value," "),l.Fb(10),l.nc("ngIf",!1===t.screenForm.get("is3DAudioEnabled").value))},directives:[w.a,w.c,w.f,w.b,W.r,W.k,W.e,Ee.c,Ee.g,W.b,Ae.a,W.j,W.d,W.p,ke.a,i.k,Ne.a,Ee.f,b.b,je,W.n],styles:[".form-container[_ngcontent-%COMP%]{max-height:380px}"]}),Object(a.a)([Object(o.d)(s.a.getSelectedScreen)],e.prototype,"screen",void 0),e})()}];let He=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({imports:[[r.d.forChild(Be)],r.d]}),e})();var $e=n("rDax"),Ue=n("NXyV"),Ke=n("pLZG"),Qe=n("IzEk");function Je(e,t){}class et{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const tt={dialogContainer:Object(ee.m)("dialogContainer",[Object(ee.j)("void, exit",Object(ee.k)({opacity:0,transform:"scale(0.7)"})),Object(ee.j)("enter",Object(ee.k)({transform:"none"})),Object(ee.l)("* => enter",Object(ee.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(ee.k)({transform:"none",opacity:1}))),Object(ee.l)("* => void, * => exit",Object(ee.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(ee.k)({opacity:0})))])};let nt=(()=>{class e extends O.a{constructor(e,t,n,i,r,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=n,this._config=r,this._focusMonitor=a,this._animationStateChanged=new l.p,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=e=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(e)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}_getActiveElement(){var e;const t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}return e.\u0275fac=function(t){return new(t||e)(l.Rb(l.m),l.Rb(R.f),l.Rb(l.i),l.Rb(i.d,8),l.Rb(et),l.Rb(R.e))},e.\u0275dir=l.Mb({type:e,viewQuery:function(e,t){if(1&e&&l.Gc(O.b,3),2&e){let e;l.pc(e=l.fc())&&(t._portalOutlet=e.first)}},features:[l.Cb]}),e})(),it=(()=>{class e extends nt{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return e.\u0275fac=function(t){return rt(t||e)},e.\u0275cmp=l.Lb({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&l.yc("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(l.ac("id",t._id),l.Gb("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),l.zc("@dialogContainer",t._state))},features:[l.Cb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&l.Ac(0,Je,0,0,"ng-template",0)},directives:[O.b],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[tt.dialogContainer]}}),e})();const rt=l.Zb(it);let at=0;class ot{constructor(e,t,n="mat-dialog-"+at++){this._overlayRef=e,this._containerInstance=t,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A.a,this._afterClosed=new A.a,this._beforeClosed=new A.a,this._state=0,t._id=n,t._animationStateChanged.pipe(Object(Ke.a)(e=>"opened"===e.state),Object(Qe.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(Object(Ke.a)(e=>"closed"===e.state),Object(Qe.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(Object(Ke.a)(e=>e.keyCode===E.g&&!this.disableClose&&!Object(E.s)(e))).subscribe(e=>{e.preventDefault(),st(this,"keyboard")}),e.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():st(this,"mouse")})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Object(Ke.a)(e=>"closing"===e.state),Object(Qe.a)(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function st(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}const lt=new l.t("MatDialogData"),ct=new l.t("mat-dialog-default-options"),dt=new l.t("mat-dialog-scroll-strategy"),bt={provide:dt,deps:[$e.c],useFactory:function(e){return()=>e.scrollStrategies.block()}};let pt=(()=>{class e{constructor(e,t,n,i,r,a,o,s,l){this._overlay=e,this._injector=t,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=s,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A.a,this._afterOpenedAtThisLevel=new A.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(Ue.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(N.a)(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new et)).id&&this.getDialogById(t.id);const n=this._createOverlay(t),i=this._attachDialogContainer(n,t),r=this._attachDialogContent(e,i,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),i._initializeWithAttachedContent(),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new $e.d({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const n=l.u.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:et,useValue:t}]}),i=new O.c(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,n,i){const r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof l.O)t.attachTemplatePortal(new O.f(e,null,{$implicit:i.data,dialogRef:r}));else{const n=this._createInjector(i,r,t),a=t.attachComponentPortal(new O.c(e,i.viewContainerRef,n));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}_createInjector(e,t,n){const i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(I.b,null)||r.push({provide:I.b,useValue:{value:e.direction,change:Object(k.a)()}}),l.u.create({parent:i||this._injector,providers:r})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return e.\u0275fac=function(t){return new(t||e)(l.Rb($e.c),l.Rb(l.u),l.Rb(void 0),l.Rb(void 0),l.Rb($e.e),l.Rb(void 0),l.Rb(l.Q),l.Rb(l.Q),l.Rb(l.t))},e.\u0275dir=l.Mb({type:e}),e})(),mt=(()=>{class e extends pt{constructor(e,t,n,i,r,a,o){super(e,t,i,a,o,r,ot,it,lt)}}return e.\u0275fac=function(t){return new(t||e)(l.bc($e.c),l.bc(l.u),l.bc(i.g,8),l.bc(ct,8),l.bc(dt),l.bc(e,12),l.bc($e.e))},e.\u0275prov=l.Nb({token:e,factory:e.\u0275fac}),e})(),ut=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({providers:[mt,bt],imports:[[$e.f,O.e,Q.e],Q.e]}),e})();var ht=n("d3UM"),gt=n("hh/h");let ft=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=l.Pb({type:e}),e.\u0275inj=l.Ob({imports:[[i.c,He,m.b,b.c,d.k,ut,w.d,W.o,Ee.e,ht.b,Te,Ae.b,Ne.b,ke.b,W.f,p.b,gt.QuickPlayModule]]}),e})()}}]);