From 91a868e2dc6748ff3eab28f4325b263823a43218 Mon Sep 17 00:00:00 2001 From: guiseek Date: Sat, 21 Dec 2024 11:11:44 +0000 Subject: [PATCH] deploy: 15bc6847e01f8b16193ff4a9522e2e9eff2e970a --- chunk-WBTUXFAS.js => chunk-2GNIBV4J.js | 2 +- chunk-2K6IALUF.js | 4 - chunk-2XST3EDK.js | 1 + chunk-2ZKKJKGI.js | 1 - chunk-3F647OO5.js | 1 + chunk-3I45H2NO.js | 1 - chunk-3OW34LBR.js | 1 + chunk-3QZQQ6F4.js | 1 - chunk-4FWBEGAE.js | 4 - chunk-YJNMZPRM.js => chunk-4JU575PW.js | 2 +- chunk-4Z5R5VSG.js | 1 + chunk-VE4FGS76.js => chunk-56M6HFOE.js | 2 +- chunk-4Y7TZHD4.js => chunk-5BAEVBCP.js | 2 +- chunk-6BGAZ7SQ.js | 1 + chunk-CAHCLBUG.js => chunk-6GR4MAJE.js | 2 +- chunk-MWZTEPOQ.js => chunk-6P3MPDKA.js | 2 +- chunk-73QBZNVE.js | 1 + chunk-LBSELHKL.js => chunk-7O2H2TAM.js | 2 +- chunk-AAJZ7MIE.js | 1 - chunk-AND6K73U.js | 4 + chunk-BLJCB4Q7.js | 1 + chunk-5FQQWOZL.js => chunk-BZ5BKAFD.js | 2 +- chunk-C6ZO3Z7T.js | 1 - chunk-DAURILCW.js | 1 + chunk-DLV4PZL6.js | 1 - chunk-F2BR4OZZ.js | 1 + chunk-F6THDKE2.js | 1 + chunk-HPJEYRZM.js => chunk-FROUXDRM.js | 2 +- chunk-F2GYQZHU.js => chunk-FVH3EPWM.js | 2 +- chunk-LVUYG7JQ.js => chunk-GXQHMTZK.js | 2 +- chunk-WRHYPK6F.js => chunk-HRSGZXOU.js | 2 +- chunk-HTP655AM.js | 1 - chunk-IUDTHKAB.js | 1 - chunk-IZTWYWJL.js | 1 - chunk-3H7JVFAU.js => chunk-JALA4ZS3.js | 2 +- chunk-JCCZXGKN.js | 7 - chunk-CXAKQAL3.js => chunk-JMI5D6U5.js | 2 +- chunk-WVZCQXYK.js => chunk-JNB3NYAZ.js | 2 +- chunk-JX4IWPKV.js | 1 - chunk-K4DUSKBE.js | 1 + chunk-KAZRQD4G.js | 1 - chunk-KDMTRYHW.js | 1 + chunk-KXTQ2UTD.js | 1 - chunk-5FZSI2PL.js => chunk-L2JQY5SP.js | 2 +- chunk-L3M72EYY.js | 1 - chunk-M5BYPXOP.js | 1 + chunk-MAALDF7A.js => chunk-MEIYYXQK.js | 2 +- chunk-RN3MKDGP.js => chunk-MYMD7E64.js | 4 +- chunk-MZVM2UVI.js | 1 + chunk-JWVJB74K.js => chunk-NAMLT62R.js | 2 +- chunk-NWAJWWA3.js | 1 - chunk-O3T3UZHL.js | 3 + chunk-P6FJ2MEG.js | 1 + chunk-PF4AEVA5.js | 1 - chunk-PTGCXAXO.js | 1 - chunk-XC6WES62.js => chunk-Q2N7RZTH.js | 2 +- chunk-AD4TXQD3.js => chunk-Q33OVU5J.js | 2 +- chunk-R66KDUEB.js | 1 - chunk-RGIFAF2T.js | 1 + chunk-RUSPURVH.js | 1 - chunk-SG4GQJJH.js | 1 + chunk-PVFLBKFE.js => chunk-SVV7FRLS.js | 2 +- chunk-SZNPDBBQ.js | 1 + chunk-TH4T4IGP.js | 1 - chunk-TZR6QHL3.js => chunk-TPJZ2OYR.js | 2 +- chunk-TQRFHWEI.js | 1 + chunk-UH3UXNJ6.js | 1 + chunk-UQM5ZHMX.js | 1 - chunk-V6KASOE3.js | 1 + chunk-3SNV2MVI.js => chunk-VAO4SSMZ.js | 2 +- chunk-VHE4TYFV.js | 5 + chunk-LFAX4DK3.js => chunk-VVQ6JEVH.js | 2 +- chunk-VWDLBNLC.js | 1 - chunk-VYHC3V3G.js | 1 - chunk-AC7KYN3P.js => chunk-WD4JQH2Z.js | 2 +- chunk-RRBYVHNZ.js => chunk-WKFJTKSD.js | 2 +- chunk-HYAMKYUE.js => chunk-WOE5TNBB.js | 2 +- chunk-66MLPMX6.js => chunk-WPU27ID5.js | 2 +- chunk-XWYI7Y6E.js | 1 + chunk-XYJHVZQT.js | 4 + chunk-YAOAPCED.js | 1 - chunk-FB5UBQJ4.js => chunk-YDU3JYTF.js | 2 +- chunk-2E7FYHXW.js => chunk-YFMYPYPE.js | 2 +- chunk-KOL7ATC4.js => chunk-YGTSZDQ5.js | 2 +- chunk-6STDPPRP.js => chunk-ZTJS4K5V.js | 2 +- chunk-5DAHKZ7F.js => chunk-ZTWYID37.js | 2 +- chunk-MGSOU4BE.js => chunk-ZUTFRYJ3.js | 2 +- index.html | 2 +- main-I2XGNJXV.js | 5 + main-VFVBEY5F.js | 5 - ngsw.json | 252 ++++++++++++------------- 91 files changed, 206 insertions(+), 206 deletions(-) rename chunk-WBTUXFAS.js => chunk-2GNIBV4J.js (97%) delete mode 100644 chunk-2K6IALUF.js create mode 100644 chunk-2XST3EDK.js delete mode 100644 chunk-2ZKKJKGI.js create mode 100644 chunk-3F647OO5.js delete mode 100644 chunk-3I45H2NO.js create mode 100644 chunk-3OW34LBR.js delete mode 100644 chunk-3QZQQ6F4.js delete mode 100644 chunk-4FWBEGAE.js rename chunk-YJNMZPRM.js => chunk-4JU575PW.js (96%) create mode 100644 chunk-4Z5R5VSG.js rename chunk-VE4FGS76.js => chunk-56M6HFOE.js (83%) rename chunk-4Y7TZHD4.js => chunk-5BAEVBCP.js (92%) create mode 100644 chunk-6BGAZ7SQ.js rename chunk-CAHCLBUG.js => chunk-6GR4MAJE.js (96%) rename chunk-MWZTEPOQ.js => chunk-6P3MPDKA.js (98%) create mode 100644 chunk-73QBZNVE.js rename chunk-LBSELHKL.js => chunk-7O2H2TAM.js (99%) delete mode 100644 chunk-AAJZ7MIE.js create mode 100644 chunk-AND6K73U.js create mode 100644 chunk-BLJCB4Q7.js rename chunk-5FQQWOZL.js => chunk-BZ5BKAFD.js (90%) delete mode 100644 chunk-C6ZO3Z7T.js create mode 100644 chunk-DAURILCW.js delete mode 100644 chunk-DLV4PZL6.js create mode 100644 chunk-F2BR4OZZ.js create mode 100644 chunk-F6THDKE2.js rename chunk-HPJEYRZM.js => chunk-FROUXDRM.js (99%) rename chunk-F2GYQZHU.js => chunk-FVH3EPWM.js (87%) rename chunk-LVUYG7JQ.js => chunk-GXQHMTZK.js (96%) rename chunk-WRHYPK6F.js => chunk-HRSGZXOU.js (96%) delete mode 100644 chunk-HTP655AM.js delete mode 100644 chunk-IUDTHKAB.js delete mode 100644 chunk-IZTWYWJL.js rename chunk-3H7JVFAU.js => chunk-JALA4ZS3.js (93%) delete mode 100644 chunk-JCCZXGKN.js rename chunk-CXAKQAL3.js => chunk-JMI5D6U5.js (92%) rename chunk-WVZCQXYK.js => chunk-JNB3NYAZ.js (96%) delete mode 100644 chunk-JX4IWPKV.js create mode 100644 chunk-K4DUSKBE.js delete mode 100644 chunk-KAZRQD4G.js create mode 100644 chunk-KDMTRYHW.js delete mode 100644 chunk-KXTQ2UTD.js rename chunk-5FZSI2PL.js => chunk-L2JQY5SP.js (98%) delete mode 100644 chunk-L3M72EYY.js create mode 100644 chunk-M5BYPXOP.js rename chunk-MAALDF7A.js => chunk-MEIYYXQK.js (88%) rename chunk-RN3MKDGP.js => chunk-MYMD7E64.js (95%) create mode 100644 chunk-MZVM2UVI.js rename chunk-JWVJB74K.js => chunk-NAMLT62R.js (93%) delete mode 100644 chunk-NWAJWWA3.js create mode 100644 chunk-O3T3UZHL.js create mode 100644 chunk-P6FJ2MEG.js delete mode 100644 chunk-PF4AEVA5.js delete mode 100644 chunk-PTGCXAXO.js rename chunk-XC6WES62.js => chunk-Q2N7RZTH.js (99%) rename chunk-AD4TXQD3.js => chunk-Q33OVU5J.js (70%) delete mode 100644 chunk-R66KDUEB.js create mode 100644 chunk-RGIFAF2T.js delete mode 100644 chunk-RUSPURVH.js create mode 100644 chunk-SG4GQJJH.js rename chunk-PVFLBKFE.js => chunk-SVV7FRLS.js (95%) create mode 100644 chunk-SZNPDBBQ.js delete mode 100644 chunk-TH4T4IGP.js rename chunk-TZR6QHL3.js => chunk-TPJZ2OYR.js (99%) create mode 100644 chunk-TQRFHWEI.js create mode 100644 chunk-UH3UXNJ6.js delete mode 100644 chunk-UQM5ZHMX.js create mode 100644 chunk-V6KASOE3.js rename chunk-3SNV2MVI.js => chunk-VAO4SSMZ.js (88%) create mode 100644 chunk-VHE4TYFV.js rename chunk-LFAX4DK3.js => chunk-VVQ6JEVH.js (99%) delete mode 100644 chunk-VWDLBNLC.js delete mode 100644 chunk-VYHC3V3G.js rename chunk-AC7KYN3P.js => chunk-WD4JQH2Z.js (95%) rename chunk-RRBYVHNZ.js => chunk-WKFJTKSD.js (93%) rename chunk-HYAMKYUE.js => chunk-WOE5TNBB.js (98%) rename chunk-66MLPMX6.js => chunk-WPU27ID5.js (99%) create mode 100644 chunk-XWYI7Y6E.js create mode 100644 chunk-XYJHVZQT.js delete mode 100644 chunk-YAOAPCED.js rename chunk-FB5UBQJ4.js => chunk-YDU3JYTF.js (98%) rename chunk-2E7FYHXW.js => chunk-YFMYPYPE.js (99%) rename chunk-KOL7ATC4.js => chunk-YGTSZDQ5.js (97%) rename chunk-6STDPPRP.js => chunk-ZTJS4K5V.js (81%) rename chunk-5DAHKZ7F.js => chunk-ZTWYID37.js (99%) rename chunk-MGSOU4BE.js => chunk-ZUTFRYJ3.js (68%) create mode 100644 main-I2XGNJXV.js delete mode 100644 main-VFVBEY5F.js diff --git a/chunk-WBTUXFAS.js b/chunk-2GNIBV4J.js similarity index 97% rename from chunk-WBTUXFAS.js rename to chunk-2GNIBV4J.js index 95d381e3..1f43f29b 100644 --- a/chunk-WBTUXFAS.js +++ b/chunk-2GNIBV4J.js @@ -1 +1 @@ -import{A as J,a as O,b,c as l,d as C,f as n,u as U}from"./chunk-4FWBEGAE.js";import{F as g,L as u,ba as f}from"./chunk-TEKHUYWQ.js";var t=class extends O{};var i=class{jobOpeningService;constructor(e){this.jobOpeningService=e}execute(e){return this.jobOpeningService.create(e)}};var p=class{jobOpeningService;constructor(e){this.jobOpeningService=e}execute(e){return this.jobOpeningService.delete(e)}};var s=class{jobOpeningService;constructor(e){this.jobOpeningService=e}execute(e){return this.jobOpeningService.findOne(e)}};var c=class{jobOpeningService;constructor(e){this.jobOpeningService=e}execute(e){return this.jobOpeningService.find(e)}};var a=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.update(e.id,e)}};var m=class extends J{createJobOpeningUseCase;findJobOpeningsUseCase;findJobOpeningByIDUseCase;updateJobOpeningUseCase;deleteJobOpeningUseCase;constructor(e,o,d,x,D){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{title:"",mode:"",contract:"",experience:""}},selected:null}),this.createJobOpeningUseCase=e,this.findJobOpeningsUseCase=o,this.findJobOpeningByIDUseCase=d,this.updateJobOpeningUseCase=x,this.deleteJobOpeningUseCase=D}load(){this.onLoad(this.findJobOpeningsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findJobOpeningByIDUseCase.execute(e))}create(e){let o=this.createJobOpeningUseCase.execute(e),d=x=>this.setState({selected:x});return this.onCreate(o.pipe(f(d))),o.pipe(u(1))}update(e){let o=this.updateJobOpeningUseCase.execute(e),d=x=>this.setState({selected:x});return this.onUpdate(o.pipe(f(d))),o.pipe(u(1))}delete(e){this.onDelete(this.deleteJobOpeningUseCase.execute(e))}};function h(){return C(m,[i,c,s,a,p])}function S(){return[h()]}var v=class extends U{};function j(){return{provide:t,useFactory(r,e){return new v(r,e,"job-openings")},deps:[l,b]}}function F(){return[j()]}function B(){return n(i,[t])}function k(){return n(c,[t])}function E(){return n(s,[t])}function H(){return n(a,[t])}function I(){return n(p,[t])}function y(){return[B(),k(),E(),H(),I()]}function Ee(){return[...F(),...y(),...S()]}var Le=(r,e)=>(r.loadOne(e.id),r.selected$.pipe(g(o=>!!o)));export{m as a,Ee as b,Le as c}; +import{A as J,a as O,b,c as l,d as C,f as n,u as U}from"./chunk-XYJHVZQT.js";import{F as g,L as u,ba as f}from"./chunk-TEKHUYWQ.js";var t=class extends O{};var i=class{jobOpeningService;constructor(e){this.jobOpeningService=e}execute(e){return this.jobOpeningService.create(e)}};var p=class{jobOpeningService;constructor(e){this.jobOpeningService=e}execute(e){return this.jobOpeningService.delete(e)}};var s=class{jobOpeningService;constructor(e){this.jobOpeningService=e}execute(e){return this.jobOpeningService.findOne(e)}};var c=class{jobOpeningService;constructor(e){this.jobOpeningService=e}execute(e){return this.jobOpeningService.find(e)}};var a=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.update(e.id,e)}};var m=class extends J{createJobOpeningUseCase;findJobOpeningsUseCase;findJobOpeningByIDUseCase;updateJobOpeningUseCase;deleteJobOpeningUseCase;constructor(e,o,d,x,D){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{title:"",mode:"",contract:"",experience:""}},selected:null}),this.createJobOpeningUseCase=e,this.findJobOpeningsUseCase=o,this.findJobOpeningByIDUseCase=d,this.updateJobOpeningUseCase=x,this.deleteJobOpeningUseCase=D}load(){this.onLoad(this.findJobOpeningsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findJobOpeningByIDUseCase.execute(e))}create(e){let o=this.createJobOpeningUseCase.execute(e),d=x=>this.setState({selected:x});return this.onCreate(o.pipe(f(d))),o.pipe(u(1))}update(e){let o=this.updateJobOpeningUseCase.execute(e),d=x=>this.setState({selected:x});return this.onUpdate(o.pipe(f(d))),o.pipe(u(1))}delete(e){this.onDelete(this.deleteJobOpeningUseCase.execute(e))}};function h(){return C(m,[i,c,s,a,p])}function S(){return[h()]}var v=class extends U{};function j(){return{provide:t,useFactory(r,e){return new v(r,e,"job-openings")},deps:[l,b]}}function F(){return[j()]}function B(){return n(i,[t])}function k(){return n(c,[t])}function E(){return n(s,[t])}function H(){return n(a,[t])}function I(){return n(p,[t])}function y(){return[B(),k(),E(),H(),I()]}function Ee(){return[...F(),...y(),...S()]}var Le=(r,e)=>(r.loadOne(e.id),r.selected$.pipe(g(o=>!!o)));export{m as a,Ee as b,Le as c}; diff --git a/chunk-2K6IALUF.js b/chunk-2K6IALUF.js deleted file mode 100644 index 068d6ada..00000000 --- a/chunk-2K6IALUF.js +++ /dev/null @@ -1,4 +0,0 @@ -import{c as he,d as xe,g as q,h as be,j as _e}from"./chunk-I7VYXJU2.js";import{A as ye,T,U as Fe,Y as Q,f as ve,t as ge}from"./chunk-W5KNOAKV.js";import{$ as E,Aa as te,D as V,F as R,Fa as C,Fc as O,Ib as re,Ja as M,Nb as u,Nc as fe,Pa as ie,Sb as k,Sc as ue,T as G,Tb as v,Ua as oe,Vb as y,X as $,Xc as B,Yb as p,Z,bc as c,cc as m,dc as F,e as j,ea as Y,fa as X,g as W,ha as g,hc as de,ic as P,ie as pe,j as L,ka as d,kc as ae,lb as a,mc as b,nc as I,oc as h,pc as z,qc as x,rc as s,sc as f,t as U,ta as K,tc as ne,ua as J,ub as A,vb as le,vc as ce,wb as _,wc as N,xc as me,yc as se,za as ee}from"./chunk-TEKHUYWQ.js";var H=class{_box;_destroyed=new L;_resizeSubject=new L;_resizeObserver;_elementObservables=new Map;constructor(r){this._box=r,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(r){return this._elementObservables.has(r)||this._elementObservables.set(r,new W(e=>{let o=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(r,{box:this._box}),()=>{this._resizeObserver?.unobserve(r),o.unsubscribe(),this._elementObservables.delete(r)}}).pipe(R(e=>e.some(o=>o.target===r)),$({bufferSize:1,refCount:!0}),E(this._destroyed))),this._elementObservables.get(r)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},we=(()=>{class t{_observers=new Map;_ngZone=d(C);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,o){let i=o?.box||"content-box";return this._observers.has(i)||this._observers.set(i,new H(i)),this._observers.get(i).observe(e)}static \u0275fac=function(o){return new(o||t)};static \u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var He=["notch"],je=["matFormFieldNotchedOutline",""],We=["*"],Ue=["textField"],Ve=["iconPrefixContainer"],Ge=["textPrefixContainer"],$e=["iconSuffixContainer"],Ze=["textSuffixContainer"],Ye=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Xe=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Ke(t,r){t&1&&F(0,"span",21)}function Je(t,r){if(t&1&&(c(0,"label",20),h(1,1),u(2,Ke,1,0,"span",21),m()),t&2){let e=b(2);v("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),k("for",e._control.disableAutomaticLabeling?null:e._control.id),a(2),p(!e.hideRequiredMarker&&e._control.required?2:-1)}}function et(t,r){if(t&1&&u(0,Je,3,5,"label",20),t&2){let e=b();p(e._hasFloatingLabel()?0:-1)}}function tt(t,r){t&1&&F(0,"div",7)}function it(t,r){}function ot(t,r){if(t&1&&u(0,it,0,0,"ng-template",13),t&2){b(2);let e=N(1);v("ngTemplateOutlet",e)}}function lt(t,r){if(t&1&&(c(0,"div",9),u(1,ot,1,1,null,13),m()),t&2){let e=b();v("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),a(),p(e._forceDisplayInfixLabel()?-1:1)}}function rt(t,r){t&1&&(c(0,"div",10,2),h(2,2),m())}function dt(t,r){t&1&&(c(0,"div",11,3),h(2,3),m())}function at(t,r){}function nt(t,r){if(t&1&&u(0,at,0,0,"ng-template",13),t&2){b();let e=N(1);v("ngTemplateOutlet",e)}}function ct(t,r){t&1&&(c(0,"div",14,4),h(2,4),m())}function mt(t,r){t&1&&(c(0,"div",15,5),h(2,5),m())}function st(t,r){t&1&&F(0,"div",16)}function ft(t,r){if(t&1&&(c(0,"div",18),h(1,6),m()),t&2){let e=b();v("@transitionMessages",e._subscriptAnimationState)}}function ut(t,r){if(t&1&&(c(0,"mat-hint",22),me(1),m()),t&2){let e=b(2);v("id",e._hintLabelId),a(),se(e.hintLabel)}}function pt(t,r){if(t&1&&(c(0,"div",19),u(1,ut,2,2,"mat-hint",22),h(2,7),F(3,"div",23),h(4,8),m()),t&2){let e=b();v("@transitionMessages",e._subscriptAnimationState),a(),p(e.hintLabel?1:-1)}}var Ce=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275dir=_({type:t,selectors:[["mat-label"]]})}return t})(),Te=new g("MatError"),Yt=(()=>{class t{id=d(T).getId("mat-mdc-error-");constructor(){d(new te("aria-live"),{optional:!0})||d(M).nativeElement.setAttribute("aria-live","polite")}static \u0275fac=function(o){return new(o||t)};static \u0275dir=_({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(o,i){o&2&&P("id",i.id)},inputs:{id:"id"},features:[O([{provide:Te,useExisting:t}])]})}return t})(),Me=(()=>{class t{align="start";id=d(T).getId("mat-mdc-hint-");static \u0275fac=function(o){return new(o||t)};static \u0275dir=_({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(o,i){o&2&&(P("id",i.id),k("align",null),y("mat-mdc-form-field-hint-end",i.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),ht=new g("MatPrefix");var De=new g("MatSuffix"),Xt=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(o){return new(o||t)};static \u0275dir=_({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[O([{provide:De,useExisting:t}])]})}return t})(),Ae=new g("FloatingLabelParent"),ze=(()=>{class t{_elementRef=d(M);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=d(we);_ngZone=d(C);_parent=d(Ae);_resizeSubscription=new j;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return xt(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(o){return new(o||t)};static \u0275dir=_({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(o,i){o&2&&y("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function xt(t){let r=t;if(r.offsetParent!==null)return r.scrollWidth;let e=r.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let o=e.scrollWidth;return e.remove(),o}var Le="mdc-line-ripple--active",D="mdc-line-ripple--deactivating",Ee=(()=>{class t{_elementRef=d(M);constructor(){d(C).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(D),e.add(Le)}deactivate(){this._elementRef.nativeElement.classList.add(D)}_handleTransitionEnd=e=>{let o=this._elementRef.nativeElement.classList,i=o.contains(D);e.propertyName==="opacity"&&i&&o.remove(Le,D)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(o){return new(o||t)};static \u0275dir=_({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),Se=(()=>{class t{_elementRef=d(M);_ngZone=d(C);open=!1;_notch;constructor(){}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=A({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(o,i){if(o&1&&x(He,5),o&2){let l;s(l=f())&&(i._notch=l.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(o,i){o&2&&y("mdc-notched-outline--notched",i.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:je,ngContentSelectors:We,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(o,i){o&1&&(I(),F(0,"div",1),c(1,"div",2,0),h(3),m(),F(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),bt={transitionMessages:he("transitionMessages",[be("enter",q({opacity:1,transform:"translateY(0%)"})),_e("void => enter",[q({opacity:0,transform:"translateY(-5px)"}),xe("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},_t=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(o){return new(o||t)};static \u0275dir=_({type:t})}return t})();var vt=new g("MatFormField"),gt=new g("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Re="fill",yt="auto",Oe="fixed",Ft="translateY(-50%)",Kt=(()=>{class t{_elementRef=d(M);_changeDetectorRef=d(ue);_dir=d(Fe);_platform=d(ve);_idGenerator=d(T);_defaults=d(gt,{optional:!0});_animationMode=d(ie,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=re(Ce);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ge(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||yt}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(e){let o=this._appearance,i=e||this._defaults?.appearance||Re;this._appearance=i,this._appearance==="outline"&&this._appearance!==o&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=Re;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Oe}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Oe}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new L;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=d(ee);constructor(){let e=this._defaults;e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=B(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let o=this._control,i="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(i+e.controlType),o.controlType&&this._elementRef.nativeElement.classList.add(i+o.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=o.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=o.stateChanges.pipe(Z([void 0,void 0]),U(()=>[o.errorState,o.userAriaDescribedBy]),G(),R(([[l,n],[w,S]])=>l!==w||n!==S)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),o.ngControl&&o.ngControl.valueChanges&&(this._valueChanges=o.ngControl.valueChanges.pipe(E(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),V(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),oe(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(E(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=B(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let o=this._control?this._control.ngControl:null;return o&&o[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let o=this._hintChildren?this._hintChildren.find(l=>l.align==="start"):null,i=this._hintChildren?this._hintChildren.find(l=>l.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let o=this._iconPrefixContainer?.nativeElement,i=this._textPrefixContainer?.nativeElement,l=this._iconSuffixContainer?.nativeElement,n=this._textSuffixContainer?.nativeElement,w=o?.getBoundingClientRect().width??0,S=i?.getBoundingClientRect().width??0,ke=l?.getBoundingClientRect().width??0,Pe=n?.getBoundingClientRect().width??0,Ie=this._dir.value==="rtl"?"-1":"1",Ne=`${w+S}px`,Be=`calc(${Ie} * (${Ne} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( - --mat-mdc-form-field-label-transform, - ${Ft} translateX(${Be}) - )`;let qe=w+S+ke+Pe;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${qe}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let o=e.getRootNode();return o&&o!==e}return document.documentElement.contains(e)}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=A({type:t,selectors:[["mat-form-field"]],contentQueries:function(o,i,l){if(o&1&&(ne(l,i._labelChild,Ce,5),z(l,_t,5),z(l,ht,5),z(l,De,5),z(l,Te,5),z(l,Me,5)),o&2){ce();let n;s(n=f())&&(i._formFieldControl=n.first),s(n=f())&&(i._prefixChildren=n),s(n=f())&&(i._suffixChildren=n),s(n=f())&&(i._errorChildren=n),s(n=f())&&(i._hintChildren=n)}},viewQuery:function(o,i){if(o&1&&(x(Ue,5),x(Ve,5),x(Ge,5),x($e,5),x(Ze,5),x(ze,5),x(Se,5),x(Ee,5)),o&2){let l;s(l=f())&&(i._textField=l.first),s(l=f())&&(i._iconPrefixContainer=l.first),s(l=f())&&(i._textPrefixContainer=l.first),s(l=f())&&(i._iconSuffixContainer=l.first),s(l=f())&&(i._textSuffixContainer=l.first),s(l=f())&&(i._floatingLabel=l.first),s(l=f())&&(i._notchedOutline=l.first),s(l=f())&&(i._lineRipple=l.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(o,i){o&2&&y("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-no-animations",i._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",i.appearance=="fill")("mat-form-field-appearance-outline",i.appearance=="outline")("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-focused",i._control.focused)("mat-primary",i.color!=="accent"&&i.color!=="warn")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[O([{provide:vt,useExisting:t},{provide:Ae,useExisting:t}])],ngContentSelectors:Xe,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(o,i){if(o&1){let l=de();I(Ye),u(0,et,1,1,"ng-template",null,0,fe),c(2,"div",6,1),ae("click",function(w){return K(l),J(i._control.onContainerClick(w))}),u(4,tt,1,0,"div",7),c(5,"div",8),u(6,lt,2,2,"div",9)(7,rt,3,0,"div",10)(8,dt,3,0,"div",11),c(9,"div",12),u(10,nt,1,1,null,13),h(11),m(),u(12,ct,3,0,"div",14)(13,mt,3,0,"div",15),m(),u(14,st,1,0,"div",16),m(),c(15,"div",17),u(16,ft,2,1,"div",18)(17,pt,5,2,"div",19),m()}if(o&2){let l;a(2),y("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),a(2),p(!i._hasOutline()&&!i._control.disabled?4:-1),a(2),p(i._hasOutline()?6:-1),a(),p(i._hasIconPrefix?7:-1),a(),p(i._hasTextPrefix?8:-1),a(2),p(!i._hasOutline()||i._forceDisplayInfixLabel()?10:-1),a(2),p(i._hasTextSuffix?12:-1),a(),p(i._hasIconSuffix?13:-1),a(),p(i._hasOutline()?-1:14),a(),y("mat-mdc-form-field-subscript-dynamic-size",i.subscriptSizing==="dynamic"),a(),p((l=i._getDisplayedMessages())==="error"?16:l==="hint"?17:-1)}},dependencies:[ze,Se,pe,Ee,Me],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[bt.transitionMessages]},changeDetection:0})}return t})(),Jt=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=le({type:t});static \u0275inj=X({imports:[Q,ye,Q]})}return t})();export{we as a,Ce as b,Yt as c,Me as d,Xt as e,_t as f,vt as g,gt as h,Kt as i,Jt as j}; diff --git a/chunk-2XST3EDK.js b/chunk-2XST3EDK.js new file mode 100644 index 00000000..70d76cee --- /dev/null +++ b/chunk-2XST3EDK.js @@ -0,0 +1 @@ +import{f as Ee,g as Re,j as Fe,o as j,p as X,q as U,r as qe}from"./chunk-AND6K73U.js";import{A as Ke,B as Ge}from"./chunk-6BGAZ7SQ.js";import{c as q,d as z,g as A,h as fe,j as T,k as ye,l as ve}from"./chunk-I7VYXJU2.js";import{e as Pe,g as Le,k as We,p as Be}from"./chunk-EDIJ2EBQ.js";import{F as be,G as N,I as Ce,P as Me,T as Oe,U as we,Y as Q,Z as Se,ba as ke,ka as xe,la as Ie,na as Ae,oa as Te,pa as De,qa as Y,s as H,xa as Ve}from"./chunk-W5KNOAKV.js";import{$ as c,Aa as re,D as M,Ea as w,F as E,Fc as ue,Ja as ne,L as Z,Mb as se,Nb as S,O as ee,Sb as k,Sc as _e,Tb as V,Vb as ce,Vc as f,Wc as G,Xb as de,Yb as P,Yd as ge,Z as R,_ as F,bc as s,cc as m,dc as he,fa as te,ha as O,hc as L,j as b,ka as o,kc as C,lb as p,mc as u,nc as pe,oc as W,pc as x,qc as I,rc as _,sa as ie,sc as g,t as D,ta as d,ua as h,ub as oe,va as ae,vb as le,wc as me,xc as B,y as J,yc as K}from"./chunk-TEKHUYWQ.js";var $e=["trigger"],Je=["panel"],Ze=[[["mat-select-trigger"]],"*"],et=["mat-select-trigger","*"];function tt(r,y){if(r&1&&(s(0,"span",4),B(1),m()),r&2){let e=u();p(),K(e.placeholder)}}function it(r,y){r&1&&W(0)}function at(r,y){if(r&1&&(s(0,"span",11),B(1),m()),r&2){let e=u(2);p(),K(e.triggerValue)}}function rt(r,y){if(r&1&&(s(0,"span",5),S(1,it,1,0)(2,at,2,1,"span",11),m()),r&2){let e=u();p(),P(e.customTrigger?1:2)}}function nt(r,y){if(r&1){let e=L();s(0,"div",12,1),C("@transformPanel.done",function(i){d(e);let a=u();return h(a._panelDoneAnimatingStream.next(i.toState))})("keydown",function(i){d(e);let a=u();return h(a._handleKeydown(i))}),W(2,1),m()}if(r&2){let e=u();de("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),V("ngClass",e.panelClass)("@transformPanel","showing"),k("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var ot={transformPanelWrap:q("transformPanelWrap",[T("* => void",ve("@transformPanel",[ye()],{optional:!0}))]),transformPanel:q("transformPanel",[fe("void",A({opacity:0,transform:"scale(1, 0.8)"})),T("void => showing",z("120ms cubic-bezier(0, 0, 0.2, 1)",A({opacity:1,transform:"scale(1, 1)"}))),T("* => void",z("100ms linear",A({opacity:0})))])};var Ye=new O("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let r=o(j);return()=>r.scrollStrategies.reposition()}});function lt(r){return()=>r.scrollStrategies.reposition()}var st=new O("MAT_SELECT_CONFIG"),ct={provide:Ye,deps:[j],useFactory:lt},dt=new O("MatSelectTrigger"),$=class{source;value;constructor(y,e){this.source=y,this.value=e}},Lt=(()=>{class r{_viewportRuler=o(Ke);_changeDetectorRef=o(_e);_elementRef=o(ne);_dir=o(we,{optional:!0});_idGenerator=o(Oe);_parentFormField=o(Re,{optional:!0});ngControl=o(Le,{self:!0,optional:!0});_liveAnnouncer=o(Me);_defaultOptions=o(st,{optional:!0});options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=Te(e,this.options,this.optionGroups),n=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=De(n.offsetTop,n.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new $(this,e)}_scrollStrategyFactory=o(Ye);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new b;_errorStateTracker;stateChanges=new b;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new b;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Pe.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";_initialized=new b;optionSelectionChanges=J(()=>{let e=this.options;return e?e.changes.pipe(R(e),F(()=>M(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(F(()=>this.optionSelectionChanges))});openedChange=new w;_openedStream=this.openedChange.pipe(E(e=>e),D(()=>{}));_closedStream=this.openedChange.pipe(E(e=>!e),D(()=>{}));selectionChange=new w;valueChange=new w;constructor(){let e=o(ke),t=o(We,{optional:!0}),i=o(Be,{optional:!0}),a=o(new re("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Se(e,this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ve(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ee(),c(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(c(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(c(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(R(null),c(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&N(this._trackedModal,"aria-owns",t),be(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;N(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,n=this._keyManager;if(!n.isTyping()&&a&&!H(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let v=this.selected;n.onKeydown(e);let l=this.selected;l&&v!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,n=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!n&&(i===13||i===32)&&t.activeItem&&!H(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!n&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let v=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(v?l.select():l.deselect())})}else{let v=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==v&&t.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Z(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return i.value!=null&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof X?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Ce(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=M(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(c(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),M(...this.options.map(t=>t._stateChanges)).pipe(c(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=oe({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(x(a,dt,5),x(a,Ae,5),x(a,Ie,5)),t&2){let n;_(n=g())&&(i.customTrigger=n.first),_(n=g())&&(i.options=n),_(n=g())&&(i.optionGroups=n)}},viewQuery:function(t,i){if(t&1&&(I($e,5),I(Je,5),I(U,5)),t&2){let a;_(a=g())&&(i.trigger=a.first),_(a=g())&&(i.panel=a.first),_(a=g())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&C("keydown",function(n){return i._handleKeydown(n)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(k("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),ce("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",f],disableRipple:[2,"disableRipple","disableRipple",f],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:G(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",f],placeholder:"placeholder",required:[2,"required","required",f],multiple:[2,"multiple","multiple",f],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",f],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",G],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[ue([{provide:Ee,useExisting:r},{provide:xe,useExisting:r}]),se,ie],ngContentSelectors:et,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=L();pe(Ze),s(0,"div",2,0),C("click",function(){return d(a),h(i.open())}),s(3,"div",3),S(4,tt,2,1,"span",4)(5,rt,3,1,"span",5),m(),s(6,"div",6)(7,"div",7),ae(),s(8,"svg",8),he(9,"path",9),m()()()(),S(10,nt,3,9,"ng-template",10),C("backdropClick",function(){return d(a),h(i.close())})("attach",function(){return d(a),h(i._onAttached())})("detach",function(){return d(a),h(i.close())})}if(t&2){let a=me(1);p(3),k("id",i._valueId),p(),P(i.empty?4:5),p(6),V("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[X,U,ge],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}'],encapsulation:2,data:{animation:[ot.transformPanel]},changeDetection:0})}return r})();var Wt=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=le({type:r});static \u0275inj=te({providers:[ct],imports:[qe,Y,Q,Ge,Fe,Y,Q]})}return r})();export{Lt as a,Wt as b}; diff --git a/chunk-2ZKKJKGI.js b/chunk-2ZKKJKGI.js deleted file mode 100644 index b6f2795f..00000000 --- a/chunk-2ZKKJKGI.js +++ /dev/null @@ -1 +0,0 @@ -import{a as he,c as Pe,f as xe,g as ve}from"./chunk-L3M72EYY.js";import{a as se}from"./chunk-6STDPPRP.js";import{a as ae}from"./chunk-KAZRQD4G.js";import"./chunk-ZQOXWN4S.js";import"./chunk-VE4FGS76.js";import"./chunk-LFAX4DK3.js";import{a as I}from"./chunk-AD4TXQD3.js";import"./chunk-JX4IWPKV.js";import"./chunk-XC6WES62.js";import{b as oe}from"./chunk-RRBYVHNZ.js";import{a as E}from"./chunk-ZHS65JNW.js";import{c as re}from"./chunk-VYHC3V3G.js";import"./chunk-3I45H2NO.js";import"./chunk-R66KDUEB.js";import"./chunk-MLNPCJDD.js";import{a as k,b as Q,c as W}from"./chunk-WVZCQXYK.js";import"./chunk-UOTKRQ63.js";import"./chunk-BJXILAOS.js";import{a as ge}from"./chunk-AC7KYN3P.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import{a as Ce}from"./chunk-TZR6QHL3.js";import"./chunk-5DAHKZ7F.js";import{a as M}from"./chunk-A3N3AUUJ.js";import{H as ne,I as ie}from"./chunk-4FWBEGAE.js";import"./chunk-HGOTYYGI.js";import"./chunk-2K6IALUF.js";import{g as w,i as S,j as b,p as P}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import{a as K,e as X,f as Y,g as Z,i as ee,l as te}from"./chunk-PAP2P7QR.js";import{a as le,b as me,c as ce,d as pe,f as de,g as _e,h as fe,i as ue}from"./chunk-EC6LD5KM.js";import{a as J}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as O,Ba as $,F as A,Hc as v,Jc as g,Kc as h,Nb as c,Ob as x,Pb as B,Qb as q,Rb as U,Tb as l,Yb as u,_b as V,ac as D,bc as n,cc as a,dc as s,gb as y,hc as N,je as H,ka as m,kc as L,lb as o,mc as _,t as R,ta as z,ua as j,ub as C,xc as p,yc as G,zc as F}from"./chunk-TEKHUYWQ.js";var ye=(()=>{class e{router=m(S);destroyRef=m($);authenticationFacade=m(Ce);layoutFacade=m(oe);ngOnInit(){this.authenticationFacade.auth$.pipe(M(this.destroyRef)).subscribe(t=>{t&&(this.layoutFacade.loadNavLinks(t.roles),this.waitingForLogout())}),this.authenticationFacade.load()}waitingForLogout(){this.authenticationFacade.auth$.pipe(M(this.destroyRef)).subscribe(t=>{t===null&&(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=C({type:e,selectors:[["devmx-presentation-feature-shell"]],decls:1,vars:0,template:function(i,d){i&1&&s(0,"devmx-layout")},dependencies:[P,ae],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var Oe=e=>W(m(k),e.params);var be=()=>[xe];function ke(e,r){if(e&1&&s(0,"img",7),e&2){let t=_();l("src",t.cover,y)("alt",t.title)}}function Te(e,r){if(e&1&&s(0,"devmx-presentation-embed",12),e&2){let t=_(2);l("data",t)}}function Le(e,r){e&1&&(n(0,"div",13)(1,"div")(2,"blockquote")(3,"p"),p(4,'"O conhecimento sem fronteiras transcende barreiras"'),a(),n(5,"cite"),p(6,"\u2014 Guilherme Siquinelli"),a()()()())}function Ee(e,r){e&1&&(c(0,Te,1,1)(1,Le,7,0),x(2,0,be,null,1),q(0,-1))}function Ie(e,r){if(e&1&&(n(0,"mat-list-item"),s(1,"devmx-icon",15),n(2,"div",9)(3,"a",16),p(4),a()()()),e&2){let t=r.$implicit;o(3),l("href",t,y),o(),F(" ",t," ")}}function Re(e,r){if(e&1&&(n(0,"mat-list")(1,"h3",14),p(2,"Materiais"),a(),O(3,Ie,5,2,"mat-list-item",null,V),a()),e&2){let t=_();o(3),D(t.resources)}}function Ae(e,r){if(e&1&&(n(0,"mat-card",0)(1,"mat-card-header",1)(2,"a",2),s(3,"devmx-icon",3),a(),n(4,"mat-card-title",4),p(5),a(),n(6,"a",5),s(7,"devmx-icon",6),a()(),c(8,ke,1,2,"img",7),n(9,"mat-list")(10,"mat-list-item"),s(11,"devmx-icon",8),n(12,"div",9),p(13),g(14,"presentationFormat"),a()()(),c(15,Ee,4,0),n(16,"mat-card-content"),s(17,"devmx-markdown-view",10),a(),c(18,Re,5,0,"mat-list"),n(19,"mat-card-header"),s(20,"img",11),g(21,"photo"),n(22,"mat-card-title"),p(23),a(),n(24,"mat-card-subtitle"),p(25," Autor "),a()()()),e&2){let t=r;o(5),F(" ",t.title," "),o(3),u(t.cover?8:-1),o(5),G(h(14,9,t.format)),o(2),u(t.link?15:-1),o(2),l("content",t.description),o(),u(t.resources.length?18:-1),o(2),l("src",h(21,11,t.owner.profile==null?null:t.owner.profile.photo),y)("alt",t.owner.displayName),o(3),F(" ",t.owner.displayName," ")}}var De=(()=>{class e{route=m(w);presentation$=this.route.data.pipe(A(t=>"presentation"in t),R(t=>t.presentation));static \u0275fac=function(i){return new(i||e)};static \u0275cmp=C({type:e,selectors:[["devmx-presentation-details"]],decls:2,vars:3,consts:[[1,"presentation-card"],[1,"presentation-card-header","sticky"],["mat-card-avatar","","routerLink","..","mat-icon-button",""],["name","arrow/left"],[1,"presentation-card-header-title"],["routerLink","..","mat-icon-button",""],["name","close-cross"],["mat-card-image","",3,"src","alt"],["matListItemIcon","","name","user-presentation"],["matListItemTitle",""],[3,"content"],["mat-card-avatar","",3,"src","alt"],[3,"data"],[1,"presentation-placeholder"],["mat-subheader",""],["matListItemIcon","","name","external-link"],["target","_blank","rel","noopener noreferrer",3,"href"]],template:function(i,d){if(i&1&&(c(0,Ae,26,13,"mat-card",0),g(1,"async")),i&2){let f;u((f=h(1,1,d.presentation$))?0:-1,f)}},dependencies:[P,b,ue,le,fe,ce,de,_e,pe,me,te,Y,Z,X,ee,K,ie,ne,J,ge,he,se,H],styles:["[_nghost-%COMP%]{flex:1;height:100%;display:flex;flex-direction:column}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 16px;font-size:1.2em;font-weight:500;opacity:.6}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-line;line-height:1.2em;word-wrap:break-word}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link:hover{text-decoration:underline}[_nghost-%COMP%] .presentation-card-header[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}[_nghost-%COMP%] .presentation-card-header[_ngcontent-%COMP%] .mat-mdc-card-avatar[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%] .presentation-placeholder[_ngcontent-%COMP%]{position:relative;width:100%;padding-top:56.25%;overflow:hidden}[_nghost-%COMP%] .presentation-placeholder[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:calc(100% - 2em);height:calc(100% - 2em);border:0;aspect-ratio:16/9;padding:1em;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .presentation-placeholder[_ngcontent-%COMP%] div[_ngcontent-%COMP%] blockquote[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:1.2em;line-height:1.2em;opacity:.8}[_nghost-%COMP%] .presentation-placeholder[_ngcontent-%COMP%] div[_ngcontent-%COMP%] blockquote[_ngcontent-%COMP%] cite[_ngcontent-%COMP%]{margin:.4em;display:flex;font-size:1em;opacity:.4}"],changeDetection:0})}return e})();var ze=(e,r)=>r.id,je=()=>[E,re,import("./chunk-QQ3DFMVY.js").then(e=>e.AsyncPipe)],$e=()=>[ve,b],Be=e=>[e],qe=e=>({right:e}),Ue=e=>({outlets:e}),Ve=e=>["/","apresentacoes",e];function Ne(e,r){if(e&1&&(n(0,"a",4),s(1,"devmx-presentation-card",5),a()),e&2){let t=_().$implicit;l("routerLink",v(8,Ve,v(6,Ue,v(4,qe,v(2,Be,t.id))))),o(),l("data",t)}}function Ge(e,r){e&1&&s(0,"devmx-skeleton",6),e&2&&l("rows",3)}function He(e,r){e&1&&(c(0,Ne,2,10)(1,Ge,1,1),x(2,0,$e,null,1),U(0,-1))}function Qe(e,r){if(e&1){let t=N();n(0,"div",1),O(1,He,4,0,null,null,ze),a(),s(3,"div",2),n(4,"footer")(5,"devmx-paginator",3),L("pageChange",function(d){z(t);let f=_(2);return j(f.onPageChange(d))}),a()()}if(e&2){let t=r;o(),D(t.data),o(4),l("size",10)("items",t.items)}}function We(e,r){if(e&1&&(c(0,Qe,6,2),g(1,"async")),e&2){let t,i=_();u((t=h(1,1,i.presentationFacade.response$))?0:-1,t)}}function Je(e,r){e&1&&(n(0,"div",1),s(1,"devmx-skeleton",6)(2,"devmx-skeleton",6)(3,"devmx-skeleton",6),a()),e&2&&(o(),l("rows",3),o(),l("rows",2),o(),l("rows",3))}var Fe=(()=>{class e{presentationFacade=m(k);router=m(S);route=m(w);constructor(){this.route.queryParams.pipe(M()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{page:i=0,size:d=10}=t,{title:f="",format:T=""}=t,we={title:f,format:T};this.presentationFacade.setParams({page:i,size:d,filter:we}),this.presentationFacade.load()};onFilterChange(t){let i={format:t};this.router.navigate([],{queryParams:i})}onPageChange(t){this.router.navigate([],{queryParams:t})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=C({type:e,selectors:[["devmx-presentations"]],decls:6,vars:0,consts:[[3,"filterChange"],[1,"presentations-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[3,"data"],[3,"rows"]],template:function(i,d){i&1&&(n(0,"header")(1,"devmx-presentation-filter",0),L("filterChange",function(T){return d.onFilterChange(T)}),a()(),c(2,We,2,3)(3,Je,4,3),x(4,2,je,null,3),B(500))},dependencies:[E,Pe,P],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;padding:.4em .8em}[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1;display:flex}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return e})();var Nt=[{path:"",providers:[...Q()],data:{breadcrumb:"Apresenta\xE7\xF5es"},canActivate:[I("member")],component:ye,children:[{path:"administracao",canActivate:[I("speaker","director","manager","staff")],loadChildren:()=>import("./chunk-JWVJB74K.js").then(e=>e.presentationFeatureAdminRoutes)},{path:"",title:"Apresenta\xE7\xF5es",component:Fe},{path:":id",data:{breadcrumb:e=>e.presentation.title},title:"Apresenta\xE7\xE3o",resolve:{presentation:Oe},component:De,outlet:"right"}]}];export{ye as PresentationFeatureShellComponent,Nt as presentationFeatureShellRoutes}; diff --git a/chunk-3F647OO5.js b/chunk-3F647OO5.js new file mode 100644 index 00000000..72494c84 --- /dev/null +++ b/chunk-3F647OO5.js @@ -0,0 +1 @@ +import{a as Pe,b as Me,c as be,d as Ee}from"./chunk-FVH3EPWM.js";import{a as ge,b as _e,c as Ce,d as xe}from"./chunk-YFMYPYPE.js";import{b as F}from"./chunk-UOTKRQ63.js";import{a as ve}from"./chunk-BZ5BKAFD.js";import{a as he}from"./chunk-WD4JQH2Z.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import{c as M,d as le,f as se,h as de}from"./chunk-V6KASOE3.js";import"./chunk-XIUDFJWJ.js";import{a as fe}from"./chunk-TPJZ2OYR.js";import{a as ce}from"./chunk-YGTSZDQ5.js";import{d as pe}from"./chunk-ZTWYID37.js";import"./chunk-XYJHVZQT.js";import{e as ye,i as Se,j as Te,m as Oe}from"./chunk-DAURILCW.js";import"./chunk-O3T3UZHL.js";import"./chunk-VVQ6JEVH.js";import"./chunk-HGOTYYGI.js";import"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as w}from"./chunk-A3N3AUUJ.js";import{g as S,h as U,p as T,v as re,x as me}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import{a as Z,b as ee,c as te,e as ne,f as ie,g as oe,l as ae}from"./chunk-PAP2P7QR.js";import{i as ue}from"./chunk-EC6LD5KM.js";import{a as O,h as J,i as Y,m as q,p as K,s as Q,x as X}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as B,F as g,Ha as A,Hc as G,Ia as I,Jc as c,Kc as y,Lc as f,Nb as u,Tb as l,Yb as C,Yd as z,_b as R,ac as k,ba as V,bc as n,cc as i,dc as p,hc as $,je as H,ka as s,kc as b,lb as o,mc as v,pe as W,t as P,ta as N,u as L,ua as j,ub as _,xc as d,yc as x,zc as E}from"./chunk-TEKHUYWQ.js";var we=(()=>{class t{route=s(S);script=s(ve);constructor(){this.route.data.pipe(g(({schema:e})=>!!e),P(({schema:e})=>e),w()).subscribe(e=>{let a="application/ld+json",r=JSON.stringify(e,null,2);this.script.addScript({type:a},r)})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=_({type:t,selectors:[["devmx-event-feature-page"]],decls:2,vars:0,template:function(a,r){a&1&&(n(0,"devmx-app-shell"),p(1,"router-outlet"),i())},dependencies:[T,U,F,ce],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();var Ie=[];var Re=t=>de(s(M),t.params);var Be=t=>{let m=t.parent?t.parent.params:t.params;return se(s(M),m)};var Ve=t=>({active:t}),ke=(()=>{class t{loved=I(!1);loveChange=A();disabled=I(!1);isDisabled(){return this.disabled()===""?!0:this.disabled()}onClick(){this.loveChange.emit(!this.loved())}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=_({type:t,selectors:[["devmx-heart-button"]],inputs:{loved:[1,"loved"],disabled:[1,"disabled"]},outputs:{loveChange:"loveChange"},decls:2,vars:4,consts:[["mat-icon-button","",3,"click","disabled","ngClass"],["name","heart"]],template:function(a,r){a&1&&(n(0,"button",0),b("click",function(){return r.onClick()}),p(1,"devmx-icon",1),i()),a&2&&l("disabled",r.disabled())("ngClass",G(2,Ve,r.loved()))},dependencies:[re,O,z],encapsulation:2})}return t})();function Ne(t,m){if(t&1&&p(0,"devmx-maps-button",1),t&2){let e=v();l("data",e)}}function je(t,m){if(t&1&&p(0,"devmx-youtube-button",1),t&2){let e=v();l("data",e)}}function Ae(t,m){if(t&1&&(n(0,"article"),p(1,"devmx-markdown-view",10),i()),t&2){let e=v();o(),l("content",e.description)}}function $e(t,m){if(t&1&&(n(0,"mat-list-item"),p(1,"devmx-icon",11),n(2,"div",12),d(3),i(),n(4,"div",13),d(5),i(),p(6,"devmx-heart-button",14),i()),t&2){let e=m.$implicit;o(3),x(e.title),o(2),x(e.owner.displayName),o(),l("loved",!1)}}function Ge(t,m){if(t&1&&(n(0,"mat-list"),B(1,$e,7,3,"mat-list-item",null,R),i()),t&2){let e=v(2);o(),k(e.presentations)}}function ze(t,m){t&1&&(n(0,"mat-tab",8),u(1,Ge,3,0,"ng-template",7),i())}function He(t,m){if(t&1&&(n(0,"mat-list-item"),p(1,"devmx-icon",15),n(2,"div",12),d(3),i()()),t&2){let e=m.$implicit;o(3),x(e.displayName)}}function We(t,m){if(t&1&&B(0,He,4,1,"mat-list-item",null,R),t&2){let e=v(2);k(e.leaders)}}function Ue(t,m){if(t&1&&(n(0,"mat-list")(1,"mat-list-item"),p(2,"devmx-icon",15),n(3,"div",12),d(4),i()(),u(5,We,2,0),i()),t&2){let e=v();o(4),x(e.owner.displayName),o(),C(e.leaders.length?5:-1)}}function Je(t,m){if(t&1){let e=$();n(0,"header")(1,"hgroup")(2,"h1"),d(3),i(),n(4,"h3")(5,"span")(6,"time",0),c(7,"date"),d(8),c(9,"date"),i()(),n(10,"span"),d(11," das "),i(),n(12,"time",0),c(13,"date"),d(14),c(15,"date"),i(),n(16,"span"),d(17," at\xE9 "),i(),n(18,"time",0),c(19,"date"),d(20),c(21,"date"),i()()(),n(22,"nav"),p(23,"devmx-calendar-button",1),u(24,Ne,1,1,"devmx-maps-button",1),c(25,"showEventAddress"),u(26,je,1,1,"devmx-youtube-button",1),c(27,"showEventLink"),p(28,"devmx-whats-app-button",1),i()(),n(29,"section",2)(30,"form",3)(31,"devmx-rsvp-button",4),b("statusChange",function(){N(e);let r=v();return j(r.onStatusChange())}),i()(),n(32,"mat-tab-group",5)(33,"mat-tab",6),u(34,Ae,2,1,"ng-template",7),i(),u(35,ze,2,0,"mat-tab",8),n(36,"mat-tab",9),u(37,Ue,6,2,"ng-template",7),i()()()}if(t&2){let e=m,a=v();o(3),x(e.title),o(3),l("dateTime",f(7,13,e.date,"longDate")),o(2),E(" ",f(9,16,e.date,"longDate")," "),o(4),l("dateTime",f(13,19,e.start,"shortTime")),o(2),E(" ",f(15,22,e.start,"shortTime"),"h "),o(4),l("dateTime",f(19,25,e.end,"shortTime")),o(2),E(" ",f(21,28,e.end,"shortTime"),"h "),o(3),l("data",e),o(),C(y(25,31,e.format)&&e.address?24:-1),o(2),C(y(27,33,e.format)&&e.link?26:-1),o(2),l("data",e),o(2),l("formGroup",a.form),o(5),C(e.presentations.length?35:-1)}}var De=(()=>{class t{authFacade=s(fe);rsvpFacade=s(le);route=s(S);event$=this.route.data.pipe(g(({page:e})=>!!e),P(({page:e})=>e),V(e=>this.setRSVPEvent(e.id)));form=new Oe;constructor(){if(localStorage.getItem("accessToken")){this.authFacade.load();let e=this.authFacade.auth$.pipe(g(r=>!!r),P(r=>r.id)),a=this.rsvpFacade.response$.pipe(g(r=>r.length>0));L([e,a]).pipe(w()).subscribe(([r,h])=>{let D=h.find(Le=>Le.user.id===r);D&&this.setRSVPStatus(D)})}}setRSVPEvent=e=>{this.form.patchValue({event:e}),this.rsvpFacade.loadConfirmed(e)};setRSVPStatus({status:e}){this.form.patchValue({status:e},{emitEvent:!1})}onStatusChange(){this.form.valid&&this.rsvpFacade.create(this.form.getRawValue())}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=_({type:t,selectors:[["devmx-event-page"]],decls:2,vars:3,consts:[[3,"dateTime"],[3,"data"],[1,"event-page-content"],[1,"rsvp-button",3,"formGroup"],["formControlName","status",1,"rsvp-button",3,"statusChange"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Descri\xE7\xE3o"],["matTabContent",""],["label","Agenda"],["label","Organizadores"],[3,"content"],["matListItemIcon","","name","presentation"],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta","","disabled","",3,"loved"],["matListItemIcon","","name","user-circle"]],template:function(a,r){if(a&1&&(u(0,Je,38,35),c(1,"async")),a&2){let h;C((h=y(1,1,r.event$))?0:-1,h)}},dependencies:[T,he,X,q,J,Y,K,Q,Me,be,Pe,Ee,ke,Se,ye,Te,pe,F,xe,ge,_e,Ce,me,ue,ae,ie,oe,ne,ee,Z,te,O,H,W],styles:["[_nghost-%COMP%]{flex:1;gap:2em;display:flex;flex-direction:column;background-color:#fff}[_nghost-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:1.8em}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.2em}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:2em;gap:8px;background:linear-gradient(180deg,#fff0 -12.12%,#4e4e4e40 23.23%,#0003);background-blend-mode:multiply}[_nghost-%COMP%] header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{gap:1em;width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}@media (max-width: 767px){[_nghost-%COMP%] form[_ngcontent-%COMP%]{justify-content:center}}[_nghost-%COMP%] .event-page-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;position:relative}[_nghost-%COMP%] .event-page-content[_ngcontent-%COMP%] .rsvp-button[_ngcontent-%COMP%]{position:absolute;z-index:100;right:.4em;top:-.4em}@media (max-width: 767px){[_nghost-%COMP%] .event-page-content[_ngcontent-%COMP%] .rsvp-button[_ngcontent-%COMP%]{position:relative;margin-bottom:1em;right:0;top:0}}[_nghost-%COMP%] article[_ngcontent-%COMP%]{padding:1em}@media (max-width: 600px){[_nghost-%COMP%] header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{width:100%;flex-direction:column}}"],changeDetection:0})}return t})();var tn=[{path:":id",providers:Ie,component:we,data:{breadcrumb:"Evento"},resolve:{schema:Re},children:[{path:"",data:{breadcrumb:t=>t.page.title},title:"Sobre o evento",resolve:{page:Be},component:De}]}];export{we as EventFeaturePageComponent,tn as eventFeaturePageRoutes}; diff --git a/chunk-3I45H2NO.js b/chunk-3I45H2NO.js deleted file mode 100644 index 06b4b14d..00000000 --- a/chunk-3I45H2NO.js +++ /dev/null @@ -1 +0,0 @@ -import{e as j,f as X,g as U,h as qe}from"./chunk-R66KDUEB.js";import{L as Ke,M as Ge}from"./chunk-4FWBEGAE.js";import{f as Ee,g as Re,j as Fe}from"./chunk-2K6IALUF.js";import{c as q,d as z,g as A,h as fe,j as T,k as ye,l as ve}from"./chunk-I7VYXJU2.js";import{e as Pe,g as Le,k as We,p as Be}from"./chunk-EDIJ2EBQ.js";import{F as be,G as N,I as Ce,P as Me,T as Oe,U as we,Y as Q,Z as Se,ba as ke,ka as xe,la as Ie,na as Ae,oa as Te,pa as De,qa as Y,s as H,xa as Ve}from"./chunk-W5KNOAKV.js";import{$ as c,Aa as re,D as M,Ea as w,F as E,Fc as ue,Ja as ne,L as Z,Mb as se,Nb as S,O as ee,Sb as k,Sc as _e,Tb as V,Vb as ce,Vc as f,Wc as G,Xb as de,Yb as P,Yd as ge,Z as R,_ as F,bc as s,cc as m,dc as he,fa as te,ha as O,hc as L,j as b,ka as o,kc as C,lb as p,mc as u,nc as pe,oc as W,pc as x,qc as I,rc as _,sa as ie,sc as g,t as D,ta as d,ua as h,ub as oe,va as ae,vb as le,wc as me,xc as B,y as J,yc as K}from"./chunk-TEKHUYWQ.js";var $e=["trigger"],Je=["panel"],Ze=[[["mat-select-trigger"]],"*"],et=["mat-select-trigger","*"];function tt(r,y){if(r&1&&(s(0,"span",4),B(1),m()),r&2){let e=u();p(),K(e.placeholder)}}function it(r,y){r&1&&W(0)}function at(r,y){if(r&1&&(s(0,"span",11),B(1),m()),r&2){let e=u(2);p(),K(e.triggerValue)}}function rt(r,y){if(r&1&&(s(0,"span",5),S(1,it,1,0)(2,at,2,1,"span",11),m()),r&2){let e=u();p(),P(e.customTrigger?1:2)}}function nt(r,y){if(r&1){let e=L();s(0,"div",12,1),C("@transformPanel.done",function(i){d(e);let a=u();return h(a._panelDoneAnimatingStream.next(i.toState))})("keydown",function(i){d(e);let a=u();return h(a._handleKeydown(i))}),W(2,1),m()}if(r&2){let e=u();de("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),V("ngClass",e.panelClass)("@transformPanel","showing"),k("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var ot={transformPanelWrap:q("transformPanelWrap",[T("* => void",ve("@transformPanel",[ye()],{optional:!0}))]),transformPanel:q("transformPanel",[fe("void",A({opacity:0,transform:"scale(1, 0.8)"})),T("void => showing",z("120ms cubic-bezier(0, 0, 0.2, 1)",A({opacity:1,transform:"scale(1, 1)"}))),T("* => void",z("100ms linear",A({opacity:0})))])};var Ye=new O("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let r=o(j);return()=>r.scrollStrategies.reposition()}});function lt(r){return()=>r.scrollStrategies.reposition()}var st=new O("MAT_SELECT_CONFIG"),ct={provide:Ye,deps:[j],useFactory:lt},dt=new O("MatSelectTrigger"),$=class{source;value;constructor(y,e){this.source=y,this.value=e}},Lt=(()=>{class r{_viewportRuler=o(Ke);_changeDetectorRef=o(_e);_elementRef=o(ne);_dir=o(we,{optional:!0});_idGenerator=o(Oe);_parentFormField=o(Re,{optional:!0});ngControl=o(Le,{self:!0,optional:!0});_liveAnnouncer=o(Me);_defaultOptions=o(st,{optional:!0});options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=Te(e,this.options,this.optionGroups),n=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=De(n.offsetTop,n.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new $(this,e)}_scrollStrategyFactory=o(Ye);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new b;_errorStateTracker;stateChanges=new b;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new b;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Pe.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";_initialized=new b;optionSelectionChanges=J(()=>{let e=this.options;return e?e.changes.pipe(R(e),F(()=>M(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(F(()=>this.optionSelectionChanges))});openedChange=new w;_openedStream=this.openedChange.pipe(E(e=>e),D(()=>{}));_closedStream=this.openedChange.pipe(E(e=>!e),D(()=>{}));selectionChange=new w;valueChange=new w;constructor(){let e=o(ke),t=o(We,{optional:!0}),i=o(Be,{optional:!0}),a=o(new re("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Se(e,this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ve(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ee(),c(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(c(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(c(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(R(null),c(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&N(this._trackedModal,"aria-owns",t),be(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;N(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,n=this._keyManager;if(!n.isTyping()&&a&&!H(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let v=this.selected;n.onKeydown(e);let l=this.selected;l&&v!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,n=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!n&&(i===13||i===32)&&t.activeItem&&!H(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!n&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let v=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(v?l.select():l.deselect())})}else{let v=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==v&&t.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Z(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return i.value!=null&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof X?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Ce(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=M(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(c(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),M(...this.options.map(t=>t._stateChanges)).pipe(c(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=oe({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(x(a,dt,5),x(a,Ae,5),x(a,Ie,5)),t&2){let n;_(n=g())&&(i.customTrigger=n.first),_(n=g())&&(i.options=n),_(n=g())&&(i.optionGroups=n)}},viewQuery:function(t,i){if(t&1&&(I($e,5),I(Je,5),I(U,5)),t&2){let a;_(a=g())&&(i.trigger=a.first),_(a=g())&&(i.panel=a.first),_(a=g())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&C("keydown",function(n){return i._handleKeydown(n)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(k("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),ce("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",f],disableRipple:[2,"disableRipple","disableRipple",f],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:G(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",f],placeholder:"placeholder",required:[2,"required","required",f],multiple:[2,"multiple","multiple",f],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",f],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",G],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[ue([{provide:Ee,useExisting:r},{provide:xe,useExisting:r}]),se,ie],ngContentSelectors:et,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=L();pe(Ze),s(0,"div",2,0),C("click",function(){return d(a),h(i.open())}),s(3,"div",3),S(4,tt,2,1,"span",4)(5,rt,3,1,"span",5),m(),s(6,"div",6)(7,"div",7),ae(),s(8,"svg",8),he(9,"path",9),m()()()(),S(10,nt,3,9,"ng-template",10),C("backdropClick",function(){return d(a),h(i.close())})("attach",function(){return d(a),h(i._onAttached())})("detach",function(){return d(a),h(i.close())})}if(t&2){let a=me(1);p(3),k("id",i._valueId),p(),P(i.empty?4:5),p(6),V("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[X,U,ge],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}'],encapsulation:2,data:{animation:[ot.transformPanel]},changeDetection:0})}return r})();var Wt=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=le({type:r});static \u0275inj=te({providers:[ct],imports:[qe,Y,Q,Ge,Fe,Y,Q]})}return r})();export{Lt as a,Wt as b}; diff --git a/chunk-3OW34LBR.js b/chunk-3OW34LBR.js new file mode 100644 index 00000000..b952f8aa --- /dev/null +++ b/chunk-3OW34LBR.js @@ -0,0 +1 @@ +import{a as N}from"./chunk-M5BYPXOP.js";import"./chunk-ZQOXWN4S.js";import{a as W}from"./chunk-Q33OVU5J.js";import{a as y,d as Q}from"./chunk-L2JQY5SP.js";import{b as q}from"./chunk-WKFJTKSD.js";import{a as A}from"./chunk-ZHS65JNW.js";import{c as G}from"./chunk-BLJCB4Q7.js";import"./chunk-2XST3EDK.js";import"./chunk-MLNPCJDD.js";import"./chunk-UOTKRQ63.js";import{a as H}from"./chunk-TPJZ2OYR.js";import"./chunk-ZTWYID37.js";import"./chunk-XYJHVZQT.js";import"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as g}from"./chunk-A3N3AUUJ.js";import{g as P,i as O,j as U,p as f}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import"./chunk-EC6LD5KM.js";import"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as C,Ba as R,F,Hc as B,Jc as M,Kc as x,Nb as u,Ob as w,Pb as L,Rb as $,Tb as r,Yb as _,a as v,ac as h,bc as l,cc as s,dc as m,gb as T,hc as E,je as I,ka as o,kc as j,lb as a,mc as b,t as D,ta as k,ua as S,ub as p,xc as z,yc as V}from"./chunk-TEKHUYWQ.js";var J=[];var X=(()=>{class e{router=o(O);destroyRef=o(R);authFacade=o(H);layoutFacade=o(q);constructor(){this.authFacade.auth$.pipe(g()).subscribe(t=>{t&&(this.layoutFacade.loadNavLinks(t.roles),this.waitingForLogout())}),this.authFacade.load()}waitingForLogout(){this.authFacade.auth$.pipe(g(this.destroyRef)).subscribe(t=>{t===null&&(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-album-feature-shell"]],decls:1,vars:0,template:function(n,c){n&1&&m(0,"devmx-layout")},dependencies:[f,N],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var ne=(e,i)=>i.id,ie=()=>[G,A,import("./chunk-QQ3DFMVY.js").then(e=>e.AsyncPipe)],oe=()=>[import("./chunk-Z3ZVRDLS.js").then(e=>e.AlbumCardComponent),U],ae=e=>[".",e];function re(e,i){if(e&1&&(l(0,"a",3),m(1,"devmx-album-card",4),s()),e&2){let t=b().$implicit;r("routerLink",B(2,ae,t.id)),a(),r("data",t)}}function me(e,i){e&1&&m(0,"devmx-skeleton",5),e&2&&r("rows",3)}function le(e,i){e&1&&(u(0,re,2,4)(1,me,1,1),w(2,0,oe,null,1),$(0,-1))}function ce(e,i){if(e&1){let t=E();l(0,"div",0),C(1,le,4,0,null,null,ne),s(),m(3,"div",1),l(4,"footer")(5,"devmx-paginator",2),j("pageChange",function(c){k(t);let d=b(2);return S(d.onPageChange(c))}),s()()}if(e&2){let t=i;a(),h(t.data),a(4),r("size",10)("items",t.items)}}function se(e,i){if(e&1&&(u(0,ce,6,2),M(1,"async")),e&2){let t,n=b();_((t=x(1,1,n.albumFacade.response$))?0:-1,t)}}function de(e,i){e&1&&(l(0,"div",0),m(1,"devmx-skeleton",5)(2,"devmx-skeleton",5)(3,"devmx-skeleton",5),s()),e&2&&(a(),r("rows",3),a(),r("rows",2),a(),r("rows",3))}var Y=(()=>{class e{albumFacade=o(y);router=o(O);route=o(P);constructor(){this.route.queryParams.pipe(g()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{page:n=0,size:c=10}=t,{title:d=""}=t,te={title:d};this.albumFacade.setParams({page:n,size:c,filter:te}),this.albumFacade.load()};mergeParams(t){return v(v({},this.route.snapshot.queryParams),t)}onPageChange(t){this.router.navigate([],{queryParams:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-admin-albums"]],decls:5,vars:0,consts:[[1,"albums-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[3,"data"],[3,"rows"]],template:function(n,c){n&1&&(m(0,"header"),u(1,se,2,3)(2,de,4,3),w(3,1,ie,null,2),L(500))},dependencies:[A,f],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;padding:.4em .8em}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1;display:flex}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return e})();var pe=(e,i)=>i.id;function ue(e,i){if(e&1&&(l(0,"figure"),m(1,"img",0),l(2,"figcaption"),z(3),s()()),e&2){let t=i.$implicit;a(),r("src",t.data,T)("alt",t.caption),a(2),V(t.caption)}}function fe(e,i){e&1&&C(0,ue,4,3,"figure",null,pe),e&2&&h(i.photos)}var Z=(()=>{class e{route=o(P);album$=this.route.data.pipe(F(t=>"album"in t),D(t=>t.album));static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-album"]],decls:2,vars:3,consts:[["loading","lazy",3,"src","alt"]],template:function(n,c){if(n&1&&(u(0,fe,2,0),M(1,"async")),n&2){let d;_((d=x(1,1,c.album$))?0:-1,d)}},dependencies:[f,I],styles:["[_nghost-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] figure[_ngcontent-%COMP%]{margin:0;box-sizing:border-box;border-radius:.4em;position:relative;overflow:hidden;background-color:#0000000a;transition:width .3s ease-in-out}[_nghost-%COMP%] figure.selected[_ngcontent-%COMP%]{width:16em;transition:width .3s ease-in-out}[_nghost-%COMP%] figure[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;display:flex;object-fit:cover;height:24em}[_nghost-%COMP%] figure[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]{display:flex;width:100%;padding:.4em;position:absolute;bottom:0;background-color:#0006;color:#fff9;z-index:100}[_nghost-%COMP%] figure[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})}return e})();var ee=e=>Q(o(y),e.params);var it=[{path:"",data:{breadcrumb:"Albuns"},canActivate:[W("member")],providers:J,component:X,children:[{path:"administracao",loadChildren:()=>import("./chunk-SG4GQJJH.js").then(e=>e.albumFeatureAdminRoutes)},{path:"",data:{breadcrumb:"Albuns"},title:"Albuns",component:Y},{path:":id",data:{breadcrumb:e=>e.album.title},title:"Album de fotos",resolve:{album:ee},component:Z}]}];export{X as AlbumFeatureShellComponent,it as albumFeatureShellRoutes}; diff --git a/chunk-3QZQQ6F4.js b/chunk-3QZQQ6F4.js deleted file mode 100644 index b6d86b05..00000000 --- a/chunk-3QZQQ6F4.js +++ /dev/null @@ -1 +0,0 @@ -import{a as N}from"./chunk-KAZRQD4G.js";import"./chunk-ZQOXWN4S.js";import{a as W}from"./chunk-AD4TXQD3.js";import{a as y,d as Q}from"./chunk-5FZSI2PL.js";import{b as q}from"./chunk-RRBYVHNZ.js";import{a as A}from"./chunk-ZHS65JNW.js";import{c as G}from"./chunk-VYHC3V3G.js";import"./chunk-3I45H2NO.js";import"./chunk-R66KDUEB.js";import"./chunk-MLNPCJDD.js";import"./chunk-UOTKRQ63.js";import"./chunk-BJXILAOS.js";import{a as H}from"./chunk-TZR6QHL3.js";import"./chunk-5DAHKZ7F.js";import{a as g}from"./chunk-A3N3AUUJ.js";import"./chunk-4FWBEGAE.js";import"./chunk-2K6IALUF.js";import{g as P,i as O,j as U,p as f}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import"./chunk-EC6LD5KM.js";import"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as C,Ba as R,F,Hc as B,Jc as M,Kc as x,Nb as u,Ob as w,Pb as L,Rb as $,Tb as r,Yb as _,a as v,ac as h,bc as l,cc as s,dc as m,gb as T,hc as E,je as I,ka as o,kc as j,lb as a,mc as b,t as D,ta as k,ua as S,ub as p,xc as z,yc as V}from"./chunk-TEKHUYWQ.js";var J=[];var X=(()=>{class e{router=o(O);destroyRef=o(R);authFacade=o(H);layoutFacade=o(q);constructor(){this.authFacade.auth$.pipe(g()).subscribe(t=>{t&&(this.layoutFacade.loadNavLinks(t.roles),this.waitingForLogout())}),this.authFacade.load()}waitingForLogout(){this.authFacade.auth$.pipe(g(this.destroyRef)).subscribe(t=>{t===null&&(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-album-feature-shell"]],decls:1,vars:0,template:function(n,c){n&1&&m(0,"devmx-layout")},dependencies:[f,N],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var ne=(e,i)=>i.id,ie=()=>[G,A,import("./chunk-QQ3DFMVY.js").then(e=>e.AsyncPipe)],oe=()=>[import("./chunk-Z3ZVRDLS.js").then(e=>e.AlbumCardComponent),U],ae=e=>[".",e];function re(e,i){if(e&1&&(l(0,"a",3),m(1,"devmx-album-card",4),s()),e&2){let t=b().$implicit;r("routerLink",B(2,ae,t.id)),a(),r("data",t)}}function me(e,i){e&1&&m(0,"devmx-skeleton",5),e&2&&r("rows",3)}function le(e,i){e&1&&(u(0,re,2,4)(1,me,1,1),w(2,0,oe,null,1),$(0,-1))}function ce(e,i){if(e&1){let t=E();l(0,"div",0),C(1,le,4,0,null,null,ne),s(),m(3,"div",1),l(4,"footer")(5,"devmx-paginator",2),j("pageChange",function(c){k(t);let d=b(2);return S(d.onPageChange(c))}),s()()}if(e&2){let t=i;a(),h(t.data),a(4),r("size",10)("items",t.items)}}function se(e,i){if(e&1&&(u(0,ce,6,2),M(1,"async")),e&2){let t,n=b();_((t=x(1,1,n.albumFacade.response$))?0:-1,t)}}function de(e,i){e&1&&(l(0,"div",0),m(1,"devmx-skeleton",5)(2,"devmx-skeleton",5)(3,"devmx-skeleton",5),s()),e&2&&(a(),r("rows",3),a(),r("rows",2),a(),r("rows",3))}var Y=(()=>{class e{albumFacade=o(y);router=o(O);route=o(P);constructor(){this.route.queryParams.pipe(g()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{page:n=0,size:c=10}=t,{title:d=""}=t,te={title:d};this.albumFacade.setParams({page:n,size:c,filter:te}),this.albumFacade.load()};mergeParams(t){return v(v({},this.route.snapshot.queryParams),t)}onPageChange(t){this.router.navigate([],{queryParams:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-admin-albums"]],decls:5,vars:0,consts:[[1,"albums-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[3,"data"],[3,"rows"]],template:function(n,c){n&1&&(m(0,"header"),u(1,se,2,3)(2,de,4,3),w(3,1,ie,null,2),L(500))},dependencies:[A,f],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;padding:.4em .8em}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1;display:flex}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return e})();var pe=(e,i)=>i.id;function ue(e,i){if(e&1&&(l(0,"figure"),m(1,"img",0),l(2,"figcaption"),z(3),s()()),e&2){let t=i.$implicit;a(),r("src",t.data,T)("alt",t.caption),a(2),V(t.caption)}}function fe(e,i){e&1&&C(0,ue,4,3,"figure",null,pe),e&2&&h(i.photos)}var Z=(()=>{class e{route=o(P);album$=this.route.data.pipe(F(t=>"album"in t),D(t=>t.album));static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-album"]],decls:2,vars:3,consts:[["loading","lazy",3,"src","alt"]],template:function(n,c){if(n&1&&(u(0,fe,2,0),M(1,"async")),n&2){let d;_((d=x(1,1,c.album$))?0:-1,d)}},dependencies:[f,I],styles:["[_nghost-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] figure[_ngcontent-%COMP%]{margin:0;box-sizing:border-box;border-radius:.4em;position:relative;overflow:hidden;background-color:#0000000a;transition:width .3s ease-in-out}[_nghost-%COMP%] figure.selected[_ngcontent-%COMP%]{width:16em;transition:width .3s ease-in-out}[_nghost-%COMP%] figure[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;display:flex;object-fit:cover;height:24em}[_nghost-%COMP%] figure[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]{display:flex;width:100%;padding:.4em;position:absolute;bottom:0;background-color:#0006;color:#fff9;z-index:100}[_nghost-%COMP%] figure[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})}return e})();var ee=e=>Q(o(y),e.params);var it=[{path:"",data:{breadcrumb:"Albuns"},canActivate:[W("member")],providers:J,component:X,children:[{path:"administracao",loadChildren:()=>import("./chunk-PF4AEVA5.js").then(e=>e.albumFeatureAdminRoutes)},{path:"",data:{breadcrumb:"Albuns"},title:"Albuns",component:Y},{path:":id",data:{breadcrumb:e=>e.album.title},title:"Album de fotos",resolve:{album:ee},component:Z}]}];export{X as AlbumFeatureShellComponent,it as albumFeatureShellRoutes}; diff --git a/chunk-4FWBEGAE.js b/chunk-4FWBEGAE.js deleted file mode 100644 index 417abcfa..00000000 --- a/chunk-4FWBEGAE.js +++ /dev/null @@ -1,4 +0,0 @@ -import{Q as lt,U as ut,V as Q,Y as K,ca as bt,f as E,ha as pt,j as S,k as ct,l as C,q as dt,ra as ft,x as mt}from"./chunk-W5KNOAKV.js";import{$ as nt,A as H,F as rt,Fa as w,G as Z,Ja as U,Kb as b,L as p,Mb as k,O as Y,Pa as it,Sb as v,Vb as l,Vc as y,Wb as g,Wc as st,a as u,bc as x,cc as _,dc as m,ea as G,ed as q,fa as F,g as W,ha as N,j,k as $,ka as s,nc as h,oc as c,p as at,t as ot,ub as f,vb as A,wb as B,xa as O}from"./chunk-TEKHUYWQ.js";var ht=class{};var D=class{};var R=class{};var z=class{};function Se(o){return{provide:R,useValue:o}}function Ce(o){return{provide:z,useClass:o}}function vt(o,r){return{provide:o,useFactory(...t){return new o(...t)},deps:r}}function ze(o,r,t){return{provide:o,useFactory(...a){return new r(...a)},deps:t}}function gt(o,r,t){return{provide:o,useFactory(...a){return new r(...a)},deps:t}}function Oe(o,r){return{provide:o,useFactory(...t){return new o(...t)},deps:r}}var J=class{http;env;constructor(r,t){this.http=r,this.env=t}findRepoContributors(r){let t=`${this.env.api.url}/github/contributors/${r}`;return this.http.get(t)}findRepoIssues(r){let t=`${this.env.api.url}/github/issues/${r}`;return this.http.get(t)}};function Ue(){return gt(D,J,[z,R])}var Ye=["10m","20m","30m","40m","50m","1h","1h e 10m","1h e 20m","1h e 30m","1h e 40m","1h e 50m","2h","2h e 10m","2h e 20m","2h e 30m","2h e 40m","2h e 50m","3h","3h e 10m","3h e 20m","3h e 30m","3h e 40m","3h e 50m","4h","4h e 10m","4h e 20m","4h e 30m","4h e 40m","4h e 50m","5h","5h e 10m","5h e 20m","5h e 30m","5h e 40m","5h e 50m","6h","6h e 10m","6h e 20m","6h e 30m","6h e 40m","6h e 50m","7h","7h e 10m","7h e 20m","7h e 30m","7h e 40m","7h e 50m","8h","8h e 10m","8h e 20m","8h e 30m","8h e 40m","8h e 50m","9h","9h e 10m","9h e 20m","9h e 30m","9h e 40m","9h e 50m"];function ea(o){let[r,t]=o.split(" e "),a=+r.replace("h",""),e=t?+t.replace("m",""):0;return a*60+e}function oa(o,r={listUnicodeChar:""}){let{listUnicodeChar:t=!1,stripListLeaders:a=!0,useImgAltText:e=!0,preserveLinks:n=!1,gfm:d=!0}=r??{},i=o??"";i=i.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{a&&(t?i=i.replace(/^([\s\t]*)([\\*\-\\+]|\d+\.)\s+/gm,t+" $1"):i=i.replace(/^([\s\t]*)([\\*\-\\+]|\d+\.)\s+/gm,"$1")),d&&(i=i.replace(/\n={2,}/g,` -`).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),n&&(i=i.replace(/\[(.*?)\][\\[\\(](.*?)[\]\\)]/g,"$1 ($2)"));let L;do L=i,i=new DOMParser().parseFromString(i,"text/html").body.textContent||"",i=i.replace(/^[=\\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\\!\[(.*?)\][\\[\\(].*?[\]\\)]/g,e?"$1":"").replace(/\[(.*?)\][\\[\\(].*?[\]\\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,` - -`).replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{1,}/g," ");while(i!==L)}catch(L){return console.error(L),o}return i}var Bt=o=>new Promise(o);var la=(o,r=500)=>Bt(t=>setTimeout(()=>t(o()),r));function yt(o){return Object.entries(o)}function xt({page:o=0,size:r=10,filter:t={},sort:a={},location:e}={}){let n=new URLSearchParams;n.append("page",`${o}`),n.append("size",`${r}`);for(let[d,i]of Object.entries(t))i&&n.append(`filter[${d}]`,`${i}`);for(let[d,i]of Object.entries(a))i&&n.append(`sort[${d}]`,`${i}`);if(e)for(let[d,i]of Object.entries(e))i&&n.append(`location[${d}]`,`${i}`);return n}function Tt(o){return Object.keys(o)}var Pt=/[\\^$.*+?()[\]{}|]/g,Fa=RegExp(Pt.source);function Aa(o){return Object.freeze(o)}var $a=(o,r)=>Math.round(o/r*100);var wt=class o{x;y;constructor(r=0,t=0){this.x=r,this.y=t}set(r,t){this.x=r,this.y=t}clone(){return new o(this.x,this.y)}copy(r){return this.x=r.x,this.y=r.y,this}add(r){return this.x+=r.x,this.y+=r.y,this}sub(r){return this.x-=r.x,this.y-=r.y,this}};function Ao(o){let r=new $(o);return{current:()=>r.value,update:n=>{r.next(n)},observe:()=>r.asObservable()}}var M=class{#t;state$;get state(){return this.#t.value}constructor(r){let t=Object.freeze(r);this.#t=new $(t),this.state$=this.#t.asObservable()}select(r){return this.state$.pipe(ot(t=>r(t)),Y())}setState(r){this.#t.next(u(u({},this.state),r))}};var kt=class{http;env;endpoint;get url(){return`${this.env.api.url}/${this.endpoint}`}constructor(r,t,a){this.http=r,this.env=t,this.endpoint=a}create(r){return this.http.post(this.url,r)}find(r){let t=[this.url,xt(r)];return this.http.get(t.join("?"))}findOne(r){let t=[this.url,r];return this.http.get(t.join("/"))}update(r,t){let a=[this.url,r];return this.http.patch(a.join("/"),t)}delete(r){let t=[this.url,r];return this.http.delete(t.join("/"))}};var X=class extends M{githubService;contributors$=this.select(r=>r.contributors);issues$=this.select(r=>r.issues);constructor(r){super({contributors:[],issues:[]}),this.githubService=r}loadContributors(r){let t=this.githubService.findRepoContributors(r),a=e=>{this.setState({contributors:e})};t.pipe(p(1)).subscribe(a)}loadIssues(r){let t=this.githubService.findRepoIssues(r),a=e=>{this.setState({issues:e})};t.pipe(p(1)).subscribe(a)}};function Er(){return vt(X,[D])}var St=class{static toParams(r,t){return{sort:t?`${r}:${t}`:null}}static fromParams(r){let[t,a]=r.split(":")??[];return a?{[t]:a}:{}}};var Ct=class extends M{response$=this.select(r=>r.response);selected$=this.select(r=>r.selected);setParams(r){this.setState({params:r})}patchParams(r){let t=u(u({},this.state.params),r);this.setState({params:t})}setPage(r,t=10){let{params:a}=this.state;a.page=r,a.size=t,this.setState({params:a})}setFilter(r){let{params:t}=this.state;t.filter=r,this.setState({params:t})}setSort(r){let{params:t}=this.state;t.sort=r,this.setState({params:t})}onLoad(r){r.pipe(p(1)).subscribe(t=>this.setState({response:t}))}onLoadOne(r){this.setState({selected:null}),r.pipe(p(1)).subscribe(t=>this.setState({selected:t}))}onCreate(r){r.pipe(p(1)).subscribe(()=>this.load())}onUpdate(r){r.pipe(p(1)).subscribe(()=>this.load())}onDelete(r){r.pipe(p(1)).subscribe(()=>this.load())}};var Dt=["mat-button",""],T=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],P=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],jt='.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',tt="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}",Rt=["mat-fab",""],$t=["mat-mini-fab",""],zt='.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}',Mt=["mat-icon-button",""],It=["*"],Nt='.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',Ut=new N("MAT_BUTTON_CONFIG");var Wt=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],V=(()=>{class o{_elementRef=s(U);_platform=s(E);_ngZone=s(w);_animationMode=s(it,{optional:!0});_focusMonitor=s(lt);_rippleLoader=s(ft);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){s(dt).load(bt);let t=s(Ut,{optional:!0}),a=this._elementRef.nativeElement,e=a.classList;this.disabledInteractive=t?.disabledInteractive??!1,this.color=t?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(let{attribute:n,mdcClasses:d}of Wt)a.hasAttribute(n)&&e.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",a){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,a):this._elementRef.nativeElement.focus(a)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(a){return new(a||o)};static \u0275dir=B({type:o,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",y],disabled:[2,"disabled","disabled",y],ariaDisabled:[2,"aria-disabled","ariaDisabled",y],disabledInteractive:[2,"disabledInteractive","disabledInteractive",y]},features:[k]})}return o})();var Ft=(()=>{class o extends V{tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_haltDisabledEvents=t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())};_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let t;return function(e){return(t||(t=O(o)))(e||o)}})();static \u0275dir=B({type:o,inputs:{tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:st(t)]},features:[k,b]})}return o})(),yn=(()=>{class o extends V{static \u0275fac=(()=>{let t;return function(e){return(t||(t=O(o)))(e||o)}})();static \u0275cmp=f({type:o,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(a,e){a&2&&(v("disabled",e._getDisabledAttribute())("aria-disabled",e._getAriaDisabled()),g(e.color?"mat-"+e.color:""),l("mat-mdc-button-disabled",e.disabled)("mat-mdc-button-disabled-interactive",e.disabledInteractive)("_mat-animation-noopable",e._animationMode==="NoopAnimations")("mat-unthemed",!e.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[b],attrs:Dt,ngContentSelectors:P,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,e){a&1&&(h(T),m(0,"span",0),c(1),x(2,"span",1),c(3,1),_(),c(4,2),m(5,"span",2)(6,"span",3)),a&2&&l("mdc-button__ripple",!e._isFab)("mdc-fab__ripple",e._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return o})(),Ht=(()=>{class o extends Ft{static \u0275fac=(()=>{let t;return function(e){return(t||(t=O(o)))(e||o)}})();static \u0275cmp=f({type:o,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(a,e){a&2&&(v("disabled",e._getDisabledAttribute())("tabindex",e.disabled&&!e.disabledInteractive?-1:e.tabIndex)("aria-disabled",e._getAriaDisabled()),g(e.color?"mat-"+e.color:""),l("mat-mdc-button-disabled",e.disabled)("mat-mdc-button-disabled-interactive",e.disabledInteractive)("_mat-animation-noopable",e._animationMode==="NoopAnimations")("mat-unthemed",!e.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[b],attrs:Dt,ngContentSelectors:P,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,e){a&1&&(h(T),m(0,"span",0),c(1),x(2,"span",1),c(3,1),_(),c(4,2),m(5,"span",2)(6,"span",3)),a&2&&l("mdc-button__ripple",!e._isFab)("mdc-fab__ripple",e._isFab)},styles:[jt,tt],encapsulation:2,changeDetection:0})}return o})(),et=new N("mat-mdc-fab-default-options",{providedIn:"root",factory:Ot});function Ot(){return{color:"accent"}}var I=Ot(),xn=(()=>{class o extends V{_options=s(et,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||I,this.color=this._options.color||I.color}static \u0275fac=function(a){return new(a||o)};static \u0275cmp=f({type:o,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(a,e){a&2&&(v("disabled",e._getDisabledAttribute())("aria-disabled",e._getAriaDisabled()),g(e.color?"mat-"+e.color:""),l("mat-mdc-button-disabled",e.disabled)("mat-mdc-button-disabled-interactive",e.disabledInteractive)("_mat-animation-noopable",e._animationMode==="NoopAnimations")("mat-unthemed",!e.color)("mat-mdc-button-base",!0)("mdc-fab--extended",e.extended)("mat-mdc-extended-fab",e.extended))},inputs:{extended:[2,"extended","extended",y]},exportAs:["matButton"],features:[k,b],attrs:Rt,ngContentSelectors:P,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,e){a&1&&(h(T),m(0,"span",0),c(1),x(2,"span",1),c(3,1),_(),c(4,2),m(5,"span",2)(6,"span",3)),a&2&&l("mdc-button__ripple",!e._isFab)("mdc-fab__ripple",e._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0})}return o})(),_n=(()=>{class o extends V{_options=s(et,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||I,this.color=this._options.color||I.color}static \u0275fac=function(a){return new(a||o)};static \u0275cmp=f({type:o,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(a,e){a&2&&(v("disabled",e._getDisabledAttribute())("aria-disabled",e._getAriaDisabled()),g(e.color?"mat-"+e.color:""),l("mat-mdc-button-disabled",e.disabled)("mat-mdc-button-disabled-interactive",e.disabledInteractive)("_mat-animation-noopable",e._animationMode==="NoopAnimations")("mat-unthemed",!e.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[b],attrs:$t,ngContentSelectors:P,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,e){a&1&&(h(T),m(0,"span",0),c(1),x(2,"span",1),c(3,1),_(),c(4,2),m(5,"span",2)(6,"span",3)),a&2&&l("mdc-button__ripple",!e._isFab)("mdc-fab__ripple",e._isFab)},styles:[zt],encapsulation:2,changeDetection:0})}return o})(),wn=(()=>{class o extends Ht{_options=s(et,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||I,this.color=this._options.color||I.color}static \u0275fac=function(a){return new(a||o)};static \u0275cmp=f({type:o,selectors:[["a","mat-fab",""]],hostVars:19,hostBindings:function(a,e){a&2&&(v("disabled",e._getDisabledAttribute())("tabindex",e.disabled&&!e.disabledInteractive?-1:e.tabIndex)("aria-disabled",e._getAriaDisabled()),g(e.color?"mat-"+e.color:""),l("mat-mdc-button-disabled",e.disabled)("mat-mdc-button-disabled-interactive",e.disabledInteractive)("_mat-animation-noopable",e._animationMode==="NoopAnimations")("mat-unthemed",!e.color)("mat-mdc-button-base",!0)("mdc-fab--extended",e.extended)("mat-mdc-extended-fab",e.extended))},inputs:{extended:[2,"extended","extended",y]},exportAs:["matButton","matAnchor"],features:[k,b],attrs:Rt,ngContentSelectors:P,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,e){a&1&&(h(T),m(0,"span",0),c(1),x(2,"span",1),c(3,1),_(),c(4,2),m(5,"span",2)(6,"span",3)),a&2&&l("mdc-button__ripple",!e._isFab)("mdc-fab__ripple",e._isFab)},styles:[zt],encapsulation:2,changeDetection:0})}return o})();var kn=(()=>{class o extends V{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(a){return new(a||o)};static \u0275cmp=f({type:o,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(a,e){a&2&&(v("disabled",e._getDisabledAttribute())("aria-disabled",e._getAriaDisabled()),g(e.color?"mat-"+e.color:""),l("mat-mdc-button-disabled",e.disabled)("mat-mdc-button-disabled-interactive",e.disabledInteractive)("_mat-animation-noopable",e._animationMode==="NoopAnimations")("mat-unthemed",!e.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[b],attrs:Mt,ngContentSelectors:It,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,e){a&1&&(h(),m(0,"span",0),c(1),m(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',tt],encapsulation:2,changeDetection:0})}return o})(),Sn=(()=>{class o extends Ft{static \u0275fac=(()=>{let t;return function(e){return(t||(t=O(o)))(e||o)}})();static \u0275cmp=f({type:o,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(a,e){a&2&&(v("disabled",e._getDisabledAttribute())("tabindex",e.disabled&&!e.disabledInteractive?-1:e.tabIndex)("aria-disabled",e._getAriaDisabled()),g(e.color?"mat-"+e.color:""),l("mat-mdc-button-disabled",e.disabled)("mat-mdc-button-disabled-interactive",e.disabledInteractive)("_mat-animation-noopable",e._animationMode==="NoopAnimations")("mat-unthemed",!e.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[b],attrs:Mt,ngContentSelectors:It,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(a,e){a&1&&(h(),m(0,"span",0),c(1),m(2,"span",1)(3,"span",2))},styles:[Nt,tt],encapsulation:2,changeDetection:0})}return o})(),Cn=(()=>{class o{static \u0275fac=function(a){return new(a||o)};static \u0275mod=A({type:o});static \u0275inj=F({imports:[K,pt,K]})}return o})();var Zt=20,Yt=(()=>{class o{_ngZone=s(w);_platform=s(E);_document=s(q,{optional:!0});constructor(){}_scrolled=new j;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let a=this.scrollContainers.get(t);a&&(a.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Zt){return this._platform.isBrowser?new W(a=>{this._globalSubscription||this._addGlobalListener();let e=t>0?this._scrolled.pipe(Z(t)).subscribe(a):this._scrolled.subscribe(a);return this._scrolledCount++,()=>{e.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):at()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,a)=>this.deregister(a)),this._scrolled.complete()}ancestorScrolled(t,a){let e=this.getAncestorScrollContainers(t);return this.scrolled(a).pipe(rt(n=>!n||e.indexOf(n)>-1))}getAncestorScrollContainers(t){let a=[];return this.scrollContainers.forEach((e,n)=>{this._scrollableContainsElement(n,t)&&a.push(n)}),a}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,a){let e=mt(a),n=t.getElementRef().nativeElement;do if(e==n)return!0;while(e=e.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return H(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(a){return new(a||o)};static \u0275prov=G({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),pi=(()=>{class o{elementRef=s(U);scrollDispatcher=s(Yt);ngZone=s(w);dir=s(ut,{optional:!0});_destroyed=new j;_elementScrolled=new W(t=>this.ngZone.runOutsideAngular(()=>H(this.elementRef.nativeElement,"scroll").pipe(nt(this._destroyed)).subscribe(t)));constructor(){}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let a=this.elementRef.nativeElement,e=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=e?t.end:t.start),t.right==null&&(t.right=e?t.start:t.end),t.bottom!=null&&(t.top=a.scrollHeight-a.clientHeight-t.bottom),e&&C()!=S.NORMAL?(t.left!=null&&(t.right=a.scrollWidth-a.clientWidth-t.left),C()==S.INVERTED?t.left=t.right:C()==S.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=a.scrollWidth-a.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let a=this.elementRef.nativeElement;ct()?a.scrollTo(t):(t.top!=null&&(a.scrollTop=t.top),t.left!=null&&(a.scrollLeft=t.left))}measureScrollOffset(t){let a="left",e="right",n=this.elementRef.nativeElement;if(t=="top")return n.scrollTop;if(t=="bottom")return n.scrollHeight-n.clientHeight-n.scrollTop;let d=this.dir&&this.dir.value=="rtl";return t=="start"?t=d?e:a:t=="end"&&(t=d?a:e),d&&C()==S.INVERTED?t==a?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:d&&C()==S.NEGATED?t==a?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==a?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}static \u0275fac=function(a){return new(a||o)};static \u0275dir=B({type:o,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return o})(),Gt=20,fi=(()=>{class o{_platform=s(E);_viewportSize;_change=new j;_changeListener=t=>{this._change.next(t)};_document=s(q,{optional:!0});constructor(){s(w).runOutsideAngular(()=>{if(this._platform.isBrowser){let a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:a,height:e}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+e,right:t.left+a,height:e,width:a}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,a=this._getWindow(),e=t.documentElement,n=e.getBoundingClientRect(),d=-n.top||t.body.scrollTop||a.scrollY||e.scrollTop||0,i=-n.left||t.body.scrollLeft||a.scrollX||e.scrollLeft||0;return{top:d,left:i}}change(t=Gt){return t>0?this._change.pipe(Z(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(a){return new(a||o)};static \u0275prov=G({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var At=(()=>{class o{static \u0275fac=function(a){return new(a||o)};static \u0275mod=A({type:o});static \u0275inj=F({})}return o})(),hi=(()=>{class o{static \u0275fac=function(a){return new(a||o)};static \u0275mod=A({type:o});static \u0275inj=F({imports:[Q,At,Q,At]})}return o})();export{ht as a,R as b,z as c,vt as d,ze as e,Oe as f,Ue as g,Ye as h,ea as i,oa as j,Bt as k,la as l,yt as m,xt as n,Tt as o,Aa as p,$a as q,wt as r,Ao as s,M as t,kt as u,X as v,Er as w,Se as x,Ce as y,St as z,Ct as A,yn as B,Ht as C,xn as D,_n as E,wn as F,kn as G,Sn as H,Cn as I,Yt as J,pi as K,fi as L,At as M,hi as N}; diff --git a/chunk-YJNMZPRM.js b/chunk-4JU575PW.js similarity index 96% rename from chunk-YJNMZPRM.js rename to chunk-4JU575PW.js index 7ce96aec..103f77e1 100644 --- a/chunk-YJNMZPRM.js +++ b/chunk-4JU575PW.js @@ -1 +1 @@ -import{d as Y,e as Z}from"./chunk-LFAX4DK3.js";import{c as ne,d as oe,e as ie,f as h}from"./chunk-XC6WES62.js";import{a as ee,b as te}from"./chunk-3SNV2MVI.js";import{B as x,I as C}from"./chunk-4FWBEGAE.js";import{b as L,i as N,j as Q}from"./chunk-2K6IALUF.js";import{a as G,c as $,e as J,h as K,l as U,o as W,x as X}from"./chunk-EDIJ2EBQ.js";import{$b as A,Gb as B,Jc as b,Kb as s,Kc as w,L as _,Tb as g,Ua as E,_ as T,_b as z,ac as V,bc as i,cc as a,dc as f,fb as I,hc as j,ka as O,kc as c,lb as d,o as F,ta as y,ua as D,ub as p,uc as q,vc as H,wb as R,xa as v,xc as r,yc as u}from"./chunk-TEKHUYWQ.js";var M=(()=>{class t{ref=O(ne);data=O(oe);close(o,n){this.ref.close(o,{focusOrigin:n})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t})}return t})();function de(t,m){if(t&1&&(i(0,"p"),r(1),a()),t&2){let o=m.$implicit;d(),u(o)}}var re=(()=>{class t extends M{static \u0275fac=(()=>{let o;return function(e){return(o||(o=v(t)))(e||t)}})();static \u0275cmp=p({type:t,selectors:[["devmx-confirm-dialog"]],features:[s],decls:12,vars:2,consts:[[1,"devmx-dialog-header"],["name","question-hexagon",3,"size"],[1,"devmx-dialog-content"],[1,"devmx-dialog-footer"],["type","button","mat-button","","color","accent",3,"click"],["type","button","mat-button","","color","warn",3,"click"]],template:function(n,e){n&1&&(i(0,"header",0),f(1,"devmx-icon",1),i(2,"h2"),r(3),a()(),i(4,"div",2),A(5,de,2,1,"p",null,z),a(),i(7,"footer",3)(8,"button",4),c("click",function(){return e.close(!1)}),r(9," N\xE3o, cancelar "),a(),i(10,"button",5),c("click",function(){return e.close(!0)}),r(11," Sim, continuar "),a()()),n&2&&(d(),g("size",32),d(2),u(e.data.title),d(2),V(e.data.message))},dependencies:[h,C,x,G],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:32em;gap:1em;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{display:flex;padding:.6em 1em;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.6em}[_nghost-%COMP%] .devmx-dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1em 1em 0;max-height:50vh}[_nghost-%COMP%] .devmx-dialog-footer[_ngcontent-%COMP%]{gap:1em;padding:1em;display:flex;justify-content:flex-end}@media (min-width: 768px){[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{gap:1em}}@media (max-width: 767px){[_nghost-%COMP%]{max-width:74vw}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{padding-top:1em;flex-direction:column;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.4em}}"],changeDetection:0})}return t})();var le=(()=>{class t extends M{control=new U(this.data.value,{nonNullable:!0,validators:this.data.required?[J.required]:[]});onSubmit(){if(this.control.valid)return this.close(this.control.value);this.control.markAsTouched()}static \u0275fac=(()=>{let o;return function(e){return(o||(o=v(t)))(e||t)}})();static \u0275cmp=p({type:t,selectors:[["devmx-prompt-dialog"]],features:[s],decls:13,vars:3,consts:[[1,"devmx-dialog-header"],[1,"devmx-dialog-content"],["matInput","",3,"formControl"],[1,"devmx-dialog-footer",2,"flex-direction","row-reverse","justify-content","flex-start"],["type","button","mat-button","","color","primary",3,"click"],["type","button","mat-button","","color","accent",3,"click"]],template:function(n,e){n&1&&(i(0,"header",0)(1,"h2"),r(2),a()(),i(3,"div",1)(4,"mat-form-field")(5,"mat-label"),r(6),a(),f(7,"input",2),a()(),i(8,"footer",3)(9,"button",4),c("click",function(){return e.onSubmit()}),r(10," Continuar "),a(),i(11,"button",5),c("click",function(){return e.close()}),r(12," Cancelar "),a()()),n&2&&(d(2),u(e.data.title),d(4),u(e.data.label),d(),g("formControl",e.control))},dependencies:[X,$,K,W,Q,N,L,C,x,Z,Y,h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:32em;gap:1em;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{display:flex;padding:.6em 1em;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.6em}[_nghost-%COMP%] .devmx-dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1em 1em 0;max-height:50vh}[_nghost-%COMP%] .devmx-dialog-footer[_ngcontent-%COMP%]{gap:1em;padding:1em;display:flex;justify-content:flex-end}@media (min-width: 768px){[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{gap:1em}}@media (max-width: 767px){[_nghost-%COMP%]{max-width:74vw}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{padding-top:1em;flex-direction:column;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.4em}}"],changeDetection:0})}return t})();var ce=["contentRef"],me=(()=>{class t extends M{contentRef=B("contentRef");constructor(){super(),E(()=>{let o=this.contentRef()?.nativeElement;queueMicrotask(()=>{o&&(o.scrollTop=0)})})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=p({type:t,selectors:[["devmx-readme-dialog"]],viewQuery:function(n,e){n&1&&q(e.contentRef,ce,5),n&2&&H()},features:[s],decls:9,vars:5,consts:[["contentRef",""],[1,"devmx-dialog-content",3,"innerHTML"],[1,"devmx-dialog-footer"],["type","button","mat-button","","color","warn",3,"click"],["type","button","mat-raised-button","",3,"click"]],template:function(n,e){if(n&1){let l=j();f(0,"article",1,0),b(2,"markdown"),b(3,"html"),i(4,"footer",2)(5,"button",3),c("click",function(){return y(l),D(e.close(!1))}),r(6," N\xE3o, cancelar "),a(),i(7,"button",4),c("click",function(){return y(l),D(e.close(!0))}),r(8," Sim, continuar "),a()()}n&2&&g("innerHTML",w(3,3,w(2,1,e.data)),I)},dependencies:[h,C,x,te,ee],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:32em;gap:1em;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{display:flex;padding:.6em 1em;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.6em}[_nghost-%COMP%] .devmx-dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1em 1em 0;max-height:50vh}[_nghost-%COMP%] .devmx-dialog-footer[_ngcontent-%COMP%]{gap:1em;padding:1em;display:flex;justify-content:flex-end}@media (min-width: 768px){[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{gap:1em}}@media (max-width: 767px){[_nghost-%COMP%]{max-width:74vw}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{padding-top:1em;flex-direction:column;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.4em}}"],changeDetection:0})}return t})();var P=class{dialog;constructor(m){this.dialog=m}confirm(...m){let n={title:"Muita calma!",message:m};return this.dialog.open(re,{data:n,panelClass:"devmx-confirm-dialog",disableClose:!0}).closed.pipe(_(1))}prompt(m,o,n){let l={title:"Antes de continuar",label:m,value:o,required:n};return this.dialog.open(le,{data:l,panelClass:"devmx-prompt-dialog"}).closed.pipe(_(1))}readMe(m){let o="devmx-read-me-dialog";return F(fetch(m).then(e=>e.text())).pipe(T(e=>{let l={data:e,panelClass:o,disableClose:!0};return this.dialog.open(me,l).closed.pipe(_(1))}))}};function Ge(){return{provide:P,deps:[ie]}}export{P as a,Ge as b}; +import{c as ne,d as oe,e as ie,f as h}from"./chunk-Q2N7RZTH.js";import{a as ee,b as te}from"./chunk-VAO4SSMZ.js";import{d as Y,e as Z}from"./chunk-VVQ6JEVH.js";import{b as L,i as N,j as Q}from"./chunk-AND6K73U.js";import{q as x,x as C}from"./chunk-6BGAZ7SQ.js";import{a as G,c as $,e as J,h as K,l as U,o as W,x as X}from"./chunk-EDIJ2EBQ.js";import{$b as A,Gb as B,Jc as b,Kb as s,Kc as w,L as _,Tb as g,Ua as E,_ as T,_b as z,ac as V,bc as i,cc as a,dc as f,fb as I,hc as j,ka as O,kc as c,lb as d,o as F,ta as y,ua as D,ub as p,uc as q,vc as H,wb as R,xa as v,xc as r,yc as u}from"./chunk-TEKHUYWQ.js";var M=(()=>{class t{ref=O(ne);data=O(oe);close(o,n){this.ref.close(o,{focusOrigin:n})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=R({type:t})}return t})();function de(t,m){if(t&1&&(i(0,"p"),r(1),a()),t&2){let o=m.$implicit;d(),u(o)}}var re=(()=>{class t extends M{static \u0275fac=(()=>{let o;return function(e){return(o||(o=v(t)))(e||t)}})();static \u0275cmp=p({type:t,selectors:[["devmx-confirm-dialog"]],features:[s],decls:12,vars:2,consts:[[1,"devmx-dialog-header"],["name","question-hexagon",3,"size"],[1,"devmx-dialog-content"],[1,"devmx-dialog-footer"],["type","button","mat-button","","color","accent",3,"click"],["type","button","mat-button","","color","warn",3,"click"]],template:function(n,e){n&1&&(i(0,"header",0),f(1,"devmx-icon",1),i(2,"h2"),r(3),a()(),i(4,"div",2),A(5,de,2,1,"p",null,z),a(),i(7,"footer",3)(8,"button",4),c("click",function(){return e.close(!1)}),r(9," N\xE3o, cancelar "),a(),i(10,"button",5),c("click",function(){return e.close(!0)}),r(11," Sim, continuar "),a()()),n&2&&(d(),g("size",32),d(2),u(e.data.title),d(2),V(e.data.message))},dependencies:[h,C,x,G],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:32em;gap:1em;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{display:flex;padding:.6em 1em;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.6em}[_nghost-%COMP%] .devmx-dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1em 1em 0;max-height:50vh}[_nghost-%COMP%] .devmx-dialog-footer[_ngcontent-%COMP%]{gap:1em;padding:1em;display:flex;justify-content:flex-end}@media (min-width: 768px){[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{gap:1em}}@media (max-width: 767px){[_nghost-%COMP%]{max-width:74vw}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{padding-top:1em;flex-direction:column;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.4em}}"],changeDetection:0})}return t})();var le=(()=>{class t extends M{control=new U(this.data.value,{nonNullable:!0,validators:this.data.required?[J.required]:[]});onSubmit(){if(this.control.valid)return this.close(this.control.value);this.control.markAsTouched()}static \u0275fac=(()=>{let o;return function(e){return(o||(o=v(t)))(e||t)}})();static \u0275cmp=p({type:t,selectors:[["devmx-prompt-dialog"]],features:[s],decls:13,vars:3,consts:[[1,"devmx-dialog-header"],[1,"devmx-dialog-content"],["matInput","",3,"formControl"],[1,"devmx-dialog-footer",2,"flex-direction","row-reverse","justify-content","flex-start"],["type","button","mat-button","","color","primary",3,"click"],["type","button","mat-button","","color","accent",3,"click"]],template:function(n,e){n&1&&(i(0,"header",0)(1,"h2"),r(2),a()(),i(3,"div",1)(4,"mat-form-field")(5,"mat-label"),r(6),a(),f(7,"input",2),a()(),i(8,"footer",3)(9,"button",4),c("click",function(){return e.onSubmit()}),r(10," Continuar "),a(),i(11,"button",5),c("click",function(){return e.close()}),r(12," Cancelar "),a()()),n&2&&(d(2),u(e.data.title),d(4),u(e.data.label),d(),g("formControl",e.control))},dependencies:[X,$,K,W,Q,N,L,C,x,Z,Y,h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:32em;gap:1em;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{display:flex;padding:.6em 1em;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.6em}[_nghost-%COMP%] .devmx-dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1em 1em 0;max-height:50vh}[_nghost-%COMP%] .devmx-dialog-footer[_ngcontent-%COMP%]{gap:1em;padding:1em;display:flex;justify-content:flex-end}@media (min-width: 768px){[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{gap:1em}}@media (max-width: 767px){[_nghost-%COMP%]{max-width:74vw}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{padding-top:1em;flex-direction:column;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.4em}}"],changeDetection:0})}return t})();var ce=["contentRef"],me=(()=>{class t extends M{contentRef=B("contentRef");constructor(){super(),E(()=>{let o=this.contentRef()?.nativeElement;queueMicrotask(()=>{o&&(o.scrollTop=0)})})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=p({type:t,selectors:[["devmx-readme-dialog"]],viewQuery:function(n,e){n&1&&q(e.contentRef,ce,5),n&2&&H()},features:[s],decls:9,vars:5,consts:[["contentRef",""],[1,"devmx-dialog-content",3,"innerHTML"],[1,"devmx-dialog-footer"],["type","button","mat-button","","color","warn",3,"click"],["type","button","mat-raised-button","",3,"click"]],template:function(n,e){if(n&1){let l=j();f(0,"article",1,0),b(2,"markdown"),b(3,"html"),i(4,"footer",2)(5,"button",3),c("click",function(){return y(l),D(e.close(!1))}),r(6," N\xE3o, cancelar "),a(),i(7,"button",4),c("click",function(){return y(l),D(e.close(!0))}),r(8," Sim, continuar "),a()()}n&2&&g("innerHTML",w(3,3,w(2,1,e.data)),I)},dependencies:[h,C,x,te,ee],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:32em;gap:1em;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{display:flex;padding:.6em 1em;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.6em}[_nghost-%COMP%] .devmx-dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1em 1em 0;max-height:50vh}[_nghost-%COMP%] .devmx-dialog-footer[_ngcontent-%COMP%]{gap:1em;padding:1em;display:flex;justify-content:flex-end}@media (min-width: 768px){[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{gap:1em}}@media (max-width: 767px){[_nghost-%COMP%]{max-width:74vw}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%]{padding-top:1em;flex-direction:column;align-items:center}[_nghost-%COMP%] .devmx-dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.4em}}"],changeDetection:0})}return t})();var P=class{dialog;constructor(m){this.dialog=m}confirm(...m){let n={title:"Muita calma!",message:m};return this.dialog.open(re,{data:n,panelClass:"devmx-confirm-dialog",disableClose:!0}).closed.pipe(_(1))}prompt(m,o,n){let l={title:"Antes de continuar",label:m,value:o,required:n};return this.dialog.open(le,{data:l,panelClass:"devmx-prompt-dialog"}).closed.pipe(_(1))}readMe(m){let o="devmx-read-me-dialog";return F(fetch(m).then(e=>e.text())).pipe(T(e=>{let l={data:e,panelClass:o,disableClose:!0};return this.dialog.open(me,l).closed.pipe(_(1))}))}};function Ge(){return{provide:P,deps:[ie]}}export{P as a,Ge as b}; diff --git a/chunk-4Z5R5VSG.js b/chunk-4Z5R5VSG.js new file mode 100644 index 00000000..05df9576 --- /dev/null +++ b/chunk-4Z5R5VSG.js @@ -0,0 +1 @@ +import{k as n}from"./chunk-XYJHVZQT.js";function m(a){return n(e=>{let o=new Image;o.onload=()=>e(o),o.src=a})}export{m as a}; diff --git a/chunk-VE4FGS76.js b/chunk-56M6HFOE.js similarity index 83% rename from chunk-VE4FGS76.js rename to chunk-56M6HFOE.js index b93fd823..9593d8a5 100644 --- a/chunk-VE4FGS76.js +++ b/chunk-56M6HFOE.js @@ -1 +1 @@ -import{d as D,e as S}from"./chunk-LFAX4DK3.js";import{a as y}from"./chunk-A3N3AUUJ.js";import{b as d,e as f,i as h,j as C}from"./chunk-2K6IALUF.js";import{a as g,c as M,h as b,l as v,o as F,x}from"./chunk-EDIJ2EBQ.js";import{Ha as r,Ia as a,J as i,Tb as l,bc as s,cc as n,dc as p,lb as m,ub as c,xc as u}from"./chunk-TEKHUYWQ.js";var V=(()=>{class e{control=new v("",{nonNullable:!0});debounce=a(200);searchChange=r();constructor(){this.control.valueChanges.pipe(y(),i(this.debounce())).subscribe(o=>this.searchChange.emit(o??""))}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=c({type:e,selectors:[["devmx-search-field"]],inputs:{debounce:[1,"debounce"]},outputs:{searchChange:"searchChange"},decls:5,vars:1,consts:[[1,"search-field"],["matInput","",3,"formControl"],["matIconSuffix","","name","zoom-search"]],template:function(t,I){t&1&&(s(0,"mat-form-field",0)(1,"mat-label"),u(2,"Busca"),n(),p(3,"input",1)(4,"devmx-icon",2),n()),t&2&&(m(3),l("formControl",I.control))},dependencies:[x,M,b,F,C,h,d,f,S,D,g],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}"],changeDetection:0})}return e})();export{V as a}; +import{d as D,e as S}from"./chunk-VVQ6JEVH.js";import{b as d,e as f,i as h,j as C}from"./chunk-AND6K73U.js";import{a as y}from"./chunk-A3N3AUUJ.js";import{a as g,c as M,h as b,l as v,o as F,x}from"./chunk-EDIJ2EBQ.js";import{Ha as r,Ia as a,J as i,Tb as l,bc as s,cc as n,dc as p,lb as m,ub as c,xc as u}from"./chunk-TEKHUYWQ.js";var V=(()=>{class e{control=new v("",{nonNullable:!0});debounce=a(200);searchChange=r();constructor(){this.control.valueChanges.pipe(y(),i(this.debounce())).subscribe(o=>this.searchChange.emit(o??""))}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=c({type:e,selectors:[["devmx-search-field"]],inputs:{debounce:[1,"debounce"]},outputs:{searchChange:"searchChange"},decls:5,vars:1,consts:[[1,"search-field"],["matInput","",3,"formControl"],["matIconSuffix","","name","zoom-search"]],template:function(t,I){t&1&&(s(0,"mat-form-field",0)(1,"mat-label"),u(2,"Busca"),n(),p(3,"input",1)(4,"devmx-icon",2),n()),t&2&&(m(3),l("formControl",I.control))},dependencies:[x,M,b,F,C,h,d,f,S,D,g],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}"],changeDetection:0})}return e})();export{V as a}; diff --git a/chunk-4Y7TZHD4.js b/chunk-5BAEVBCP.js similarity index 92% rename from chunk-4Y7TZHD4.js rename to chunk-5BAEVBCP.js index 89a19a2b..5f7e02fc 100644 --- a/chunk-4Y7TZHD4.js +++ b/chunk-5BAEVBCP.js @@ -1 +1 @@ -import{a as nt}from"./chunk-DUF4HXV7.js";import{a as ot}from"./chunk-VE4FGS76.js";import{d as Z,e as tt}from"./chunk-LFAX4DK3.js";import{a as x,b as S,c as et,d as it,e as k,f as D,g as v,h as b}from"./chunk-JX4IWPKV.js";import{a as X}from"./chunk-LVUYG7JQ.js";import{c as Y}from"./chunk-VYHC3V3G.js";import{B as C,I as M}from"./chunk-4FWBEGAE.js";import{b as N,i as j,j as B}from"./chunk-2K6IALUF.js";import{h as Q,k as U,l as W}from"./chunk-PAP2P7QR.js";import{c as R,h as $,i as z,m as H,p as q,s as J,x as K}from"./chunk-EDIJ2EBQ.js";import{$b as F,Jc as I,Kc as G,L as y,Nb as O,Tb as p,Yb as P,ac as T,bc as n,cc as a,dc as A,hc as E,je as L,ka as c,kc as d,lb as m,mc as g,ta as f,ua as u,ub as _,wc as V,xc as r,zc as h}from"./chunk-TEKHUYWQ.js";var ct=(i,l)=>l.id;function dt(i,l){if(i&1&&(n(0,"mat-list-option",5),r(1),a()),i&2){let t=l.$implicit;p("value",t),m(),h(" ",t.name," ")}}function pt(i,l){if(i&1){let t=E();n(0,"mat-dialog-content",2)(1,"devmx-search-field",3),d("searchChange",function(o){f(t);let s=g();return u(s.onSearchChange(o))}),a(),n(2,"mat-selection-list",4,0),F(4,dt,2,2,"mat-list-option",5,ct),a(),n(6,"devmx-paginator",6),d("pageChange",function(o){f(t);let s=g();return u(s.onPageChange(o))}),a()(),n(7,"mat-dialog-actions",7)(8,"button",8),d("click",function(){f(t);let o=V(3),s=g();return u(s.close(o.selectedOptions.selected))}),r(9," Selecionar "),a(),n(10,"button",9),d("click",function(){f(t);let o=g();return u(o.ref.close())}),r(11,"Cancelar"),a()()}if(i&2){let t=l,e=g();m(2),p("multiple",e.data.multiple),m(2),T(t.data),m(2),p("items",t.items)}}var at=(()=>{class i{ref=c(x);data=c(S);skillFacade=c(X);constructor(){this.skillFacade.load()}onSearchChange(t){this.skillFacade.setFilter({name:t}),this.skillFacade.load()}onPageChange({page:t,size:e}){this.skillFacade.setParams({page:t,size:e}),this.skillFacade.load()}close(t){this.data.multiple?this.ref.close(t.map(e=>e.value)):this.ref.close(t[0].value)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=_({type:i,selectors:[["devmx-select-skill"]],decls:4,vars:3,consts:[["skill",""],["mat-dialog-title",""],[1,"dialog-content"],[3,"searchChange"],[1,"skills",3,"multiple"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(e,o){if(e&1&&(n(0,"h2",1),r(1,"Encontre habilidades"),a(),O(2,pt,12,2),I(3,"async")),e&2){let s;m(2),P((s=G(3,1,o.skillFacade.response$))?2:-1,s)}},dependencies:[Y,ot,b,k,v,D,M,C,W,U,Q,L],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .skills[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return i})();var lt=(()=>{class i{ref=c(x);data=c(S);form=new nt;ngOnInit(){this.data&&this.form.patchValue(this.data)}onSubmit(){if(this.form.valid){let t=this.form.getRawValue();return this.ref.close(t)}this.form.markAllAsTouched()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=_({type:i,selectors:[["devmx-skill"]],decls:13,vars:2,consts:[["mat-dialog-title",""],[3,"submit","formGroup"],[1,"dialog-content"],["matInput","","formControlName","name"],["align","end",1,"dialog-actions"],["mat-flat-button",""],["type","button","mat-button","","mat-dialog-close",""]],template:function(e,o){e&1&&(n(0,"h2",0),r(1),a(),n(2,"form",1),d("submit",function(){return o.onSubmit()}),n(3,"mat-dialog-content",2)(4,"mat-form-field")(5,"mat-label"),r(6,"Habilidade"),a(),A(7,"input",3),a()(),n(8,"mat-dialog-actions",4)(9,"button",5),r(10,"Salvar"),a(),n(11,"button",6),r(12,"Cancelar"),a()()()),e&2&&(m(),h("",o.data!=null&&o.data.id?"Editar":"Cadastrar"," habilidade"),m(),p("formGroup",o.form))},dependencies:[K,H,R,$,z,q,J,B,j,N,b,it,k,v,D,tt,Z,M,C],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return i})();var w=class{dialog;constructor(l){this.dialog=l}select(l={}){return this.dialog.open(at,{data:l}).afterClosed().pipe(y(1))}open(l){return this.dialog.open(lt,{data:l}).afterClosed().pipe(y(1))}};function $t(){return{provide:w,deps:[et]}}export{w as a,$t as b}; +import{a as nt}from"./chunk-DUF4HXV7.js";import{a as ot}from"./chunk-56M6HFOE.js";import{a as x,b as S,c as et,d as it,e as k,f as D,g as v,h as b}from"./chunk-73QBZNVE.js";import{a as X}from"./chunk-GXQHMTZK.js";import{c as Y}from"./chunk-BLJCB4Q7.js";import{d as Z,e as tt}from"./chunk-VVQ6JEVH.js";import{b as N,i as j,j as B}from"./chunk-AND6K73U.js";import{q as C,x as M}from"./chunk-6BGAZ7SQ.js";import{h as Q,k as U,l as W}from"./chunk-PAP2P7QR.js";import{c as R,h as $,i as z,m as H,p as q,s as J,x as K}from"./chunk-EDIJ2EBQ.js";import{$b as F,Jc as I,Kc as G,L as y,Nb as O,Tb as p,Yb as P,ac as T,bc as n,cc as a,dc as A,hc as E,je as L,ka as c,kc as d,lb as m,mc as g,ta as f,ua as u,ub as _,wc as V,xc as r,zc as h}from"./chunk-TEKHUYWQ.js";var ct=(i,l)=>l.id;function dt(i,l){if(i&1&&(n(0,"mat-list-option",5),r(1),a()),i&2){let t=l.$implicit;p("value",t),m(),h(" ",t.name," ")}}function pt(i,l){if(i&1){let t=E();n(0,"mat-dialog-content",2)(1,"devmx-search-field",3),d("searchChange",function(o){f(t);let s=g();return u(s.onSearchChange(o))}),a(),n(2,"mat-selection-list",4,0),F(4,dt,2,2,"mat-list-option",5,ct),a(),n(6,"devmx-paginator",6),d("pageChange",function(o){f(t);let s=g();return u(s.onPageChange(o))}),a()(),n(7,"mat-dialog-actions",7)(8,"button",8),d("click",function(){f(t);let o=V(3),s=g();return u(s.close(o.selectedOptions.selected))}),r(9," Selecionar "),a(),n(10,"button",9),d("click",function(){f(t);let o=g();return u(o.ref.close())}),r(11,"Cancelar"),a()()}if(i&2){let t=l,e=g();m(2),p("multiple",e.data.multiple),m(2),T(t.data),m(2),p("items",t.items)}}var at=(()=>{class i{ref=c(x);data=c(S);skillFacade=c(X);constructor(){this.skillFacade.load()}onSearchChange(t){this.skillFacade.setFilter({name:t}),this.skillFacade.load()}onPageChange({page:t,size:e}){this.skillFacade.setParams({page:t,size:e}),this.skillFacade.load()}close(t){this.data.multiple?this.ref.close(t.map(e=>e.value)):this.ref.close(t[0].value)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=_({type:i,selectors:[["devmx-select-skill"]],decls:4,vars:3,consts:[["skill",""],["mat-dialog-title",""],[1,"dialog-content"],[3,"searchChange"],[1,"skills",3,"multiple"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(e,o){if(e&1&&(n(0,"h2",1),r(1,"Encontre habilidades"),a(),O(2,pt,12,2),I(3,"async")),e&2){let s;m(2),P((s=G(3,1,o.skillFacade.response$))?2:-1,s)}},dependencies:[Y,ot,b,k,v,D,M,C,W,U,Q,L],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .skills[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return i})();var lt=(()=>{class i{ref=c(x);data=c(S);form=new nt;ngOnInit(){this.data&&this.form.patchValue(this.data)}onSubmit(){if(this.form.valid){let t=this.form.getRawValue();return this.ref.close(t)}this.form.markAllAsTouched()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=_({type:i,selectors:[["devmx-skill"]],decls:13,vars:2,consts:[["mat-dialog-title",""],[3,"submit","formGroup"],[1,"dialog-content"],["matInput","","formControlName","name"],["align","end",1,"dialog-actions"],["mat-flat-button",""],["type","button","mat-button","","mat-dialog-close",""]],template:function(e,o){e&1&&(n(0,"h2",0),r(1),a(),n(2,"form",1),d("submit",function(){return o.onSubmit()}),n(3,"mat-dialog-content",2)(4,"mat-form-field")(5,"mat-label"),r(6,"Habilidade"),a(),A(7,"input",3),a()(),n(8,"mat-dialog-actions",4)(9,"button",5),r(10,"Salvar"),a(),n(11,"button",6),r(12,"Cancelar"),a()()()),e&2&&(m(),h("",o.data!=null&&o.data.id?"Editar":"Cadastrar"," habilidade"),m(),p("formGroup",o.form))},dependencies:[K,H,R,$,z,q,J,B,j,N,b,it,k,v,D,tt,Z,M,C],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return i})();var w=class{dialog;constructor(l){this.dialog=l}select(l={}){return this.dialog.open(at,{data:l}).afterClosed().pipe(y(1))}open(l){return this.dialog.open(lt,{data:l}).afterClosed().pipe(y(1))}};function $t(){return{provide:w,deps:[et]}}export{w as a,$t as b}; diff --git a/chunk-6BGAZ7SQ.js b/chunk-6BGAZ7SQ.js new file mode 100644 index 00000000..271aa498 --- /dev/null +++ b/chunk-6BGAZ7SQ.js @@ -0,0 +1 @@ +import{Q as fo,U as bo,V as An,Y as Tn,ca as go,f as te,ha as vo,j as It,k as mo,l as At,q as po,ra as yo,x as ho}from"./chunk-W5KNOAKV.js";import{$ as Ie,$a as $r,$c as no,A as ln,Ab as Kr,Bb as Sn,Cb as xn,Ce as In,Da as zr,Db as Cn,Ea as Rt,Eb as Rn,Ee as lo,F as X,Fa as T,G as dn,Ga as bn,Ge as uo,H as St,I as xt,Ia as Lr,Ja as ht,K as un,Kb as Z,L as Ct,La as Nr,M as Er,Ma as gn,Mb as lt,Na as Ur,Oa as Yt,Oc as Oe,P as Ee,Pa as jr,Q as it,Qa as vn,R as mn,S as Ir,Sb as Y,Sc as Xt,Uc as to,V as Ar,Va as yn,Vb as k,Vc as j,Wa as Qt,Wb as dt,Wc as eo,Xa as Dt,Xd as so,Ya as Mt,Z as pn,Za as Fr,_ as U,_a as Br,a as m,ab as Vr,ad as Pe,b as I,ba as D,bb as Hr,bc as bt,bd as ro,ca as _,cb as qr,cc as gt,cd as oo,db as Wr,dc as C,e as nn,ea as g,eb as ft,ed as M,f as Rr,fa as at,g as rn,ga as Tr,gd as io,h as on,ha as S,i as an,ia as hn,ib as Gr,j as L,ja as v,jd as Et,k as N,ka as d,kb as Kt,kc as Xr,la as Ae,ld as ao,ma as kr,mb as $,md as En,n as ot,na as fn,nb as Zr,nc as tt,nd as Jt,o as A,oa as Or,oc as x,p as h,pa as Gt,pc as Jr,q as qt,qa as G,qb as Yr,r as sn,rb as Qr,rc as Dn,s as Dr,sa as Zt,sb as wn,sc as Mn,t as w,tb as _n,u as Me,ub as V,v as O,vb as ct,w as Wt,wb as J,x as Mr,xa as st,y as cn,ya as Pr,yb as ke,za as Te,ze as co}from"./chunk-TEKHUYWQ.js";var On=class extends oo{supportsDOMEvents=!0},Pn=class e extends On{static makeCurrent(){ro(new e)}onAndCancel(r,t,n){return r.addEventListener(t,n),()=>{r.removeEventListener(t,n)}}dispatchEvent(r,t){r.dispatchEvent(t)}remove(r){r.remove()}createElement(r,t){return t=t||this.getDefaultDocument(),t.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,t){return t==="window"?window:t==="document"?r:t==="body"?r.body:null}getBaseHref(r){let t=zi();return t==null?null:Li(t)}resetBaseElement(){ee=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return so(document.cookie,r)}},ee=null;function zi(){return ee=ee||document.querySelector("base"),ee?ee.getAttribute("href"):null}function Li(e){return new URL(e,document.baseURI).pathname}var Ni=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:e.\u0275fac})}return e})(),zn=new S(""),Ro=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,n){this._zone=n,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,n,o){return this._findPluginFor(n).addEventListener(t,n,o)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(i=>i.supports(t)),!n)throw new _(5101,!1);return this._eventNameToPlugin.set(t,n),n}static \u0275fac=function(n){return new(n||e)(v(zn),v(T))};static \u0275prov=g({token:e,factory:e.\u0275fac})}return e})(),ze=class{_doc;constructor(r){this._doc=r}manager},Ln="ng-app-id";function wo(e){for(let r of e)r.remove()}function _o(e,r){let t=r.createElement("style");return t.textContent=e,t}function Ui(e,r,t){let n=e.head?.querySelectorAll(`style[${Ln}="${r}"]`);if(n)for(let o of n)o.textContent&&(o.removeAttribute(Ln),t.set(o.textContent,{usage:0,elements:[o]}))}function Nn(e,r){let t=r.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t}var Do=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(t,n,o,i={}){this.doc=t,this.appId=n,this.nonce=o,this.isServer=In(i),Ui(t,n,this.inline),this.hosts.add(t.head)}addStyles(t,n){for(let o of t)this.addUsage(o,this.inline,_o);n?.forEach(o=>this.addUsage(o,this.external,Nn))}removeStyles(t,n){for(let o of t)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(t,n,o){let i=n.get(t);i?i.usage++:n.set(t,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(t,this.doc)))})}removeUsage(t,n){let o=n.get(t);o&&(o.usage--,o.usage<=0&&(wo(o.elements),n.delete(t)))}ngOnDestroy(){for(let[,{elements:t}]of[...this.inline,...this.external])wo(t);this.hosts.clear()}addHost(t){this.hosts.add(t);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(t,_o(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(t,Nn(n,this.doc)))}removeHost(t){this.hosts.delete(t)}addElement(t,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(Ln,this.appId),t.appendChild(n)}static \u0275fac=function(n){return new(n||e)(v(M),v(gn),v(vn,8),v(Yt))};static \u0275prov=g({token:e,factory:e.\u0275fac})}return e})(),kn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Fn=/%COMP%/g,Mo="%COMP%",ji=`_nghost-${Mo}`,Fi=`_ngcontent-${Mo}`,Bi=!0,$i=new S("",{providedIn:"root",factory:()=>Bi});function Vi(e){return Fi.replace(Fn,e)}function Hi(e){return ji.replace(Fn,e)}function Eo(e,r){return r.map(t=>t.replace(Fn,e))}var So=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(t,n,o,i,a,c,s,l=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=a,this.platformId=c,this.ngZone=s,this.nonce=l,this.platformIsServer=In(c),this.defaultRenderer=new ne(t,a,s,this.platformIsServer)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Qt.ShadowDom&&(n=I(m({},n),{encapsulation:Qt.Emulated}));let o=this.getOrCreateRenderer(t,n);return o instanceof Le?o.applyToHost(t):o instanceof re&&o.applyStyles(),o}getOrCreateRenderer(t,n){let o=this.rendererByCompId,i=o.get(n.id);if(!i){let a=this.doc,c=this.ngZone,s=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(n.encapsulation){case Qt.Emulated:i=new Le(s,l,n,this.appId,u,a,c,p);break;case Qt.ShadowDom:return new Un(s,l,t,n,a,c,this.nonce,p);default:i=new re(s,l,n,u,a,c,p);break}o.set(n.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(n){return new(n||e)(v(Ro),v(Do),v(gn),v($i),v(M),v(Yt),v(T),v(vn))};static \u0275prov=g({token:e,factory:e.\u0275fac})}return e})(),ne=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,t,n,o){this.eventManager=r,this.doc=t,this.ngZone=n,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(r,t){return t?this.doc.createElementNS(kn[t]||t,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,t){(xo(r)?r.content:r).appendChild(t)}insertBefore(r,t,n){r&&(xo(r)?r.content:r).insertBefore(t,n)}removeChild(r,t){t.remove()}selectRootElement(r,t){let n=typeof r=="string"?this.doc.querySelector(r):r;if(!n)throw new _(-5104,!1);return t||(n.textContent=""),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,t,n,o){if(o){t=o+":"+t;let i=kn[o];i?r.setAttributeNS(i,t,n):r.setAttribute(t,n)}else r.setAttribute(t,n)}removeAttribute(r,t,n){if(n){let o=kn[n];o?r.removeAttributeNS(o,t):r.removeAttribute(`${n}:${t}`)}else r.removeAttribute(t)}addClass(r,t){r.classList.add(t)}removeClass(r,t){r.classList.remove(t)}setStyle(r,t,n,o){o&(Kt.DashCase|Kt.Important)?r.style.setProperty(t,n,o&Kt.Important?"important":""):r.style[t]=n}removeStyle(r,t,n){n&Kt.DashCase?r.style.removeProperty(t):r.style[t]=""}setProperty(r,t,n){r!=null&&(r[t]=n)}setValue(r,t){r.nodeValue=t}listen(r,t,n){if(typeof r=="string"&&(r=Pe().getGlobalEventTarget(this.doc,r),!r))throw new Error(`Unsupported event target ${r} for event ${t}`);return this.eventManager.addEventListener(r,t,this.decoratePreventDefault(n))}decoratePreventDefault(r){return t=>{if(t==="__ngUnwrap__")return r;(this.platformIsServer?this.ngZone.runGuarded(()=>r(t)):r(t))===!1&&t.preventDefault()}}};function xo(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Un=class extends ne{sharedStylesHost;hostEl;shadowRoot;constructor(r,t,n,o,i,a,c,s){super(r,i,a,s),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=Eo(o.id,o.styles);for(let p of l){let b=document.createElement("style");c&&b.setAttribute("nonce",c),b.textContent=p,this.shadowRoot.appendChild(b)}let u=o.getExternalStyles?.();if(u)for(let p of u){let b=Nn(p,i);c&&b.setAttribute("nonce",c),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,t){return super.appendChild(this.nodeOrShadowRoot(r),t)}insertBefore(r,t,n){return super.insertBefore(this.nodeOrShadowRoot(r),t,n)}removeChild(r,t){return super.removeChild(null,t)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},re=class extends ne{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,t,n,o,i,a,c,s){super(r,i,a,c),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o,this.styles=s?Eo(s,n.styles):n.styles,this.styleUrls=n.getExternalStyles?.(s)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Le=class extends re{contentAttr;hostAttr;constructor(r,t,n,o,i,a,c,s){let l=o+"-"+n.id;super(r,t,n,i,a,c,s,l),this.contentAttr=Vi(l),this.hostAttr=Hi(l)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,t){let n=super.createElement(r,t);return super.setAttribute(n,this.contentAttr,""),n}},qi=(()=>{class e extends ze{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,o){return t.addEventListener(n,o,!1),()=>this.removeEventListener(t,n,o)}removeEventListener(t,n,o){return t.removeEventListener(n,o)}static \u0275fac=function(n){return new(n||e)(v(M))};static \u0275prov=g({token:e,factory:e.\u0275fac})}return e})(),Co=["alt","control","meta","shift"],Wi={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Gi={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Zi=(()=>{class e extends ze{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,o){let i=e.parseEventName(n),a=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Pe().onAndCancel(t,i.domEventName,a))}static parseEventName(t){let n=t.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(n.pop()),a="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),a="code."),Co.forEach(l=>{let u=n.indexOf(l);u>-1&&(n.splice(u,1),a+=l+".")}),a+=i,n.length!=0||i.length===0)return null;let s={};return s.domEventName=o,s.fullKey=a,s}static matchEventFullKeyCode(t,n){let o=Wi[t.key]||t.key,i="";return n.indexOf("code.")>-1&&(o=t.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Co.forEach(a=>{if(a!==o){let c=Gi[a];c(t)&&(i+=a+".")}}),i+=o,i===n)}static eventCallback(t,n,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>n(i))}}static _normalizeKey(t){return t==="esc"?"escape":t}static \u0275fac=function(n){return new(n||e)(v(M))};static \u0275prov=g({token:e,factory:e.\u0275fac})}return e})();function Pc(e,r){return to(m({rootComponent:e},Yi(r)))}function Yi(e){return{appProviders:[...ta,...e?.providers??[]],platformProviders:Ji}}function Qi(){Pn.makeCurrent()}function Ki(){return new bn}function Xi(){return Nr(document),document}var Ji=[{provide:Yt,useValue:co},{provide:Ur,useValue:Qi,multi:!0},{provide:M,useFactory:Xi,deps:[]}];var ta=[{provide:Or,useValue:"root"},{provide:bn,useFactory:Ki,deps:[]},{provide:zn,useClass:qi,multi:!0,deps:[M,T,Yt]},{provide:zn,useClass:Zi,multi:!0,deps:[M]},So,Do,Ro,{provide:Qr,useExisting:So},{provide:uo,useClass:Ni,deps:[]},[]];var zc=(()=>{class e{_doc;_dom;constructor(t){this._doc=t,this._dom=Pe()}addTag(t,n=!1){return t?this._getOrCreateElement(t,n):null}addTags(t,n=!1){return t?t.reduce((o,i)=>(i&&o.push(this._getOrCreateElement(i,n)),o),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];let n=this._doc.querySelectorAll(`meta[${t}]`);return n?[].slice.call(n):[]}updateTag(t,n){if(!t)return null;n=n||this._parseSelector(t);let o=this.getTag(n);return o?this._setMetaElementAttributes(t,o):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,n=!1){if(!n){let a=this._parseSelector(t),c=this.getTags(a).filter(s=>this._containsAttributes(t,s))[0];if(c!==void 0)return c}let o=this._dom.createElement("meta");return this._setMetaElementAttributes(t,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(t,n){return Object.keys(t).forEach(o=>n.setAttribute(this._getMetaKeyMap(o),t[o])),n}_parseSelector(t){let n=t.name?"name":"property";return`${n}="${t[n]}"`}_containsAttributes(t,n){return Object.keys(t).every(o=>n.getAttribute(this._getMetaKeyMap(o))===t[o])}_getMetaKeyMap(t){return ea[t]||t}static \u0275fac=function(n){return new(n||e)(v(M))};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ea={httpEquiv:"http-equiv"},Io=(()=>{class e{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(n){return new(n||e)(v(M))};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var na=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:function(n){let o=null;return n?o=new(n||e):o=v(ra),o},providedIn:"root"})}return e})(),ra=(()=>{class e extends na{_doc;constructor(t){super(),this._doc=t}sanitize(t,n){if(n==null)return null;switch(t){case ft.NONE:return n;case ft.HTML:return Mt(n,"HTML")?Dt(n):Wr(this._doc,String(n)).toString();case ft.STYLE:return Mt(n,"Style")?Dt(n):n;case ft.SCRIPT:if(Mt(n,"Script"))return Dt(n);throw new _(5200,!1);case ft.URL:return Mt(n,"URL")?Dt(n):qr(String(n));case ft.RESOURCE_URL:if(Mt(n,"ResourceURL"))return Dt(n);throw new _(5201,!1);default:throw new _(5202,!1)}}bypassSecurityTrustHtml(t){return Fr(t)}bypassSecurityTrustStyle(t){return Br(t)}bypassSecurityTrustScript(t){return $r(t)}bypassSecurityTrustUrl(t){return Vr(t)}bypassSecurityTrustResourceUrl(t){return Hr(t)}static \u0275fac=function(n){return new(n||e)(v(M))};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var f="primary",ve=Symbol("RouteTitle"),qn=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function Lt(e){return new qn(e)}function ia(e,r,t){let n=t.path.split("/");if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.lengthn[i]===o)}else return e===r}function $o(e){return e.length>0?e[e.length-1]:null}function pt(e){return sn(e)?e:Kr(e)?A(Promise.resolve(e)):h(e)}var sa={exact:Ho,subset:qo},Vo={exact:ca,subset:la,ignored:()=>!0};function Ao(e,r,t){return sa[t.paths](e.root,r.root,t.matrixParams)&&Vo[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function ca(e,r){return Q(e,r)}function Ho(e,r,t){if(!yt(e.segments,r.segments)||!je(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!Ho(e.children[n],r.children[n],t))return!1;return!0}function la(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>Bo(e[t],r[t]))}function qo(e,r,t){return Wo(e,r,r.segments,t)}function Wo(e,r,t,n){if(e.segments.length>t.length){let o=e.segments.slice(0,t.length);return!(!yt(o,t)||r.hasChildren()||!je(o,t,n))}else if(e.segments.length===t.length){if(!yt(e.segments,t)||!je(e.segments,t,n))return!1;for(let o in r.children)if(!e.children[o]||!qo(e.children[o],r.children[o],n))return!1;return!0}else{let o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!yt(e.segments,o)||!je(e.segments,o,n)||!e.children[f]?!1:Wo(e.children[f],r,i,n)}}function je(e,r,t){return r.every((n,o)=>Vo[t](e[o].parameters,n.parameters))}var nt=class{root;queryParams;fragment;_queryParamMap;constructor(r=new y([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Lt(this.queryParams),this._queryParamMap}toString(){return ma.serialize(this)}},y=class{segments;children;parent=null;constructor(r,t){this.segments=r,this.children=t,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Fe(this)}},vt=class{path;parameters;_parameterMap;constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=Lt(this.parameters),this._parameterMap}toString(){return Zo(this)}};function da(e,r){return yt(e,r)&&e.every((t,n)=>Q(t.parameters,r[n].parameters))}function yt(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function ua(e,r){let t=[];return Object.entries(e.children).forEach(([n,o])=>{n===f&&(t=t.concat(r(o,n)))}),Object.entries(e.children).forEach(([n,o])=>{n!==f&&(t=t.concat(r(o,n)))}),t}var ye=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:()=>new Nt,providedIn:"root"})}return e})(),Nt=class{parse(r){let t=new Zn(r);return new nt(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${oe(r.root,!0)}`,n=fa(r.queryParams),o=typeof r.fragment=="string"?`#${pa(r.fragment)}`:"";return`${t}${n}${o}`}},ma=new Nt;function Fe(e){return e.segments.map(r=>Zo(r)).join("/")}function oe(e,r){if(!e.hasChildren())return Fe(e);if(r){let t=e.children[f]?oe(e.children[f],!1):"",n=[];return Object.entries(e.children).forEach(([o,i])=>{o!==f&&n.push(`${o}:${oe(i,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=ua(e,(n,o)=>o===f?[oe(e.children[f],!1)]:[`${o}:${oe(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[f]!=null?`${Fe(e)}/${t[0]}`:`${Fe(e)}/(${t.join("//")})`}}function Go(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ne(e){return Go(e).replace(/%3B/gi,";")}function pa(e){return encodeURI(e)}function Gn(e){return Go(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Be(e){return decodeURIComponent(e)}function To(e){return Be(e.replace(/\+/g,"%20"))}function Zo(e){return`${Gn(e.path)}${ha(e.parameters)}`}function ha(e){return Object.entries(e).map(([r,t])=>`;${Gn(r)}=${Gn(t)}`).join("")}function fa(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(o=>`${Ne(t)}=${Ne(o)}`).join("&"):`${Ne(t)}=${Ne(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var ba=/^[^\/()?;#]+/;function Bn(e){let r=e.match(ba);return r?r[0]:""}var ga=/^[^\/()?;=#]+/;function va(e){let r=e.match(ga);return r?r[0]:""}var ya=/^[^=?&#]+/;function wa(e){let r=e.match(ya);return r?r[0]:""}var _a=/^[^&#]+/;function Sa(e){let r=e.match(_a);return r?r[0]:""}var Zn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new y([],{}):new y([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(t).length>0)&&(n[f]=new y(r,t)),n}parseSegment(){let r=Bn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new _(4009,!1);return this.capture(r),new vt(Be(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=va(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let o=Bn(this.remaining);o&&(n=o,this.capture(n))}r[Be(t)]=Be(n)}parseQueryParam(r){let t=wa(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let a=Sa(this.remaining);a&&(n=a,this.capture(n))}let o=To(t),i=To(n);if(r.hasOwnProperty(o)){let a=r[o];Array.isArray(a)||(a=[a],r[o]=a),a.push(i)}else r[o]=i}parseParens(r){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Bn(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new _(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):r&&(i=f);let a=this.parseChildren();t[i]=Object.keys(a).length===1?a[f]:new y([],a),this.consumeOptional("//")}return t}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new _(4011,!1)}};function Yo(e){return e.segments.length>0?new y([],{[f]:e}):e}function Qo(e){let r={};for(let[n,o]of Object.entries(e.children)){let i=Qo(o);if(n===f&&i.segments.length===0&&i.hasChildren())for(let[a,c]of Object.entries(i.children))r[a]=c;else(i.segments.length>0||i.hasChildren())&&(r[n]=i)}let t=new y(e.segments,r);return xa(t)}function xa(e){if(e.numberOfChildren===1&&e.children[f]){let r=e.children[f];return new y(e.segments.concat(r.segments),r.children)}return e}function wt(e){return e instanceof nt}function Ca(e,r,t=null,n=null){let o=Ko(e);return Xo(o,r,t,n)}function Ko(e){let r;function t(i){let a={};for(let s of i.children){let l=t(s);a[s.outlet]=l}let c=new y(i.url,a);return i===e&&(r=c),c}let n=t(e.root),o=Yo(n);return r??o}function Xo(e,r,t,n){let o=e;for(;o.parent;)o=o.parent;if(r.length===0)return $n(o,o,o,t,n);let i=Ra(r);if(i.toRoot())return $n(o,o,new y([],{}),t,n);let a=Da(i,o,e),c=a.processChildren?se(a.segmentGroup,a.index,i.commands):ti(a.segmentGroup,a.index,i.commands);return $n(o,a.segmentGroup,c,t,n)}function $e(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function de(e){return typeof e=="object"&&e!=null&&e.outlets}function $n(e,r,t,n,o){let i={};n&&Object.entries(n).forEach(([s,l])=>{i[s]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let a;e===r?a=t:a=Jo(e,r,t);let c=Yo(Qo(a));return new nt(c,i,o)}function Jo(e,r,t){let n={};return Object.entries(e.children).forEach(([o,i])=>{i===r?n[o]=t:n[o]=Jo(i,r,t)}),new y(e.segments,n)}var Ve=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&$e(n[0]))throw new _(4003,!1);let o=n.find(de);if(o&&o!==$o(n))throw new _(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ra(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ve(!0,0,e);let r=0,t=!1,n=e.reduce((o,i,a)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let c={};return Object.entries(i.outlets).forEach(([s,l])=>{c[s]=typeof l=="string"?l.split("/"):l}),[...o,{outlets:c}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:a===0?(i.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?t=!0:c===".."?r++:c!=""&&o.push(c))}),o):[...o,i]},[]);return new Ve(t,r,n)}var Ot=class{segmentGroup;processChildren;index;constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function Da(e,r,t){if(e.isAbsolute)return new Ot(r,!0,0);if(!t)return new Ot(r,!1,NaN);if(t.parent===null)return new Ot(t,!0,0);let n=$e(e.commands[0])?0:1,o=t.segments.length-1+n;return Ma(t,o,e.numberOfDoubleDots)}function Ma(e,r,t){let n=e,o=r,i=t;for(;i>o;){if(i-=o,n=n.parent,!n)throw new _(4005,!1);o=n.segments.length}return new Ot(n,!1,o-i)}function Ea(e){return de(e[0])?e[0].outlets:{[f]:e}}function ti(e,r,t){if(e??=new y([],{}),e.segments.length===0&&e.hasChildren())return se(e,r,t);let n=Ia(e,r,t),o=t.slice(n.commandIndex);if(n.match&&n.pathIndexi!==f)&&e.children[f]&&e.numberOfChildren===1&&e.children[f].segments.length===0){let i=se(e.children[f],r,t);return new y(e.segments,i.children)}return Object.entries(n).forEach(([i,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[i]=ti(e.children[i],r,a))}),Object.entries(e.children).forEach(([i,a])=>{n[i]===void 0&&(o[i]=a)}),new y(e.segments,o)}}function Ia(e,r,t){let n=0,o=r,i={match:!1,pathIndex:0,commandIndex:0};for(;o=t.length)return i;let a=e.segments[o],c=t[n];if(de(c))break;let s=`${c}`,l=n0&&s===void 0)break;if(s&&l&&typeof l=="object"&&l.outlets===void 0){if(!Oo(s,l,a))return i;n+=2}else{if(!Oo(s,{},a))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function Yn(e,r,t){let n=e.segments.slice(0,r),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=Yn(new y([],{}),0,n))}),r}function ko(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function Oo(e,r,t){return e==t.path&&Q(r,t.parameters)}var ce="imperative",R=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(R||{}),F=class{id;url;constructor(r,t){this.id=r,this.url=t}},Ut=class extends F{type=R.NavigationStart;navigationTrigger;restoredState;constructor(r,t,n="imperative",o=null){super(r,t),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},q=class extends F{urlAfterRedirects;type=R.NavigationEnd;constructor(r,t,n){super(r,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},z=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(z||{}),He=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(He||{}),et=class extends F{reason;code;type=R.NavigationCancel;constructor(r,t,n,o){super(r,t),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ut=class extends F{reason;code;type=R.NavigationSkipped;constructor(r,t,n,o){super(r,t),this.reason=n,this.code=o}},ue=class extends F{error;target;type=R.NavigationError;constructor(r,t,n,o){super(r,t),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},qe=class extends F{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(r,t,n,o){super(r,t),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qn=class extends F{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(r,t,n,o){super(r,t),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kn=class extends F{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(r,t,n,o,i){super(r,t),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Xn=class extends F{urlAfterRedirects;state;type=R.ResolveStart;constructor(r,t,n,o){super(r,t),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jn=class extends F{urlAfterRedirects;state;type=R.ResolveEnd;constructor(r,t,n,o){super(r,t),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tr=class{route;type=R.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},er=class{route;type=R.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},nr=class{snapshot;type=R.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rr=class{snapshot;type=R.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},or=class{snapshot;type=R.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ir=class{snapshot;type=R.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},We=class{routerEvent;position;anchor;type=R.Scroll;constructor(r,t,n){this.routerEvent=r,this.position=t,this.anchor=n}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},me=class{},jt=class{url;navigationBehaviorOptions;constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function Ta(e,r){return e.providers&&!e._injector&&(e._injector=_n(e.providers,r,`Route: ${e.path}`)),e._injector??r}function H(e){return e.outlet||f}function ka(e,r){let t=e.filter(n=>H(n)===r);return t.push(...e.filter(n=>H(n)!==r)),t}function we(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let r=e.parent;r;r=r.parent){let t=r.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var ar=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return we(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new _e(this.rootInjector)}},_e=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,n){let o=this.getOrCreateContext(t);o.outlet=n,this.contexts.set(t,o)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new ar(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(n){return new(n||e)(v(Gt))};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ge=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=sr(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=sr(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=cr(r,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==r)}pathFromRoot(r){return cr(r,this._root).map(t=>t.value)}};function sr(e,r){if(e===r.value)return r;for(let t of r.children){let n=sr(e,t);if(n)return n}return null}function cr(e,r){if(e===r.value)return[r];for(let t of r.children){let n=cr(e,t);if(n.length)return n.unshift(r),n}return[]}var P=class{value;children;constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function kt(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Ze=class extends Ge{snapshot;constructor(r,t){super(r),this.snapshot=t,gr(this,r)}toString(){return this.snapshot.toString()}};function ei(e){let r=Oa(e),t=new N([new vt("",{})]),n=new N({}),o=new N({}),i=new N({}),a=new N(""),c=new mt(t,n,i,a,o,f,e,r.root);return c.snapshot=r.root,new Ze(new P(c,[]),r)}function Oa(e){let r={},t={},n={},o="",i=new Pt([],r,n,o,t,f,e,null,{});return new Qe("",new P(i,[]))}var mt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,t,n,o,i,a,c,s){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=i,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(w(l=>l[ve]))??h(void 0),this.url=r,this.params=t,this.queryParams=n,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(w(r=>Lt(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(w(r=>Lt(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ye(e,r,t="emptyOnly"){let n,{routeConfig:o}=e;return r!==null&&(t==="always"||o?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:m(m({},r.params),e.params),data:m(m({},r.data),e.data),resolve:m(m(m(m({},e.data),r.data),o?.data),e._resolvedData)}:n={params:m({},e.params),data:m({},e.data),resolve:m(m({},e.data),e._resolvedData??{})},o&&ri(o)&&(n.resolve[ve]=o.title),n}var Pt=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ve]}constructor(r,t,n,o,i,a,c,s,l){this.url=r,this.params=t,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Lt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Lt(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},Qe=class extends Ge{url;constructor(r,t){super(t),this.url=r,gr(this,t)}toString(){return ni(this._root)}};function gr(e,r){r.value._routerState=e,r.children.forEach(t=>gr(e,t))}function ni(e){let r=e.children.length>0?` { ${e.children.map(ni).join(", ")} } `:"";return`${e.value}${r}`}function Vn(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Q(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Q(r.params,t.params)||e.paramsSubject.next(t.params),aa(r.url,t.url)||e.urlSubject.next(t.url),Q(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function lr(e,r){let t=Q(e.params,r.params)&&da(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||lr(e.parent,r.parent))}function ri(e){return typeof e.title=="string"||e.title===null}var Pa=new S(""),za=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new Rt;deactivateEvents=new Rt;attachEvents=new Rt;detachEvents=new Rt;routerOutletData=Lr(void 0);parentContexts=d(_e);location=d(Rn);changeDetector=d(Xt);inputBinder=d(tn,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:o}=t.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new _(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new _(4013,!1);this._activatedRoute=t;let o=this.location,a=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new dr(t,c,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:s,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=J({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Zt]})}return e})(),dr=class e{route;childContexts;parent;outletData;__ngOutletInjector(r){return new e(this.route,this.childContexts,r,this.outletData)}constructor(r,t,n,o){this.route=r,this.childContexts=t,this.parent=n,this.outletData=o}get(r,t){return r===mt?this.route:r===_e?this.childContexts:r===Pa?this.outletData:this.parent.get(r,t)}},tn=new S(""),Po=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,o=Me([n.queryParams,n.params,n.data]).pipe(U(([i,a,c],s)=>(c=m(m(m({},i),a),c),s===0?h(c):Promise.resolve(c)))).subscribe(i=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let a=no(n.component);if(!a){this.unsubscribeFromRouteData(t);return}for(let{templateName:c}of a.inputs)t.activatedComponentRef.setInput(c,i[c])});this.outletDataSubscriptions.set(t,o)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:e.\u0275fac})}return e})();function La(e,r,t){let n=pe(e,r._root,t?t._root:void 0);return new Ze(n,r)}function pe(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let o=Na(e,r,t);return new P(n,o)}else{if(e.shouldAttach(r.value)){let i=e.retrieve(r.value);if(i!==null){let a=i.route;return a.value._futureSnapshot=r.value,a.children=r.children.map(c=>pe(e,c)),a}}let n=Ua(r.value),o=r.children.map(i=>pe(e,i));return new P(n,o)}}function Na(e,r,t){return r.children.map(n=>{for(let o of t.children)if(e.shouldReuseRoute(n.value,o.value.snapshot))return pe(e,n,o);return pe(e,n)})}function Ua(e){return new mt(new N(e.url),new N(e.params),new N(e.queryParams),new N(e.fragment),new N(e.data),e.outlet,e.component,e)}var he=class{redirectTo;navigationBehaviorOptions;constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},oi="ngNavigationCancelingError";function Ke(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=wt(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,o=ii(!1,z.Redirect);return o.url=t,o.navigationBehaviorOptions=n,o}function ii(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[oi]=!0,t.cancellationCode=r,t}function ja(e){return ai(e)&&wt(e.url)}function ai(e){return!!e&&e[oi]}var Fa=(e,r,t,n)=>w(o=>(new ur(r,o.targetRouterState,o.currentRouterState,t,n).activate(e),o)),ur=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,t,n,o,i){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),Vn(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let o=kt(t);r.children.forEach(i=>{let a=i.value.outlet;this.deactivateRoutes(i,o[a],n),delete o[a]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,n)})}deactivateRoutes(r,t,n){let o=r.value,i=t?t.value:null;if(o===i)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(r,t,a.children)}else this.deactivateChildRoutes(r,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),o=n&&r.value.component?n.children:t,i=kt(r);for(let a of Object.values(i))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),c=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:a,route:r,contexts:c})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),o=n&&r.value.component?n.children:t,i=kt(r);for(let a of Object.values(i))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let o=kt(t);r.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new ir(i.value.snapshot))}),r.children.length&&this.forwardEvent(new rr(r.value.snapshot))}activateRoutes(r,t,n){let o=r.value,i=t?t.value:null;if(Vn(o),o===i)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(r,t,a.children)}else this.activateChildRoutes(r,t,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let c=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),Vn(c.route.value),this.activateChildRoutes(r,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(r,null,a.children)}else this.activateChildRoutes(r,null,n)}},Xe=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},zt=class{component;route;constructor(r,t){this.component=r,this.route=t}};function Ba(e,r,t){let n=e._root,o=r?r._root:null;return ie(n,o,t,[n.value])}function $a(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function Bt(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!Tr(e)?e:r.get(e):n}function ie(e,r,t,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=kt(r);return e.children.forEach(a=>{Va(a,i[a.value.outlet],t,n.concat([a.value]),o),delete i[a.value.outlet]}),Object.entries(i).forEach(([a,c])=>le(c,t.getContext(a),o)),o}function Va(e,r,t,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,a=r?r.value:null,c=t?t.getContext(e.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){let s=Ha(a,i,i.routeConfig.runGuardsAndResolvers);s?o.canActivateChecks.push(new Xe(n)):(i.data=a.data,i._resolvedData=a._resolvedData),i.component?ie(e,r,c?c.children:null,n,o):ie(e,r,t,n,o),s&&c&&c.outlet&&c.outlet.isActivated&&o.canDeactivateChecks.push(new zt(c.outlet.component,a))}else a&&le(r,c,o),o.canActivateChecks.push(new Xe(n)),i.component?ie(e,null,c?c.children:null,n,o):ie(e,null,t,n,o);return o}function Ha(e,r,t){if(typeof t=="function")return t(e,r);switch(t){case"pathParamsChange":return!yt(e.url,r.url);case"pathParamsOrQueryParamsChange":return!yt(e.url,r.url)||!Q(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lr(e,r)||!Q(e.queryParams,r.queryParams);case"paramsChange":default:return!lr(e,r)}}function le(e,r,t){let n=kt(e),o=e.value;Object.entries(n).forEach(([i,a])=>{o.component?r?le(a,r.children.getContext(i),t):le(a,null,t):le(a,r,t)}),o.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new zt(r.outlet.component,o)):t.canDeactivateChecks.push(new zt(null,o)):t.canDeactivateChecks.push(new zt(null,o))}function Se(e){return typeof e=="function"}function qa(e){return typeof e=="boolean"}function Wa(e){return e&&Se(e.canLoad)}function Ga(e){return e&&Se(e.canActivate)}function Za(e){return e&&Se(e.canActivateChild)}function Ya(e){return e&&Se(e.canDeactivate)}function Qa(e){return e&&Se(e.canMatch)}function si(e){return e instanceof Dr||e?.name==="EmptyError"}var Ue=Symbol("INITIAL_VALUE");function Ft(){return U(e=>Me(e.map(r=>r.pipe(Ct(1),pn(Ue)))).pipe(w(r=>{for(let t of r)if(t!==!0){if(t===Ue)return Ue;if(t===!1||Ka(t))return t}return!0}),X(r=>r!==Ue),Ct(1)))}function Ka(e){return wt(e)||e instanceof he}function Xa(e,r){return O(t=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:a}}=t;return a.length===0&&i.length===0?h(I(m({},t),{guardsResult:!0})):Ja(a,n,o,e).pipe(O(c=>c&&qa(c)?ts(n,i,e,r):h(c)),w(c=>I(m({},t),{guardsResult:c})))})}function Ja(e,r,t,n){return A(e).pipe(O(o=>is(o.component,o.route,t,r,n)),it(o=>o!==!0,!0))}function ts(e,r,t,n){return A(r).pipe(xt(o=>Mr(ns(o.route.parent,n),es(o.route,n),os(e,o.path,t),rs(e,o.route,t))),it(o=>o!==!0,!0))}function es(e,r){return e!==null&&r&&r(new or(e)),h(!0)}function ns(e,r){return e!==null&&r&&r(new nr(e)),h(!0)}function rs(e,r,t){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return h(!0);let o=n.map(i=>cn(()=>{let a=we(r)??t,c=Bt(i,a),s=Ga(c)?c.canActivate(r,e):G(a,()=>c(r,e));return pt(s).pipe(it())}));return h(o).pipe(Ft())}function os(e,r,t){let n=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(a=>$a(a)).filter(a=>a!==null).map(a=>cn(()=>{let c=a.guards.map(s=>{let l=we(a.node)??t,u=Bt(s,l),p=Za(u)?u.canActivateChild(n,e):G(l,()=>u(n,e));return pt(p).pipe(it())});return h(c).pipe(Ft())}));return h(i).pipe(Ft())}function is(e,r,t,n,o){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return h(!0);let a=i.map(c=>{let s=we(r)??o,l=Bt(c,s),u=Ya(l)?l.canDeactivate(e,r,t,n):G(s,()=>l(e,r,t,n));return pt(u).pipe(it())});return h(a).pipe(Ft())}function as(e,r,t,n){let o=r.canLoad;if(o===void 0||o.length===0)return h(!0);let i=o.map(a=>{let c=Bt(a,e),s=Wa(c)?c.canLoad(r,t):G(e,()=>c(r,t));return pt(s)});return h(i).pipe(Ft(),ci(n))}function ci(e){return Rr(D(r=>{if(typeof r!="boolean")throw Ke(e,r)}),w(r=>r===!0))}function ss(e,r,t,n){let o=r.canMatch;if(!o||o.length===0)return h(!0);let i=o.map(a=>{let c=Bt(a,e),s=Qa(c)?c.canMatch(r,t):G(e,()=>c(r,t));return pt(s)});return h(i).pipe(Ft(),ci(n))}var fe=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},be=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function Tt(e){return qt(new fe(e))}function cs(e){return qt(new _(4e3,!1))}function ls(e){return qt(ii(!1,z.GuardRejected))}var mr=class{urlSerializer;urlTree;constructor(r,t){this.urlSerializer=r,this.urlTree=t}lineralizeSegments(r,t){let n=[],o=t.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return h(n);if(o.numberOfChildren>1||!o.children[f])return cs(`${r.redirectTo}`);o=o.children[f]}}applyRedirectCommands(r,t,n,o,i){if(typeof t!="string"){let c=t,{queryParams:s,fragment:l,routeConfig:u,url:p,outlet:b,params:W,data:E,title:rt}=o,B=G(i,()=>c({params:W,data:E,queryParams:s,fragment:l,routeConfig:u,url:p,outlet:b,title:rt}));if(B instanceof nt)throw new be(B);t=B}let a=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),r,n);if(t[0]==="/")throw new be(a);return a}applyRedirectCreateUrlTree(r,t,n,o){let i=this.createSegmentGroup(r,t.root,n,o);return new nt(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let c=i.substring(1);n[o]=t[c]}else n[o]=i}),n}createSegmentGroup(r,t,n,o){let i=this.createSegments(r,t.segments,n,o),a={};return Object.entries(t.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(r,s,n,o)}),new y(i,a)}createSegments(r,t,n,o){return t.map(i=>i.path[0]===":"?this.findPosParam(r,i,o):this.findOrReturn(i,n))}findPosParam(r,t,n){let o=n[t.path.substring(1)];if(!o)throw new _(4001,!1);return o}findOrReturn(r,t){let n=0;for(let o of t){if(o.path===r.path)return t.splice(n),o;n++}return r}},pr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ds(e,r,t,n,o){let i=li(e,r,t);return i.matched?(n=Ta(r,n),ss(n,r,t,o).pipe(w(a=>a===!0?i:m({},pr)))):h(i)}function li(e,r,t){if(r.path==="**")return us(t);if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?m({},pr):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let o=(r.matcher||ia)(t,e,r);if(!o)return m({},pr);let i={};Object.entries(o.posParams??{}).forEach(([c,s])=>{i[c]=s.path});let a=o.consumed.length>0?m(m({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function us(e){return{matched:!0,parameters:e.length>0?$o(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function zo(e,r,t,n){return t.length>0&&hs(e,t,n)?{segmentGroup:new y(r,ps(n,new y(t,e.children))),slicedSegments:[]}:t.length===0&&fs(e,t,n)?{segmentGroup:new y(e.segments,ms(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new y(e.segments,e.children),slicedSegments:t}}function ms(e,r,t,n){let o={};for(let i of t)if(en(e,r,i)&&!n[H(i)]){let a=new y([],{});o[H(i)]=a}return m(m({},n),o)}function ps(e,r){let t={};t[f]=r;for(let n of e)if(n.path===""&&H(n)!==f){let o=new y([],{});t[H(n)]=o}return t}function hs(e,r,t){return t.some(n=>en(e,r,n)&&H(n)!==f)}function fs(e,r,t){return t.some(n=>en(e,r,n))}function en(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function bs(e,r,t){return r.length===0&&!e.children[t]}var hr=class{};function gs(e,r,t,n,o,i,a="emptyOnly"){return new fr(e,r,t,n,o,a,i).recognize()}var vs=31,fr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,t,n,o,i,a,c){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.applyRedirects=new mr(this.urlSerializer,this.urlTree)}noMatchError(r){return new _(4002,`'${r.segmentGroup}'`)}recognize(){let r=zo(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(w(({children:t,rootSnapshot:n})=>{let o=new P(n,t),i=new Qe("",o),a=Ca(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(a),{state:i,tree:a}}))}match(r){let t=new Pt([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,f,t).pipe(w(n=>({children:n,rootSnapshot:t})),St(n=>{if(n instanceof be)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof fe?this.noMatchError(n):n}))}processSegmentGroup(r,t,n,o,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,t,n,i):this.processSegment(r,t,n,n.segments,o,!0,i).pipe(w(a=>a instanceof P?[a]:[]))}processChildren(r,t,n,o){let i=[];for(let a of Object.keys(n.children))a==="primary"?i.unshift(a):i.push(a);return A(i).pipe(xt(a=>{let c=n.children[a],s=ka(t,a);return this.processSegmentGroup(r,s,c,a,o)}),Ar((a,c)=>(a.push(...c),a)),un(null),Ir(),O(a=>{if(a===null)return Tt(n);let c=di(a);return ys(c),h(c)}))}processSegment(r,t,n,o,i,a,c){return A(t).pipe(xt(s=>this.processSegmentAgainstRoute(s._injector??r,t,s,n,o,i,a,c).pipe(St(l=>{if(l instanceof fe)return h(null);throw l}))),it(s=>!!s),St(s=>{if(si(s))return bs(n,o,i)?h(new hr):Tt(n);throw s}))}processSegmentAgainstRoute(r,t,n,o,i,a,c,s){return H(n)!==a&&(a===f||!en(o,i,n))?Tt(o):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,o,n,i,a,s):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(r,o,t,n,i,a,s):Tt(o)}expandSegmentAgainstRouteUsingRedirect(r,t,n,o,i,a,c){let{matched:s,parameters:l,consumedSegments:u,positionalParamSegments:p,remainingSegments:b}=li(t,o,i);if(!s)return Tt(t);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>vs&&(this.allowRedirects=!1));let W=new Pt(i,l,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Lo(o),H(o),o.component??o._loadedComponent??null,o,No(o)),E=Ye(W,c,this.paramsInheritanceStrategy);W.params=Object.freeze(E.params),W.data=Object.freeze(E.data);let rt=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,p,W,r);return this.applyRedirects.lineralizeSegments(o,rt).pipe(O(B=>this.processSegment(r,n,t,B.concat(b),a,!1,c)))}matchSegmentAgainstRoute(r,t,n,o,i,a){let c=ds(t,n,o,r,this.urlSerializer);return n.path==="**"&&(t.children={}),c.pipe(U(s=>s.matched?(r=n._injector??r,this.getChildConfig(r,n,o).pipe(U(({routes:l})=>{let u=n._loadedInjector??r,{parameters:p,consumedSegments:b,remainingSegments:W}=s,E=new Pt(b,p,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Lo(n),H(n),n.component??n._loadedComponent??null,n,No(n)),rt=Ye(E,a,this.paramsInheritanceStrategy);E.params=Object.freeze(rt.params),E.data=Object.freeze(rt.data);let{segmentGroup:B,slicedSegments:Ht}=zo(t,b,W,l);if(Ht.length===0&&B.hasChildren())return this.processChildren(u,l,B,E).pipe(w(De=>new P(E,De)));if(l.length===0&&Ht.length===0)return h(new P(E,[]));let ki=H(n)===i;return this.processSegment(u,l,B,Ht,ki?f:i,!0,E).pipe(w(De=>new P(E,De instanceof P?[De]:[])))}))):Tt(t)))}getChildConfig(r,t,n){return t.children?h({routes:t.children,injector:r}):t.loadChildren?t._loadedRoutes!==void 0?h({routes:t._loadedRoutes,injector:t._loadedInjector}):as(r,t,n,this.urlSerializer).pipe(O(o=>o?this.configLoader.loadChildren(r,t).pipe(D(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):ls(t))):h({routes:[],injector:r})}};function ys(e){e.sort((r,t)=>r.value.outlet===f?-1:t.value.outlet===f?1:r.value.outlet.localeCompare(t.value.outlet))}function ws(e){let r=e.value.routeConfig;return r&&r.path===""}function di(e){let r=[],t=new Set;for(let n of e){if(!ws(n)){r.push(n);continue}let o=r.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),t.add(o)):r.push(n)}for(let n of t){let o=di(n.children);r.push(new P(n.value,o))}return r.filter(n=>!t.has(n))}function Lo(e){return e.data||{}}function No(e){return e.resolve||{}}function _s(e,r,t,n,o,i){return O(a=>gs(e,r,t,n,a.extractedUrl,o,i).pipe(w(({state:c,tree:s})=>I(m({},a),{targetSnapshot:c,urlAfterRedirects:s}))))}function Ss(e,r){return O(t=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=t;if(!o.length)return h(t);let i=new Set(o.map(s=>s.route)),a=new Set;for(let s of i)if(!a.has(s))for(let l of ui(s))a.add(l);let c=0;return A(a).pipe(xt(s=>i.has(s)?xs(s,n,e,r):(s.data=Ye(s,s.parent,e).resolve,h(void 0))),D(()=>c++),mn(1),O(s=>c===a.size?h(t):ot))})}function ui(e){let r=e.children.map(t=>ui(t)).flat();return[e,...r]}function xs(e,r,t,n){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!ri(o)&&(i[ve]=o.title),Cs(i,e,r,n).pipe(w(a=>(e._resolvedData=a,e.data=Ye(e,e.parent,t).resolve,null)))}function Cs(e,r,t,n){let o=Wn(e);if(o.length===0)return h({});let i={};return A(o).pipe(O(a=>Rs(e[a],r,t,n).pipe(it(),D(c=>{if(c instanceof he)throw Ke(new Nt,c);i[a]=c}))),mn(1),Er(i),St(a=>si(a)?ot:qt(a)))}function Rs(e,r,t,n){let o=we(r)??n,i=Bt(e,o),a=i.resolve?i.resolve(r,t):G(o,()=>i(r,t));return pt(a)}function Hn(e){return U(r=>{let t=e(r);return t?A(t).pipe(w(()=>r)):h(r)})}var mi=(()=>{class e{buildTitle(t){let n,o=t.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(i=>i.outlet===f);return n}getResolvedTitleForRoute(t){return t.data[ve]}static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:()=>d(Ds),providedIn:"root"})}return e})(),Ds=(()=>{class e extends mi{title;constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||e)(v(Io))};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$t=new S("",{providedIn:"root",factory:()=>({})}),Ms=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=V({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,o){n&1&&C(0,"router-outlet")},dependencies:[za],encapsulation:2})}return e})();function vr(e){let r=e.children&&e.children.map(vr),t=r?I(m({},e),{children:r}):m({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==f&&(t.component=Ms),t}var ge=new S(""),yr=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(Oe);loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return h(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=pt(t.loadComponent()).pipe(w(pi),D(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),Ee(()=>{this.componentLoaders.delete(t)})),o=new an(n,()=>new L).pipe(on());return this.componentLoaders.set(t,o),o}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return h({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=Es(n,this.compiler,t,this.onLoadEndListener).pipe(Ee(()=>{this.childrenLoaders.delete(n)})),a=new an(i,()=>new L).pipe(on());return this.childrenLoaders.set(n,a),a}static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Es(e,r,t,n){return pt(e.loadChildren()).pipe(w(pi),O(o=>o instanceof Yr||Array.isArray(o)?h(o):A(r.compileModuleAsync(o))),w(o=>{n&&n(e);let i,a,c=!1;return Array.isArray(o)?(a=o,c=!0):(i=o.create(t).injector,a=i.get(ge,[],{optional:!0,self:!0}).flat()),{routes:a.map(vr),injector:i}}))}function Is(e){return e&&typeof e=="object"&&"default"in e}function pi(e){return Is(e)?e.default:e}var wr=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:()=>d(As),providedIn:"root"})}return e})(),As=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hi=new S(""),fi=new S("");function Ts(e,r,t){let n=e.get(fi),o=e.get(M);return e.get(T).runOutsideAngular(()=>{if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(l=>setTimeout(l));let i,a=new Promise(l=>{i=l}),c=o.startViewTransition(()=>(i(),ks(e))),{onViewTransitionCreated:s}=n;return s&&G(e,()=>s({transition:c,from:r,to:t})),a})}function ks(e){return new Promise(r=>{yn({read:()=>setTimeout(r)},{injector:e})})}var bi=new S(""),_r=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new L;transitionAbortSubject=new L;configLoader=d(yr);environmentInjector=d(Gt);urlSerializer=d(ye);rootContexts=d(_e);location=d(Jt);inputBindingEnabled=d(tn,{optional:!0})!==null;titleStrategy=d(mi);options=d($t,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(wr);createViewTransition=d(hi,{optional:!0});navigationErrorHandler=d(bi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>h(void 0);rootComponentType=null;constructor(){let t=o=>this.events.next(new tr(o)),n=o=>this.events.next(new er(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;this.transitions?.next(I(m(m({},this.transitions.value),t),{id:n}))}setupNavigations(t,n,o){return this.transitions=new N({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ce,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(i=>i.id!==0),w(i=>I(m({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),U(i=>{let a=!1,c=!1;return h(i).pipe(U(s=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",z.SupersededByNewNavigation),ot;this.currentTransition=i,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?I(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=s.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!l&&u!=="reload"){let p="";return this.events.next(new ut(s.id,this.urlSerializer.serialize(s.rawUrl),p,He.IgnoredSameUrlNavigation)),s.resolve(!1),ot}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return h(s).pipe(U(p=>{let b=this.transitions?.getValue();return this.events.next(new Ut(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),b!==this.transitions?.getValue()?ot:Promise.resolve(p)}),_s(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),D(p=>{i.targetSnapshot=p.targetSnapshot,i.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=I(m({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let b=new qe(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(b)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:p,extractedUrl:b,source:W,restoredState:E,extras:rt}=s,B=new Ut(p,this.urlSerializer.serialize(b),W,E);this.events.next(B);let Ht=ei(this.rootComponentType).snapshot;return this.currentTransition=i=I(m({},s),{targetSnapshot:Ht,urlAfterRedirects:b,extras:I(m({},rt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=b,h(i)}else{let p="";return this.events.next(new ut(s.id,this.urlSerializer.serialize(s.extractedUrl),p,He.IgnoredByUrlHandlingStrategy)),s.resolve(!1),ot}}),D(s=>{let l=new Qn(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(l)}),w(s=>(this.currentTransition=i=I(m({},s),{guards:Ba(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),i)),Xa(this.environmentInjector,s=>this.events.next(s)),D(s=>{if(i.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Ke(this.urlSerializer,s.guardsResult);let l=new Kn(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(l)}),X(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",z.GuardRejected),!1)),Hn(s=>{if(s.guards.canActivateChecks.length)return h(s).pipe(D(l=>{let u=new Xn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),U(l=>{let u=!1;return h(l).pipe(Ss(this.paramsInheritanceStrategy,this.environmentInjector),D({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",z.NoDataFromResolver)}}))}),D(l=>{let u=new Jn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),Hn(s=>{let l=u=>{let p=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(u.routeConfig).pipe(D(b=>{u.component=b}),w(()=>{})));for(let b of u.children)p.push(...l(b));return p};return Me(l(s.targetSnapshot.root)).pipe(un(null),Ct(1))}),Hn(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:s,targetSnapshot:l}=i,u=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return u?A(u).pipe(w(()=>i)):h(i)}),w(s=>{let l=La(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=i=I(m({},s),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,i}),D(()=>{this.events.next(new me)}),Fa(this.rootContexts,t.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Ct(1),D({next:s=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new q(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{a=!0}}),Ie(this.transitionAbortSubject.pipe(D(s=>{throw s}))),Ee(()=>{!a&&!c&&this.cancelNavigationTransition(i,"",z.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),St(s=>{if(c=!0,ai(s))this.events.next(new et(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode)),ja(s)?this.events.next(new jt(s.url,s.navigationBehaviorOptions)):i.resolve(!1);else{let l=new ue(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);try{let u=G(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof he){let{message:p,cancellationCode:b}=Ke(this.urlSerializer,u);this.events.next(new et(i.id,this.urlSerializer.serialize(i.extractedUrl),p,b)),this.events.next(new jt(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(u){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(u)}}return ot}))}))}cancelNavigationTransition(t,n,o){let i=new et(t.id,this.urlSerializer.serialize(t.extractedUrl),n,o);this.events.next(i),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Os(e){return e!==ce}var Ps=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:()=>d(zs),providedIn:"root"})}return e})(),br=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}},zs=(()=>{class e extends br{static \u0275fac=(()=>{let t;return function(o){return(t||(t=st(e)))(o||e)}})();static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:()=>d(Ls),providedIn:"root"})}return e})(),Ls=(()=>{class e extends gi{location=d(Jt);urlSerializer=d(ye);options=d($t,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=d(wr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new nt;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=ei(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&t(n.url,n.state)})}handleRouterEvent(t,n){if(t instanceof Ut)this.stateMemento=this.createStateMemento();else if(t instanceof ut)this.rawUrlTree=n.initialUrl;else if(t instanceof qe){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??o,n)}}else t instanceof me?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):t instanceof et&&(t.code===z.GuardRejected||t.code===z.NoDataFromResolver)?this.restoreHistory(n):t instanceof ue?this.restoreHistory(n,!0):t instanceof q&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,n){let o=t instanceof nt?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){let i=this.browserPageId,a=m(m({},n.extras.state),this.generateNgRouterState(n.id,i));this.location.replaceState(o,"",a)}else{let i=m(m({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===t.finalUrl&&i===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=st(e)))(o||e)}})();static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ae=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(ae||{});function vi(e,r){e.events.pipe(X(t=>t instanceof q||t instanceof et||t instanceof ue||t instanceof ut),w(t=>t instanceof q||t instanceof ut?ae.COMPLETE:(t instanceof et?t.code===z.Redirect||t.code===z.SupersededByNewNavigation:!1)?ae.REDIRECTING:ae.FAILED),X(t=>t!==ae.REDIRECTING),Ct(1)).subscribe(()=>{r()})}var Ns={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Us={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},K=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(ke);stateManager=d(gi);options=d($t,{optional:!0})||{};pendingTasks=d(zr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(_r);urlSerializer=d(ye);location=d(Jt);urlHandlingStrategy=d(wr);_events=new L;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(Ps);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(ge,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(tn,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}eventsSubscription=new nn;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(n,i),n instanceof et&&n.code!==z.Redirect&&n.code!==z.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof q)this.navigated=!0;else if(n instanceof jt){let a=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),s=m({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Os(o.source)},a);this.scheduleNavigation(c,ce,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Fs(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ce,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",n)},0)})}navigateToSyncWithBrowser(t,n,o){let i={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let s=m({},o);delete s.navigationId,delete s.\u0275routerPageId,Object.keys(s).length!==0&&(i.state=s)}let c=this.parseUrl(t);this.scheduleNavigation(c,n,a,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(vr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:o,queryParams:i,fragment:a,queryParamsHandling:c,preserveFragment:s}=n,l=s?this.currentUrlTree.fragment:a,u=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":u=m(m({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}u!==null&&(u=this.removeEmptyProps(u));let p;try{let b=o?o.snapshot:this.routerState.snapshot.root;p=Ko(b)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),p=this.currentUrlTree.root}return Xo(p,t,u,l??null)}navigateByUrl(t,n={skipLocationChange:!1}){let o=wt(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,ce,null,n)}navigate(t,n={skipLocationChange:!1}){return js(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,n){let o;if(n===!0?o=m({},Ns):n===!1?o=m({},Us):o=n,wt(t))return Ao(this.currentUrlTree,t,o);let i=this.parseUrl(t);return Ao(this.currentUrlTree,i,o)}removeEmptyProps(t){return Object.entries(t).reduce((n,[o,i])=>(i!=null&&(n[o]=i),n),{})}scheduleNavigation(t,n,o,i,a){if(this.disposed)return Promise.resolve(!1);let c,s,l;a?(c=a.resolve,s=a.reject,l=a.promise):l=new Promise((p,b)=>{c=p,s=b});let u=this.pendingTasks.add();return vi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:i,resolve:c,reject:s,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(p=>Promise.reject(p))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function js(e){for(let r=0;r{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new L;constructor(t,n,o,i,a,c){this.router=t,this.route=n,this.tabIndexAttribute=o,this.renderer=i,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area",this.isAnchorElement?this.subscription=t.events.subscribe(l=>{l instanceof q&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(wt(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,o,i,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(t!==0||n||o||i||a||typeof this.target=="string"&&this.target!="_self"))return!0;let s={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,s),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let n=this.href===null?null:Gr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(t,n){let o=this.renderer,i=this.el.nativeElement;n!==null?o.setAttribute(i,t,n):o.removeAttribute(i,t)}get urlTree(){return this.routerLinkInput===null?null:wt(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||e)($(K),$(mt),Pr("tabindex"),$(wn),$(ht),$(Et))};static \u0275dir=J({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){n&1&&Xr("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&Y("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",j],skipLocationChange:[2,"skipLocationChange","skipLocationChange",j],replaceUrl:[2,"replaceUrl","replaceUrl",j],routerLink:"routerLink"},features:[lt,Zt]})}return e})(),nl=(()=>{class e{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Rt;constructor(t,n,o,i,a){this.router=t,this.element=n,this.renderer=o,this.cdr=i,this.link=a,this.routerEventsSubscription=t.events.subscribe(c=>{c instanceof q&&this.update()})}ngAfterContentInit(){h(this.links.changes,h(null)).pipe(Wt()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=A(t).pipe(Wt()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(t){let n=Array.isArray(t)?t:t.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(n=>{t?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let n=Bs(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let i=o.urlTree;return i?t.isActive(i,n):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static \u0275fac=function(n){return new(n||e)($(K),$(ht),$(wn),$(Xt),$(Uo,8))};static \u0275dir=J({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,i){if(n&1&&Jr(i,Uo,5),n&2){let a;Dn(a=Mn())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Zt]})}return e})();function Bs(e){return!!e.paths}var Je=class{};var $s=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,n,o,i,a){this.router=t,this.injector=o,this.preloadingStrategy=i,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(X(t=>t instanceof q),xt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,n){let o=[];for(let i of n){i.providers&&!i._injector&&(i._injector=_n(i.providers,t,`Route: ${i.path}`));let a=i._injector??t,c=i._loadedInjector??a;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(a,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(c,i.children??i._loadedRoutes))}return A(o).pipe(Wt())}preloadConfig(t,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(t,n):o=h(null);let i=o.pipe(O(a=>a===null?h(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return A([i,a]).pipe(Wt())}else return i})}static \u0275fac=function(n){return new(n||e)(v(K),v(Oe),v(Gt),v(Je),v(yr))};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yi=new S(""),Vs=(()=>{class e{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(t,n,o,i,a={}){this.urlSerializer=t,this.transitions=n,this.viewportScroller=o,this.zone=i,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Ut?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof q?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof ut&&t.code===He.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof We&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new We(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Zr()};static \u0275prov=g({token:e,factory:e.\u0275fac})}return e})();function rl(e,...r){return fn([{provide:ge,multi:!0,useValue:e},[],{provide:mt,useFactory:wi,deps:[K]},{provide:xn,multi:!0,useFactory:_i},r.map(t=>t.\u0275providers)])}function wi(e){return e.routerState.root}function _t(e,r){return{\u0275kind:e,\u0275providers:r}}function _i(){let e=d(Te);return r=>{let t=e.get(Cn);if(r!==t.components[0])return;let n=e.get(K),o=e.get(Si);e.get(Sr)===1&&n.initialNavigation(),e.get(xi,null,hn.Optional)?.setUpPreloading(),e.get(yi,null,hn.Optional)?.init(),n.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Si=new S("",{factory:()=>new L}),Sr=new S("",{providedIn:"root",factory:()=>1});function Hs(){return _t(2,[{provide:Sr,useValue:0},{provide:Sn,multi:!0,deps:[Te],useFactory:r=>{let t=r.get(io,Promise.resolve());return()=>t.then(()=>new Promise(n=>{let o=r.get(K),i=r.get(Si);vi(o,()=>{n(!0)}),r.get(_r).afterPreactivation=()=>(n(!0),i.closed?h(void 0):i),o.initialNavigation()}))}}])}function qs(){return _t(3,[{provide:Sn,multi:!0,useFactory:()=>{let r=d(K);return()=>{r.setUpLocationChangeListener()}}},{provide:Sr,useValue:2}])}var xi=new S("");function Ws(e){return _t(0,[{provide:xi,useExisting:$s},{provide:Je,useExisting:e}])}function ol(e){return _t(5,[{provide:$t,useValue:e}])}function il(){return _t(6,[{provide:Et,useClass:En}])}function Gs(){return _t(8,[Po,{provide:tn,useExisting:Po}])}function Zs(e){let r=[{provide:hi,useValue:Ts},{provide:fi,useValue:m({skipNextTransition:!!e?.skipInitialTransition},e)}];return _t(9,r)}var jo=new S("ROUTER_FORROOT_GUARD"),Ys=[Jt,{provide:ye,useClass:Nt},K,_e,{provide:mt,useFactory:wi,deps:[K]},yr,[]],al=(()=>{class e{constructor(t){}static forRoot(t,n){return{ngModule:e,providers:[Ys,[],{provide:ge,multi:!0,useValue:t},{provide:jo,useFactory:Js,deps:[[K,new Ae,new kr]]},n?.errorHandler?{provide:bi,useValue:n.errorHandler}:[],{provide:$t,useValue:n||{}},n?.useHash?Ks():Xs(),Qs(),n?.preloadingStrategy?Ws(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?tc(n):[],n?.bindToComponentInputs?Gs().\u0275providers:[],n?.enableViewTransitions?Zs().\u0275providers:[],ec()]}}static forChild(t){return{ngModule:e,providers:[{provide:ge,multi:!0,useValue:t}]}}static \u0275fac=function(n){return new(n||e)(v(jo,8))};static \u0275mod=ct({type:e});static \u0275inj=at({})}return e})();function Qs(){return{provide:yi,useFactory:()=>{let e=d(lo),r=d(T),t=d($t),n=d(_r),o=d(ye);return t.scrollOffset&&e.setOffset(t.scrollOffset),new Vs(o,n,e,r,t)}}}function Ks(){return{provide:Et,useClass:En}}function Xs(){return{provide:Et,useClass:ao}}function Js(e){return"guarded"}function tc(e){return[e.initialNavigation==="disabled"?qs().\u0275providers:[],e.initialNavigation==="enabledBlocking"?Hs().\u0275providers:[]]}var Fo=new S("");function ec(){return[{provide:Fo,useFactory:_i},{provide:xn,multi:!0,useExisting:Fo}]}var Ci=["mat-button",""],xe=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Ce=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],nc='.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',xr="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}",Ri=["mat-fab",""],rc=["mat-mini-fab",""],Di='.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}',Mi=["mat-icon-button",""],Ei=["*"],oc='.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',ic=new S("MAT_BUTTON_CONFIG");var ac=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Re=(()=>{class e{_elementRef=d(ht);_platform=d(te);_ngZone=d(T);_animationMode=d(jr,{optional:!0});_focusMonitor=d(fo);_rippleLoader=d(yo);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){d(po).load(go);let t=d(ic,{optional:!0}),n=this._elementRef.nativeElement,o=n.classList;this.disabledInteractive=t?.disabledInteractive??!1,this.color=t?.color??null,this._rippleLoader?.configureRipple(n,{className:"mat-mdc-button-ripple"});for(let{attribute:i,mdcClasses:a}of ac)n.hasAttribute(i)&&o.add(...a)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=J({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",j],disabled:[2,"disabled","disabled",j],ariaDisabled:[2,"aria-disabled","ariaDisabled",j],disabledInteractive:[2,"disabledInteractive","disabledInteractive",j]},features:[lt]})}return e})();var Ii=(()=>{class e extends Re{tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_haltDisabledEvents=t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())};_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let t;return function(o){return(t||(t=st(e)))(o||e)}})();static \u0275dir=J({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:eo(t)]},features:[lt,Z]})}return e})(),wl=(()=>{class e extends Re{static \u0275fac=(()=>{let t;return function(o){return(t||(t=st(e)))(o||e)}})();static \u0275cmp=V({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(Y("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),dt(o.color?"mat-"+o.color:""),k("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Z],attrs:Ci,ngContentSelectors:Ce,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(tt(xe),C(0,"span",0),x(1),bt(2,"span",1),x(3,1),gt(),x(4,2),C(5,"span",2)(6,"span",3)),n&2&&k("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return e})(),sc=(()=>{class e extends Ii{static \u0275fac=(()=>{let t;return function(o){return(t||(t=st(e)))(o||e)}})();static \u0275cmp=V({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(Y("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getAriaDisabled()),dt(o.color?"mat-"+o.color:""),k("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[Z],attrs:Ci,ngContentSelectors:Ce,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(tt(xe),C(0,"span",0),x(1),bt(2,"span",1),x(3,1),gt(),x(4,2),C(5,"span",2)(6,"span",3)),n&2&&k("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[nc,xr],encapsulation:2,changeDetection:0})}return e})(),Cr=new S("mat-mdc-fab-default-options",{providedIn:"root",factory:Ai});function Ai(){return{color:"accent"}}var Vt=Ai(),_l=(()=>{class e extends Re{_options=d(Cr,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||Vt,this.color=this._options.color||Vt.color}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=V({type:e,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(n,o){n&2&&(Y("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),dt(o.color?"mat-"+o.color:""),k("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0)("mdc-fab--extended",o.extended)("mat-mdc-extended-fab",o.extended))},inputs:{extended:[2,"extended","extended",j]},exportAs:["matButton"],features:[lt,Z],attrs:Ri,ngContentSelectors:Ce,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(tt(xe),C(0,"span",0),x(1),bt(2,"span",1),x(3,1),gt(),x(4,2),C(5,"span",2)(6,"span",3)),n&2&&k("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0})}return e})(),Sl=(()=>{class e extends Re{_options=d(Cr,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||Vt,this.color=this._options.color||Vt.color}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=V({type:e,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(n,o){n&2&&(Y("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),dt(o.color?"mat-"+o.color:""),k("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Z],attrs:rc,ngContentSelectors:Ce,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(tt(xe),C(0,"span",0),x(1),bt(2,"span",1),x(3,1),gt(),x(4,2),C(5,"span",2)(6,"span",3)),n&2&&k("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[Di],encapsulation:2,changeDetection:0})}return e})(),xl=(()=>{class e extends sc{_options=d(Cr,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||Vt,this.color=this._options.color||Vt.color}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=V({type:e,selectors:[["a","mat-fab",""]],hostVars:19,hostBindings:function(n,o){n&2&&(Y("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getAriaDisabled()),dt(o.color?"mat-"+o.color:""),k("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0)("mdc-fab--extended",o.extended)("mat-mdc-extended-fab",o.extended))},inputs:{extended:[2,"extended","extended",j]},exportAs:["matButton","matAnchor"],features:[lt,Z],attrs:Ri,ngContentSelectors:Ce,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(tt(xe),C(0,"span",0),x(1),bt(2,"span",1),x(3,1),gt(),x(4,2),C(5,"span",2)(6,"span",3)),n&2&&k("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[Di],encapsulation:2,changeDetection:0})}return e})();var Cl=(()=>{class e extends Re{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=V({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(Y("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),dt(o.color?"mat-"+o.color:""),k("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Z],attrs:Mi,ngContentSelectors:Ei,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(tt(),C(0,"span",0),x(1),C(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',xr],encapsulation:2,changeDetection:0})}return e})(),Rl=(()=>{class e extends Ii{static \u0275fac=(()=>{let t;return function(o){return(t||(t=st(e)))(o||e)}})();static \u0275cmp=V({type:e,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(Y("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getAriaDisabled()),dt(o.color?"mat-"+o.color:""),k("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[Z],attrs:Mi,ngContentSelectors:Ei,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(tt(),C(0,"span",0),x(1),C(2,"span",1)(3,"span",2))},styles:[oc,xr],encapsulation:2,changeDetection:0})}return e})(),Dl=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ct({type:e});static \u0275inj=at({imports:[Tn,vo,Tn]})}return e})();var cc=20,lc=(()=>{class e{_ngZone=d(T);_platform=d(te);_document=d(M,{optional:!0});constructor(){}_scrolled=new L;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=cc){return this._platform.isBrowser?new rn(n=>{this._globalSubscription||this._addGlobalListener();let o=t>0?this._scrolled.pipe(dn(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):h()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(t,n){let o=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(X(i=>!i||o.indexOf(i)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((o,i)=>{this._scrollableContainsElement(i,t)&&n.push(i)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,n){let o=ho(n),i=t.getElementRef().nativeElement;do if(o==i)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return ln(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),od=(()=>{class e{elementRef=d(ht);scrollDispatcher=d(lc);ngZone=d(T);dir=d(bo,{optional:!0});_destroyed=new L;_elementScrolled=new rn(t=>this.ngZone.runOutsideAngular(()=>ln(this.elementRef.nativeElement,"scroll").pipe(Ie(this._destroyed)).subscribe(t)));constructor(){}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),o&&At()!=It.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),At()==It.INVERTED?t.left=t.right:At()==It.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;mo()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left))}measureScrollOffset(t){let n="left",o="right",i=this.elementRef.nativeElement;if(t=="top")return i.scrollTop;if(t=="bottom")return i.scrollHeight-i.clientHeight-i.scrollTop;let a=this.dir&&this.dir.value=="rtl";return t=="start"?t=a?o:n:t=="end"&&(t=a?n:o),a&&At()==It.INVERTED?t==n?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:a&&At()==It.NEGATED?t==n?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:t==n?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}static \u0275fac=function(n){return new(n||e)};static \u0275dir=J({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return e})(),dc=20,id=(()=>{class e{_platform=d(te);_viewportSize;_change=new L;_changeListener=t=>{this._change.next(t)};_document=d(M,{optional:!0});constructor(){d(T).runOutsideAngular(()=>{if(this._platform.isBrowser){let n=this._getWindow();n.addEventListener("resize",this._changeListener),n.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,n=this._getWindow(),o=t.documentElement,i=o.getBoundingClientRect(),a=-i.top||t.body.scrollTop||n.scrollY||o.scrollTop||0,c=-i.left||t.body.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:c}}change(t=dc){return t>0?this._change.pipe(dn(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ti=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ct({type:e});static \u0275inj=at({})}return e})(),ad=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ct({type:e});static \u0275inj=at({imports:[An,Ti,An,Ti]})}return e})();export{So as a,Pc as b,zc as c,Io as d,na as e,q as f,mt as g,za as h,K as i,Uo as j,nl as k,rl as l,ol as m,il as n,Zs as o,al as p,wl as q,sc as r,_l as s,Sl as t,xl as u,Cl as v,Rl as w,Dl as x,lc as y,od as z,id as A,Ti as B,ad as C}; diff --git a/chunk-CAHCLBUG.js b/chunk-6GR4MAJE.js similarity index 96% rename from chunk-CAHCLBUG.js rename to chunk-6GR4MAJE.js index fd318d4f..ddd5e71d 100644 --- a/chunk-CAHCLBUG.js +++ b/chunk-6GR4MAJE.js @@ -1 +1 @@ -import{a as Ao}from"./chunk-DUF4HXV7.js";import{a as Yi}from"./chunk-KAZRQD4G.js";import{b as $i,c as Bi,d as Ui,e as ji,f as zi,g as Wi}from"./chunk-ZQOXWN4S.js";import{a as Eo,b as To,c as Io,d as Lo,e as Vo,f as No}from"./chunk-LBSELHKL.js";import{a as yo,b as bo,c as Mo,e as Do}from"./chunk-66MLPMX6.js";import{a as ro,b as mo,c as go,d as _o,e as vo,f as Co}from"./chunk-JCCZXGKN.js";import{a as so,b as co}from"./chunk-AFH22WZE.js";import{d as Q,e as j}from"./chunk-LFAX4DK3.js";import{a as St}from"./chunk-AD4TXQD3.js";import{a as xo,b as Oo,c as wo,d as So,f as Po,g as ko,h as Fo}from"./chunk-JX4IWPKV.js";import{c as po,d as uo,e as fo,f as ho}from"./chunk-XC6WES62.js";import{a as Xi}from"./chunk-5FZSI2PL.js";import{a as Xe}from"./chunk-LVUYG7JQ.js";import{b as Qe}from"./chunk-RRBYVHNZ.js";import{a as no}from"./chunk-WK53HQNR.js";import{a as to}from"./chunk-ZHS65JNW.js";import{a as Ze,b as et}from"./chunk-3I45H2NO.js";import{a as Qi}from"./chunk-WBTUXFAS.js";import{a as Zi,e as Je,h as eo}from"./chunk-R66KDUEB.js";import{b as Ri}from"./chunk-MLNPCJDD.js";import{a as Ei}from"./chunk-WVZCQXYK.js";import"./chunk-2E7FYHXW.js";import"./chunk-UOTKRQ63.js";import{b as Gi}from"./chunk-BJXILAOS.js";import{a as lo}from"./chunk-AC7KYN3P.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import{c as Ji}from"./chunk-NWAJWWA3.js";import"./chunk-XIUDFJWJ.js";import{a as se,b as tt,f as ao}from"./chunk-TZR6QHL3.js";import"./chunk-5DAHKZ7F.js";import{a as de}from"./chunk-A3N3AUUJ.js";import{B as Ye,C as Hi,G as le,I as N,L as qi,M as Ki,b as ki,g as Fi,r as wt,v as Di,w as Ai}from"./chunk-4FWBEGAE.js";import{a as io,b as oo}from"./chunk-HGOTYYGI.js";import{b as te,c as ye,e as Si,g as Pi,i as q,j as $}from"./chunk-2K6IALUF.js";import{i as si,j as Ce,p as ci}from"./chunk-KXTQ2UTD.js";import{c as mi,d as Be,e as pi,g as Ee,h as di,j as bt}from"./chunk-I7VYXJU2.js";import{a as ie,b as be,c as Ke,e as oe,f as ne,g as ae,l as re}from"./chunk-PAP2P7QR.js";import{a as Me,b as xe,f as Oe,i as Y}from"./chunk-EC6LD5KM.js";import{a as D,b as Ti,c as B,e as M,f as v,g as Ii,h as A,i as U,j as L,l as h,m as ze,o as Li,p as We,q as K,r as Vi,s as V,v as Ni,w as qe,x as O}from"./chunk-EDIJ2EBQ.js";import{D as hi,E as gi,F as Mt,G as je,I as _i,T as vi,U as Ci,Y as xt,aa as yi,f as ui,ka as bi,la as Mi,ma as xi,na as ee,o as fi,oa as Oi,pa as wi,qa as Ot,s as Ue}from"./chunk-W5KNOAKV.js";import{$b as y,A as Re,B as Vt,Ba as Ge,D as Se,Ea as fe,Eb as Xt,F as R,Fa as Wt,Fb as ke,Fc as S,Gb as Jt,Ha as $e,Hc as X,Ia as x,J as He,Ja as Pe,Jc as G,Kc as z,L as W,Lc as ai,Mb as vt,N as Nt,Nb as _,Ob as _e,Pb as ve,Sb as Fe,Sc as me,Tb as d,Va as qt,Vb as Zt,Vc as pe,Wb as ei,Y as Rt,Yb as F,Z as Ht,_ as ue,a as At,ac as b,b as Et,ba as Gt,bc as a,cc as r,d as ht,da as $t,dc as c,e as Ve,ed as ri,fa as Bt,g as Tt,gb as he,ha as _t,hc as T,j as gt,je as J,ka as s,kc as g,lb as p,mb as Kt,mc as w,nc as ti,ob as Yt,oc as ii,p as It,pc as Ct,pe as li,qc as yt,rc as De,sa as Ut,sc as Ae,t as Ne,ta as P,ua as k,ub as f,uc as oi,va as jt,vb as Qt,vc as ni,wb as ge,wc as Z,xc as m,y as Lt,yc as H,za as zt,zc as I}from"./chunk-TEKHUYWQ.js";var Ro=(()=>{class t{router=s(si);destroyRef=s(Ge);authFacade=s(se);layoutFacade=s(Qe);ngOnInit(){this.authFacade.auth$.pipe(de(this.destroyRef)).subscribe(e=>{e&&(this.layoutFacade.loadNavLinks(e.roles),this.waitingForLogout())}),this.authFacade.load()}waitingForLogout(){this.authFacade.auth$.pipe(de(this.destroyRef)).subscribe(e=>{e||(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-feature-shell"]],decls:1,vars:0,template:function(i,o){i&1&&c(0,"devmx-layout")},dependencies:[ci,Yi],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();function Ho(t){return n=>!n.value||n.value.trim()===""||t.test(n.value)?null:{invalidPhone:{value:n.value}}}var it=(()=>{class t{ngControl;previousValue="";constructor(e){this.ngControl=e}onInput(e){let i=e.value.replace(/\D/g,""),o="";if(i.length>10?o=i.replace(/(\d{2})(\d{5})(\d{4})/,"($1) $2-$3"):i.length>6?o=i.replace(/(\d{2})(\d{4})(\d{0,4})/,"($1) $2-$3"):i.length>2?o=i.replace(/(\d{2})(\d{0,4})/,"($1) $2"):i.length>0&&(o=i.replace(/(\d*)/,"($1")),e.value.length()=>{let n=s(se),e=n.auth$.pipe(R(i=>!!i),Ne(i=>i.roles[t]));return n.load(),e};var Bo=(()=>{class t{authFacade=s(se);layoutFacade=s(Qe);ngOnInit(){this.authFacade.signOut(),this.layoutFacade.resetNavLinks()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-sign-out"]],decls:0,vars:0,template:function(i,o){},encapsulation:2})}return t})();var Uo=(()=>{class t{container=s(v);get form(){return this.container.control}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-visibility"]],features:[S([],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:19,vars:0,consts:[["formGroupName","visibility"],["formControlName","email"],["formControlName","phone"],["formControlName","gender"],["formControlName","birthday"],["formControlName","roles"],["formControlName","events"],["formControlName","presentations"],["formControlName","skills"],["formControlName","photos"]],template:function(i,o){i&1&&(a(0,"div",0)(1,"mat-checkbox",1),m(2,"Endere\xE7o de e-mail"),r(),a(3,"mat-checkbox",2),m(4,"Telefone"),r(),a(5,"mat-checkbox",3),m(6,"G\xEAnero"),r(),a(7,"mat-checkbox",4),m(8,"Data de nascimento"),r(),a(9,"mat-checkbox",5),m(10,"Permiss\xF5es"),r(),a(11,"mat-checkbox",6),m(12,"Eventos"),r(),a(13,"mat-checkbox",7),m(14,"Apresenta\xE7\xF5es"),r(),a(15,"mat-checkbox",8),m(16,"Habilidades"),r(),a(17,"mat-checkbox",9),m(18,"Fotos"),r()())},dependencies:[O,A,U,V,K,co,so],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%]{display:grid;grid-auto-flow:dense;grid-template-columns:repeat(3,1fr)}@media (max-width: 1278px){[_nghost-%COMP%] div[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] div[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}"],changeDetection:0})}return t})();var jo=(()=>{class t{icon=x("tech/folder-opened");accept=x(["image/png","image/jpeg","image/svg+xml","image/webp"]);selectChange=$e();onFilesChange(e){let[i]=Array.from(e??[]);i&&this.selectChange.emit(i)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-select-file"]],inputs:{icon:[1,"icon"],accept:[1,"accept"]},outputs:{selectChange:"selectChange"},decls:4,vars:1,consts:[["input",""],["hidden","","type","file","name","file",3,"change","accept"],["type","button","mat-icon-button","",3,"click"],["name","tech/folder-opened"]],template:function(i,o){if(i&1){let l=T();a(0,"input",1,0),g("change",function(){P(l);let E=Z(1);return k(o.onFilesChange(E.files))}),r(),a(2,"button",2),g("click",function(){P(l);let E=Z(1);return k(E.click())}),c(3,"devmx-icon",3),r()}i&2&&d("accept",o.accept())},dependencies:[N,le,D],encapsulation:2,changeDetection:0})}return t})();var ot=(()=>{class t{ref=s(Pe);destroy=s(Ge);get context(){return this.ref.nativeElement.getContext("2d")}image=new Image;position=new wt;mouse=new wt;isDragging=!1;scale=1;ngAfterViewInit(){this.ref.nativeElement.addEventListener("mousemove",this.dragImage),this.ref.nativeElement.addEventListener("mousedown",this.startDrag),this.ref.nativeElement.addEventListener("mouseleave",this.stopDrag),this.ref.nativeElement.addEventListener("mouseup",this.stopDrag),this.image.addEventListener("load",this.drawImage),this.destroy.onDestroy(()=>{this.ref.nativeElement.removeEventListener("mousemove",this.dragImage),this.ref.nativeElement.removeEventListener("mousedown",this.startDrag),this.ref.nativeElement.removeEventListener("mouseleave",this.stopDrag),this.ref.nativeElement.removeEventListener("mouseup",this.stopDrag),this.image.removeEventListener("load",this.drawImage)})}drawImage=()=>{if(!this.image||!this.context)return;let{width:e,height:i}=this.context.canvas;this.context.clearRect(0,0,e,i);let{x:o,y:l}=this.position,u=this.image.width*this.scale,E=this.image.height*this.scale;this.context.drawImage(this.image,o,l,u,E)};zoomIn(){this.scale*=1.1,this.drawImage()}zoomOut(){this.scale/=1.1,this.drawImage()}startDrag=({clientX:e,clientY:i})=>{this.isDragging=!0,this.mouse.set(e,i)};stopDrag=()=>{this.isDragging=!1};dragImage=({clientX:e,clientY:i})=>{if(this.isDragging){let o=e-this.mouse.x,l=i-this.mouse.y;this.position.add({x:o,y:l}),this.mouse.set(e,i),this.drawImage()}};static \u0275fac=function(i){return new(i||t)};static \u0275dir=ge({type:t,selectors:[["canvas","devmxCropPhoto",""]]})}return t})();var zo=(()=>{class t{ref=s(po);data=s(uo);cropPhoto=Jt(ot);ngAfterViewInit(){let e=this.cropPhoto();e&&(e.image.src=URL.createObjectURL(this.data.file))}zoomIn(){this.cropPhoto()?.zoomIn()}zoomOut(){this.cropPhoto()?.zoomOut()}crop(){let e=document.createElement("canvas"),i=e.getContext("2d"),o=this.cropPhoto();if(!o||!o.context||!i)return;e.width=o.context.canvas.width,e.height=o.context.canvas.height;let{x:l,y:u}=o.position,E=o.image.width*o.scale,Cn=o.image.height*o.scale;i.drawImage(o.image,l,u,E,Cn),e.toBlob(Dt=>{Dt&&this.ref.close(Dt)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-user-photo"]],viewQuery:function(i,o){i&1&&oi(o.cropPhoto,ot,5),i&2&&ni()},decls:11,vars:0,consts:[[1,"canvas-wrapper"],["devmxCropPhoto","","width","400","height","400"],[1,"canvas-overlay"],["type","button","mat-icon-button","",3,"click"],["name","zoom-plus"],["name","zoom-minus"],["mat-icon-button","",3,"click"],["name","menu/crop"]],template:function(i,o){i&1&&(a(0,"div",0),c(1,"canvas",1)(2,"div",2),r(),a(3,"footer")(4,"div")(5,"button",3),g("click",function(){return o.zoomIn()}),c(6,"devmx-icon",4),r(),a(7,"button",3),g("click",function(){return o.zoomOut()}),c(8,"devmx-icon",5),r()(),a(9,"button",6),g("click",function(){return o.crop()}),c(10,"devmx-icon",7),r()())},dependencies:[ho,N,le,ot,D],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:1em;overflow:hidden;background-color:#fff}[_nghost-%COMP%] .canvas-wrapper[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .canvas-overlay[_ngcontent-%COMP%]{top:0;left:0;width:400px;height:400px;position:absolute;pointer-events:none;overflow:hidden}[_nghost-%COMP%] .canvas-overlay[_ngcontent-%COMP%]:before{content:"";position:absolute;top:1em;left:1em;width:calc(100% - 2em);height:calc(100% - 2em);background:transparent;border:1px dashed rgba(255,255,255,.8);border-radius:50%;box-shadow:0 0 0 100vmax #0009}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{padding:1em;display:flex;align-items:center;justify-content:space-between}'],changeDetection:0})}return t})();var Ie=class{dialog;constructor(n){this.dialog=n}open(n){return this.dialog.open(zo,{data:n})}};function nt(){return{provide:Ie,deps:[fo]}}var at=class extends L{constructor(){super({email:new h("",{nonNullable:!0,validators:[M.required,M.email]}),phone:new h("",{nonNullable:!0,validators:[M.maxLength(15),Ho(/^\(\d{2}\) \d{4,5}-\d{4}$/)]})})}};var rt=class extends L{genders=[{value:"female",viewValue:"Feminino"},{value:"male",viewValue:"Masculino"},{value:"non-binary",viewValue:"N\xE3o bin\xE1rio"},{value:"gender-fluid",viewValue:"G\xEAnero flu\xEDdo"},{value:"agender",viewValue:"Ag\xEAnero"},{value:"prefer-not-to-say",viewValue:"Prefiro n\xE3o dizer"},{value:"",viewValue:"Outro"}];get gender(){return this.controls.gender}constructor(){super({minibio:new h("",{nonNullable:!0,validators:[M.maxLength(102400)]}),birthday:new h,gender:new h,photo:new h})}};var lt=class extends L{constructor(){super({academic:new h(!1,{nonNullable:!0}),director:new h({value:!1,disabled:!0},{nonNullable:!0}),donor:new h({value:!1,disabled:!0},{nonNullable:!0}),fellow:new h({value:!1,disabled:!0},{nonNullable:!0}),leader:new h({value:!1,disabled:!0},{nonNullable:!0}),manager:new h({value:!1,disabled:!0},{nonNullable:!0}),member:new h(!1,{nonNullable:!0,validators:[M.requiredTrue]}),neighbor:new h({value:!1,disabled:!0},{nonNullable:!0}),recruiter:new h(!1,{nonNullable:!0}),speaker:new h(!1,{nonNullable:!0}),staff:new h({value:!1,disabled:!0},{nonNullable:!0})})}};var xn=["panel"],On=["*"];function wn(t,n){if(t&1){let e=T();a(0,"div",1,0),g("@panelAnimation.done",function(o){P(e);let l=w();return k(l._animationDone.next(o))}),ii(2),r()}if(t&2){let e=n.id,i=w();ei(i._classList),Zt("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),d("id",i.id)("@panelAnimation",i.isOpen?"visible":"hidden"),Fe("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var Sn=mi("panelAnimation",[di("void, hidden",Ee({opacity:0,transform:"scaleY(0.8)"})),bt(":enter, hidden => visible",[pi([Be("0.03s linear",Ee({opacity:1})),Be("0.12s cubic-bezier(0, 0, 0.2, 1)",Ee({transform:"scaleY(1)"}))])]),bt(":leave, visible => hidden",[Be("0.075s linear",Ee({opacity:0}))])]),Pt=class{source;option;constructor(n,e){this.source=n,this.option=e}},Ko=new _t("mat-autocomplete-default-options",{providedIn:"root",factory:Pn});function Pn(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var Yo=(()=>{class t{_changeDetectorRef=s(me);_elementRef=s(Pe);_defaults=s(Ko);_activeOptionChanges=Ve.EMPTY;_animationDone=new fe;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new fe;opened=new fe;closed=new fe;optionActivated=new fe;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=s(vi).getId("mat-autocomplete-");inertGroups;constructor(){let e=s(ui);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new _i(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new Pt(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,o,l){if(i&1&&(Ct(l,ee,5),Ct(l,Mi,5)),i&2){let u;De(u=Ae())&&(o.options=u),De(u=Ae())&&(o.optionGroups=u)}},viewQuery:function(i,o){if(i&1&&(yt(Yt,7),yt(xn,5)),i&2){let l;De(l=Ae())&&(o.template=l.first),De(l=Ae())&&(o.panel=l.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",pe],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",pe],requireSelection:[2,"requireSelection","requireSelection",pe],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",pe],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",pe]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[S([{provide:bi,useExisting:t}]),vt],ngContentSelectors:On,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,o){i&1&&(ti(),_(0,wn,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Sn]},changeDetection:0})}return t})();var kn={provide:Ti,useExisting:$t(()=>kt),multi:!0};var Qo=new _t("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=s(Je);return()=>t.scrollStrategies.reposition()}});function Fn(t){return()=>t.scrollStrategies.reposition()}var Dn={provide:Qo,deps:[Je],useFactory:Fn},kt=(()=>{class t{_element=s(Pe);_overlay=s(Je);_viewContainerRef=s(Xt);_zone=s(Wt);_changeDetectorRef=s(me);_dir=s(Ci,{optional:!0});_formField=s(Pi,{optional:!0,host:!0});_document=s(ri);_viewportRuler=s(qi);_defaults=s(Ko,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_scrollStrategy=s(Qo);_keydownSubscription;_outsideClickSubscription;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ve.EMPTY;_breakpointObserver=s(hi);_handsetLandscapeSubscription=Ve.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new gt;_windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;_initialized=new gt;_injector=s(zt);constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&je(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Se(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(R(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(R(()=>this._overlayAttached)):It()).pipe(Ne(e=>e instanceof xi?e:null))}optionSelections=Lt(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(Ht(e),ue(()=>Se(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(ue(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Se(Re(this._document,"click"),Re(this._document,"auxclick"),Re(this._document,"touchend")).pipe(R(e=>{let i=fi(e),o=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(i))&&(!l||!l.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e.keyCode,o=Ue(e);if(i===27&&!o&&e.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&i===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){let l=this.autocomplete._keyManager.activeItem,u=i===38||i===40;i===9||u&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):u&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(u||this.autocomplete._keyManager.activeItem!==l)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,o=i.value;if(i.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let l=this.autocomplete.options?.find(u=>u.selected);if(l){let u=this._getDisplayValue(l.value);o!==u&&l.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===e.target){let l=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(l)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Tt(o=>{qt(()=>{o.next()},{injector:this._injector})}),i=this.autocomplete.options.changes.pipe(Gt(()=>this._positionStrategy.reapplyLastPosition()),Nt(0));return Se(e,i).pipe(ue(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),W(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,o=e?e.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),i._emitSelectEvent(o),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),i._animationDone?i._animationDone.pipe(W(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;Mt(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Gi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(gi.HandsetLandscape).subscribe(l=>{l.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ue(e)||e.keyCode===38&&Ue(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Zi({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],u;this.position==="above"?u=l:this.position==="below"?u=i:u=[...i,...l],e.withPositions(u)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&je(this._trackedModal,"aria-owns",i),Mt(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;je(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=ge({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,o){i&1&&g("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(u){return o._handleInput(u)})("keydown",function(u){return o._handleKeydown(u)})("click",function(){return o._handleClick()}),i&2&&Fe("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",pe]},exportAs:["matAutocompleteTrigger"],features:[S([kn]),vt,Ut]})}return t})(),Xo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Qt({type:t});static \u0275inj=Bt({providers:[Dn],imports:[eo,Ot,xt,Ki,Ot,xt]})}return t})();var En=(t,n)=>n.id;function Tn(t,n){if(t&1&&(a(0,"mat-option",3),m(1),r()),t&2){let e=n.$implicit;d("value",e),p(),H(e.name)}}function In(t,n){t&1&&y(0,Tn,2,2,"mat-option",3,En),t&2&&b(n.data)}var Zo=(()=>{class t{skillFacade=s(Xe);selected=$e();label=x("Habilidade");control=new h("");constructor(){this.control.valueChanges.pipe(R(e=>typeof e=="string"),R(e=>e.length>0),de(),He(400)).subscribe(e=>{this.skillFacade.setFilter({name:e}),this.skillFacade.load()})}displayFn(e){return e&&e.name?e.name:""}onOptionSelected(e){this.selected.emit(e),this.control.setValue("")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-search-skill"]],inputs:{label:[1,"label"]},outputs:{selected:"selected"},decls:8,vars:7,consts:[["auto","matAutocomplete"],["matInput","",3,"formControl","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value"]],template:function(i,o){if(i&1){let l=T();a(0,"mat-form-field")(1,"mat-label"),m(2),r(),c(3,"input",1),a(4,"mat-autocomplete",2,0),g("optionSelected",function(E){return P(l),k(o.onOptionSelected(E.option.value))}),_(6,In,2,0),G(7,"async"),r()()}if(i&2){let l,u=Z(5);p(2),H(o.label()),p(),d("formControl",o.control)("matAutocomplete",u),p(),d("displayWith",o.displayFn),p(2),F((l=z(7,5,o.skillFacade.response$))?6:-1,l)}},dependencies:[O,B,A,Li,Xo,Yo,ee,kt,$,q,te,j,Q,J],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();function Ln(t,n){if(t&1&&(jt(),a(0,"svg",0),c(1,"path",2),r()),t&2){let e=w();p(),Fe("fill",e.color())}}function Vn(t,n){if(t&1&&c(0,"img",1),t&2){let e=w();d("src",e.path,he)}}var en=(()=>{class t{env=s(ki);color=x("#333");src=x();get path(){return`${this.env.photos.url}/${this.src()}`}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-avatar"]],inputs:{color:[1,"color"],src:[1,"src"]},decls:2,vars:1,consts:[["fill","none","viewBox","0 0 48 48","xmlns","http://www.w3.org/2000/svg"],["alt","Avatar",3,"src"],["d","M11.7 34.2C13.4 32.9 15.3 31.875 17.4 31.125C19.5 30.375 21.7 30 24 30C26.3 30 28.5 30.375 30.6 31.125C32.7 31.875 34.6 32.9 36.3 34.2C37.4667 32.8333 38.375 31.2833 39.025 29.55C39.675 27.8167 40 25.9667 40 24C40 19.5667 38.4417 15.7917 35.325 12.675C32.2083 9.55833 28.4333 8 24 8C19.5667 8 15.7917 9.55833 12.675 12.675C9.55833 15.7917 8 19.5667 8 24C8 25.9667 8.325 27.8167 8.975 29.55C9.625 31.2833 10.5333 32.8333 11.7 34.2ZM24 26C22.0333 26 20.375 25.325 19.025 23.975C17.675 22.625 17 20.9667 17 19C17 17.0333 17.675 15.375 19.025 14.025C20.375 12.675 22.0333 12 24 12C25.9667 12 27.625 12.675 28.975 14.025C30.325 15.375 31 17.0333 31 19C31 20.9667 30.325 22.625 28.975 23.975C27.625 25.325 25.9667 26 24 26ZM24 44C21.2333 44 18.6333 43.475 16.2 42.425C13.7667 41.375 11.65 39.95 9.85 38.15C8.05 36.35 6.625 34.2333 5.575 31.8C4.525 29.3667 4 26.7667 4 24C4 21.2333 4.525 18.6333 5.575 16.2C6.625 13.7667 8.05 11.65 9.85 9.85C11.65 8.05 13.7667 6.625 16.2 5.575C18.6333 4.525 21.2333 4 24 4C26.7667 4 29.3667 4.525 31.8 5.575C34.2333 6.625 36.35 8.05 38.15 9.85C39.95 11.65 41.375 13.7667 42.425 16.2C43.475 18.6333 44 21.2333 44 24C44 26.7667 43.475 29.3667 42.425 31.8C41.375 34.2333 39.95 36.35 38.15 38.15C36.35 39.95 34.2333 41.375 31.8 42.425C29.3667 43.475 26.7667 44 24 44ZM24 40C25.7667 40 27.4333 39.7417 29 39.225C30.5667 38.7083 32 37.9667 33.3 37C32 36.0333 30.5667 35.2917 29 34.775C27.4333 34.2583 25.7667 34 24 34C22.2333 34 20.5667 34.2583 19 34.775C17.4333 35.2917 16 36.0333 14.7 37C16 37.9667 17.4333 38.7083 19 39.225C20.5667 39.7417 22.2333 40 24 40ZM24 22C24.8667 22 25.5833 21.7167 26.15 21.15C26.7167 20.5833 27 19.8667 27 19C27 18.1333 26.7167 17.4167 26.15 16.85C25.5833 16.2833 24.8667 16 24 16C23.1333 16 22.4167 16.2833 21.85 16.85C21.2833 17.4167 21 18.1333 21 19C21 19.8667 21.2833 20.5833 21.85 21.15C22.4167 21.7167 23.1333 22 24 22Z"]],template:function(i,o){i&1&&_(0,Ln,2,1,":svg:svg",0)(1,Vn,1,1,"img",1),i&2&&F(o.src()===""?0:1)},styles:["[_nghost-%COMP%]{display:inline-flex;border-radius:50%;overflow:hidden;width:inherit;height:auto}[_nghost-%COMP%] img[_ngcontent-%COMP%]{width:inherit;height:auto}"],changeDetection:0})}return t})();var mt=class extends L{constructor(n){super({skill:new Ao,weight:new h(0,{nonNullable:!0,validators:[M.min(0),M.max(100)]})}),n&&this.patchValue(n)}},pt=class extends qe{constructor(){super([])}add(n){this.push(new mt(n))}has(n){return this.value.some(e=>e.skill===n)}patchValue(n,e){for(let i of n)this.has(i.skill)||this.push(new mt(i),e)}};var we=class extends L{constructor(n){super({type:new h("website",{nonNullable:!0,validators:[M.required]}),username:new h("",{nonNullable:!0,validators:[M.required]})}),n&&this.patchValue(n)}},dt=class extends qe{constructor(){super([])}add(n){this.push(new we(n))}has(n){return this.value.some(e=>e.type===n)}patchValue(n,e){for(let i of n)this.has(i.type)||this.push(new we(i),e)}};var ut=class extends L{constructor(){super({email:new h(!1,{nonNullable:!0}),phone:new h(!1,{nonNullable:!0}),birthday:new h(!1,{nonNullable:!0}),gender:new h(!1,{nonNullable:!0}),roles:new h(!1,{nonNullable:!0}),events:new h(!1,{nonNullable:!0}),photos:new h(!1,{nonNullable:!0}),presentations:new h(!1,{nonNullable:!0}),skills:new h(!1,{nonNullable:!0})})}};var ft=class extends L{constructor(){super({id:new h("",{nonNullable:!0,validators:[M.required]}),name:new h("",{nonNullable:!0,validators:[M.required,M.pattern(/^[a-z0-9]+$/)]}),displayName:new h("",{nonNullable:!0,validators:[M.required]}),profile:new rt,contact:new at,social:new dt,active:new h,roles:new lt,skills:new pt,visibility:new ut})}get profile(){return this.controls.profile}get contact(){return this.controls.contact}get social(){return this.controls.social}get roles(){return this.controls.roles}get skills(){return this.controls.skills}patch(n){this.patchValue(n),n.social&&n.social.length&&this.social.patchValue(n.social)}};var Rn=(t,n)=>n.value;function Hn(t,n){if(t&1&&(a(0,"mat-option",3),m(1),r()),t&2){let e=n.$implicit;d("value",e.value),p(),I(" ",e.viewValue," ")}}function Gn(t,n){t&1&&(a(0,"mat-form-field"),c(1,"input",7),a(2,"mat-error"),m(3,"Inv\xE1lido"),r()())}function $n(t,n){t&1&&(a(0,"mat-form-field"),c(1,"input",8),a(2,"mat-error"),m(3,"Inv\xE1lido"),r()())}var tn=(()=>{class t{ref=s(xo);data=s(Oo);allOptions=[{value:"website",viewValue:"Website"},{value:"github",viewValue:"Github"},{value:"linkedIn",viewValue:"Linked In"},{value:"whatsApp",viewValue:"WhatsApp"},{value:"notion",viewValue:"Notion"},{value:"instagram",viewValue:"Instagram"}];options=ke([]);form=new we;ngOnInit(){if(this.data){let e=this.allOptions.filter(i=>this.data.items.every(o=>i.value!==o.type));this.options.set(e)}}onSubmit(){return this.form.valid?this.ref.close(this.form.getRawValue()):this.form.markAllAsTouched()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-user-social"]],decls:13,vars:2,consts:[[3,"submit","formGroup"],[1,"user-social-dialog-content"],["formControlName","type"],[3,"value"],[1,"user-social-dialog-actions"],["type","button","mat-button","","mat-dialog-close",""],["mat-flat-button",""],["matInput","","formControlName","username","devmxPhone","","maxlength","15"],["matInput","","formControlName","username"]],template:function(i,o){i&1&&(a(0,"form",0),g("submit",function(){return o.onSubmit()}),a(1,"mat-dialog-content",1)(2,"mat-form-field")(3,"mat-select",2),y(4,Hn,2,2,"mat-option",3,Rn),r()(),_(6,Gn,4,0,"mat-form-field")(7,$n,4,0,"mat-form-field"),r(),a(8,"mat-dialog-actions",4)(9,"button",5),m(10,"Cancelar"),r(),a(11,"button",6),m(12,"Salvar"),r()()()),i&2&&(d("formGroup",o.form),p(4),b(o.options()),p(2),F(o.form.value.type==="whatsApp"?6:7))},dependencies:[O,ze,B,A,U,Ni,We,V,Fo,So,ko,Po,N,Ye,et,q,ye,Ze,ee,$,j,Q,it],styles:["[_nghost-%COMP%] .user-social-dialog-content[_ngcontent-%COMP%]{gap:1em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .user-social-dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})}return t})();var Le=class{dialog;constructor(n){this.dialog=n}open(n){return this.dialog.open(tn,{data:n})}};function on(){return{provide:Le,deps:[wo]}}var Bn=(t,n)=>n.value;function Un(t,n){if(t&1&&(a(0,"mat-option",3),m(1),r()),t&2){let e=n.$implicit;d("value",e.value),p(),I(" ",e.viewValue," ")}}var nn=(()=>{class t{container=s(v);get form(){return this.container.control}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-profile"]],features:[S([yi(),nt()],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:15,vars:2,consts:[["picker",""],["formGroupName","profile"],["formControlName","gender"],[3,"value"],["matInput","","formControlName","birthday","readonly","",3,"focus","matDatepicker"],["matIconSuffix","",3,"for"]],template:function(i,o){if(i&1){let l=T();a(0,"div",1)(1,"div")(2,"mat-form-field")(3,"mat-label"),m(4,"G\xEAnero"),r(),a(5,"mat-select",2),y(6,Un,2,2,"mat-option",3,Bn),r()(),a(8,"mat-form-field")(9,"mat-label"),m(10,"Data de nascimento"),r(),a(11,"input",4),g("focus",function(){P(l);let E=Z(14);return k(E.open())}),r(),c(12,"mat-datepicker-toggle",5)(13,"mat-datepicker",null,0),r()()()}if(i&2){let l=Z(14);p(6),b(o.form.profile.genders),p(5),d("matDatepicker",l),p(),d("for",l)}},dependencies:[O,B,A,U,V,K,Co,go,_o,vo,$,q,te,Si,et,Ze,ee,j,Q],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:row}@media (max-width: 768px){[_nghost-%COMP%] div[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:0em;flex-direction:column}}"],changeDetection:0})}return t})();var an=(()=>{class t{container=s(v);get form(){return this.container.control}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-contact"]],features:[S([],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:13,vars:0,consts:[["formGroupName","contact"],["matInput","","type","email","formControlName","email","autocomplete","email"],["matInput","","formControlName","phone","autocomplete","mobile","devmxPhone",""]],template:function(i,o){i&1&&(a(0,"div",0)(1,"mat-form-field")(2,"mat-label"),m(3,"E-mail"),r(),c(4,"input",1),a(5,"mat-error"),m(6,"Inv\xE1lido"),r()(),a(7,"mat-form-field")(8,"mat-label"),m(9,"Telefone"),r(),c(10,"input",2),a(11,"mat-error"),m(12,"Inv\xE1lido"),r()()())},dependencies:[O,B,A,U,V,K,it,$,q,te,ye,j,Q],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:row}@media (max-width: 768px){[_nghost-%COMP%] div[_ngcontent-%COMP%]{gap:0em;flex-direction:column}}"],changeDetection:0})}return t})();var jn=(t,n)=>n.value;function zn(t,n){t&1&&c(0,"div",12)}function Wn(t,n){if(t&1){let e=T();a(0,"mat-expansion-panel",1)(1,"mat-expansion-panel-header",3),_(2,zn,1,0,"div",4),a(3,"mat-panel-title",5),c(4,"devmx-icon",6),a(5,"span"),m(6),r()(),a(7,"mat-panel-description",7),m(8),r(),a(9,"button",8),g("click",function(){let o=P(e).$index,l=w();return k(l.form.skills.removeAt(o))}),c(10,"devmx-icon",9),r()(),a(11,"div")(12,"mat-slider",10),c(13,"input",11),r()()()}if(t&2){let e=n.$implicit,i=n.$index,o=w();d("cdkDragData",e)("formGroupName",i),p(6),I(" ",e.value.skill==null?null:e.value.skill.name," "),p(2),I(" ",e.value.weight,"% "),p(4),d("displayWith",o.formatLabel)}}var rn=(()=>{class t{container=s(v);skillFacade=s(Xe);cdr=s(me);get form(){return this.container.control}onNewSkill(e){this.form.skills.add({skill:e,weight:0})}formatLabel(e){return`${e}%`}drop(e){Eo(this.form.skills.controls,e.previousIndex,e.currentIndex)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-skills"]],features:[S([],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:4,vars:0,consts:[["hideToggle","","cdkDropList","","formArrayName","skills",1,"skills-list",3,"cdkDropListDropped"],["cdkDrag","",1,"skill-item",3,"cdkDragData","formGroupName"],[3,"selected"],[1,"skill-header"],["class","drag-placeholder",4,"cdkDragPlaceholder"],[1,"skill-title"],["name","drag/indicator","cdkDragHandle",""],[1,"skill-weight"],["type","button","mat-icon-button","",3,"click"],["name","trash"],["min","0","max","100","step","10","discrete","","showTickMarks","",3,"displayWith"],["matSliderThumb","","formControlName","weight"],[1,"drag-placeholder"]],template:function(i,o){i&1&&(a(0,"mat-accordion",0),g("cdkDropListDropped",function(u){return o.drop(u)}),y(1,Wn,14,5,"mat-expansion-panel",1,jn),r(),a(3,"devmx-search-skill",2),g("selected",function(u){return o.onNewSkill(u)}),r()),i&2&&(p(),b(o.form.skills.controls))},dependencies:[Ri,Zo,O,B,A,U,V,K,Vi,Wi,zi,$i,Bi,ji,Ui,N,le,No,Lo,Io,To,Vo,Y,D,Mo,yo,bo],styles:["[_nghost-%COMP%]{gap:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .cdk-drag-preview[_ngcontent-%COMP%]{border:none;box-sizing:border-box}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:space-between;align-items:center}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%] .skill-title[_ngcontent-%COMP%]{gap:.4em;display:flex}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%] .skill-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{opacity:.4}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%] .drag-placeholder[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1);background-color:#666;min-height:60px}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%] .cdk-drag-handle[_ngcontent-%COMP%]{cursor:grab}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%] .cdk-drag-handle[_ngcontent-%COMP%]:active{cursor:grabbing}[_nghost-%COMP%] .skill-weight[_ngcontent-%COMP%]{max-width:3em}[_nghost-%COMP%] .cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%] .cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .skills-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-item[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:first-of-type{border-top-right-radius:none;border-top-left-radius:none}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{background:transparent}"]})}return t})();var qn=(t,n)=>n.id,Kn=t=>[t],Yn=t=>({right:t}),Qn=t=>({outlets:t}),Xn=t=>["/","carreiras",t];function Jn(t,n){if(t&1&&(a(0,"a",1),c(1,"devmx-icon",2),a(2,"div",3),m(3),r(),a(4,"div",4),m(5),G(6,"jobMode"),r()()),t&2){let e=n.$implicit;d("routerLink",X(11,Xn,X(9,Qn,X(7,Yn,X(5,Kn,e.id))))),p(3),H(e.title),p(2),H(z(6,3,e.mode))}}var sn=(()=>{class t{data=x([]);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-job-opening-card-list"]],inputs:{data:[1,"data"]},decls:7,vars:0,consts:[[1,"job-openings-card"],["mat-list-item","",3,"routerLink"],["matListItemIcon","","name","finance/bullseye"],["matListItemTitle",""],["matListItemLine",""]],template:function(i,o){i&1&&(a(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),m(3,"Vagas"),r()(),a(4,"mat-list"),y(5,Jn,7,13,"a",1,qn),r()()),i&2&&(p(5),b(o.data()))},dependencies:[Y,Me,Oe,xe,re,ne,ae,oe,be,ie,D,Ce,no],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] a[_ngcontent-%COMP%]:link{cursor:pointer}"],changeDetection:0})}return t})();var cn=(t,n)=>n.id;function Zn(t,n){if(t&1&&(a(0,"label"),m(1),r()),t&2){let e=n.$implicit;p(),I("#",e.name,"")}}function ea(t,n){if(t&1&&(a(0,"a",1),c(1,"devmx-icon",2),a(2,"div",3),m(3),r(),a(4,"div",4),y(5,Zn,2,1,"label",null,cn),r(),a(7,"var",5),m(8),r()()),t&2){let e=n.$implicit;d("href",e.html_url,he),p(3),H(e.title),p(2),b(e.labels),p(3),I("#",e.number,"")}}var mn=(()=>{class t{data=x([]);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-issue-card-list"]],inputs:{data:[1,"data"]},decls:7,vars:0,consts:[[1,"contributors-card"],["mat-list-item","","target","_blank","rel","noopener noreferrer",3,"href"],["matListItemIcon","","name","transport/swap-locations"],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""]],template:function(i,o){i&1&&(a(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),m(3,"Contribua"),r()(),a(4,"mat-list"),y(5,ea,9,3,"a",1,cn),r()()),i&2&&(p(5),b(o.data()))},dependencies:[Y,Me,Oe,xe,re,ne,ae,oe,be,ie,Ke,D],styles:["[_nghost-%COMP%] a[_ngcontent-%COMP%]:link{cursor:pointer}"],changeDetection:0})}return t})();var ta=(t,n)=>n.id,ia=t=>["/","albuns",t];function oa(t,n){if(t&1&&(a(0,"a",1),c(1,"devmx-icon",2),a(2,"div",3),m(3),r(),a(4,"div",4),m(5),G(6,"date"),r()()),t&2){let e=n.$implicit;d("routerLink",X(6,ia,e.id)),p(3),H(e.title),p(2),H(ai(6,3,e.createdAt,"longDate"))}}var pn=(()=>{class t{data=x([]);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-album-card-list"]],inputs:{data:[1,"data"]},decls:7,vars:0,consts:[[1,"albums-card"],["mat-list-item","",3,"routerLink"],["matListItemIcon","","name","photo"],["matListItemTitle",""],["matListItemLine",""]],template:function(i,o){i&1&&(a(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),m(3,"Fotos"),r()(),a(4,"mat-list"),y(5,oa,7,8,"a",1,ta),r()()),i&2&&(p(5),b(o.data()))},dependencies:[Y,Me,Oe,xe,re,ne,ae,oe,be,ie,D,li,Ce],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] a[_ngcontent-%COMP%]:link{cursor:pointer}"],changeDetection:0})}return t})();var na=(t,n)=>n.id;function aa(t,n){if(t&1&&(a(0,"mat-chip"),c(1,"img",0),m(2),r()),t&2){let e=n.$implicit;p(),d("src",e.avatar_url,he)("alt",e.login),p(),I(" ",e.login," ")}}var dn=(()=>{class t{data=x([]);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-contributors"]],inputs:{data:[1,"data"]},decls:3,vars:0,consts:[["matChipAvatar","",3,"src","alt"]],template:function(i,o){i&1&&(a(0,"marquee"),y(1,aa,3,3,"mat-chip",null,na),r()),i&2&&(p(),b(o.data()))},dependencies:[oo,io],styles:["[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{margin-right:1em}"],changeDetection:0})}return t})();var un=(()=>{class t{type=x.required();get icon(){switch(this.type()){case"github":return"social/github";case"linkedIn":return"social/linkedin";case"instagram":return"social/instagram";case"notion":return"social/notion";case"website":return"software/web-info";case"whatsApp":return"social/whatsapp"}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-social-icon"]],inputs:{type:[1,"type"]},decls:1,vars:1,consts:[[3,"name"]],template:function(i,o){i&1&&c(0,"devmx-icon",0),i&2&&d("name",o.icon)},dependencies:[D],encapsulation:2,changeDetection:0})}return t})();var ra=(t,n)=>n.value.type;function la(t,n){if(t&1){let e=T();a(0,"mat-list-item"),c(1,"devmx-social-icon",2),a(2,"div",3),m(3),r(),a(4,"button",4),g("click",function(){let o=P(e).$index,l=w();return k(l.form.social.removeAt(o))}),c(5,"devmx-icon",5),r()()}if(t&2){let e=n.$implicit;p(),d("type",e.value.type),p(2),H(e.value.username)}}var fn=(()=>{class t{container=s(v);cdr=s(me);userSocial=s(Le);get form(){return this.container.control}addSocial(){let e=this.form.social.getRawValue();this.userSocial.open({items:e}).afterClosed().pipe(W(1)).subscribe(i=>{i&&(this.form.social.add(i),this.cdr.detectChanges())})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-social"]],features:[S([on()],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:7,vars:0,consts:[["type","button","mat-icon-button","",3,"click"],["name","message/circle-plus"],["matListItemIcon","",3,"type"],["matListItemTitle",""],["type","button","mat-icon-button","","matListItemMeta","",3,"click"],["name","trash"]],template:function(i,o){i&1&&(a(0,"div")(1,"mat-list"),y(2,la,6,2,"mat-list-item",null,ra),r(),a(4,"footer")(5,"button",0),g("click",function(){return o.addSocial()}),c(6,"devmx-icon",1),r()()()),i&2&&(p(2),b(o.form.social.controls))},dependencies:[O,un,$,N,le,j,re,ne,ae,oe,ie,Ke,D],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{margin-left:.6em}"]})}return t})();function sa(t,n){t&1&&m(0," Use apenas letras do alfabeto min\xFAsculas ")}function ca(t,n){t&1&&m(0," Obrigat\xF3rio ")}var hn=(()=>{class t{container=s(v);get form(){return this.container.control}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-user"]],features:[S([],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:13,vars:2,consts:[["matInput","","formControlName","displayName","autocomplete","name","autofocus",""],["matInput","","formControlName","name","autocomplete","username"]],template:function(i,o){i&1&&(a(0,"mat-form-field")(1,"mat-label"),m(2,"Seu nome"),r(),c(3,"input",0),a(4,"mat-error"),m(5,"Obrigat\xF3rio"),r()(),a(6,"mat-form-field")(7,"mat-label"),m(8,"Seu usu\xE1rio"),r(),c(9,"input",1),a(10,"mat-error"),_(11,sa,1,0)(12,ca,1,0),r()()),i&2&&(p(11),F(o.form.controls.name.hasError("pattern")?11:-1),p(),F(o.form.controls.name.hasError("required")?12:-1))},dependencies:[O,B,A,V,$,q,te,ye,j,Q],styles:["[_nghost-%COMP%]{gap:1em;display:flex;flex-direction:row}@media (max-width: 768px){[_nghost-%COMP%]{gap:0em;flex-direction:column}}"],changeDetection:0})}return t})();var ma=t=>["/","sobre",t],gn=(()=>{class t{userFacade=s(tt);userPhoto=s(Ie);form=new ft;photo=ke("");state=ke(null);i=0;constructor(){this.userFacade.selected$.pipe(R(e=>!!e),W(1)).subscribe(e=>{e.profile?.photo&&this.photo.set(e.profile.photo),this.form.patch(e)}),this.form.valueChanges.pipe(de(),He(4e3),Rt(1)).subscribe(()=>this.onSubmit())}changePhoto(e){this.userPhoto.open({file:e}).closed.subscribe(i=>{let{id:o,profile:l}=this.form.getRawValue();if(o&&i){let u=Et(At({},l),{id:o,photo:i});this.userFacade.updatePhoto(u),this.photo.set(URL.createObjectURL(i))}})}onSubmit(){let e=Vt(1e3).pipe(W(1));if(this.form.valid){let i=this.form.getRawValue();return this.state.set("Salvando..."),this.userFacade.update(i),e.subscribe(()=>this.state.set(null))}return this.form.markAllAsTouched(),e.subscribe(()=>this.state.set(null))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account"]],features:[S([nt()])],decls:25,vars:9,consts:[["editor","markdownEditor"],[3,"submit","formGroup"],["formGroupName","profile"],["label","Bio","formControlName","minibio",3,"maxRows"],[3,"content"],["mat-flat-button","",3,"disabled"],[1,"user-avatar"],[3,"src"],[1,"select-file",3,"selectChange"],["mat-stroked-button","",3,"routerLink"]],template:function(i,o){if(i&1){let l=T();a(0,"form",1),g("submit",function(){return P(l),k(o.onSubmit())}),a(1,"section"),c(2,"devmx-account-user")(3,"devmx-account-contact")(4,"devmx-account-profile"),a(5,"fieldset")(6,"legend"),m(7,"Informa\xE7\xF5es p\xFAblicas"),r(),c(8,"devmx-account-visibility"),r(),c(9,"devmx-account-skills"),a(10,"section",2)(11,"devmx-markdown-toolbar"),c(12,"devmx-markdown-editor",3,0)(14,"devmx-markdown-view",4),r()(),a(15,"footer")(16,"button",5),m(17),r()()(),a(18,"aside")(19,"div",6),c(20,"devmx-avatar",7),a(21,"devmx-select-file",8),g("selectChange",function(E){return P(l),k(o.changePhoto(E))}),r()(),a(22,"a",9),m(23," Acessar p\xE1gina p\xFAblica "),r(),c(24,"devmx-account-social"),r()()}if(i&2){let l;d("formGroup",o.form),p(12),d("maxRows",80),p(2),d("content",(l=o.form.profile.controls.minibio==null?null:o.form.profile.controls.minibio.value)!==null&&l!==void 0?l:""),p(2),d("disabled",o.state()),p(),I(" ",o.state()?o.state():"Salvar"," "),p(3),d("src",o.photo()),p(2),d("routerLink",X(7,ma,o.form.controls.name.value))}},dependencies:[O,ze,A,U,We,V,K,mo,ro,lo,hn,nn,an,fn,rn,Uo,jo,N,Hi,Ye,en,Ce],styles:["[_nghost-%COMP%]{flex:1;gap:1em;padding:1em;display:flex;flex-direction:column;max-width:980px}[_nghost-%COMP%] form[_ngcontent-%COMP%]{gap:64px;display:flex;flex-direction:row}@media (max-width: 768px){[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column-reverse}}[_nghost-%COMP%] .user-avatar[_ngcontent-%COMP%]{width:12em;display:flex;flex-direction:column}[_nghost-%COMP%] aside[_ngcontent-%COMP%]{gap:2em;width:16em;display:flex;padding:0 2em;flex-direction:column;align-items:center}[_nghost-%COMP%] section[_ngcontent-%COMP%]{flex:1;gap:1em;display:flex;flex-direction:column;max-width:580px}[_nghost-%COMP%] fieldset[_ngcontent-%COMP%]{border:1px dashed rgba(0,0,0,.2);border-radius:.4em}[_nghost-%COMP%] fieldset[_ngcontent-%COMP%] legend[_ngcontent-%COMP%]{padding:.4em}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return t})();var pa=()=>[import("./chunk-TH4T4IGP.js").then(t=>t.EventCardListComponent),J],da=()=>[pn,J],ua=()=>[sn,J],fa=()=>[import("./chunk-VWDLBNLC.js").then(t=>t.PresentationCardListComponent),J],ha=()=>[mn,J];function ga(t,n){t&1&&c(0,"devmx-event-card-list",4),t&2&&d("data",n.data)}function _a(t,n){if(t&1&&(_(0,ga,1,1,"devmx-event-card-list",4),G(1,"async")),t&2){let e,i=w();F((e=z(1,1,i.eventFacade.response$))?0:-1,e)}}function va(t,n){t&1&&c(0,"devmx-skeleton",5),t&2&&d("rows",4)}function Ca(t,n){t&1&&c(0,"devmx-album-card-list",4),t&2&&d("data",n.data)}function ya(t,n){if(t&1&&(_(0,Ca,1,1,"devmx-album-card-list",4),G(1,"async")),t&2){let e,i=w();F((e=z(1,1,i.albumFacade.response$))?0:-1,e)}}function ba(t,n){t&1&&c(0,"devmx-skeleton",5),t&2&&d("rows",4)}function Ma(t,n){t&1&&c(0,"devmx-job-opening-card-list",4),t&2&&d("data",n.data)}function xa(t,n){if(t&1&&(_(0,Ma,1,1,"devmx-job-opening-card-list",4),G(1,"async")),t&2){let e,i=w();F((e=z(1,1,i.jobOpeningFacade.response$))?0:-1,e)}}function Oa(t,n){t&1&&c(0,"devmx-skeleton",5),t&2&&d("rows",3)}function wa(t,n){t&1&&c(0,"devmx-presentation-card-list",4),t&2&&d("data",n.data)}function Sa(t,n){if(t&1&&(_(0,wa,1,1,"devmx-presentation-card-list",4),G(1,"async")),t&2){let e,i=w();F((e=z(1,1,i.presentationFacade.response$))?0:-1,e)}}function Pa(t,n){t&1&&c(0,"devmx-skeleton",5),t&2&&d("rows",4)}function ka(t,n){t&1&&c(0,"devmx-issue-card-list",4),t&2&&d("data",n)}function Fa(t,n){if(t&1&&(_(0,ka,1,1,"devmx-issue-card-list",4),G(1,"async")),t&2){let e,i=w();F((e=z(1,1,i.githubFacade.issues$))?0:-1,e)}}function Da(t,n){t&1&&c(0,"devmx-skeleton",5),t&2&&d("rows",3)}function Aa(t,n){t&1&&c(0,"devmx-contributors",4),t&2&&d("data",n)}var _n=(()=>{class t{githubFacade=s(Di);jobOpeningFacade=s(Qi);presentationFacade=s(Ei);albumFacade=s(Xi);eventFacade=s(Ji);constructor(){this.githubFacade.issues$.subscribe(e=>{e.map(i=>{console.log(i.state_reason)})}),this.githubFacade.loadContributors("devmx"),this.githubFacade.loadIssues("devmx"),this.eventFacade.setPage(0,6),this.eventFacade.load(),this.jobOpeningFacade.setPage(0,6),this.jobOpeningFacade.load(),this.presentationFacade.setPage(0,6),this.presentationFacade.load(),this.albumFacade.setPage(0,6),this.albumFacade.load()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-home"]],decls:27,vars:3,consts:[[1,"banner"],[1,"cards"],[1,"event-container"],[1,"skill-cards"],[3,"data"],[3,"rows"]],template:function(i,o){if(i&1&&(c(0,"header",0),a(1,"div",1)(2,"section",2),_(3,_a,2,3)(4,va,1,1),_e(5,3,pa,null,4),ve(500),_(7,ya,2,3)(8,ba,1,1),_e(9,7,da,null,8),ve(500),r(),a(11,"section",3),_(12,xa,2,3)(13,Oa,1,1),_e(14,12,ua,null,13),ve(500),_(16,Sa,2,3)(17,Pa,1,1),_e(18,16,fa,null,17),ve(500),r(),a(20,"section"),_(21,Fa,2,3)(22,Da,1,1),_e(23,21,ha,null,22),ve(500),r()(),_(25,Aa,1,1,"devmx-contributors",4),G(26,"async")),i&2){let l;p(25),F((l=z(26,1,o.githubFacade.contributors$))?25:-1,l)}},dependencies:[dn,to,Y,N,J],styles:["[_nghost-%COMP%]{flex:1;gap:1em;padding:1em;display:flex;flex-direction:column;max-width:calc(100vw - 2em)}[_nghost-%COMP%] .radio[_ngcontent-%COMP%]{display:inline-flex;background-color:#fff;border-radius:1.6em;padding:.2em;gap:.2em}[_nghost-%COMP%] .banner[_ngcontent-%COMP%]{flex:1;padding:1em 1.2em;display:flex;align-items:flex-end;justify-content:flex-end;min-height:256px;max-height:356px;border-radius:1em;background-image:url(/backgrounds/3d-horns.webp);background-position:center 50%;background-repeat:no-repeat;background-blend-mode:multiply;background-color:#999}[_nghost-%COMP%] .banner[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;filter:invert(.6);color:#666;font-size:2.8em;line-height:100%}@media (max-width: 767px){[_nghost-%COMP%] .banner[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.8em}}@media (max-width: 767px){[_nghost-%COMP%] .banner[_ngcontent-%COMP%]{background-size:242%}}[_nghost-%COMP%] .cards[_ngcontent-%COMP%]{flex:1;gap:1em;display:grid}[_nghost-%COMP%] .cards[_ngcontent-%COMP%] > section[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:column;max-width:calc(100vw - 3em)}@media (min-width: 768px){[_nghost-%COMP%] .cards[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 767px){[_nghost-%COMP%] .cards[_ngcontent-%COMP%]{grid-template-columns:1fr}}"],changeDetection:0})}return t})();var vn=()=>{let t=s(se),n=s(tt);return t.auth$.pipe(R(i=>!!i),W(1)).pipe(ue(i=>ao(n,{id:i.id})))};var ep=[{path:"autenticacao",loadChildren:()=>import("./chunk-IZTWYWJL.js").then(t=>t.accountFeatureAuthRoutes)},{path:"",canActivate:[$o("member")],providers:Go,component:Ro,data:{breadcrumb:"Conta"},title:"Conta",children:[{path:"administracao",canActivate:[St("manager","director","staff","leader")],loadChildren:()=>ht(void 0,null,function*(){return import("./chunk-YAOAPCED.js").then(t=>t.accountFeatureAdminRoutes)})},{path:"dashboard",canActivate:[St("manager","director")],loadChildren:()=>ht(void 0,null,function*(){return import("./chunk-R2BYSYX5.js").then(t=>t.accountFeatureBoardRoutes)})},{path:"configuracoes",title:"Configura\xE7\xF5es da conta",component:gn,resolve:{user:vn}},{path:"sair",title:"Sair",component:Bo},{path:"",title:"Inicio",component:_n},{path:"**",pathMatch:"full",redirectTo:"configuracoes"}]}];export{Ro as AccountFeatureShellComponent,ep as accountFeatureShellRoutes}; +import{a as Ao}from"./chunk-DUF4HXV7.js";import{a as Yi}from"./chunk-M5BYPXOP.js";import{b as $i,c as Bi,d as Ui,e as ji,f as zi,g as Wi}from"./chunk-ZQOXWN4S.js";import{a as Eo,b as To,c as Io,d as Lo,e as Vo,f as No}from"./chunk-7O2H2TAM.js";import{a as yo,b as bo,c as Mo,e as Do}from"./chunk-WPU27ID5.js";import{a as ro,b as mo}from"./chunk-VHE4TYFV.js";import{a as so,b as co}from"./chunk-AFH22WZE.js";import{a as St}from"./chunk-Q33OVU5J.js";import{a as xo,b as Oo,c as wo,d as So,f as Po,g as ko,h as Fo}from"./chunk-73QBZNVE.js";import{c as go,d as _o,e as vo,f as Co}from"./chunk-Q2N7RZTH.js";import{a as Xi}from"./chunk-L2JQY5SP.js";import{a as Xe}from"./chunk-GXQHMTZK.js";import{b as Qe}from"./chunk-WKFJTKSD.js";import{a as no}from"./chunk-WK53HQNR.js";import{a as to}from"./chunk-ZHS65JNW.js";import{a as Ze,b as et}from"./chunk-2XST3EDK.js";import{a as Qi}from"./chunk-2GNIBV4J.js";import{b as Ri}from"./chunk-MLNPCJDD.js";import{a as Ei}from"./chunk-JNB3NYAZ.js";import"./chunk-YFMYPYPE.js";import"./chunk-UOTKRQ63.js";import{a as lo}from"./chunk-WD4JQH2Z.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import{c as Ji}from"./chunk-V6KASOE3.js";import"./chunk-XIUDFJWJ.js";import{a as se,b as tt,f as ao}from"./chunk-TPJZ2OYR.js";import"./chunk-ZTWYID37.js";import{b as ki,g as Fi,r as wt,v as Di,w as Ai}from"./chunk-XYJHVZQT.js";import{a as po,b as uo,c as fo,h as ho}from"./chunk-O3T3UZHL.js";import{d as Q,e as j}from"./chunk-VVQ6JEVH.js";import{a as io,b as oo}from"./chunk-HGOTYYGI.js";import{b as te,c as ye,e as Si,g as Pi,i as q,j as $,k as Zi,o as Je,r as eo}from"./chunk-AND6K73U.js";import{b as Gi}from"./chunk-BJXILAOS.js";import{a as de}from"./chunk-A3N3AUUJ.js";import{A as qi,B as Ki,i as si,j as Ce,p as ci,q as Ye,r as Hi,v as le,x as N}from"./chunk-6BGAZ7SQ.js";import{c as mi,d as Be,e as pi,g as Ee,h as di,j as bt}from"./chunk-I7VYXJU2.js";import{a as ie,b as be,c as Ke,e as oe,f as ne,g as ae,l as re}from"./chunk-PAP2P7QR.js";import{a as Me,b as xe,f as Oe,i as Y}from"./chunk-EC6LD5KM.js";import{a as D,b as Ti,c as B,e as M,f as v,g as Ii,h as A,i as U,j as L,l as h,m as ze,o as Li,p as We,q as K,r as Vi,s as V,v as Ni,w as qe,x as O}from"./chunk-EDIJ2EBQ.js";import{D as hi,E as gi,F as Mt,G as je,I as _i,T as vi,U as Ci,Y as xt,aa as yi,f as ui,ka as bi,la as Mi,ma as xi,na as ee,o as fi,oa as Oi,pa as wi,qa as Ot,s as Ue}from"./chunk-W5KNOAKV.js";import{$b as y,A as Re,B as Vt,Ba as Ge,D as Se,Ea as fe,Eb as Xt,F as R,Fa as Wt,Fb as ke,Fc as S,Gb as Jt,Ha as $e,Hc as X,Ia as x,J as He,Ja as Pe,Jc as G,Kc as z,L as W,Lc as ai,Mb as vt,N as Nt,Nb as _,Ob as _e,Pb as ve,Sb as Fe,Sc as me,Tb as d,Va as qt,Vb as Zt,Vc as pe,Wb as ei,Y as Rt,Yb as F,Z as Ht,_ as ue,a as At,ac as b,b as Et,ba as Gt,bc as a,cc as r,d as ht,da as $t,dc as c,e as Ve,ed as ri,fa as Bt,g as Tt,gb as he,ha as _t,hc as T,j as gt,je as J,ka as s,kc as g,lb as p,mb as Kt,mc as w,nc as ti,ob as Yt,oc as ii,p as It,pc as Ct,pe as li,qc as yt,rc as De,sa as Ut,sc as Ae,t as Ne,ta as P,ua as k,ub as f,uc as oi,va as jt,vb as Qt,vc as ni,wb as ge,wc as Z,xc as m,y as Lt,yc as H,za as zt,zc as I}from"./chunk-TEKHUYWQ.js";var Ro=(()=>{class t{router=s(si);destroyRef=s(Ge);authFacade=s(se);layoutFacade=s(Qe);ngOnInit(){this.authFacade.auth$.pipe(de(this.destroyRef)).subscribe(e=>{e&&(this.layoutFacade.loadNavLinks(e.roles),this.waitingForLogout())}),this.authFacade.load()}waitingForLogout(){this.authFacade.auth$.pipe(de(this.destroyRef)).subscribe(e=>{e||(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-feature-shell"]],decls:1,vars:0,template:function(i,o){i&1&&c(0,"devmx-layout")},dependencies:[ci,Yi],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();function Ho(t){return n=>!n.value||n.value.trim()===""||t.test(n.value)?null:{invalidPhone:{value:n.value}}}var it=(()=>{class t{ngControl;previousValue="";constructor(e){this.ngControl=e}onInput(e){let i=e.value.replace(/\D/g,""),o="";if(i.length>10?o=i.replace(/(\d{2})(\d{5})(\d{4})/,"($1) $2-$3"):i.length>6?o=i.replace(/(\d{2})(\d{4})(\d{0,4})/,"($1) $2-$3"):i.length>2?o=i.replace(/(\d{2})(\d{0,4})/,"($1) $2"):i.length>0&&(o=i.replace(/(\d*)/,"($1")),e.value.length()=>{let n=s(se),e=n.auth$.pipe(R(i=>!!i),Ne(i=>i.roles[t]));return n.load(),e};var Bo=(()=>{class t{authFacade=s(se);layoutFacade=s(Qe);ngOnInit(){this.authFacade.signOut(),this.layoutFacade.resetNavLinks()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-sign-out"]],decls:0,vars:0,template:function(i,o){},encapsulation:2})}return t})();var Uo=(()=>{class t{container=s(v);get form(){return this.container.control}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-visibility"]],features:[S([],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:19,vars:0,consts:[["formGroupName","visibility"],["formControlName","email"],["formControlName","phone"],["formControlName","gender"],["formControlName","birthday"],["formControlName","roles"],["formControlName","events"],["formControlName","presentations"],["formControlName","skills"],["formControlName","photos"]],template:function(i,o){i&1&&(a(0,"div",0)(1,"mat-checkbox",1),m(2,"Endere\xE7o de e-mail"),r(),a(3,"mat-checkbox",2),m(4,"Telefone"),r(),a(5,"mat-checkbox",3),m(6,"G\xEAnero"),r(),a(7,"mat-checkbox",4),m(8,"Data de nascimento"),r(),a(9,"mat-checkbox",5),m(10,"Permiss\xF5es"),r(),a(11,"mat-checkbox",6),m(12,"Eventos"),r(),a(13,"mat-checkbox",7),m(14,"Apresenta\xE7\xF5es"),r(),a(15,"mat-checkbox",8),m(16,"Habilidades"),r(),a(17,"mat-checkbox",9),m(18,"Fotos"),r()())},dependencies:[O,A,U,V,K,co,so],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%]{display:grid;grid-auto-flow:dense;grid-template-columns:repeat(3,1fr)}@media (max-width: 1278px){[_nghost-%COMP%] div[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] div[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}"],changeDetection:0})}return t})();var jo=(()=>{class t{icon=x("tech/folder-opened");accept=x(["image/png","image/jpeg","image/svg+xml","image/webp"]);selectChange=$e();onFilesChange(e){let[i]=Array.from(e??[]);i&&this.selectChange.emit(i)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-select-file"]],inputs:{icon:[1,"icon"],accept:[1,"accept"]},outputs:{selectChange:"selectChange"},decls:4,vars:1,consts:[["input",""],["hidden","","type","file","name","file",3,"change","accept"],["type","button","mat-icon-button","",3,"click"],["name","tech/folder-opened"]],template:function(i,o){if(i&1){let l=T();a(0,"input",1,0),g("change",function(){P(l);let E=Z(1);return k(o.onFilesChange(E.files))}),r(),a(2,"button",2),g("click",function(){P(l);let E=Z(1);return k(E.click())}),c(3,"devmx-icon",3),r()}i&2&&d("accept",o.accept())},dependencies:[N,le,D],encapsulation:2,changeDetection:0})}return t})();var ot=(()=>{class t{ref=s(Pe);destroy=s(Ge);get context(){return this.ref.nativeElement.getContext("2d")}image=new Image;position=new wt;mouse=new wt;isDragging=!1;scale=1;ngAfterViewInit(){this.ref.nativeElement.addEventListener("mousemove",this.dragImage),this.ref.nativeElement.addEventListener("mousedown",this.startDrag),this.ref.nativeElement.addEventListener("mouseleave",this.stopDrag),this.ref.nativeElement.addEventListener("mouseup",this.stopDrag),this.image.addEventListener("load",this.drawImage),this.destroy.onDestroy(()=>{this.ref.nativeElement.removeEventListener("mousemove",this.dragImage),this.ref.nativeElement.removeEventListener("mousedown",this.startDrag),this.ref.nativeElement.removeEventListener("mouseleave",this.stopDrag),this.ref.nativeElement.removeEventListener("mouseup",this.stopDrag),this.image.removeEventListener("load",this.drawImage)})}drawImage=()=>{if(!this.image||!this.context)return;let{width:e,height:i}=this.context.canvas;this.context.clearRect(0,0,e,i);let{x:o,y:l}=this.position,u=this.image.width*this.scale,E=this.image.height*this.scale;this.context.drawImage(this.image,o,l,u,E)};zoomIn(){this.scale*=1.1,this.drawImage()}zoomOut(){this.scale/=1.1,this.drawImage()}startDrag=({clientX:e,clientY:i})=>{this.isDragging=!0,this.mouse.set(e,i)};stopDrag=()=>{this.isDragging=!1};dragImage=({clientX:e,clientY:i})=>{if(this.isDragging){let o=e-this.mouse.x,l=i-this.mouse.y;this.position.add({x:o,y:l}),this.mouse.set(e,i),this.drawImage()}};static \u0275fac=function(i){return new(i||t)};static \u0275dir=ge({type:t,selectors:[["canvas","devmxCropPhoto",""]]})}return t})();var zo=(()=>{class t{ref=s(go);data=s(_o);cropPhoto=Jt(ot);ngAfterViewInit(){let e=this.cropPhoto();e&&(e.image.src=URL.createObjectURL(this.data.file))}zoomIn(){this.cropPhoto()?.zoomIn()}zoomOut(){this.cropPhoto()?.zoomOut()}crop(){let e=document.createElement("canvas"),i=e.getContext("2d"),o=this.cropPhoto();if(!o||!o.context||!i)return;e.width=o.context.canvas.width,e.height=o.context.canvas.height;let{x:l,y:u}=o.position,E=o.image.width*o.scale,Cn=o.image.height*o.scale;i.drawImage(o.image,l,u,E,Cn),e.toBlob(Dt=>{Dt&&this.ref.close(Dt)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-user-photo"]],viewQuery:function(i,o){i&1&&oi(o.cropPhoto,ot,5),i&2&&ni()},decls:11,vars:0,consts:[[1,"canvas-wrapper"],["devmxCropPhoto","","width","400","height","400"],[1,"canvas-overlay"],["type","button","mat-icon-button","",3,"click"],["name","zoom-plus"],["name","zoom-minus"],["mat-icon-button","",3,"click"],["name","menu/crop"]],template:function(i,o){i&1&&(a(0,"div",0),c(1,"canvas",1)(2,"div",2),r(),a(3,"footer")(4,"div")(5,"button",3),g("click",function(){return o.zoomIn()}),c(6,"devmx-icon",4),r(),a(7,"button",3),g("click",function(){return o.zoomOut()}),c(8,"devmx-icon",5),r()(),a(9,"button",6),g("click",function(){return o.crop()}),c(10,"devmx-icon",7),r()())},dependencies:[Co,N,le,ot,D],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:1em;overflow:hidden;background-color:#fff}[_nghost-%COMP%] .canvas-wrapper[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .canvas-overlay[_ngcontent-%COMP%]{top:0;left:0;width:400px;height:400px;position:absolute;pointer-events:none;overflow:hidden}[_nghost-%COMP%] .canvas-overlay[_ngcontent-%COMP%]:before{content:"";position:absolute;top:1em;left:1em;width:calc(100% - 2em);height:calc(100% - 2em);background:transparent;border:1px dashed rgba(255,255,255,.8);border-radius:50%;box-shadow:0 0 0 100vmax #0009}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{padding:1em;display:flex;align-items:center;justify-content:space-between}'],changeDetection:0})}return t})();var Ie=class{dialog;constructor(n){this.dialog=n}open(n){return this.dialog.open(zo,{data:n})}};function nt(){return{provide:Ie,deps:[vo]}}var at=class extends L{constructor(){super({email:new h("",{nonNullable:!0,validators:[M.required,M.email]}),phone:new h("",{nonNullable:!0,validators:[M.maxLength(15),Ho(/^\(\d{2}\) \d{4,5}-\d{4}$/)]})})}};var rt=class extends L{genders=[{value:"female",viewValue:"Feminino"},{value:"male",viewValue:"Masculino"},{value:"non-binary",viewValue:"N\xE3o bin\xE1rio"},{value:"gender-fluid",viewValue:"G\xEAnero flu\xEDdo"},{value:"agender",viewValue:"Ag\xEAnero"},{value:"prefer-not-to-say",viewValue:"Prefiro n\xE3o dizer"},{value:"",viewValue:"Outro"}];get gender(){return this.controls.gender}constructor(){super({minibio:new h("",{nonNullable:!0,validators:[M.maxLength(102400)]}),birthday:new h,gender:new h,photo:new h})}};var lt=class extends L{constructor(){super({academic:new h(!1,{nonNullable:!0}),director:new h({value:!1,disabled:!0},{nonNullable:!0}),donor:new h({value:!1,disabled:!0},{nonNullable:!0}),fellow:new h({value:!1,disabled:!0},{nonNullable:!0}),leader:new h({value:!1,disabled:!0},{nonNullable:!0}),manager:new h({value:!1,disabled:!0},{nonNullable:!0}),member:new h(!1,{nonNullable:!0,validators:[M.requiredTrue]}),neighbor:new h({value:!1,disabled:!0},{nonNullable:!0}),recruiter:new h(!1,{nonNullable:!0}),speaker:new h(!1,{nonNullable:!0}),staff:new h({value:!1,disabled:!0},{nonNullable:!0})})}};var xn=["panel"],On=["*"];function wn(t,n){if(t&1){let e=T();a(0,"div",1,0),g("@panelAnimation.done",function(o){P(e);let l=w();return k(l._animationDone.next(o))}),ii(2),r()}if(t&2){let e=n.id,i=w();ei(i._classList),Zt("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),d("id",i.id)("@panelAnimation",i.isOpen?"visible":"hidden"),Fe("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var Sn=mi("panelAnimation",[di("void, hidden",Ee({opacity:0,transform:"scaleY(0.8)"})),bt(":enter, hidden => visible",[pi([Be("0.03s linear",Ee({opacity:1})),Be("0.12s cubic-bezier(0, 0, 0.2, 1)",Ee({transform:"scaleY(1)"}))])]),bt(":leave, visible => hidden",[Be("0.075s linear",Ee({opacity:0}))])]),Pt=class{source;option;constructor(n,e){this.source=n,this.option=e}},Ko=new _t("mat-autocomplete-default-options",{providedIn:"root",factory:Pn});function Pn(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var Yo=(()=>{class t{_changeDetectorRef=s(me);_elementRef=s(Pe);_defaults=s(Ko);_activeOptionChanges=Ve.EMPTY;_animationDone=new fe;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new fe;opened=new fe;closed=new fe;optionActivated=new fe;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=s(vi).getId("mat-autocomplete-");inertGroups;constructor(){let e=s(ui);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new _i(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new Pt(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,o,l){if(i&1&&(Ct(l,ee,5),Ct(l,Mi,5)),i&2){let u;De(u=Ae())&&(o.options=u),De(u=Ae())&&(o.optionGroups=u)}},viewQuery:function(i,o){if(i&1&&(yt(Yt,7),yt(xn,5)),i&2){let l;De(l=Ae())&&(o.template=l.first),De(l=Ae())&&(o.panel=l.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",pe],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",pe],requireSelection:[2,"requireSelection","requireSelection",pe],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",pe],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",pe]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[S([{provide:bi,useExisting:t}]),vt],ngContentSelectors:On,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,o){i&1&&(ti(),_(0,wn,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Sn]},changeDetection:0})}return t})();var kn={provide:Ti,useExisting:$t(()=>kt),multi:!0};var Qo=new _t("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=s(Je);return()=>t.scrollStrategies.reposition()}});function Fn(t){return()=>t.scrollStrategies.reposition()}var Dn={provide:Qo,deps:[Je],useFactory:Fn},kt=(()=>{class t{_element=s(Pe);_overlay=s(Je);_viewContainerRef=s(Xt);_zone=s(Wt);_changeDetectorRef=s(me);_dir=s(Ci,{optional:!0});_formField=s(Pi,{optional:!0,host:!0});_document=s(ri);_viewportRuler=s(qi);_defaults=s(Ko,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_scrollStrategy=s(Qo);_keydownSubscription;_outsideClickSubscription;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ve.EMPTY;_breakpointObserver=s(hi);_handsetLandscapeSubscription=Ve.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new gt;_windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;_initialized=new gt;_injector=s(zt);constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&je(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Se(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(R(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(R(()=>this._overlayAttached)):It()).pipe(Ne(e=>e instanceof xi?e:null))}optionSelections=Lt(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(Ht(e),ue(()=>Se(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(ue(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Se(Re(this._document,"click"),Re(this._document,"auxclick"),Re(this._document,"touchend")).pipe(R(e=>{let i=fi(e),o=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(i))&&(!l||!l.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e.keyCode,o=Ue(e);if(i===27&&!o&&e.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&i===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){let l=this.autocomplete._keyManager.activeItem,u=i===38||i===40;i===9||u&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):u&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(u||this.autocomplete._keyManager.activeItem!==l)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,o=i.value;if(i.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let l=this.autocomplete.options?.find(u=>u.selected);if(l){let u=this._getDisplayValue(l.value);o!==u&&l.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===e.target){let l=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(l)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Tt(o=>{qt(()=>{o.next()},{injector:this._injector})}),i=this.autocomplete.options.changes.pipe(Gt(()=>this._positionStrategy.reapplyLastPosition()),Nt(0));return Se(e,i).pipe(ue(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),W(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,o=e?e.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),i._emitSelectEvent(o),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),i._animationDone?i._animationDone.pipe(W(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;Mt(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Gi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(gi.HandsetLandscape).subscribe(l=>{l.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Ue(e)||e.keyCode===38&&Ue(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Zi({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],u;this.position==="above"?u=l:this.position==="below"?u=i:u=[...i,...l],e.withPositions(u)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&je(this._trackedModal,"aria-owns",i),Mt(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;je(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=ge({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,o){i&1&&g("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(u){return o._handleInput(u)})("keydown",function(u){return o._handleKeydown(u)})("click",function(){return o._handleClick()}),i&2&&Fe("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",pe]},exportAs:["matAutocompleteTrigger"],features:[S([kn]),vt,Ut]})}return t})(),Xo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Qt({type:t});static \u0275inj=Bt({providers:[Dn],imports:[eo,Ot,xt,Ki,Ot,xt]})}return t})();var En=(t,n)=>n.id;function Tn(t,n){if(t&1&&(a(0,"mat-option",3),m(1),r()),t&2){let e=n.$implicit;d("value",e),p(),H(e.name)}}function In(t,n){t&1&&y(0,Tn,2,2,"mat-option",3,En),t&2&&b(n.data)}var Zo=(()=>{class t{skillFacade=s(Xe);selected=$e();label=x("Habilidade");control=new h("");constructor(){this.control.valueChanges.pipe(R(e=>typeof e=="string"),R(e=>e.length>0),de(),He(400)).subscribe(e=>{this.skillFacade.setFilter({name:e}),this.skillFacade.load()})}displayFn(e){return e&&e.name?e.name:""}onOptionSelected(e){this.selected.emit(e),this.control.setValue("")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-search-skill"]],inputs:{label:[1,"label"]},outputs:{selected:"selected"},decls:8,vars:7,consts:[["auto","matAutocomplete"],["matInput","",3,"formControl","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value"]],template:function(i,o){if(i&1){let l=T();a(0,"mat-form-field")(1,"mat-label"),m(2),r(),c(3,"input",1),a(4,"mat-autocomplete",2,0),g("optionSelected",function(E){return P(l),k(o.onOptionSelected(E.option.value))}),_(6,In,2,0),G(7,"async"),r()()}if(i&2){let l,u=Z(5);p(2),H(o.label()),p(),d("formControl",o.control)("matAutocomplete",u),p(),d("displayWith",o.displayFn),p(2),F((l=z(7,5,o.skillFacade.response$))?6:-1,l)}},dependencies:[O,B,A,Li,Xo,Yo,ee,kt,$,q,te,j,Q,J],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();function Ln(t,n){if(t&1&&(jt(),a(0,"svg",0),c(1,"path",2),r()),t&2){let e=w();p(),Fe("fill",e.color())}}function Vn(t,n){if(t&1&&c(0,"img",1),t&2){let e=w();d("src",e.path,he)}}var en=(()=>{class t{env=s(ki);color=x("#333");src=x();get path(){return`${this.env.photos.url}/${this.src()}`}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-avatar"]],inputs:{color:[1,"color"],src:[1,"src"]},decls:2,vars:1,consts:[["fill","none","viewBox","0 0 48 48","xmlns","http://www.w3.org/2000/svg"],["alt","Avatar",3,"src"],["d","M11.7 34.2C13.4 32.9 15.3 31.875 17.4 31.125C19.5 30.375 21.7 30 24 30C26.3 30 28.5 30.375 30.6 31.125C32.7 31.875 34.6 32.9 36.3 34.2C37.4667 32.8333 38.375 31.2833 39.025 29.55C39.675 27.8167 40 25.9667 40 24C40 19.5667 38.4417 15.7917 35.325 12.675C32.2083 9.55833 28.4333 8 24 8C19.5667 8 15.7917 9.55833 12.675 12.675C9.55833 15.7917 8 19.5667 8 24C8 25.9667 8.325 27.8167 8.975 29.55C9.625 31.2833 10.5333 32.8333 11.7 34.2ZM24 26C22.0333 26 20.375 25.325 19.025 23.975C17.675 22.625 17 20.9667 17 19C17 17.0333 17.675 15.375 19.025 14.025C20.375 12.675 22.0333 12 24 12C25.9667 12 27.625 12.675 28.975 14.025C30.325 15.375 31 17.0333 31 19C31 20.9667 30.325 22.625 28.975 23.975C27.625 25.325 25.9667 26 24 26ZM24 44C21.2333 44 18.6333 43.475 16.2 42.425C13.7667 41.375 11.65 39.95 9.85 38.15C8.05 36.35 6.625 34.2333 5.575 31.8C4.525 29.3667 4 26.7667 4 24C4 21.2333 4.525 18.6333 5.575 16.2C6.625 13.7667 8.05 11.65 9.85 9.85C11.65 8.05 13.7667 6.625 16.2 5.575C18.6333 4.525 21.2333 4 24 4C26.7667 4 29.3667 4.525 31.8 5.575C34.2333 6.625 36.35 8.05 38.15 9.85C39.95 11.65 41.375 13.7667 42.425 16.2C43.475 18.6333 44 21.2333 44 24C44 26.7667 43.475 29.3667 42.425 31.8C41.375 34.2333 39.95 36.35 38.15 38.15C36.35 39.95 34.2333 41.375 31.8 42.425C29.3667 43.475 26.7667 44 24 44ZM24 40C25.7667 40 27.4333 39.7417 29 39.225C30.5667 38.7083 32 37.9667 33.3 37C32 36.0333 30.5667 35.2917 29 34.775C27.4333 34.2583 25.7667 34 24 34C22.2333 34 20.5667 34.2583 19 34.775C17.4333 35.2917 16 36.0333 14.7 37C16 37.9667 17.4333 38.7083 19 39.225C20.5667 39.7417 22.2333 40 24 40ZM24 22C24.8667 22 25.5833 21.7167 26.15 21.15C26.7167 20.5833 27 19.8667 27 19C27 18.1333 26.7167 17.4167 26.15 16.85C25.5833 16.2833 24.8667 16 24 16C23.1333 16 22.4167 16.2833 21.85 16.85C21.2833 17.4167 21 18.1333 21 19C21 19.8667 21.2833 20.5833 21.85 21.15C22.4167 21.7167 23.1333 22 24 22Z"]],template:function(i,o){i&1&&_(0,Ln,2,1,":svg:svg",0)(1,Vn,1,1,"img",1),i&2&&F(o.src()===""?0:1)},styles:["[_nghost-%COMP%]{display:inline-flex;border-radius:50%;overflow:hidden;width:inherit;height:auto}[_nghost-%COMP%] img[_ngcontent-%COMP%]{width:inherit;height:auto}"],changeDetection:0})}return t})();var mt=class extends L{constructor(n){super({skill:new Ao,weight:new h(0,{nonNullable:!0,validators:[M.min(0),M.max(100)]})}),n&&this.patchValue(n)}},pt=class extends qe{constructor(){super([])}add(n){this.push(new mt(n))}has(n){return this.value.some(e=>e.skill===n)}patchValue(n,e){for(let i of n)this.has(i.skill)||this.push(new mt(i),e)}};var we=class extends L{constructor(n){super({type:new h("website",{nonNullable:!0,validators:[M.required]}),username:new h("",{nonNullable:!0,validators:[M.required]})}),n&&this.patchValue(n)}},dt=class extends qe{constructor(){super([])}add(n){this.push(new we(n))}has(n){return this.value.some(e=>e.type===n)}patchValue(n,e){for(let i of n)this.has(i.type)||this.push(new we(i),e)}};var ut=class extends L{constructor(){super({email:new h(!1,{nonNullable:!0}),phone:new h(!1,{nonNullable:!0}),birthday:new h(!1,{nonNullable:!0}),gender:new h(!1,{nonNullable:!0}),roles:new h(!1,{nonNullable:!0}),events:new h(!1,{nonNullable:!0}),photos:new h(!1,{nonNullable:!0}),presentations:new h(!1,{nonNullable:!0}),skills:new h(!1,{nonNullable:!0})})}};var ft=class extends L{constructor(){super({id:new h("",{nonNullable:!0,validators:[M.required]}),name:new h("",{nonNullable:!0,validators:[M.required,M.pattern(/^[a-z0-9]+$/)]}),displayName:new h("",{nonNullable:!0,validators:[M.required]}),profile:new rt,contact:new at,social:new dt,active:new h,roles:new lt,skills:new pt,visibility:new ut})}get profile(){return this.controls.profile}get contact(){return this.controls.contact}get social(){return this.controls.social}get roles(){return this.controls.roles}get skills(){return this.controls.skills}patch(n){this.patchValue(n),n.social&&n.social.length&&this.social.patchValue(n.social)}};var Rn=(t,n)=>n.value;function Hn(t,n){if(t&1&&(a(0,"mat-option",3),m(1),r()),t&2){let e=n.$implicit;d("value",e.value),p(),I(" ",e.viewValue," ")}}function Gn(t,n){t&1&&(a(0,"mat-form-field"),c(1,"input",7),a(2,"mat-error"),m(3,"Inv\xE1lido"),r()())}function $n(t,n){t&1&&(a(0,"mat-form-field"),c(1,"input",8),a(2,"mat-error"),m(3,"Inv\xE1lido"),r()())}var tn=(()=>{class t{ref=s(xo);data=s(Oo);allOptions=[{value:"website",viewValue:"Website"},{value:"github",viewValue:"Github"},{value:"linkedIn",viewValue:"Linked In"},{value:"whatsApp",viewValue:"WhatsApp"},{value:"notion",viewValue:"Notion"},{value:"instagram",viewValue:"Instagram"}];options=ke([]);form=new we;ngOnInit(){if(this.data){let e=this.allOptions.filter(i=>this.data.items.every(o=>i.value!==o.type));this.options.set(e)}}onSubmit(){return this.form.valid?this.ref.close(this.form.getRawValue()):this.form.markAllAsTouched()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-user-social"]],decls:13,vars:2,consts:[[3,"submit","formGroup"],[1,"user-social-dialog-content"],["formControlName","type"],[3,"value"],[1,"user-social-dialog-actions"],["type","button","mat-button","","mat-dialog-close",""],["mat-flat-button",""],["matInput","","formControlName","username","devmxPhone","","maxlength","15"],["matInput","","formControlName","username"]],template:function(i,o){i&1&&(a(0,"form",0),g("submit",function(){return o.onSubmit()}),a(1,"mat-dialog-content",1)(2,"mat-form-field")(3,"mat-select",2),y(4,Hn,2,2,"mat-option",3,Rn),r()(),_(6,Gn,4,0,"mat-form-field")(7,$n,4,0,"mat-form-field"),r(),a(8,"mat-dialog-actions",4)(9,"button",5),m(10,"Cancelar"),r(),a(11,"button",6),m(12,"Salvar"),r()()()),i&2&&(d("formGroup",o.form),p(4),b(o.options()),p(2),F(o.form.value.type==="whatsApp"?6:7))},dependencies:[O,ze,B,A,U,Ni,We,V,Fo,So,ko,Po,N,Ye,et,q,ye,Ze,ee,$,j,Q,it],styles:["[_nghost-%COMP%] .user-social-dialog-content[_ngcontent-%COMP%]{gap:1em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .user-social-dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})}return t})();var Le=class{dialog;constructor(n){this.dialog=n}open(n){return this.dialog.open(tn,{data:n})}};function on(){return{provide:Le,deps:[wo]}}var Bn=(t,n)=>n.value;function Un(t,n){if(t&1&&(a(0,"mat-option",3),m(1),r()),t&2){let e=n.$implicit;d("value",e.value),p(),I(" ",e.viewValue," ")}}var nn=(()=>{class t{container=s(v);get form(){return this.container.control}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-profile"]],features:[S([yi(),nt()],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:15,vars:2,consts:[["picker",""],["formGroupName","profile"],["formControlName","gender"],[3,"value"],["matInput","","formControlName","birthday","readonly","",3,"focus","matDatepicker"],["matIconSuffix","",3,"for"]],template:function(i,o){if(i&1){let l=T();a(0,"div",1)(1,"div")(2,"mat-form-field")(3,"mat-label"),m(4,"G\xEAnero"),r(),a(5,"mat-select",2),y(6,Un,2,2,"mat-option",3,Bn),r()(),a(8,"mat-form-field")(9,"mat-label"),m(10,"Data de nascimento"),r(),a(11,"input",4),g("focus",function(){P(l);let E=Z(14);return k(E.open())}),r(),c(12,"mat-datepicker-toggle",5)(13,"mat-datepicker",null,0),r()()()}if(i&2){let l=Z(14);p(6),b(o.form.profile.genders),p(5),d("matDatepicker",l),p(),d("for",l)}},dependencies:[O,B,A,U,V,K,ho,po,uo,fo,$,q,te,Si,et,Ze,ee,j,Q],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:row}@media (max-width: 768px){[_nghost-%COMP%] div[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:0em;flex-direction:column}}"],changeDetection:0})}return t})();var an=(()=>{class t{container=s(v);get form(){return this.container.control}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-contact"]],features:[S([],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:13,vars:0,consts:[["formGroupName","contact"],["matInput","","type","email","formControlName","email","autocomplete","email"],["matInput","","formControlName","phone","autocomplete","mobile","devmxPhone",""]],template:function(i,o){i&1&&(a(0,"div",0)(1,"mat-form-field")(2,"mat-label"),m(3,"E-mail"),r(),c(4,"input",1),a(5,"mat-error"),m(6,"Inv\xE1lido"),r()(),a(7,"mat-form-field")(8,"mat-label"),m(9,"Telefone"),r(),c(10,"input",2),a(11,"mat-error"),m(12,"Inv\xE1lido"),r()()())},dependencies:[O,B,A,U,V,K,it,$,q,te,ye,j,Q],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:row}@media (max-width: 768px){[_nghost-%COMP%] div[_ngcontent-%COMP%]{gap:0em;flex-direction:column}}"],changeDetection:0})}return t})();var jn=(t,n)=>n.value;function zn(t,n){t&1&&c(0,"div",12)}function Wn(t,n){if(t&1){let e=T();a(0,"mat-expansion-panel",1)(1,"mat-expansion-panel-header",3),_(2,zn,1,0,"div",4),a(3,"mat-panel-title",5),c(4,"devmx-icon",6),a(5,"span"),m(6),r()(),a(7,"mat-panel-description",7),m(8),r(),a(9,"button",8),g("click",function(){let o=P(e).$index,l=w();return k(l.form.skills.removeAt(o))}),c(10,"devmx-icon",9),r()(),a(11,"div")(12,"mat-slider",10),c(13,"input",11),r()()()}if(t&2){let e=n.$implicit,i=n.$index,o=w();d("cdkDragData",e)("formGroupName",i),p(6),I(" ",e.value.skill==null?null:e.value.skill.name," "),p(2),I(" ",e.value.weight,"% "),p(4),d("displayWith",o.formatLabel)}}var rn=(()=>{class t{container=s(v);skillFacade=s(Xe);cdr=s(me);get form(){return this.container.control}onNewSkill(e){this.form.skills.add({skill:e,weight:0})}formatLabel(e){return`${e}%`}drop(e){Eo(this.form.skills.controls,e.previousIndex,e.currentIndex)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-skills"]],features:[S([],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:4,vars:0,consts:[["hideToggle","","cdkDropList","","formArrayName","skills",1,"skills-list",3,"cdkDropListDropped"],["cdkDrag","",1,"skill-item",3,"cdkDragData","formGroupName"],[3,"selected"],[1,"skill-header"],["class","drag-placeholder",4,"cdkDragPlaceholder"],[1,"skill-title"],["name","drag/indicator","cdkDragHandle",""],[1,"skill-weight"],["type","button","mat-icon-button","",3,"click"],["name","trash"],["min","0","max","100","step","10","discrete","","showTickMarks","",3,"displayWith"],["matSliderThumb","","formControlName","weight"],[1,"drag-placeholder"]],template:function(i,o){i&1&&(a(0,"mat-accordion",0),g("cdkDropListDropped",function(u){return o.drop(u)}),y(1,Wn,14,5,"mat-expansion-panel",1,jn),r(),a(3,"devmx-search-skill",2),g("selected",function(u){return o.onNewSkill(u)}),r()),i&2&&(p(),b(o.form.skills.controls))},dependencies:[Ri,Zo,O,B,A,U,V,K,Vi,Wi,zi,$i,Bi,ji,Ui,N,le,No,Lo,Io,To,Vo,Y,D,Mo,yo,bo],styles:["[_nghost-%COMP%]{gap:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .cdk-drag-preview[_ngcontent-%COMP%]{border:none;box-sizing:border-box}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:space-between;align-items:center}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%] .skill-title[_ngcontent-%COMP%]{gap:.4em;display:flex}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%] .skill-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{opacity:.4}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%] .drag-placeholder[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1);background-color:#666;min-height:60px}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%] .cdk-drag-handle[_ngcontent-%COMP%]{cursor:grab}[_nghost-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-header[_ngcontent-%COMP%] .cdk-drag-handle[_ngcontent-%COMP%]:active{cursor:grabbing}[_nghost-%COMP%] .skill-weight[_ngcontent-%COMP%]{max-width:3em}[_nghost-%COMP%] .cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%] .cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .skills-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .skills-list[_ngcontent-%COMP%] .skill-item[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:first-of-type{border-top-right-radius:none;border-top-left-radius:none}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{background:transparent}"]})}return t})();var qn=(t,n)=>n.id,Kn=t=>[t],Yn=t=>({right:t}),Qn=t=>({outlets:t}),Xn=t=>["/","carreiras",t];function Jn(t,n){if(t&1&&(a(0,"a",1),c(1,"devmx-icon",2),a(2,"div",3),m(3),r(),a(4,"div",4),m(5),G(6,"jobMode"),r()()),t&2){let e=n.$implicit;d("routerLink",X(11,Xn,X(9,Qn,X(7,Yn,X(5,Kn,e.id))))),p(3),H(e.title),p(2),H(z(6,3,e.mode))}}var sn=(()=>{class t{data=x([]);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-job-opening-card-list"]],inputs:{data:[1,"data"]},decls:7,vars:0,consts:[[1,"job-openings-card"],["mat-list-item","",3,"routerLink"],["matListItemIcon","","name","finance/bullseye"],["matListItemTitle",""],["matListItemLine",""]],template:function(i,o){i&1&&(a(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),m(3,"Vagas"),r()(),a(4,"mat-list"),y(5,Jn,7,13,"a",1,qn),r()()),i&2&&(p(5),b(o.data()))},dependencies:[Y,Me,Oe,xe,re,ne,ae,oe,be,ie,D,Ce,no],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] a[_ngcontent-%COMP%]:link{cursor:pointer}"],changeDetection:0})}return t})();var cn=(t,n)=>n.id;function Zn(t,n){if(t&1&&(a(0,"label"),m(1),r()),t&2){let e=n.$implicit;p(),I("#",e.name,"")}}function ea(t,n){if(t&1&&(a(0,"a",1),c(1,"devmx-icon",2),a(2,"div",3),m(3),r(),a(4,"div",4),y(5,Zn,2,1,"label",null,cn),r(),a(7,"var",5),m(8),r()()),t&2){let e=n.$implicit;d("href",e.html_url,he),p(3),H(e.title),p(2),b(e.labels),p(3),I("#",e.number,"")}}var mn=(()=>{class t{data=x([]);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-issue-card-list"]],inputs:{data:[1,"data"]},decls:7,vars:0,consts:[[1,"contributors-card"],["mat-list-item","","target","_blank","rel","noopener noreferrer",3,"href"],["matListItemIcon","","name","transport/swap-locations"],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta",""]],template:function(i,o){i&1&&(a(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),m(3,"Contribua"),r()(),a(4,"mat-list"),y(5,ea,9,3,"a",1,cn),r()()),i&2&&(p(5),b(o.data()))},dependencies:[Y,Me,Oe,xe,re,ne,ae,oe,be,ie,Ke,D],styles:["[_nghost-%COMP%] a[_ngcontent-%COMP%]:link{cursor:pointer}"],changeDetection:0})}return t})();var ta=(t,n)=>n.id,ia=t=>["/","albuns",t];function oa(t,n){if(t&1&&(a(0,"a",1),c(1,"devmx-icon",2),a(2,"div",3),m(3),r(),a(4,"div",4),m(5),G(6,"date"),r()()),t&2){let e=n.$implicit;d("routerLink",X(6,ia,e.id)),p(3),H(e.title),p(2),H(ai(6,3,e.createdAt,"longDate"))}}var pn=(()=>{class t{data=x([]);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-album-card-list"]],inputs:{data:[1,"data"]},decls:7,vars:0,consts:[[1,"albums-card"],["mat-list-item","",3,"routerLink"],["matListItemIcon","","name","photo"],["matListItemTitle",""],["matListItemLine",""]],template:function(i,o){i&1&&(a(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),m(3,"Fotos"),r()(),a(4,"mat-list"),y(5,oa,7,8,"a",1,ta),r()()),i&2&&(p(5),b(o.data()))},dependencies:[Y,Me,Oe,xe,re,ne,ae,oe,be,ie,D,li,Ce],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] a[_ngcontent-%COMP%]:link{cursor:pointer}"],changeDetection:0})}return t})();var na=(t,n)=>n.id;function aa(t,n){if(t&1&&(a(0,"mat-chip"),c(1,"img",0),m(2),r()),t&2){let e=n.$implicit;p(),d("src",e.avatar_url,he)("alt",e.login),p(),I(" ",e.login," ")}}var dn=(()=>{class t{data=x([]);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-contributors"]],inputs:{data:[1,"data"]},decls:3,vars:0,consts:[["matChipAvatar","",3,"src","alt"]],template:function(i,o){i&1&&(a(0,"marquee"),y(1,aa,3,3,"mat-chip",null,na),r()),i&2&&(p(),b(o.data()))},dependencies:[oo,io],styles:["[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{margin-right:1em}"],changeDetection:0})}return t})();var un=(()=>{class t{type=x.required();get icon(){switch(this.type()){case"github":return"social/github";case"linkedIn":return"social/linkedin";case"instagram":return"social/instagram";case"notion":return"social/notion";case"website":return"software/web-info";case"whatsApp":return"social/whatsapp"}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-social-icon"]],inputs:{type:[1,"type"]},decls:1,vars:1,consts:[[3,"name"]],template:function(i,o){i&1&&c(0,"devmx-icon",0),i&2&&d("name",o.icon)},dependencies:[D],encapsulation:2,changeDetection:0})}return t})();var ra=(t,n)=>n.value.type;function la(t,n){if(t&1){let e=T();a(0,"mat-list-item"),c(1,"devmx-social-icon",2),a(2,"div",3),m(3),r(),a(4,"button",4),g("click",function(){let o=P(e).$index,l=w();return k(l.form.social.removeAt(o))}),c(5,"devmx-icon",5),r()()}if(t&2){let e=n.$implicit;p(),d("type",e.value.type),p(2),H(e.value.username)}}var fn=(()=>{class t{container=s(v);cdr=s(me);userSocial=s(Le);get form(){return this.container.control}addSocial(){let e=this.form.social.getRawValue();this.userSocial.open({items:e}).afterClosed().pipe(W(1)).subscribe(i=>{i&&(this.form.social.add(i),this.cdr.detectChanges())})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-social"]],features:[S([on()],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:7,vars:0,consts:[["type","button","mat-icon-button","",3,"click"],["name","message/circle-plus"],["matListItemIcon","",3,"type"],["matListItemTitle",""],["type","button","mat-icon-button","","matListItemMeta","",3,"click"],["name","trash"]],template:function(i,o){i&1&&(a(0,"div")(1,"mat-list"),y(2,la,6,2,"mat-list-item",null,ra),r(),a(4,"footer")(5,"button",0),g("click",function(){return o.addSocial()}),c(6,"devmx-icon",1),r()()()),i&2&&(p(2),b(o.form.social.controls))},dependencies:[O,un,$,N,le,j,re,ne,ae,oe,ie,Ke,D],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{margin-left:.6em}"]})}return t})();function sa(t,n){t&1&&m(0," Use apenas letras do alfabeto min\xFAsculas ")}function ca(t,n){t&1&&m(0," Obrigat\xF3rio ")}var hn=(()=>{class t{container=s(v);get form(){return this.container.control}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account-user"]],features:[S([],[{provide:v,useFactory:()=>s(v,{skipSelf:!0})}])],decls:13,vars:2,consts:[["matInput","","formControlName","displayName","autocomplete","name","autofocus",""],["matInput","","formControlName","name","autocomplete","username"]],template:function(i,o){i&1&&(a(0,"mat-form-field")(1,"mat-label"),m(2,"Seu nome"),r(),c(3,"input",0),a(4,"mat-error"),m(5,"Obrigat\xF3rio"),r()(),a(6,"mat-form-field")(7,"mat-label"),m(8,"Seu usu\xE1rio"),r(),c(9,"input",1),a(10,"mat-error"),_(11,sa,1,0)(12,ca,1,0),r()()),i&2&&(p(11),F(o.form.controls.name.hasError("pattern")?11:-1),p(),F(o.form.controls.name.hasError("required")?12:-1))},dependencies:[O,B,A,V,$,q,te,ye,j,Q],styles:["[_nghost-%COMP%]{gap:1em;display:flex;flex-direction:row}@media (max-width: 768px){[_nghost-%COMP%]{gap:0em;flex-direction:column}}"],changeDetection:0})}return t})();var ma=t=>["/","sobre",t],gn=(()=>{class t{userFacade=s(tt);userPhoto=s(Ie);form=new ft;photo=ke("");state=ke(null);i=0;constructor(){this.userFacade.selected$.pipe(R(e=>!!e),W(1)).subscribe(e=>{e.profile?.photo&&this.photo.set(e.profile.photo),this.form.patch(e)}),this.form.valueChanges.pipe(de(),He(4e3),Rt(1)).subscribe(()=>this.onSubmit())}changePhoto(e){this.userPhoto.open({file:e}).closed.subscribe(i=>{let{id:o,profile:l}=this.form.getRawValue();if(o&&i){let u=Et(At({},l),{id:o,photo:i});this.userFacade.updatePhoto(u),this.photo.set(URL.createObjectURL(i))}})}onSubmit(){let e=Vt(1e3).pipe(W(1));if(this.form.valid){let i=this.form.getRawValue();return this.state.set("Salvando..."),this.userFacade.update(i),e.subscribe(()=>this.state.set(null))}return this.form.markAllAsTouched(),e.subscribe(()=>this.state.set(null))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-account"]],features:[S([nt()])],decls:25,vars:9,consts:[["editor","markdownEditor"],[3,"submit","formGroup"],["formGroupName","profile"],["label","Bio","formControlName","minibio",3,"maxRows"],[3,"content"],["mat-flat-button","",3,"disabled"],[1,"user-avatar"],[3,"src"],[1,"select-file",3,"selectChange"],["mat-stroked-button","",3,"routerLink"]],template:function(i,o){if(i&1){let l=T();a(0,"form",1),g("submit",function(){return P(l),k(o.onSubmit())}),a(1,"section"),c(2,"devmx-account-user")(3,"devmx-account-contact")(4,"devmx-account-profile"),a(5,"fieldset")(6,"legend"),m(7,"Informa\xE7\xF5es p\xFAblicas"),r(),c(8,"devmx-account-visibility"),r(),c(9,"devmx-account-skills"),a(10,"section",2)(11,"devmx-markdown-toolbar"),c(12,"devmx-markdown-editor",3,0)(14,"devmx-markdown-view",4),r()(),a(15,"footer")(16,"button",5),m(17),r()()(),a(18,"aside")(19,"div",6),c(20,"devmx-avatar",7),a(21,"devmx-select-file",8),g("selectChange",function(E){return P(l),k(o.changePhoto(E))}),r()(),a(22,"a",9),m(23," Acessar p\xE1gina p\xFAblica "),r(),c(24,"devmx-account-social"),r()()}if(i&2){let l;d("formGroup",o.form),p(12),d("maxRows",80),p(2),d("content",(l=o.form.profile.controls.minibio==null?null:o.form.profile.controls.minibio.value)!==null&&l!==void 0?l:""),p(2),d("disabled",o.state()),p(),I(" ",o.state()?o.state():"Salvar"," "),p(3),d("src",o.photo()),p(2),d("routerLink",X(7,ma,o.form.controls.name.value))}},dependencies:[O,ze,A,U,We,V,K,mo,ro,lo,hn,nn,an,fn,rn,Uo,jo,N,Hi,Ye,en,Ce],styles:["[_nghost-%COMP%]{flex:1;gap:1em;padding:1em;display:flex;flex-direction:column;max-width:980px}[_nghost-%COMP%] form[_ngcontent-%COMP%]{gap:64px;display:flex;flex-direction:row}@media (max-width: 768px){[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column-reverse}}[_nghost-%COMP%] .user-avatar[_ngcontent-%COMP%]{width:12em;display:flex;flex-direction:column}[_nghost-%COMP%] aside[_ngcontent-%COMP%]{gap:2em;width:16em;display:flex;padding:0 2em;flex-direction:column;align-items:center}[_nghost-%COMP%] section[_ngcontent-%COMP%]{flex:1;gap:1em;display:flex;flex-direction:column;max-width:580px}[_nghost-%COMP%] fieldset[_ngcontent-%COMP%]{border:1px dashed rgba(0,0,0,.2);border-radius:.4em}[_nghost-%COMP%] fieldset[_ngcontent-%COMP%] legend[_ngcontent-%COMP%]{padding:.4em}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return t})();var pa=()=>[import("./chunk-SZNPDBBQ.js").then(t=>t.EventCardListComponent),J],da=()=>[pn,J],ua=()=>[sn,J],fa=()=>[import("./chunk-KDMTRYHW.js").then(t=>t.PresentationCardListComponent),J],ha=()=>[mn,J];function ga(t,n){t&1&&c(0,"devmx-event-card-list",4),t&2&&d("data",n.data)}function _a(t,n){if(t&1&&(_(0,ga,1,1,"devmx-event-card-list",4),G(1,"async")),t&2){let e,i=w();F((e=z(1,1,i.eventFacade.response$))?0:-1,e)}}function va(t,n){t&1&&c(0,"devmx-skeleton",5),t&2&&d("rows",4)}function Ca(t,n){t&1&&c(0,"devmx-album-card-list",4),t&2&&d("data",n.data)}function ya(t,n){if(t&1&&(_(0,Ca,1,1,"devmx-album-card-list",4),G(1,"async")),t&2){let e,i=w();F((e=z(1,1,i.albumFacade.response$))?0:-1,e)}}function ba(t,n){t&1&&c(0,"devmx-skeleton",5),t&2&&d("rows",4)}function Ma(t,n){t&1&&c(0,"devmx-job-opening-card-list",4),t&2&&d("data",n.data)}function xa(t,n){if(t&1&&(_(0,Ma,1,1,"devmx-job-opening-card-list",4),G(1,"async")),t&2){let e,i=w();F((e=z(1,1,i.jobOpeningFacade.response$))?0:-1,e)}}function Oa(t,n){t&1&&c(0,"devmx-skeleton",5),t&2&&d("rows",3)}function wa(t,n){t&1&&c(0,"devmx-presentation-card-list",4),t&2&&d("data",n.data)}function Sa(t,n){if(t&1&&(_(0,wa,1,1,"devmx-presentation-card-list",4),G(1,"async")),t&2){let e,i=w();F((e=z(1,1,i.presentationFacade.response$))?0:-1,e)}}function Pa(t,n){t&1&&c(0,"devmx-skeleton",5),t&2&&d("rows",4)}function ka(t,n){t&1&&c(0,"devmx-issue-card-list",4),t&2&&d("data",n)}function Fa(t,n){if(t&1&&(_(0,ka,1,1,"devmx-issue-card-list",4),G(1,"async")),t&2){let e,i=w();F((e=z(1,1,i.githubFacade.issues$))?0:-1,e)}}function Da(t,n){t&1&&c(0,"devmx-skeleton",5),t&2&&d("rows",3)}function Aa(t,n){t&1&&c(0,"devmx-contributors",4),t&2&&d("data",n)}var _n=(()=>{class t{githubFacade=s(Di);jobOpeningFacade=s(Qi);presentationFacade=s(Ei);albumFacade=s(Xi);eventFacade=s(Ji);constructor(){this.githubFacade.issues$.subscribe(e=>{e.map(i=>{console.log(i.state_reason)})}),this.githubFacade.loadContributors("devmx"),this.githubFacade.loadIssues("devmx"),this.eventFacade.setPage(0,6),this.eventFacade.load(),this.jobOpeningFacade.setPage(0,6),this.jobOpeningFacade.load(),this.presentationFacade.setPage(0,6),this.presentationFacade.load(),this.albumFacade.setPage(0,6),this.albumFacade.load()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=f({type:t,selectors:[["devmx-home"]],decls:27,vars:3,consts:[[1,"banner"],[1,"cards"],[1,"event-container"],[1,"skill-cards"],[3,"data"],[3,"rows"]],template:function(i,o){if(i&1&&(c(0,"header",0),a(1,"div",1)(2,"section",2),_(3,_a,2,3)(4,va,1,1),_e(5,3,pa,null,4),ve(500),_(7,ya,2,3)(8,ba,1,1),_e(9,7,da,null,8),ve(500),r(),a(11,"section",3),_(12,xa,2,3)(13,Oa,1,1),_e(14,12,ua,null,13),ve(500),_(16,Sa,2,3)(17,Pa,1,1),_e(18,16,fa,null,17),ve(500),r(),a(20,"section"),_(21,Fa,2,3)(22,Da,1,1),_e(23,21,ha,null,22),ve(500),r()(),_(25,Aa,1,1,"devmx-contributors",4),G(26,"async")),i&2){let l;p(25),F((l=z(26,1,o.githubFacade.contributors$))?25:-1,l)}},dependencies:[dn,to,Y,N,J],styles:["[_nghost-%COMP%]{flex:1;gap:1em;padding:1em;display:flex;flex-direction:column;max-width:calc(100vw - 2em)}[_nghost-%COMP%] .radio[_ngcontent-%COMP%]{display:inline-flex;background-color:#fff;border-radius:1.6em;padding:.2em;gap:.2em}[_nghost-%COMP%] .banner[_ngcontent-%COMP%]{flex:1;padding:1em 1.2em;display:flex;align-items:flex-end;justify-content:flex-end;min-height:256px;max-height:356px;border-radius:1em;background-image:url(/backgrounds/3d-horns.webp);background-position:center 50%;background-repeat:no-repeat;background-blend-mode:multiply;background-color:#999}[_nghost-%COMP%] .banner[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;filter:invert(.6);color:#666;font-size:2.8em;line-height:100%}@media (max-width: 767px){[_nghost-%COMP%] .banner[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.8em}}@media (max-width: 767px){[_nghost-%COMP%] .banner[_ngcontent-%COMP%]{background-size:242%}}[_nghost-%COMP%] .cards[_ngcontent-%COMP%]{flex:1;gap:1em;display:grid}[_nghost-%COMP%] .cards[_ngcontent-%COMP%] > section[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:column;max-width:calc(100vw - 3em)}@media (min-width: 768px){[_nghost-%COMP%] .cards[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 767px){[_nghost-%COMP%] .cards[_ngcontent-%COMP%]{grid-template-columns:1fr}}"],changeDetection:0})}return t})();var vn=()=>{let t=s(se),n=s(tt);return t.auth$.pipe(R(i=>!!i),W(1)).pipe(ue(i=>ao(n,{id:i.id})))};var ep=[{path:"autenticacao",loadChildren:()=>import("./chunk-XWYI7Y6E.js").then(t=>t.accountFeatureAuthRoutes)},{path:"",canActivate:[$o("member")],providers:Go,component:Ro,data:{breadcrumb:"Conta"},title:"Conta",children:[{path:"administracao",canActivate:[St("manager","director","staff","leader")],loadChildren:()=>ht(void 0,null,function*(){return import("./chunk-RGIFAF2T.js").then(t=>t.accountFeatureAdminRoutes)})},{path:"dashboard",canActivate:[St("manager","director")],loadChildren:()=>ht(void 0,null,function*(){return import("./chunk-R2BYSYX5.js").then(t=>t.accountFeatureBoardRoutes)})},{path:"configuracoes",title:"Configura\xE7\xF5es da conta",component:gn,resolve:{user:vn}},{path:"sair",title:"Sair",component:Bo},{path:"",title:"Inicio",component:_n},{path:"**",pathMatch:"full",redirectTo:"configuracoes"}]}];export{Ro as AccountFeatureShellComponent,ep as accountFeatureShellRoutes}; diff --git a/chunk-MWZTEPOQ.js b/chunk-6P3MPDKA.js similarity index 98% rename from chunk-MWZTEPOQ.js rename to chunk-6P3MPDKA.js index a93bdd01..6f6fa249 100644 --- a/chunk-MWZTEPOQ.js +++ b/chunk-6P3MPDKA.js @@ -1 +1 @@ -import{a as r}from"./chunk-XIUDFJWJ.js";import{A as C,a as u,b as c,c as p,d as a,u as d}from"./chunk-4FWBEGAE.js";import{F as J}from"./chunk-TEKHUYWQ.js";var o=class extends u{};var s=class extends u{};var i=class extends u{};var m=class{courseService;constructor(e){this.courseService=e}execute(e){return this.courseService.create(e)}};function K(){return r(m,[o])}var v=class{institutionService;constructor(e){this.institutionService=e}execute(e){return this.institutionService.create(e)}};function M(){return r(v,[s])}var f=class{subjectService;constructor(e){this.subjectService=e}execute(e){return this.subjectService.create(e)}};function N(){return r(f,[i])}var x=class{courseService;constructor(e){this.courseService=e}execute(e){return this.courseService.delete(e)}};function Q(){return r(x,[o])}var U=class{institutionService;constructor(e){this.institutionService=e}execute(e){return this.institutionService.delete(e)}};function T(){return r(U,[s])}var S=class{subjectService;constructor(e){this.subjectService=e}execute(e){return this.subjectService.delete(e)}};function V(){return r(S,[i])}var l=class{courseService;constructor(e){this.courseService=e}execute(e){return this.courseService.findOne(e)}};function X(){return r(l,[o])}var h=class{courseService;constructor(e){this.courseService=e}execute(e){return this.courseService.find(e)}};function Y(){return r(h,[o])}var I=class{institutionService;constructor(e){this.institutionService=e}execute(e){return this.institutionService.findOne(e)}};function Z(){return r(I,[s])}var b=class{institutionService;constructor(e){this.institutionService=e}execute(e){return this.institutionService.find(e)}};function _(){return r(b,[s])}var j=class{subjectService;constructor(e){this.subjectService=e}execute(e){return this.subjectService.findOne(e)}};function ee(){return r(j,[i])}var F=class{subjectService;constructor(e){this.subjectService=e}execute(e){return this.subjectService.find(e)}};function te(){return r(F,[i])}var y=class{courseService;constructor(e){this.courseService=e}execute(e){return this.courseService.update(e.id,e)}};function re(){return r(y,[o])}var D=class{institutionService;constructor(e){this.institutionService=e}execute(e){return this.institutionService.update(e.id,e)}};function oe(){return r(D,[s])}var B=class{subjectService;constructor(e){this.subjectService=e}execute(e){return this.subjectService.update(e.id,e)}};function se(){return r(B,[i])}var E=class extends d{};function g(){return{provide:o,useFactory(t,e){return new E(t,e,"courses")},deps:[p,c]}}var L=class extends d{};function w(){return{provide:s,useFactory(t,e){return new L(t,e,"institutions")},deps:[p,c]}}var z=class extends d{};function R(){return{provide:i,useFactory(t,e){return new z(t,e,"subjects")},deps:[p,c]}}var W=class extends C{createCourseUseCase;findCoursesUseCase;findCourseByIdUseCase;updateCourseUseCase;deleteCourseUseCase;constructor(e,n,P,H,O){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{name:""}},selected:null}),this.createCourseUseCase=e,this.findCoursesUseCase=n,this.findCourseByIdUseCase=P,this.updateCourseUseCase=H,this.deleteCourseUseCase=O}load(){this.onLoad(this.findCoursesUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findCourseByIdUseCase.execute(e))}create(e){this.onCreate(this.createCourseUseCase.execute(e))}update(e){this.onUpdate(this.updateCourseUseCase.execute(e))}delete(e){this.onDelete(this.deleteCourseUseCase.execute(e))}};function $(){return a(W,[m,h,l,y,x])}var A=class extends C{createInstitutionUseCase;findInstitutionsUseCase;findInstitutionByIdUseCase;updateInstitutionUseCase;deleteInstitutionUseCase;constructor(e,n,P,H,O){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{name:""}},selected:null}),this.createInstitutionUseCase=e,this.findInstitutionsUseCase=n,this.findInstitutionByIdUseCase=P,this.updateInstitutionUseCase=H,this.deleteInstitutionUseCase=O}load(){this.onLoad(this.findInstitutionsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findInstitutionByIdUseCase.execute(e))}create(e){this.onCreate(this.createInstitutionUseCase.execute(e))}update(e){this.onUpdate(this.updateInstitutionUseCase.execute(e))}delete(e){this.onDelete(this.deleteInstitutionUseCase.execute(e))}};function k(){return a(A,[v,b,I,D,U])}var q=class extends C{createSubjectUseCase;findSubjectsUseCase;findSubjectByIdUseCase;updateSubjectUseCase;deleteSubjectUseCase;constructor(e,n,P,H,O){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{name:""}},selected:null}),this.createSubjectUseCase=e,this.findSubjectsUseCase=n,this.findSubjectByIdUseCase=P,this.updateSubjectUseCase=H,this.deleteSubjectUseCase=O}load(){this.onLoad(this.findSubjectsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findSubjectByIdUseCase.execute(e))}create(e){this.onCreate(this.createSubjectUseCase.execute(e))}update(e){this.onUpdate(this.updateSubjectUseCase.execute(e))}delete(e){this.onDelete(this.deleteSubjectUseCase.execute(e))}};function G(){return a(q,[f,F,j,B,S])}function ie(){return[g(),K(),Y(),X(),re(),Q(),$()]}function ne(){return[w(),M(),_(),Z(),oe(),T(),k()]}function ue(){return[R(),N(),te(),ee(),se(),V(),G()]}function Lr(){return[...ue(),...ne(),...ie()]}var Rr=(t,e)=>(t.loadOne(e.id),t.selected$.pipe(J(n=>!!n)));export{W as a,A as b,q as c,Lr as d,Rr as e}; +import{a as r}from"./chunk-XIUDFJWJ.js";import{A as C,a as u,b as c,c as p,d as a,u as d}from"./chunk-XYJHVZQT.js";import{F as J}from"./chunk-TEKHUYWQ.js";var o=class extends u{};var s=class extends u{};var i=class extends u{};var m=class{courseService;constructor(e){this.courseService=e}execute(e){return this.courseService.create(e)}};function K(){return r(m,[o])}var v=class{institutionService;constructor(e){this.institutionService=e}execute(e){return this.institutionService.create(e)}};function M(){return r(v,[s])}var f=class{subjectService;constructor(e){this.subjectService=e}execute(e){return this.subjectService.create(e)}};function N(){return r(f,[i])}var x=class{courseService;constructor(e){this.courseService=e}execute(e){return this.courseService.delete(e)}};function Q(){return r(x,[o])}var U=class{institutionService;constructor(e){this.institutionService=e}execute(e){return this.institutionService.delete(e)}};function T(){return r(U,[s])}var S=class{subjectService;constructor(e){this.subjectService=e}execute(e){return this.subjectService.delete(e)}};function V(){return r(S,[i])}var l=class{courseService;constructor(e){this.courseService=e}execute(e){return this.courseService.findOne(e)}};function X(){return r(l,[o])}var h=class{courseService;constructor(e){this.courseService=e}execute(e){return this.courseService.find(e)}};function Y(){return r(h,[o])}var I=class{institutionService;constructor(e){this.institutionService=e}execute(e){return this.institutionService.findOne(e)}};function Z(){return r(I,[s])}var b=class{institutionService;constructor(e){this.institutionService=e}execute(e){return this.institutionService.find(e)}};function _(){return r(b,[s])}var j=class{subjectService;constructor(e){this.subjectService=e}execute(e){return this.subjectService.findOne(e)}};function ee(){return r(j,[i])}var F=class{subjectService;constructor(e){this.subjectService=e}execute(e){return this.subjectService.find(e)}};function te(){return r(F,[i])}var y=class{courseService;constructor(e){this.courseService=e}execute(e){return this.courseService.update(e.id,e)}};function re(){return r(y,[o])}var D=class{institutionService;constructor(e){this.institutionService=e}execute(e){return this.institutionService.update(e.id,e)}};function oe(){return r(D,[s])}var B=class{subjectService;constructor(e){this.subjectService=e}execute(e){return this.subjectService.update(e.id,e)}};function se(){return r(B,[i])}var E=class extends d{};function g(){return{provide:o,useFactory(t,e){return new E(t,e,"courses")},deps:[p,c]}}var L=class extends d{};function w(){return{provide:s,useFactory(t,e){return new L(t,e,"institutions")},deps:[p,c]}}var z=class extends d{};function R(){return{provide:i,useFactory(t,e){return new z(t,e,"subjects")},deps:[p,c]}}var W=class extends C{createCourseUseCase;findCoursesUseCase;findCourseByIdUseCase;updateCourseUseCase;deleteCourseUseCase;constructor(e,n,P,H,O){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{name:""}},selected:null}),this.createCourseUseCase=e,this.findCoursesUseCase=n,this.findCourseByIdUseCase=P,this.updateCourseUseCase=H,this.deleteCourseUseCase=O}load(){this.onLoad(this.findCoursesUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findCourseByIdUseCase.execute(e))}create(e){this.onCreate(this.createCourseUseCase.execute(e))}update(e){this.onUpdate(this.updateCourseUseCase.execute(e))}delete(e){this.onDelete(this.deleteCourseUseCase.execute(e))}};function $(){return a(W,[m,h,l,y,x])}var A=class extends C{createInstitutionUseCase;findInstitutionsUseCase;findInstitutionByIdUseCase;updateInstitutionUseCase;deleteInstitutionUseCase;constructor(e,n,P,H,O){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{name:""}},selected:null}),this.createInstitutionUseCase=e,this.findInstitutionsUseCase=n,this.findInstitutionByIdUseCase=P,this.updateInstitutionUseCase=H,this.deleteInstitutionUseCase=O}load(){this.onLoad(this.findInstitutionsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findInstitutionByIdUseCase.execute(e))}create(e){this.onCreate(this.createInstitutionUseCase.execute(e))}update(e){this.onUpdate(this.updateInstitutionUseCase.execute(e))}delete(e){this.onDelete(this.deleteInstitutionUseCase.execute(e))}};function k(){return a(A,[v,b,I,D,U])}var q=class extends C{createSubjectUseCase;findSubjectsUseCase;findSubjectByIdUseCase;updateSubjectUseCase;deleteSubjectUseCase;constructor(e,n,P,H,O){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{name:""}},selected:null}),this.createSubjectUseCase=e,this.findSubjectsUseCase=n,this.findSubjectByIdUseCase=P,this.updateSubjectUseCase=H,this.deleteSubjectUseCase=O}load(){this.onLoad(this.findSubjectsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findSubjectByIdUseCase.execute(e))}create(e){this.onCreate(this.createSubjectUseCase.execute(e))}update(e){this.onUpdate(this.updateSubjectUseCase.execute(e))}delete(e){this.onDelete(this.deleteSubjectUseCase.execute(e))}};function G(){return a(q,[f,F,j,B,S])}function ie(){return[g(),K(),Y(),X(),re(),Q(),$()]}function ne(){return[w(),M(),_(),Z(),oe(),T(),k()]}function ue(){return[R(),N(),te(),ee(),se(),V(),G()]}function Lr(){return[...ue(),...ne(),...ie()]}var Rr=(t,e)=>(t.loadOne(e.id),t.selected$.pipe(J(n=>!!n)));export{W as a,A as b,q as c,Lr as d,Rr as e}; diff --git a/chunk-73QBZNVE.js b/chunk-73QBZNVE.js new file mode 100644 index 00000000..60638a40 --- /dev/null +++ b/chunk-73QBZNVE.js @@ -0,0 +1 @@ +import{a as X,b as Z,e as J,f as tt}from"./chunk-Q2N7RZTH.js";import{o as O,r as Q}from"./chunk-AND6K73U.js";import{f as W,g as $}from"./chunk-BJXILAOS.js";import{z as K}from"./chunk-6BGAZ7SQ.js";import{T as x,Y as T,s as U,u as A}from"./chunk-W5KNOAKV.js";import{D as L,Ea as N,F as d,Ja as y,Kb as p,L as g,Lb as G,Nb as j,Pa as B,Sb as v,Vb as D,Z as S,a as m,b as k,bc as H,cc as Y,ea as M,fa as F,ha as h,ic as C,j as l,ka as n,kc as q,sa as P,ub as z,vb as V,wb as r,xa as u,y as E}from"./chunk-TEKHUYWQ.js";function ct(t,o){}var _=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration},w="mdc-dialog--open",et="mdc-dialog--opening",it="mdc-dialog--closing",mt=150,gt=75,ht=(()=>{class t extends Z{_animationMode=n(B,{optional:!0});_animationStateChanged=new N;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?ot(this._config.enterAnimationDuration)??mt:0;_exitAnimationDuration=this._animationsEnabled?ot(this._config.exitAnimationDuration)??gt:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(at,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(et,w)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(w),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(w),this._animationsEnabled?(this._hostElement.style.setProperty(at,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(it)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(et,it)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(a){return(e||(e=u(t)))(a||t)}})();static \u0275cmp=z({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,a){i&2&&(C("id",a._config.id),v("aria-modal",a._config.ariaModal)("role",a._config.role)("aria-labelledby",a._config.ariaLabel?null:a._ariaLabelledByQueue[0])("aria-label",a._config.ariaLabel)("aria-describedby",a._config.ariaDescribedBy||null),D("_mat-animation-noopable",!a._animationsEnabled)("mat-mdc-dialog-container-with-actions",a._actionSectionCount>0))},features:[p],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,a){i&1&&(H(0,"div",0)(1,"div",1),j(2,ct,0,0,"ng-template",2),Y()())},dependencies:[W],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return t})(),at="--mat-dialog-transition-duration";function ot(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?A(t.substring(0,t.length-2)):t.endsWith("s")?A(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var f=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(f||{}),c=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new l;_beforeClosed=new l;_result;_closeFallbackTimeout;_state=f.OPEN;_closeInteractionType;constructor(o,e,i){this._ref=o,this._containerInstance=i,this.disableClose=e.disableClose,this.id=o.id,o.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(d(a=>a.state==="opened"),g(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(d(a=>a.state==="closed"),g(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),o.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),L(this.backdropClick(),this.keydownEvents().pipe(d(a=>a.keyCode===27&&!this.disableClose&&!U(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),nt(this,a.type==="keydown"?"keyboard":"mouse"))})}close(o){this._result=o,this._containerInstance._animationStateChanged.pipe(d(e=>e.state==="closing"),g(1)).subscribe(e=>{this._beforeClosed.next(o),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=f.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(o){let e=this._ref.config.positionStrategy;return o&&(o.left||o.right)?o.left?e.left(o.left):e.right(o.right):e.centerHorizontally(),o&&(o.top||o.bottom)?o.top?e.top(o.top):e.bottom(o.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(o="",e=""){return this._ref.updateSize(o,e),this}addPanelClass(o){return this._ref.addPanelClass(o),this}removePanelClass(o){return this._ref.removePanelClass(o),this}getState(){return this._state}_finishDialogClose(){this._state=f.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function nt(t,o,e){return t._closeInteractionType=o,t.close(e)}var ut=new h("MatMdcDialogData"),pt=new h("mat-mdc-dialog-default-options"),ft=new h("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=n(O);return()=>t.scrollStrategies.block()}});var I=(()=>{class t{_overlay=n(O);_defaultOptions=n(pt,{optional:!0});_scrollStrategy=n(ft);_parentDialog=n(t,{optional:!0,skipSelf:!0});_idGenerator=n(x);_dialog=n(J);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new l;_afterOpenedAtThisLevel=new l;dialogConfigClass=_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=E(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(S(void 0)));constructor(){this._dialogRefConstructor=c,this._dialogContainerType=ht,this._dialogDataToken=ut}open(e,i){let a;i=m(m({},this._defaultOptions||new _),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let b=this._dialog.open(e,k(m({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:X,useValue:i}]},templateContext:()=>({dialogRef:a}),providers:(s,lt,R)=>(a=new this._dialogRefConstructor(s,i,R),a.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:R},{provide:this._dialogDataToken,useValue:lt.data},{provide:this._dialogRefConstructor,useValue:a}])}));return a.componentRef=b.componentRef,a.componentInstance=b.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(a);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pt=(()=>{class t{dialogRef=n(c,{optional:!0});_elementRef=n(y);_dialog=n(I);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=rt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){nt(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=r({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,a){i&1&&q("click",function(s){return a._onButtonClick(s)}),i&2&&v("aria-label",a.ariaLabel||null)("type",a.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[P]})}return t})(),st=(()=>{class t{_dialogRef=n(c,{optional:!0});_elementRef=n(y);_dialog=n(I);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=rt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=r({type:t})}return t})(),Nt=(()=>{class t extends st{id=n(x).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(a){return(e||(e=u(t)))(a||t)}})();static \u0275dir=r({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,a){i&2&&C("id",a.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[p]})}return t})(),Bt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=r({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[G([K])]})}return t})(),zt=(()=>{class t extends st{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(a){return(e||(e=u(t)))(a||t)}})();static \u0275dir=r({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,a){i&2&&D("mat-mdc-dialog-actions-align-start",a.align==="start")("mat-mdc-dialog-actions-align-center",a.align==="center")("mat-mdc-dialog-actions-align-end",a.align==="end")},inputs:{align:"align"},features:[p]})}return t})();function rt(t,o){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?o.find(i=>i.id===e.id):null}var Vt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=F({providers:[I],imports:[tt,Q,$,T,T]})}return t})();export{c as a,ut as b,I as c,Pt as d,Nt as e,Bt as f,zt as g,Vt as h}; diff --git a/chunk-LBSELHKL.js b/chunk-7O2H2TAM.js similarity index 99% rename from chunk-LBSELHKL.js rename to chunk-7O2H2TAM.js index 664230b5..9ec37c34 100644 --- a/chunk-LBSELHKL.js +++ b/chunk-7O2H2TAM.js @@ -1 +1 @@ -import{J as Nt,L as Mt,M as Ft}from"./chunk-4FWBEGAE.js";import{N as kt,O as Ot,T as Lt,U as Q,i as I,m as M,o as x,q as Tt,u as J,v as Ct,x as D}from"./chunk-W5KNOAKV.js";import{$ as y,C as ut,D as k,Ea as m,Eb as Rt,Fa as O,Fb as $,Fc as R,Ja as L,L as ft,Mb as N,Sb as It,Sc as Y,Va as bt,Vb as K,Vc as b,Wc as xt,Z as j,_ as mt,ba as vt,e as P,ea as q,ed as X,fa as Dt,g as W,ha as w,j as _,k as _t,ka as h,m as pt,ob as St,sa as wt,t as gt,ub as yt,vb as Et,wb as E,za as Pt}from"./chunk-TEKHUYWQ.js";function Qt(r){let e=r.cloneNode(!0),t=e.querySelectorAll("[id]"),i=r.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s=i&&t<=s&&e>=n&&e<=o}function C(r,e,t){r.top+=e,r.bottom=r.top+r.height,r.left+=t,r.right=r.left+r.width}function Vt(r,e,t,i){let{top:s,right:n,bottom:o,left:a,width:l,height:c}=r,d=l*e,g=c*e;return i>s-g&&ia-d&&t{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:ot(t)})})}handleScroll(e){let t=x(e),i=this.positions.get(t);if(!i)return null;let s=i.scrollPosition,n,o;if(t===this._document){let c=this.getViewportScrollPosition();n=c.top,o=c.left}else n=t.scrollTop,o=t.scrollLeft;let a=s.top-n,l=s.left-o;return this.positions.forEach((c,d)=>{c.clientRect&&t!==d&&t.contains(d)&&C(c.clientRect,a,l)}),s.top=n,s.left=o,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function te(r,e){let t=r.rootNodes;if(t.length===1&&t[0].nodeType===e.ELEMENT_NODE)return t[0];let i=e.createElement("div");return t.forEach(s=>i.appendChild(s)),i}function at(r,e,t){for(let i in e)if(e.hasOwnProperty(i)){let s=e[i];s?r.setProperty(i,s,t?.has(i)?"important":""):r.removeProperty(i)}return r}function S(r,e){let t=e?"":"none";at(r.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function Gt(r,e,t){at(r.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},t)}function z(r,e){return e&&e!="none"?r+" "+e:r}function Bt(r,e){r.style.width=`${e.width}px`,r.style.height=`${e.height}px`,r.style.transform=V(e.left,e.top)}function V(r,e){return`translate3d(${Math.round(r)}px, ${Math.round(e)}px, 0)`}function Ut(r){let e=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*e}function _e(r){let e=getComputedStyle(r),t=tt(e,"transition-property"),i=t.find(a=>a==="transform"||a==="all");if(!i)return 0;let s=t.indexOf(i),n=tt(e,"transition-duration"),o=tt(e,"transition-delay");return Ut(n[s])+Ut(o[s])}function tt(r,e){return r.getPropertyValue(e).split(",").map(i=>i.trim())}var pe=new Set(["position"]),it=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(e,t,i,s,n,o,a,l,c){this._document=e,this._rootElement=t,this._direction=i,this._initialDomRect=s,this._previewTemplate=n,this._previewClass=o,this._pickupPositionOnPage=a,this._initialTransform=l,this._zIndex=c}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),Zt(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(e){this._preview.style.transform=e}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e)}getTransitionDuration(){return _e(this._preview)}addEventListener(e,t){this._preview.addEventListener(e,t)}removeEventListener(e,t){this._preview.removeEventListener(e,t)}_createPreview(){let e=this._previewTemplate,t=this._previewClass,i=e?e.template:null,s;if(i&&e){let n=e.matchSize?this._initialDomRect:null,o=e.viewContainer.createEmbeddedView(i,e.context);o.detectChanges(),s=te(o,this._document),this._previewEmbeddedView=o,e.matchSize?Bt(s,n):s.style.transform=V(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=Qt(this._rootElement),Bt(s,this._initialDomRect),this._initialTransform&&(s.style.transform=this._initialTransform);return at(s.style,{"pointer-events":"none",margin:Zt(s)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},pe),S(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("popover","manual"),s.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(n=>s.classList.add(n)):s.classList.add(t)),s}};function Zt(r){return"showPopover"in r}var Wt=I({passive:!0}),F=I({passive:!1}),jt=I({passive:!1,capture:!0}),ge=800,qt=new Set(["position"]),st=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_anchor;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=$(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new _;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=P.EMPTY;_pointerUpSubscription=P.EMPTY;_scrollSubscription=P.EMPTY;_resizeSubscription=P.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>S(t,e)))}_disabled=!1;beforeStarted=new _;started=new _;released=new _;ended=new _;entered=new _;exited=new _;dropped=new _;moved=this._moveEvents;data;constrainPosition;constructor(e,t,i,s,n,o){this._config=t,this._document=i,this._ngZone=s,this._viewportRuler=n,this._dragDropRegistry=o,this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new H(i),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>D(i)),this._handles.forEach(i=>S(i,this.disabled)),this._toggleNativeDragInteractions();let t=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&t.add(i)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){let t=D(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,F),t.addEventListener("touchstart",this._pointerDown,Wt),t.addEventListener("dragstart",this._nativeDragStart,F)}),this._initialTransform=void 0,this._rootElement=t),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?D(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),S(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),S(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){let e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){let e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",Kt,jt)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)};_pointerMove=e=>{let t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging()){let s=Math.abs(t.x-this._pickupPositionOnPage.x),n=Math.abs(t.y-this._pickupPositionOnPage.y);if(s+n>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),l=this._dropContainer;if(!a){this._endDragSequence(e);return}(!l||!l.isDragging()&&!l.isReceiving())&&(e.cancelable&&e.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(e)))}return}e.cancelable&&e.preventDefault();let i=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,t);else{let s=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,n=this._activeTransform;n.x=i.x-s.x+this._passiveTransform.x,n.y=i.y-s.y+this._passiveTransform.y,this._applyRootElementTransform(n.x,n.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:e,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})};_pointerUp=e=>{this._endDragSequence(e)};_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){T(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let t=this._getShadowRoot(),i=this._dropContainer;if(t&&this._ngZone.runOutsideAngular(()=>{t.addEventListener("selectstart",Kt,jt)}),i){let s=this._rootElement,n=s.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");n.insertBefore(a,s),this._initialTransform=s.style.transform||"",this._preview=new it(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(n,t)),Gt(s,!1,qt),this._document.body.appendChild(n.replaceChild(o,s)),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();let i=this.isDragging(),s=T(t),n=!s&&t.button!==0,o=this._rootElement,a=x(t),l=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+ge>Date.now(),c=s?Ot(t):kt(t);if(a&&a.draggable&&t.type==="mousedown"&&t.preventDefault(),i||n||l||c)return;if(this._handles.length){let v=o.style;this._rootElementTapHighlight=v.webkitTapHighlightColor||"",v.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(v=>this._updateOnScroll(v)),this._boundaryElement&&(this._boundaryRect=ot(this._boundaryElement));let d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,t);let g=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:g.x,y:g.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){Gt(this._rootElement,!0,qt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let t=this._dropContainer,i=t.getItemIndex(this),s=this._getPointerPositionOnPage(e),n=this._getDragDistance(s),o=t._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:n,dropPoint:s,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:n,dropPoint:s,event:e}),t.drop(this,i,this._initialIndex,this._initialContainer,o,n,s,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:s}){let n=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=n,this._dropContainer.enter(this,e,t,n===this._initialContainer&&n.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:n,currentIndex:n.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,s),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let e=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);let t=this._preview.getTransitionDuration();return t===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let s=o=>{(!o||this._preview&&x(o)===this._preview.element&&o.propertyName==="transform")&&(this._preview?.removeEventListener("transitionend",s),i(),clearTimeout(n))},n=setTimeout(s,t*1.5);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){let e=this._placeholderTemplate,t=e?e.template:null,i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=te(this._placeholderRef,this._document)):i=Qt(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t,i){let s=t===this._rootElement?null:t,n=s?s.getBoundingClientRect():e,o=T(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),l=o.pageX-n.left-a.left,c=o.pageY-n.top-a.top;return{x:n.left-e.left+l,y:n.top-e.top+c}}_getPointerPositionOnPage(e){let t=this._getViewportScrollPosition(),i=T(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,s=i.pageX-t.left,n=i.pageY-t.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let a=this._ownerSVGElement.createSVGPoint();return a.x=s,a.y=n,a.matrixTransform(o.inverse())}}return{x:s,y:n}}_getConstrainedPointerPosition(e){let t=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:s}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if(this.lockAxis==="x"||t==="x"?s=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||t==="y")&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:n,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),d=a.top+o,g=a.bottom-(c-o),v=a.left+n,U=a.right-(l-n);i=$t(i,v,U),s=$t(s,d,g)}return{x:i,y:s}}_updatePointerDirectionDelta(e){let{x:t,y:i}=e,s=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-n.x),a=Math.abs(i-n.y);return o>this._config.pointerDirectionChangeThreshold&&(s.x=t>n.x?1:-1,n.x=t),a>this._config.pointerDirectionChangeThreshold&&(s.y=i>n.y?1:-1,n.y=i),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,S(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,F),e.removeEventListener("touchstart",this._pointerDown,Wt),e.removeEventListener("dragstart",this._nativeDragStart,F)}_applyRootElementTransform(e,t){let i=1/this.scale,s=V(e*i,t*i),n=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=n.transform&&n.transform!="none"?n.transform:""),n.transform=z(s,this._initialTransform)}_applyPreviewTransform(e,t){let i=this._previewTemplate?.template?void 0:this._initialTransform,s=V(e,t);this._preview.setTransform(z(s,i))}_getDragDistance(e){let t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(e===0&&t===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(s.width===0&&s.height===0||i.width===0&&i.height===0)return;let n=s.left-i.left,o=i.right-s.right,a=s.top-i.top,l=i.bottom-s.bottom;s.width>i.width?(n>0&&(e+=n),o>0&&(e-=o)):e=0,s.height>i.height?(a>0&&(t+=a),l>0&&(t-=l)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){let t=this.dragStartDelay;return typeof t=="number"?t:T(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){let t=this._parentPositions.handleScroll(e);if(t){let i=x(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&C(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=M(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){let i=this._previewContainer||"global";if(i==="parent")return e;if(i==="global"){let s=this._document;return t||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return D(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=e=>{if(this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&e.preventDefault()}else this.disabled||e.preventDefault()};_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}};function $t(r,e,t){return Math.max(e,Math.min(t,r))}function T(r){return r.type[0]==="t"}function Kt(r){r.preventDefault()}function ee(r,e,t){let i=Yt(e,r.length-1),s=Yt(t,r.length-1);if(i===s)return;let n=r[i],o=s0)return null;let a=this.orientation==="horizontal",l=n.findIndex(u=>u.drag===e),c=n[o],d=n[l].clientRect,g=c.clientRect,v=l>o?1:-1,U=this._getItemOffsetPx(d,g,v),le=this._getSiblingOffsetPx(l,n,v),ce=n.slice();return ee(n,l,o),n.forEach((u,he)=>{if(ce[he]===u)return;let ct=u.drag===e,Z=ct?U:le,ht=ct?e.getPlaceholderElement():u.drag.getRootElement();u.offset+=Z;let dt=Math.round(u.offset*(1/u.drag.scale));a?(ht.style.transform=z(`translate3d(${dt}px, 0, 0)`,u.initialTransform),C(u.clientRect,0,Z)):(ht.style.transform=z(`translate3d(0, ${dt}px, 0)`,u.initialTransform),C(u.clientRect,Z,0))}),this._previousSwap.overlaps=et(g,t,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?s.x:s.y,{previousIndex:l,currentIndex:o}}enter(e,t,i,s){let n=s==null||s<0?this._getItemIndexFromPointerPosition(e,t,i):s,o=this._activeDraggables,a=o.indexOf(e),l=e.getPlaceholderElement(),c=o[n];if(c===e&&(c=o[n+1]),!c&&(n==null||n===-1||n-1&&o.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){let d=c.getRootElement();d.parentElement.insertBefore(l,d),o.splice(n,0,e)}else this._element.appendChild(l),o.push(e);l.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables?.forEach(e=>{let t=e.getRootElement();if(t){let i=this._itemPositions.find(s=>s.drag===e)?.initialTransform;t.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===e)}updateOnScroll(e,t){this._itemPositions.forEach(({clientRect:i})=>{C(i,e,t)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(e){this._element=e}_cacheItemPositions(){let e=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(t=>{let i=t.getVisibleElement();return{drag:t,offset:0,initialTransform:i.style.transform||"",clientRect:ot(i)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_getItemOffsetPx(e,t,i){let s=this.orientation==="horizontal",n=s?t.left-e.left:t.top-e.top;return i===-1&&(n+=s?t.width-e.width:t.height-e.height),n}_getSiblingOffsetPx(e,t,i){let s=this.orientation==="horizontal",n=t[e].clientRect,o=t[e+i*-1],a=n[s?"width":"height"]*i;if(o){let l=s?"left":"top",c=s?"right":"bottom";i===-1?a-=o.clientRect[l]-n[c]:a+=n[l]-o.clientRect[c]}return a}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;let i=this._itemPositions,s=this.orientation==="horizontal";if(i[0].drag!==this._activeDraggables[0]){let o=i[i.length-1].clientRect;return s?e>=o.right:t>=o.bottom}else{let o=i[0].clientRect;return s?e<=o.left:t<=o.top}}_getItemIndexFromPointerPosition(e,t,i,s){let n=this.orientation==="horizontal",o=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===e)return!1;if(s){let c=n?s.x:s.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return n?t>=Math.floor(l.left)&&t=Math.floor(l.top)&&il?d.after(c):d.before(c),ee(this._activeItems,l,n);let g=this._getRootNode().elementFromPoint(t,i);return o.deltaX=s.x,o.deltaY=s.y,o.drag=a,o.overlaps=d===g||d.contains(g),{previousIndex:l,currentIndex:n}}enter(e,t,i,s){let n=s==null||s<0?this._getItemIndexFromPointerPosition(e,t,i):s;n===-1&&(n=this._getClosestItemIndexToPointer(e,t,i));let o=this._activeItems[n],a=this._activeItems.indexOf(e);a>-1&&this._activeItems.splice(a,1),o&&!this._dragDropRegistry.isDragging(o)?(this._activeItems.splice(n,0,e),o.getRootElement().before(e.getPlaceholderElement())):(this._activeItems.push(e),this._element.appendChild(e.getPlaceholderElement()))}withItems(e){this._activeItems=e.slice()}withSortPredicate(e){this._sortPredicate=e}reset(){let e=this._element,t=this._previousSwap;for(let i=this._relatedNodes.length-1;i>-1;i--){let[s,n]=this._relatedNodes[i];s.parentNode===e&&s.nextSibling!==n&&(n===null?e.appendChild(s):n.parentNode===e&&e.insertBefore(s,n))}this._relatedNodes=[],this._activeItems=[],t.drag=null,t.deltaX=t.deltaY=0,t.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(e){return this._activeItems.indexOf(e)}updateOnScroll(){this._activeItems.forEach(e=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})}withElementContainer(e){e!==this._element&&(this._element=e,this._rootNode=void 0)}_getItemIndexFromPointerPosition(e,t,i){let s=this._getRootNode().elementFromPoint(Math.floor(t),Math.floor(i)),n=s?this._activeItems.findIndex(o=>{let a=o.getRootElement();return s===a||a.contains(s)}):-1;return n===-1||!this._sortPredicate(n,e)?-1:n}_getRootNode(){return this._rootNode||(this._rootNode=M(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(e,t,i){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let s=1/0,n=-1;for(let o=0;o!0;sortPredicate=()=>!0;beforeStarted=new _;entered=new _;exited=new _;dropped=new _;sorted=new _;receivingStarted=new _;receivingStopped=new _;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=P.EMPTY;_verticalScrollDirection=f.NONE;_horizontalScrollDirection=p.NONE;_scrollNode;_stopScrollTimers=new _;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(e,t,i,s,n){this._dragDropRegistry=t,this._ngZone=s,this._viewportRuler=n;let o=this.element=D(e);this._document=i,this.withOrientation("vertical").withElementContainer(o),t.registerDropContainer(this),this._parentPositions=new H(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,s){this._draggingStarted(),s==null&&this.sortingDisabled&&(s=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,i,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,s,n,o,a,l={}){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:s,isPointerOverContainer:n,distance:o,dropPoint:a,event:l})}withItems(e){let t=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(t.filter(s=>s.isDragging()).every(s=>e.indexOf(s)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._direction=e,this._sortStrategy instanceof G&&(this._sortStrategy.direction=e),this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){if(e==="mixed")this._sortStrategy=new nt(this._document,this._dragDropRegistry);else{let t=new G(this._dragDropRegistry);t.direction=this._direction,t.orientation=e,this._sortStrategy=t}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((t,i)=>this.sortPredicate(t,i,this)),this}withScrollableParents(e){let t=this._container;return this._scrollableElements=e.indexOf(t)===-1?[t,...e]:e.slice(),this}withElementContainer(e){if(e===this._container)return this;let t=D(this.element),i=this._scrollableElements.indexOf(this._container),s=this._scrollableElements.indexOf(e);return i>-1&&this._scrollableElements.splice(i,1),s>-1&&this._scrollableElements.splice(s,1),this._sortStrategy&&this._sortStrategy.withElementContainer(e),this._cachedShadowRoot=null,this._scrollableElements.unshift(e),this._container=e,this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,s){if(this.sortingDisabled||!this._domRect||!Vt(this._domRect,Xt,t,i))return;let n=this._sortStrategy.sort(e,t,i,s);n&&this.sorted.next({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,s=f.NONE,n=p.NONE;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||i||Vt(o.clientRect,Xt,e,t)&&([s,n]=ue(a,o.clientRect,this._direction,e,t),(s||n)&&(i=a))}),!s&&!n){let{width:o,height:a}=this._viewportRuler.getViewportSize(),l={width:o,height:a,top:0,right:o,bottom:a,left:0};s=se(l,t),n=ne(l,e),i=window}i&&(s!==this._verticalScrollDirection||n!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=n,this._scrollNode=i,(s||n)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let e=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let e=this._container.style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),ut(0,pt).pipe(y(this._stopScrollTimers)).subscribe(()=>{let e=this._scrollNode,t=this.autoScrollStep;this._verticalScrollDirection===f.UP?e.scrollBy(0,-t):this._verticalScrollDirection===f.DOWN&&e.scrollBy(0,t),this._horizontalScrollDirection===p.LEFT?e.scrollBy(-t,0):this._horizontalScrollDirection===p.RIGHT&&e.scrollBy(t,0)})};_isOverContainer(e,t){return this._domRect!=null&&et(this._domRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(s=>s._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._domRect||!et(this._domRect,t,i)||!this.enterPredicate(e,this))return!1;let s=this._getShadowRoot().elementFromPoint(t,i);return s?s===this._container||this._container.contains(s):!1}_startReceiving(e,t){let i=this._activeSiblings;!i.has(e)&&t.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:t}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){let t=this._parentPositions.handleScroll(e);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let e=M(this._container);this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let e=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}};function se(r,e){let{top:t,bottom:i,height:s}=r,n=s*ie;return e>=t-n&&e<=t+n?f.UP:e>=i-n&&e<=i+n?f.DOWN:f.NONE}function ne(r,e){let{left:t,right:i,width:s}=r,n=s*ie;return e>=t-n&&e<=t+n?p.LEFT:e>=i-n&&e<=i+n?p.RIGHT:p.NONE}function ue(r,e,t,i,s){let n=se(e,s),o=ne(e,i),a=f.NONE,l=p.NONE;if(n){let c=r.scrollTop;n===f.UP?c>0&&(a=f.UP):r.scrollHeight-c>r.clientHeight&&(a=f.DOWN)}if(o){let c=r.scrollLeft;t==="rtl"?o===p.RIGHT?c<0&&(l=p.RIGHT):r.scrollWidth+c>r.clientWidth&&(l=p.LEFT):o===p.LEFT?c>0&&(l=p.LEFT):r.scrollWidth-c>r.clientWidth&&(l=p.RIGHT)}return[a,l]}var A=I({passive:!1,capture:!0}),fe=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=yt({type:r,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(i,s){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"],encapsulation:2,changeDetection:0})}return r})(),me=(()=>{class r{_ngZone=h(O);_document=h(X);_styleLoader=h(Tt);_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=$([]);_globalListeners=new Map;_draggingPredicate=t=>t.isDragging();pointerMove=new _;pointerUp=new _;scroll=new _;constructor(){}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,A)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),this._dragInstances.size===0&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,A)}startDragging(t,i){if(!(this._activeDragInstances().indexOf(t)>-1)&&(this._styleLoader.load(fe),this._activeDragInstances.update(s=>[...s,t]),this._activeDragInstances().length===1)){let s=i.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:n=>this.pointerUp.next(n),options:!0}).set("scroll",{handler:n=>this.scroll.next(n),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:A}),s||this._globalListeners.set("mousemove",{handler:n=>this.pointerMove.next(n),options:A}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((n,o)=>{this._document.addEventListener(o,n.handler,n.options)})})}}stopDragging(t){this._activeDragInstances.update(i=>{let s=i.indexOf(t);return s>-1?(i.splice(s,1),[...i]):i}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances().indexOf(t)>-1}scrolled(t){let i=[this.scroll];return t&&t!==this._document&&i.push(new W(s=>this._ngZone.runOutsideAngular(()=>{let o=a=>{this._activeDragInstances().length&&s.next(a)};return t.addEventListener("scroll",o,!0),()=>{t.removeEventListener("scroll",o,!0)}}))),k(...i)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=t=>{this._activeDragInstances().length>0&&t.preventDefault()};_persistentTouchmoveListener=t=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))};_clearGlobalListeners(){this._globalListeners.forEach((t,i)=>{this._document.removeEventListener(i,t.handler,t.options)}),this._globalListeners.clear()}static \u0275fac=function(i){return new(i||r)};static \u0275prov=q({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),ve={dragStartThreshold:5,pointerDirectionChangeThreshold:5},lt=(()=>{class r{_document=h(X);_ngZone=h(O);_viewportRuler=h(Mt);_dragDropRegistry=h(me);constructor(){}createDrag(t,i=ve){return new st(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new rt(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=q({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),B=new w("CDK_DRAG_PARENT");var re=new w("CdkDragHandle"),Ve=(()=>{class r{element=h(L);_parentDrag=h(B,{optional:!0,skipSelf:!0});_stateChanges=new _;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._stateChanges.next(this)}_disabled=!1;constructor(){this._parentDrag?._addHandle(this)}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static \u0275fac=function(i){return new(i||r)};static \u0275dir=E({type:r,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",b]},features:[R([{provide:re,useExisting:r}]),N]})}return r})(),oe=new w("CDK_DRAG_CONFIG"),De="cdk-drag",ae=new w("CdkDropList"),Ge=(()=>{class r{element=h(L);dropContainer=h(ae,{optional:!0,skipSelf:!0});_ngZone=h(O);_viewContainerRef=h(Rt);_dir=h(Q,{optional:!0});_changeDetectorRef=h(Y);_selfHandle=h(re,{optional:!0,self:!0});_parentDrag=h(B,{optional:!0,skipSelf:!0});_destroyed=new _;static _dragInstances=[];_handles=new _t([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(t){this._disabled=t,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new m;released=new m;ended=new m;entered=new m;exited=new m;dropped=new m;moved=new W(t=>{let i=this._dragRef.moved.pipe(gt(s=>({source:this,pointerPosition:s.pointerPosition,event:s.event,delta:s.delta,distance:s.distance}))).subscribe(t);return()=>{i.unsubscribe()}});_injector=h(Pt);constructor(){let t=this.dropContainer,i=h(oe,{optional:!0}),s=h(lt);this._dragRef=s.createDrag(this.element,{dragStartThreshold:i&&i.dragStartThreshold!=null?i.dragStartThreshold:5,pointerDirectionChangeThreshold:i&&i.pointerDirectionChangeThreshold!=null?i.pointerDirectionChangeThreshold:5,zIndex:i?.zIndex}),this._dragRef.data=this,r._dragInstances.push(this),i&&this._assignDefaults(i),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this),t._dropListRef.beforeStarted.pipe(y(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(t){this._dragRef.setFreeDragPosition(t)}ngAfterViewInit(){bt(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(t){let i=t.rootElementSelector,s=t.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);let t=r._dragInstances.indexOf(this);t>-1&&r._dragInstances.splice(t,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(t){let i=this._handles.getValue();i.push(t),this._handles.next(i)}_removeHandle(t){let i=this._handles.getValue(),s=i.indexOf(t);s>-1&&(i.splice(s,1),this._handles.next(i))}_setPreviewTemplate(t){this._previewTemplate=t}_resetPreviewTemplate(t){t===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(t){this._placeholderTemplate=t}_resetPlaceholderTemplate(t){t===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let t=this.element.nativeElement,i=t;this.rootElementSelector&&(i=t.closest!==void 0?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||t)}_getBoundaryElement(){let t=this.boundaryElement;return t?typeof t=="string"?this.element.nativeElement.closest(t):D(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){let i=this._dir,s=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.scale=this.scale,t.dragStartDelay=typeof s=="object"&&s?s:J(s),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),i&&t.withDirection(i.value)}}),t.beforeStarted.pipe(ft(1)).subscribe(()=>{if(this._parentDrag){t.withParent(this._parentDrag._dragRef);return}let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains(De)){t.withParent(r._dragInstances.find(s=>s.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(t){t.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),t.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(t){let{lockAxis:i,dragStartDelay:s,constrainPosition:n,previewClass:o,boundaryElement:a,draggingDisabled:l,rootElementSelector:c,previewContainer:d}=t;this.disabled=l??!1,this.dragStartDelay=s||0,i&&(this.lockAxis=i),n&&(this.constrainPosition=n),o&&(this.previewClass=o),a&&(this.boundaryElement=a),c&&(this.rootElementSelector=c),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.pipe(vt(t=>{let i=t.map(s=>s.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),mt(t=>k(...t.map(i=>i._stateChanges.pipe(j(i))))),y(this._destroyed)).subscribe(t=>{let i=this._dragRef,s=t.element.nativeElement;t.disabled?i.disableHandle(s):i.enableHandle(s)})}static \u0275fac=function(i){return new(i||r)};static \u0275dir=E({type:r,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,s){i&2&&K("cdk-drag-disabled",s.disabled)("cdk-drag-dragging",s._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",b],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",xt]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[R([{provide:B,useExisting:r}]),N,wt]})}return r})(),Jt=new w("CdkDropListGroup");var Be=(()=>{class r{element=h(L);_changeDetectorRef=h(Y);_scrollDispatcher=h(Nt);_dir=h(Q,{optional:!0});_group=h(Jt,{optional:!0,skipSelf:!0});_destroyed=new _;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=h(Lt).getId("cdk-drop-list-");lockAxis;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=t}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;dropped=new m;entered=new m;exited=new m;sorted=new m;_unsortedItems=new Set;constructor(){let t=h(lt),i=h(oe,{optional:!0});this._dropListRef=t.createDropList(this.element),this._dropListRef.data=this,i&&this._assignDefaults(i),this._dropListRef.enterPredicate=(s,n)=>this.enterPredicate(s.data,n.data),this._dropListRef.sortPredicate=(s,n,o)=>this.sortPredicate(s,n.data,o.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),r._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,i)=>t._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let t=r._dropLists.indexOf(this);t>-1&&r._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe(j(this._dir.value),y(this._destroyed)).subscribe(i=>t.withDirection(i)),t.beforeStarted.subscribe(()=>{let i=Ct(this.connectedTo).map(s=>{if(typeof s=="string"){let n=r._dropLists.find(o=>o.id===s);return n}return s});if(this._group&&this._group._items.forEach(s=>{i.indexOf(s)===-1&&i.push(s)}),!this._scrollableParentsResolved){let s=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(n=>n.getElementRef().nativeElement);this._dropListRef.withScrollableParents(s),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let s=this.element.nativeElement.querySelector(this.elementContainerSelector);t.withElementContainer(s)}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=this.sortingDisabled,t.autoScrollDisabled=this.autoScrollDisabled,t.autoScrollStep=J(this.autoScrollStep,2),t.connectedTo(i.filter(s=>s&&s!==this).map(s=>s._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),k(t.receivingStarted,t.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(t){let{lockAxis:i,draggingDisabled:s,sortingDisabled:n,listAutoScrollDisabled:o,listOrientation:a}=t;this.disabled=s??!1,this.sortingDisabled=n??!1,this.autoScrollDisabled=o??!1,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}static \u0275fac=function(i){return new(i||r)};static \u0275dir=E({type:r,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,s){i&2&&(It("id",s.id),K("cdk-drop-list-disabled",s.disabled)("cdk-drop-list-dragging",s._dropListRef.isDragging())("cdk-drop-list-receiving",s._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",b],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",b],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",b],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[R([{provide:Jt,useValue:void 0},{provide:ae,useExisting:r}]),N]})}return r})();var we=new w("CdkDragPlaceholder"),Ue=(()=>{class r{templateRef=h(St);_drag=h(B,{optional:!0});data;constructor(){this._drag?._setPlaceholderTemplate(this)}ngOnDestroy(){this._drag?._resetPlaceholderTemplate(this)}static \u0275fac=function(i){return new(i||r)};static \u0275dir=E({type:r,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[R([{provide:we,useExisting:r}])]})}return r})();var Ze=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=Et({type:r});static \u0275inj=Dt({providers:[lt],imports:[Ft]})}return r})();export{ee as a,Ve as b,Ge as c,Be as d,Ue as e,Ze as f}; +import{A as Mt,B as Ft,y as Nt}from"./chunk-6BGAZ7SQ.js";import{N as kt,O as Ot,T as Lt,U as Q,i as I,m as M,o as x,q as Tt,u as J,v as Ct,x as D}from"./chunk-W5KNOAKV.js";import{$ as y,C as ut,D as k,Ea as m,Eb as Rt,Fa as O,Fb as $,Fc as R,Ja as L,L as ft,Mb as N,Sb as It,Sc as Y,Va as bt,Vb as K,Vc as b,Wc as xt,Z as j,_ as mt,ba as vt,e as P,ea as q,ed as X,fa as Dt,g as W,ha as w,j as _,k as _t,ka as h,m as pt,ob as St,sa as wt,t as gt,ub as yt,vb as Et,wb as E,za as Pt}from"./chunk-TEKHUYWQ.js";function Qt(r){let e=r.cloneNode(!0),t=e.querySelectorAll("[id]"),i=r.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s=i&&t<=s&&e>=n&&e<=o}function C(r,e,t){r.top+=e,r.bottom=r.top+r.height,r.left+=t,r.right=r.left+r.width}function Vt(r,e,t,i){let{top:s,right:n,bottom:o,left:a,width:l,height:c}=r,d=l*e,g=c*e;return i>s-g&&ia-d&&t{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:ot(t)})})}handleScroll(e){let t=x(e),i=this.positions.get(t);if(!i)return null;let s=i.scrollPosition,n,o;if(t===this._document){let c=this.getViewportScrollPosition();n=c.top,o=c.left}else n=t.scrollTop,o=t.scrollLeft;let a=s.top-n,l=s.left-o;return this.positions.forEach((c,d)=>{c.clientRect&&t!==d&&t.contains(d)&&C(c.clientRect,a,l)}),s.top=n,s.left=o,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function te(r,e){let t=r.rootNodes;if(t.length===1&&t[0].nodeType===e.ELEMENT_NODE)return t[0];let i=e.createElement("div");return t.forEach(s=>i.appendChild(s)),i}function at(r,e,t){for(let i in e)if(e.hasOwnProperty(i)){let s=e[i];s?r.setProperty(i,s,t?.has(i)?"important":""):r.removeProperty(i)}return r}function S(r,e){let t=e?"":"none";at(r.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function Gt(r,e,t){at(r.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},t)}function z(r,e){return e&&e!="none"?r+" "+e:r}function Bt(r,e){r.style.width=`${e.width}px`,r.style.height=`${e.height}px`,r.style.transform=V(e.left,e.top)}function V(r,e){return`translate3d(${Math.round(r)}px, ${Math.round(e)}px, 0)`}function Ut(r){let e=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*e}function _e(r){let e=getComputedStyle(r),t=tt(e,"transition-property"),i=t.find(a=>a==="transform"||a==="all");if(!i)return 0;let s=t.indexOf(i),n=tt(e,"transition-duration"),o=tt(e,"transition-delay");return Ut(n[s])+Ut(o[s])}function tt(r,e){return r.getPropertyValue(e).split(",").map(i=>i.trim())}var pe=new Set(["position"]),it=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(e,t,i,s,n,o,a,l,c){this._document=e,this._rootElement=t,this._direction=i,this._initialDomRect=s,this._previewTemplate=n,this._previewClass=o,this._pickupPositionOnPage=a,this._initialTransform=l,this._zIndex=c}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),Zt(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(e){this._preview.style.transform=e}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e)}getTransitionDuration(){return _e(this._preview)}addEventListener(e,t){this._preview.addEventListener(e,t)}removeEventListener(e,t){this._preview.removeEventListener(e,t)}_createPreview(){let e=this._previewTemplate,t=this._previewClass,i=e?e.template:null,s;if(i&&e){let n=e.matchSize?this._initialDomRect:null,o=e.viewContainer.createEmbeddedView(i,e.context);o.detectChanges(),s=te(o,this._document),this._previewEmbeddedView=o,e.matchSize?Bt(s,n):s.style.transform=V(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=Qt(this._rootElement),Bt(s,this._initialDomRect),this._initialTransform&&(s.style.transform=this._initialTransform);return at(s.style,{"pointer-events":"none",margin:Zt(s)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},pe),S(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("popover","manual"),s.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(n=>s.classList.add(n)):s.classList.add(t)),s}};function Zt(r){return"showPopover"in r}var Wt=I({passive:!0}),F=I({passive:!1}),jt=I({passive:!1,capture:!0}),ge=800,qt=new Set(["position"]),st=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_anchor;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=$(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new _;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=P.EMPTY;_pointerUpSubscription=P.EMPTY;_scrollSubscription=P.EMPTY;_resizeSubscription=P.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>S(t,e)))}_disabled=!1;beforeStarted=new _;started=new _;released=new _;ended=new _;entered=new _;exited=new _;dropped=new _;moved=this._moveEvents;data;constrainPosition;constructor(e,t,i,s,n,o){this._config=t,this._document=i,this._ngZone=s,this._viewportRuler=n,this._dragDropRegistry=o,this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new H(i),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>D(i)),this._handles.forEach(i=>S(i,this.disabled)),this._toggleNativeDragInteractions();let t=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&t.add(i)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){let t=D(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,F),t.addEventListener("touchstart",this._pointerDown,Wt),t.addEventListener("dragstart",this._nativeDragStart,F)}),this._initialTransform=void 0,this._rootElement=t),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?D(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),S(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),S(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){let e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){let e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",Kt,jt)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)};_pointerMove=e=>{let t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging()){let s=Math.abs(t.x-this._pickupPositionOnPage.x),n=Math.abs(t.y-this._pickupPositionOnPage.y);if(s+n>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),l=this._dropContainer;if(!a){this._endDragSequence(e);return}(!l||!l.isDragging()&&!l.isReceiving())&&(e.cancelable&&e.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(e)))}return}e.cancelable&&e.preventDefault();let i=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,t);else{let s=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,n=this._activeTransform;n.x=i.x-s.x+this._passiveTransform.x,n.y=i.y-s.y+this._passiveTransform.y,this._applyRootElementTransform(n.x,n.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:e,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})};_pointerUp=e=>{this._endDragSequence(e)};_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){T(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let t=this._getShadowRoot(),i=this._dropContainer;if(t&&this._ngZone.runOutsideAngular(()=>{t.addEventListener("selectstart",Kt,jt)}),i){let s=this._rootElement,n=s.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");n.insertBefore(a,s),this._initialTransform=s.style.transform||"",this._preview=new it(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(n,t)),Gt(s,!1,qt),this._document.body.appendChild(n.replaceChild(o,s)),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();let i=this.isDragging(),s=T(t),n=!s&&t.button!==0,o=this._rootElement,a=x(t),l=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+ge>Date.now(),c=s?Ot(t):kt(t);if(a&&a.draggable&&t.type==="mousedown"&&t.preventDefault(),i||n||l||c)return;if(this._handles.length){let v=o.style;this._rootElementTapHighlight=v.webkitTapHighlightColor||"",v.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(v=>this._updateOnScroll(v)),this._boundaryElement&&(this._boundaryRect=ot(this._boundaryElement));let d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,t);let g=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:g.x,y:g.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){Gt(this._rootElement,!0,qt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let t=this._dropContainer,i=t.getItemIndex(this),s=this._getPointerPositionOnPage(e),n=this._getDragDistance(s),o=t._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:n,dropPoint:s,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:n,dropPoint:s,event:e}),t.drop(this,i,this._initialIndex,this._initialContainer,o,n,s,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:s}){let n=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=n,this._dropContainer.enter(this,e,t,n===this._initialContainer&&n.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:n,currentIndex:n.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,s),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let e=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);let t=this._preview.getTransitionDuration();return t===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let s=o=>{(!o||this._preview&&x(o)===this._preview.element&&o.propertyName==="transform")&&(this._preview?.removeEventListener("transitionend",s),i(),clearTimeout(n))},n=setTimeout(s,t*1.5);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){let e=this._placeholderTemplate,t=e?e.template:null,i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=te(this._placeholderRef,this._document)):i=Qt(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t,i){let s=t===this._rootElement?null:t,n=s?s.getBoundingClientRect():e,o=T(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),l=o.pageX-n.left-a.left,c=o.pageY-n.top-a.top;return{x:n.left-e.left+l,y:n.top-e.top+c}}_getPointerPositionOnPage(e){let t=this._getViewportScrollPosition(),i=T(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,s=i.pageX-t.left,n=i.pageY-t.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let a=this._ownerSVGElement.createSVGPoint();return a.x=s,a.y=n,a.matrixTransform(o.inverse())}}return{x:s,y:n}}_getConstrainedPointerPosition(e){let t=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:s}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if(this.lockAxis==="x"||t==="x"?s=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||t==="y")&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:n,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),d=a.top+o,g=a.bottom-(c-o),v=a.left+n,U=a.right-(l-n);i=$t(i,v,U),s=$t(s,d,g)}return{x:i,y:s}}_updatePointerDirectionDelta(e){let{x:t,y:i}=e,s=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-n.x),a=Math.abs(i-n.y);return o>this._config.pointerDirectionChangeThreshold&&(s.x=t>n.x?1:-1,n.x=t),a>this._config.pointerDirectionChangeThreshold&&(s.y=i>n.y?1:-1,n.y=i),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,S(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,F),e.removeEventListener("touchstart",this._pointerDown,Wt),e.removeEventListener("dragstart",this._nativeDragStart,F)}_applyRootElementTransform(e,t){let i=1/this.scale,s=V(e*i,t*i),n=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=n.transform&&n.transform!="none"?n.transform:""),n.transform=z(s,this._initialTransform)}_applyPreviewTransform(e,t){let i=this._previewTemplate?.template?void 0:this._initialTransform,s=V(e,t);this._preview.setTransform(z(s,i))}_getDragDistance(e){let t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(e===0&&t===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(s.width===0&&s.height===0||i.width===0&&i.height===0)return;let n=s.left-i.left,o=i.right-s.right,a=s.top-i.top,l=i.bottom-s.bottom;s.width>i.width?(n>0&&(e+=n),o>0&&(e-=o)):e=0,s.height>i.height?(a>0&&(t+=a),l>0&&(t-=l)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){let t=this.dragStartDelay;return typeof t=="number"?t:T(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){let t=this._parentPositions.handleScroll(e);if(t){let i=x(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&C(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=M(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){let i=this._previewContainer||"global";if(i==="parent")return e;if(i==="global"){let s=this._document;return t||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return D(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=e=>{if(this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&e.preventDefault()}else this.disabled||e.preventDefault()};_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}};function $t(r,e,t){return Math.max(e,Math.min(t,r))}function T(r){return r.type[0]==="t"}function Kt(r){r.preventDefault()}function ee(r,e,t){let i=Yt(e,r.length-1),s=Yt(t,r.length-1);if(i===s)return;let n=r[i],o=s0)return null;let a=this.orientation==="horizontal",l=n.findIndex(u=>u.drag===e),c=n[o],d=n[l].clientRect,g=c.clientRect,v=l>o?1:-1,U=this._getItemOffsetPx(d,g,v),le=this._getSiblingOffsetPx(l,n,v),ce=n.slice();return ee(n,l,o),n.forEach((u,he)=>{if(ce[he]===u)return;let ct=u.drag===e,Z=ct?U:le,ht=ct?e.getPlaceholderElement():u.drag.getRootElement();u.offset+=Z;let dt=Math.round(u.offset*(1/u.drag.scale));a?(ht.style.transform=z(`translate3d(${dt}px, 0, 0)`,u.initialTransform),C(u.clientRect,0,Z)):(ht.style.transform=z(`translate3d(0, ${dt}px, 0)`,u.initialTransform),C(u.clientRect,Z,0))}),this._previousSwap.overlaps=et(g,t,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?s.x:s.y,{previousIndex:l,currentIndex:o}}enter(e,t,i,s){let n=s==null||s<0?this._getItemIndexFromPointerPosition(e,t,i):s,o=this._activeDraggables,a=o.indexOf(e),l=e.getPlaceholderElement(),c=o[n];if(c===e&&(c=o[n+1]),!c&&(n==null||n===-1||n-1&&o.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){let d=c.getRootElement();d.parentElement.insertBefore(l,d),o.splice(n,0,e)}else this._element.appendChild(l),o.push(e);l.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables?.forEach(e=>{let t=e.getRootElement();if(t){let i=this._itemPositions.find(s=>s.drag===e)?.initialTransform;t.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===e)}updateOnScroll(e,t){this._itemPositions.forEach(({clientRect:i})=>{C(i,e,t)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(e){this._element=e}_cacheItemPositions(){let e=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(t=>{let i=t.getVisibleElement();return{drag:t,offset:0,initialTransform:i.style.transform||"",clientRect:ot(i)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_getItemOffsetPx(e,t,i){let s=this.orientation==="horizontal",n=s?t.left-e.left:t.top-e.top;return i===-1&&(n+=s?t.width-e.width:t.height-e.height),n}_getSiblingOffsetPx(e,t,i){let s=this.orientation==="horizontal",n=t[e].clientRect,o=t[e+i*-1],a=n[s?"width":"height"]*i;if(o){let l=s?"left":"top",c=s?"right":"bottom";i===-1?a-=o.clientRect[l]-n[c]:a+=n[l]-o.clientRect[c]}return a}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;let i=this._itemPositions,s=this.orientation==="horizontal";if(i[0].drag!==this._activeDraggables[0]){let o=i[i.length-1].clientRect;return s?e>=o.right:t>=o.bottom}else{let o=i[0].clientRect;return s?e<=o.left:t<=o.top}}_getItemIndexFromPointerPosition(e,t,i,s){let n=this.orientation==="horizontal",o=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===e)return!1;if(s){let c=n?s.x:s.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return n?t>=Math.floor(l.left)&&t=Math.floor(l.top)&&il?d.after(c):d.before(c),ee(this._activeItems,l,n);let g=this._getRootNode().elementFromPoint(t,i);return o.deltaX=s.x,o.deltaY=s.y,o.drag=a,o.overlaps=d===g||d.contains(g),{previousIndex:l,currentIndex:n}}enter(e,t,i,s){let n=s==null||s<0?this._getItemIndexFromPointerPosition(e,t,i):s;n===-1&&(n=this._getClosestItemIndexToPointer(e,t,i));let o=this._activeItems[n],a=this._activeItems.indexOf(e);a>-1&&this._activeItems.splice(a,1),o&&!this._dragDropRegistry.isDragging(o)?(this._activeItems.splice(n,0,e),o.getRootElement().before(e.getPlaceholderElement())):(this._activeItems.push(e),this._element.appendChild(e.getPlaceholderElement()))}withItems(e){this._activeItems=e.slice()}withSortPredicate(e){this._sortPredicate=e}reset(){let e=this._element,t=this._previousSwap;for(let i=this._relatedNodes.length-1;i>-1;i--){let[s,n]=this._relatedNodes[i];s.parentNode===e&&s.nextSibling!==n&&(n===null?e.appendChild(s):n.parentNode===e&&e.insertBefore(s,n))}this._relatedNodes=[],this._activeItems=[],t.drag=null,t.deltaX=t.deltaY=0,t.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(e){return this._activeItems.indexOf(e)}updateOnScroll(){this._activeItems.forEach(e=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})}withElementContainer(e){e!==this._element&&(this._element=e,this._rootNode=void 0)}_getItemIndexFromPointerPosition(e,t,i){let s=this._getRootNode().elementFromPoint(Math.floor(t),Math.floor(i)),n=s?this._activeItems.findIndex(o=>{let a=o.getRootElement();return s===a||a.contains(s)}):-1;return n===-1||!this._sortPredicate(n,e)?-1:n}_getRootNode(){return this._rootNode||(this._rootNode=M(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(e,t,i){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let s=1/0,n=-1;for(let o=0;o!0;sortPredicate=()=>!0;beforeStarted=new _;entered=new _;exited=new _;dropped=new _;sorted=new _;receivingStarted=new _;receivingStopped=new _;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=P.EMPTY;_verticalScrollDirection=f.NONE;_horizontalScrollDirection=p.NONE;_scrollNode;_stopScrollTimers=new _;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(e,t,i,s,n){this._dragDropRegistry=t,this._ngZone=s,this._viewportRuler=n;let o=this.element=D(e);this._document=i,this.withOrientation("vertical").withElementContainer(o),t.registerDropContainer(this),this._parentPositions=new H(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,s){this._draggingStarted(),s==null&&this.sortingDisabled&&(s=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,i,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,s,n,o,a,l={}){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:s,isPointerOverContainer:n,distance:o,dropPoint:a,event:l})}withItems(e){let t=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(t.filter(s=>s.isDragging()).every(s=>e.indexOf(s)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._direction=e,this._sortStrategy instanceof G&&(this._sortStrategy.direction=e),this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){if(e==="mixed")this._sortStrategy=new nt(this._document,this._dragDropRegistry);else{let t=new G(this._dragDropRegistry);t.direction=this._direction,t.orientation=e,this._sortStrategy=t}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((t,i)=>this.sortPredicate(t,i,this)),this}withScrollableParents(e){let t=this._container;return this._scrollableElements=e.indexOf(t)===-1?[t,...e]:e.slice(),this}withElementContainer(e){if(e===this._container)return this;let t=D(this.element),i=this._scrollableElements.indexOf(this._container),s=this._scrollableElements.indexOf(e);return i>-1&&this._scrollableElements.splice(i,1),s>-1&&this._scrollableElements.splice(s,1),this._sortStrategy&&this._sortStrategy.withElementContainer(e),this._cachedShadowRoot=null,this._scrollableElements.unshift(e),this._container=e,this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,s){if(this.sortingDisabled||!this._domRect||!Vt(this._domRect,Xt,t,i))return;let n=this._sortStrategy.sort(e,t,i,s);n&&this.sorted.next({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,s=f.NONE,n=p.NONE;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||i||Vt(o.clientRect,Xt,e,t)&&([s,n]=ue(a,o.clientRect,this._direction,e,t),(s||n)&&(i=a))}),!s&&!n){let{width:o,height:a}=this._viewportRuler.getViewportSize(),l={width:o,height:a,top:0,right:o,bottom:a,left:0};s=se(l,t),n=ne(l,e),i=window}i&&(s!==this._verticalScrollDirection||n!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=n,this._scrollNode=i,(s||n)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let e=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let e=this._container.style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),ut(0,pt).pipe(y(this._stopScrollTimers)).subscribe(()=>{let e=this._scrollNode,t=this.autoScrollStep;this._verticalScrollDirection===f.UP?e.scrollBy(0,-t):this._verticalScrollDirection===f.DOWN&&e.scrollBy(0,t),this._horizontalScrollDirection===p.LEFT?e.scrollBy(-t,0):this._horizontalScrollDirection===p.RIGHT&&e.scrollBy(t,0)})};_isOverContainer(e,t){return this._domRect!=null&&et(this._domRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(s=>s._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._domRect||!et(this._domRect,t,i)||!this.enterPredicate(e,this))return!1;let s=this._getShadowRoot().elementFromPoint(t,i);return s?s===this._container||this._container.contains(s):!1}_startReceiving(e,t){let i=this._activeSiblings;!i.has(e)&&t.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:t}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){let t=this._parentPositions.handleScroll(e);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let e=M(this._container);this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let e=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}};function se(r,e){let{top:t,bottom:i,height:s}=r,n=s*ie;return e>=t-n&&e<=t+n?f.UP:e>=i-n&&e<=i+n?f.DOWN:f.NONE}function ne(r,e){let{left:t,right:i,width:s}=r,n=s*ie;return e>=t-n&&e<=t+n?p.LEFT:e>=i-n&&e<=i+n?p.RIGHT:p.NONE}function ue(r,e,t,i,s){let n=se(e,s),o=ne(e,i),a=f.NONE,l=p.NONE;if(n){let c=r.scrollTop;n===f.UP?c>0&&(a=f.UP):r.scrollHeight-c>r.clientHeight&&(a=f.DOWN)}if(o){let c=r.scrollLeft;t==="rtl"?o===p.RIGHT?c<0&&(l=p.RIGHT):r.scrollWidth+c>r.clientWidth&&(l=p.LEFT):o===p.LEFT?c>0&&(l=p.LEFT):r.scrollWidth-c>r.clientWidth&&(l=p.RIGHT)}return[a,l]}var A=I({passive:!1,capture:!0}),fe=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=yt({type:r,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(i,s){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"],encapsulation:2,changeDetection:0})}return r})(),me=(()=>{class r{_ngZone=h(O);_document=h(X);_styleLoader=h(Tt);_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=$([]);_globalListeners=new Map;_draggingPredicate=t=>t.isDragging();pointerMove=new _;pointerUp=new _;scroll=new _;constructor(){}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,A)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),this._dragInstances.size===0&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,A)}startDragging(t,i){if(!(this._activeDragInstances().indexOf(t)>-1)&&(this._styleLoader.load(fe),this._activeDragInstances.update(s=>[...s,t]),this._activeDragInstances().length===1)){let s=i.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:n=>this.pointerUp.next(n),options:!0}).set("scroll",{handler:n=>this.scroll.next(n),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:A}),s||this._globalListeners.set("mousemove",{handler:n=>this.pointerMove.next(n),options:A}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((n,o)=>{this._document.addEventListener(o,n.handler,n.options)})})}}stopDragging(t){this._activeDragInstances.update(i=>{let s=i.indexOf(t);return s>-1?(i.splice(s,1),[...i]):i}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances().indexOf(t)>-1}scrolled(t){let i=[this.scroll];return t&&t!==this._document&&i.push(new W(s=>this._ngZone.runOutsideAngular(()=>{let o=a=>{this._activeDragInstances().length&&s.next(a)};return t.addEventListener("scroll",o,!0),()=>{t.removeEventListener("scroll",o,!0)}}))),k(...i)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=t=>{this._activeDragInstances().length>0&&t.preventDefault()};_persistentTouchmoveListener=t=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))};_clearGlobalListeners(){this._globalListeners.forEach((t,i)=>{this._document.removeEventListener(i,t.handler,t.options)}),this._globalListeners.clear()}static \u0275fac=function(i){return new(i||r)};static \u0275prov=q({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),ve={dragStartThreshold:5,pointerDirectionChangeThreshold:5},lt=(()=>{class r{_document=h(X);_ngZone=h(O);_viewportRuler=h(Mt);_dragDropRegistry=h(me);constructor(){}createDrag(t,i=ve){return new st(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new rt(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=q({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),B=new w("CDK_DRAG_PARENT");var re=new w("CdkDragHandle"),Ve=(()=>{class r{element=h(L);_parentDrag=h(B,{optional:!0,skipSelf:!0});_stateChanges=new _;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._stateChanges.next(this)}_disabled=!1;constructor(){this._parentDrag?._addHandle(this)}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static \u0275fac=function(i){return new(i||r)};static \u0275dir=E({type:r,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",b]},features:[R([{provide:re,useExisting:r}]),N]})}return r})(),oe=new w("CDK_DRAG_CONFIG"),De="cdk-drag",ae=new w("CdkDropList"),Ge=(()=>{class r{element=h(L);dropContainer=h(ae,{optional:!0,skipSelf:!0});_ngZone=h(O);_viewContainerRef=h(Rt);_dir=h(Q,{optional:!0});_changeDetectorRef=h(Y);_selfHandle=h(re,{optional:!0,self:!0});_parentDrag=h(B,{optional:!0,skipSelf:!0});_destroyed=new _;static _dragInstances=[];_handles=new _t([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(t){this._disabled=t,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new m;released=new m;ended=new m;entered=new m;exited=new m;dropped=new m;moved=new W(t=>{let i=this._dragRef.moved.pipe(gt(s=>({source:this,pointerPosition:s.pointerPosition,event:s.event,delta:s.delta,distance:s.distance}))).subscribe(t);return()=>{i.unsubscribe()}});_injector=h(Pt);constructor(){let t=this.dropContainer,i=h(oe,{optional:!0}),s=h(lt);this._dragRef=s.createDrag(this.element,{dragStartThreshold:i&&i.dragStartThreshold!=null?i.dragStartThreshold:5,pointerDirectionChangeThreshold:i&&i.pointerDirectionChangeThreshold!=null?i.pointerDirectionChangeThreshold:5,zIndex:i?.zIndex}),this._dragRef.data=this,r._dragInstances.push(this),i&&this._assignDefaults(i),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this),t._dropListRef.beforeStarted.pipe(y(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(t){this._dragRef.setFreeDragPosition(t)}ngAfterViewInit(){bt(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(t){let i=t.rootElementSelector,s=t.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);let t=r._dragInstances.indexOf(this);t>-1&&r._dragInstances.splice(t,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(t){let i=this._handles.getValue();i.push(t),this._handles.next(i)}_removeHandle(t){let i=this._handles.getValue(),s=i.indexOf(t);s>-1&&(i.splice(s,1),this._handles.next(i))}_setPreviewTemplate(t){this._previewTemplate=t}_resetPreviewTemplate(t){t===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(t){this._placeholderTemplate=t}_resetPlaceholderTemplate(t){t===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let t=this.element.nativeElement,i=t;this.rootElementSelector&&(i=t.closest!==void 0?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||t)}_getBoundaryElement(){let t=this.boundaryElement;return t?typeof t=="string"?this.element.nativeElement.closest(t):D(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){let i=this._dir,s=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.scale=this.scale,t.dragStartDelay=typeof s=="object"&&s?s:J(s),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),i&&t.withDirection(i.value)}}),t.beforeStarted.pipe(ft(1)).subscribe(()=>{if(this._parentDrag){t.withParent(this._parentDrag._dragRef);return}let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains(De)){t.withParent(r._dragInstances.find(s=>s.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(t){t.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),t.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(t){let{lockAxis:i,dragStartDelay:s,constrainPosition:n,previewClass:o,boundaryElement:a,draggingDisabled:l,rootElementSelector:c,previewContainer:d}=t;this.disabled=l??!1,this.dragStartDelay=s||0,i&&(this.lockAxis=i),n&&(this.constrainPosition=n),o&&(this.previewClass=o),a&&(this.boundaryElement=a),c&&(this.rootElementSelector=c),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.pipe(vt(t=>{let i=t.map(s=>s.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),mt(t=>k(...t.map(i=>i._stateChanges.pipe(j(i))))),y(this._destroyed)).subscribe(t=>{let i=this._dragRef,s=t.element.nativeElement;t.disabled?i.disableHandle(s):i.enableHandle(s)})}static \u0275fac=function(i){return new(i||r)};static \u0275dir=E({type:r,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,s){i&2&&K("cdk-drag-disabled",s.disabled)("cdk-drag-dragging",s._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",b],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",xt]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[R([{provide:B,useExisting:r}]),N,wt]})}return r})(),Jt=new w("CdkDropListGroup");var Be=(()=>{class r{element=h(L);_changeDetectorRef=h(Y);_scrollDispatcher=h(Nt);_dir=h(Q,{optional:!0});_group=h(Jt,{optional:!0,skipSelf:!0});_destroyed=new _;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=h(Lt).getId("cdk-drop-list-");lockAxis;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=t}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;dropped=new m;entered=new m;exited=new m;sorted=new m;_unsortedItems=new Set;constructor(){let t=h(lt),i=h(oe,{optional:!0});this._dropListRef=t.createDropList(this.element),this._dropListRef.data=this,i&&this._assignDefaults(i),this._dropListRef.enterPredicate=(s,n)=>this.enterPredicate(s.data,n.data),this._dropListRef.sortPredicate=(s,n,o)=>this.sortPredicate(s,n.data,o.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),r._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,i)=>t._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let t=r._dropLists.indexOf(this);t>-1&&r._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe(j(this._dir.value),y(this._destroyed)).subscribe(i=>t.withDirection(i)),t.beforeStarted.subscribe(()=>{let i=Ct(this.connectedTo).map(s=>{if(typeof s=="string"){let n=r._dropLists.find(o=>o.id===s);return n}return s});if(this._group&&this._group._items.forEach(s=>{i.indexOf(s)===-1&&i.push(s)}),!this._scrollableParentsResolved){let s=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(n=>n.getElementRef().nativeElement);this._dropListRef.withScrollableParents(s),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let s=this.element.nativeElement.querySelector(this.elementContainerSelector);t.withElementContainer(s)}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=this.sortingDisabled,t.autoScrollDisabled=this.autoScrollDisabled,t.autoScrollStep=J(this.autoScrollStep,2),t.connectedTo(i.filter(s=>s&&s!==this).map(s=>s._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),k(t.receivingStarted,t.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(t){let{lockAxis:i,draggingDisabled:s,sortingDisabled:n,listAutoScrollDisabled:o,listOrientation:a}=t;this.disabled=s??!1,this.sortingDisabled=n??!1,this.autoScrollDisabled=o??!1,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}static \u0275fac=function(i){return new(i||r)};static \u0275dir=E({type:r,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,s){i&2&&(It("id",s.id),K("cdk-drop-list-disabled",s.disabled)("cdk-drop-list-dragging",s._dropListRef.isDragging())("cdk-drop-list-receiving",s._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",b],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",b],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",b],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[R([{provide:Jt,useValue:void 0},{provide:ae,useExisting:r}]),N]})}return r})();var we=new w("CdkDragPlaceholder"),Ue=(()=>{class r{templateRef=h(St);_drag=h(B,{optional:!0});data;constructor(){this._drag?._setPlaceholderTemplate(this)}ngOnDestroy(){this._drag?._resetPlaceholderTemplate(this)}static \u0275fac=function(i){return new(i||r)};static \u0275dir=E({type:r,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[R([{provide:we,useExisting:r}])]})}return r})();var Ze=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=Et({type:r});static \u0275inj=Dt({providers:[lt],imports:[Ft]})}return r})();export{ee as a,Ve as b,Ge as c,Be as d,Ue as e,Ze as f}; diff --git a/chunk-AAJZ7MIE.js b/chunk-AAJZ7MIE.js deleted file mode 100644 index 7b063962..00000000 --- a/chunk-AAJZ7MIE.js +++ /dev/null @@ -1 +0,0 @@ -import{a as Pe,b as Me,c as be,d as Ee}from"./chunk-F2GYQZHU.js";import{a as ge,b as _e,c as Ce,d as xe}from"./chunk-2E7FYHXW.js";import{b as F}from"./chunk-UOTKRQ63.js";import"./chunk-BJXILAOS.js";import{a as ve}from"./chunk-5FQQWOZL.js";import{a as he}from"./chunk-AC7KYN3P.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import{c as M,d as le,f as se,h as de}from"./chunk-NWAJWWA3.js";import"./chunk-XIUDFJWJ.js";import{a as fe}from"./chunk-TZR6QHL3.js";import{a as ce}from"./chunk-KOL7ATC4.js";import{d as pe}from"./chunk-5DAHKZ7F.js";import{a as w}from"./chunk-A3N3AUUJ.js";import{G as re,I as me}from"./chunk-4FWBEGAE.js";import{c as ye,g as Se,h as Te,k as Oe}from"./chunk-RUSPURVH.js";import"./chunk-HGOTYYGI.js";import"./chunk-2K6IALUF.js";import{g as S,h as U,p as T}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import{a as Z,b as ee,c as te,e as ne,f as ie,g as oe,l as ae}from"./chunk-PAP2P7QR.js";import{i as ue}from"./chunk-EC6LD5KM.js";import{a as O,h as J,i as Y,m as q,p as K,s as Q,x as X}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as B,F as g,Ha as A,Hc as G,Ia as I,Jc as c,Kc as y,Lc as f,Nb as u,Tb as l,Yb as C,Yd as z,_b as R,ac as k,ba as V,bc as n,cc as i,dc as p,hc as $,je as H,ka as s,kc as b,lb as o,mc as v,pe as W,t as P,ta as N,u as L,ua as j,ub as _,xc as d,yc as x,zc as E}from"./chunk-TEKHUYWQ.js";var we=(()=>{class t{route=s(S);script=s(ve);constructor(){this.route.data.pipe(g(({schema:e})=>!!e),P(({schema:e})=>e),w()).subscribe(e=>{let a="application/ld+json",r=JSON.stringify(e,null,2);this.script.addScript({type:a},r)})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=_({type:t,selectors:[["devmx-event-feature-page"]],decls:2,vars:0,template:function(a,r){a&1&&(n(0,"devmx-app-shell"),p(1,"router-outlet"),i())},dependencies:[T,U,F,ce],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();var Ie=[];var Re=t=>de(s(M),t.params);var Be=t=>{let m=t.parent?t.parent.params:t.params;return se(s(M),m)};var Ve=t=>({active:t}),ke=(()=>{class t{loved=I(!1);loveChange=A();disabled=I(!1);isDisabled(){return this.disabled()===""?!0:this.disabled()}onClick(){this.loveChange.emit(!this.loved())}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=_({type:t,selectors:[["devmx-heart-button"]],inputs:{loved:[1,"loved"],disabled:[1,"disabled"]},outputs:{loveChange:"loveChange"},decls:2,vars:4,consts:[["mat-icon-button","",3,"click","disabled","ngClass"],["name","heart"]],template:function(a,r){a&1&&(n(0,"button",0),b("click",function(){return r.onClick()}),p(1,"devmx-icon",1),i()),a&2&&l("disabled",r.disabled())("ngClass",G(2,Ve,r.loved()))},dependencies:[re,O,z],encapsulation:2})}return t})();function Ne(t,m){if(t&1&&p(0,"devmx-maps-button",1),t&2){let e=v();l("data",e)}}function je(t,m){if(t&1&&p(0,"devmx-youtube-button",1),t&2){let e=v();l("data",e)}}function Ae(t,m){if(t&1&&(n(0,"article"),p(1,"devmx-markdown-view",10),i()),t&2){let e=v();o(),l("content",e.description)}}function $e(t,m){if(t&1&&(n(0,"mat-list-item"),p(1,"devmx-icon",11),n(2,"div",12),d(3),i(),n(4,"div",13),d(5),i(),p(6,"devmx-heart-button",14),i()),t&2){let e=m.$implicit;o(3),x(e.title),o(2),x(e.owner.displayName),o(),l("loved",!1)}}function Ge(t,m){if(t&1&&(n(0,"mat-list"),B(1,$e,7,3,"mat-list-item",null,R),i()),t&2){let e=v(2);o(),k(e.presentations)}}function ze(t,m){t&1&&(n(0,"mat-tab",8),u(1,Ge,3,0,"ng-template",7),i())}function He(t,m){if(t&1&&(n(0,"mat-list-item"),p(1,"devmx-icon",15),n(2,"div",12),d(3),i()()),t&2){let e=m.$implicit;o(3),x(e.displayName)}}function We(t,m){if(t&1&&B(0,He,4,1,"mat-list-item",null,R),t&2){let e=v(2);k(e.leaders)}}function Ue(t,m){if(t&1&&(n(0,"mat-list")(1,"mat-list-item"),p(2,"devmx-icon",15),n(3,"div",12),d(4),i()(),u(5,We,2,0),i()),t&2){let e=v();o(4),x(e.owner.displayName),o(),C(e.leaders.length?5:-1)}}function Je(t,m){if(t&1){let e=$();n(0,"header")(1,"hgroup")(2,"h1"),d(3),i(),n(4,"h3")(5,"span")(6,"time",0),c(7,"date"),d(8),c(9,"date"),i()(),n(10,"span"),d(11," das "),i(),n(12,"time",0),c(13,"date"),d(14),c(15,"date"),i(),n(16,"span"),d(17," at\xE9 "),i(),n(18,"time",0),c(19,"date"),d(20),c(21,"date"),i()()(),n(22,"nav"),p(23,"devmx-calendar-button",1),u(24,Ne,1,1,"devmx-maps-button",1),c(25,"showEventAddress"),u(26,je,1,1,"devmx-youtube-button",1),c(27,"showEventLink"),p(28,"devmx-whats-app-button",1),i()(),n(29,"section",2)(30,"form",3)(31,"devmx-rsvp-button",4),b("statusChange",function(){N(e);let r=v();return j(r.onStatusChange())}),i()(),n(32,"mat-tab-group",5)(33,"mat-tab",6),u(34,Ae,2,1,"ng-template",7),i(),u(35,ze,2,0,"mat-tab",8),n(36,"mat-tab",9),u(37,Ue,6,2,"ng-template",7),i()()()}if(t&2){let e=m,a=v();o(3),x(e.title),o(3),l("dateTime",f(7,13,e.date,"longDate")),o(2),E(" ",f(9,16,e.date,"longDate")," "),o(4),l("dateTime",f(13,19,e.start,"shortTime")),o(2),E(" ",f(15,22,e.start,"shortTime"),"h "),o(4),l("dateTime",f(19,25,e.end,"shortTime")),o(2),E(" ",f(21,28,e.end,"shortTime"),"h "),o(3),l("data",e),o(),C(y(25,31,e.format)&&e.address?24:-1),o(2),C(y(27,33,e.format)&&e.link?26:-1),o(2),l("data",e),o(2),l("formGroup",a.form),o(5),C(e.presentations.length?35:-1)}}var De=(()=>{class t{authFacade=s(fe);rsvpFacade=s(le);route=s(S);event$=this.route.data.pipe(g(({page:e})=>!!e),P(({page:e})=>e),V(e=>this.setRSVPEvent(e.id)));form=new Oe;constructor(){if(localStorage.getItem("accessToken")){this.authFacade.load();let e=this.authFacade.auth$.pipe(g(r=>!!r),P(r=>r.id)),a=this.rsvpFacade.response$.pipe(g(r=>r.length>0));L([e,a]).pipe(w()).subscribe(([r,h])=>{let D=h.find(Le=>Le.user.id===r);D&&this.setRSVPStatus(D)})}}setRSVPEvent=e=>{this.form.patchValue({event:e}),this.rsvpFacade.loadConfirmed(e)};setRSVPStatus({status:e}){this.form.patchValue({status:e},{emitEvent:!1})}onStatusChange(){this.form.valid&&this.rsvpFacade.create(this.form.getRawValue())}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=_({type:t,selectors:[["devmx-event-page"]],decls:2,vars:3,consts:[[3,"dateTime"],[3,"data"],[1,"event-page-content"],[1,"rsvp-button",3,"formGroup"],["formControlName","status",1,"rsvp-button",3,"statusChange"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Descri\xE7\xE3o"],["matTabContent",""],["label","Agenda"],["label","Organizadores"],[3,"content"],["matListItemIcon","","name","presentation"],["matListItemTitle",""],["matListItemLine",""],["matListItemMeta","","disabled","",3,"loved"],["matListItemIcon","","name","user-circle"]],template:function(a,r){if(a&1&&(u(0,Je,38,35),c(1,"async")),a&2){let h;C((h=y(1,1,r.event$))?0:-1,h)}},dependencies:[T,he,X,q,J,Y,K,Q,Me,be,Pe,Ee,ke,Se,ye,Te,pe,F,xe,ge,_e,Ce,me,ue,ae,ie,oe,ne,ee,Z,te,O,H,W],styles:["[_nghost-%COMP%]{flex:1;gap:2em;display:flex;flex-direction:column;background-color:#fff}[_nghost-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:1.8em}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.2em}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:2em;gap:8px;background:linear-gradient(180deg,#fff0 -12.12%,#4e4e4e40 23.23%,#0003);background-blend-mode:multiply}[_nghost-%COMP%] header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{gap:1em;width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}@media (max-width: 767px){[_nghost-%COMP%] form[_ngcontent-%COMP%]{justify-content:center}}[_nghost-%COMP%] .event-page-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;position:relative}[_nghost-%COMP%] .event-page-content[_ngcontent-%COMP%] .rsvp-button[_ngcontent-%COMP%]{position:absolute;z-index:100;right:.4em;top:-.4em}@media (max-width: 767px){[_nghost-%COMP%] .event-page-content[_ngcontent-%COMP%] .rsvp-button[_ngcontent-%COMP%]{position:relative;margin-bottom:1em;right:0;top:0}}[_nghost-%COMP%] article[_ngcontent-%COMP%]{padding:1em}@media (max-width: 600px){[_nghost-%COMP%] header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{width:100%;flex-direction:column}}"],changeDetection:0})}return t})();var tn=[{path:":id",providers:Ie,component:we,data:{breadcrumb:"Evento"},resolve:{schema:Re},children:[{path:"",data:{breadcrumb:t=>t.page.title},title:"Sobre o evento",resolve:{page:Be},component:De}]}];export{we as EventFeaturePageComponent,tn as eventFeaturePageRoutes}; diff --git a/chunk-AND6K73U.js b/chunk-AND6K73U.js new file mode 100644 index 00000000..9c726537 --- /dev/null +++ b/chunk-AND6K73U.js @@ -0,0 +1,4 @@ +import{b as _t,d as gt,g as vt}from"./chunk-BJXILAOS.js";import{A as re,C as xe,y as ye}from"./chunk-6BGAZ7SQ.js";import{c as at,d as st,g as ue,h as dt,j as ct}from"./chunk-I7VYXJU2.js";import{A as pt,T as Z,U as Q,V as ut,Y as be,f as W,k as ft,o as oe,p as _e,q as ge,s as mt,t as ht,v as ve,w as h}from"./chunk-W5KNOAKV.js";import{$ as z,Aa as Ve,D as U,Db as Ze,Ea as B,Eb as qe,F as X,Fa as O,Fc as ie,Ib as Qe,Ja as F,Mb as $e,Nb as y,Nc as it,Pa as J,Sb as ce,Sc as ot,T as Ae,Tb as A,Ua as ee,Va as je,Vb as I,Vc as Y,X as ze,Xc as pe,Yb as x,Yc as rt,Z as Be,a as $,aa as Ie,b as Me,bc as _,cc as g,dc as N,e as M,ea as R,ed as j,fa as G,g as Le,ha as L,hc as Ue,ic as fe,ie as lt,j as C,ka as a,kc as Ge,lb as p,mc as T,nc as me,nd as nt,ob as We,oc as E,pa as Ne,pc as V,qc as D,rc as v,sa as Ye,sc as b,t as Te,ta as He,tc as Ke,ua as Xe,ub as q,vb as te,vc as Je,wb as k,wc as he,xa as de,xc as et,yc as tt,za as K}from"./chunk-TEKHUYWQ.js";var we=class{_box;_destroyed=new C;_resizeSubject=new C;_resizeObserver;_elementObservables=new Map;constructor(t){this._box=t,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new Le(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),i.unsubscribe(),this._elementObservables.delete(t)}}).pipe(X(e=>e.some(i=>i.target===t)),ze({bufferSize:1,refCount:!0}),z(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},yt=(()=>{class r{_observers=new Map;_ngZone=a(O);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,i){let o=i?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new we(o)),this._observers.get(o).observe(e)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=R({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var jt=["notch"],Wt=["matFormFieldNotchedOutline",""],Zt=["*"],qt=["textField"],Qt=["iconPrefixContainer"],$t=["textPrefixContainer"],Ut=["iconSuffixContainer"],Gt=["textSuffixContainer"],Kt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Jt=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function ei(r,t){r&1&&N(0,"span",21)}function ti(r,t){if(r&1&&(_(0,"label",20),E(1,1),y(2,ei,1,0,"span",21),g()),r&2){let e=T(2);A("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ce("for",e._control.disableAutomaticLabeling?null:e._control.id),p(2),x(!e.hideRequiredMarker&&e._control.required?2:-1)}}function ii(r,t){if(r&1&&y(0,ti,3,5,"label",20),r&2){let e=T();x(e._hasFloatingLabel()?0:-1)}}function oi(r,t){r&1&&N(0,"div",7)}function ri(r,t){}function ni(r,t){if(r&1&&y(0,ri,0,0,"ng-template",13),r&2){T(2);let e=he(1);A("ngTemplateOutlet",e)}}function li(r,t){if(r&1&&(_(0,"div",9),y(1,ni,1,1,null,13),g()),r&2){let e=T();A("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),p(),x(e._forceDisplayInfixLabel()?-1:1)}}function ai(r,t){r&1&&(_(0,"div",10,2),E(2,2),g())}function si(r,t){r&1&&(_(0,"div",11,3),E(2,3),g())}function di(r,t){}function ci(r,t){if(r&1&&y(0,di,0,0,"ng-template",13),r&2){T();let e=he(1);A("ngTemplateOutlet",e)}}function fi(r,t){r&1&&(_(0,"div",14,4),E(2,4),g())}function mi(r,t){r&1&&(_(0,"div",15,5),E(2,5),g())}function hi(r,t){r&1&&N(0,"div",16)}function pi(r,t){if(r&1&&(_(0,"div",18),E(1,6),g()),r&2){let e=T();A("@transitionMessages",e._subscriptAnimationState)}}function ui(r,t){if(r&1&&(_(0,"mat-hint",22),et(1),g()),r&2){let e=T(2);A("id",e._hintLabelId),p(),tt(e.hintLabel)}}function _i(r,t){if(r&1&&(_(0,"div",19),y(1,ui,2,2,"mat-hint",22),E(2,7),N(3,"div",23),E(4,8),g()),r&2){let e=T();A("@transitionMessages",e._subscriptAnimationState),p(),x(e.hintLabel?1:-1)}}var xt=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275dir=k({type:r,selectors:[["mat-label"]]})}return r})(),Ft=new L("MatError"),ao=(()=>{class r{id=a(Z).getId("mat-mdc-error-");constructor(){a(new Ve("aria-live"),{optional:!0})||a(F).nativeElement.setAttribute("aria-live","polite")}static \u0275fac=function(i){return new(i||r)};static \u0275dir=k({type:r,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,o){i&2&&fe("id",o.id)},inputs:{id:"id"},features:[ie([{provide:Ft,useExisting:r}])]})}return r})(),wt=(()=>{class r{align="start";id=a(Z).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||r)};static \u0275dir=k({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,o){i&2&&(fe("id",o.id),ce("align",null),I("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return r})(),gi=new L("MatPrefix");var Dt=new L("MatSuffix"),so=(()=>{class r{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||r)};static \u0275dir=k({type:r,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[ie([{provide:Dt,useExisting:r}])]})}return r})(),Pt=new L("FloatingLabelParent"),Ct=(()=>{class r{_elementRef=a(F);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=a(yt);_ngZone=a(O);_parent=a(Pt);_resizeSubscription=new M;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return vi(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(i){return new(i||r)};static \u0275dir=k({type:r,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,o){i&2&&I("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return r})();function vi(r){let t=r;if(t.offsetParent!==null)return t.scrollWidth;let e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var St="mdc-line-ripple--active",ne="mdc-line-ripple--deactivating",Ot=(()=>{class r{_elementRef=a(F);constructor(){a(O).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(ne),e.add(St)}deactivate(){this._elementRef.nativeElement.classList.add(ne)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,o=i.contains(ne);e.propertyName==="opacity"&&o&&i.remove(St,ne)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(i){return new(i||r)};static \u0275dir=k({type:r,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return r})(),kt=(()=>{class r{_elementRef=a(F);_ngZone=a(O);open=!1;_notch;constructor(){}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=q({type:r,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,o){if(i&1&&D(jt,5),i&2){let n;v(n=b())&&(o._notch=n.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,o){i&2&&I("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:Wt,ngContentSelectors:Zt,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(i,o){i&1&&(me(),N(0,"div",1),_(1,"div",2,0),E(3),g(),N(4,"div",3))},encapsulation:2,changeDetection:0})}return r})(),bi={transitionMessages:at("transitionMessages",[dt("enter",ue({opacity:1,transform:"translateY(0%)"})),ct("void => enter",[ue({opacity:0,transform:"translateY(-5px)"}),st("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},yi=(()=>{class r{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(i){return new(i||r)};static \u0275dir=k({type:r})}return r})();var xi=new L("MatFormField"),wi=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Et="fill",Ci="auto",Rt="fixed",Si="translateY(-50%)",co=(()=>{class r{_elementRef=a(F);_changeDetectorRef=a(ot);_dir=a(Q);_platform=a(W);_idGenerator=a(Z);_defaults=a(wi,{optional:!0});_animationMode=a(J,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=Qe(xt);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ht(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Ci}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(e){let i=this._appearance,o=e||this._defaults?.appearance||Et;this._appearance=o,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=Et;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Rt}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Rt}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new C;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=a(K);constructor(){let e=this._defaults;e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=pe(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(o+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(Be([void 0,void 0]),Te(()=>[i.errorState,i.userAriaDescribedBy]),Ae(),X(([[n,l],[s,c]])=>n!==s||l!==c)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(z(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),U(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),ee(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(z(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=pe(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let i=this._hintChildren?this._hintChildren.find(n=>n.align==="start"):null,o=this._hintChildren?this._hintChildren.find(n=>n.align==="end"):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let i=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,n=this._iconSuffixContainer?.nativeElement,l=this._textSuffixContainer?.nativeElement,s=i?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,f=n?.getBoundingClientRect().width??0,d=l?.getBoundingClientRect().width??0,m=this._dir.value==="rtl"?"-1":"1",P=`${s+c}px`,u=`calc(${m} * (${P} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( + --mat-mdc-form-field-label-transform, + ${Si} translateX(${u}) + )`;let S=s+c+f+d;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${S}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=q({type:r,selectors:[["mat-form-field"]],contentQueries:function(i,o,n){if(i&1&&(Ke(n,o._labelChild,xt,5),V(n,yi,5),V(n,gi,5),V(n,Dt,5),V(n,Ft,5),V(n,wt,5)),i&2){Je();let l;v(l=b())&&(o._formFieldControl=l.first),v(l=b())&&(o._prefixChildren=l),v(l=b())&&(o._suffixChildren=l),v(l=b())&&(o._errorChildren=l),v(l=b())&&(o._hintChildren=l)}},viewQuery:function(i,o){if(i&1&&(D(qt,5),D(Qt,5),D($t,5),D(Ut,5),D(Gt,5),D(Ct,5),D(kt,5),D(Ot,5)),i&2){let n;v(n=b())&&(o._textField=n.first),v(n=b())&&(o._iconPrefixContainer=n.first),v(n=b())&&(o._textPrefixContainer=n.first),v(n=b())&&(o._iconSuffixContainer=n.first),v(n=b())&&(o._textSuffixContainer=n.first),v(n=b())&&(o._floatingLabel=n.first),v(n=b())&&(o._notchedOutline=n.first),v(n=b())&&(o._lineRipple=n.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,o){i&2&&I("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[ie([{provide:xi,useExisting:r},{provide:Pt,useExisting:r}])],ngContentSelectors:Jt,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(i,o){if(i&1){let n=Ue();me(Kt),y(0,ii,1,1,"ng-template",null,0,it),_(2,"div",6,1),Ge("click",function(s){return He(n),Xe(o._control.onContainerClick(s))}),y(4,oi,1,0,"div",7),_(5,"div",8),y(6,li,2,2,"div",9)(7,ai,3,0,"div",10)(8,si,3,0,"div",11),_(9,"div",12),y(10,ci,1,1,null,13),E(11),g(),y(12,fi,3,0,"div",14)(13,mi,3,0,"div",15),g(),y(14,hi,1,0,"div",16),g(),_(15,"div",17),y(16,pi,2,1,"div",18)(17,_i,5,2,"div",19),g()}if(i&2){let n;p(2),I("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),p(2),x(!o._hasOutline()&&!o._control.disabled?4:-1),p(2),x(o._hasOutline()?6:-1),p(),x(o._hasIconPrefix?7:-1),p(),x(o._hasTextPrefix?8:-1),p(2),x(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),p(2),x(o._hasTextSuffix?12:-1),p(),x(o._hasIconSuffix?13:-1),p(),x(o._hasOutline()?-1:14),p(),I("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),p(),x((n=o._getDisplayedMessages())==="error"?16:n==="hint"?17:-1)}},dependencies:[Ct,kt,lt,Ot,wt],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[bi.transitionMessages]},changeDetection:0})}return r})(),fo=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=te({type:r});static \u0275inj=G({imports:[be,pt,be]})}return r})();var Mt=ft(),Ce=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(t,e){this._viewportRuler=t,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=h(-this._previousScrollPosition.left),t.style.top=h(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,e=this._document.body,i=t.style,o=e.style,n=i.scrollBehavior||"",l=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Mt&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Mt&&(i.scrollBehavior=n,o.scrollBehavior=l)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};var Se=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(t,e,i,o){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=o}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(X(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},le=class{enable(){}disable(){}attach(){}};function Oe(r,t){return t.some(e=>{let i=r.bottome.bottom,n=r.righte.right;return i||o||n||l})}function Lt(r,t){return t.some(e=>{let i=r.tope.bottom,n=r.lefte.right;return i||o||n||l})}var ke=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(t,e,i,o){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=o}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();Oe(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},ki=(()=>{class r{_scrollDispatcher=a(ye);_viewportRuler=a(re);_ngZone=a(O);_document=a(j);constructor(){}noop=()=>new le;close=e=>new Se(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new Ce(this._viewportRuler,this._document);reposition=e=>new ke(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static \u0275fac=function(i){return new(i||r)};static \u0275prov=R({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),ae=class{positionStrategy;scrollStrategy=new le;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(t){if(t){let e=Object.keys(t);for(let i of e)t[i]!==void 0&&(this[i]=t[i])}}};var Ee=class{connectionPair;scrollableViewProperties;constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}};var Yt=(()=>{class r{_attachedOverlays=[];_document=a(j);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||r)};static \u0275prov=R({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Ei=(()=>{class r extends Yt{_ngZone=a(O,{optional:!0});add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}_keydownListener=e=>{let i=this._attachedOverlays;for(let o=i.length-1;o>-1;o--)if(i[o]._keydownEvents.observers.length>0){let n=i[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(e)):n.next(e);break}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=de(r)))(o||r)}})();static \u0275prov=R({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Ri=(()=>{class r extends Yt{_platform=a(W);_ngZone=a(O,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=e=>{this._pointerDownEventTarget=oe(e)};_clickListener=e=>{let i=oe(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let n=this._attachedOverlays.slice();for(let l=n.length-1;l>-1;l--){let s=n[l];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(Tt(s.overlayElement,i)||Tt(s.overlayElement,o))break;let c=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=de(r)))(o||r)}})();static \u0275prov=R({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Tt(r,t){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=t;for(;i;){if(i===r)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var Ht=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=q({type:r,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,o){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return r})(),Xt=(()=>{class r{_platform=a(W);_containerElement;_document=a(j);_styleLoader=a(ge);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||_e()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let n=0;nthis._backdropClick.next(t);_backdropTransitionendHandler=t=>{this._disposeBackdrop(t.target)};_previousHostParent;_keydownEvents=new C;_outsidePointerEvents=new C;_renders=new C;_afterRenderRef;_afterNextRenderRef;constructor(t,e,i,o,n,l,s,c,f,d=!1,m){this._portalOutlet=t,this._host=e,this._pane=i,this._config=o,this._ngZone=n,this._keyboardDispatcher=l,this._document=s,this._location=c,this._outsideClickDispatcher=f,this._animationsDisabled=d,this._injector=m,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy,this._afterRenderRef=rt(()=>ee(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=je(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=$($({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Me($({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=h(this._config.width),t.height=h(this._config.height),t.minWidth=h(this._config.minWidth),t.minHeight=h(this._config.minHeight),t.maxWidth=h(this._config.maxWidth),t.maxHeight=h(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){let o=ve(e||[]).filter(n=>!!n);o.length&&(i?t.classList.add(...o):t.classList.remove(...o))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(z(U(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},At="cdk-overlay-connected-position-bounding-box",Fi=/([A-Za-z%]+)$/,Fe=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new C;_resizeSubscription=M.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(t,e,i,o,n){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=n,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(At),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,n=[],l;for(let s of this._preferredPositions){let c=this._getOriginPoint(t,o,s),f=this._getOverlayPoint(c,e,s),d=this._getOverlayFit(f,e,i,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,c);return}if(this._canFitWithFlexibleDimensions(d,f,i)){n.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)});continue}(!l||l.overlayFit.visibleAreac&&(c=d,s=f)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(l.position,l.originPoint);return}this._applyPosition(l.position,l.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&H(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(At),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let o;if(i.originX=="center")o=t.left+t.width/2;else{let l=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;o=i.originX=="start"?l:s}e.left<0&&(o-=e.left);let n;return i.originY=="center"?n=t.top+t.height/2:n=i.originY=="top"?t.top:t.bottom,e.top<0&&(n-=e.top),{x:o,y:n}}_getOverlayPoint(t,e,i){let o;i.overlayX=="center"?o=-e.width/2:i.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let n;return i.overlayY=="center"?n=-e.height/2:n=i.overlayY=="top"?0:-e.height,{x:t.x+o,y:t.y+n}}_getOverlayFit(t,e,i,o){let n=Bt(e),{x:l,y:s}=t,c=this._getOffset(o,"x"),f=this._getOffset(o,"y");c&&(l+=c),f&&(s+=f);let d=0-l,m=l+n.width-i.width,P=0-s,w=s+n.height-i.height,u=this._subtractOverflows(n.width,d,m),S=this._subtractOverflows(n.height,P,w),Pe=u*S;return{visibleArea:Pe,isCompletelyWithinViewport:n.width*n.height===Pe,fitsInViewportVertically:S===n.height,fitsInViewportHorizontally:u==n.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){let o=i.bottom-e.y,n=i.right-e.x,l=zt(this._overlayRef.getConfig().minHeight),s=zt(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportVertically||l!=null&&l<=o,f=t.fitsInViewportHorizontally||s!=null&&s<=n;return c&&f}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let o=Bt(e),n=this._viewportRect,l=Math.max(t.x+o.width-n.width,0),s=Math.max(t.y+o.height-n.height,0),c=Math.max(n.top-i.top-t.y,0),f=Math.max(n.left-i.left-t.x,0),d=0,m=0;return o.width<=n.width?d=f||-l:d=t.xu&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.y-u/2)}let c=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,f=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,d,m,P;if(f)P=i.width-t.x+this._viewportMargin*2,d=t.x-this._viewportMargin;else if(c)m=t.x,d=i.right-t.x;else{let w=Math.min(i.right-t.x+i.left,t.x),u=this._lastBoundingBoxSize.width;d=w*2,m=t.x-w,d>u&&!this._isInitialRender&&!this._growAfterOpen&&(m=t.x-u/2)}return{top:l,left:m,bottom:s,right:P,width:d,height:n}}_setBoundingBoxStyles(t,e){let i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let n=this._overlayRef.getConfig().maxHeight,l=this._overlayRef.getConfig().maxWidth;o.height=h(i.height),o.top=h(i.top),o.bottom=h(i.bottom),o.width=h(i.width),o.left=h(i.left),o.right=h(i.right),e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",n&&(o.maxHeight=h(n)),l&&(o.maxWidth=h(l))}this._lastBoundingBoxSize=i,H(this._boundingBox.style,o)}_resetBoundingBoxStyles(){H(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){H(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){let i={},o=this._hasExactPosition(),n=this._hasFlexibleDimensions,l=this._overlayRef.getConfig();if(o){let d=this._viewportRuler.getViewportScrollPosition();H(i,this._getExactOverlayY(e,t,d)),H(i,this._getExactOverlayX(e,t,d))}else i.position="static";let s="",c=this._getOffset(e,"x"),f=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),f&&(s+=`translateY(${f}px)`),i.transform=s.trim(),l.maxHeight&&(o?i.maxHeight=h(l.maxHeight):n&&(i.maxHeight="")),l.maxWidth&&(o?i.maxWidth=h(l.maxWidth):n&&(i.maxWidth="")),H(this._pane.style,i)}_getExactOverlayY(t,e,i){let o={top:"",bottom:""},n=this._getOverlayPoint(e,this._overlayRect,t);if(this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i)),t.overlayY==="bottom"){let l=this._document.documentElement.clientHeight;o.bottom=`${l-(n.y+this._overlayRect.height)}px`}else o.top=h(n.y);return o}_getExactOverlayX(t,e,i){let o={left:"",right:""},n=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i));let l;if(this._isRtl()?l=t.overlayX==="end"?"left":"right":l=t.overlayX==="end"?"right":"left",l==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(n.x+this._overlayRect.width)}px`}else o.left=h(n.x);return o}_getScrollVisibility(){let t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Lt(t,i),isOriginOutsideView:Oe(t,i),isOverlayClipped:Lt(e,i),isOverlayOutsideView:Oe(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,o)=>i-Math.max(o,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return e==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&ve(t).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof F)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}};function H(r,t){for(let e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r}function zt(r){if(typeof r!="number"&&r!=null){let[t,e]=r.split(Fi);return!e||e==="px"?parseFloat(t):null}return r||null}function Bt(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}function Di(r,t){return r===t?!0:r.isOriginClipped===t.isOriginClipped&&r.isOriginOutsideView===t.isOriginOutsideView&&r.isOverlayClipped===t.isOverlayClipped&&r.isOverlayOutsideView===t.isOverlayOutsideView}var It="cdk-global-overlay-wrapper",De=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(t){let e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(It),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:n,maxWidth:l,maxHeight:s}=i,c=(o==="100%"||o==="100vw")&&(!l||l==="100%"||l==="100vw"),f=(n==="100%"||n==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,m=this._xOffset,P=this._overlayRef.getConfig().direction==="rtl",w="",u="",S="";c?S="flex-start":d==="center"?(S="center",P?u=m:w=m):P?d==="left"||d==="end"?(S="flex-end",w=m):(d==="right"||d==="start")&&(S="flex-start",u=m):d==="left"||d==="start"?(S="flex-start",w=m):(d==="right"||d==="end")&&(S="flex-end",u=m),t.position=this._cssPosition,t.marginLeft=c?"0":w,t.marginTop=f?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=c?"0":u,e.justifyContent=S,e.alignItems=f?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(It),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},Pi=(()=>{class r{_viewportRuler=a(re);_document=a(j);_platform=a(W);_overlayContainer=a(Xt);constructor(){}global(){return new De}flexibleConnectedTo(e){return new Fe(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=R({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),se=(()=>{class r{scrollStrategies=a(ki);_overlayContainer=a(Xt);_positionBuilder=a(Pi);_keyboardDispatcher=a(Ei);_injector=a(K);_ngZone=a(O);_document=a(j);_directionality=a(Q);_location=a(nt);_outsideClickDispatcher=a(Ri);_animationsModuleType=a(J,{optional:!0});_idGenerator=a(Z);_appRef;_styleLoader=a(ge);constructor(){}create(e){this._styleLoader.load(Ht);let i=this._createHostElement(),o=this._createPaneElement(i),n=this._createPortalOutlet(o),l=new ae(e);return l.direction=l.direction||this._directionality.value,new Re(n,i,o,l,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Ne))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ze)),new gt(e,null,this._appRef,this._injector,this._document)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=R({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Mi=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Vt=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let r=a(se);return()=>r.scrollStrategies.reposition()}}),Nt=(()=>{class r{elementRef=a(F);constructor(){}static \u0275fac=function(i){return new(i||r)};static \u0275dir=k({type:r,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return r})(),To=(()=>{class r{_overlay=a(se);_dir=a(Q,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=M.EMPTY;_attachSubscription=M.EMPTY;_detachSubscription=M.EMPTY;_positionSubscription=M.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=a(Vt);_disposeOnNavigation=!1;_ngZone=a(O);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new B;positionChange=new B;attach=new B;detach=new B;overlayKeydown=new B;overlayOutsideClick=new B;constructor(){let e=a(We),i=a(qe);this._templatePortal=new _t(e,i),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Mi);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!mt(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let o=this._getOriginElement(),n=oe(i);(!o||o!==n&&!o.contains(n))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new ae({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Nt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Nt?this.origin.elementRef.nativeElement:this.origin instanceof F?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Ie(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||r)};static \u0275dir=k({type:r,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Y],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Y],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Y],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Y],push:[2,"cdkConnectedOverlayPush","push",Y],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Y]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[$e,Ye]})}return r})();function Li(r){return()=>r.scrollStrategies.reposition()}var Ti={provide:Vt,deps:[se],useFactory:Li},Ao=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=te({type:r});static \u0275inj=G({providers:[se,Ti],imports:[ut,vt,xe,xe]})}return r})();export{yt as a,xt as b,ao as c,wt as d,so as e,yi as f,xi as g,wi as h,co as i,fo as j,ae as k,Xt as l,Re as m,Fe as n,se as o,Nt as p,To as q,Ao as r}; diff --git a/chunk-BLJCB4Q7.js b/chunk-BLJCB4Q7.js new file mode 100644 index 00000000..e6fc52b7 --- /dev/null +++ b/chunk-BLJCB4Q7.js @@ -0,0 +1 @@ +import{a as Et,b as Lt}from"./chunk-2XST3EDK.js";import{i as Ct,o as V,r as zt}from"./chunk-AND6K73U.js";import{a as Dt}from"./chunk-BJXILAOS.js";import{B as Mt,v as St,x as wt,y as Ot}from"./chunk-6BGAZ7SQ.js";import{H as bt,Q as yt,S as Pt,T as Tt,U as It,Y as X,f as ut,i as ft,na as xt,s as vt,t as H,u as j}from"./chunk-W5KNOAKV.js";import{$ as g,$b as lt,Ea as J,Eb as nt,Fa as tt,Ha as et,Ia as G,Ja as E,Mb as st,Nb as D,Pa as it,Sb as y,Sc as N,Tb as d,Va as ot,Vb as Y,Vc as F,Wc as M,Yb as P,Yd as _t,_b as rt,a as x,ac as pt,bc as s,cc as p,dc as O,ea as Z,ed as gt,fa as z,ha as S,hc as T,j as C,ka as r,kc as c,l as $,la as Q,lb as l,ma as W,mb as L,mc as h,qc as dt,rc as ct,sc as ht,ta as _,ua as u,ub as b,va as w,vb as A,wa as q,wb as at,wc as mt,xc as f,yc as R,za as K,zc as k}from"./chunk-TEKHUYWQ.js";var Ht=["tooltip"],Nt=20;var Ft=new S("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let o=r(V);return()=>o.scrollStrategies.reposition({scrollThrottle:Nt})}});function jt(o){return()=>o.scrollStrategies.reposition({scrollThrottle:Nt})}var Xt={provide:Ft,deps:[V],useFactory:jt};function Ut(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var $t=new S("mat-tooltip-default-options",{providedIn:"root",factory:Ut});var At="tooltip-panel",Rt=ft({passive:!0}),Zt=8,Qt=8,Wt=24,qt=200,Vt=(()=>{class o{_overlay=r(V);_elementRef=r(E);_scrollDispatcher=r(Ot);_viewContainerRef=r(nt);_ngZone=r(tt);_platform=r(ut);_ariaDescriber=r(bt);_focusMonitor=r(yt);_dir=r(It);_injector=r(K);_defaultOptions=r($t,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=r(Ft);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Kt;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=H(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let e=H(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=j(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=j(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=r(gt);_touchstartTimeout=null;_destroyed=new C;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._dir.change.pipe(g(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=Zt}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(g(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,Rt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(e);this._detach(),this._portal=this._portal||new Dt(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=i.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(g(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(t)}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&a._origin instanceof E)return this._overlayRef;this._detach()}let e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(g(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${At}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(g(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(g(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(g(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!vt(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let e=t.getConfig().positionStrategy,i=this._getOrigin(),a=this._getOverlayPosition();e.withPositions([this._addOffset(x(x({},i.main),a.main)),this._addOffset(x(x({},i.fallback),a.fallback))])}_addOffset(t){let e=Qt,i=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=i?-e:e:t.originX==="end"&&(t.offsetX=i?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"||e=="below"?i={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={originX:"end",originY:"center"});let{x:a,y:n}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:a,originY:n}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"?i={overlayX:"center",overlayY:"bottom"}:e=="below"?i={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={overlayX:"start",overlayY:"center"});let{x:a,y:n}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:a,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),ot(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:i,originY:a}=t,n;if(e==="center"?this._dir&&this._dir.value==="rtl"?n=i==="end"?"left":"right":n=i==="start"?"left":"right":n=e==="bottom"&&a==="top"?"above":"below",n!==this._currentPosition){let m=this._overlayRef;if(m){let I=`${this._cssClassPrefix}-${At}-`;m.removePanelClass(I+this._currentPosition),m.addPanelClass(I+n)}this._currentPosition=n}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let e=t.targetTouches?.[0],i=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i)},this._defaultOptions?.touchLongPressShowDelay??a)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",e=>{let i=e.relatedTarget;(!i||!this._overlayRef?.overlayElement.contains(i))&&this.hide()}],["wheel",e=>this._wheelListener(e)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([e,i])=>{this._elementRef.nativeElement.addEventListener(e,i,Rt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e!==i&&!i.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,i=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(t==="on"||!e.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static \u0275fac=function(e){return new(e||o)};static \u0275dir=at({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,i){e&2&&Y("mat-mdc-tooltip-disabled",i.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return o})(),Kt=(()=>{class o{_changeDetectorRef=r(N);_elementRef=r(E);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new C;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let t=r(it,{optional:!0});this._animationsDisabled=t==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>Wt&&t.width>=qt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let e=this._tooltip.nativeElement,i=this._showAnimation,a=this._hideAnimation;if(e.classList.remove(t?a:i),e.classList.add(t?i:a),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let n=getComputedStyle(e);(n.getPropertyValue("animation-duration")==="0s"||n.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=b({type:o,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(e&1&&dt(Ht,7),e&2){let a;ct(a=ht())&&(i._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,i){e&1&&c("mouseleave",function(n){return i._handleMouseLeave(n)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,i){if(e&1){let a=T();s(0,"div",1,0),c("animationend",function(m){return _(a),u(i._handleAnimationEnd(m))}),s(2,"div",2),f(3),p()()}e&2&&(Y("mdc-tooltip--multiline",i._isMultiline),d("ngClass",i.tooltipClass),l(3),R(i.message))},dependencies:[_t],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return o})();var Bt=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=A({type:o});static \u0275inj=z({providers:[Xt],imports:[Pt,zt,X,X,Mt]})}return o})();function Jt(o,v){if(o&1&&(s(0,"mat-option",17),f(1),p()),o&2){let t=v.$implicit;d("value",t),l(),k(" ",t," ")}}function te(o,v){if(o&1){let t=T();s(0,"mat-form-field",14)(1,"mat-select",16,0),c("selectionChange",function(i){_(t);let a=h(2);return u(a._changePageSize(i.value))}),lt(3,Jt,2,2,"mat-option",17,rt),p(),s(5,"div",18),c("click",function(){_(t);let i=mt(2);return u(i.open())}),p()()}if(o&2){let t=h(2);d("appearance",t._formFieldAppearance)("color",t.color),l(),d("value",t.pageSize)("disabled",t.disabled)("aria-labelledby",t._pageSizeLabelId)("panelClass",t.selectConfig.panelClass||"")("disableOptionCentering",t.selectConfig.disableOptionCentering),l(2),pt(t._displayedPageSizeOptions)}}function ee(o,v){if(o&1&&(s(0,"div",15),f(1),p()),o&2){let t=h(2);l(),R(t.pageSize)}}function ie(o,v){if(o&1&&(s(0,"div",3)(1,"div",13),f(2),p(),D(3,te,6,7,"mat-form-field",14)(4,ee,2,1,"div",15),p()),o&2){let t=h();l(),y("id",t._pageSizeLabelId),l(),k(" ",t._intl.itemsPerPageLabel," "),l(),P(t._displayedPageSizeOptions.length>1?3:-1),l(),P(t._displayedPageSizeOptions.length<=1?4:-1)}}function oe(o,v){if(o&1){let t=T();s(0,"button",19),c("click",function(){_(t);let i=h();return u(i.firstPage())}),w(),s(1,"svg",8),O(2,"path",20),p()()}if(o&2){let t=h();d("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),y("aria-label",t._intl.firstPageLabel)}}function ae(o,v){if(o&1){let t=T();s(0,"button",21),c("click",function(){_(t);let i=h();return u(i.lastPage())}),w(),s(1,"svg",8),O(2,"path",22),p()()}if(o&2){let t=h();d("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),y("aria-label",t._intl.lastPageLabel)}}var B=(()=>{class o{changes=new C;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(t,e,i)=>{if(i==0||e==0)return`0 of ${i}`;i=Math.max(i,0);let a=t*e,n=a{class o{_intl;_changeDetectorRef;_formFieldAppearance;_pageSizeLabelId=r(Tt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new $(1);color;get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(e=>M(e,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new J;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(t,e,i){if(this._intl=t,this._changeDetectorRef=e,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:a,pageSizeOptions:n,hidePageSize:m,showFirstLastButtons:I}=i;a!=null&&(this._pageSize=a),n!=null&&(this._pageSizeOptions=n),m!=null&&(this.hidePageSize=m),I!=null&&(this.showFirstLastButtons=I)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static \u0275fac=function(e){return new(e||o)(L(B),L(N),L(le,8))};static \u0275cmp=b({type:o,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",M],length:[2,"length","length",M],pageSize:[2,"pageSize","pageSize",M],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",F],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",F],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",F]},outputs:{page:"page"},exportAs:["matPaginator"],features:[st],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,i){e&1&&(s(0,"div",1)(1,"div",2),D(2,ie,5,4,"div",3),s(3,"div",4)(4,"div",5),f(5),p(),D(6,oe,3,5,"button",6),s(7,"button",7),c("click",function(){return i.previousPage()}),w(),s(8,"svg",8),O(9,"path",9),p()(),q(),s(10,"button",10),c("click",function(){return i.nextPage()}),w(),s(11,"svg",8),O(12,"path",11),p()(),D(13,ae,3,5,"button",12),p()()()),e&2&&(l(2),P(i.hidePageSize?-1:2),l(3),k(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),l(),P(i.showFirstLastButtons?6:-1),l(),d("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),y("aria-label",i._intl.previousPageLabel),l(3),d("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),y("aria-label",i._intl.nextPageLabel),l(3),P(i.showFirstLastButtons?13:-1))},dependencies:[Ct,Et,xt,St,Vt],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}"],encapsulation:2,changeDetection:0})}return o})(),Gt=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=A({type:o});static \u0275inj=z({providers:[se],imports:[wt,Lt,Bt,U]})}return o})();var Ke=(()=>{class o{items=G(0);size=G(10);pageChange=et();onChange({pageIndex:t,pageSize:e}){this.pageChange.emit({page:t,size:e})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=b({type:o,selectors:[["devmx-paginator"]],inputs:{items:[1,"items"],size:[1,"size"]},outputs:{pageChange:"pageChange"},decls:1,vars:2,consts:[["hidePageSize","",3,"page","pageSize","length"]],template:function(e,i){e&1&&(s(0,"mat-paginator",0),c("page",function(n){return i.onChange(n)}),p()),e&2&&d("pageSize",i.size())("length",i.items())},dependencies:[Gt,U],styles:["[_nghost-%COMP%]{display:flex;justify-content:center}[_nghost-%COMP%] .mat-mdc-paginator[_ngcontent-%COMP%]{background-color:transparent}"],changeDetection:0})}return o})();export{Vt as a,Bt as b,Ke as c}; diff --git a/chunk-5FQQWOZL.js b/chunk-BZ5BKAFD.js similarity index 90% rename from chunk-5FQQWOZL.js rename to chunk-BZ5BKAFD.js index 363d19b7..065864f9 100644 --- a/chunk-5FQQWOZL.js +++ b/chunk-BZ5BKAFD.js @@ -1 +1 @@ -import{o as a}from"./chunk-4FWBEGAE.js";import{ad as c,ea as n,ed as s,ja as i}from"./chunk-TEKHUYWQ.js";var u=(()=>{class r{_doc;_dom;constructor(e){this._doc=e,this._dom=c()}addScript(e,t=""){if(!e)return null;let o=this.#e(e);return o.append(t),o}removeScriptElement(e){e&&this._dom.remove(e)}#e(e){let t=this._dom.createElement("script");return this.#t(e,t),this._doc.getElementsByTagName("head")[0].appendChild(t),t}#t(e,t){return a(e).forEach(o=>{if(e[o]){let m=typeof e[o]=="boolean"?"":e[o]+"";t.setAttribute(o,m)}}),t}static \u0275fac=function(t){return new(t||r)(i(s))};static \u0275prov=n({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{u as a}; +import{o as a}from"./chunk-XYJHVZQT.js";import{ad as c,ea as n,ed as s,ja as i}from"./chunk-TEKHUYWQ.js";var u=(()=>{class r{_doc;_dom;constructor(e){this._doc=e,this._dom=c()}addScript(e,t=""){if(!e)return null;let o=this.#e(e);return o.append(t),o}removeScriptElement(e){e&&this._dom.remove(e)}#e(e){let t=this._dom.createElement("script");return this.#t(e,t),this._doc.getElementsByTagName("head")[0].appendChild(t),t}#t(e,t){return a(e).forEach(o=>{if(e[o]){let m=typeof e[o]=="boolean"?"":e[o]+"";t.setAttribute(o,m)}}),t}static \u0275fac=function(t){return new(t||r)(i(s))};static \u0275prov=n({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{u as a}; diff --git a/chunk-C6ZO3Z7T.js b/chunk-C6ZO3Z7T.js deleted file mode 100644 index d86053e5..00000000 --- a/chunk-C6ZO3Z7T.js +++ /dev/null @@ -1 +0,0 @@ -import{a as ye}from"./chunk-XUKBPA5N.js";import{a as ve,b as Me}from"./chunk-MAALDF7A.js";import{a as ae}from"./chunk-KAZRQD4G.js";import"./chunk-ZQOXWN4S.js";import{a as R}from"./chunk-AD4TXQD3.js";import{a as S,e as se}from"./chunk-MWZTEPOQ.js";import{b as re}from"./chunk-RRBYVHNZ.js";import{a as I}from"./chunk-ZHS65JNW.js";import{c as ce}from"./chunk-VYHC3V3G.js";import"./chunk-3I45H2NO.js";import"./chunk-R66KDUEB.js";import"./chunk-MLNPCJDD.js";import"./chunk-UOTKRQ63.js";import"./chunk-BJXILAOS.js";import"./chunk-2IAXMR6M.js";import"./chunk-XIUDFJWJ.js";import{a as xe}from"./chunk-TZR6QHL3.js";import"./chunk-5DAHKZ7F.js";import{a as y}from"./chunk-A3N3AUUJ.js";import{C as ne,H as ie,I as oe}from"./chunk-4FWBEGAE.js";import{c as me,e as le,f as de}from"./chunk-HGOTYYGI.js";import"./chunk-2K6IALUF.js";import{g as O,i as w,j as b,p as x}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import{a as K,b as X,e as Y,f as Z,g as ee,l as te}from"./chunk-PAP2P7QR.js";import{a as pe,b as ue,c as fe,e as Ce,f as _e,h as he,i as ge}from"./chunk-EC6LD5KM.js";import{a as J}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as P,Ba as U,F as B,Ha as V,Hc as M,Jc as C,Kc as _,Nb as u,Ob as E,Pb as N,Rb as Q,Tb as c,Yb as h,a as k,ac as D,bc as i,cc as o,dc as s,fb as T,gb as q,hc as G,je as W,ka as m,kc as v,lb as r,mc as f,t as $,ta as z,ua as H,ub as p,xc as l,yc as F,zc as A}from"./chunk-TEKHUYWQ.js";var Pe=(()=>{class e{router=m(w);destroyRef=m(U);authFacade=m(xe);layoutFacade=m(re);constructor(){this.authFacade.auth$.pipe(y()).subscribe(t=>{t&&(this.layoutFacade.loadNavLinks(t.roles),this.waitingForLogout())}),this.authFacade.load()}waitingForLogout(){this.authFacade.auth$.pipe(y(this.destroyRef)).subscribe(t=>{t===null&&(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,d){n&1&&s(0,"devmx-layout")},dependencies:[x,ae],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var Se=(e,a)=>a.subject.id;function Le(e,a){if(e&1&&l(0),e&2){let t=f().$implicit;A(" com ",t.instructor," ")}}function ke(e,a){if(e&1&&(i(0,"mat-list-item"),s(1,"devmx-icon",11),i(2,"span",8),l(3),o(),i(4,"span",12),l(5),u(6,Le,1,1),o()()),e&2){let t=a.$implicit;r(3),F(t.subject.name),r(2),A("",t.hours," horas "),r(),h(t.instructor?6:-1)}}function Te(e,a){if(e&1&&(i(0,"mat-card-content")(1,"h3"),l(2,"Detalhes"),o(),s(3,"div",9),C(4,"markdown"),C(5,"html"),o()),e&2){let t=f();r(3),c("innerHTML",_(5,3,_(4,1,t.details)),T)}}function Ee(e,a){if(e&1&&(i(0,"mat-card-actions",10)(1,"a",13),s(2,"devmx-icon",14),i(3,"span"),l(4,"Inscreva-se"),o()()()),e&2){let t=f();r(),c("href",t.link,q)}}function Ae(e,a){if(e&1&&(i(0,"mat-card",0)(1,"mat-card-header",1)(2,"a",2),s(3,"devmx-icon",3),o(),i(4,"mat-card-title",4),l(5),o(),i(6,"a",5),s(7,"devmx-icon",6),o()(),i(8,"mat-list")(9,"mat-list-item"),s(10,"devmx-icon",7),i(11,"span",8),l(12),o()()(),i(13,"mat-card-content")(14,"h3"),l(15,"Objetivo"),o(),s(16,"div",9),C(17,"markdown"),C(18,"html"),o(),i(19,"mat-list"),P(20,ke,7,3,"mat-list-item",null,Se),o(),u(22,Te,6,5,"mat-card-content")(23,Ee,5,1,"mat-card-actions",10),o()),e&2){let t=a;r(5),F(t.name),r(7),F(t.institution.name),r(4),c("innerHTML",_(18,7,_(17,5,t.goal)),T),r(4),D(t.subjects),r(2),h(t.details?22:-1),r(),h(t.link?23:-1)}}var De=(()=>{class e{route=m(O);course$=this.route.data.pipe(B(t=>"course"in t),$(t=>t.course));static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-course-details"]],decls:2,vars:3,consts:[[1,"course-card"],[1,"course-card-header","sticky"],["mat-card-avatar","","routerLink","..","mat-icon-button",""],["name","arrow/left"],[1,"course-card-header-title"],["routerLink","..","mat-icon-button",""],["name","close-cross"],["matListItemIcon","","name","building/school"],["matListItemTitle",""],[3,"innerHTML"],[1,"course-card-actions"],["matListItemIcon","","name","arrow/chevron-right"],["matListItemLine",""],["target","_blank","rel","noopener noreferrer","mat-stroked-button","",3,"href"],["name","external-link"]],template:function(n,d){if(n&1&&(u(0,Ae,24,9,"mat-card",0),C(1,"async")),n&2){let g;h((g=_(1,1,d.course$))?0:-1,g)}},dependencies:[x,b,ge,pe,Ce,he,fe,_e,ue,te,Z,ee,Y,X,K,oe,ne,ie,J,ve,Me,W],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .course-card[_ngcontent-%COMP%]{height:100%;box-shadow:none;position:relative}[_nghost-%COMP%] .course-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-weight:600;font-size:1.2em}[_nghost-%COMP%] .course-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-line;line-height:1.2em;word-wrap:break-word}[_nghost-%COMP%] .course-card-header[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}[_nghost-%COMP%] .course-card-header[_ngcontent-%COMP%] .mat-mdc-card-avatar[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%] .course-card-actions[_ngcontent-%COMP%] .mdc-button__label{gap:.6em;display:flex;align-items:center}"],changeDetection:0})}return e})();var Fe=(()=>{class e{filterChange=V();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-course-ead-filter"]],outputs:{filterChange:"filterChange"},decls:3,vars:1,consts:[[3,"change"],[3,"value"]],template:function(n,d){n&1&&(i(0,"mat-chip-listbox",0),v("change",function(L){return d.filterChange.emit(L.value)}),i(1,"mat-chip-option",1),l(2," EAD "),o()()),n&2&&(r(),c("value",!0))},dependencies:[de,le,me],encapsulation:2,changeDetection:0})}return e})();var Ie=(e,a)=>a.id,Re=()=>[ce,I,import("./chunk-QQ3DFMVY.js").then(e=>e.AsyncPipe)],je=()=>[ye,b],$e=e=>[e],Be=e=>({right:e}),ze=e=>({outlets:e}),He=e=>["/","academia",e];function Ue(e,a){if(e&1&&(i(0,"a",4),s(1,"devmx-course-card",5),o()),e&2){let t=f().$implicit;c("routerLink",M(8,He,M(6,ze,M(4,Be,M(2,$e,t.id))))),r(),c("data",t)}}function Ve(e,a){e&1&&s(0,"devmx-skeleton",6),e&2&&c("rows",3)}function qe(e,a){e&1&&(u(0,Ue,2,10)(1,Ve,1,1),E(2,0,je,null,1),Q(0,-1))}function Ne(e,a){if(e&1){let t=G();i(0,"div",1),P(1,qe,4,0,null,null,Ie),o(),s(3,"div",2),i(4,"footer")(5,"devmx-paginator",3),v("pageChange",function(d){z(t);let g=f(2);return H(g.onPageChange(d))}),o()()}if(e&2){let t=a;r(),D(t.data),r(4),c("size",10)("items",t.items)}}function Qe(e,a){if(e&1&&(u(0,Ne,6,2),C(1,"async")),e&2){let t,n=f();h((t=_(1,1,n.courseFacade.response$))?0:-1,t)}}function Ge(e,a){e&1&&(i(0,"div",1),s(1,"devmx-skeleton",6)(2,"devmx-skeleton",6)(3,"devmx-skeleton",6),o()),e&2&&(r(),c("rows",3),r(),c("rows",2),r(),c("rows",3))}var Oe=(()=>{class e{courseFacade=m(S);router=m(w);route=m(O);constructor(){this.route.queryParams.pipe(y()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{page:n=0,size:d=10}=t;this.courseFacade.setParams({page:n,size:d}),this.courseFacade.load()};onEADFilterChange(t){let n=this.mergeParams({ead:t});this.router.navigate([],{queryParams:n})}mergeParams(t){return k(k({},this.route.snapshot.queryParams),t)}onPageChange(t){this.router.navigate([],{queryParams:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-courses"]],decls:6,vars:0,consts:[[3,"filterChange"],[1,"courses-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[3,"data"],[3,"rows"]],template:function(n,d){n&1&&(i(0,"header")(1,"devmx-course-ead-filter",0),v("filterChange",function(L){return d.onEADFilterChange(L)}),o()(),u(2,Qe,2,3)(3,Ge,4,3),E(4,2,Re,null,3),N(500))},dependencies:[Fe,I,x],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;padding:.4em .8em}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1;display:flex}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return e})();var we=e=>se(m(S),e.params);var Qt=[{path:"",data:{breadcrumb:"Academia"},title:"Academia",canActivate:[R("member")],component:Pe,children:[{path:"administracao",canActivate:[R("academic","director","manager","staff")],loadChildren:()=>import("./chunk-PVFLBKFE.js").then(e=>e.academyFeatureAdminRoutes)},{path:"",data:{breadcrumb:"Cursos"},title:"Cursos",component:Oe},{path:":id",data:{breadcrumb:e=>e.course.name},resolve:{course:we},component:De,outlet:"right"}]}];export{Pe as AcademyFeatureShellComponent,Qt as academyFeatureShellRoutes}; diff --git a/chunk-DAURILCW.js b/chunk-DAURILCW.js new file mode 100644 index 00000000..5c54edb9 --- /dev/null +++ b/chunk-DAURILCW.js @@ -0,0 +1 @@ +import{c as ae,d as oe,e as ne,f as ie,g as re,h as le}from"./chunk-O3T3UZHL.js";import{c as K,e as X,f as tt}from"./chunk-HGOTYYGI.js";import{c as zt,e as Ut,i as Ht,j as jt}from"./chunk-AND6K73U.js";import{a as Xt}from"./chunk-A3N3AUUJ.js";import{j as Pt}from"./chunk-6BGAZ7SQ.js";import{a as q,b as Kt,e as W,f as Y,g as Z,l as J}from"./chunk-PAP2P7QR.js";import{a as et,b as at,e as te,f as ot,g as ee,i as nt}from"./chunk-EC6LD5KM.js";import{a as U,b as $t,c as H,e as ft,g as qt,h as j,i as Wt,j as Q,l as E,o as Yt,p as Zt,s as Jt,x as $}from"./chunk-EDIJ2EBQ.js";import{Q as Bt,T as bt,U as Gt,Y as ht,aa as Rt,ca as Lt,ga as Vt,ha as At,ia as Nt,q as Ot,xa as Qt}from"./chunk-W5KNOAKV.js";import{$b as k,Aa as kt,Ea as F,Fc as A,Ha as y,Hc as D,Ia as P,Ja as O,Jc as S,Kb as Et,Kc as mt,Lc as N,Mb as dt,Nb as C,Sb as G,Sc as pt,Tb as u,Vb as ct,Vc as b,Yb as _,ac as M,bc as n,cc as r,da as _t,dc as m,fa as yt,gb as Mt,ha as st,hc as wt,ka as p,kc as v,lb as l,mb as B,mc as T,nc as R,oc as L,pc as Dt,pe as z,qc as Ft,rc as ut,sb as Tt,sc as gt,ta as Ct,ua as xt,ub as g,vb as It,wb as St,wc as V,xb as f,xc as s,yc as x,zc as I}from"./chunk-TEKHUYWQ.js";var it=class extends Q{constructor(){super({start:new E,end:new E})}};function pe(e,c){e&1&&s(0," Data inicial ")}function be(e,c){e&1&&s(0," Data final ")}var Ke=(()=>{class e{rangeChange=y();form=new it;constructor(){this.form.valueChanges.pipe(Xt()).subscribe(t=>{t.start instanceof Date&&t.end instanceof Date&&this.rangeChange.emit(this.form.getRawValue())})}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=g({type:e,selectors:[["devmx-event-date-range"]],outputs:{rangeChange:"rangeChange"},features:[A([Rt()])],decls:11,vars:5,consts:[["picker",""],[3,"formGroup","rangePicker"],["matStartDate","","formControlName","start","placeholder","Data inicial"],["matEndDate","","formControlName","end","placeholder","Data final"],["matIconSuffix","",3,"for"]],template:function(a,o){if(a&1&&(n(0,"mat-form-field")(1,"mat-date-range-input",1),m(2,"input",2)(3,"input",3),r(),m(4,"mat-datepicker-toggle",4)(5,"mat-date-range-picker",null,0),n(7,"mat-error"),C(8,pe,1,0)(9,be,1,0),s(10," inv\xE1lida "),r()()),a&2){let i=V(6);l(),u("formGroup",o.form)("rangePicker",i),l(3),u("for",i),l(4),_(o.form.controls.start.hasError("matStartDateInvalid")?8:-1),l(),_(o.form.controls.end.hasError("matEndDateInvalid")?9:-1)}},dependencies:[$,H,j,Wt,Zt,Jt,jt,Ht,zt,Ut,le,ae,ie,oe,ne,re],encapsulation:2,changeDetection:0})}return e})();var ve=(e,c)=>c.id,_e=e=>[e],ye=e=>({right:e}),Ce=e=>({outlets:e}),xe=e=>["/","eventos",e];function ke(e,c){if(e&1&&(n(0,"a",1),m(1,"devmx-icon",2),n(2,"div",3),s(3),r(),n(4,"div",4),s(5),S(6,"date"),r()()),e&2){let t=c.$implicit;u("routerLink",D(12,xe,D(10,Ce,D(8,ye,D(6,_e,t.id))))),l(3),x(t.title),l(2),x(N(6,3,t.date,"longDate"))}}var sa=(()=>{class e{data=P([]);static \u0275fac=function(a){return new(a||e)};static \u0275cmp=g({type:e,selectors:[["devmx-event-card-list"]],inputs:{data:[1,"data"]},decls:7,vars:0,consts:[[1,"events-card"],["mat-list-item","",3,"routerLink"],["matListItemIcon","","name","calendar"],["matListItemTitle",""],["matListItemLine",""]],template:function(a,o){a&1&&(n(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),s(3,"Eventos"),r()(),n(4,"mat-list"),k(5,ke,7,14,"a",1,ve),r()()),a&2&&(l(5),M(o.data()))},dependencies:[nt,et,ot,at,J,Y,Z,W,Kt,q,U,z,Pt],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] a[_ngcontent-%COMP%]:link{cursor:pointer}"],changeDetection:0})}return e})();var Te=(e,c)=>c.value;function Ie(e,c){if(e&1&&(n(0,"mat-chip-option",1),s(1),r()),e&2){let t=c.$implicit;u("value",t.value),l(),I(" ",t.viewValue," ")}}var pa=(()=>{class e{filterChange=y();formats=[{value:"in-person",viewValue:"Presencial"},{value:"online",viewValue:"Online"},{value:"mixed",viewValue:"H\xEDbrido"}];static \u0275fac=function(a){return new(a||e)};static \u0275cmp=g({type:e,selectors:[["devmx-event-filter"]],outputs:{filterChange:"filterChange"},decls:3,vars:0,consts:[[3,"change"],[3,"value"]],template:function(a,o){a&1&&(n(0,"mat-chip-listbox",0),v("change",function(d){return o.filterChange.emit(d.value)}),k(1,Ie,2,2,"mat-chip-option",1,Te),r()),a&2&&(l(),M(o.formats))},dependencies:[tt,X,K],encapsulation:2,changeDetection:0})}return e})();var Se=["button"],Ee=["*"];function we(e,c){if(e&1&&m(0,"mat-pseudo-checkbox",3),e&2){let t=T();u("disabled",t.disabled)}}function De(e,c){if(e&1&&m(0,"mat-pseudo-checkbox",3),e&2){let t=T();u("disabled",t.disabled)}}var se=new st("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Fe});function Fe(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var de=new st("MatButtonToggleGroup"),Pe={provide:$t,useExisting:_t(()=>vt),multi:!0},rt=class{source;value;constructor(c,t){this.source=c,this.value=t}},vt=(()=>{class e{_changeDetector=p(pt);_dir=p(Gt,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}_name=p(bt).getId("mat-button-toggle-group-");vertical;get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(a=>a.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}valueChange=new F;get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new F;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let t=p(se,{optional:!0});this.appearance=t&&t.appearance?t.appearance:"standard",this.hideSingleSelectionIndicator=t?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=t?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Qt(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled)return;let o=t.target.id,i=this._buttonToggles.toArray().findIndex(w=>w.buttonId===o),d=null;switch(t.keyCode){case 32:case 13:d=this._buttonToggles.get(i)||null;break;case 38:d=this._getNextButton(i,-1);break;case 37:d=this._getNextButton(i,this.dir==="ltr"?-1:1);break;case 40:d=this._getNextButton(i,1);break;case 39:d=this._getNextButton(i,this.dir==="ltr"?1:-1);break;default:return}d&&(t.preventDefault(),d._onButtonClick(),d.focus())}_emitChangeEvent(t){let a=new rt(t,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(t,a,o=!1,i=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(t):this._selectionModel.deselect(t):i=!0,i?Promise.resolve().then(()=>this._updateModelValue(t,o)):this._updateModelValue(t,o)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>t.value!=null&&a===t.value):t.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let t=0;tthis._selectValue(a))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t){let a=this._buttonToggles.find(o=>o.value!=null&&o.value===t);a&&(a.checked=!0,this._selectionModel.select(a),this.multiple||(a.tabIndex=0))}_updateModelValue(t,a){a&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}static \u0275fac=function(a){return new(a||e)};static \u0275dir=St({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,o,i){if(a&1&&Dt(i,lt,5),a&2){let d;ut(d=gt())&&(o._buttonToggles=d)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,o){a&1&&v("keydown",function(d){return o._keydown(d)}),a&2&&(G("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),ct("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",b],value:"value",multiple:[2,"multiple","multiple",b],disabled:[2,"disabled","disabled",b],disabledInteractive:[2,"disabledInteractive","disabledInteractive",b],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",b],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",b]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[A([Pe,{provide:de,useExisting:e}]),dt]})}return e})(),lt=(()=>{class e{_changeDetectorRef=p(pt);_elementRef=p(O);_focusMonitor=p(Bt);_idGenerator=p(bt);_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex}set tabIndex(t){this._tabIndex=t,this._markForCheck()}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}_disabledInteractive;change=new F;constructor(){p(Ot).load(Lt);let t=p(de,{optional:!0}),a=p(new kt("tabindex"),{optional:!0}),o=p(se,{optional:!0}),i=Number(a);this.tabIndex=i||i===0?i:null,this.buttonToggleGroup=t,this.appearance=o&&o.appearance?o.appearance:"standard",this.disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){if(this.disabled)return;let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new rt(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=g({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(a,o){if(a&1&&Ft(Se,5),a&2){let i;ut(i=gt())&&(o._buttonElement=i.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(a,o){a&1&&v("focus",function(){return o.focus()}),a&2&&(G("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),ct("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-disabled-interactive",o.disabledInteractive)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",b],appearance:"appearance",checked:[2,"checked","checked",b],disabled:[2,"disabled","disabled",b],disabledInteractive:[2,"disabledInteractive","disabledInteractive",b]},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[dt],ngContentSelectors:Ee,decls:8,vars:14,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(a,o){if(a&1){let i=wt();R(),n(0,"button",1,0),v("click",function(){return Ct(i),xt(o._onButtonClick())}),n(2,"span",2),C(3,we,1,1,"mat-pseudo-checkbox",3)(4,De,1,1,"mat-pseudo-checkbox",3),L(5),r()(),m(6,"span",4)(7,"span",5)}if(a&2){let i=V(1);u("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),G("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),l(3),_(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),l(),_(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),l(3),u("matRippleTrigger",i)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Vt,Nt],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-legacy-button-toggle-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-legacy-button-toggle-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-standard-button-toggle-background-color, transparent);font-family:var(--mat-standard-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-standard-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-standard-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-standard-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-standard-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-standard-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}"],encapsulation:2,changeDetection:0})}return e})(),ce=(()=>{class e{static \u0275fac=function(a){return new(a||e)};static \u0275mod=It({type:e});static \u0275inj=yt({imports:[ht,At,lt,ht]})}return e})();var Wa=(()=>{class e extends H{ngControl;statusChange=y();get control(){return this.ngControl.control}constructor(t,a,o){super(t,a,!0),this.ngControl=o,this.ngControl.valueAccessor=this}static \u0275fac=function(a){return new(a||e)(B(Tt),B(O),B(qt,10))};static \u0275cmp=g({type:e,selectors:[["devmx-rsvp-button"]],outputs:{statusChange:"statusChange"},features:[Et],decls:7,vars:1,consts:[["aria-label","Presen\xE7a",1,"button-group",3,"change","formControl"],["value","confirmed"],["value","declined"],["value","maybe"]],template:function(a,o){a&1&&(n(0,"mat-button-toggle-group",0),v("change",function(){return o.statusChange.emit()}),n(1,"mat-button-toggle",1),s(2,"Vou!"),r(),n(3,"mat-button-toggle",2),s(4,"N\xE3o vou"),r(),n(5,"mat-button-toggle",3),s(6,"Talvez"),r()()),a&2&&u("formControl",o.control)},dependencies:[$,j,Yt,ce,vt,lt],encapsulation:2,changeDetection:0})}return e})();var ue=(()=>{class e{transform(t){switch(t){case"in-person":return"Presencial";case"online":return"Online";case"mixed":return"H\xEDbrido"}}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=f({name:"eventFormat",type:e,pure:!0})}return e})();var Ja=(()=>{class e{transform(t,a){return t.find(o=>o.user.id===a)??null}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=f({name:"findInRSVP",type:e,pure:!0})}return e})();var Xa=(()=>{class e{transform(t,a){return t.filter(o=>o.status===a)}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=f({name:"rsvpByStatus",type:e,pure:!0})}return e})();var eo=(()=>{class e{transform(t){return["in-person","mixed"].includes(t)}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=f({name:"showEventAddress",type:e,pure:!0})}return e})();var oo=(()=>{class e{transform(t){return["online","mixed"].includes(t)}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=f({name:"showEventLink",type:e,pure:!0})}return e})();var Be=["*"];function Ge(e,c){if(e&1&&m(0,"img",1),e&2){let t=T();u("src",t.event.cover,Mt)("alt",t.event.title)}}function Re(e,c){if(e&1&&(n(0,"mat-list-item"),m(1,"devmx-icon",3),n(2,"div",4),s(3),S(4,"eventFormat"),r()(),n(5,"mat-list-item"),m(6,"devmx-icon",5),n(7,"div",4),s(8),S(9,"date"),r()(),n(10,"mat-list-item"),m(11,"devmx-icon",6),n(12,"div",4),s(13),S(14,"date"),r()()),e&2){let t=T();l(3),x(mt(4,3,t.event.format)),l(5),I("",N(9,5,t.event.date,"shortTime"),"h"),l(5),x(mt(14,8,t.event.date))}}var po=(()=>{class e{data=P.required();get event(){return this.data()}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=g({type:e,selectors:[["devmx-event-card"]],inputs:{data:[1,"data"]},ngContentSelectors:Be,decls:9,vars:3,consts:[[1,"event-card"],["mat-card-image","",3,"src","alt"],["align","end",1,"event-card-actions"],["matListItemIcon","","name","transport/flag-pin"],["matListItemTitle",""],["matListItemIcon","","name","alarm-clock-alert"],["matListItemIcon","","name","calendar"]],template:function(a,o){a&1&&(R(),n(0,"mat-card",0),C(1,Ge,1,2,"img",1),n(2,"mat-card-header")(3,"mat-card-title"),s(4),r()(),n(5,"mat-list"),C(6,Re,15,10),r(),n(7,"mat-card-actions",2),L(8),r()()),a&2&&(l(),_(o.event.cover?1:-1),l(3),x(o.event.title),l(2),_(o.event.date?6:-1))},dependencies:[nt,et,te,ot,ee,at,J,Y,Z,W,q,ue,U,z],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;flex:1}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;max-width:100%}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%] .event-address[_ngcontent-%COMP%] .mdc-list-item__primary-text[_ngcontent-%COMP%]{max-width:calc(100% - 4em)}[_nghost-%COMP%] .event-card-header[_ngcontent-%COMP%]{padding-bottom:1em}[_nghost-%COMP%] .event-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{gap:.4em;display:flex;line-height:1;align-items:center}[_nghost-%COMP%] .event-card-content[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%]:active, [_nghost-%COMP%] .event-card[_ngcontent-%COMP%]:hover{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}[_nghost-%COMP%] .event-card-actions[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})}return e})();var Le=(e,c)=>c.value;function Ve(e,c){if(e&1&&(n(0,"mat-chip-option",1),s(1),r()),e&2){let t=c.$implicit;u("value",t.value),l(),I(" ",t.viewValue," ")}}var yo=(()=>{class e{timeChange=y();times=[{value:"",viewValue:"Chegando"},{value:"until",viewValue:"Passados"}];static \u0275fac=function(a){return new(a||e)};static \u0275cmp=g({type:e,selectors:[["devmx-event-time"]],outputs:{timeChange:"timeChange"},decls:3,vars:0,consts:[[3,"change"],[3,"value"]],template:function(a,o){a&1&&(n(0,"mat-chip-listbox",0),v("change",function(d){return o.timeChange.emit(d.value)}),k(1,Ve,2,2,"mat-chip-option",1,Le),r()),a&2&&(l(),M(o.times))},dependencies:[tt,X,K],encapsulation:2,changeDetection:0})}return e})();var ge=class extends Q{constructor(){super({event:new E("",{nonNullable:!0,validators:[ft.required]}),status:new E("",{nonNullable:!0,validators:[ft.required]})})}};export{it as a,Ke as b,sa as c,pa as d,Wa as e,ue as f,Ja as g,Xa as h,eo as i,oo as j,po as k,yo as l,ge as m}; diff --git a/chunk-DLV4PZL6.js b/chunk-DLV4PZL6.js deleted file mode 100644 index 500ad3da..00000000 --- a/chunk-DLV4PZL6.js +++ /dev/null @@ -1 +0,0 @@ -import{a as Oe,b as Me}from"./chunk-MAALDF7A.js";import{a as le}from"./chunk-6STDPPRP.js";import{a as oe}from"./chunk-KAZRQD4G.js";import"./chunk-ZQOXWN4S.js";import{a as L}from"./chunk-AD4TXQD3.js";import{b as ie}from"./chunk-RRBYVHNZ.js";import{a as me,b as pe}from"./chunk-4422JARR.js";import{a as ce,b as se,c as ve}from"./chunk-IIJ56NAR.js";import{a as de}from"./chunk-WK53HQNR.js";import{a as I}from"./chunk-ZHS65JNW.js";import{c as re}from"./chunk-VYHC3V3G.js";import"./chunk-3I45H2NO.js";import{a as S,c as ae}from"./chunk-WBTUXFAS.js";import"./chunk-R66KDUEB.js";import"./chunk-MLNPCJDD.js";import"./chunk-UOTKRQ63.js";import"./chunk-BJXILAOS.js";import"./chunk-2IAXMR6M.js";import{a as ye}from"./chunk-TZR6QHL3.js";import"./chunk-5DAHKZ7F.js";import{a as M}from"./chunk-A3N3AUUJ.js";import{C as ee,H as te,I as ne}from"./chunk-4FWBEGAE.js";import"./chunk-HGOTYYGI.js";import"./chunk-2K6IALUF.js";import{g as D,i as F,j as w,p as b}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import{a as W,e as K,f as X,g as Y,l as Z}from"./chunk-PAP2P7QR.js";import{a as fe,b as ge,c as _e,d as ue,e as Ce,f as xe,h as he,i as be}from"./chunk-EC6LD5KM.js";import{a as G}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as q,Ba as z,F as R,Hc as O,Jc as p,Kc as c,Nb as f,Ob as E,Pb as H,Rb as $,Tb as d,Yb as g,a as J,ac as V,bc as n,cc as o,dc as r,fb as P,gb as T,hc as U,je as N,ka as s,kc as j,lb as i,mc as _,t as k,ta as B,ua as A,ub as h,we as Q,xc as m,yc as y,zc as x}from"./chunk-TEKHUYWQ.js";function Te(t,l){if(t&1&&(n(0,"mat-list-item"),r(1,"devmx-icon",15),n(2,"span",8),m(3),o()()),t&2){let e=_();i(3),y(e.company)}}function Ee(t,l){if(t&1&&(m(0),p(1,"currency")),t&2){let e=_(2);x(" ",c(1,1,e.salary==null?null:e.salary.min)," ")}}function Ie(t,l){t&1&&m(0," ~ ")}function Le(t,l){if(t&1&&(m(0),p(1,"currency")),t&2){let e=_(2);x(" ",c(1,1,e.salary==null?null:e.salary.max)," ")}}function ke(t,l){if(t&1&&(n(0,"mat-list-item"),r(1,"devmx-icon",16),n(2,"div",8),f(3,Ee,2,3)(4,Ie,1,0)(5,Le,2,3),o()()),t&2){let e=_();i(3),g(e.salary!=null&&e.salary.min?3:-1),i(),g(e.salary!=null&&e.salary.min&&(e.salary!=null&&e.salary.max)?4:-1),i(),g(e.salary!=null&&e.salary.max?5:-1)}}function Re(t,l){if(t&1&&(n(0,"mat-card-actions",12)(1,"a",17),r(2,"devmx-icon",18),n(3,"span"),m(4,"Candidatar-se"),o()()()),t&2){let e=_();i(),d("href",e.link,T)}}function Be(t,l){if(t&1&&(n(0,"mat-card-content")(1,"h3"),m(2,"Benef\xEDcios"),o(),r(3,"div",13),p(4,"markdown"),p(5,"html"),o()),t&2){let e=_();i(3),d("innerHTML",c(5,3,c(4,1,e.benefits)),P)}}function Ae(t,l){if(t&1&&(n(0,"mat-card",0)(1,"mat-card-header",1)(2,"a",2),r(3,"devmx-icon",3),o(),n(4,"mat-card-title",4),m(5),o(),n(6,"mat-card-subtitle"),m(7),o(),n(8,"a",5),r(9,"devmx-icon",6),o()(),n(10,"mat-list"),f(11,Te,4,1,"mat-list-item"),n(12,"mat-list-item"),r(13,"devmx-icon",7),n(14,"div",8),m(15),p(16,"jobMode"),o()(),n(17,"mat-list-item"),r(18,"devmx-icon",9),n(19,"div",8),m(20),o()(),n(21,"mat-list-item"),r(22,"devmx-icon",10),n(23,"div",8),m(24),p(25,"jobLevel"),o()(),n(26,"mat-list-item"),r(27,"devmx-icon",11),n(28,"div",8),m(29),p(30,"jobType"),o()(),f(31,ke,6,3,"mat-list-item"),o(),f(32,Re,5,1,"mat-card-actions",12),n(33,"mat-card-content")(34,"h3"),m(35,"Detalhes"),o(),r(36,"div",13),p(37,"markdown"),p(38,"html"),o(),n(39,"mat-card-content")(40,"h3"),m(41,"Requisitos"),o(),r(42,"div",13),p(43,"markdown"),p(44,"html"),o(),f(45,Be,6,5,"mat-card-content"),n(46,"mat-card-header"),r(47,"img",14),p(48,"photo"),n(49,"mat-card-title"),m(50),o(),n(51,"mat-card-subtitle"),m(52," Organizador "),o()()()),t&2){let e=l;i(5),x(" ",e.title," "),i(2),x("Vaga ",e.active?"aberta":"fechada",""),i(4),g(e.company?11:-1),i(4),y(c(16,15,e.mode)),i(5),x("Contrato ",e.contract,""),i(4),y(c(25,17,e.experience)),i(5),y(c(30,19,e.type)),i(2),g(e.salary!=null&&e.salary.min||e.salary!=null&&e.salary.max?31:-1),i(),g(e.link?32:-1),i(4),d("innerHTML",c(38,23,c(37,21,e.description)),P),i(6),d("innerHTML",c(44,27,c(43,25,e.requirements)),P),i(3),g(e.benefits?45:-1),i(2),d("src",c(48,29,e.owner.profile==null?null:e.owner.profile.photo),T)("alt",e.owner.displayName),i(3),x(" ",e.owner.displayName," ")}}var je=(()=>{class t{route=s(D);jobOpening$=this.route.data.pipe(R(e=>"jobOpening"in e),k(e=>e.jobOpening));static \u0275fac=function(a){return new(a||t)};static \u0275cmp=h({type:t,selectors:[["devmx-job-opening-details"]],decls:2,vars:3,consts:[[1,"job-opening-card"],[1,"job-opening-card-header","sticky"],["mat-card-avatar","","routerLink","..","mat-icon-button",""],["name","arrow/left"],[1,"event-card-header-title"],["routerLink","..","mat-icon-button",""],["name","close-cross"],["matListItemIcon","","name","transport/location-pin-alt"],["matListItemTitle",""],["matListItemIcon","","name","doc/check"],["matListItemIcon","","name","doc/shield"],["matListItemIcon","","name","time-loading"],[1,"job-opening-card-actions"],[3,"innerHTML"],["mat-card-avatar","",3,"src","alt"],["matListItemIcon","","name","building/building"],["matListItemIcon","","name","finance/money"],["target","_blank","rel","noopener noreferrer","mat-stroked-button","",3,"href"],["name","external-link"]],template:function(a,u){if(a&1&&(f(0,Ae,53,31,"mat-card",0),p(1,"async")),a&2){let C;g((C=c(1,1,u.jobOpening$))?0:-1,C)}},dependencies:[b,w,be,fe,Ce,he,_e,xe,ue,ge,Z,X,Y,K,W,ne,ee,te,G,Q,ce,de,se,Oe,Me,le,N],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .job-opening-card[_ngcontent-%COMP%]{height:100%;box-shadow:none;position:relative}[_nghost-%COMP%] .job-opening-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-weight:600;font-size:1.2em}[_nghost-%COMP%] .job-opening-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-line;line-height:1.2em;word-wrap:break-word}[_nghost-%COMP%] .job-opening-card-header[_ngcontent-%COMP%]{justify-content:space-between}[_nghost-%COMP%] .job-opening-card-header[_ngcontent-%COMP%] .mat-mdc-card-header-text{flex:1;justify-self:flex-start}[_nghost-%COMP%] .job-opening-card-actions[_ngcontent-%COMP%] .mdc-button__label{gap:.6em;display:flex;align-items:center}"],changeDetection:0})}return t})();var ze=(t,l)=>l.id,He=()=>[re,I,import("./chunk-QQ3DFMVY.js").then(t=>t.AsyncPipe)],$e=()=>[ve,w],qe=t=>[t],Ve=t=>({right:t}),Ue=t=>({outlets:t}),Ne=t=>["/","carreiras",t];function Qe(t,l){if(t&1&&(n(0,"a",4),r(1,"devmx-job-opening-card",5),o()),t&2){let e=_().$implicit;d("routerLink",O(8,Ne,O(6,Ue,O(4,Ve,O(2,qe,e.id))))),i(),d("data",e)}}function Ge(t,l){t&1&&r(0,"devmx-skeleton",6),t&2&&d("rows",3)}function We(t,l){t&1&&(f(0,Qe,2,10)(1,Ge,1,1),E(2,0,$e,null,1),$(0,-1))}function Ke(t,l){if(t&1){let e=U();n(0,"div",1),q(1,We,4,0,null,null,ze),o(),r(3,"div",2),n(4,"footer")(5,"devmx-paginator",3),j("pageChange",function(u){B(e);let C=_(2);return A(C.onPageChange(u))}),o()()}if(t&2){let e=l;i(),V(e.data),i(4),d("size",10)("items",e.items)}}function Xe(t,l){if(t&1&&(f(0,Ke,6,2),p(1,"async")),t&2){let e,a=_();g((e=c(1,1,a.jobOpeningFacade.response$))?0:-1,e)}}function Ye(t,l){t&1&&(n(0,"div",7),r(1,"devmx-skeleton",6)(2,"devmx-skeleton",6)(3,"devmx-skeleton",6),o()),t&2&&(i(),d("rows",3),i(),d("rows",2),i(),d("rows",3))}var De=(()=>{class t{jobOpeningFacade=s(S);router=s(F);route=s(D);constructor(){this.route.queryParams.pipe(M()).subscribe(this.onQueryParams)}onQueryParams=e=>{let{page:a=0,size:u=10}=e,{experience:C="",mode:v=""}=e,Se={experience:C,mode:v};this.jobOpeningFacade.setParams({page:a,size:u,filter:Se}),this.jobOpeningFacade.load()};onExperienceFilterChange(e){let a=this.mergeParams({experience:e});this.router.navigate([],{queryParams:a})}onModeFilterChange(e){let a=this.mergeParams({mode:e});this.router.navigate([],{queryParams:a})}mergeParams(e){return J(J({},this.route.snapshot.queryParams),e)}onPageChange(e){this.router.navigate([],{queryParams:e})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=h({type:t,selectors:[["devmx-job-openings"]],decls:8,vars:0,consts:[[3,"filterChange"],[1,"job-openings-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[1,"job-opening-card",3,"data"],[3,"rows"],[1,"events-container"]],template:function(a,u){a&1&&(n(0,"header")(1,"div")(2,"devmx-job-opening-experience-filter",0),j("filterChange",function(v){return u.onExperienceFilterChange(v)}),o(),n(3,"devmx-job-opening-mode-filter",0),j("filterChange",function(v){return u.onModeFilterChange(v)}),o()()(),f(4,Xe,2,3)(5,Ye,4,3),E(6,4,He,null,5),H(500))},dependencies:[me,pe,I,b],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;padding:.4em .8em}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%] .job-opening-card[_ngcontent-%COMP%]{width:100%;max-width:100%;box-sizing:border-box}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return t})();var Fe=(()=>{class t{router=s(F);destroyRef=s(z);authFacade=s(ye);layoutFacade=s(ie);ngOnInit(){this.authFacade.auth$.pipe(M(this.destroyRef)).subscribe(e=>{e&&(this.layoutFacade.loadNavLinks(e.roles),this.waitingForLogout())}),this.authFacade.load()}waitingForLogout(){this.authFacade.auth$.pipe(M(this.destroyRef)).subscribe(e=>{e===null&&(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=h({type:t,selectors:[["devmx-career-feature-shell"]],decls:1,vars:0,template:function(a,u){a&1&&r(0,"devmx-layout")},dependencies:[b,oe],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();var we=t=>ae(s(S),t.params);var Wt=[{path:"",data:{breadcrumb:"Carreiras"},canActivate:[L("member")],component:Fe,children:[{path:"administracao",canActivate:[L("recruiter","director","manager","staff")],loadChildren:()=>import("./chunk-3H7JVFAU.js").then(t=>t.careerFeatureAdminRoutes)},{path:"",title:"Carreiras",component:De},{path:":id",data:{breadcrumb:t=>t.jobOpening.title},title:"Vaga",resolve:{jobOpening:we},component:je,outlet:"right"}]}];export{Fe as CareerFeatureShellComponent,Wt as careerFeatureShellRoutes}; diff --git a/chunk-F2BR4OZZ.js b/chunk-F2BR4OZZ.js new file mode 100644 index 00000000..2c6ee8a5 --- /dev/null +++ b/chunk-F2BR4OZZ.js @@ -0,0 +1 @@ +import{a as je}from"./chunk-56M6HFOE.js";import{a as Ne,b as $e,c as Ae,e as Ue,f as Be,g as Re}from"./chunk-73QBZNVE.js";import{c as Oe}from"./chunk-BLJCB4Q7.js";import{a as Se,b as we}from"./chunk-2XST3EDK.js";import{a as re}from"./chunk-JNB3NYAZ.js";import{d as Ve,e as ze}from"./chunk-VVQ6JEVH.js";import{b as De,c as Fe,d as be,e as Te,f as L}from"./chunk-HGOTYYGI.js";import{b as ne,i as oe,j as ae}from"./chunk-AND6K73U.js";import{a as ye}from"./chunk-A3N3AUUJ.js";import{e as ee,j as te,q as ve,x as Pe}from"./chunk-6BGAZ7SQ.js";import{a as ue,b as ge,e as Ce,f as he,g as _e,h as xe,k as Me,l as y}from"./chunk-PAP2P7QR.js";import{a as V,b as z,c as Ee,d as ke,e as Ie,f as N,g as Le,i as $}from"./chunk-EC6LD5KM.js";import{a as k,c as se,h as le,i as me,j as pe,l as R,m as ce,p as de,s as fe,x as I}from"./chunk-EDIJ2EBQ.js";import{na as ie}from"./chunk-W5KNOAKV.js";import{$b as c,Ha as F,Hc as O,Ia as x,J as j,Jc as h,Kc as _,L as G,Nb as T,Tb as m,Yb as E,_b as J,ac as d,bc as n,cc as o,dc as u,gb as H,hb as q,hc as K,je as Z,ka as D,kc as M,lb as s,mb as W,mc as g,nc as Q,oc as X,ta as S,ua as w,ub as p,wc as Y,xb as b,xc as l,yc as v,zc as C}from"./chunk-TEKHUYWQ.js";var A=(()=>{class e{transform(t){switch(t){case"talk":return"Palestra";case"workshop":return"Workshop";case"webinar":return"Semin\xE1rio online"}}static \u0275fac=function(i){return new(i||e)};static \u0275pipe=b({name:"presentationFormat",type:e,pure:!0})}return e})();var Ke=(e,r)=>r.id,Qe=e=>[e],Xe=e=>({right:e}),Ye=e=>({outlets:e}),Ze=e=>["/","apresentacoes",e];function et(e,r){if(e&1&&(n(0,"a",1),u(1,"devmx-icon",2),n(2,"div",3),l(3),o(),n(4,"div",4),l(5),h(6,"presentationFormat"),o()()),e&2){let t=r.$implicit;m("routerLink",O(11,Ze,O(9,Ye,O(7,Xe,O(5,Qe,t.id))))),s(3),v(t.title),s(2),v(_(6,3,t.format))}}var vt=(()=>{class e{data=x([]);static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-presentation-card-list"]],inputs:{data:[1,"data"]},decls:7,vars:0,consts:[[1,"presentations-card"],["mat-list-item","",3,"routerLink"],["matListItemIcon","","name","presentation"],["matListItemTitle",""],["matListItemLine",""]],template:function(i,a){i&1&&(n(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),l(3,"Apresenta\xE7\xF5es"),o()(),n(4,"mat-list"),c(5,et,7,13,"a",1,Ke),o()()),i&2&&(s(5),d(a.data()))},dependencies:[$,V,N,z,y,he,_e,Ce,ge,ue,k,A,te],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] a[_ngcontent-%COMP%]:link{cursor:pointer}"],changeDetection:0})}return e})();var it=(e,r)=>r.value;function nt(e,r){if(e&1&&(n(0,"mat-chip-option",1),l(1),o()),e&2){let t=r.$implicit;m("value",t.value),s(),C(" ",t.viewValue," ")}}var Dt=(()=>{class e{filterChange=F();formats=[{value:"talk",viewValue:"Palestra"},{value:"workshop",viewValue:"Oficina"},{value:"webinar",viewValue:"Semin\xE1rio"}];static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-presentation-filter"]],outputs:{filterChange:"filterChange"},decls:3,vars:0,consts:[[3,"change"],[3,"value"]],template:function(i,a){i&1&&(n(0,"mat-chip-listbox",0),M("change",function(qe){return a.filterChange.emit(qe.value)}),c(1,nt,2,2,"mat-chip-option",1,it),o()),i&2&&(s(),d(a.formats))},dependencies:[L,Te,Fe],encapsulation:2,changeDetection:0})}return e})();var U=class extends pe{formats=[{value:"talk",viewValue:"Palestra"},{value:"workshop",viewValue:"Oficina"},{value:"webinar",viewValue:"Semin\xE1rio online"}];constructor(){super({title:new R("",{nonNullable:!0}),format:new R("talk",{nonNullable:!0})})}};var ot=(e,r)=>r.value;function at(e,r){if(e&1&&(n(0,"mat-option",3),l(1),o()),e&2){let t=r.$implicit;m("value",t.value),s(),C(" ",t.viewValue," ")}}var qt=(()=>{class e{form=new U;valueChange=F();constructor(){this.form.valueChanges.pipe(ye(),j(300)).subscribe(()=>{let t=this.form.getRawValue();this.valueChange.emit(t)})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-presentation-search"]],outputs:{valueChange:"valueChange"},decls:11,vars:1,consts:[[3,"formGroup"],["matInput","","formControlName","title"],["formControlName","format"],[3,"value"]],template:function(i,a){i&1&&(n(0,"form",0)(1,"mat-form-field")(2,"mat-label"),l(3,"T\xEDtulo"),o(),u(4,"input",1),o(),n(5,"mat-form-field")(6,"mat-label"),l(7,"Formato"),o(),n(8,"mat-select",2),c(9,at,2,2,"mat-option",3,ot),o()()()),i&2&&(m("formGroup",a.form),s(9),d(a.form.formats))},dependencies:[I,ce,se,le,me,de,fe,ae,oe,ne,we,Se,ie,ze,Ve],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:row}"],changeDetection:0})}return e})();var Ge=(()=>{class e{sanitizer;constructor(t){this.sanitizer=t}transform(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)}static \u0275fac=function(i){return new(i||e)(W(ee,16))};static \u0275pipe=b({name:"safeUrl",type:e,pure:!0})}return e})();var ei=(()=>{class e{data=x.required();get presentation(){return this.data()}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-presentation-embed"]],inputs:{data:[1,"data"]},decls:2,vars:4,consts:[["scrolling","no","frameborder","0","webkitallowfullscreen","","mozallowfullscreen","","allowfullscreen","",3,"src","title"]],template:function(i,a){i&1&&(u(0,"iframe",0),h(1,"safeUrl")),i&2&&m("src",_(1,2,a.presentation.link+"/embed?style=light"),q)("title",a.presentation.title)},dependencies:[Ge],styles:["[_nghost-%COMP%]{position:relative;width:100%;padding-top:56.25%;overflow:hidden}[_nghost-%COMP%] iframe[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;border:0;aspect-ratio:16/9;padding-top:0}"],changeDetection:0})}return e})();var rt=["*"];function st(e,r){if(e&1&&u(0,"img",1),e&2){let t=g();m("src",t.presentation.cover,H)("alt",t.presentation.title)}}function lt(e,r){if(e&1&&(n(0,"mat-chip"),l(1),o()),e&2){let t=r.$implicit;s(),C(" ",t," ")}}var pi=(()=>{class e{data=x.required();discrete=x(!1);get presentation(){return this.data()}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-presentation-card"]],inputs:{data:[1,"data"],discrete:[1,"discrete"]},ngContentSelectors:rt,decls:19,vars:7,consts:[[1,"presentation-card"],["mat-card-image","",3,"src","alt"],[1,"presentation-card-content"],["aria-label","Hashtags"],[1,"presentation-card-header"],["name","user-circle",3,"size"],["align","end",1,"presentation-card-actions"]],template:function(i,a){i&1&&(Q(),n(0,"mat-card",0),T(1,st,1,2,"img",1),n(2,"mat-card-header")(3,"mat-card-title"),l(4),o(),n(5,"mat-card-subtitle"),l(6),h(7,"presentationFormat"),o()(),n(8,"mat-card-content",2)(9,"mat-chip-set",3),c(10,lt,2,1,"mat-chip",null,J),o()(),n(12,"mat-card-header",4)(13,"mat-card-subtitle"),u(14,"devmx-icon",5),n(15,"span"),l(16),o()()(),n(17,"mat-card-actions",6),X(18),o()()),i&2&&(s(),E(a.presentation.cover?1:-1),s(3),v(a.presentation.title),s(2),v(_(7,5,a.presentation.format)),s(4),d(a.presentation.tags),s(4),m("size",18),s(2),v(a.presentation.owner.displayName))},dependencies:[$,V,Ie,Ee,N,Le,ke,z,y,k,L,De,be,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;flex:1}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;max-width:calc(33vw - 1em)}@media (max-width: 1278px){[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]{max-width:calc(50vw - 2em)}}@media (max-width: 767px){[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]{max-width:calc(100vw - 3em)}}[_nghost-%COMP%] .presentation-card-header[_ngcontent-%COMP%]{padding-bottom:1em}[_nghost-%COMP%] .presentation-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{gap:.4em;display:flex;line-height:1;align-items:center}[_nghost-%COMP%] .presentation-card-content[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]:active, [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]:hover{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}[_nghost-%COMP%] .presentation-card-content[_ngcontent-%COMP%]{padding:1em}[_nghost-%COMP%] .presentation-card-content[_ngcontent-%COMP%]:empty{display:none}[_nghost-%COMP%] .presentation-card-actions[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})}return e})();var mt=(e,r)=>r.id;function pt(e,r){if(e&1&&(n(0,"mat-list-option",5),l(1),o()),e&2){let t=r.$implicit;m("value",t),s(),C(" ",t.title," ")}}function ct(e,r){if(e&1){let t=K();n(0,"mat-dialog-content",2)(1,"devmx-search-field",3),M("searchChange",function(a){S(t);let f=g();return w(f.onSearchChange(a))}),o(),n(2,"mat-selection-list",4,0),c(4,pt,2,2,"mat-list-option",5,mt),o(),n(6,"devmx-paginator",6),M("pageChange",function(a){S(t);let f=g();return w(f.onPageChange(a))}),o()(),n(7,"mat-dialog-actions",7)(8,"button",8),M("click",function(){S(t);let a=Y(3),f=g();return w(f.close(a.selectedOptions.selected))}),l(9," Selecionar "),o(),n(10,"button",9),M("click",function(){S(t);let a=g();return w(a.ref.close())}),l(11,"Cancelar"),o()()}if(e&2){let t=r,i=g();s(2),m("multiple",i.data.multiple),s(2),d(t.data),s(2),m("items",t.items)}}var He=(()=>{class e{presentationFacade=D(re);ref=D(Ne);data=D($e);search="";constructor(){this.load()}onSearchChange(t){this.search=t,this.load()}onPageChange({page:t,size:i}){this.presentationFacade.setParams({page:t,size:i}),this.load()}load(){let t={title:this.search};this.presentationFacade.setFilter(t),this.presentationFacade.load()}close(t){this.data.multiple?this.ref.close(t.map(i=>i.value)):this.ref.close(t[0].value)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-select-presentation"]],decls:4,vars:3,consts:[["presentation",""],["mat-dialog-title",""],[1,"dialog-content"],[3,"searchChange"],[1,"presentations",3,"multiple"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(i,a){if(i&1&&(n(0,"h2",1),l(1,"Encontre uma conta"),o(),T(2,ct,12,2),h(3,"async")),i&2){let f;s(2),E((f=_(3,1,a.presentationFacade.response$))?2:-1,f)}},dependencies:[I,Oe,je,Ue,Be,Re,Pe,ve,y,Me,xe,Z],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .presentations[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return e})();var B=class{dialog;constructor(r){this.dialog=r}open(r={}){return this.dialog.open(He,{data:r}).afterClosed().pipe(G(1))}};function Ti(){return{provide:B,deps:[Ae]}}export{A as a,vt as b,Dt as c,U as d,qt as e,ei as f,pi as g,He as h,B as i,Ti as j}; diff --git a/chunk-F6THDKE2.js b/chunk-F6THDKE2.js new file mode 100644 index 00000000..de9a1e91 --- /dev/null +++ b/chunk-F6THDKE2.js @@ -0,0 +1 @@ +import{a as Oe}from"./chunk-ZTJS4K5V.js";import{a as Se}from"./chunk-M5BYPXOP.js";import"./chunk-ZQOXWN4S.js";import{a as Y}from"./chunk-Q33OVU5J.js";import{h as Xe}from"./chunk-73QBZNVE.js";import"./chunk-Q2N7RZTH.js";import{b as Fe}from"./chunk-WKFJTKSD.js";import{a as W}from"./chunk-ZHS65JNW.js";import{c as be}from"./chunk-BLJCB4Q7.js";import"./chunk-2XST3EDK.js";import"./chunk-MLNPCJDD.js";import{a as Ne,b as ze,c as Ue,d as je}from"./chunk-FVH3EPWM.js";import"./chunk-UOTKRQ63.js";import{a as $e}from"./chunk-WD4JQH2Z.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import{c as w,d as De,g as we}from"./chunk-V6KASOE3.js";import"./chunk-XIUDFJWJ.js";import{a as z}from"./chunk-TPJZ2OYR.js";import"./chunk-ZTWYID37.js";import"./chunk-XYJHVZQT.js";import{b as qe,d as Qe,e as Ge,i as He,j as We,k as Ye,l as Je,m as Ke}from"./chunk-DAURILCW.js";import"./chunk-O3T3UZHL.js";import"./chunk-VVQ6JEVH.js";import"./chunk-HGOTYYGI.js";import"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as M}from"./chunk-A3N3AUUJ.js";import{g as A,i as V,j as $,p as S,r as Ee,v as Me,w as Pe,x as D}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import{a as _e,d as fe,e as Ce,f as ge,g as he,i as xe,l as ye}from"./chunk-PAP2P7QR.js";import{a as Te,b as Ie,c as ke,d as Le,f as Re,g as Be,h as Ae,i as Ve}from"./chunk-EC6LD5KM.js";import{a as N,h as le,i as ce,m as pe,p as de,s as ue,x as ve}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as P,Ba as ee,F as T,Fb as ie,Ha as te,Hc as E,Ia as Q,Jc as v,Kc as g,Lc as H,Nb as f,Ob as G,Pb as ae,Rb as oe,Tb as l,Yb as C,Yd as re,_b as L,a as j,ac as F,ba as Z,bc as a,cc as r,dc as s,gb as b,hc as R,je as me,ka as d,kc as x,lb as o,mc as u,pe as se,t as q,ta as I,u as X,ua as k,ub as h,xb as ne,xc as c,yc as y,zc as B}from"./chunk-TEKHUYWQ.js";var Ze=(()=>{class e{router=d(V);destroyRef=d(ee);authFacade=d(z);layoutFacade=d(Fe);ngOnInit(){this.authFacade.auth$.pipe(M(this.destroyRef)).subscribe(t=>{t&&(this.layoutFacade.loadNavLinks(t.roles),this.waitingForLogout())}),this.authFacade.load()}waitingForLogout(){this.authFacade.auth$.pipe(M(this.destroyRef)).subscribe(t=>{t===null&&(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=h({type:e,selectors:[["devmx-event-feature-shell"]],decls:1,vars:0,template:function(i,n){i&1&&s(0,"devmx-layout")},dependencies:[S,Se],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var et=e=>we(d(w),e.params);var tt=(()=>{class e{transform(t){switch(t){case"in-person":return"Presencial";case"online":return"Online";case"mixed":return"H\xEDbrido"}}static \u0275fac=function(i){return new(i||e)};static \u0275pipe=ne({name:"eventFormat",type:e,pure:!0})}return e})();var pt=e=>["/","evento",e];function dt(e,m){if(e&1&&s(0,"img",7),e&2){let t=u();l("src",t.cover,b)("alt",t.title)}}function ut(e,m){if(e&1&&(a(0,"mat-list-item"),s(1,"devmx-icon",16),a(2,"div",9),c(3),r()()),e&2){let t=u();o(3),y(t.address)}}function vt(e,m){if(e&1&&s(0,"devmx-maps-button",18),e&2){let t=u();l("data",t)}}function _t(e,m){if(e&1&&s(0,"devmx-youtube-button",19),e&2){let t=u();l("data",t)}}function ft(e,m){if(e&1&&(a(0,"mat-card-content",12),s(1,"devmx-calendar-button",17),f(2,vt,1,1,"devmx-maps-button",18),v(3,"showEventAddress"),f(4,_t,1,1,"devmx-youtube-button",19),v(5,"showEventLink"),s(6,"devmx-whats-app-button",20),r()),e&2){let t=m;o(),l("data",t),o(),C(g(3,4,t.format)&&t.address?2:-1),o(2),C(g(5,6,t.format)&&t.link?4:-1),o(2),l("data",t)}}function Ct(e,m){if(e&1&&(a(0,"mat-list-item"),s(1,"devmx-icon",22),a(2,"div",9),c(3),r()()),e&2){let t=m.$implicit;o(3),y(t.title)}}function gt(e,m){if(e&1&&(a(0,"mat-list")(1,"h3",21),c(2,"Apresenta\xE7\xF5es"),r(),P(3,Ct,4,1,"mat-list-item",null,L),r()),e&2){let t=u();o(3),F(t.presentations)}}function ht(e,m){if(e&1&&(a(0,"mat-list-item"),s(1,"img",23),v(2,"photo"),a(3,"div",9),c(4),r()()),e&2){let t=m.$implicit;o(),l("src",g(2,3,t==null||t.profile==null?null:t.profile.photo),b)("alt",t.displayName),o(3),y(t.displayName)}}function xt(e,m){if(e&1&&(a(0,"mat-list")(1,"h3",21),c(2,"Organizadores"),r(),P(3,ht,5,5,"mat-list-item",null,L),r()),e&2){let t=u();o(3),F(t.leaders)}}function yt(e,m){if(e&1&&(a(0,"mat-list-item"),s(1,"img",23),v(2,"photo"),a(3,"div",9),c(4),r()()),e&2){let t=m.$implicit;o(),l("src",g(2,3,t.user.profile==null?null:t.user.profile.photo),b)("alt",t.user.displayName),o(3),y(t.user.displayName)}}function Et(e,m){if(e&1){let t=R();a(0,"form",24)(1,"devmx-rsvp-button",25),x("statusChange",function(){I(t);let n=u(2);return k(n.onStatusChange())}),r()(),a(2,"mat-list")(3,"h3",21),c(4,"Presen\xE7as"),r(),P(5,yt,5,5,"mat-list-item",null,L),r()}if(e&2){let t=u(2);l("formGroup",t.rsvpForm),o(5),F(m)}}function Mt(e,m){if(e&1&&(a(0,"mat-card",0)(1,"mat-card-header",1)(2,"a",2),s(3,"devmx-icon",3),r(),a(4,"mat-card-title",4),c(5),r(),a(6,"a",5),s(7,"devmx-icon",6),r()(),f(8,dt,1,2,"img",7),a(9,"mat-list")(10,"mat-list-item"),s(11,"devmx-icon",8),a(12,"div",9),c(13),v(14,"eventFormat"),r()(),a(15,"mat-list-item"),s(16,"devmx-icon",10),a(17,"div",9),c(18),v(19,"date"),r()(),a(20,"mat-list-item"),s(21,"devmx-icon",11),a(22,"div",9),c(23),v(24,"date"),r()(),f(25,ut,4,1,"mat-list-item"),r(),f(26,ft,7,8,"mat-card-content",12),v(27,"async"),a(28,"mat-card-content"),s(29,"devmx-markdown-view",13),a(30,"a",14),c(31," Ir para p\xE1gina do evento "),r()(),f(32,gt,5,0,"mat-list")(33,xt,5,0,"mat-list")(34,Et,7,1),v(35,"async"),a(36,"mat-card-header"),s(37,"img",15),v(38,"photo"),a(39,"mat-card-title"),c(40),r(),a(41,"mat-card-subtitle"),c(42," Organizador "),r()()()),e&2){let t,i,n=m,p=u();o(5),B(" ",n.title," "),o(3),C(n.cover?8:-1),o(5),y(g(14,15,n.format)),o(5),y(H(19,17,n.date,"shortDate")),o(5),B("",H(24,20,n.date,"shortTime"),"h"),o(2),C(n.address?25:-1),o(),C((t=g(27,23,p.eventFacade.page$))?26:-1,t),o(3),l("content",n.description),o(),l("routerLink",E(29,pt,n.id)),o(2),C(n.presentations.length?32:-1),o(),C(n.leaders.length?33:-1),o(),C((i=g(35,25,p.rsvpFacade.response$))?34:-1,i),o(3),l("src",g(38,27,n.owner.profile==null?null:n.owner.profile.photo),b)("alt",n.owner.displayName),o(3),B(" ",n.owner.displayName," ")}}var nt=(()=>{class e{route=d(A);rsvpForm=new Ke;authFacade=d(z);eventFacade=d(w);rsvpFacade=d(De);event$=this.route.data.pipe(T(t=>"event"in t),q(t=>t.event),Z(t=>this.setRSVPEvent(t.id)));constructor(){let t=this.authFacade.auth$.pipe(T(n=>!!n),q(n=>n.id)),i=this.rsvpFacade.response$.pipe(T(n=>n.length>0));X([t,i]).pipe(M()).subscribe(([n,p])=>{let _=p.find(U=>U.user.id===n);_&&this.setRSVPStatus(_)})}setRSVPEvent=t=>{this.rsvpForm.patchValue({event:t}),this.rsvpFacade.loadConfirmed(t)};setRSVPStatus({status:t}){this.rsvpForm.patchValue({status:t},{emitEvent:!1})}onStatusChange(){this.rsvpForm.valid&&this.rsvpFacade.create(this.rsvpForm.getRawValue())}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=h({type:e,selectors:[["devmx-event-details"]],decls:2,vars:3,consts:[[1,"event-card"],[1,"event-card-header","sticky"],["mat-card-avatar","","routerLink","..","mat-icon-button",""],["name","arrow/left"],[1,"event-card-header-title"],["routerLink","..","mat-icon-button",""],["name","close-cross"],["mat-card-image","",3,"src","alt"],["matListItemIcon","","name","transport/flag-pin"],["matListItemTitle",""],["matListItemIcon","","name","calendar"],["matListItemIcon","","name","alarm-clock-alert"],[1,"event-card-buttons"],[3,"content"],["mat-raised-button","",3,"routerLink"],["mat-card-avatar","",3,"src","alt"],["matListItemIcon","","name","transport/map-pin"],["text","Definir lembrete",3,"data"],["text","Ver no mapa",3,"data"],["text","Assistir",3,"data"],["text","Compartilhar",3,"data"],["mat-subheader",""],["matListItemIcon","","name","presentation"],["matListItemAvatar","",3,"src","alt"],[1,"rsvp-button",3,"formGroup"],["formControlName","status",3,"statusChange"]],template:function(i,n){if(i&1&&(f(0,Mt,43,31,"mat-card",0),v(1,"async")),i&2){let p;C((p=g(1,1,n.event$))?0:-1,p)}},dependencies:[S,$,ve,pe,le,ce,de,ue,Ge,ze,Ue,Ne,je,Ve,Te,Ae,ke,Re,Be,Le,Ie,ye,ge,he,fe,Ce,xe,_e,D,Ee,Pe,N,tt,$e,He,We,Oe,me,se],styles:["[_nghost-%COMP%]{flex:1;height:100%;display:flex;flex-direction:column}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 16px;font-size:1.2em;font-weight:500;opacity:.6}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-line;line-height:1.2em;word-wrap:break-word}[_nghost-%COMP%] .event-card-header[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}[_nghost-%COMP%] .event-card-header[_ngcontent-%COMP%] .mat-mdc-card-avatar[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%] .event-card-buttons[_ngcontent-%COMP%]{gap:1em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .rsvp-button[_ngcontent-%COMP%]{padding:1em}"],changeDetection:0})}return e})();var it=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=h({type:e,selectors:[["devmx-event-home"]],decls:0,vars:0,template:function(i,n){},dependencies:[D,Xe],encapsulation:2,changeDetection:0})}return e})();var at=(()=>{class e{ascText=Q("");descText=Q("");sortChange=te();current=ie("asc");toggle(){this.current()==="asc"?this.current.set("desc"):this.current.set("asc"),this.sortChange.emit(this.current())}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=h({type:e,selectors:[["devmx-sort-direction"]],inputs:{ascText:[1,"ascText"],descText:[1,"descText"]},outputs:{sortChange:"sortChange"},exportAs:["sortDirection"],decls:4,vars:2,consts:[["mat-icon-button","",3,"click","ngClass"],["name","arrow/up"]],template:function(i,n){i&1&&(a(0,"span"),c(1),r(),a(2,"button",0),x("click",function(){return n.toggle()}),s(3,"devmx-icon",1),r()),i&2&&(o(),y(n.current()==="asc"?n.ascText():n.descText()),o(),l("ngClass",n.current()))},dependencies:[D,Me,N,re],styles:["[_nghost-%COMP%]{display:inline-flex;align-items:center}[_nghost-%COMP%] button[_ngcontent-%COMP%]{transition:transform .6s cubic-bezier(.175,.885,.32,1.275)}[_nghost-%COMP%] button.asc[_ngcontent-%COMP%]{transform:rotate(-360deg)}[_nghost-%COMP%] button.desc[_ngcontent-%COMP%]{transform:rotate(540deg)}"]})}return e})();var Pt=(e,m)=>m.id,Ft=()=>[be,W,import("./chunk-QQ3DFMVY.js").then(e=>e.AsyncPipe)],St=()=>[Ye,$],Dt=e=>[e],wt=e=>({right:e}),bt=e=>({outlets:e}),Ot=e=>["/","eventos",e];function Tt(e,m){if(e&1&&(a(0,"a",7),s(1,"devmx-event-card",8),r()),e&2){let t=u().$implicit;l("routerLink",E(8,Ot,E(6,bt,E(4,wt,E(2,Dt,t.id))))),o(),l("data",t)}}function It(e,m){e&1&&s(0,"devmx-skeleton",9),e&2&&l("rows",3)}function kt(e,m){e&1&&(f(0,Tt,2,10)(1,It,1,1),G(2,0,St,null,1),oe(0,-1))}function Lt(e,m){if(e&1){let t=R();a(0,"div",4),P(1,kt,4,0,null,null,Pt),r(),s(3,"div",5),a(4,"footer")(5,"devmx-paginator",6),x("pageChange",function(n){I(t);let p=u(2);return k(p.onPageChange(n))}),r()()}if(e&2){let t=m;o(),F(t.data),o(4),l("size",10)("items",t.items)}}function Rt(e,m){if(e&1&&(f(0,Lt,6,2),v(1,"async")),e&2){let t,i=u();C((t=g(1,1,i.eventFacade.response$))?0:-1,t)}}function Bt(e,m){e&1&&(a(0,"div",4),s(1,"devmx-skeleton",9)(2,"devmx-skeleton",9)(3,"devmx-skeleton",9),r()),e&2&&(o(),l("rows",3),o(),l("rows",2),o(),l("rows",3))}var ot=(()=>{class e{router=d(V);route=d(A);eventFacade=d(w);constructor(){this.route.queryParams.pipe(M()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{title:i="",format:n="",date:p="asc",time:_=""}=t,{page:U=0,size:rt=10}=t,mt={title:i,format:n},{start:J,end:K}=t,st={date:p};this.eventFacade.setParams({page:U,size:rt,filter:mt,sort:st}),J&&K?this.eventFacade.loadDateRange(new Date(J),new Date(K)):_==="until"?this.eventFacade.loadUntil():this.eventFacade.load()};onFilterChange(t){let i=this.mergeQueryParams({format:t});this.router.navigate([],{queryParams:i})}onTimeChange(t){let i={time:t};this.router.navigate([],{queryParams:i})}onRangeChange({start:t,end:i}){let n=this.mergeQueryParams({start:t,end:i});this.router.navigate([],{queryParams:n})}onSortChange(t){let i=this.mergeQueryParams({date:t});this.router.navigate([],{queryParams:i})}onPageChange(t){this.router.navigate([],{queryParams:t})}mergeQueryParams(t){return j(j({},this.route.snapshot.queryParams),t)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=h({type:e,selectors:[["devmx-events"]],decls:11,vars:0,consts:[[3,"filterChange"],[3,"timeChange"],[3,"rangeChange"],[3,"sortChange"],[1,"events-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[1,"event-card",3,"data"],[3,"rows"]],template:function(i,n){i&1&&(a(0,"header")(1,"section")(2,"devmx-event-filter",0),x("filterChange",function(_){return n.onFilterChange(_)}),r(),a(3,"devmx-event-time",1),x("timeChange",function(_){return n.onTimeChange(_)}),r()(),a(4,"div")(5,"devmx-event-date-range",2),x("rangeChange",function(_){return n.onRangeChange(_)}),r(),a(6,"devmx-sort-direction",3),x("sortChange",function(_){return n.onSortChange(_)}),r()()(),f(7,Rt,2,3)(8,Bt,4,3),G(9,7,Ft,null,8),ae(500))},dependencies:[Je,Qe,qe,at,W,S],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;padding:.4em .8em}[_nghost-%COMP%] header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;align-items:baseline}[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .events-container[_ngcontent-%COMP%] .event-card[_ngcontent-%COMP%]{width:100%;max-width:100%;box-sizing:border-box}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return e})();var Xn=[{path:"",data:{breadcrumb:"Eventos"},canActivate:[Y("member")],component:Ze,children:[{path:"administracao",canActivate:[Y("leader","director","manager","staff")],loadChildren:()=>import("./chunk-MYMD7E64.js").then(e=>e.eventFeatureAdminRoutes)},{path:"",title:"Eventos",component:ot},{path:":id",data:{breadcrumb:e=>e.event.title},title:"Evento",resolve:{event:et},component:nt,outlet:"right"},{path:"",component:it}]}];export{Ze as EventFeatureShellComponent,Xn as eventFeatureShellRoutes}; diff --git a/chunk-HPJEYRZM.js b/chunk-FROUXDRM.js similarity index 99% rename from chunk-HPJEYRZM.js rename to chunk-FROUXDRM.js index 143021f0..31d3cbd4 100644 --- a/chunk-HPJEYRZM.js +++ b/chunk-FROUXDRM.js @@ -1 +1 @@ -import{L as Ne,N as Ae}from"./chunk-4FWBEGAE.js";import{U as Oe,Y as ae,f as Me,ta as Z,ua as Ie,va as z,wa as G}from"./chunk-W5KNOAKV.js";import{$ as Q,Aa as be,Ea as Se,Eb as A,Fa as xe,Fc as y,Ja as b,Kb as u,Mb as O,Nb as q,Sc as Fe,Tc as H,Va as Te,Vb as K,Vc as v,Yb as P,bc as x,cc as T,ea as ve,ed as Ee,fa as V,gc as h,ha as U,j as Ce,k as De,ka as a,lb as N,nc as Y,ob as w,oc as F,p as se,pc as C,r as Re,rc as D,sa as W,sc as R,ub as S,vb as $,wb as d,xa as p,za as ke}from"./chunk-TEKHUYWQ.js";var Je=[[["caption"]],[["colgroup"],["col"]],"*"],et=["caption","colgroup, col","*"];function tt(i,s){i&1&&F(0,2)}function it(i,s){i&1&&(x(0,"thead",0),h(1,1),T(),x(2,"tbody",0),h(3,2)(4,3),T(),x(5,"tfoot",0),h(6,4),T())}function ot(i,s){i&1&&h(0,1)(1,2)(2,3)(3,4)}var _=new U("CDK_TABLE");var oe=(()=>{class i{template=a(w);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkCellDef",""]]})}return i})(),ne=(()=>{class i{template=a(w);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkHeaderCellDef",""]]})}return i})(),Le=(()=>{class i{template=a(w);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkFooterCellDef",""]]})}return i})(),L=(()=>{class i{_table=a(_,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,o,n){if(t&1&&(C(n,oe,5),C(n,ne,5),C(n,Le,5)),t&2){let r;D(r=R())&&(o.cell=r.first),D(r=R())&&(o.headerCell=r.first),D(r=R())&&(o.footerCell=r.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",v],stickyEnd:[2,"stickyEnd","stickyEnd",v]},features:[y([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),O]})}return i})(),J=class{constructor(s,e){e.nativeElement.classList.add(...s._columnCssClassName)}},Be=(()=>{class i extends J{constructor(){super(a(L),a(b))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[u]})}return i})();var ze=(()=>{class i extends J{constructor(){let e=a(L),t=a(b);super(e,t);let o=e._table?._getCellRole();o&&t.nativeElement.setAttribute("role",o)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[u]})}return i})(),ee=class{tasks=[];endTasks=[]},te=new U("_COALESCED_STYLE_SCHEDULER"),ce=(()=>{class i{_currentSchedule=null;_ngZone=a(xe);constructor(){}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ee,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let e=this._currentSchedule;this._currentSchedule=new ee;for(let t of e.tasks)t();for(let t of e.endTasks)t()}this._currentSchedule=null})))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac})}return i})();var de=(()=>{class i{template=a(w);_differs=a(H);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof j?e.headerCell.template:this instanceof ue?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,features:[W]})}return i})(),j=(()=>{class i extends de{_table=a(_,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(a(w),a(H))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",v]},features:[O,u,W]})}return i})(),ue=(()=>{class i extends de{_table=a(_,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(a(w),a(H))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",v]},features:[O,u,W]})}return i})(),re=(()=>{class i extends de{_table=a(_,{optional:!0});when;constructor(){super(a(w),a(H))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[u]})}return i})(),I=(()=>{class i{_viewContainer=a(A);cells;context;static mostRecentCellOutlet=null;constructor(){i.mostRecentCellOutlet=this}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkCellOutlet",""]]})}return i})(),fe=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=S({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&h(0,0)},dependencies:[I],encapsulation:2})}return i})();var he=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=S({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&h(0,0)},dependencies:[I],encapsulation:2})}return i})(),je=(()=>{class i{templateRef=a(w);_contentClassName="cdk-no-data-row";constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["ng-template","cdkNoDataRow",""]]})}return i})(),Pe=["top","bottom","left","right"],le=class{_isNativeHtmlTable;_stickCellCss;direction;_coalescedStyleScheduler;_isBrowser;_needsPositionStickyOnElement;_positionListener;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(s=>this._updateCachedSizes(s)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;constructor(s,e,t,o,n=!0,r=!0,l){this._isNativeHtmlTable=s,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=o,this._isBrowser=n,this._needsPositionStickyOnElement=r,this._positionListener=l,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(s,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(s);let t=[];for(let o of s)if(o.nodeType===o.ELEMENT_NODE){t.push(o);for(let n=0;n{for(let o of t)this._removeStickyStyle(o,e)})}updateStickyColumns(s,e,t,o=!0,n=!0){if(n&&this._updateStickyColumnReplayQueue({rows:[...s],stickyStartStates:[...e],stickyEndStates:[...t]}),!s.length||!this._isBrowser||!(e.some(r=>r)||t.some(r=>r))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let r=s[0],l=r.children.length,c=this._getCellWidths(r,o),E=this._getStickyStartColumnPositions(c,e),f=this._getStickyEndColumnPositions(c,t),k=e.lastIndexOf(!0),g=t.indexOf(!0),M=this.direction==="rtl",Ve=M?"right":"left",Ue=M?"left":"right";for(let B of s)for(let m=0;me[m]?B:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:g===-1?[]:c.slice(g).map((B,m)=>t[m+g]?B:null).reverse()}))})}stickRows(s,e,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let o=t==="bottom"?s.slice().reverse():s,n=t==="bottom"?e.slice().reverse():e,r=[],l=[],c=[];for(let f=0,k=0;f{let t=s.querySelector("tfoot");t&&(e.some(o=>!o)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(s,e){for(let o of e)s.style[o]="",s.classList.remove(this._borderCellCss[o]);Pe.some(o=>e.indexOf(o)===-1&&s.style[o])?s.style.zIndex=this._getCalculatedZIndex(s):(s.style.zIndex="",this._needsPositionStickyOnElement&&(s.style.position=""),s.classList.remove(this._stickCellCss))}_addStickyStyle(s,e,t,o){s.classList.add(this._stickCellCss),o&&s.classList.add(this._borderCellCss[e]),s.style[e]=`${t}px`,s.style.zIndex=this._getCalculatedZIndex(s),this._needsPositionStickyOnElement&&(s.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(s){let e={top:100,bottom:10,left:1,right:1},t=0;for(let o of Pe)s.style[o]&&(t+=e[o]);return t?`${t}`:""}_getCellWidths(s,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],o=s.children;for(let n=0;n0;n--)e[n]&&(t[n]=o,o+=s[n]);return t}_retrieveElementSize(s){let e=this._elemSizeCache.get(s);if(e)return e;let t=s.getBoundingClientRect(),o={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(s,o),this._resizeObserver.observe(s,{box:"border-box"})),o}_updateStickyColumnReplayQueue(s){this._removeFromStickyColumnReplayQueue(s.rows),!this._stickyColumnsReplayTimeout&&this._updatedStickyColumnsParamsToReplay.push(s)}_removeFromStickyColumnReplayQueue(s){let e=new Set(s);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length)}_updateCachedSizes(s){let e=!1;for(let t of s){let o=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};o.width!==this._elemSizeCache.get(t.target)?.width&&nt(t.target)&&(e=!0),this._elemSizeCache.set(t.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null},0))}};function nt(i){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(s=>i.classList.contains(s))}var ie=new U("CDK_SPL");var me=(()=>{class i{viewContainer=a(A);elementRef=a(b);constructor(){let e=a(_);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","rowOutlet",""]]})}return i})(),ye=(()=>{class i{viewContainer=a(A);elementRef=a(b);constructor(){let e=a(_);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","headerRowOutlet",""]]})}return i})(),pe=(()=>{class i{viewContainer=a(A);elementRef=a(b);constructor(){let e=a(_);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","footerRowOutlet",""]]})}return i})(),_e=(()=>{class i{viewContainer=a(A);elementRef=a(b);constructor(){let e=a(_);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","noDataRowOutlet",""]]})}return i})();var ge=(()=>{class i{_differs=a(H);_changeDetectorRef=a(Fe);_elementRef=a(b);_dir=a(Oe,{optional:!0});_platform=a(Me);_viewRepeater=a(z);_coalescedStyleScheduler=a(te);_viewportRuler=a(Ne);_stickyPositioningListener=a(ie,{optional:!0,skipSelf:!0});_document=a(Ee);_data;_onDestroy=new Ce;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new Se;viewChange=new De({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=a(ke);constructor(){a(new be("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Q(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Z(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(o,n,r)=>this._getEmbeddedViewArgs(o.item,r),o=>o.item.data,o=>{o.operation===Ie.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let n=t.get(o.currentIndex);n.context.$implicit=o.item.data}),this._updateNoDataRow(),Te(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=He(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let t=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=He(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let t=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((n,r)=>{this._addStickyColumnStyles([n],this._headerRowDefs[r])}),this._rowDefs.forEach(n=>{let r=[];for(let l=0;l{this._addStickyColumnStyles([n],this._footerRowDefs[r])}),Array.from(this._columnDefsByName.values()).forEach(n=>n.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let l=o&&o.has(r)?o.get(r):[];if(l.length){let c=l.shift();return c.dataIndex=t,c}else return{data:e,rowDef:r,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),X(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=X(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=X(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=X(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(r,l)=>{let c=!!l.getColumnsDiff();return r||c},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let n=this._footerRowDefs.reduce(e,!1);return n&&this._forceRenderFooterRows(),t||o||n}_switchDataSource(e){this._data=[],Z(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Z(this.dataSource)?e=this.dataSource.connect(this):Re(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=se(this.dataSource)),this._renderChangeSubscription=e.pipe(Q(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){let o=Array.from(t.columns||[]).map(l=>{let c=this._columnDefsByName.get(l);return c}),n=o.map(l=>l.sticky),r=o.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(e,n,r,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let t=[];for(let o=0;o!n.when||n.when(t,e));else{let n=this._rowDefs.find(r=>r.when&&r.when(t,e))||this._defaultRowDef;n&&o.push(n)}return o.length,o}_getEmbeddedViewArgs(e,t){let o=e.rowDef,n={$implicit:e.data};return{templateRef:o.template,context:n,index:t}}_renderRow(e,t,o,n={}){let r=e.viewContainer.createEmbeddedView(t.template,n,o);return this._renderCellTemplateForItem(t,n),r}_renderCellTemplateForItem(e,t){for(let o of this._getCellTemplates(e))I.mostRecentCellOutlet&&I.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,o=e.length;t{let o=this._columnDefsByName.get(t);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(t,o)=>t||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr";this._stickyStyler=new le(this._isNativeHtmlTable,this.stickyCssClass,e,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:se()).pipe(Q(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(t){let n=o.createEmbeddedView(e.templateRef),r=n.rootNodes[0];n.rootNodes.length===1&&r?.nodeType===this._document.ELEMENT_NODE&&(r.setAttribute("role","row"),r.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=t,this._changeDetectorRef.markForCheck()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=S({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,o,n){if(t&1&&(C(n,je,5),C(n,L,5),C(n,re,5),C(n,j,5),C(n,ue,5)),t&2){let r;D(r=R())&&(o._noDataRow=r.first),D(r=R())&&(o._contentColumnDefs=r),D(r=R())&&(o._contentRowDefs=r),D(r=R())&&(o._contentHeaderRowDefs=r),D(r=R())&&(o._contentFooterRowDefs=r)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,o){t&2&&K("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",v],fixedLayout:[2,"fixedLayout","fixedLayout",v]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[y([{provide:_,useExisting:i},{provide:z,useClass:G},{provide:te,useClass:ce},{provide:ie,useValue:null}]),O],ngContentSelectors:et,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,o){t&1&&(Y(Je),F(0),F(1,1),q(2,tt,1,0)(3,it,7,0)(4,ot,4,0)),t&2&&(N(2),P(o._isServer?2:-1),N(),P(o._isNativeHtmlTable?3:4))},dependencies:[ye,me,_e,pe],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return i})();function X(i,s){return i.concat(Array.from(s))}function He(i,s){let e=s.toUpperCase(),t=i.viewContainer.element.nativeElement;for(;t;){let o=t.nodeType===1?t.nodeName:null;if(o===e)return t;if(o==="TABLE")break;t=t.parentNode}return null}var Qe=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=$({type:i});static \u0275inj=V({imports:[Ae]})}return i})();var rt=[[["caption"]],[["colgroup"],["col"]],"*"],st=["caption","colgroup, col","*"];function at(i,s){i&1&&F(0,2)}function lt(i,s){i&1&&(x(0,"thead",0),h(1,1),T(),x(2,"tbody",2),h(3,3)(4,4),T(),x(5,"tfoot",0),h(6,5),T())}function ct(i,s){i&1&&h(0,1)(1,3)(2,4)(3,5)}var $t=(()=>{class i extends ge{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275cmp=S({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(t,o){t&2&&K("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[y([{provide:ge,useExisting:i},{provide:_,useExisting:i},{provide:te,useClass:ce},{provide:z,useClass:G},{provide:ie,useValue:null}]),u],ngContentSelectors:st,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,o){t&1&&(Y(rt),F(0),F(1,1),q(2,at,1,0)(3,lt,7,0)(4,ct,4,0)),t&2&&(N(2),P(o._isServer?2:-1),N(),P(o._isNativeHtmlTable?3:4))},dependencies:[ye,me,_e,pe],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return i})(),qt=(()=>{class i extends oe{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["","matCellDef",""]],features:[y([{provide:oe,useExisting:i}]),u]})}return i})(),Kt=(()=>{class i extends ne{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["","matHeaderCellDef",""]],features:[y([{provide:ne,useExisting:i}]),u]})}return i})();var Yt=(()=>{class i extends L{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[y([{provide:L,useExisting:i},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),u]})}return i})(),Zt=(()=>{class i extends Be{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[u]})}return i})();var Gt=(()=>{class i extends ze{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[u]})}return i})();var Xt=(()=>{class i extends j{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",v]},features:[y([{provide:j,useExisting:i}]),O,u]})}return i})();var Jt=(()=>{class i extends re{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[y([{provide:re,useExisting:i}]),u]})}return i})(),ei=(()=>{class i extends fe{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275cmp=S({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[y([{provide:fe,useExisting:i}]),u],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&h(0,0)},dependencies:[I],encapsulation:2})}return i})();var ti=(()=>{class i extends he{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275cmp=S({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[y([{provide:he,useExisting:i}]),u],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&h(0,0)},dependencies:[I],encapsulation:2})}return i})();var ii=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=$({type:i});static \u0275inj=V({imports:[ae,Qe,ae]})}return i})();export{$t as a,qt as b,Kt as c,Yt as d,Zt as e,Gt as f,Xt as g,Jt as h,ei as i,ti as j,ii as k}; +import{A as Ne,C as Ae}from"./chunk-6BGAZ7SQ.js";import{U as Oe,Y as ae,f as Me,ta as Z,ua as Ie,va as z,wa as G}from"./chunk-W5KNOAKV.js";import{$ as Q,Aa as be,Ea as Se,Eb as A,Fa as xe,Fc as y,Ja as b,Kb as u,Mb as O,Nb as q,Sc as Fe,Tc as H,Va as Te,Vb as K,Vc as v,Yb as P,bc as x,cc as T,ea as ve,ed as Ee,fa as V,gc as h,ha as U,j as Ce,k as De,ka as a,lb as N,nc as Y,ob as w,oc as F,p as se,pc as C,r as Re,rc as D,sa as W,sc as R,ub as S,vb as $,wb as d,xa as p,za as ke}from"./chunk-TEKHUYWQ.js";var Je=[[["caption"]],[["colgroup"],["col"]],"*"],et=["caption","colgroup, col","*"];function tt(i,s){i&1&&F(0,2)}function it(i,s){i&1&&(x(0,"thead",0),h(1,1),T(),x(2,"tbody",0),h(3,2)(4,3),T(),x(5,"tfoot",0),h(6,4),T())}function ot(i,s){i&1&&h(0,1)(1,2)(2,3)(3,4)}var _=new U("CDK_TABLE");var oe=(()=>{class i{template=a(w);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkCellDef",""]]})}return i})(),ne=(()=>{class i{template=a(w);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkHeaderCellDef",""]]})}return i})(),Le=(()=>{class i{template=a(w);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkFooterCellDef",""]]})}return i})(),L=(()=>{class i{_table=a(_,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,o,n){if(t&1&&(C(n,oe,5),C(n,ne,5),C(n,Le,5)),t&2){let r;D(r=R())&&(o.cell=r.first),D(r=R())&&(o.headerCell=r.first),D(r=R())&&(o.footerCell=r.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",v],stickyEnd:[2,"stickyEnd","stickyEnd",v]},features:[y([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),O]})}return i})(),J=class{constructor(s,e){e.nativeElement.classList.add(...s._columnCssClassName)}},Be=(()=>{class i extends J{constructor(){super(a(L),a(b))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[u]})}return i})();var ze=(()=>{class i extends J{constructor(){let e=a(L),t=a(b);super(e,t);let o=e._table?._getCellRole();o&&t.nativeElement.setAttribute("role",o)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[u]})}return i})(),ee=class{tasks=[];endTasks=[]},te=new U("_COALESCED_STYLE_SCHEDULER"),ce=(()=>{class i{_currentSchedule=null;_ngZone=a(xe);constructor(){}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ee,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let e=this._currentSchedule;this._currentSchedule=new ee;for(let t of e.tasks)t();for(let t of e.endTasks)t()}this._currentSchedule=null})))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=ve({token:i,factory:i.\u0275fac})}return i})();var de=(()=>{class i{template=a(w);_differs=a(H);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof j?e.headerCell.template:this instanceof ue?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,features:[W]})}return i})(),j=(()=>{class i extends de{_table=a(_,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(a(w),a(H))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",v]},features:[O,u,W]})}return i})(),ue=(()=>{class i extends de{_table=a(_,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(a(w),a(H))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",v]},features:[O,u,W]})}return i})(),re=(()=>{class i extends de{_table=a(_,{optional:!0});when;constructor(){super(a(w),a(H))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[u]})}return i})(),I=(()=>{class i{_viewContainer=a(A);cells;context;static mostRecentCellOutlet=null;constructor(){i.mostRecentCellOutlet=this}ngOnDestroy(){i.mostRecentCellOutlet===this&&(i.mostRecentCellOutlet=null)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","cdkCellOutlet",""]]})}return i})(),fe=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=S({type:i,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&h(0,0)},dependencies:[I],encapsulation:2})}return i})();var he=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=S({type:i,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&h(0,0)},dependencies:[I],encapsulation:2})}return i})(),je=(()=>{class i{templateRef=a(w);_contentClassName="cdk-no-data-row";constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["ng-template","cdkNoDataRow",""]]})}return i})(),Pe=["top","bottom","left","right"],le=class{_isNativeHtmlTable;_stickCellCss;direction;_coalescedStyleScheduler;_isBrowser;_needsPositionStickyOnElement;_positionListener;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(s=>this._updateCachedSizes(s)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;constructor(s,e,t,o,n=!0,r=!0,l){this._isNativeHtmlTable=s,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=o,this._isBrowser=n,this._needsPositionStickyOnElement=r,this._positionListener=l,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(s,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(s);let t=[];for(let o of s)if(o.nodeType===o.ELEMENT_NODE){t.push(o);for(let n=0;n{for(let o of t)this._removeStickyStyle(o,e)})}updateStickyColumns(s,e,t,o=!0,n=!0){if(n&&this._updateStickyColumnReplayQueue({rows:[...s],stickyStartStates:[...e],stickyEndStates:[...t]}),!s.length||!this._isBrowser||!(e.some(r=>r)||t.some(r=>r))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let r=s[0],l=r.children.length,c=this._getCellWidths(r,o),E=this._getStickyStartColumnPositions(c,e),f=this._getStickyEndColumnPositions(c,t),k=e.lastIndexOf(!0),g=t.indexOf(!0),M=this.direction==="rtl",Ve=M?"right":"left",Ue=M?"left":"right";for(let B of s)for(let m=0;me[m]?B:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:g===-1?[]:c.slice(g).map((B,m)=>t[m+g]?B:null).reverse()}))})}stickRows(s,e,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let o=t==="bottom"?s.slice().reverse():s,n=t==="bottom"?e.slice().reverse():e,r=[],l=[],c=[];for(let f=0,k=0;f{let t=s.querySelector("tfoot");t&&(e.some(o=>!o)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(s,e){for(let o of e)s.style[o]="",s.classList.remove(this._borderCellCss[o]);Pe.some(o=>e.indexOf(o)===-1&&s.style[o])?s.style.zIndex=this._getCalculatedZIndex(s):(s.style.zIndex="",this._needsPositionStickyOnElement&&(s.style.position=""),s.classList.remove(this._stickCellCss))}_addStickyStyle(s,e,t,o){s.classList.add(this._stickCellCss),o&&s.classList.add(this._borderCellCss[e]),s.style[e]=`${t}px`,s.style.zIndex=this._getCalculatedZIndex(s),this._needsPositionStickyOnElement&&(s.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(s){let e={top:100,bottom:10,left:1,right:1},t=0;for(let o of Pe)s.style[o]&&(t+=e[o]);return t?`${t}`:""}_getCellWidths(s,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],o=s.children;for(let n=0;n0;n--)e[n]&&(t[n]=o,o+=s[n]);return t}_retrieveElementSize(s){let e=this._elemSizeCache.get(s);if(e)return e;let t=s.getBoundingClientRect(),o={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(s,o),this._resizeObserver.observe(s,{box:"border-box"})),o}_updateStickyColumnReplayQueue(s){this._removeFromStickyColumnReplayQueue(s.rows),!this._stickyColumnsReplayTimeout&&this._updatedStickyColumnsParamsToReplay.push(s)}_removeFromStickyColumnReplayQueue(s){let e=new Set(s);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length)}_updateCachedSizes(s){let e=!1;for(let t of s){let o=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};o.width!==this._elemSizeCache.get(t.target)?.width&&nt(t.target)&&(e=!0),this._elemSizeCache.set(t.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null},0))}};function nt(i){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(s=>i.classList.contains(s))}var ie=new U("CDK_SPL");var me=(()=>{class i{viewContainer=a(A);elementRef=a(b);constructor(){let e=a(_);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","rowOutlet",""]]})}return i})(),ye=(()=>{class i{viewContainer=a(A);elementRef=a(b);constructor(){let e=a(_);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","headerRowOutlet",""]]})}return i})(),pe=(()=>{class i{viewContainer=a(A);elementRef=a(b);constructor(){let e=a(_);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","footerRowOutlet",""]]})}return i})(),_e=(()=>{class i{viewContainer=a(A);elementRef=a(b);constructor(){let e=a(_);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=d({type:i,selectors:[["","noDataRowOutlet",""]]})}return i})();var ge=(()=>{class i{_differs=a(H);_changeDetectorRef=a(Fe);_elementRef=a(b);_dir=a(Oe,{optional:!0});_platform=a(Me);_viewRepeater=a(z);_coalescedStyleScheduler=a(te);_viewportRuler=a(Ne);_stickyPositioningListener=a(ie,{optional:!0,skipSelf:!0});_document=a(Ee);_data;_onDestroy=new Ce;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new Se;viewChange=new De({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=a(ke);constructor(){a(new be("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Q(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Z(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(o,n,r)=>this._getEmbeddedViewArgs(o.item,r),o=>o.item.data,o=>{o.operation===Ie.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let n=t.get(o.currentIndex);n.context.$implicit=o.item.data}),this._updateNoDataRow(),Te(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=He(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let t=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=He(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let t=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((n,r)=>{this._addStickyColumnStyles([n],this._headerRowDefs[r])}),this._rowDefs.forEach(n=>{let r=[];for(let l=0;l{this._addStickyColumnStyles([n],this._footerRowDefs[r])}),Array.from(this._columnDefsByName.values()).forEach(n=>n.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let l=o&&o.has(r)?o.get(r):[];if(l.length){let c=l.shift();return c.dataIndex=t,c}else return{data:e,rowDef:r,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),X(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=X(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=X(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=X(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(r,l)=>{let c=!!l.getColumnsDiff();return r||c},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let n=this._footerRowDefs.reduce(e,!1);return n&&this._forceRenderFooterRows(),t||o||n}_switchDataSource(e){this._data=[],Z(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Z(this.dataSource)?e=this.dataSource.connect(this):Re(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=se(this.dataSource)),this._renderChangeSubscription=e.pipe(Q(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){let o=Array.from(t.columns||[]).map(l=>{let c=this._columnDefsByName.get(l);return c}),n=o.map(l=>l.sticky),r=o.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(e,n,r,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let t=[];for(let o=0;o!n.when||n.when(t,e));else{let n=this._rowDefs.find(r=>r.when&&r.when(t,e))||this._defaultRowDef;n&&o.push(n)}return o.length,o}_getEmbeddedViewArgs(e,t){let o=e.rowDef,n={$implicit:e.data};return{templateRef:o.template,context:n,index:t}}_renderRow(e,t,o,n={}){let r=e.viewContainer.createEmbeddedView(t.template,n,o);return this._renderCellTemplateForItem(t,n),r}_renderCellTemplateForItem(e,t){for(let o of this._getCellTemplates(e))I.mostRecentCellOutlet&&I.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,o=e.length;t{let o=this._columnDefsByName.get(t);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(t,o)=>t||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr";this._stickyStyler=new le(this._isNativeHtmlTable,this.stickyCssClass,e,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:se()).pipe(Q(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(t){let n=o.createEmbeddedView(e.templateRef),r=n.rootNodes[0];n.rootNodes.length===1&&r?.nodeType===this._document.ELEMENT_NODE&&(r.setAttribute("role","row"),r.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=t,this._changeDetectorRef.markForCheck()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=S({type:i,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,o,n){if(t&1&&(C(n,je,5),C(n,L,5),C(n,re,5),C(n,j,5),C(n,ue,5)),t&2){let r;D(r=R())&&(o._noDataRow=r.first),D(r=R())&&(o._contentColumnDefs=r),D(r=R())&&(o._contentRowDefs=r),D(r=R())&&(o._contentHeaderRowDefs=r),D(r=R())&&(o._contentFooterRowDefs=r)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,o){t&2&&K("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",v],fixedLayout:[2,"fixedLayout","fixedLayout",v]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[y([{provide:_,useExisting:i},{provide:z,useClass:G},{provide:te,useClass:ce},{provide:ie,useValue:null}]),O],ngContentSelectors:et,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,o){t&1&&(Y(Je),F(0),F(1,1),q(2,tt,1,0)(3,it,7,0)(4,ot,4,0)),t&2&&(N(2),P(o._isServer?2:-1),N(),P(o._isNativeHtmlTable?3:4))},dependencies:[ye,me,_e,pe],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return i})();function X(i,s){return i.concat(Array.from(s))}function He(i,s){let e=s.toUpperCase(),t=i.viewContainer.element.nativeElement;for(;t;){let o=t.nodeType===1?t.nodeName:null;if(o===e)return t;if(o==="TABLE")break;t=t.parentNode}return null}var Qe=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=$({type:i});static \u0275inj=V({imports:[Ae]})}return i})();var rt=[[["caption"]],[["colgroup"],["col"]],"*"],st=["caption","colgroup, col","*"];function at(i,s){i&1&&F(0,2)}function lt(i,s){i&1&&(x(0,"thead",0),h(1,1),T(),x(2,"tbody",2),h(3,3)(4,4),T(),x(5,"tfoot",0),h(6,5),T())}function ct(i,s){i&1&&h(0,1)(1,3)(2,4)(3,5)}var $t=(()=>{class i extends ge{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275cmp=S({type:i,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(t,o){t&2&&K("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[y([{provide:ge,useExisting:i},{provide:_,useExisting:i},{provide:te,useClass:ce},{provide:z,useClass:G},{provide:ie,useValue:null}]),u],ngContentSelectors:st,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,o){t&1&&(Y(rt),F(0),F(1,1),q(2,at,1,0)(3,lt,7,0)(4,ct,4,0)),t&2&&(N(2),P(o._isServer?2:-1),N(),P(o._isNativeHtmlTable?3:4))},dependencies:[ye,me,_e,pe],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return i})(),qt=(()=>{class i extends oe{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["","matCellDef",""]],features:[y([{provide:oe,useExisting:i}]),u]})}return i})(),Kt=(()=>{class i extends ne{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["","matHeaderCellDef",""]],features:[y([{provide:ne,useExisting:i}]),u]})}return i})();var Yt=(()=>{class i extends L{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[y([{provide:L,useExisting:i},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:i}]),u]})}return i})(),Zt=(()=>{class i extends Be{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[u]})}return i})();var Gt=(()=>{class i extends ze{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[u]})}return i})();var Xt=(()=>{class i extends j{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",v]},features:[y([{provide:j,useExisting:i}]),O,u]})}return i})();var Jt=(()=>{class i extends re{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275dir=d({type:i,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[y([{provide:re,useExisting:i}]),u]})}return i})(),ei=(()=>{class i extends fe{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275cmp=S({type:i,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[y([{provide:fe,useExisting:i}]),u],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&h(0,0)},dependencies:[I],encapsulation:2})}return i})();var ti=(()=>{class i extends he{static \u0275fac=(()=>{let e;return function(o){return(e||(e=p(i)))(o||i)}})();static \u0275cmp=S({type:i,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[y([{provide:he,useExisting:i}]),u],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,o){t&1&&h(0,0)},dependencies:[I],encapsulation:2})}return i})();var ii=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=$({type:i});static \u0275inj=V({imports:[ae,Qe,ae]})}return i})();export{$t as a,qt as b,Kt as c,Yt as d,Zt as e,Gt as f,Xt as g,Jt as h,ei as i,ti as j,ii as k}; diff --git a/chunk-F2GYQZHU.js b/chunk-FVH3EPWM.js similarity index 87% rename from chunk-F2GYQZHU.js rename to chunk-FVH3EPWM.js index 95ad208b..dc86f6ad 100644 --- a/chunk-F2GYQZHU.js +++ b/chunk-FVH3EPWM.js @@ -1,3 +1,3 @@ -import{C as g,I as x}from"./chunk-4FWBEGAE.js";import{a as h}from"./chunk-EDIJ2EBQ.js";import{f as C,g as b}from"./chunk-W5KNOAKV.js";import{Fb as p,Ia as a,Tb as d,bc as o,cc as l,dc as c,gb as r,ka as M,lb as s,ub as m,xc as f,yc as u}from"./chunk-TEKHUYWQ.js";var j=(()=>{class i{data=a.required();text=a("Enviar no WhatsApp");platform=M(C);link=p("");ngAfterViewInit(){let{id:e,title:t,start:n,address:y}=this.data(),v=`https://devparana.mx/#/evento/${e}`,P=`\u{1F389} *${t}* \u{1F389}`,_=`\u{1F5D3}\uFE0F ${n.toLocaleDateString()}`,S=`\u23F0 ${n.toLocaleTimeString().slice(0,5)}`,D=`\u{1F5FA}\uFE0F ${y}`,k=[v,P,_,S,D].join(` +import{r as g,x}from"./chunk-6BGAZ7SQ.js";import{a as h}from"./chunk-EDIJ2EBQ.js";import{f as C,g as b}from"./chunk-W5KNOAKV.js";import{Fb as p,Ia as a,Tb as d,bc as o,cc as l,dc as c,gb as r,ka as M,lb as s,ub as m,xc as f,yc as u}from"./chunk-TEKHUYWQ.js";var j=(()=>{class i{data=a.required();text=a("Enviar no WhatsApp");platform=M(C);link=p("");ngAfterViewInit(){let{id:e,title:t,start:n,address:y}=this.data(),v=`https://devparana.mx/#/evento/${e}`,P=`\u{1F389} *${t}* \u{1F389}`,_=`\u{1F5D3}\uFE0F ${n.toLocaleDateString()}`,S=`\u23F0 ${n.toLocaleTimeString().slice(0,5)}`,D=`\u{1F5FA}\uFE0F ${y}`,k=[v,P,_,S,D].join(` `),A=this.platform.IOS?"https://api.whatsapp.com/send":"whatsapp://send",I="https://devparana.mx/devmx.svg",$=new URLSearchParams({text:k,media:I});this.link.set(`${A}?${$}`)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=m({type:i,selectors:[["devmx-whats-app-button"]],inputs:{data:[1,"data"],text:[1,"text"]},decls:4,vars:2,consts:[["mat-raised-button","","target","_blank","rel","noopener,noreferrer",3,"href"],["matPreffix","","name","social/whatsapp","size","24"]],template:function(t,n){t&1&&(o(0,"a",0),c(1,"devmx-icon",1),o(2,"span"),f(3),l()()),t&2&&(d("href",n.link(),r),s(3),u(n.text()))},dependencies:[x,g,b,h],styles:["[_nghost-%COMP%]{min-width:180px;display:inline-flex}[_nghost-%COMP%] a[href][_ngcontent-%COMP%]{width:100%;padding-left:.6em;padding-right:.6em;border-radius:8px}[_nghost-%COMP%] .mat-mdc-raised-button .mdc-button__label{display:inline-flex;align-items:center;gap:.6em}"],changeDetection:0})}return i})();var G=(()=>{class i{data=a.required();text=a("Adicionar ao calend\xE1rio");link=p("");ngAfterViewInit(){let e="https://calendar.google.com/calendar/render",t=this.#e(this.data()),n=new URLSearchParams(t);this.link.set(`${e}?${n}`)}#e(e){let t="TEMPLATE",{title:n,address:y,description:v}=e,P=this.#t(e.start),_=this.#t(e.end);return{action:t,text:n,location:y,details:v,dates:`${P}/${_}`}}#t(e){return e.toISOString().replace(/-|:|\.\d{3}/g,"")}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=m({type:i,selectors:[["devmx-calendar-button"]],inputs:{data:[1,"data"],text:[1,"text"]},decls:4,vars:2,consts:[["mat-raised-button","","target","_blank","rel","noopener,noreferrer",3,"href"],["matPreffix","","name","calendar","size","22"]],template:function(t,n){t&1&&(o(0,"a",0),c(1,"devmx-icon",1),o(2,"span"),f(3),l()()),t&2&&(d("href",n.link(),r),s(3),u(n.text()))},dependencies:[x,g,h],styles:["[_nghost-%COMP%]{min-width:180px;display:inline-flex}[_nghost-%COMP%] a[href][_ngcontent-%COMP%]{width:100%;padding-left:.6em;padding-right:.6em;border-radius:8px}[_nghost-%COMP%] .mat-mdc-raised-button .mdc-button__label{display:inline-flex;align-items:center;gap:.6em}"],changeDetection:0})}return i})();var tt=(()=>{class i{data=a.required();text=a("Abrir com YouTube");platform=M(C);link=p("");ngAfterViewInit(){let{link:e}=this.data();e&&((this.platform.ANDROID||this.platform.IOS)&&(e.indexOf("http")>=0&&e.replace("http://","youtube://"),e.indexOf("https")>=0&&e.replace("https://","youtube://")),this.link.set(e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=m({type:i,selectors:[["devmx-youtube-button"]],inputs:{data:[1,"data"],text:[1,"text"]},decls:4,vars:2,consts:[["mat-raised-button","","target","_blank","rel","noopener,noreferrer",3,"href"],["matPreffix","","name","social/youtube","size","22"]],template:function(t,n){t&1&&(o(0,"a",0),c(1,"devmx-icon",1),o(2,"span"),f(3),l()()),t&2&&(d("href",n.link(),r),s(3),u(n.text()))},dependencies:[x,g,b,h],styles:["[_nghost-%COMP%]{min-width:180px;display:inline-flex}[_nghost-%COMP%] a[href][_ngcontent-%COMP%]{width:100%;padding-left:.6em;padding-right:.6em;border-radius:8px}[_nghost-%COMP%] .mat-mdc-raised-button .mdc-button__label{display:inline-flex;align-items:center;gap:.6em}"],changeDetection:0})}return i})();var mt=(()=>{class i{data=a.required();text=a("Abrir com Google Maps");platform=M(C);link=p("");ngAfterViewInit(){let{address:e}=this.data(),t={travelmode:"driving"},n;this.platform.IOS?(n="comgooglemaps://",t.daddr=e):(n="//google.com/maps/dir/",t.destination=e,t.api="1");let y=new URLSearchParams(t);this.link.set(`${n}?${y}`)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=m({type:i,selectors:[["devmx-maps-button"]],inputs:{data:[1,"data"],text:[1,"text"]},decls:4,vars:2,consts:[["mat-raised-button","","target","_blank","rel","noopener,noreferrer",3,"href"],["matPreffix","","name","transport/map-pin","size","22"]],template:function(t,n){t&1&&(o(0,"a",0),c(1,"devmx-icon",1),o(2,"span"),f(3),l()()),t&2&&(d("href",n.link(),r),s(3),u(n.text()))},dependencies:[x,g,b,h],styles:["[_nghost-%COMP%]{min-width:180px;display:inline-flex}[_nghost-%COMP%] a[href][_ngcontent-%COMP%]{width:100%;padding-left:.6em;padding-right:.6em;border-radius:8px}[_nghost-%COMP%] .mat-mdc-raised-button .mdc-button__label{display:inline-flex;align-items:center;gap:.6em}"],changeDetection:0})}return i})();export{j as a,G as b,tt as c,mt as d}; diff --git a/chunk-LVUYG7JQ.js b/chunk-GXQHMTZK.js similarity index 96% rename from chunk-LVUYG7JQ.js rename to chunk-GXQHMTZK.js index ece2317f..8ea4604d 100644 --- a/chunk-LVUYG7JQ.js +++ b/chunk-GXQHMTZK.js @@ -1 +1 @@ -import{A as a,a as f,b as u,c as m,e as S,f as i,u as k}from"./chunk-4FWBEGAE.js";var c=class extends a{};var t=class extends f{};var s=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.create(e)}};var o=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.delete(e)}};var l=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.findOne(e)}};var p=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.find(e)}};var n=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.update(e.id,e)}};var d=class extends a{createSkillUseCase;findSkillsUseCase;findSkillByIdUseCase;updateSkillUseCase;deleteSkillUseCase;constructor(e,y,B,D,E){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{name:""}},selected:null}),this.createSkillUseCase=e,this.findSkillsUseCase=y,this.findSkillByIdUseCase=B,this.updateSkillUseCase=D,this.deleteSkillUseCase=E}load(){this.onLoad(this.findSkillsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findSkillByIdUseCase.execute(e))}create(e){this.onCreate(this.createSkillUseCase.execute(e))}update(e){this.onUpdate(this.updateSkillUseCase.execute(e))}delete(e){this.onDelete(this.deleteSkillUseCase.execute(e))}};function v(){return S(c,d,[s,p,l,n,o])}function C(){return[v()]}var x=class extends k{};function U(){return{provide:t,useFactory(r,e){return new x(r,e,"skills")},deps:[m,u]}}function h(){return[U()]}function O(){return i(s,[t])}function H(){return i(p,[t])}function I(){return i(l,[t])}function L(){return i(n,[t])}function g(){return i(o,[t])}function F(){return[O(),H(),I(),L(),g()]}function Ee(){return[...h(),...F(),...C()]}export{c as a,Ee as b}; +import{A as a,a as f,b as u,c as m,e as S,f as i,u as k}from"./chunk-XYJHVZQT.js";var c=class extends a{};var t=class extends f{};var s=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.create(e)}};var o=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.delete(e)}};var l=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.findOne(e)}};var p=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.find(e)}};var n=class{skillService;constructor(e){this.skillService=e}execute(e){return this.skillService.update(e.id,e)}};var d=class extends a{createSkillUseCase;findSkillsUseCase;findSkillByIdUseCase;updateSkillUseCase;deleteSkillUseCase;constructor(e,y,B,D,E){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{name:""}},selected:null}),this.createSkillUseCase=e,this.findSkillsUseCase=y,this.findSkillByIdUseCase=B,this.updateSkillUseCase=D,this.deleteSkillUseCase=E}load(){this.onLoad(this.findSkillsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findSkillByIdUseCase.execute(e))}create(e){this.onCreate(this.createSkillUseCase.execute(e))}update(e){this.onUpdate(this.updateSkillUseCase.execute(e))}delete(e){this.onDelete(this.deleteSkillUseCase.execute(e))}};function v(){return S(c,d,[s,p,l,n,o])}function C(){return[v()]}var x=class extends k{};function U(){return{provide:t,useFactory(r,e){return new x(r,e,"skills")},deps:[m,u]}}function h(){return[U()]}function O(){return i(s,[t])}function H(){return i(p,[t])}function I(){return i(l,[t])}function L(){return i(n,[t])}function g(){return i(o,[t])}function F(){return[O(),H(),I(),L(),g()]}function Ee(){return[...h(),...F(),...C()]}export{c as a,Ee as b}; diff --git a/chunk-WRHYPK6F.js b/chunk-HRSGZXOU.js similarity index 96% rename from chunk-WRHYPK6F.js rename to chunk-HRSGZXOU.js index 36471708..cc38d0d8 100644 --- a/chunk-WRHYPK6F.js +++ b/chunk-HRSGZXOU.js @@ -1 +1 @@ -import{m as F,o as w}from"./chunk-4FWBEGAE.js";import{e as b,j as k,l as y,w as v}from"./chunk-EDIJ2EBQ.js";import{a as c,b as a}from"./chunk-TEKHUYWQ.js";var e=class{label;value;order;autocomplete;errors;constructor(r){this.autocomplete=r.autocomplete,this.label=r.label,this.value=r.value??null,this.order=r.order??0,this.errors=r.errors??{}}};var i=class extends e{type;kind="textbox";constructor(r){super(r),this.type=r.type}};function G(t){return new i(t)}function V(t){let r=["required","requiredTrue","email"];return w(t.errors).filter(o=>r.includes(o)).map(o=>b[o])}var m=class extends e{checked;kind="checkbox";constructor(r){super(r),this.checked=r.checked==!0}};var u=class extends e{min;max;kind="datepicker";constructor(r){super(r),this.min=r.min,this.max=r.max}};var p=class extends e{options;kind="dropdown";constructor(r){super(r),this.options=r.options}};var d=class extends e{options;kind="radio";constructor(r){super(r),this.options=r.options}};var l=class extends e{min;max;kind="range";constructor(r){super(r),this.min=r.min,this.max=r.max}};var x=class extends e{min;max;step;kind="slider";constructor(r){super(r),this.min=r.min,this.max=r.max,this.step=r.step??1}};var g=t=>{let r=t instanceof i,o=t instanceof m,n=t instanceof u,f=t instanceof p,s=t instanceof d,h=t instanceof l,T=t instanceof x;return r||o||n||f||s||h||T};function A(t){let o={nonNullable:!0,validators:V(t)};return new y(t.value,o)}function C(t){return F(t).reduce((r,[o,n])=>{if(g(n)){let s=A(n);return a(c({},r),{[o]:s})}if(Array.isArray(n)){let s=n.map(h=>A(h));return a(c({},r),{[o]:new v(s)})}let f=C(n);return a(c({},r),{[o]:new k(f)})},{})}function $(t){let r=C(t);return new k(r)}export{G as a,$ as b}; +import{m as F,o as w}from"./chunk-XYJHVZQT.js";import{e as b,j as k,l as y,w as v}from"./chunk-EDIJ2EBQ.js";import{a as c,b as a}from"./chunk-TEKHUYWQ.js";var e=class{label;value;order;autocomplete;errors;constructor(r){this.autocomplete=r.autocomplete,this.label=r.label,this.value=r.value??null,this.order=r.order??0,this.errors=r.errors??{}}};var i=class extends e{type;kind="textbox";constructor(r){super(r),this.type=r.type}};function G(t){return new i(t)}function V(t){let r=["required","requiredTrue","email"];return w(t.errors).filter(o=>r.includes(o)).map(o=>b[o])}var m=class extends e{checked;kind="checkbox";constructor(r){super(r),this.checked=r.checked==!0}};var u=class extends e{min;max;kind="datepicker";constructor(r){super(r),this.min=r.min,this.max=r.max}};var p=class extends e{options;kind="dropdown";constructor(r){super(r),this.options=r.options}};var d=class extends e{options;kind="radio";constructor(r){super(r),this.options=r.options}};var l=class extends e{min;max;kind="range";constructor(r){super(r),this.min=r.min,this.max=r.max}};var x=class extends e{min;max;step;kind="slider";constructor(r){super(r),this.min=r.min,this.max=r.max,this.step=r.step??1}};var g=t=>{let r=t instanceof i,o=t instanceof m,n=t instanceof u,f=t instanceof p,s=t instanceof d,h=t instanceof l,T=t instanceof x;return r||o||n||f||s||h||T};function A(t){let o={nonNullable:!0,validators:V(t)};return new y(t.value,o)}function C(t){return F(t).reduce((r,[o,n])=>{if(g(n)){let s=A(n);return a(c({},r),{[o]:s})}if(Array.isArray(n)){let s=n.map(h=>A(h));return a(c({},r),{[o]:new v(s)})}let f=C(n);return a(c({},r),{[o]:new k(f)})},{})}function $(t){let r=C(t);return new k(r)}export{G as a,$ as b}; diff --git a/chunk-HTP655AM.js b/chunk-HTP655AM.js deleted file mode 100644 index 9a073b1b..00000000 --- a/chunk-HTP655AM.js +++ /dev/null @@ -1 +0,0 @@ -import{k as n}from"./chunk-4FWBEGAE.js";function m(a){return n(e=>{let o=new Image;o.onload=()=>e(o),o.src=a})}export{m as a}; diff --git a/chunk-IUDTHKAB.js b/chunk-IUDTHKAB.js deleted file mode 100644 index ec625e46..00000000 --- a/chunk-IUDTHKAB.js +++ /dev/null @@ -1 +0,0 @@ -import{a as ae,b as ne}from"./chunk-4Y7TZHD4.js";import{a as oe}from"./chunk-DUF4HXV7.js";import{a as Ut,b as Kt,c as Qt,d as Wt,e as Jt,f as Xt,g as Zt,h as te,i as ee,j as ie,k as re}from"./chunk-HPJEYRZM.js";import{a as $t,b as zt}from"./chunk-YJNMZPRM.js";import{a as Gt}from"./chunk-VE4FGS76.js";import{d as Lt,e as qt}from"./chunk-LFAX4DK3.js";import"./chunk-JX4IWPKV.js";import"./chunk-XC6WES62.js";import{a as Ot}from"./chunk-LVUYG7JQ.js";import{c as Vt}from"./chunk-VYHC3V3G.js";import"./chunk-3I45H2NO.js";import"./chunk-R66KDUEB.js";import"./chunk-BJXILAOS.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import{a as Rt}from"./chunk-A3N3AUUJ.js";import{D as Ht,G as Et,I as It,z as B}from"./chunk-4FWBEGAE.js";import{e as wt,i as bt,j as Dt}from"./chunk-2K6IALUF.js";import{g as dt,h as ct,i as lt,p as mt}from"./chunk-KXTQ2UTD.js";import{c as b,d as S,g as a,h as m,i as k,j as f,k as ht,l as pt}from"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import{a as Nt,e as Bt,f as jt,i as Yt}from"./chunk-EC6LD5KM.js";import{a as Mt,c as xt,h as yt,i as At,m as kt,p as Pt,s as Tt,x as Ft}from"./chunk-EDIJ2EBQ.js";import{H as _t,Q as ut,W as St,X as gt,Y as Ct,ca as vt,q as ft}from"./chunk-W5KNOAKV.js";import{D as L,Ea as Q,Ja as W,Jc as ot,Kc as at,Mb as E,Nb as w,Sb as I,Sc as nt,Tb as h,Vb as R,Vc as A,Yb as P,a as F,bc as s,cc as d,dc as l,ea as q,ec as O,fa as $,fc as V,ha as z,hc as y,j as H,je as st,ka as n,kc as _,l as Y,la as G,lb as c,ma as U,mb as J,mc as u,nc as tt,oc as et,sa as K,ta as g,ua as C,ub as D,vb as X,wb as Z,wc as it,xc as N,yc as rt}from"./chunk-TEKHUYWQ.js";var de=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=D({type:e,selectors:[["devmx-learn-feature-admin"]],decls:1,vars:0,template:function(i,r){i&1&&l(0,"router-outlet")},dependencies:[ct],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var ce=[zt(),ne()];var fe=["mat-sort-header",""],_e=["*"];function ue(e,p){if(e&1){let t=y();s(0,"div",2),_("@arrowPosition.start",function(){g(t);let r=u();return C(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){g(t);let r=u();return C(r._disableViewStateAnimation=!1)}),l(1,"div",3),s(2,"div",4),l(3,"div",5)(4,"div",6)(5,"div",7),d()()}if(e&2){let t=u();h("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),c(2),h("@indicator",t._getArrowDirectionState()),c(),h("@leftPointer",t._getArrowDirectionState()),c(),h("@rightPointer",t._getArrowDirectionState())}}var le=new z("MAT_SORT_DEFAULT_OPTIONS"),j=(()=>{class e{_defaultOptions;_initializedStream=new Y(1);sortables=new Map;_stateChanges=new H;active;start="asc";get direction(){return this._direction}set direction(t){this._direction=t}_direction="";disableClear;disabled=!1;sortChange=new Q;initialized=this._initializedStream;constructor(t){this._defaultOptions=t}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let i=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=Se(t.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||e)(J(le,8))};static \u0275dir=Z({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",A],disabled:[2,"matSortDisabled","disabled",A]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[E,K]})}return e})();function Se(e,p){let t=["asc","desc"];return e=="desc"&&t.reverse(),p||t.push(""),t}var v=gt.ENTERING+" "+St.STANDARD_CURVE,M={indicator:b("indicator",[m("active-asc, asc",a({transform:"translateY(0px)"})),m("active-desc, desc",a({transform:"translateY(10px)"})),f("active-asc <=> active-desc",S(v))]),leftPointer:b("leftPointer",[m("active-asc, asc",a({transform:"rotate(-45deg)"})),m("active-desc, desc",a({transform:"rotate(45deg)"})),f("active-asc <=> active-desc",S(v))]),rightPointer:b("rightPointer",[m("active-asc, asc",a({transform:"rotate(45deg)"})),m("active-desc, desc",a({transform:"rotate(-45deg)"})),f("active-asc <=> active-desc",S(v))]),arrowOpacity:b("arrowOpacity",[m("desc-to-active, asc-to-active, active",a({opacity:1})),m("desc-to-hint, asc-to-hint, hint",a({opacity:.54})),m("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",a({opacity:0})),f("* => asc, * => desc, * => active, * => hint, * => void",S("0ms")),f("* <=> *",S(v))]),arrowPosition:b("arrowPosition",[f("* => desc-to-hint, * => desc-to-active",S(v,k([a({transform:"translateY(-25%)"}),a({transform:"translateY(0)"})]))),f("* => hint-to-desc, * => active-to-desc",S(v,k([a({transform:"translateY(0)"}),a({transform:"translateY(25%)"})]))),f("* => asc-to-hint, * => asc-to-active",S(v,k([a({transform:"translateY(25%)"}),a({transform:"translateY(0)"})]))),f("* => hint-to-asc, * => active-to-asc",S(v,k([a({transform:"translateY(0)"}),a({transform:"translateY(-25%)"})]))),m("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",a({transform:"translateY(0)"})),m("hint-to-desc, active-to-desc, desc",a({transform:"translateY(-25%)"})),m("hint-to-asc, active-to-asc, asc",a({transform:"translateY(25%)"}))]),allowChildren:b("allowChildren",[f("* <=> *",[pt("@*",ht(),{optional:!0})])])},T=(()=>{class e{changes=new H;static \u0275fac=function(i){return new(i||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ge(e){return e||new T}var Ce={provide:T,deps:[[new G,new U,T]],useFactory:ge},me=(()=>{class e{_intl=n(T);_changeDetectorRef=n(nt);_sort=n(j,{optional:!0});_columnDef=n("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_focusMonitor=n(ut);_elementRef=n(W);_ariaDescriber=n(_t,{optional:!0});_rerenderSubscription;_sortButton;_showIndicatorHint=!1;_viewState={};_arrowDirection="";_disableViewStateAnimation=!1;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}_sortActionDescription="Sort";disableClear;constructor(){n(ft).load(vt);let t=n(le,{optional:!0});this._sort,t?.arrowPosition&&(this.arrowPosition=t?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let i=!!t;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=L(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=D({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&_("click",function(){return r._handleClick()})("keydown",function(x){return r._handleKeydown(x)})("mouseenter",function(){return r._setIndicatorHintVisible(!0)})("mouseleave",function(){return r._setIndicatorHintVisible(!1)}),i&2&&(I("aria-sort",r._getAriaSortAttribute()),R("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",A],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",A]},exportAs:["matSortHeader"],features:[E],attrs:fe,ngContentSelectors:_e,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,r){i&1&&(tt(),s(0,"div",0)(1,"div",1),et(2),d(),w(3,ue,6,6,"div",2),d()),i&2&&(R("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before"),I("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),c(3),P(r._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface));opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}@media(forced-colors: active){.mat-sort-header-stem{width:0;border-left:solid 2px}}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}@media(forced-colors: active){.mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}@media(forced-colors: active){.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[M.indicator,M.leftPointer,M.rightPointer,M.arrowOpacity,M.arrowPosition,M.allowChildren]},changeDetection:0})}return e})(),he=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=X({type:e});static \u0275inj=$({providers:[Ce],imports:[Ct]})}return e})();function we(e,p){e&1&&(s(0,"th",20),N(1," Habilidade "),d())}function be(e,p){if(e&1&&(s(0,"td",21),N(1),d()),e&2){let t=p.$implicit;c(),rt(t.name)}}function De(e,p){e&1&&l(0,"th",22)}function Me(e,p){if(e&1){let t=y();s(0,"td",21)(1,"button",23),_("click",function(){let r=g(t).$implicit,o=u(2);return C(o.editSkill(r))}),l(2,"devmx-icon",24),d()()}}function xe(e,p){e&1&&l(0,"tr",25)}function ye(e,p){e&1&&l(0,"tr",26)}function Ae(e,p){if(e&1){let t=y();s(0,"table",6),_("matSortChange",function(r){g(t);let o=u();return C(o.onSortChange(r))}),O(1,7),w(2,we,2,0,"th",8)(3,be,2,1,"td",9),V(),O(4,10),w(5,De,1,0,"th",11)(6,Me,3,0,"td",9),V(),w(7,xe,1,0,"tr",12)(8,ye,1,0,"tr",13),d(),s(9,"mat-card-actions",14)(10,"form",15,0),_("submit",function(){g(t);let r=it(11),o=u();return C(o.onSubmit(r))}),s(12,"mat-form-field"),l(13,"input",16),s(14,"button",17),l(15,"devmx-icon",18),d()()(),s(16,"devmx-paginator",19),_("pageChange",function(r){g(t);let o=u();return C(o.onPageChange(r))}),d()()}if(e&2){let t=p,i=u();h("dataSource",t.data),c(7),h("matHeaderRowDef",i.columns),c(),h("matRowDefColumns",i.columns),c(2),h("formGroup",i.form),c(6),h("size",10)("items",t.items)}}var pe=(()=>{class e{router=n(lt);route=n(dt);skillFacade=n(Ot);skillDialog=n(ae);dialogFacade=n($t);columns=["name","actions"];form=new oe;constructor(){this.route.queryParams.pipe(Rt()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{page:i=0,size:r=10,name:o="",sort:x=""}=t;this.skillFacade.setFilter({name:o}),this.skillFacade.setPage(i,r),this.skillFacade.setSort(B.fromParams(x)),this.skillFacade.load(),console.log(this.route.snapshot.toString())};onSearchChange(t){let i=this.mergeParams({name:t});this.router.navigate([],{queryParams:i})}onPageChange(t){let i=this.mergeParams(t);this.router.navigate([],{queryParams:i})}onSortChange({active:t,direction:i}){let r=B.toParams(t,i),o=this.mergeParams(r);this.router.navigate([],{queryParams:o})}mergeParams(t){return F(F({},this.route.snapshot.queryParams),t)}onSubmit(t){this.form.valid&&(this.skillFacade.create(this.form.getRawValue()),t.resetForm())}createSkill(){this.skillDialog.open().subscribe(t=>{t&&this.skillFacade.create(t)})}editSkill(t){this.skillDialog.open(t).subscribe(i=>{i&&this.skillFacade.create(i)})}deleteSkill({id:t,name:i}){this.dialogFacade.confirm(`Confirme que deseja apagar a habilidade ${i}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(r=>{r&&this.skillFacade.delete(t)})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=D({type:e,selectors:[["devmx-admin-skills"]],decls:7,vars:4,consts:[["skillForm","ngForm"],["mat-fab","",1,"tertiary-fab","top","right",3,"click"],["name","plus"],[1,"skills-card"],[1,"skills-card-header"],[3,"searchChange","debounce"],["mat-table","","matSort","",3,"matSortChange","dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","name",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"skills-card-actions"],[3,"submit","formGroup"],["matInput","","formControlName","name","placeholder","Adicionar nova habilidade"],["mat-icon-button","","matIconSuffix",""],["name","send"],[3,"pageChange","size","items"],["mat-header-cell","","mat-sort-header","name"],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click"],["name","software/edit"],["mat-header-row",""],["mat-row",""]],template:function(i,r){if(i&1&&(s(0,"button",1),_("click",function(){return r.createSkill()}),l(1,"devmx-icon",2),d(),s(2,"mat-card",3)(3,"mat-card-header",4)(4,"devmx-search-field",5),_("searchChange",function(x){return r.onSearchChange(x)}),d()(),w(5,Ae,17,6),ot(6,"async"),d()),i&2){let o;c(4),h("debounce",800),c(),P((o=at(6,2,r.skillFacade.response$))?5:-1,o)}},dependencies:[mt,re,Ut,Qt,Zt,Wt,Kt,te,Jt,Xt,ee,ie,It,Et,Ht,Dt,bt,wt,Ft,kt,xt,yt,At,Pt,Tt,Gt,Vt,qt,Lt,he,j,me,Mt,Yt,Nt,Bt,jt,st],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:4em}[_nghost-%COMP%] .skills-card-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-left:1em}"],changeDetection:0})}return e})();var Pi=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},providers:ce,component:de,children:[{path:"",data:{breadcrumb:"Habilidades"},title:"Administrar hbilidades",component:pe}]}];export{de as LearnFeatureAdminComponent,Pi as learnFeatureAdminRoutes}; diff --git a/chunk-IZTWYWJL.js b/chunk-IZTWYWJL.js deleted file mode 100644 index 9aac0291..00000000 --- a/chunk-IZTWYWJL.js +++ /dev/null @@ -1 +0,0 @@ -import{a as xi,b as Si}from"./chunk-AFH22WZE.js";import{a as Mi,b as Ii}from"./chunk-YJNMZPRM.js";import{d as me,e as ue}from"./chunk-LFAX4DK3.js";import"./chunk-XC6WES62.js";import{a as bi}from"./chunk-HYAMKYUE.js";import"./chunk-R66KDUEB.js";import{b as gi,f as vi,g as Ci}from"./chunk-BJXILAOS.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import{a as rt}from"./chunk-TZR6QHL3.js";import{a as Et}from"./chunk-A3N3AUUJ.js";import{B as We,C as Ye,I as Ke}from"./chunk-4FWBEGAE.js";import{b as $e,c as qe,i as oe,j as ae}from"./chunk-2K6IALUF.js";import{e as Zt,g as He,h as Xt,i as Ue,j as Be,p as ei}from"./chunk-KXTQ2UTD.js";import{c as Ct,d as bt,e as yt,g as G,h as W,j as xt,k as St,l as Mt}from"./chunk-I7VYXJU2.js";import{a as Je,b as Ze,c as Xe,d as et,e as yi,f as tt,h as it,i as nt}from"./chunk-EC6LD5KM.js";import{c as H,e as g,f as ui,g as Qe,h as se,i as le,j as U,l as b,m as Ge,p as ce,q as fi,s as pe,u as hi,v as _i,x as de}from"./chunk-EDIJ2EBQ.js";import{J as oi,Q as ai,T as si,U as li,V as ci,Y as re,ba as je,c as Jt,ca as pi,f as ti,ga as di,ha as mi,n as ii,q as It,r as ni,s as ri}from"./chunk-W5KNOAKV.js";import{$ as B,$b as ke,Aa as Bt,Ea as X,Eb as $t,Fc as ft,Ga as De,Gb as Te,Gc as ht,H as Nt,Hc as _t,Ic as be,Ja as R,Jc as Qt,Ka as ve,Kb as z,Kc as Gt,L as Ie,Mb as Ce,Nb as x,Nc as Wt,P as zt,Sb as j,Sc as Le,Tb as u,Vb as D,Vc as L,W as Vt,Wb as Oe,Wc as Yt,Xb as qt,Yb as I,Z as J,_ as Lt,_b as Re,ac as Ae,ba as Ee,bc as a,cc as s,dc as S,e as Me,ea as we,eb as ee,ed as gt,fa as Z,gc as $,ha as _e,hc as V,ic as Pe,ie as vt,j as he,ja as ge,je as Kt,ka as d,kc as h,la as mt,lb as m,ma as ut,mb as te,mc as f,nc as q,ob as ie,oc as Q,p as P,pc as T,q as At,qc as Ne,rc as w,sa as Ht,sb as jt,sc as F,t as N,ta as v,ua as C,ub as y,uc as ze,va as Ut,vb as ne,vc as Ve,wb as E,wc as M,xa as Fe,xc as c,yc as O,z as Pt}from"./chunk-TEKHUYWQ.js";var Ei=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["devmx-account-feature-auth"]],decls:1,vars:0,template:function(t,i){t&1&&S(0,"router-outlet")},dependencies:[Xt],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return n})();var wi=[Ii()];var tn=["*"];function nn(n,l){n&1&&Q(0)}var wt=(()=>{class n{_elementRef=d(R);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=E({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return n})(),Ft=(()=>{class n{template=d(ie);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=E({type:n,selectors:[["","cdkStepLabel",""]]})}return n})();var k={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},rn=new _e("STEPPER_GLOBAL_OPTIONS"),ot=(()=>{class n{_stepperOptions;_stepper=d(ye);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new X;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=d(rn,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["cdk-step"]],contentQueries:function(t,i,r){if(t&1&&(T(r,Ft,5),T(r,ui,5)),t&2){let o;w(o=F())&&(i.stepLabel=o.first),w(o=F())&&(i._childForms=o)}},viewQuery:function(t,i){if(t&1&&Ne(ie,7),t&2){let r;w(r=F())&&(i.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",L],optional:[2,"optional","optional",L],completed:[2,"completed","completed",L],hasError:[2,"hasError","hasError",L]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Ce,Ht],ngContentSelectors:tn,decls:1,vars:0,template:function(t,i){t&1&&(q(),x(0,nn,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return n})(),ye=(()=>{class n{_dir=d(li,{optional:!0});_changeDetectorRef=d(Le);_elementRef=d(R);_destroyed=new he;_keyManager;_steps;steps=new ve;_stepHeader;_sortedHeaders=new ve;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this.steps&&this._steps?(this._isValidIndex(e),this.selected?._markAsInteracted(),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new X;selectedIndexChange=new X;_groupId=d(si).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(J(this._steps),B(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(J(this._stepHeader),B(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,i)=>t._elementRef.nativeElement.compareDocumentPosition(i._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new oi(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:P()).pipe(J(this._layoutDirection()),B(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._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.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`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=k.NUMBER){let i=this.steps.toArray()[e],r=this._isCurrentStep(e);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,r):this._getGuidelineLogic(i,r,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?k.ERROR:!e.completed||t?k.NUMBER:e.editable?k.EDIT:k.DONE}_getGuidelineLogic(e,t,i=k.NUMBER){return e._showError()&&e.hasError&&!t?k.ERROR:e.completed&&!t?k.DONE:e.completed&&t?i:e.editable&&t?k.EDIT:i}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let 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.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=ri(e),i=e.keyCode,r=this._keyManager;r.activeItemIndex!=null&&!t&&(i===32||i===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let i=t.stepControl;return(i?i.invalid||i.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=ii();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class n{_stepper=d(ye);type="submit";constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=E({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,i){t&1&&h("click",function(){return i._stepper.next()}),t&2&&Pe("type",i.type)},inputs:{type:"type"}})}return n})();var Di=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ne({type:n});static \u0275inj=Z({imports:[ci]})}return n})();var on=["*"],at;function an(){if(at===void 0&&(at=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(at=n.trustedTypes.createPolicy("angular#components",{createHTML:l=>l}))}return at}function xe(n){return an()?.createHTML(n)||n}function Ti(n){return Error(`Unable to find icon with the name "${n}"`)}function sn(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Oi(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Ri(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var A=class{url;svgText;options;svgElement;constructor(l,e,t){this.url=l,this.svgText=e,this.options=t}},ln=(()=>{class n{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,i,r){this._httpClient=e,this._sanitizer=t,this._errorHandler=r,this._document=i}addSvgIcon(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}addSvgIconLiteral(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}addSvgIconInNamespace(e,t,i,r){return this._addSvgIconConfig(e,t,new A(i,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,i,r){let o=this._sanitizer.sanitize(ee.HTML,i);if(!o)throw Ri(i);let p=xe(o);return this._addSvgIconConfig(e,t,new A("",p,r))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,i){return this._addSvgIconSetConfig(e,new A(t,null,i))}addSvgIconSetLiteralInNamespace(e,t,i){let r=this._sanitizer.sanitize(ee.HTML,t);if(!r)throw Ri(t);let o=xe(r);return this._addSvgIconSetConfig(e,new A("",o,i))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(ee.RESOURCE_URL,e);if(!t)throw Oi(e);let i=this._cachedIconsByUrl.get(t);return i?P(st(i)):this._loadSvgIconFromConfig(new A(e,null)).pipe(Ee(r=>this._cachedIconsByUrl.set(t,r)),N(r=>st(r)))}getNamedSvgIcon(e,t=""){let i=ki(t,e),r=this._svgIconConfigs.get(i);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(t,e),r)return this._svgIconConfigs.set(i,r),this._getSvgFromConfig(r);let o=this._iconSetConfigs.get(t);return o?this._getSvgFromIconSetConfigs(e,o):At(Ti(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?P(st(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(N(t=>st(t)))}_getSvgFromIconSetConfigs(e,t){let i=this._extractIconWithNameFromAnySet(e,t);if(i)return P(i);let r=t.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Nt(p=>{let K=`Loading icon set URL: ${this._sanitizer.sanitize(ee.RESOURCE_URL,o.url)} failed: ${p.message}`;return this._errorHandler.handleError(new Error(K)),P(null)})));return Pt(r).pipe(N(()=>{let o=this._extractIconWithNameFromAnySet(e,t);if(!o)throw Ti(e);return o}))}_extractIconWithNameFromAnySet(e,t){for(let i=t.length-1;i>=0;i--){let r=t[i];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let o=this._svgElementFromConfig(r),p=this._extractSvgIconFromSet(o,e,r.options);if(p)return p}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ee(t=>e.svgText=t),N(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?P(null):this._fetchIcon(e).pipe(Ee(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,i){let r=e.querySelector(`[id="${t}"]`);if(!r)return null;let o=r.cloneNode(!0);if(o.removeAttribute("id"),o.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(o,i);if(o.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(o),i);let p=this._svgElementFromString(xe(""));return p.appendChild(o),this._setSvgAttributes(p,i)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let i=t.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(e){let t=this._svgElementFromString(xe("")),i=e.attributes;for(let r=0;rxe(K)),zt(()=>this._inProgressUrlFetches.delete(o)),Vt());return this._inProgressUrlFetches.set(o,_),_}_addSvgIconConfig(e,t,i){return this._svgIconConfigs.set(ki(e,t),i),this}_addSvgIconSetConfig(e,t){let i=this._iconSetConfigs.get(e);return i?i.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;il?l.pathname+l.search:""}}var Ai=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],un=Ai.map(n=>`[${n}]`).join(", "),fn=/^url\(['"]?#(.*?)['"]?\)$/,Pi=(()=>{class n{_elementRef=d(R);_iconRegistry=d(ln);_location=d(dn);_errorHandler=d(De);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Me.EMPTY;constructor(){let e=d(new Bt("aria-hidden"),{optional:!0}),t=d(pn,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let i=e.childNodes[t];(i.nodeType!==1||i.nodeName.toLowerCase()==="svg")&&i.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(i=>i.length>0);this._previousFontSetClass.forEach(i=>e.classList.remove(i)),t.forEach(i=>e.classList.add(i)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((i,r)=>{i.forEach(o=>{r.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(un),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let p=t[r],_=p.getAttribute(o),K=_?_.match(fn):null;if(K){let Se=i.get(p);Se||(Se=[],i.set(p,Se)),Se.push({name:o,value:K[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,i]=this._splitIconName(e);t&&(this._svgNamespace=t),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,t).pipe(Ie(1)).subscribe(r=>this._setSvgElement(r),r=>{let o=`Error retrieving icon ${t}:${i}! ${r.message}`;this._errorHandler.handleError(new Error(o))})}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,i){t&2&&(j("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),Oe(i.color?"mat-"+i.color:""),D("mat-icon-inline",i.inline)("mat-icon-no-color",i.color!=="primary"&&i.color!=="accent"&&i.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",L],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Ce],ngContentSelectors:on,decls:1,vars:0,template:function(t,i){t&1&&(q(),Q(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return n})(),Ni=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ne({type:n});static \u0275inj=Z({imports:[re,re]})}return n})();function hn(n,l){if(n&1&&$(0,2),n&2){let e=f();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function _n(n,l){if(n&1&&(a(0,"span",7),c(1),s()),n&2){let e=f(2);m(),O(e._getDefaultTextForState(e.state))}}function gn(n,l){if(n&1&&(a(0,"span",8),c(1),s()),n&2){let e=f(3);m(),O(e._intl.completedLabel)}}function vn(n,l){if(n&1&&(a(0,"span",8),c(1),s()),n&2){let e=f(3);m(),O(e._intl.editableLabel)}}function Cn(n,l){if(n&1&&(x(0,gn,2,1,"span",8)(1,vn,2,1,"span",8),a(2,"mat-icon",7),c(3),s()),n&2){let e=f(2);I(e.state==="done"?0:e.state==="edit"?1:-1),m(3),O(e._getDefaultTextForState(e.state))}}function bn(n,l){if(n&1&&x(0,_n,2,1,"span",7)(1,Cn,4,2),n&2){let e,t=f();I((e=t.state)==="number"?0:1)}}function yn(n,l){n&1&&(a(0,"div",4),$(1,9),s()),n&2&&(m(),u("ngTemplateOutlet",l.template))}function xn(n,l){if(n&1&&(a(0,"div",4),c(1),s()),n&2){let e=f();m(),O(e.label)}}function Sn(n,l){if(n&1&&(a(0,"div",5),c(1),s()),n&2){let e=f();m(),O(e._intl.optionalLabel)}}function Mn(n,l){if(n&1&&(a(0,"div",6),c(1),s()),n&2){let e=f();m(),O(e.errorMessage)}}var Vi=["*"];function In(n,l){}function En(n,l){if(n&1&&(Q(0),x(1,In,0,0,"ng-template",0)),n&2){let e=f();m(),u("cdkPortalOutlet",e._portal)}}var Li=(n,l)=>({step:n,i:l}),Hi=n=>({animationDuration:n}),Ui=(n,l)=>({value:n,params:l});function wn(n,l){n&1&&Q(0)}function Fn(n,l){n&1&&S(0,"div",6)}function Dn(n,l){if(n&1&&($(0,5),x(1,Fn,1,0,"div",6)),n&2){let e=l.$implicit,t=l.$index,i=l.$count;f(2);let r=M(4);u("ngTemplateOutlet",r)("ngTemplateOutletContext",be(3,Li,e,t)),m(),I(t!==i-1?1:-1)}}function Tn(n,l){if(n&1){let e=V();a(0,"div",7),h("@horizontalStepTransition.done",function(i){v(e);let r=f(2);return C(r._animationDone.next(i))}),$(1,8),s()}if(n&2){let e=l.$implicit,t=l.$index,i=f(2);D("mat-horizontal-stepper-content-inactive",i.selectedIndex!==t),u("@horizontalStepTransition",be(8,Ui,i._getAnimationDirection(t),_t(6,Hi,i._getAnimationDuration())))("id",i._getStepContentId(t)),j("aria-labelledby",i._getStepLabelId(t)),m(),u("ngTemplateOutlet",e.content)}}function On(n,l){if(n&1&&(a(0,"div",1)(1,"div",2),ke(2,Dn,2,6,null,null,Re),s(),a(4,"div",3),ke(5,Tn,2,11,"div",4,Re),s()()),n&2){let e=f();m(2),Ae(e.steps),m(3),Ae(e.steps)}}function Rn(n,l){if(n&1){let e=V();a(0,"div",9),$(1,5),a(2,"div",10)(3,"div",11),h("@verticalStepTransition.done",function(i){v(e);let r=f(2);return C(r._animationDone.next(i))}),a(4,"div",12),$(5,8),s()()()()}if(n&2){let e=l.$implicit,t=l.$index,i=l.$count,r=f(2),o=M(4);m(),u("ngTemplateOutlet",o)("ngTemplateOutletContext",be(10,Li,e,t)),m(),D("mat-stepper-vertical-line",t!==i-1),m(),D("mat-vertical-stepper-content-inactive",r.selectedIndex!==t),u("@verticalStepTransition",be(15,Ui,r._getAnimationDirection(t),_t(13,Hi,r._getAnimationDuration())))("id",r._getStepContentId(t)),j("aria-labelledby",r._getStepLabelId(t)),m(2),u("ngTemplateOutlet",e.content)}}function kn(n,l){if(n&1&&ke(0,Rn,6,18,"div",9,Re),n&2){let e=f();Ae(e.steps)}}function An(n,l){if(n&1){let e=V();a(0,"mat-step-header",13),h("click",function(){let i=v(e).step;return C(i.select())})("keydown",function(i){v(e);let r=f();return C(r._onKeydown(i))}),s()}if(n&2){let e=l.step,t=l.i,i=f();D("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),u("tabIndex",i._getFocusIndex()===t?0:-1)("id",i._getStepLabelId(t))("index",t)("state",i._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",i.selectedIndex===t)("active",i._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!i._stepIsNavigable(t,e))("color",e.color||i.color),j("aria-posinset",t+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(t))("aria-selected",i.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",i._stepIsNavigable(t,e)?null:!0)}}var Dt=(()=>{class n extends Ft{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Fe(n)))(i||n)}})();static \u0275dir=E({type:n,selectors:[["","matStepLabel",""]],features:[z]})}return n})(),lt=(()=>{class n{changes=new he;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(t){return new(t||n)};static \u0275prov=we({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Pn(n){return n||new lt}var Nn={provide:lt,deps:[[new mt,new ut,lt]],useFactory:Pn},Tt=(()=>{class n extends wt{_intl=d(lt);_focusMonitor=d(ai);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super(),d(It).load(pi),d(It).load(ni);let e=d(Le);this._intlSubscription=this._intl.changes.subscribe(()=>e.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 Dt?null:this.label}_templateLabel(){return this.label instanceof Dt?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,i){t&2&&Oe("mat-"+(i.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[z],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,i){if(t&1&&(S(0,"div",0),a(1,"div")(2,"div",1),x(3,hn,1,2,"ng-container",2)(4,bn,2,1),s()(),a(5,"div",3),x(6,yn,2,1,"div",4)(7,xn,2,1,"div",4)(8,Sn,2,1,"div",5)(9,Mn,2,1,"div",6),s()),t&2){let r;u("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disableRipple),m(),qt("mat-step-icon-state-",i.state," mat-step-icon"),D("mat-step-icon-selected",i.selected),m(2),I(i.iconOverrides&&i.iconOverrides[i.state]?3:4),m(2),D("mat-step-label-active",i.active)("mat-step-label-selected",i.selected)("mat-step-label-error",i.state=="error"),m(),I((r=i._templateLabel())?6:i._stringLabel()?7:-1,r),m(2),I(i.optional&&i.state!="error"?8:-1),m(),I(i.state==="error"?9:-1)}},dependencies:[di,vt,Pi],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.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;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.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}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}'],encapsulation:2,changeDetection:0})}return n})(),Bi="500ms",ji="225ms",zi={horizontalStepTransition:Ct("horizontalStepTransition",[W("previous",G({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),W("current",G({transform:"none",visibility:"inherit"})),W("next",G({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),xt("* => *",yt([bt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),Mt("@*",St(),{optional:!0})]),{params:{animationDuration:Bi}})]),verticalStepTransition:Ct("verticalStepTransition",[W("previous",G({height:"0px",visibility:"hidden"})),W("next",G({height:"0px",visibility:"hidden"})),W("current",G({height:"*",visibility:"inherit"})),xt("* <=> current",yt([bt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),Mt("@*",St(),{optional:!0})]),{params:{animationDuration:ji}})])},Ot=(()=>{class n{templateRef=d(ie);name;constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=E({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return n})(),zn=(()=>{class n{_template=d(ie);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=E({type:n,selectors:[["ng-template","matStepContent",""]]})}return n})(),Rt=(()=>{class n extends ot{_errorStateMatcher=d(je,{skipSelf:!0});_viewContainerRef=d($t);_isSelected=Me.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Lt(()=>this._stepper.selectionChange.pipe(N(e=>e.selectedStep===this),J(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new gi(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){let i=this._errorStateMatcher.isErrorState(e,t),r=!!(e&&e.invalid&&this.interacted);return i||r}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Fe(n)))(i||n)}})();static \u0275cmp=y({type:n,selectors:[["mat-step"]],contentQueries:function(t,i,r){if(t&1&&(T(r,Dt,5),T(r,zn,5)),t&2){let o;w(o=F())&&(i.stepLabel=o.first),w(o=F())&&(i._lazyContent=o.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ft([{provide:je,useExisting:n},{provide:ot,useExisting:n}]),z],ngContentSelectors:Vi,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,i){t&1&&(q(),x(0,En,2,1,"ng-template"))},dependencies:[vi],encapsulation:2,changeDetection:0})}return n})(),fe=(()=>{class n extends ye{_stepHeader=void 0;_steps=void 0;steps=new ve;_icons;animationDone=new X;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};_animationDone=new he;get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!d(ti).isBrowser;constructor(){super();let t=d(R).nativeElement.nodeName.toLowerCase();this.orientation=t==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(B(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(B(this._destroyed)).subscribe(e=>{e.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?Bi:ji}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,i,r){if(t&1&&(T(r,Rt,5),T(r,Ot,5)),t&2){let o;w(o=F())&&(i._steps=o),w(o=F())&&(i._icons=o)}},viewQuery:function(t,i){if(t&1&&Ne(Tt,5),t&2){let r;w(r=F())&&(i._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(t,i){t&2&&(j("aria-orientation",i.orientation),D("mat-stepper-horizontal",i.orientation==="horizontal")("mat-stepper-vertical",i.orientation==="vertical")("mat-stepper-label-position-end",i.orientation==="horizontal"&&i.labelPosition=="end")("mat-stepper-label-position-bottom",i.orientation==="horizontal"&&i.labelPosition=="bottom")("mat-stepper-header-position-bottom",i.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ft([{provide:ye,useExisting:n}]),z],ngContentSelectors:Vi,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(t,i){if(t&1&&(q(),x(0,wn,1,0)(1,On,7,0,"div",1)(2,kn,2,0)(3,An,1,23,"ng-template",null,0,Wt)),t&2){let r;I(i._isServer?0:-1),m(),I((r=i.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[vt,Tt],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.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-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.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;height:var(--mat-stepper-header-height, 72px)}.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-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.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;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 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-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[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;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[zi.horizontalStepTransition,zi.verticalStepTransition]},changeDetection:0})}return n})(),$i=(()=>{class n extends Fi{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Fe(n)))(i||n)}})();static \u0275dir=E({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,i){t&2&&Pe("type",i.type)},features:[z]})}return n})();var qi=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ne({type:n});static \u0275inj=Z({providers:[Nn,je],imports:[re,Ci,Di,Ni,mi,fe,Tt,re]})}return n})();var Qi=(()=>{class n{ngControl;constructor(e){this.ngControl=e}onInput(e){this.#e(e.toUpperCase())}#e(e){this.ngControl.control&&this.ngControl.control.setValue(e,{emitEvent:!1})}static \u0275fac=function(t){return new(t||n)(te(Qe))};static \u0275dir=E({type:n,selectors:[["input","devmxUpper",""]],hostBindings:function(t,i){t&1&&h("input",function(o){return i.onInput(o.target.value)})}})}return n})();var Ln=["inputA"],Yi=(()=>{class n extends H{elRef;ngControl;inputA=Te("inputA");get inputAElm(){return this.inputA()?.nativeElement}get control(){return this.ngControl.control}constructor(e,t,i){super(e,t,!0),this.elRef=t,this.ngControl=i,this.ngControl.valueAccessor=this,this.form.valueChanges.subscribe(()=>{if(this.form.valid){let{a:r,b:o,c:p,d:_}=this.form.getRawValue();this.control.setValue(`${r+o+p+_}`.toUpperCase())}})}form=new U({a:new b("",{nonNullable:!0,validators:[g.required]}),b:new b("",{nonNullable:!0,validators:[g.required]}),c:new b("",{nonNullable:!0,validators:[g.required]}),d:new b("",{nonNullable:!0,validators:[g.required]})});onInput(e,t){e.value.length===1&&t&&t.focus()}onPaste(e,t){e.preventDefault();let i=e.clipboardData?.getData("text")??"";if(i.length===4){let[r,o,p,_]=i.split("");this.form.controls.a.setValue(r),this.form.controls.b.setValue(o),this.form.controls.c.setValue(p),this.form.controls.d.setValue(_),t.focus()}}static \u0275fac=function(t){return new(t||n)(te(jt),te(R),te(Qe,10))};static \u0275cmp=y({type:n,selectors:[["devmx-code-field"]],viewQuery:function(t,i){t&1&&ze(i.inputA,Ln,5),t&2&&Ve()},exportAs:["devmxCodeField"],features:[z],decls:13,vars:1,consts:[["inputA",""],["inputB",""],["inputC",""],["inputD",""],[3,"formGroup"],[1,"code-field"],["matInput","","devmxUpper","","minlength","1","maxlength","1","formControlName","a",3,"input","paste"],["matInput","","devmxUpper","","minlength","1","maxlength","1","formControlName","b",3,"input","keyup.backspace"],["matInput","","devmxUpper","","minlength","1","maxlength","1","formControlName","c",3,"input","keyup.backspace"],["matInput","","devmxUpper","","minlength","1","maxlength","1","formControlName","d",3,"input","keyup.backspace"]],template:function(t,i){if(t&1){let r=V();a(0,"div",4)(1,"mat-form-field",5)(2,"input",6,0),h("input",function(){v(r);let p=M(3),_=M(6);return C(i.onInput(p,_))})("paste",function(p){v(r);let _=M(12);return C(i.onPaste(p,_))}),s()(),a(4,"mat-form-field",5)(5,"input",7,1),h("input",function(){v(r);let p=M(6),_=M(9);return C(i.onInput(p,_))})("keyup.backspace",function(){v(r);let p=M(3);return C(p.focus())}),s()(),a(7,"mat-form-field",5)(8,"input",8,2),h("input",function(){v(r);let p=M(9),_=M(12);return C(i.onInput(p,_))})("keyup.backspace",function(){v(r);let p=M(6);return C(p.focus())}),s()(),a(10,"mat-form-field",5)(11,"input",9,3),h("input",function(){v(r);let p=M(12);return C(i.onInput(p))})("keyup.backspace",function(){v(r);let p=M(9);return C(p.focus())}),s()()()}t&2&&u("formGroup",i.form)},dependencies:[de,H,se,le,hi,_i,ce,pe,ae,oe,ue,me,Qi],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;justify-content:space-between}[_nghost-%COMP%] .code-field[_ngcontent-%COMP%]{width:2.8em}"],changeDetection:0})}return n})();var ct=class extends U{constructor(){super({name:new b("",{nonNullable:!0,validators:[g.required,g.pattern(/^[a-z0-9]+$/)]}),code:new b("",{nonNullable:!0})})}};var pt=class extends U{constructor(){super({member:new b(!0,{nonNullable:!0,validators:[g.requiredTrue]}),academic:new b(!1,{nonNullable:!0}),recruiter:new b(!1,{nonNullable:!0}),speaker:new b(!1,{nonNullable:!0})})}};var dt=class extends U{constructor(){super({name:new b("",{nonNullable:!0,validators:[g.required,g.pattern(/^[a-z0-9]+$/)]}),displayName:new b("",{nonNullable:!0,validators:[g.required]}),email:new b("",{nonNullable:!0,validators:[g.required,g.email]}),roles:new pt})}};var Ki=()=>["..","cadastrar"];function Bn(n,l){n&1&&(Ut(),a(0,"svg",21),S(1,"path",22),s())}var Ji=(()=>{class n{route=d(He);router=d(Ue);stepper=Te(fe);authenticationFacade=d(rt);form=new ct;constructor(){this.authenticationFacade.connected$.pipe(Et()).subscribe(e=>{let{redirectTo:t}=this.route.snapshot.queryParams;e&&t?this.router.navigateByUrl(t):e&&this.router.navigate(["/"])}),this.form.controls.code.valueChanges.pipe(Et()).subscribe(e=>{e.length===4&&this.validateUserCode()})}sendUserCode(){if(this.form.valid){let e=this.form.getRawValue();this.authenticationFacade.sendUserCode(e);let t=[g.required];this.form.controls.code.addValidators(t)}}validateUserCode(){if(this.form.valid){let e=this.form.getRawValue();this.authenticationFacade.validateUserCode(e)}}onAnimationDone(e,t){let i=this.stepper();if(i)switch(i.selectedIndex){case 0:return t.focus();case 1:default:return e.inputAElm?.focus()}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["devmx-authentication"]],viewQuery:function(t,i){t&1&&ze(i.stepper,fe,5),t&2&&Ve()},decls:40,vars:14,consts:[["stepper",""],["nameRef",""],["codeFieldRef","devmxCodeField"],[1,"authentication-card"],[1,"authentication-card-header"],["mat-card-avatar","","src","devmx.svg","alt","devmx logo"],[1,"authentication-card-content"],["mat-raised-button","",3,"routerLink","queryParams"],[3,"linear"],["label","Identifique-se",3,"stepControl"],["matStepperIcon","edit"],[3,"submit","formGroup"],["matInput","","formControlName","name","autocomplete","username","autofocus",""],["mat-button","","matStepperNext",""],["label","Confirme sua identidade",3,"stepControl"],[3,"formGroup"],["formControlName","code"],[1,"auth-resend-button"],["mat-button","","type","button",3,"click"],["mat-button","",3,"routerLink","queryParams"],["target","_blank","rel","noopener noreferrer","href","https://wa.me/5544991422726?text=Gui,%20me%20ajuda!%20Estou%20sem%20acesso%20a%20minha%20conta%20no%20portal%20devparana.mx","mat-button",""],["width","16","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3 5L10.7721 11.045C11.4943 11.6067 12.5057 11.6067 13.2279 11.045L21 5M5.2 20H18.8C19.9201 20 20.4802 20 20.908 19.782C21.2843 19.5903 21.5903 19.2843 21.782 18.908C22 18.4802 22 17.9201 22 16.8V7.2C22 6.0799 22 5.51984 21.782 5.09202C21.5903 4.71569 21.2843 4.40973 20.908 4.21799C20.4802 4 19.9201 4 18.8 4H5.2C4.07989 4 3.51984 4 3.09202 4.21799C2.71569 4.40973 2.40973 4.71569 2.21799 5.09202C2 5.51984 2 6.07989 2 7.2V16.8C2 17.9201 2 18.4802 2.21799 18.908C2.40973 19.2843 2.71569 19.5903 3.09202 19.782C3.51984 20 4.0799 20 5.2 20Z","stroke","currentColor","stroke-width","2"]],template:function(t,i){if(t&1){let r=V();a(0,"div")(1,"mat-card",3)(2,"mat-card-header",4),S(3,"img",5),a(4,"mat-card-title"),c(5,"Autentica\xE7\xE3o"),s(),a(6,"mat-card-subtitle"),c(7,"Em dois toques"),s()(),a(8,"mat-card-content",6)(9,"a",7),c(10," Quero criar minha conta "),s()(),a(11,"mat-vertical-stepper",8,0)(13,"mat-step",9),x(14,Bn,2,0,"ng-template",10),a(15,"form",11),h("submit",function(){return v(r),C(i.sendUserCode())}),a(16,"mat-form-field")(17,"mat-label"),c(18,"Seu usu\xE1rio"),s(),S(19,"input",12,1),a(21,"mat-error"),c(22,"Obrigat\xF3rio"),s()(),a(23,"button",13),c(24,"Enviar c\xF3digo por e-mail"),s()()(),a(25,"mat-step",14)(26,"form",15)(27,"p"),c(28),Qt(29,"async"),s(),S(30,"devmx-code-field",16,2),a(32,"div",17)(33,"button",18),h("click",function(){return v(r),C(i.sendUserCode())}),c(34," Reenviar c\xF3digo "),s()()()()()(),a(35,"footer")(36,"a",19),c(37," Criar minha conta "),s(),a(38,"a",20),c(39," Recuperar conta "),s()()()}t&2&&(m(9),u("routerLink",ht(12,Ki))("queryParams",i.route.snapshot.queryParams),m(2),u("linear",!0),m(2),u("stepControl",i.form),m(2),u("formGroup",i.form),m(10),u("stepControl",i.form),m(),u("formGroup",i.form),m(2),O(Gt(29,10,i.authenticationFacade.message$)),m(8),u("routerLink",ht(13,Ki))("queryParams",i.route.snapshot.queryParams))},dependencies:[de,Ge,H,se,le,ce,pe,ae,oe,$e,qe,Yi,qi,Rt,fe,$i,Ot,Ke,Ye,We,ue,me,nt,Je,it,Xe,tt,et,Ze,Be,Kt],styles:[`[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#f1edec;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpath fill='%23f4f1f0' d='M486 705.8c-109.3-21.8-223.4-32.2-335.3-19.4C99.5 692.1 49 703 0 719.8V800h843.8c-115.9-33.2-230.8-68.1-347.6-92.2C492.8 707.1 489.4 706.5 486 705.8z'/%3E%3Cpath fill='%23f7f4f4' d='M1600 0H0v719.8c49-16.8 99.5-27.8 150.7-33.5c111.9-12.7 226-2.4 335.3 19.4c3.4 0.7 6.8 1.4 10.2 2c116.8 24 231.7 59 347.6 92.2H1600V0z'/%3E%3Cpath fill='%23f9f8f7' d='M478.4 581c3.2 0.8 6.4 1.7 9.5 2.5c196.2 52.5 388.7 133.5 593.5 176.6c174.2 36.6 349.5 29.2 518.6-10.2V0H0v574.9c52.3-17.6 106.5-27.7 161.1-30.9C268.4 537.4 375.7 554.2 478.4 581z'/%3E%3Cpath fill='%23fcfbfb' d='M0 0v429.4c55.6-18.4 113.5-27.3 171.4-27.7c102.8-0.8 203.2 22.7 299.3 54.5c3 1 5.9 2 8.9 3c183.6 62 365.7 146.1 562.4 192.1c186.7 43.7 376.3 34.4 557.9-12.6V0H0z'/%3E%3Cpath fill='%23FFFFFF' d='M181.8 259.4c98.2 6 191.9 35.2 281.3 72.1c2.8 1.1 5.5 2.3 8.3 3.4c171 71.6 342.7 158.5 531.3 207.7c198.8 51.8 403.4 40.8 597.3-14.8V0H0v283.2C59 263.6 120.6 255.7 181.8 259.4z'/%3E%3Cpath fill='%23ffffff' d='M1600 0H0v136.3c62.3-20.9 127.7-27.5 192.2-19.2c93.6 12.1 180.5 47.7 263.3 89.6c2.6 1.3 5.1 2.6 7.7 3.9c158.4 81.1 319.7 170.9 500.3 223.2c210.5 61 430.8 49 636.6-16.6V0z'/%3E%3Cpath fill='%23ffffff' d='M454.9 86.3C600.7 177 751.6 269.3 924.1 325c208.6 67.4 431.3 60.8 637.9-5.3c12.8-4.1 25.4-8.4 38.1-12.9V0H288.1c56 21.3 108.7 50.6 159.7 82C450.2 83.4 452.5 84.9 454.9 86.3z'/%3E%3Cpath fill='%23ffffff' d='M1600 0H498c118.1 85.8 243.5 164.5 386.8 216.2c191.8 69.2 400 74.7 595 21.1c40.8-11.2 81.1-25.2 120.3-41.7V0z'/%3E%3Cpath fill='%23ffffff' d='M1397.5 154.8c47.2-10.6 93.6-25.3 138.6-43.8c21.7-8.9 43-18.8 63.9-29.5V0H643.4c62.9 41.7 129.7 78.2 202.1 107.4C1020.4 178.1 1214.2 196.1 1397.5 154.8z'/%3E%3Cpath fill='%23FFFFFF' d='M1315.3 72.4c75.3-12.6 148.9-37.1 216.8-72.4h-723C966.8 71 1144.7 101 1315.3 72.4z'/%3E%3C/g%3E%3C/svg%3E");background-attachment:fixed;background-size:cover}[_nghost-%COMP%] form[_ngcontent-%COMP%]{gap:.4em;display:flex;flex-direction:column;margin-top:.8em}[_nghost-%COMP%] .authentication-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .authentication-card-header[_ngcontent-%COMP%] .mat-mdc-card-title[_ngcontent-%COMP%]{font-size:1.2em}[_nghost-%COMP%] .authentication-card-header[_ngcontent-%COMP%] .mat-mdc-card-subtitle[_ngcontent-%COMP%]{font-size:1em;opacity:.8}[_nghost-%COMP%] .authentication-card-content[_ngcontent-%COMP%]{padding:.3em 3.8em 1em}[_nghost-%COMP%] .authentication-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:80%;opacity:.8}[_nghost-%COMP%] .auth-resend-button[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:space-between}`],changeDetection:0})}return n})();function jn(n,l){n&1&&c(0," Use apenas letras do alfabeto min\xFAsculas ")}function $n(n,l){n&1&&c(0," Obrigat\xF3rio ")}function qn(n,l){n&1&&(a(0,"mat-error"),c(1,"\xC9 obrigat\xF3rio ser membro"),s())}var Zi=(()=>{class n{authFacade=d(rt);message=d(bi);dialog=d(Mi);route=d(He);router=d(Ue);form=new dt;onSubmit(){if(this.form.valid){let e=this.form.getRawValue();this.authFacade.createUser(e).pipe(Ie(1)).subscribe(()=>{let{redirectTo:r}=this.route.snapshot.queryParams,o={redirectTo:r},p=["/","conta","autenticacao","acessar"];this.router.navigate(p,{queryParams:o})});let i=`Conta ${e.name} criada`;this.message.open({message:i})}}openConduteCode(){this.dialog.readMe("https://raw.githubusercontent.com/DeveloperParana/conduta/refs/heads/master/README.md").subscribe()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["devmx-registration"]],decls:54,vars:4,consts:[[3,"submit","formGroup"],[1,"registration-card"],[1,"registration-card-header"],["mat-card-avatar","","src","devmx.svg","alt","devmx logo"],[1,"registration-card-content"],["matInput","","formControlName","displayName","placeholder","Ex.: Francisco Thiago","autocomplete","name","autofocus",""],["matInput","","formControlName","name","autocomplete","username","placeholder","Ex.: chico"],["matInput","","type","email","formControlName","email","autocomplete","email"],["formGroupName","roles",1,"registration-roles"],["formControlName","member"],["formControlName","speaker"],["formControlName","recruiter"],["formControlName","academic"],[1,"registration-card-actions"],["mat-flat-button",""],["routerLink","../acessar","mat-button",""],["href","#"],["href","javascript:void(0)",3,"click"]],template:function(t,i){t&1&&(a(0,"div")(1,"form",0),h("submit",function(){return i.onSubmit()}),a(2,"mat-card",1)(3,"mat-card-header",2),S(4,"img",3),a(5,"mat-card-title"),c(6,"Acesse a comunidade"),s(),a(7,"mat-card-subtitle"),c(8,"Fa\xE7a parte da DevParan\xE1"),s()(),a(9,"mat-card-content",4)(10,"mat-form-field")(11,"mat-label"),c(12,"Seu nome"),s(),S(13,"input",5),a(14,"mat-error"),c(15,"Obrigat\xF3rio"),s()(),a(16,"mat-form-field")(17,"mat-label"),c(18,"Seu usu\xE1rio"),s(),S(19,"input",6),a(20,"mat-error"),x(21,jn,1,0)(22,$n,1,0),s()(),a(23,"mat-form-field")(24,"mat-label"),c(25,"Seu e-mail"),s(),S(26,"input",7),a(27,"mat-error"),c(28,"Endere\xE7o inv\xE1lido"),s()(),a(29,"div",8)(30,"mat-checkbox",9),c(31," Sou membro da comunidade "),s(),x(32,qn,2,0,"mat-error"),a(33,"mat-checkbox",10),c(34," Sou ou quero ser palestrante "),s(),a(35,"mat-checkbox",11),c(36," Sou recrutador de talentos "),s(),a(37,"mat-checkbox",12),c(38," Sou da \xE1rea acad\xEAmica "),s()()(),a(39,"mat-card-actions",13)(40,"button",14),c(41,"Cadastrar"),s(),a(42,"a",15),c(43," J\xE1 tenho uma conta "),s()()(),a(44,"footer"),c(45," Ao continuar, voc\xEA concorda com nossos "),a(46,"a",16),c(47,"Termos de Servi\xE7o"),s(),c(48,", reconhece nossa "),a(49,"a",16),c(50,"Pol\xEDtica de Privacidade"),s(),c(51," e "),a(52,"a",17),h("click",function(){return i.openConduteCode()}),c(53," C\xF3digo de Conduta "),s()()()()),t&2&&(m(),u("formGroup",i.form),m(20),I(i.form.controls.name.hasError("pattern")?21:-1),m(),I(i.form.controls.name.hasError("required")?22:-1),m(10),I(i.form.controls.roles.controls.member.errors?32:-1))},dependencies:[de,Ge,H,se,le,ce,pe,fi,ae,oe,$e,qe,Si,xi,Ke,Ye,We,ue,me,nt,Je,yi,it,Xe,tt,et,Ze,ei,Be],styles:[`[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#f1edec;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpath fill='%23f4f1f0' d='M486 705.8c-109.3-21.8-223.4-32.2-335.3-19.4C99.5 692.1 49 703 0 719.8V800h843.8c-115.9-33.2-230.8-68.1-347.6-92.2C492.8 707.1 489.4 706.5 486 705.8z'/%3E%3Cpath fill='%23f7f4f4' d='M1600 0H0v719.8c49-16.8 99.5-27.8 150.7-33.5c111.9-12.7 226-2.4 335.3 19.4c3.4 0.7 6.8 1.4 10.2 2c116.8 24 231.7 59 347.6 92.2H1600V0z'/%3E%3Cpath fill='%23f9f8f7' d='M478.4 581c3.2 0.8 6.4 1.7 9.5 2.5c196.2 52.5 388.7 133.5 593.5 176.6c174.2 36.6 349.5 29.2 518.6-10.2V0H0v574.9c52.3-17.6 106.5-27.7 161.1-30.9C268.4 537.4 375.7 554.2 478.4 581z'/%3E%3Cpath fill='%23fcfbfb' d='M0 0v429.4c55.6-18.4 113.5-27.3 171.4-27.7c102.8-0.8 203.2 22.7 299.3 54.5c3 1 5.9 2 8.9 3c183.6 62 365.7 146.1 562.4 192.1c186.7 43.7 376.3 34.4 557.9-12.6V0H0z'/%3E%3Cpath fill='%23FFFFFF' d='M181.8 259.4c98.2 6 191.9 35.2 281.3 72.1c2.8 1.1 5.5 2.3 8.3 3.4c171 71.6 342.7 158.5 531.3 207.7c198.8 51.8 403.4 40.8 597.3-14.8V0H0v283.2C59 263.6 120.6 255.7 181.8 259.4z'/%3E%3Cpath fill='%23ffffff' d='M1600 0H0v136.3c62.3-20.9 127.7-27.5 192.2-19.2c93.6 12.1 180.5 47.7 263.3 89.6c2.6 1.3 5.1 2.6 7.7 3.9c158.4 81.1 319.7 170.9 500.3 223.2c210.5 61 430.8 49 636.6-16.6V0z'/%3E%3Cpath fill='%23ffffff' d='M454.9 86.3C600.7 177 751.6 269.3 924.1 325c208.6 67.4 431.3 60.8 637.9-5.3c12.8-4.1 25.4-8.4 38.1-12.9V0H288.1c56 21.3 108.7 50.6 159.7 82C450.2 83.4 452.5 84.9 454.9 86.3z'/%3E%3Cpath fill='%23ffffff' d='M1600 0H498c118.1 85.8 243.5 164.5 386.8 216.2c191.8 69.2 400 74.7 595 21.1c40.8-11.2 81.1-25.2 120.3-41.7V0z'/%3E%3Cpath fill='%23ffffff' d='M1397.5 154.8c47.2-10.6 93.6-25.3 138.6-43.8c21.7-8.9 43-18.8 63.9-29.5V0H643.4c62.9 41.7 129.7 78.2 202.1 107.4C1020.4 178.1 1214.2 196.1 1397.5 154.8z'/%3E%3Cpath fill='%23FFFFFF' d='M1315.3 72.4c75.3-12.6 148.9-37.1 216.8-72.4h-723C966.8 71 1144.7 101 1315.3 72.4z'/%3E%3C/g%3E%3C/svg%3E");background-attachment:fixed;background-size:cover}[_nghost-%COMP%] form[_ngcontent-%COMP%]{gap:1em;margin:.8em 1em 1em;max-width:24em;display:flex;flex-direction:column}[_nghost-%COMP%] .registration-card[_ngcontent-%COMP%]{min-width:22em;overflow:hidden}[_nghost-%COMP%] .registration-card-header[_ngcontent-%COMP%]{margin-bottom:1em}[_nghost-%COMP%] .registration-card-header[_ngcontent-%COMP%] .mat-mdc-card-title[_ngcontent-%COMP%]{font-size:1.2em}[_nghost-%COMP%] .registration-card-header[_ngcontent-%COMP%] .mat-mdc-card-subtitle[_ngcontent-%COMP%]{font-size:1em;opacity:.8}[_nghost-%COMP%] .registration-card-content[_ngcontent-%COMP%]{gap:.8em;display:flex;margin-bottom:.8em;flex-direction:column}[_nghost-%COMP%] .registration-card-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between}[_nghost-%COMP%] .registration-card[_ngcontent-%COMP%] .registration-roles[_ngcontent-%COMP%]{gap:.4em;display:flex;flex-direction:column}[_nghost-%COMP%] .registration-card[_ngcontent-%COMP%] .registration-roles[_ngcontent-%COMP%] .mat-mdc-form-field-error[_ngcontent-%COMP%]{margin-left:1em}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{margin:.4em 0;font-size:78%;text-align:center}`],changeDetection:0})}return n})();var da=[{path:"",providers:wi,component:Ei,children:[{path:"acessar",title:"Acessar",component:Ji},{path:"cadastrar",title:"Cadastrar",component:Zi},{path:"",redirectTo:"acessar",pathMatch:"full"}]}];export{Ei as AccountFeatureAuthComponent,da as accountFeatureAuthRoutes}; diff --git a/chunk-3H7JVFAU.js b/chunk-JALA4ZS3.js similarity index 93% rename from chunk-3H7JVFAU.js rename to chunk-JALA4ZS3.js index 3cdd4515..8ffb0723 100644 --- a/chunk-3H7JVFAU.js +++ b/chunk-JALA4ZS3.js @@ -1 +1 @@ -import{a as ht,b as Mt}from"./chunk-4Y7TZHD4.js";import"./chunk-DUF4HXV7.js";import{a as tt,b as nt,c as it,e as ot}from"./chunk-66MLPMX6.js";import{a as Ke,b as Ye}from"./chunk-JCCZXGKN.js";import{a as rt,b as lt}from"./chunk-CXAKQAL3.js";import"./chunk-AFH22WZE.js";import{a as mt,b as st,c as ct,d as pt,e as dt,f as ut,g as gt,h as ft,i as Ct,j as _t,k as bt}from"./chunk-HPJEYRZM.js";import{a as X,b as et}from"./chunk-YJNMZPRM.js";import{a as at}from"./chunk-VE4FGS76.js";import{a as Ue,d as Qe,e as We}from"./chunk-LFAX4DK3.js";import{a as Ze}from"./chunk-AD4TXQD3.js";import"./chunk-JX4IWPKV.js";import"./chunk-XC6WES62.js";import{a as L}from"./chunk-LVUYG7JQ.js";import{a as Ae}from"./chunk-HYAMKYUE.js";import{c as Le}from"./chunk-IIJ56NAR.js";import"./chunk-WK53HQNR.js";import{a as qe,b as H,c as U}from"./chunk-VYHC3V3G.js";import{a as $e,b as Ie}from"./chunk-3I45H2NO.js";import{a as P,c as Re}from"./chunk-WBTUXFAS.js";import"./chunk-R66KDUEB.js";import"./chunk-2E7FYHXW.js";import"./chunk-BJXILAOS.js";import{a as Xe}from"./chunk-AC7KYN3P.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import{a as He}from"./chunk-TZR6QHL3.js";import{a as J}from"./chunk-A3N3AUUJ.js";import{A as ve,B as Je,F as Ne,G as T,H as Ve,I as D,s as Me}from"./chunk-4FWBEGAE.js";import{b as fe,c as Ce,d as _e,i as be,j as he}from"./chunk-2K6IALUF.js";import{g as k,h as de,i as j,j as ue,p as G}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import{i as Te,l as De}from"./chunk-PAP2P7QR.js";import{a as Q,b as ze,c as Be,e as W,f as Ge,i as K}from"./chunk-EC6LD5KM.js";import{a as F,c as xe,e as g,h as Oe,i as we,j as E,l as u,m as ye,p as Pe,q as Se,r as Ee,s as ke,w as je,x as Fe}from"./chunk-EDIJ2EBQ.js";import{na as ge}from"./chunk-W5KNOAKV.js";import{$b as O,F as me,Fb as se,Jc as q,Kc as z,L as ie,Nb as _,Sc as pe,Tb as p,Yb as S,_b as R,ac as w,bc as n,cc as i,dc as c,ec as $,fc as I,hc as y,j as ne,je as B,ka as d,kc as f,lb as m,mc as b,p as le,t as V,ta as M,u as A,ua as v,ub as x,xc as l,yc as h,zc as ce}from"./chunk-TEKHUYWQ.js";var vt=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275cmp=x({type:t,selectors:[["devmx-career-feature-admin"]],decls:1,vars:0,template:function(o,a){o&1&&c(0,"router-outlet")},dependencies:[de],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();var xt=[{provide:ve,useExisting:L},lt(),Mt(),ot(),et()];var Ot=t=>t.params.id==="nova"?le({}):Re(d(P),t.params);function Et(t,r){t&1&&(n(0,"th",15),l(1,"T\xEDtulo da vaga"),i())}function kt(t,r){if(t&1&&(n(0,"td",16),l(1),i()),t&2){let e=r.$implicit;m(),h(e.title)}}function jt(t,r){t&1&&(n(0,"th",15),l(1,"Criada por"),i())}function Ft(t,r){if(t&1&&(n(0,"td",16),l(1),i()),t&2){let e=r.$implicit;m(),ce(" ",e.owner.displayName," ")}}function Tt(t,r){t&1&&c(0,"th",15)}function Dt(t,r){if(t&1){let e=y();n(0,"td",16)(1,"button",17),f("click",function(){let a=M(e).$implicit,s=b(2);return v(s.openDelete(a))}),c(2,"devmx-icon",18),i()()}}function Jt(t,r){t&1&&c(0,"tr",19)}function Nt(t,r){t&1&&c(0,"tr",20)}function Vt(t,r){if(t&1){let e=y();n(0,"table",5),$(1,6),_(2,Et,2,0,"th",7)(3,kt,2,1,"td",8),I(),$(4,9),_(5,jt,2,0,"th",7)(6,Ft,2,1,"td",8),I(),$(7,10),_(8,Tt,1,0,"th",7)(9,Dt,3,0,"td",8),I(),_(10,Jt,1,0,"tr",11)(11,Nt,1,0,"tr",12),i(),n(12,"mat-card-actions",13)(13,"devmx-paginator",14),f("pageChange",function(a){M(e);let s=b();return v(s.onPageChange(a))}),i()()}if(t&2){let e=r,o=b();p("dataSource",e.data),m(10),p("matHeaderRowDef",o.columns),m(),p("matRowDefColumns",o.columns),m(2),p("size",10)("items",e.items)}}var yt=(()=>{class t{router=d(j);route=d(k);dialogFacade=d(X);jobOpeningFacade=d(P);selectUser=d(rt);#e=Me(null);columns=["title","owner","actions"];constructor(){let e=this.#e.observe().pipe(V(a=>a?a.id:"")),o=this.route.queryParams;A([e,o]).pipe(J()).subscribe(this.onQueryParams)}onQueryParams=([e,o])=>{let{page:a=0,size:s=10}=o,{open:C=null,active:N=null}=o,te={open:C,active:N,owner:e};this.jobOpeningFacade.setParams({page:a,size:s,filter:te}),this.jobOpeningFacade.load()};openDelete({id:e,title:o}){this.dialogFacade.confirm(`Confirme que deseja apagar a vaga ${o}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(a=>{a&&this.jobOpeningFacade.delete(e)})}openSelectUser(){this.selectUser.open({onlyRole:"recruiter",multiple:!1}).subscribe(e=>{e&&this.#e.update(e)})}onSearchChange(e=""){this.jobOpeningFacade.setFilter({title:e}),this.jobOpeningFacade.load()}onPageChange({page:e,size:o}){let a={page:e,size:o};this.router.navigate([],{queryParams:a})}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=x({type:t,selectors:[["devmx-career-admin-manage-job-openings"]],decls:10,vars:4,consts:[[1,"job-penings-card"],[1,"job-openings-card-header"],["mat-icon-button","",3,"click"],["name","filter"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","owner"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(o&1&&(n(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),l(3,"Vagas"),i(),n(4,"div")(5,"button",2),f("click",function(){return a.openSelectUser()}),c(6,"devmx-icon",3),i(),n(7,"devmx-search-field",4),f("searchChange",function(C){return a.onSearchChange(C)}),i()()(),_(8,Vt,14,5),q(9,"async"),i()),o&2){let s;m(7),p("debounce",1e3),m(),S((s=z(9,2,a.jobOpeningFacade.response$))?8:-1,s)}},dependencies:[G,D,T,at,bt,mt,ct,gt,pt,st,ft,dt,ut,Ct,_t,K,Q,W,Ge,ze,H,U,F,B],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .job-openings-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .job-openings-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .job-openings-card-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;align-items:baseline}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:3em}"],changeDetection:0})}return t})();var Rt=(t,r)=>r.id;function At(t,r){if(t&1){let e=y();n(0,"devmx-job-opening-card",3)(1,"a",6),c(2,"devmx-icon",7),i(),n(3,"button",8),f("click",function(){let a=M(e).$implicit,s=b(2);return v(s.deleteJobOpening(a))}),c(4,"devmx-icon",9),i()()}if(t&2){let e=r.$implicit;p("data",e),m(),p("routerLink",e.id)}}function $t(t,r){t&1&&(n(0,"div",4)(1,"h2"),l(2,"N\xE3o temos nada aqui..."),i(),n(3,"h3"),l(4," Siga nessa dire\xE7\xE3o "),c(5,"devmx-icon",10)(6,"br"),l(7," at\xE9 encontrar o bot\xE3o com um "),c(8,"devmx-icon",11)(9,"br"),l(10," e cadastre suas vagas. "),c(11,"devmx-icon",12),i()()),t&2&&(m(5),p("size",32),m(3),p("size",32),m(3),p("size",32))}function It(t,r){if(t&1){let e=y();n(0,"div",2),O(1,At,5,2,"devmx-job-opening-card",3,Rt),i(),_(3,$t,12,3,"div",4),n(4,"footer")(5,"devmx-paginator",5),f("pageChange",function(a){M(e);let s=b();return v(s.onPageChange(a))}),i()()}if(t&2){let e=r;m(),w(e.data),m(2),S(e.items?-1:3),m(2),p("size",10)("items",e.items)}}var Pt=(()=>{class t{router=d(j);route=d(k);dialogFacade=d(X);authFacade=d(He);jobOpeningFacade=d(P);constructor(){let e=this.authFacade.auth$.pipe(me(a=>!!a),V(({id:a})=>a)),o=this.route.queryParams.pipe(V(({page:a,size:s,open:C=null,active:N=null})=>({page:a,size:s,open:C,active:N})));A([e,o]).pipe(J()).subscribe(this.onQueryParams)}onQueryParams=([e,o])=>{let{page:a,size:s,open:C,active:N}=o,te={open:C,active:N,owner:e};this.jobOpeningFacade.setParams({page:a,size:s,filter:te}),this.jobOpeningFacade.load()};deleteJobOpening({id:e,title:o}){this.dialogFacade.confirm(`Confirme que deseja apagar a vaga ${o}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(a=>{a&&this.jobOpeningFacade.delete(e)})}onPageChange({page:e,size:o}){let a={page:e,size:o};this.router.navigate([],{queryParams:a})}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=x({type:t,selectors:[["devmx-career-admin-my-job-openings"]],decls:4,vars:3,consts:[["mat-fab","","routerLink","nova",1,"tertiary-fab","top","right"],["name","plus"],[1,"job-openings-container"],[3,"data"],[1,"no-job-openings-yet"],[3,"pageChange","size","items"],["mat-icon-button","","matTooltip","Editar vaga","matTooltipPosition","before",3,"routerLink"],["name","software/edit"],["type","button","mat-icon-button","","matTooltip","Apagar vaga","matTooltipPosition","after",3,"click"],["name","trash-alt"],["color","#3BCE53","name","arrow/up-right",3,"size"],["color","#3BCE53","name","plus",3,"size"],["color","#3BCE53","name","emoji/smirking-alt",3,"size"]],template:function(o,a){if(o&1&&(n(0,"a",0),c(1,"devmx-icon",1),i(),_(2,It,6,3),q(3,"async")),o&2){let s;m(2),S((s=z(3,1,a.jobOpeningFacade.response$))?2:-1,s)}},dependencies:[G,ue,D,Ve,T,Ne,H,qe,Le,U,F,B],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .no-job-openings-yet[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] .no-job-openings-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .no-job-openings-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;white-space:normal}[_nghost-%COMP%] .no-job-openings-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:160%}[_nghost-%COMP%] .no-job-openings-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:120%;text-align:end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return t})();var Y=class extends E{constructor(){super({id:new u("",{nonNullable:!0}),name:new u("",{nonNullable:!0,validators:[g.required]})})}};var ae=class extends E{constructor(r){super({skill:new Y,weight:new u(0,{nonNullable:!0,validators:[g.min(0),g.max(100)]})}),r&&this.patchValue(r)}},Z=class extends je{constructor(){super([])}add(r){this.push(new ae(r))}childrenErrors=se([]);updateErrors(){let r=this.controls.map(e=>e.errors);this.childrenErrors.set(r)}};var ee=class extends E{types=[{value:"contract",viewValue:"Contrato"},{value:"freelance",viewValue:"Freelance"},{value:"full-time",viewValue:"Integral"},{value:"part-time",viewValue:"Meio periodo"}];modes=[{value:"remote",viewValue:"Remoto"},{value:"hybrid",viewValue:"H\xEDbrido"},{value:"office",viewValue:"Presencial"}];contracts=[{value:"CLT",viewValue:"CLT"},{value:"PJ",viewValue:"PJ"}];experiences=[{value:"internship",viewValue:"Estagi\xE1rio"},{value:"junior",viewValue:"Junior"},{value:"mid",viewValue:"Pleno"},{value:"senior",viewValue:"Senior"}];constructor(){super({id:new u("",{nonNullable:!0}),title:new u("",{nonNullable:!0,validators:[g.required]}),skills:new Z,type:new u("contract",{nonNullable:!0,validators:[g.required]}),requirements:new u("",{nonNullable:!0,validators:[g.required]}),mode:new u("hybrid",{nonNullable:!0,validators:[g.required]}),experience:new u("internship",{nonNullable:!0,validators:[g.required]}),description:new u("",{nonNullable:!0,validators:[g.required]}),contract:new u("CLT",{nonNullable:!0,validators:[g.required]}),salary:new E({min:new u,max:new u}),link:new u("",{nonNullable:!0}),contact:new u("",{nonNullable:!0}),company:new u("",{nonNullable:!0}),benefits:new u("",{nonNullable:!0}),active:new u(!0,{nonNullable:!0}),open:new u(!0,{nonNullable:!0})})}get skills(){return this.controls.skills}patch(r){if(this.patchValue(r),r.skills){this.skills.clear();for(let e of r.skills)this.skills.add(e)}}};var qt=(t,r)=>r.value;function zt(t,r){if(t&1&&(n(0,"mat-option",8),l(1),i()),t&2){let e=r.$implicit;p("value",e.value),m(),h(e.viewValue)}}function Bt(t,r){if(t&1&&(n(0,"mat-option",8),l(1),i()),t&2){let e=r.$implicit;p("value",e.value),m(),h(e.viewValue)}}function Gt(t,r){if(t&1&&(n(0,"mat-option",8),l(1),i()),t&2){let e=r.$implicit;p("value",e.value),m(),h(e.viewValue)}}function Lt(t,r){if(t&1&&(n(0,"mat-option",8),l(1),i()),t&2){let e=r.$implicit;p("value",e.value),m(),h(e.viewValue)}}function Ht(t,r){if(t&1){let e=y();n(0,"tr",21)(1,"td"),l(2),i(),n(3,"td",26)(4,"mat-slider",27),c(5,"input",28),i()(),n(6,"td"),l(7),i(),n(8,"td")(9,"button",29),f("click",function(){let a=M(e).$index,s=b();return v(s.form.skills.removeAt(a))}),c(10,"devmx-icon",30),i()()()}if(t&2){let e=r.$implicit,o=r.$index;p("formGroupName",o),m(2),h(e.value.skill==null?null:e.value.skill.name),m(5),h(e.value.weight)}}function Ut(t,r){t&1&&(n(0,"mat-error"),l(1,"Selecione ou cadastre ao menos uma habilidade"),i())}var re=(()=>{class t{route=d(k);router=d(j);cdr=d(pe);skillFacade=d(L);jobFacade=d(P);skillDialog=d(ht);messageService=d(Ae);form=new ee;#e={openSkill:new ne,searchSkill:new ne};constructor(){this.route.data.pipe(J()).subscribe(({jobOpening:e})=>{e&&e.id&&this.form.patch(e)})}openSkill(e){return this.skillDialog.open(e).subscribe(o=>{o&&(o.id?this.skillFacade.update(o):this.skillFacade.create(o))})}openSearchSkills(){this.skillDialog.select({multiple:!0}).subscribe(o=>{if(o&&o.length){for(let a of o)this.form.skills.add({weight:50,skill:a});this.cdr.detectChanges()}this.#e.openSkill.next(),this.#e.openSkill.complete(),this.#e.searchSkill.next(),this.#e.searchSkill.complete()})}onSubmit(){if(this.form.valid){let e=this.form.getRawValue();return e.id?this.jobFacade.update(e).pipe(ie(1)).subscribe(()=>{let s=["/","carreiras","administracao","minhas-ofertas"];this.router.navigate(s)}):this.jobFacade.create(e).pipe(ie(1)).subscribe(({id:s})=>{this.router.navigate(this.#t(s))}),this.messageService.open({message:"Armazenando informa\xE7\xF5es"})}return this.form.markAllAsTouched()}#t(e){return["/","carreiras","administracao","minhas-ofertas",e]}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=x({type:t,selectors:[["devmx-career-admin-job-opening"]],decls:97,vars:6,consts:[["id","job",3,"submit","formGroup"],[1,"job-opening"],[1,"job-opening-content"],["matInput","","formControlName","title","autofocus",""],["label","Descri\xE7\xE3o","hint","Compat\xEDvel com markdown do Github","formControlName","description",3,"minRows"],[3,"content"],["label","Requisitos","hint","Compat\xEDvel com markdown do Github","formControlName","requirements",3,"minRows"],["formControlName","type"],[3,"value"],["formControlName","contract"],["matInput","","formControlName","benefits","cdkAutosizeMinRows","5","cdkTextareaAutosize",""],["formControlName","mode"],["formControlName","experience"],["formGroupName","salary"],["matInput","","formControlName","min"],["matInput","","formControlName","max"],["matInput","","formControlName","company"],["matInput","","formControlName","link"],[1,"job-opening-skills"],["mat-subheader",""],["formArrayName","skills"],[1,"flex",3,"formGroupName"],["mat-button","","type","button",1,"add-button",3,"click"],["name","search-list"],["align","end",1,"job-opening-actions"],["mat-flat-button",""],[1,"fill"],["min","0","max","100","step","1","discrete",""],["matSliderThumb","","formControlName","weight"],["type","button","mat-icon-button","",3,"click"],["name","close-cross"]],template:function(o,a){if(o&1&&(n(0,"form",0),f("submit",function(){return a.onSubmit()}),n(1,"mat-card",1)(2,"mat-card-content",2)(3,"section")(4,"mat-form-field")(5,"mat-label"),l(6,"T\xEDtulo da vaga"),i(),c(7,"input",3),n(8,"mat-error"),l(9,"Obrigat\xF3rio"),i()(),n(10,"devmx-markdown-toolbar"),c(11,"devmx-markdown-editor",4)(12,"devmx-markdown-view",5),i(),n(13,"devmx-markdown-toolbar"),c(14,"devmx-markdown-editor",6)(15,"devmx-markdown-view",5),i()(),n(16,"section")(17,"div")(18,"mat-form-field")(19,"mat-label"),l(20,"Formato"),i(),n(21,"mat-select",7),O(22,zt,2,2,"mat-option",8,R),i(),n(24,"mat-error"),l(25,"Obrigat\xF3rio"),i()(),n(26,"mat-form-field")(27,"mat-label"),l(28,"Contrato"),i(),n(29,"mat-select",9),O(30,Bt,2,2,"mat-option",8,R),i(),n(32,"mat-error"),l(33,"Obrigat\xF3rio"),i()()(),n(34,"div")(35,"mat-form-field")(36,"mat-label"),l(37,"Benef\xEDcios"),i(),c(38,"textarea",10),n(39,"mat-error"),l(40,"Obrigat\xF3rio"),i()()(),n(41,"div")(42,"mat-form-field")(43,"mat-label"),l(44,"Regime de trabalho"),i(),n(45,"mat-select",11),O(46,Gt,2,2,"mat-option",8,R),i(),n(48,"mat-error"),l(49,"Obrigat\xF3rio"),i()(),n(50,"mat-form-field")(51,"mat-label"),l(52,"Experi\xEAncia"),i(),n(53,"mat-select",12),O(54,Lt,2,2,"mat-option",8,R),i(),n(56,"mat-error"),l(57,"Obrigat\xF3rio"),i()()(),n(58,"div",13)(59,"mat-form-field")(60,"mat-label"),l(61,"M\xEDnimo de sal\xE1rio"),i(),c(62,"input",14),n(63,"mat-hint"),l(64,"Opcional"),i()(),n(65,"mat-form-field")(66,"mat-label"),l(67,"M\xE1ximo de sal\xE1rio"),i(),c(68,"input",15),n(69,"mat-hint"),l(70,"Opcional"),i()()(),n(71,"mat-form-field")(72,"mat-label"),l(73,"Empresa"),i(),c(74,"input",16),n(75,"mat-hint"),l(76,"Opcional"),i()(),n(77,"mat-form-field")(78,"mat-label"),l(79,"Link"),i(),c(80,"input",17),n(81,"mat-hint"),l(82,"Opcional"),i()(),n(83,"div",18)(84,"h3",19),l(85,"Habilidades"),i(),n(86,"table",20),O(87,Ht,11,3,"tr",21,qt),i(),_(89,Ut,2,0,"mat-error"),n(90,"button",22),f("click",function(){return a.openSearchSkills()}),c(91,"devmx-icon",23),n(92,"span"),l(93,"Encontrar habilidades"),i()()()()(),n(94,"mat-card-actions",24)(95,"button",25),l(96,"Salvar"),i()()()()),o&2){let s,C;p("formGroup",a.form),m(11),p("minRows",10),m(),p("content",(s=a.form.value.description)!==null&&s!==void 0?s:""),m(2),p("minRows",10),m(),p("content",(C=a.form.value.requirements)!==null&&C!==void 0?C:""),m(7),w(a.form.types),m(8),w(a.form.contracts),m(16),w(a.form.modes),m(8),w(a.form.experiences),m(33),w(a.form.skills.controls),m(2),S(a.form.skills.touched&&a.form.skills.hasError("required")?89:-1)}},dependencies:[Fe,ye,xe,Oe,we,Pe,ke,Se,Ee,Xe,Ke,Ye,he,be,fe,_e,Ce,D,Je,T,Ie,$e,ge,it,tt,nt,We,Qe,Ue,De,Te,K,Q,W,Be,F],styles:["[_nghost-%COMP%]{display:block;padding:1em}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%]{flex:1;gap:1.6em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:.6em}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:100%;opacity:.72;margin-bottom:0}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .add-button[_ngcontent-%COMP%]{align-self:flex-start}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.job-opening-skills[_ngcontent-%COMP%]{flex-direction:column;margin-bottom:1em}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.job-opening-skills[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.job-opening-skills[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{width:8em}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.job-opening-skills[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:3em}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.job-opening-skills[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column} body .mat-mdc-button .mdc-button__label{display:inline-flex;align-items:center;gap:4px}"],changeDetection:0})}return t})();var Hi=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},providers:xt,component:vt,children:[{path:"minhas-ofertas/nova",data:{breadcrumb:"Nova"},title:"Nova vaga",component:re},{path:"minhas-ofertas/:id",data:{breadcrumb:t=>t.jobOpening.title},title:"Minha vaga",resolve:{jobOpening:Ot},component:re},{path:"minhas-ofertas",data:{breadcrumb:"Minhas vagas"},title:"Minhas vagas",component:Pt},{path:"gerenciar-ofertas",data:{breadcrumb:"Gerenciar ofertas"},title:"Gerenciar vagas",canActivate:[Ze("director","manager","staff")],component:yt},{path:"",pathMatch:"prefix",redirectTo:"minhas-ofertas"}]}];export{vt as CareerFeatureAdminComponent,Hi as careerFeatureAdminRoutes}; +import{a as ht,b as Mt}from"./chunk-5BAEVBCP.js";import"./chunk-DUF4HXV7.js";import{a as tt,b as nt,c as it,e as ot}from"./chunk-WPU27ID5.js";import{a as Ke,b as Ye}from"./chunk-VHE4TYFV.js";import{a as rt,b as lt}from"./chunk-JMI5D6U5.js";import"./chunk-AFH22WZE.js";import{a as mt,b as st,c as ct,d as pt,e as dt,f as ut,g as gt,h as ft,i as Ct,j as _t,k as bt}from"./chunk-FROUXDRM.js";import{a as X,b as et}from"./chunk-4JU575PW.js";import{a as at}from"./chunk-56M6HFOE.js";import{a as Ze}from"./chunk-Q33OVU5J.js";import"./chunk-73QBZNVE.js";import"./chunk-Q2N7RZTH.js";import{a as L}from"./chunk-GXQHMTZK.js";import{a as Ae}from"./chunk-WOE5TNBB.js";import{c as Le}from"./chunk-IIJ56NAR.js";import"./chunk-WK53HQNR.js";import{a as qe,b as H,c as U}from"./chunk-BLJCB4Q7.js";import{a as $e,b as Ie}from"./chunk-2XST3EDK.js";import{a as P,c as Re}from"./chunk-2GNIBV4J.js";import"./chunk-YFMYPYPE.js";import{a as Xe}from"./chunk-WD4JQH2Z.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import{a as He}from"./chunk-TPJZ2OYR.js";import{A as ve,s as Me}from"./chunk-XYJHVZQT.js";import"./chunk-O3T3UZHL.js";import{a as Ue,d as Qe,e as We}from"./chunk-VVQ6JEVH.js";import{b as fe,c as Ce,d as _e,i as be,j as he}from"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as J}from"./chunk-A3N3AUUJ.js";import{g as k,h as de,i as j,j as ue,p as G,q as Je,u as Ne,v as T,w as Ve,x as D}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import{i as Te,l as De}from"./chunk-PAP2P7QR.js";import{a as Q,b as ze,c as Be,e as W,f as Ge,i as K}from"./chunk-EC6LD5KM.js";import{a as F,c as xe,e as g,h as Oe,i as we,j as E,l as u,m as ye,p as Pe,q as Se,r as Ee,s as ke,w as je,x as Fe}from"./chunk-EDIJ2EBQ.js";import{na as ge}from"./chunk-W5KNOAKV.js";import{$b as O,F as me,Fb as se,Jc as q,Kc as z,L as ie,Nb as _,Sc as pe,Tb as p,Yb as S,_b as R,ac as w,bc as n,cc as i,dc as c,ec as $,fc as I,hc as y,j as ne,je as B,ka as d,kc as f,lb as m,mc as b,p as le,t as V,ta as M,u as A,ua as v,ub as x,xc as l,yc as h,zc as ce}from"./chunk-TEKHUYWQ.js";var vt=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275cmp=x({type:t,selectors:[["devmx-career-feature-admin"]],decls:1,vars:0,template:function(o,a){o&1&&c(0,"router-outlet")},dependencies:[de],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();var xt=[{provide:ve,useExisting:L},lt(),Mt(),ot(),et()];var Ot=t=>t.params.id==="nova"?le({}):Re(d(P),t.params);function Et(t,r){t&1&&(n(0,"th",15),l(1,"T\xEDtulo da vaga"),i())}function kt(t,r){if(t&1&&(n(0,"td",16),l(1),i()),t&2){let e=r.$implicit;m(),h(e.title)}}function jt(t,r){t&1&&(n(0,"th",15),l(1,"Criada por"),i())}function Ft(t,r){if(t&1&&(n(0,"td",16),l(1),i()),t&2){let e=r.$implicit;m(),ce(" ",e.owner.displayName," ")}}function Tt(t,r){t&1&&c(0,"th",15)}function Dt(t,r){if(t&1){let e=y();n(0,"td",16)(1,"button",17),f("click",function(){let a=M(e).$implicit,s=b(2);return v(s.openDelete(a))}),c(2,"devmx-icon",18),i()()}}function Jt(t,r){t&1&&c(0,"tr",19)}function Nt(t,r){t&1&&c(0,"tr",20)}function Vt(t,r){if(t&1){let e=y();n(0,"table",5),$(1,6),_(2,Et,2,0,"th",7)(3,kt,2,1,"td",8),I(),$(4,9),_(5,jt,2,0,"th",7)(6,Ft,2,1,"td",8),I(),$(7,10),_(8,Tt,1,0,"th",7)(9,Dt,3,0,"td",8),I(),_(10,Jt,1,0,"tr",11)(11,Nt,1,0,"tr",12),i(),n(12,"mat-card-actions",13)(13,"devmx-paginator",14),f("pageChange",function(a){M(e);let s=b();return v(s.onPageChange(a))}),i()()}if(t&2){let e=r,o=b();p("dataSource",e.data),m(10),p("matHeaderRowDef",o.columns),m(),p("matRowDefColumns",o.columns),m(2),p("size",10)("items",e.items)}}var yt=(()=>{class t{router=d(j);route=d(k);dialogFacade=d(X);jobOpeningFacade=d(P);selectUser=d(rt);#e=Me(null);columns=["title","owner","actions"];constructor(){let e=this.#e.observe().pipe(V(a=>a?a.id:"")),o=this.route.queryParams;A([e,o]).pipe(J()).subscribe(this.onQueryParams)}onQueryParams=([e,o])=>{let{page:a=0,size:s=10}=o,{open:C=null,active:N=null}=o,te={open:C,active:N,owner:e};this.jobOpeningFacade.setParams({page:a,size:s,filter:te}),this.jobOpeningFacade.load()};openDelete({id:e,title:o}){this.dialogFacade.confirm(`Confirme que deseja apagar a vaga ${o}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(a=>{a&&this.jobOpeningFacade.delete(e)})}openSelectUser(){this.selectUser.open({onlyRole:"recruiter",multiple:!1}).subscribe(e=>{e&&this.#e.update(e)})}onSearchChange(e=""){this.jobOpeningFacade.setFilter({title:e}),this.jobOpeningFacade.load()}onPageChange({page:e,size:o}){let a={page:e,size:o};this.router.navigate([],{queryParams:a})}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=x({type:t,selectors:[["devmx-career-admin-manage-job-openings"]],decls:10,vars:4,consts:[[1,"job-penings-card"],[1,"job-openings-card-header"],["mat-icon-button","",3,"click"],["name","filter"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","owner"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(o&1&&(n(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),l(3,"Vagas"),i(),n(4,"div")(5,"button",2),f("click",function(){return a.openSelectUser()}),c(6,"devmx-icon",3),i(),n(7,"devmx-search-field",4),f("searchChange",function(C){return a.onSearchChange(C)}),i()()(),_(8,Vt,14,5),q(9,"async"),i()),o&2){let s;m(7),p("debounce",1e3),m(),S((s=z(9,2,a.jobOpeningFacade.response$))?8:-1,s)}},dependencies:[G,D,T,at,bt,mt,ct,gt,pt,st,ft,dt,ut,Ct,_t,K,Q,W,Ge,ze,H,U,F,B],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .job-openings-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .job-openings-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .job-openings-card-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;align-items:baseline}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:3em}"],changeDetection:0})}return t})();var Rt=(t,r)=>r.id;function At(t,r){if(t&1){let e=y();n(0,"devmx-job-opening-card",3)(1,"a",6),c(2,"devmx-icon",7),i(),n(3,"button",8),f("click",function(){let a=M(e).$implicit,s=b(2);return v(s.deleteJobOpening(a))}),c(4,"devmx-icon",9),i()()}if(t&2){let e=r.$implicit;p("data",e),m(),p("routerLink",e.id)}}function $t(t,r){t&1&&(n(0,"div",4)(1,"h2"),l(2,"N\xE3o temos nada aqui..."),i(),n(3,"h3"),l(4," Siga nessa dire\xE7\xE3o "),c(5,"devmx-icon",10)(6,"br"),l(7," at\xE9 encontrar o bot\xE3o com um "),c(8,"devmx-icon",11)(9,"br"),l(10," e cadastre suas vagas. "),c(11,"devmx-icon",12),i()()),t&2&&(m(5),p("size",32),m(3),p("size",32),m(3),p("size",32))}function It(t,r){if(t&1){let e=y();n(0,"div",2),O(1,At,5,2,"devmx-job-opening-card",3,Rt),i(),_(3,$t,12,3,"div",4),n(4,"footer")(5,"devmx-paginator",5),f("pageChange",function(a){M(e);let s=b();return v(s.onPageChange(a))}),i()()}if(t&2){let e=r;m(),w(e.data),m(2),S(e.items?-1:3),m(2),p("size",10)("items",e.items)}}var Pt=(()=>{class t{router=d(j);route=d(k);dialogFacade=d(X);authFacade=d(He);jobOpeningFacade=d(P);constructor(){let e=this.authFacade.auth$.pipe(me(a=>!!a),V(({id:a})=>a)),o=this.route.queryParams.pipe(V(({page:a,size:s,open:C=null,active:N=null})=>({page:a,size:s,open:C,active:N})));A([e,o]).pipe(J()).subscribe(this.onQueryParams)}onQueryParams=([e,o])=>{let{page:a,size:s,open:C,active:N}=o,te={open:C,active:N,owner:e};this.jobOpeningFacade.setParams({page:a,size:s,filter:te}),this.jobOpeningFacade.load()};deleteJobOpening({id:e,title:o}){this.dialogFacade.confirm(`Confirme que deseja apagar a vaga ${o}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(a=>{a&&this.jobOpeningFacade.delete(e)})}onPageChange({page:e,size:o}){let a={page:e,size:o};this.router.navigate([],{queryParams:a})}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=x({type:t,selectors:[["devmx-career-admin-my-job-openings"]],decls:4,vars:3,consts:[["mat-fab","","routerLink","nova",1,"tertiary-fab","top","right"],["name","plus"],[1,"job-openings-container"],[3,"data"],[1,"no-job-openings-yet"],[3,"pageChange","size","items"],["mat-icon-button","","matTooltip","Editar vaga","matTooltipPosition","before",3,"routerLink"],["name","software/edit"],["type","button","mat-icon-button","","matTooltip","Apagar vaga","matTooltipPosition","after",3,"click"],["name","trash-alt"],["color","#3BCE53","name","arrow/up-right",3,"size"],["color","#3BCE53","name","plus",3,"size"],["color","#3BCE53","name","emoji/smirking-alt",3,"size"]],template:function(o,a){if(o&1&&(n(0,"a",0),c(1,"devmx-icon",1),i(),_(2,It,6,3),q(3,"async")),o&2){let s;m(2),S((s=z(3,1,a.jobOpeningFacade.response$))?2:-1,s)}},dependencies:[G,ue,D,Ve,T,Ne,H,qe,Le,U,F,B],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .no-job-openings-yet[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] .no-job-openings-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .no-job-openings-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;white-space:normal}[_nghost-%COMP%] .no-job-openings-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:160%}[_nghost-%COMP%] .no-job-openings-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:120%;text-align:end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return t})();var Y=class extends E{constructor(){super({id:new u("",{nonNullable:!0}),name:new u("",{nonNullable:!0,validators:[g.required]})})}};var ae=class extends E{constructor(r){super({skill:new Y,weight:new u(0,{nonNullable:!0,validators:[g.min(0),g.max(100)]})}),r&&this.patchValue(r)}},Z=class extends je{constructor(){super([])}add(r){this.push(new ae(r))}childrenErrors=se([]);updateErrors(){let r=this.controls.map(e=>e.errors);this.childrenErrors.set(r)}};var ee=class extends E{types=[{value:"contract",viewValue:"Contrato"},{value:"freelance",viewValue:"Freelance"},{value:"full-time",viewValue:"Integral"},{value:"part-time",viewValue:"Meio periodo"}];modes=[{value:"remote",viewValue:"Remoto"},{value:"hybrid",viewValue:"H\xEDbrido"},{value:"office",viewValue:"Presencial"}];contracts=[{value:"CLT",viewValue:"CLT"},{value:"PJ",viewValue:"PJ"}];experiences=[{value:"internship",viewValue:"Estagi\xE1rio"},{value:"junior",viewValue:"Junior"},{value:"mid",viewValue:"Pleno"},{value:"senior",viewValue:"Senior"}];constructor(){super({id:new u("",{nonNullable:!0}),title:new u("",{nonNullable:!0,validators:[g.required]}),skills:new Z,type:new u("contract",{nonNullable:!0,validators:[g.required]}),requirements:new u("",{nonNullable:!0,validators:[g.required]}),mode:new u("hybrid",{nonNullable:!0,validators:[g.required]}),experience:new u("internship",{nonNullable:!0,validators:[g.required]}),description:new u("",{nonNullable:!0,validators:[g.required]}),contract:new u("CLT",{nonNullable:!0,validators:[g.required]}),salary:new E({min:new u,max:new u}),link:new u("",{nonNullable:!0}),contact:new u("",{nonNullable:!0}),company:new u("",{nonNullable:!0}),benefits:new u("",{nonNullable:!0}),active:new u(!0,{nonNullable:!0}),open:new u(!0,{nonNullable:!0})})}get skills(){return this.controls.skills}patch(r){if(this.patchValue(r),r.skills){this.skills.clear();for(let e of r.skills)this.skills.add(e)}}};var qt=(t,r)=>r.value;function zt(t,r){if(t&1&&(n(0,"mat-option",8),l(1),i()),t&2){let e=r.$implicit;p("value",e.value),m(),h(e.viewValue)}}function Bt(t,r){if(t&1&&(n(0,"mat-option",8),l(1),i()),t&2){let e=r.$implicit;p("value",e.value),m(),h(e.viewValue)}}function Gt(t,r){if(t&1&&(n(0,"mat-option",8),l(1),i()),t&2){let e=r.$implicit;p("value",e.value),m(),h(e.viewValue)}}function Lt(t,r){if(t&1&&(n(0,"mat-option",8),l(1),i()),t&2){let e=r.$implicit;p("value",e.value),m(),h(e.viewValue)}}function Ht(t,r){if(t&1){let e=y();n(0,"tr",21)(1,"td"),l(2),i(),n(3,"td",26)(4,"mat-slider",27),c(5,"input",28),i()(),n(6,"td"),l(7),i(),n(8,"td")(9,"button",29),f("click",function(){let a=M(e).$index,s=b();return v(s.form.skills.removeAt(a))}),c(10,"devmx-icon",30),i()()()}if(t&2){let e=r.$implicit,o=r.$index;p("formGroupName",o),m(2),h(e.value.skill==null?null:e.value.skill.name),m(5),h(e.value.weight)}}function Ut(t,r){t&1&&(n(0,"mat-error"),l(1,"Selecione ou cadastre ao menos uma habilidade"),i())}var re=(()=>{class t{route=d(k);router=d(j);cdr=d(pe);skillFacade=d(L);jobFacade=d(P);skillDialog=d(ht);messageService=d(Ae);form=new ee;#e={openSkill:new ne,searchSkill:new ne};constructor(){this.route.data.pipe(J()).subscribe(({jobOpening:e})=>{e&&e.id&&this.form.patch(e)})}openSkill(e){return this.skillDialog.open(e).subscribe(o=>{o&&(o.id?this.skillFacade.update(o):this.skillFacade.create(o))})}openSearchSkills(){this.skillDialog.select({multiple:!0}).subscribe(o=>{if(o&&o.length){for(let a of o)this.form.skills.add({weight:50,skill:a});this.cdr.detectChanges()}this.#e.openSkill.next(),this.#e.openSkill.complete(),this.#e.searchSkill.next(),this.#e.searchSkill.complete()})}onSubmit(){if(this.form.valid){let e=this.form.getRawValue();return e.id?this.jobFacade.update(e).pipe(ie(1)).subscribe(()=>{let s=["/","carreiras","administracao","minhas-ofertas"];this.router.navigate(s)}):this.jobFacade.create(e).pipe(ie(1)).subscribe(({id:s})=>{this.router.navigate(this.#t(s))}),this.messageService.open({message:"Armazenando informa\xE7\xF5es"})}return this.form.markAllAsTouched()}#t(e){return["/","carreiras","administracao","minhas-ofertas",e]}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=x({type:t,selectors:[["devmx-career-admin-job-opening"]],decls:97,vars:6,consts:[["id","job",3,"submit","formGroup"],[1,"job-opening"],[1,"job-opening-content"],["matInput","","formControlName","title","autofocus",""],["label","Descri\xE7\xE3o","hint","Compat\xEDvel com markdown do Github","formControlName","description",3,"minRows"],[3,"content"],["label","Requisitos","hint","Compat\xEDvel com markdown do Github","formControlName","requirements",3,"minRows"],["formControlName","type"],[3,"value"],["formControlName","contract"],["matInput","","formControlName","benefits","cdkAutosizeMinRows","5","cdkTextareaAutosize",""],["formControlName","mode"],["formControlName","experience"],["formGroupName","salary"],["matInput","","formControlName","min"],["matInput","","formControlName","max"],["matInput","","formControlName","company"],["matInput","","formControlName","link"],[1,"job-opening-skills"],["mat-subheader",""],["formArrayName","skills"],[1,"flex",3,"formGroupName"],["mat-button","","type","button",1,"add-button",3,"click"],["name","search-list"],["align","end",1,"job-opening-actions"],["mat-flat-button",""],[1,"fill"],["min","0","max","100","step","1","discrete",""],["matSliderThumb","","formControlName","weight"],["type","button","mat-icon-button","",3,"click"],["name","close-cross"]],template:function(o,a){if(o&1&&(n(0,"form",0),f("submit",function(){return a.onSubmit()}),n(1,"mat-card",1)(2,"mat-card-content",2)(3,"section")(4,"mat-form-field")(5,"mat-label"),l(6,"T\xEDtulo da vaga"),i(),c(7,"input",3),n(8,"mat-error"),l(9,"Obrigat\xF3rio"),i()(),n(10,"devmx-markdown-toolbar"),c(11,"devmx-markdown-editor",4)(12,"devmx-markdown-view",5),i(),n(13,"devmx-markdown-toolbar"),c(14,"devmx-markdown-editor",6)(15,"devmx-markdown-view",5),i()(),n(16,"section")(17,"div")(18,"mat-form-field")(19,"mat-label"),l(20,"Formato"),i(),n(21,"mat-select",7),O(22,zt,2,2,"mat-option",8,R),i(),n(24,"mat-error"),l(25,"Obrigat\xF3rio"),i()(),n(26,"mat-form-field")(27,"mat-label"),l(28,"Contrato"),i(),n(29,"mat-select",9),O(30,Bt,2,2,"mat-option",8,R),i(),n(32,"mat-error"),l(33,"Obrigat\xF3rio"),i()()(),n(34,"div")(35,"mat-form-field")(36,"mat-label"),l(37,"Benef\xEDcios"),i(),c(38,"textarea",10),n(39,"mat-error"),l(40,"Obrigat\xF3rio"),i()()(),n(41,"div")(42,"mat-form-field")(43,"mat-label"),l(44,"Regime de trabalho"),i(),n(45,"mat-select",11),O(46,Gt,2,2,"mat-option",8,R),i(),n(48,"mat-error"),l(49,"Obrigat\xF3rio"),i()(),n(50,"mat-form-field")(51,"mat-label"),l(52,"Experi\xEAncia"),i(),n(53,"mat-select",12),O(54,Lt,2,2,"mat-option",8,R),i(),n(56,"mat-error"),l(57,"Obrigat\xF3rio"),i()()(),n(58,"div",13)(59,"mat-form-field")(60,"mat-label"),l(61,"M\xEDnimo de sal\xE1rio"),i(),c(62,"input",14),n(63,"mat-hint"),l(64,"Opcional"),i()(),n(65,"mat-form-field")(66,"mat-label"),l(67,"M\xE1ximo de sal\xE1rio"),i(),c(68,"input",15),n(69,"mat-hint"),l(70,"Opcional"),i()()(),n(71,"mat-form-field")(72,"mat-label"),l(73,"Empresa"),i(),c(74,"input",16),n(75,"mat-hint"),l(76,"Opcional"),i()(),n(77,"mat-form-field")(78,"mat-label"),l(79,"Link"),i(),c(80,"input",17),n(81,"mat-hint"),l(82,"Opcional"),i()(),n(83,"div",18)(84,"h3",19),l(85,"Habilidades"),i(),n(86,"table",20),O(87,Ht,11,3,"tr",21,qt),i(),_(89,Ut,2,0,"mat-error"),n(90,"button",22),f("click",function(){return a.openSearchSkills()}),c(91,"devmx-icon",23),n(92,"span"),l(93,"Encontrar habilidades"),i()()()()(),n(94,"mat-card-actions",24)(95,"button",25),l(96,"Salvar"),i()()()()),o&2){let s,C;p("formGroup",a.form),m(11),p("minRows",10),m(),p("content",(s=a.form.value.description)!==null&&s!==void 0?s:""),m(2),p("minRows",10),m(),p("content",(C=a.form.value.requirements)!==null&&C!==void 0?C:""),m(7),w(a.form.types),m(8),w(a.form.contracts),m(16),w(a.form.modes),m(8),w(a.form.experiences),m(33),w(a.form.skills.controls),m(2),S(a.form.skills.touched&&a.form.skills.hasError("required")?89:-1)}},dependencies:[Fe,ye,xe,Oe,we,Pe,ke,Se,Ee,Xe,Ke,Ye,he,be,fe,_e,Ce,D,Je,T,Ie,$e,ge,it,tt,nt,We,Qe,Ue,De,Te,K,Q,W,Be,F],styles:["[_nghost-%COMP%]{display:block;padding:1em}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%]{flex:1;gap:1.6em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:.6em}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:100%;opacity:.72;margin-bottom:0}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .add-button[_ngcontent-%COMP%]{align-self:flex-start}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.job-opening-skills[_ngcontent-%COMP%]{flex-direction:column;margin-bottom:1em}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.job-opening-skills[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.job-opening-skills[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{width:8em}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.job-opening-skills[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:3em}[_nghost-%COMP%] .job-opening-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.job-opening-skills[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column} body .mat-mdc-button .mdc-button__label{display:inline-flex;align-items:center;gap:4px}"],changeDetection:0})}return t})();var Hi=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},providers:xt,component:vt,children:[{path:"minhas-ofertas/nova",data:{breadcrumb:"Nova"},title:"Nova vaga",component:re},{path:"minhas-ofertas/:id",data:{breadcrumb:t=>t.jobOpening.title},title:"Minha vaga",resolve:{jobOpening:Ot},component:re},{path:"minhas-ofertas",data:{breadcrumb:"Minhas vagas"},title:"Minhas vagas",component:Pt},{path:"gerenciar-ofertas",data:{breadcrumb:"Gerenciar ofertas"},title:"Gerenciar vagas",canActivate:[Ze("director","manager","staff")],component:yt},{path:"",pathMatch:"prefix",redirectTo:"minhas-ofertas"}]}];export{vt as CareerFeatureAdminComponent,Hi as careerFeatureAdminRoutes}; diff --git a/chunk-JCCZXGKN.js b/chunk-JCCZXGKN.js deleted file mode 100644 index c31b5582..00000000 --- a/chunk-JCCZXGKN.js +++ /dev/null @@ -1,7 +0,0 @@ -import{a as ma,b as _a}from"./chunk-AFH22WZE.js";import{a as da,b as la,c as ca,d as ua,e as ha}from"./chunk-LFAX4DK3.js";import{a as na,d as sa,e as Re,h as oa}from"./chunk-R66KDUEB.js";import{d as pa}from"./chunk-2E7FYHXW.js";import{a as Je,f as et,g as ia}from"./chunk-BJXILAOS.js";import{a as tt}from"./chunk-AC7KYN3P.js";import{B as Xe,E as aa,G as Ze,I as Fe,M as ra}from"./chunk-4FWBEGAE.js";import{b as zt,c as Kt,d as Qt,g as jt,i as qt,j as Wt}from"./chunk-2K6IALUF.js";import{c as We,d as ae,g as T,h as $e,i as Ge,j as ie}from"./chunk-I7VYXJU2.js";import{a as $t,b as Gt,c as Ie,d as Ut,e as Xt,g as Ue,h as Zt,l as Jt,o as ea,x as ta}from"./chunk-EDIJ2EBQ.js";import{$ as q,M as Yt,R as Lt,S as Nt,T as xe,U as ne,Y as Bt,_ as w,ca as Ht,f as Tt,i as Ve,n as Ot,q as re,r as Ee,s as H,y as Pt}from"./chunk-W5KNOAKV.js";import{$b as ye,Aa as Dt,Bc as Ae,Cc as ke,D as me,Dc as Me,Ea as u,Eb as kt,F as pt,Fa as yt,Fb as be,Fc as Se,Gb as Mt,Ia as F,Ib as Qe,Ja as K,Kb as ee,L as mt,Mb as ve,Nb as E,Sb as C,Sc as I,Tb as p,Ub as De,Va as Ke,Vb as R,Vc as B,Wb as je,Yb as L,Yd as Rt,Z as _e,ac as Ce,bc as d,cc as l,da as Ne,dc as g,e as k,ea as ge,ed as Ft,fa as _t,ha as Be,hc as N,ic as St,j as P,ja as gt,jc as Vt,ka as o,kc as h,la as ft,lb as c,lc as Et,ma as bt,mb as fe,mc as m,nb as Ct,nc as te,oc as Q,p as pe,pc as xt,qc as x,rc as M,sa as Y,sb as wt,sc as S,ta as b,tc as qe,ua as v,ub as D,uc as It,va as Z,vb as At,vc as we,wa as He,wb as J,xa as vt,xc as f,yc as V,za as ze,zc as j}from"./chunk-TEKHUYWQ.js";var Ta=["textareaRef"],at=(()=>{class r extends Ie{ngControl;textareaRef=Mt("textareaRef");get textarea(){let e=this.textareaRef();return e?e.nativeElement:null}autofocus=F(!1);get hasAutofocus(){let e=this.autofocus();return e===!0||e===""}resize=F(!0);label=F("");hint=F("");error=F("");minRows=F(5);maxRows=F(10);get control(){return this.ngControl.control??new Jt}constructor(e,a,t){super(e,a,!0),this.ngControl=t,this.ngControl.valueAccessor=this}handleKeydown(e){if(e.key==="Enter"&&this.textarea){let{selectionStart:a,value:t}=this.textarea,i=t.lastIndexOf(` -`,a-1)+1,n=t.slice(i,a),_=n.match(/^(\d+)\.\s/);if(_){if(n.match(/^(\d+)\.\s$/))return;e.preventDefault(),this.handleOrderedList(_,t,a)}if(n.match(/^-\s/)){if(n.match(/^-\s$/))return;e.preventDefault(),this.handleUnorderedList(t,a)}}}handleOrderedList(e,a,t){let n=parseInt(e[1],10)+1,_=a.slice(0,t),z=a.slice(t),X=`${_} -${n}. ${z}`;this.control.setValue(X),queueMicrotask(()=>{if(this.textarea){let he=t+` -${n}. `.length;this.textarea.setSelectionRange(he,he)}})}handleUnorderedList(e,a){let t=e.slice(0,a),i=e.slice(a),n=`${t} -- ${i}`;this.control.setValue(n),queueMicrotask(()=>{if(this.textarea){let _=a+3;this.textarea.setSelectionRange(_,_)}})}static \u0275fac=function(a){return new(a||r)(fe(wt),fe(K),fe(Ue,10))};static \u0275cmp=D({type:r,selectors:[["devmx-markdown-editor"]],viewQuery:function(a,t){a&1&&It(t.textareaRef,Ta,5),a&2&&we()},inputs:{autofocus:[1,"autofocus"],resize:[1,"resize"],label:[1,"label"],hint:[1,"hint"],error:[1,"error"],minRows:[1,"minRows"],maxRows:[1,"maxRows"]},exportAs:["markdownEditor"],features:[ee],decls:10,vars:7,consts:[["textareaRef","","autosize","cdkTextareaAutosize"],["matInput","","cdkTextareaAutosize","",3,"keydown","formControl","autofocus","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(a,t){if(a&1){let i=N();d(0,"mat-form-field")(1,"mat-label"),f(2),l(),d(3,"textarea",1,0),h("keydown",function(_){return b(i),v(t.handleKeydown(_))}),l(),d(6,"mat-hint"),f(7),l(),d(8,"mat-error"),f(9),l()()}a&2&&(c(2),V(t.label()),c(),p("formControl",t.control)("autofocus",t.hasAutofocus)("cdkAutosizeMinRows",t.minRows())("cdkAutosizeMaxRows",t.maxRows()),c(4),V(t.hint()),c(2),V(t.error()))},dependencies:[ta,Ie,Zt,ea,Wt,qt,zt,Qt,Kt,la,da,ha,ua,pa],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return r})();var Oa=[[["devmx-markdown-view"]],[["devmx-markdown-editor"]]],Pa=["devmx-markdown-view","devmx-markdown-editor"];function Ya(r,s){r&1&&Q(0)}function La(r,s){r&1&&Q(0,1)}var Ki=(()=>{class r{editor=Qe(at);view=Qe(tt);preview=be(!1);togglePreview(){this.preview.set(!this.preview())}applyFormat(e,a=e){let t=this.editor();if(!t||!t.textarea)return;let i=t.textarea.selectionStart,n=t.textarea.selectionEnd,_=t.control.value.slice(i,n),z=t.control.value.slice(0,i),X=t.control.value.slice(n),he=`${z}${e}${_}${a}${X}`;t.control.setValue(he),queueMicrotask(()=>{t.textarea&&(t.textarea.setSelectionRange(i+e.length,n+e.length),t.textarea.focus())})}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=D({type:r,selectors:[["devmx-markdown-toolbar"]],contentQueries:function(a,t,i){a&1&&(qe(i,t.editor,at,5),qe(i,t.view,tt,5)),a&2&&we(2)},ngContentSelectors:Pa,decls:18,vars:2,consts:[[3,"change","checked"],["type","button","mat-mini-fab","",3,"click"],["name","text/heading"],["name","text/bold"],["name","text/italic"],["name","software/code"],["name","text/ordered-list"],["name","text/unordered-list"]],template:function(a,t){a&1&&(te(Oa),d(0,"div")(1,"mat-checkbox",0),h("change",function(){return t.togglePreview()}),f(2," Visualiza\xE7\xE3o "),l(),d(3,"menu")(4,"button",1),h("click",function(){return t.applyFormat("### ","")}),g(5,"devmx-icon",2),l(),d(6,"button",1),h("click",function(){return t.applyFormat("**")}),g(7,"devmx-icon",3),l(),d(8,"button",1),h("click",function(){return t.applyFormat("_")}),g(9,"devmx-icon",4),l(),d(10,"button",1),h("click",function(){return t.applyFormat("`")}),g(11,"devmx-icon",5),l(),d(12,"button",1),h("click",function(){return t.applyFormat("1. ","")}),g(13,"devmx-icon",6),l(),d(14,"button",1),h("click",function(){return t.applyFormat("- ","")}),g(15,"devmx-icon",7),l()()(),E(16,Ya,1,0)(17,La,1,0)),a&2&&(c(),p("checked",t.preview()),c(15),L(t.preview()?16:17))},dependencies:[Fe,aa,_a,ma,$t],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;margin:.2em 0;flex-direction:row;justify-content:flex-end}[_nghost-%COMP%] div[_ngcontent-%COMP%] menu[_ngcontent-%COMP%]{padding:0;display:flex;margin:.2em 0;flex-direction:row}[_nghost-%COMP%] .mat-mdc-mini-fab[_ngcontent-%COMP%]{background-color:transparent;box-shadow:unset}"],changeDetection:0})}return r})();var Na=["mat-calendar-body",""];function Ba(r,s){return this._trackRow(s)}var ka=(r,s)=>s.id;function Ha(r,s){if(r&1&&(d(0,"tr",0)(1,"td",3),f(2),l()()),r&2){let e=m();c(),De("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),C("colspan",e.numCols),c(),j(" ",e.label," ")}}function za(r,s){if(r&1&&(d(0,"td",3),f(1),l()),r&2){let e=m(2);De("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),C("colspan",e._firstRowOffset),c(),j(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Ka(r,s){if(r&1){let e=N();d(0,"td",6)(1,"button",7),h("click",function(t){let i=b(e).$implicit,n=m(2);return v(n._cellClicked(i,t))})("focus",function(t){let i=b(e).$implicit,n=m(2);return v(n._emitActiveDateChange(i,t))}),d(2,"span",8),f(3),l(),g(4,"span",9),l()()}if(r&2){let e=s.$implicit,a=s.$index,t=m().$index,i=m();De("width",i._cellWidth)("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),C("data-mat-row",t)("data-mat-col",a),c(),R("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",i._isActiveCell(t,a))("mat-calendar-body-range-start",i._isRangeStart(e.compareValue))("mat-calendar-body-range-end",i._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",i._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",i._isComparisonBridgeStart(e.compareValue,t,a))("mat-calendar-body-comparison-bridge-end",i._isComparisonBridgeEnd(e.compareValue,t,a))("mat-calendar-body-comparison-start",i._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",i._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",i._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",i._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",i._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",i._isInPreview(e.compareValue)),p("ngClass",e.cssClasses)("tabindex",i._isActiveCell(t,a)?0:-1),C("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",i._isSelected(e.compareValue))("aria-current",i.todayValue===e.compareValue?"date":null)("aria-describedby",i._getDescribedby(e.compareValue)),c(),R("mat-calendar-body-selected",i._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",i._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",i.todayValue===e.compareValue),c(),j(" ",e.displayValue," ")}}function Qa(r,s){if(r&1&&(d(0,"tr",1),E(1,za,2,6,"td",4),ye(2,Ka,5,48,"td",5,ka),l()),r&2){let e=s.$implicit,a=s.$index,t=m();c(),L(a===0&&t._firstRowOffset?1:-1),c(),Ce(e)}}function ja(r,s){if(r&1&&(d(0,"th",2)(1,"span",6),f(2),l(),d(3,"span",3),f(4),l()()),r&2){let e=s.$implicit;c(2),V(e.long),c(2),V(e.narrow)}}var qa=["*"];function Wa(r,s){}function $a(r,s){if(r&1){let e=N();d(0,"mat-month-view",4),Me("activeDateChange",function(t){b(e);let i=m();return ke(i.activeDate,t)||(i.activeDate=t),v(t)}),h("_userSelection",function(t){b(e);let i=m();return v(i._dateSelected(t))})("dragStarted",function(t){b(e);let i=m();return v(i._dragStarted(t))})("dragEnded",function(t){b(e);let i=m();return v(i._dragEnded(t))}),l()}if(r&2){let e=m();Ae("activeDate",e.activeDate),p("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Ga(r,s){if(r&1){let e=N();d(0,"mat-year-view",5),Me("activeDateChange",function(t){b(e);let i=m();return ke(i.activeDate,t)||(i.activeDate=t),v(t)}),h("monthSelected",function(t){b(e);let i=m();return v(i._monthSelectedInYearView(t))})("selectedChange",function(t){b(e);let i=m();return v(i._goToDateInView(t,"month"))}),l()}if(r&2){let e=m();Ae("activeDate",e.activeDate),p("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ua(r,s){if(r&1){let e=N();d(0,"mat-multi-year-view",6),Me("activeDateChange",function(t){b(e);let i=m();return ke(i.activeDate,t)||(i.activeDate=t),v(t)}),h("yearSelected",function(t){b(e);let i=m();return v(i._yearSelectedInMultiYearView(t))})("selectedChange",function(t){b(e);let i=m();return v(i._goToDateInView(t,"year"))}),l()}if(r&2){let e=m();Ae("activeDate",e.activeDate),p("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Xa(r,s){}var Za=["button"],Ja=[[["","matDatepickerToggleIcon",""]]],ei=["[matDatepickerToggleIcon]"];function ti(r,s){r&1&&(Z(),d(0,"svg",2),g(1,"path",3),l())}var ue=(()=>{class r{changes=new P;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";formatYearRange(e,a){return`${e} \u2013 ${a}`}formatYearRangeLabel(e,a){return`${e} to ${a}`}static \u0275fac=function(a){return new(a||r)};static \u0275prov=ge({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),ai=0,de=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=ai++;constructor(s,e,a,t,i={},n=s,_){this.value=s,this.displayValue=e,this.ariaLabel=a,this.enabled=t,this.cssClasses=i,this.compareValue=n,this.rawValue=_}},fa=Ve({passive:!1,capture:!0}),O=Ve({passive:!0,capture:!0}),Te=Ve({passive:!0}),U=(()=>{class r{_elementRef=o(K);_ngZone=o(yt);_platform=o(Tt);_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new u;previewChange=new u;activeDateChange=new u;dragStarted=new u;dragEnded=new u;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_didDragSinceMouseDown=!1;_injector=o(ze);_trackRow=e=>e;constructor(){let e=o(xe);this._startDateLabelId=e.getId("mat-calendar-body-start-"),this._endDateLabelId=e.getId("mat-calendar-body-start-"),o(re).load(Ht),this._ngZone.runOutsideAngular(()=>{let a=this._elementRef.nativeElement;a.addEventListener("touchmove",this._touchmoveHandler,fa),a.addEventListener("mouseenter",this._enterHandler,O),a.addEventListener("focus",this._enterHandler,O),a.addEventListener("mouseleave",this._leaveHandler,O),a.addEventListener("blur",this._leaveHandler,O),a.addEventListener("mousedown",this._mousedownHandler,Te),a.addEventListener("touchstart",this._mousedownHandler,Te),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,a){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:a})}_emitActiveDateChange(e,a){e.enabled&&this.activeDateChange.emit({value:e.value,event:a})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let a=e.numCols,{rows:t,numCols:i}=this;(e.rows||a)&&(this._firstRowOffset=t&&t.length&&t[0].length?i-t[0].length:0),(e.cellAspectRatio||a||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/i}%`),(a||!this._cellWidth)&&(this._cellWidth=`${100/i}%`)}ngOnDestroy(){let e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,fa),e.removeEventListener("mouseenter",this._enterHandler,O),e.removeEventListener("focus",this._enterHandler,O),e.removeEventListener("mouseleave",this._leaveHandler,O),e.removeEventListener("blur",this._leaveHandler,O),e.removeEventListener("mousedown",this._mousedownHandler,Te),e.removeEventListener("touchstart",this._mousedownHandler,Te),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,a){let t=e*this.numCols+a;return e&&(t-=this._firstRowOffset),t==this.activeCell}_focusActiveCell(e=!0){Ke(()=>{setTimeout(()=>{let a=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");a&&(e||(this._skipNextFocus=!0),a.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return nt(e,this.startValue,this.endValue)}_isRangeEnd(e){return st(e,this.startValue,this.endValue)}_isInRange(e){return ot(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return nt(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,a,t){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let i=this.rows[a][t-1];if(!i){let n=this.rows[a-1];i=n&&n[n.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(e,a,t){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let i=this.rows[a][t+1];if(!i){let n=this.rows[a+1];i=n&&n[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(e){return st(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return ot(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return nt(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return st(e,this.previewStart,this.previewEnd)}_isInPreview(e){return ot(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let a=this._getCellFromElement(e.target);a&&this._ngZone.run(()=>this.previewChange.emit({value:a.enabled?a:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let a=ba(e),t=a?this._getCellFromElement(a):null;a!==e.target&&(this._didDragSinceMouseDown=!0),rt(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:t?.enabled?t:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let a=e.target&&this._getCellFromElement(e.target);!a||!this._isInRange(a.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:a.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let a=rt(e.target);if(!a){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}a.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let t=this._getCellFromElement(a);this.dragEnded.emit({value:t?.rawValue??null,event:e})})};_touchendHandler=e=>{let a=ba(e);a&&this._mouseupHandler({target:a})};_getCellFromElement(e){let a=rt(e);if(a){let t=a.getAttribute("data-mat-row"),i=a.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=D({type:r,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Y],attrs:Na,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(a,t){a&1&&(E(0,Ha,3,6,"tr",0),ye(1,Qa,4,1,"tr",1,Ba,!0),d(3,"span",2),f(4),l(),d(5,"span",2),f(6),l()),a&2&&(L(t._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}}'],encapsulation:2,changeDetection:0})}return r})();function it(r){return r?.nodeName==="TD"}function rt(r){let s;return it(r)?s=r:it(r.parentNode)?s=r.parentNode:it(r.parentNode?.parentNode)&&(s=r.parentNode.parentNode),s?.getAttribute("data-mat-row")!=null?s:null}function nt(r,s,e){return e!==null&&s!==e&&r=s&&r===e}function ot(r,s,e,a){return a&&s!==null&&e!==null&&s!==e&&r>=s&&r<=e}function ba(r){let s=r.changedTouches[0];return document.elementFromPoint(s.clientX,s.clientY)}var A=class{start;end;_disableStructuralEquivalency;constructor(s,e){this.start=s,this.end=e}},le=(()=>{class r{selection;_adapter;_selectionChanged=new P;selectionChanged=this._selectionChanged;constructor(e,a){this.selection=e,this._adapter=a,this.selection=e}updateSelection(e,a){let t=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:a,oldValue:t})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(a){Ct()};static \u0275prov=ge({token:r,factory:r.\u0275fac})}return r})(),ii=(()=>{class r extends le{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new r(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(a){return new(a||r)(gt(w))};static \u0275prov=ge({token:r,factory:r.\u0275fac})}return r})();function ri(r,s){return r||new ii(s)}var Ma={provide:le,deps:[[new ft,new bt,le],w],useFactory:ri};var Sa=new Be("MAT_DATE_RANGE_SELECTION_STRATEGY");var dt=7,ni=0,va=(()=>{class r{_changeDetectorRef=o(I);_dateFormats=o(q,{optional:!0});_dateAdapter=o(w,{optional:!0});_dir=o(ne,{optional:!0});_rangeStrategy=o(Sa,{optional:!0});_rerenderSubscription=k.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this._hasSameMonthAndYear(a,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof A?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new u;_userSelection=new u;dragStarted=new u;dragEnded=new u;activeDateChange=new u;_matCalendarBody;_monthLabel;_weeks;_firstWeekOffset;_rangeStart;_rangeEnd;_comparisonRangeStart;_comparisonRangeEnd;_previewStart;_previewEnd;_isRange;_todayDate;_weekdays;constructor(){o(re).load(Ee),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(_e(null)).subscribe(()=>this._init())}ngOnChanges(e){let a=e.comparisonStart||e.comparisonEnd;a&&!a.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let a=e.value,t=this._getDateFromDayOfMonth(a),i,n;this._selected instanceof A?(i=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):i=n=this._getDateInCurrentMonth(this._selected),(i!==a||n!==a)&&this.selectedChange.emit(t),this._userSelection.emit({value:t,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!H(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(dt+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%dt,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:a}){if(this._rangeStrategy){let t=a?a.rawValue:null,i=this._rangeStrategy.createPreview(t,this.selected,e);if(this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this.activeDrag&&t){let n=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,t,e);n&&(this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let a=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:a??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),a=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map((n,_)=>({long:n,narrow:a[_],id:ni++}));this._weekdays=i.slice(e).concat(i.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),a=this._dateAdapter.getDateNames();this._weeks=[[]];for(let t=0,i=this._firstWeekOffset;t=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,a){return!!(e&&a&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(a)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a))}_getCellCompareValue(e){if(e){let a=this._dateAdapter.getYear(e),t=this._dateAdapter.getMonth(e),i=this._dateAdapter.getDate(e);return new Date(a,t,i).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof A?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=D({type:r,selectors:[["mat-month-view"]],viewQuery:function(a,t){if(a&1&&x(U,5),a&2){let i;M(i=S())&&(t._matCalendarBody=i.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Y],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(a,t){a&1&&(d(0,"table",0)(1,"thead",1)(2,"tr"),ye(3,ja,5,2,"th",2,ka),l(),d(5,"tr",3),g(6,"th",4),l()(),d(7,"tbody",5),h("selectedValueChange",function(n){return t._dateSelected(n)})("activeDateChange",function(n){return t._updateActiveDate(n)})("previewChange",function(n){return t._previewChanged(n)})("dragStarted",function(n){return t.dragStarted.emit(n)})("dragEnded",function(n){return t._dragEnded(n)})("keyup",function(n){return t._handleCalendarBodyKeyup(n)})("keydown",function(n){return t._handleCalendarBodyKeydown(n)}),l()()),a&2&&(c(3),Ce(t._weekdays),c(4),p("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1)("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName))},dependencies:[U],encapsulation:2,changeDetection:0})}return r})(),y=24,lt=4,Da=(()=>{class r{_changeDetectorRef=o(I);_dateAdapter=o(w,{optional:!0});_dir=o(ne,{optional:!0});_rerenderSubscription=k.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),Va(this._dateAdapter,a,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof A?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new u;yearSelected=new u;activeDateChange=new u;_matCalendarBody;_years;_todayYear;_selectedYear;constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(_e(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let a=this._dateAdapter.getYear(this._activeDate)-se(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let t=0,i=[];tthis._createCellForYear(n))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let a=e.value,t=this._dateAdapter.createDate(a,0,1),i=this._getDateFromYear(a);this.yearSelected.emit(t),this.selectedChange.emit(i)}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromYear(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-lt);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,lt);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-se(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,y-se(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-y*10:-y);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?y*10:y);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return se(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let a=this._dateAdapter.getMonth(this.activeDate),t=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,a,1));return this._dateAdapter.createDate(e,a,Math.min(this._dateAdapter.getDate(this.activeDate),t))}_createCellForYear(e){let a=this._dateAdapter.createDate(e,0,1),t=this._dateAdapter.getYearName(a),i=this.dateClass?this.dateClass(a,"multi-year"):void 0;return new de(e,t,t,this._shouldEnableYear(e),i)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class r{_changeDetectorRef=o(I);_dateFormats=o(q,{optional:!0});_dateAdapter=o(w,{optional:!0});_dir=o(ne,{optional:!0});_rerenderSubscription=k.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this._dateAdapter.getYear(a)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof A?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new u;monthSelected=new u;activeDateChange=new u;_matCalendarBody;_months;_yearLabel;_todayMonth;_selectedMonth;constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(_e(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let a=e.value,t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(t);let i=this._getDateFromMonth(a);this.selectedChange.emit(i)}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromMonth(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(a=>a.map(t=>this._createCellForMonth(t,e[t]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),t=this._dateAdapter.getNumDaysInMonth(a);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),t))}_createCellForMonth(e,a){let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.format(t,this._dateFormats.display.monthYearA11yLabel),n=this.dateClass?this.dateClass(t,"year"):void 0;return new de(e,a.toLocaleUpperCase(),i,this._shouldEnableMonth(e),n)}_shouldEnableMonth(e){let a=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(a,e)||this._isYearAndMonthBeforeMinDate(a,e))return!1;if(!this.dateFilter)return!0;let t=this._dateAdapter.createDate(a,e,1);for(let i=t;this._dateAdapter.getMonth(i)==e;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(e,a){if(this.maxDate){let t=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>t||e===t&&a>i}return!1}_isYearAndMonthBeforeMinDate(e,a){if(this.minDate){let t=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e{class r{_intl=o(ue);calendar=o(ct);_dateAdapter=o(w,{optional:!0});_dateFormats=o(q,{optional:!0});constructor(){o(re).load(Ee);let e=o(I);this.calendar.stateChanges.subscribe(()=>e.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-y)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:y)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,a){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(a):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a):Va(this._dateAdapter,e,a,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let a=this._dateAdapter.getYear(this.calendar.activeDate)-se(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=a+y-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return[i,n]}_periodButtonLabelId=o(xe).getId("mat-calendar-period-label-");static \u0275fac=function(a){return new(a||r)};static \u0275cmp=D({type:r,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:qa,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(a,t){a&1&&(te(),d(0,"div",0)(1,"div",1)(2,"span",2),f(3),l(),d(4,"button",3),h("click",function(){return t.currentPeriodClicked()}),d(5,"span",4),f(6),l(),Z(),d(7,"svg",5),g(8,"polygon",6),l()(),He(),g(9,"div",7),Q(10),d(11,"button",8),h("click",function(){return t.previousClicked()}),Z(),d(12,"svg",9),g(13,"path",10),l()(),He(),d(14,"button",11),h("click",function(){return t.nextClicked()}),Z(),d(15,"svg",9),g(16,"path",12),l()()()()),a&2&&(c(2),p("id",t._periodButtonLabelId),c(),V(t.periodButtonDescription),c(),C("aria-label",t.periodButtonLabel)("aria-describedby",t._periodButtonLabelId),c(2),V(t.periodButtonText),c(),R("mat-calendar-invert",t.calendar.currentView!=="month"),c(4),p("disabled",!t.previousEnabled()),C("aria-label",t.prevButtonLabel),c(3),p("disabled",!t.nextEnabled()),C("aria-label",t.nextButtonLabel))},dependencies:[Xe,Ze],encapsulation:2,changeDetection:0})}return r})(),ct=(()=>{class r{_dateAdapter=o(w,{optional:!0});_dateFormats=o(q,{optional:!0});_changeDetectorRef=o(I);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof A?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new u;yearSelected=new u;monthSelected=new u;viewChanged=new u(!0);_userSelection=new u;_userDragDrop=new u;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let a=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),a&&this.viewChanged.emit(a)}_currentView;_activeDrag=null;stateChanges=new P;constructor(){this._intlChanges=o(ue).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Je(this.headerComponent||xa),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let a=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,t=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,i=a||t||e.dateFilter;if(i&&!i.firstChange){let n=this._getCurrentViewComponent();n&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),n._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let a=e.value;(this.selected instanceof A||a&&!this._dateAdapter.sameDate(a,this.selected))&&this.selectedChange.emit(a),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,a){this.activeDate=e,this.currentView=a}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=D({type:r,selectors:[["mat-calendar"]],viewQuery:function(a,t){if(a&1&&(x(va,5),x(ya,5),x(Da,5)),a&2){let i;M(i=S())&&(t.monthView=i.first),M(i=S())&&(t.yearView=i.first),M(i=S())&&(t.multiYearView=i.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Se([Ma]),Y],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(a,t){if(a&1&&(E(0,Wa,0,0,"ng-template",0),d(1,"div",1),E(2,$a,1,11,"mat-month-view",2)(3,Ga,1,6,"mat-year-view",3)(4,Ua,1,6,"mat-multi-year-view",3),l()),a&2){let i;p("cdkPortalOutlet",t._calendarHeaderPortal),c(2),L((i=t.currentView)==="month"?2:i==="year"?3:i==="multi-year"?4:-1)}},dependencies:[et,Lt,va,ya,Da],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return r})(),Ca={transformPanel:We("transformPanel",[ie("void => enter-dropdown",ae("120ms cubic-bezier(0, 0, 0.2, 1)",Ge([T({opacity:0,transform:"scale(1, 0.8)"}),T({opacity:1,transform:"scale(1, 1)"})]))),ie("void => enter-dialog",ae("150ms cubic-bezier(0, 0, 0.2, 1)",Ge([T({opacity:0,transform:"scale(0.7)"}),T({transform:"none",opacity:1})]))),ie("* => void",ae("100ms linear",T({opacity:0})))]),fadeInCalendar:We("fadeInCalendar",[$e("void",T({opacity:0})),$e("enter",T({opacity:1})),ie("void => *",ae("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Ia=new Be("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let r=o(Re);return()=>r.scrollStrategies.reposition()}});function oi(r){return()=>r.scrollStrategies.reposition()}var di={provide:Ia,deps:[Re],useFactory:oi},Fa=(()=>{class r{_elementRef=o(K);_changeDetectorRef=o(I);_globalModel=o(le);_dateAdapter=o(w);_rangeSelectionStrategy=o(Sa,{optional:!0});_subscriptions=new k;_model;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationState;_animationDone=new P;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){o(re).load(Ee);let e=o(ue);this._closeButtonText=e.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let a=this._model.selection,t=e.value,i=a instanceof A;if(i&&this._rangeSelectionStrategy){let n=this._rangeSelectionStrategy.selectionFinished(t,a,e.event);this._model.updateSelection(n,this)}else t&&(i||!this._dateAdapter.sameDate(t,a))&&this._model.add(t);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating=e.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,a){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,a&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=D({type:r,selectors:[["mat-datepicker-content"]],viewQuery:function(a,t){if(a&1&&x(ct,5),a&2){let i;M(i=S())&&(t._calendar=i.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(a,t){a&1&&Et("@transformPanel.start",function(n){return t._handleAnimationEvent(n)})("@transformPanel.done",function(n){return t._handleAnimationEvent(n)}),a&2&&(Vt("@transformPanel",t._animationState),je(t.color?"mat-"+t.color:""),R("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(a,t){if(a&1&&(d(0,"div",0)(1,"mat-calendar",1),h("yearSelected",function(n){return t.datepicker._selectYear(n)})("monthSelected",function(n){return t.datepicker._selectMonth(n)})("viewChanged",function(n){return t.datepicker._viewChanged(n)})("_userSelection",function(n){return t._handleUserSelection(n)})("_userDragDrop",function(n){return t._handleUserDragDrop(n)}),l(),E(2,Xa,0,0,"ng-template",2),d(3,"button",3),h("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),f(4),l()()),a&2){let i;R("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),C("aria-modal",!0)("aria-labelledby",(i=t._dialogLabelId)!==null&&i!==void 0?i:void 0),c(),je(t.datepicker.panelClass),p("id",t.datepicker.id)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName),c(),p("cdkPortalOutlet",t._actionsPortal),c(),R("cdk-visually-hidden",!t._closeButtonFocused),p("color",t.color||"primary"),c(),V(t._closeButtonText)}},dependencies:[Yt,ct,et,Xe],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Ca.transformPanel,Ca.fadeInCalendar]},changeDetection:0})}return r})(),wa=(()=>{class r{_overlay=o(Re);_viewContainerRef=o(kt);_dateAdapter=o(w,{optional:!0});_dir=o(ne,{optional:!0});_model=o(le);_scrollStrategy=o(Ia);_inputStateChanges=k.EMPTY;_document=o(Ft);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new u;monthSelected=new u;viewChanged=new u(!0);dateClass;openedStream=new u;closedStream=new u;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=Pt(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=o(xe).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new P;_injector=o(ze);_changeDetectorRef=o(I);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let a=e.xPosition||e.yPosition;if(a&&!a.firstChange&&this._overlayRef){let t=this._overlayRef.getConfig().positionStrategy;t instanceof sa&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Ot(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",a=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:t,location:i}=this._componentRef;t._startExitAnimation(),t._animationDone.pipe(mt(1)).subscribe(()=>{let n=this._document.activeElement;e&&(!n||n===this._document.activeElement||i.nativeElement.contains(n))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(a):a()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,a=new Je(Fa,this._viewContainerRef),t=this._overlayRef=this._overlay.create(new na({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));this._getCloseStream(t).subscribe(i=>{i&&i.preventDefault(),this.close()}),t.keydownEvents().subscribe(i=>{let n=i.keyCode;(n===38||n===40||n===37||n===39||n===33||n===34)&&i.preventDefault()}),this._componentRef=t.attach(a),this._forwardContentValues(this._componentRef.instance),e||Ke(()=>{t.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let a=this.xPosition==="end"?"end":"start",t=a==="start"?"end":"start",i=this.yPosition==="above"?"bottom":"top",n=i==="top"?"bottom":"top";return e.withPositions([{originX:a,originY:n,overlayX:a,overlayY:i},{originX:a,originY:i,overlayX:a,overlayY:n},{originX:t,originY:n,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:n}])}_getCloseStream(e){let a=["ctrlKey","shiftKey","metaKey"];return me(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(pt(t=>t.keyCode===27&&!H(t)||this.datepickerInput&&H(t,"altKey")&&t.keyCode===38&&a.every(i=>!H(t,i)))))}static \u0275fac=function(a){return new(a||r)};static \u0275dir=J({type:r,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",B],disabled:[2,"disabled","disabled",B],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",B],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",B]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[ve,Y]})}return r})(),xr=(()=>{class r extends wa{static \u0275fac=(()=>{let e;return function(t){return(e||(e=vt(r)))(t||r)}})();static \u0275cmp=D({type:r,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Se([Ma,{provide:wa,useExisting:r}]),ee],decls:0,vars:0,template:function(a,t){},encapsulation:2,changeDetection:0})}return r})(),W=class{target;targetElement;value;constructor(s,e){this.target=s,this.targetElement=e,this.value=this.target.value}},li=(()=>{class r{_elementRef=o(K);_dateAdapter=o(w,{optional:!0});_dateFormats=o(q,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let a=e,t=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0)),a&&this._isInitialized&&t.blur&&t.blur()}_disabled;dateChange=new u;dateInput=new u;stateChanges=new P;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=k.EMPTY;_localeSubscription=k.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),t=this._getMinDate();return!t||!a||this._dateAdapter.compareDate(t,a)<=0?null:{matDatepickerMin:{min:t,actual:a}}};_maxValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),t=this._getMaxDate();return!t||!a||this._dateAdapter.compareDate(t,a)>=0?null:{matDatepickerMax:{max:t,actual:a}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(a=>{if(this._shouldHandleChangeEvent(a)){let t=this._getValueFromModel(a.selection);this._lastValueValid=this._isValidValue(t),this._cvaOnChange(t),this._onTouched(),this._formatValue(t),this.dateInput.emit(new W(this,this._elementRef.nativeElement)),this.dateChange.emit(new W(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){ci(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let a=["ctrlKey","shiftKey","metaKey"];H(e,"altKey")&&e.keyCode===40&&a.every(i=>!H(e,i))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let a=this._lastValueValid,t=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t);let i=!this._dateAdapter.sameDate(t,this.value);!t||i?this._cvaOnChange(t):(e&&!this.value&&this._cvaOnChange(t),a!==this._lastValueValid&&this._validatorOnChange()),i&&(this._assignValue(t),this.dateInput.emit(new W(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new W(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let a=this._getDateFilter();return!a||a(e)}static \u0275fac=function(a){return new(a||r)};static \u0275dir=J({type:r,inputs:{value:"value",disabled:[2,"disabled","disabled",B]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[ve,Y]})}return r})();function ci(r,s){let e=Object.keys(r);for(let a of e){let{previousValue:t,currentValue:i}=r[a];if(s.isDateInstance(t)&&s.isDateInstance(i)){if(!s.sameDate(t,i))return!0}else return!0}return!1}var ui={provide:Gt,useExisting:Ne(()=>Ra),multi:!0},hi={provide:Ut,useExisting:Ne(()=>Ra),multi:!0},Ra=(()=>{class r extends li{_formField=o(jt,{optional:!0});_closedSubscription=k.EMPTY;_openedSubscription=k.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=be(null);get min(){return this._min}set min(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._min)||(this._min=a,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._max)||(this._max=a,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let a=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==a&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Xt.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(a){return new(a||r)};static \u0275dir=J({type:r,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(a,t){a&1&&h("input",function(n){return t._onInput(n.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(n){return t._onKeydown(n)}),a&2&&(St("disabled",t.disabled),C("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",t._ariaOwns())("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Se([ui,hi,{provide:ca,useExisting:r}]),ee]})}return r})(),pi=(()=>{class r{static \u0275fac=function(a){return new(a||r)};static \u0275dir=J({type:r,selectors:[["","matDatepickerToggleIcon",""]]})}return r})(),mi=(()=>{class r{_intl=o(ue);_changeDetectorRef=o(I);_stateChanges=k.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=o(new Dt("tabindex"),{optional:!0}),a=Number(e);this.tabIndex=a||a===0?a:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:pe(),a=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:pe(),t=this.datepicker?me(this.datepicker.openedStream,this.datepicker.closedStream):pe();this._stateChanges.unsubscribe(),this._stateChanges=me(this._intl.changes,e,a,t).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=D({type:r,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,t,i){if(a&1&&xt(i,pi,5),a&2){let n;M(n=S())&&(t._customIcon=n.first)}},viewQuery:function(a,t){if(a&1&&x(Za,5),a&2){let i;M(i=S())&&(t._button=i.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(a,t){a&1&&h("click",function(n){return t._open(n)}),a&2&&(C("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),R("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&t.datepicker.color==="accent")("mat-warn",t.datepicker&&t.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",B],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[ve,Y],ngContentSelectors:ei,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(a,t){a&1&&(te(Ja),d(0,"button",1,0),E(2,ti,2,0,":svg:svg",2),Q(3),l()),a&2&&(p("disabled",t.disabled)("disableRipple",t.disableRipple),C("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),c(2),L(t._customIcon?-1:2))},dependencies:[Ze],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}"],encapsulation:2,changeDetection:0})}return r})();var Ir=(()=>{class r{static \u0275fac=function(a){return new(a||r)};static \u0275mod=At({type:r});static \u0275inj=_t({providers:[ue,di],imports:[Fe,oa,Nt,ia,Bt,Fa,mi,xa,ra]})}return r})();export{at as a,Ki as b,xr as c,Ra as d,mi as e,Ir as f}; diff --git a/chunk-CXAKQAL3.js b/chunk-JMI5D6U5.js similarity index 92% rename from chunk-CXAKQAL3.js rename to chunk-JMI5D6U5.js index 39d40ca6..0b35a922 100644 --- a/chunk-CXAKQAL3.js +++ b/chunk-JMI5D6U5.js @@ -1 +1 @@ -import{a as z}from"./chunk-VE4FGS76.js";import{a as R,b as j,c as B,e as $,f as I,g as N}from"./chunk-JX4IWPKV.js";import{c as A}from"./chunk-VYHC3V3G.js";import{b as L}from"./chunk-TZR6QHL3.js";import{B as V,I as E}from"./chunk-4FWBEGAE.js";import{h as T,k as U,l as k}from"./chunk-PAP2P7QR.js";import{x as F}from"./chunk-EDIJ2EBQ.js";import{$b as v,Jc as P,Kc as O,L as h,Nb as x,Tb as u,Yb as M,ac as S,bc as r,cc as l,hc as y,je as b,ka as _,kc as d,lb as s,mc as c,ta as m,ua as p,ub as C,wc as D,xc as g,zc as w}from"./chunk-TEKHUYWQ.js";var q=(i,n)=>n.id;function H(i,n){if(i&1&&(r(0,"mat-list-option",5),g(1),l()),i&2){let e=n.$implicit;u("value",e),s(),w(" ",e.displayName," ")}}function J(i,n){if(i&1){let e=y();r(0,"mat-dialog-content",2)(1,"devmx-search-field",3),d("searchChange",function(o){m(e);let a=c();return p(a.onSearchChange(o))}),l(),r(2,"mat-selection-list",4,0),v(4,H,2,2,"mat-list-option",5,q),l(),r(6,"devmx-paginator",6),d("pageChange",function(o){m(e);let a=c();return p(a.onPageChange(o))}),l()(),r(7,"mat-dialog-actions",7)(8,"button",8),d("click",function(){m(e);let o=D(3),a=c();return p(a.close(o.selectedOptions.selected))}),g(9," Selecionar "),l(),r(10,"button",9),d("click",function(){m(e);let o=c();return p(o.ref.close())}),g(11,"Cancelar"),l()()}if(i&2){let e=n,t=c();s(2),u("multiple",t.data.multiple),s(2),S(e.data),s(2),u("items",e.items)}}var G=(()=>{class i{userFacade=_(L);ref=_(R);data=_(j);search="";constructor(){this.load()}onSearchChange(e){this.search=e,this.load()}onPageChange({page:e,size:t}){this.userFacade.setParams({page:e,size:t}),this.load()}load(){let e=this.search,t=this.data.onlyRole?{roles:this.data.onlyRole,displayName:e}:{displayName:e};this.userFacade.setFilter(t),this.userFacade.load()}close(e){this.data.multiple?this.ref.close(e.map(t=>t.value)):this.ref.close(e[0].value)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=C({type:i,selectors:[["devmx-select-user"]],decls:4,vars:3,consts:[["user",""],["mat-dialog-title",""],[1,"dialog-content"],[3,"searchChange"],[1,"users",3,"multiple"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(t,o){if(t&1&&(r(0,"h2",1),g(1,"Encontre uma conta"),l(),x(2,J,12,2),P(3,"async")),t&2){let a;s(2),M((a=O(3,1,o.userFacade.response$))?2:-1,a)}},dependencies:[F,A,z,$,I,N,E,V,k,U,T,b],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .users[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return i})();var f=class{dialog;constructor(n){this.dialog=n}open(n={}){return this.dialog.open(G,{data:n}).afterClosed().pipe(h(1))}};function _e(){return{provide:f,deps:[B]}}export{f as a,_e as b}; +import{a as z}from"./chunk-56M6HFOE.js";import{a as R,b as j,c as B,e as $,f as I,g as N}from"./chunk-73QBZNVE.js";import{c as A}from"./chunk-BLJCB4Q7.js";import{b as L}from"./chunk-TPJZ2OYR.js";import{q as V,x as E}from"./chunk-6BGAZ7SQ.js";import{h as T,k as U,l as k}from"./chunk-PAP2P7QR.js";import{x as F}from"./chunk-EDIJ2EBQ.js";import{$b as v,Jc as P,Kc as O,L as h,Nb as x,Tb as u,Yb as M,ac as S,bc as r,cc as l,hc as y,je as b,ka as _,kc as d,lb as s,mc as c,ta as m,ua as p,ub as C,wc as D,xc as g,zc as w}from"./chunk-TEKHUYWQ.js";var q=(i,n)=>n.id;function H(i,n){if(i&1&&(r(0,"mat-list-option",5),g(1),l()),i&2){let e=n.$implicit;u("value",e),s(),w(" ",e.displayName," ")}}function J(i,n){if(i&1){let e=y();r(0,"mat-dialog-content",2)(1,"devmx-search-field",3),d("searchChange",function(o){m(e);let a=c();return p(a.onSearchChange(o))}),l(),r(2,"mat-selection-list",4,0),v(4,H,2,2,"mat-list-option",5,q),l(),r(6,"devmx-paginator",6),d("pageChange",function(o){m(e);let a=c();return p(a.onPageChange(o))}),l()(),r(7,"mat-dialog-actions",7)(8,"button",8),d("click",function(){m(e);let o=D(3),a=c();return p(a.close(o.selectedOptions.selected))}),g(9," Selecionar "),l(),r(10,"button",9),d("click",function(){m(e);let o=c();return p(o.ref.close())}),g(11,"Cancelar"),l()()}if(i&2){let e=n,t=c();s(2),u("multiple",t.data.multiple),s(2),S(e.data),s(2),u("items",e.items)}}var G=(()=>{class i{userFacade=_(L);ref=_(R);data=_(j);search="";constructor(){this.load()}onSearchChange(e){this.search=e,this.load()}onPageChange({page:e,size:t}){this.userFacade.setParams({page:e,size:t}),this.load()}load(){let e=this.search,t=this.data.onlyRole?{roles:this.data.onlyRole,displayName:e}:{displayName:e};this.userFacade.setFilter(t),this.userFacade.load()}close(e){this.data.multiple?this.ref.close(e.map(t=>t.value)):this.ref.close(e[0].value)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=C({type:i,selectors:[["devmx-select-user"]],decls:4,vars:3,consts:[["user",""],["mat-dialog-title",""],[1,"dialog-content"],[3,"searchChange"],[1,"users",3,"multiple"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(t,o){if(t&1&&(r(0,"h2",1),g(1,"Encontre uma conta"),l(),x(2,J,12,2),P(3,"async")),t&2){let a;s(2),M((a=O(3,1,o.userFacade.response$))?2:-1,a)}},dependencies:[F,A,z,$,I,N,E,V,k,U,T,b],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .users[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return i})();var f=class{dialog;constructor(n){this.dialog=n}open(n={}){return this.dialog.open(G,{data:n}).afterClosed().pipe(h(1))}};function _e(){return{provide:f,deps:[B]}}export{f as a,_e as b}; diff --git a/chunk-WVZCQXYK.js b/chunk-JNB3NYAZ.js similarity index 96% rename from chunk-WVZCQXYK.js rename to chunk-JNB3NYAZ.js index a7f8f76a..d1207836 100644 --- a/chunk-WVZCQXYK.js +++ b/chunk-JNB3NYAZ.js @@ -1 +1 @@ -import{A as P,a as u,b as m,c as v,d as C,f as o,u as U}from"./chunk-4FWBEGAE.js";import{F as f}from"./chunk-TEKHUYWQ.js";var r=class extends u{};var s=class{presentationService;constructor(e){this.presentationService=e}execute(e){return this.presentationService.create(e)}};var n=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.delete(e)}};var i=class{presentationService;constructor(e){this.presentationService=e}execute(e){return this.presentationService.findOne(e)}};var a=class{presentationService;constructor(e){this.presentationService=e}execute(e){return this.presentationService.find(e)}};var p=class{presentationService;constructor(e){this.presentationService=e}execute(e){return this.presentationService.update(e.id,e)}};var x=class extends P{createPresentationUseCase;findPresentationsUseCase;findPresentationByIDUseCase;updatePresentationUseCase;deletePresentationUseCase;constructor(e,c,D,B,I){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{title:"",format:""}},selected:null}),this.createPresentationUseCase=e,this.findPresentationsUseCase=c,this.findPresentationByIDUseCase=D,this.updatePresentationUseCase=B,this.deletePresentationUseCase=I}load(){this.onLoad(this.findPresentationsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findPresentationByIDUseCase.execute(e))}create(e){this.onCreate(this.createPresentationUseCase.execute(e))}update(e){this.onUpdate(this.updatePresentationUseCase.execute(e))}delete(e){this.onDelete(this.deletePresentationUseCase.execute(e))}};function l(){return C(x,[s,a,i,p,n])}function h(){return[l()]}var d=class extends U{};function S(){return{provide:r,useFactory(t,e){return new d(t,e,"presentations")},deps:[v,m]}}function F(){return[S()]}function O(){return o(s,[r])}function E(){return o(a,[r])}function H(){return o(i,[r])}function g(){return o(p,[r])}function L(){return o(n,[r])}function y(){return[O(),E(),H(),g(),L()]}function Ie(){return[...F(),...y(),...h()]}var He=(t,e)=>(t.loadOne(e.id),t.selected$.pipe(f(c=>!!c)));export{x as a,Ie as b,He as c}; +import{A as P,a as u,b as m,c as v,d as C,f as o,u as U}from"./chunk-XYJHVZQT.js";import{F as f}from"./chunk-TEKHUYWQ.js";var r=class extends u{};var s=class{presentationService;constructor(e){this.presentationService=e}execute(e){return this.presentationService.create(e)}};var n=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.delete(e)}};var i=class{presentationService;constructor(e){this.presentationService=e}execute(e){return this.presentationService.findOne(e)}};var a=class{presentationService;constructor(e){this.presentationService=e}execute(e){return this.presentationService.find(e)}};var p=class{presentationService;constructor(e){this.presentationService=e}execute(e){return this.presentationService.update(e.id,e)}};var x=class extends P{createPresentationUseCase;findPresentationsUseCase;findPresentationByIDUseCase;updatePresentationUseCase;deletePresentationUseCase;constructor(e,c,D,B,I){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{title:"",format:""}},selected:null}),this.createPresentationUseCase=e,this.findPresentationsUseCase=c,this.findPresentationByIDUseCase=D,this.updatePresentationUseCase=B,this.deletePresentationUseCase=I}load(){this.onLoad(this.findPresentationsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findPresentationByIDUseCase.execute(e))}create(e){this.onCreate(this.createPresentationUseCase.execute(e))}update(e){this.onUpdate(this.updatePresentationUseCase.execute(e))}delete(e){this.onDelete(this.deletePresentationUseCase.execute(e))}};function l(){return C(x,[s,a,i,p,n])}function h(){return[l()]}var d=class extends U{};function S(){return{provide:r,useFactory(t,e){return new d(t,e,"presentations")},deps:[v,m]}}function F(){return[S()]}function O(){return o(s,[r])}function E(){return o(a,[r])}function H(){return o(i,[r])}function g(){return o(p,[r])}function L(){return o(n,[r])}function y(){return[O(),E(),H(),g(),L()]}function Ie(){return[...F(),...y(),...h()]}var He=(t,e)=>(t.loadOne(e.id),t.selected$.pipe(f(c=>!!c)));export{x as a,Ie as b,He as c}; diff --git a/chunk-JX4IWPKV.js b/chunk-JX4IWPKV.js deleted file mode 100644 index 933f7189..00000000 --- a/chunk-JX4IWPKV.js +++ /dev/null @@ -1 +0,0 @@ -import{a as X,b as Z,e as J,f as tt}from"./chunk-XC6WES62.js";import{e as O,h as Q}from"./chunk-R66KDUEB.js";import{f as W,g as $}from"./chunk-BJXILAOS.js";import{K}from"./chunk-4FWBEGAE.js";import{T as x,Y as T,s as U,u as A}from"./chunk-W5KNOAKV.js";import{D as L,Ea as N,F as d,Ja as y,Kb as p,L as g,Lb as G,Nb as j,Pa as B,Sb as v,Vb as D,Z as S,a as m,b as k,bc as H,cc as Y,ea as M,fa as F,ha as h,ic as C,j as l,ka as n,kc as q,sa as P,ub as z,vb as V,wb as r,xa as u,y as E}from"./chunk-TEKHUYWQ.js";function ct(t,o){}var _=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration},w="mdc-dialog--open",et="mdc-dialog--opening",it="mdc-dialog--closing",mt=150,gt=75,ht=(()=>{class t extends Z{_animationMode=n(B,{optional:!0});_animationStateChanged=new N;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?ot(this._config.enterAnimationDuration)??mt:0;_exitAnimationDuration=this._animationsEnabled?ot(this._config.exitAnimationDuration)??gt:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(at,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(et,w)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(w),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(w),this._animationsEnabled?(this._hostElement.style.setProperty(at,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(it)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(et,it)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(a){return(e||(e=u(t)))(a||t)}})();static \u0275cmp=z({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,a){i&2&&(C("id",a._config.id),v("aria-modal",a._config.ariaModal)("role",a._config.role)("aria-labelledby",a._config.ariaLabel?null:a._ariaLabelledByQueue[0])("aria-label",a._config.ariaLabel)("aria-describedby",a._config.ariaDescribedBy||null),D("_mat-animation-noopable",!a._animationsEnabled)("mat-mdc-dialog-container-with-actions",a._actionSectionCount>0))},features:[p],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,a){i&1&&(H(0,"div",0)(1,"div",1),j(2,ct,0,0,"ng-template",2),Y()())},dependencies:[W],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return t})(),at="--mat-dialog-transition-duration";function ot(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?A(t.substring(0,t.length-2)):t.endsWith("s")?A(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var f=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(f||{}),c=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new l;_beforeClosed=new l;_result;_closeFallbackTimeout;_state=f.OPEN;_closeInteractionType;constructor(o,e,i){this._ref=o,this._containerInstance=i,this.disableClose=e.disableClose,this.id=o.id,o.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(d(a=>a.state==="opened"),g(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(d(a=>a.state==="closed"),g(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),o.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),L(this.backdropClick(),this.keydownEvents().pipe(d(a=>a.keyCode===27&&!this.disableClose&&!U(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),nt(this,a.type==="keydown"?"keyboard":"mouse"))})}close(o){this._result=o,this._containerInstance._animationStateChanged.pipe(d(e=>e.state==="closing"),g(1)).subscribe(e=>{this._beforeClosed.next(o),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=f.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(o){let e=this._ref.config.positionStrategy;return o&&(o.left||o.right)?o.left?e.left(o.left):e.right(o.right):e.centerHorizontally(),o&&(o.top||o.bottom)?o.top?e.top(o.top):e.bottom(o.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(o="",e=""){return this._ref.updateSize(o,e),this}addPanelClass(o){return this._ref.addPanelClass(o),this}removePanelClass(o){return this._ref.removePanelClass(o),this}getState(){return this._state}_finishDialogClose(){this._state=f.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function nt(t,o,e){return t._closeInteractionType=o,t.close(e)}var ut=new h("MatMdcDialogData"),pt=new h("mat-mdc-dialog-default-options"),ft=new h("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=n(O);return()=>t.scrollStrategies.block()}});var I=(()=>{class t{_overlay=n(O);_defaultOptions=n(pt,{optional:!0});_scrollStrategy=n(ft);_parentDialog=n(t,{optional:!0,skipSelf:!0});_idGenerator=n(x);_dialog=n(J);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new l;_afterOpenedAtThisLevel=new l;dialogConfigClass=_;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=E(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(S(void 0)));constructor(){this._dialogRefConstructor=c,this._dialogContainerType=ht,this._dialogDataToken=ut}open(e,i){let a;i=m(m({},this._defaultOptions||new _),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let b=this._dialog.open(e,k(m({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:X,useValue:i}]},templateContext:()=>({dialogRef:a}),providers:(s,lt,R)=>(a=new this._dialogRefConstructor(s,i,R),a.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:R},{provide:this._dialogDataToken,useValue:lt.data},{provide:this._dialogRefConstructor,useValue:a}])}));return a.componentRef=b.componentRef,a.componentInstance=b.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(a);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pt=(()=>{class t{dialogRef=n(c,{optional:!0});_elementRef=n(y);_dialog=n(I);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=rt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){nt(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=r({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,a){i&1&&q("click",function(s){return a._onButtonClick(s)}),i&2&&v("aria-label",a.ariaLabel||null)("type",a.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[P]})}return t})(),st=(()=>{class t{_dialogRef=n(c,{optional:!0});_elementRef=n(y);_dialog=n(I);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=rt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=r({type:t})}return t})(),Nt=(()=>{class t extends st{id=n(x).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(a){return(e||(e=u(t)))(a||t)}})();static \u0275dir=r({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,a){i&2&&C("id",a.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[p]})}return t})(),Bt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=r({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[G([K])]})}return t})(),zt=(()=>{class t extends st{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(a){return(e||(e=u(t)))(a||t)}})();static \u0275dir=r({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,a){i&2&&D("mat-mdc-dialog-actions-align-start",a.align==="start")("mat-mdc-dialog-actions-align-center",a.align==="center")("mat-mdc-dialog-actions-align-end",a.align==="end")},inputs:{align:"align"},features:[p]})}return t})();function rt(t,o){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?o.find(i=>i.id===e.id):null}var Vt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=F({providers:[I],imports:[tt,Q,$,T,T]})}return t})();export{c as a,ut as b,I as c,Pt as d,Nt as e,Bt as f,zt as g,Vt as h}; diff --git a/chunk-K4DUSKBE.js b/chunk-K4DUSKBE.js new file mode 100644 index 00000000..af76d95b --- /dev/null +++ b/chunk-K4DUSKBE.js @@ -0,0 +1 @@ +import{a as ae,b as ne}from"./chunk-5BAEVBCP.js";import{a as oe}from"./chunk-DUF4HXV7.js";import{a as Ut,b as Kt,c as Qt,d as Wt,e as Jt,f as Xt,g as Zt,h as te,i as ee,j as ie,k as re}from"./chunk-FROUXDRM.js";import{a as $t,b as zt}from"./chunk-4JU575PW.js";import{a as Gt}from"./chunk-56M6HFOE.js";import"./chunk-73QBZNVE.js";import"./chunk-Q2N7RZTH.js";import{a as Ot}from"./chunk-GXQHMTZK.js";import{c as Vt}from"./chunk-BLJCB4Q7.js";import"./chunk-2XST3EDK.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import{z as B}from"./chunk-XYJHVZQT.js";import{d as Lt,e as qt}from"./chunk-VVQ6JEVH.js";import{e as wt,i as bt,j as Dt}from"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as Rt}from"./chunk-A3N3AUUJ.js";import{g as dt,h as ct,i as lt,p as mt,s as Ht,v as Et,x as It}from"./chunk-6BGAZ7SQ.js";import{c as b,d as S,g as a,h as m,i as k,j as f,k as ht,l as pt}from"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import{a as Nt,e as Bt,f as jt,i as Yt}from"./chunk-EC6LD5KM.js";import{a as Mt,c as xt,h as yt,i as At,m as kt,p as Pt,s as Tt,x as Ft}from"./chunk-EDIJ2EBQ.js";import{H as _t,Q as ut,W as St,X as gt,Y as Ct,ca as vt,q as ft}from"./chunk-W5KNOAKV.js";import{D as L,Ea as Q,Ja as W,Jc as ot,Kc as at,Mb as E,Nb as w,Sb as I,Sc as nt,Tb as h,Vb as R,Vc as A,Yb as P,a as F,bc as s,cc as d,dc as l,ea as q,ec as O,fa as $,fc as V,ha as z,hc as y,j as H,je as st,ka as n,kc as _,l as Y,la as G,lb as c,ma as U,mb as J,mc as u,nc as tt,oc as et,sa as K,ta as g,ua as C,ub as D,vb as X,wb as Z,wc as it,xc as N,yc as rt}from"./chunk-TEKHUYWQ.js";var de=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=D({type:e,selectors:[["devmx-learn-feature-admin"]],decls:1,vars:0,template:function(i,r){i&1&&l(0,"router-outlet")},dependencies:[ct],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var ce=[zt(),ne()];var fe=["mat-sort-header",""],_e=["*"];function ue(e,p){if(e&1){let t=y();s(0,"div",2),_("@arrowPosition.start",function(){g(t);let r=u();return C(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){g(t);let r=u();return C(r._disableViewStateAnimation=!1)}),l(1,"div",3),s(2,"div",4),l(3,"div",5)(4,"div",6)(5,"div",7),d()()}if(e&2){let t=u();h("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),c(2),h("@indicator",t._getArrowDirectionState()),c(),h("@leftPointer",t._getArrowDirectionState()),c(),h("@rightPointer",t._getArrowDirectionState())}}var le=new z("MAT_SORT_DEFAULT_OPTIONS"),j=(()=>{class e{_defaultOptions;_initializedStream=new Y(1);sortables=new Map;_stateChanges=new H;active;start="asc";get direction(){return this._direction}set direction(t){this._direction=t}_direction="";disableClear;disabled=!1;sortChange=new Q;initialized=this._initializedStream;constructor(t){this._defaultOptions=t}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let i=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=Se(t.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||e)(J(le,8))};static \u0275dir=Z({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",A],disabled:[2,"matSortDisabled","disabled",A]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[E,K]})}return e})();function Se(e,p){let t=["asc","desc"];return e=="desc"&&t.reverse(),p||t.push(""),t}var v=gt.ENTERING+" "+St.STANDARD_CURVE,M={indicator:b("indicator",[m("active-asc, asc",a({transform:"translateY(0px)"})),m("active-desc, desc",a({transform:"translateY(10px)"})),f("active-asc <=> active-desc",S(v))]),leftPointer:b("leftPointer",[m("active-asc, asc",a({transform:"rotate(-45deg)"})),m("active-desc, desc",a({transform:"rotate(45deg)"})),f("active-asc <=> active-desc",S(v))]),rightPointer:b("rightPointer",[m("active-asc, asc",a({transform:"rotate(45deg)"})),m("active-desc, desc",a({transform:"rotate(-45deg)"})),f("active-asc <=> active-desc",S(v))]),arrowOpacity:b("arrowOpacity",[m("desc-to-active, asc-to-active, active",a({opacity:1})),m("desc-to-hint, asc-to-hint, hint",a({opacity:.54})),m("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",a({opacity:0})),f("* => asc, * => desc, * => active, * => hint, * => void",S("0ms")),f("* <=> *",S(v))]),arrowPosition:b("arrowPosition",[f("* => desc-to-hint, * => desc-to-active",S(v,k([a({transform:"translateY(-25%)"}),a({transform:"translateY(0)"})]))),f("* => hint-to-desc, * => active-to-desc",S(v,k([a({transform:"translateY(0)"}),a({transform:"translateY(25%)"})]))),f("* => asc-to-hint, * => asc-to-active",S(v,k([a({transform:"translateY(25%)"}),a({transform:"translateY(0)"})]))),f("* => hint-to-asc, * => active-to-asc",S(v,k([a({transform:"translateY(0)"}),a({transform:"translateY(-25%)"})]))),m("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",a({transform:"translateY(0)"})),m("hint-to-desc, active-to-desc, desc",a({transform:"translateY(-25%)"})),m("hint-to-asc, active-to-asc, asc",a({transform:"translateY(25%)"}))]),allowChildren:b("allowChildren",[f("* <=> *",[pt("@*",ht(),{optional:!0})])])},T=(()=>{class e{changes=new H;static \u0275fac=function(i){return new(i||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ge(e){return e||new T}var Ce={provide:T,deps:[[new G,new U,T]],useFactory:ge},me=(()=>{class e{_intl=n(T);_changeDetectorRef=n(nt);_sort=n(j,{optional:!0});_columnDef=n("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_focusMonitor=n(ut);_elementRef=n(W);_ariaDescriber=n(_t,{optional:!0});_rerenderSubscription;_sortButton;_showIndicatorHint=!1;_viewState={};_arrowDirection="";_disableViewStateAnimation=!1;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}_sortActionDescription="Sort";disableClear;constructor(){n(ft).load(vt);let t=n(le,{optional:!0});this._sort,t?.arrowPosition&&(this.arrowPosition=t?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let i=!!t;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=L(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=D({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&_("click",function(){return r._handleClick()})("keydown",function(x){return r._handleKeydown(x)})("mouseenter",function(){return r._setIndicatorHintVisible(!0)})("mouseleave",function(){return r._setIndicatorHintVisible(!1)}),i&2&&(I("aria-sort",r._getAriaSortAttribute()),R("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",A],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",A]},exportAs:["matSortHeader"],features:[E],attrs:fe,ngContentSelectors:_e,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,r){i&1&&(tt(),s(0,"div",0)(1,"div",1),et(2),d(),w(3,ue,6,6,"div",2),d()),i&2&&(R("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before"),I("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),c(3),P(r._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface));opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}@media(forced-colors: active){.mat-sort-header-stem{width:0;border-left:solid 2px}}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}@media(forced-colors: active){.mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}@media(forced-colors: active){.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[M.indicator,M.leftPointer,M.rightPointer,M.arrowOpacity,M.arrowPosition,M.allowChildren]},changeDetection:0})}return e})(),he=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=X({type:e});static \u0275inj=$({providers:[Ce],imports:[Ct]})}return e})();function we(e,p){e&1&&(s(0,"th",20),N(1," Habilidade "),d())}function be(e,p){if(e&1&&(s(0,"td",21),N(1),d()),e&2){let t=p.$implicit;c(),rt(t.name)}}function De(e,p){e&1&&l(0,"th",22)}function Me(e,p){if(e&1){let t=y();s(0,"td",21)(1,"button",23),_("click",function(){let r=g(t).$implicit,o=u(2);return C(o.editSkill(r))}),l(2,"devmx-icon",24),d()()}}function xe(e,p){e&1&&l(0,"tr",25)}function ye(e,p){e&1&&l(0,"tr",26)}function Ae(e,p){if(e&1){let t=y();s(0,"table",6),_("matSortChange",function(r){g(t);let o=u();return C(o.onSortChange(r))}),O(1,7),w(2,we,2,0,"th",8)(3,be,2,1,"td",9),V(),O(4,10),w(5,De,1,0,"th",11)(6,Me,3,0,"td",9),V(),w(7,xe,1,0,"tr",12)(8,ye,1,0,"tr",13),d(),s(9,"mat-card-actions",14)(10,"form",15,0),_("submit",function(){g(t);let r=it(11),o=u();return C(o.onSubmit(r))}),s(12,"mat-form-field"),l(13,"input",16),s(14,"button",17),l(15,"devmx-icon",18),d()()(),s(16,"devmx-paginator",19),_("pageChange",function(r){g(t);let o=u();return C(o.onPageChange(r))}),d()()}if(e&2){let t=p,i=u();h("dataSource",t.data),c(7),h("matHeaderRowDef",i.columns),c(),h("matRowDefColumns",i.columns),c(2),h("formGroup",i.form),c(6),h("size",10)("items",t.items)}}var pe=(()=>{class e{router=n(lt);route=n(dt);skillFacade=n(Ot);skillDialog=n(ae);dialogFacade=n($t);columns=["name","actions"];form=new oe;constructor(){this.route.queryParams.pipe(Rt()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{page:i=0,size:r=10,name:o="",sort:x=""}=t;this.skillFacade.setFilter({name:o}),this.skillFacade.setPage(i,r),this.skillFacade.setSort(B.fromParams(x)),this.skillFacade.load(),console.log(this.route.snapshot.toString())};onSearchChange(t){let i=this.mergeParams({name:t});this.router.navigate([],{queryParams:i})}onPageChange(t){let i=this.mergeParams(t);this.router.navigate([],{queryParams:i})}onSortChange({active:t,direction:i}){let r=B.toParams(t,i),o=this.mergeParams(r);this.router.navigate([],{queryParams:o})}mergeParams(t){return F(F({},this.route.snapshot.queryParams),t)}onSubmit(t){this.form.valid&&(this.skillFacade.create(this.form.getRawValue()),t.resetForm())}createSkill(){this.skillDialog.open().subscribe(t=>{t&&this.skillFacade.create(t)})}editSkill(t){this.skillDialog.open(t).subscribe(i=>{i&&this.skillFacade.create(i)})}deleteSkill({id:t,name:i}){this.dialogFacade.confirm(`Confirme que deseja apagar a habilidade ${i}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(r=>{r&&this.skillFacade.delete(t)})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=D({type:e,selectors:[["devmx-admin-skills"]],decls:7,vars:4,consts:[["skillForm","ngForm"],["mat-fab","",1,"tertiary-fab","top","right",3,"click"],["name","plus"],[1,"skills-card"],[1,"skills-card-header"],[3,"searchChange","debounce"],["mat-table","","matSort","",3,"matSortChange","dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","name",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"skills-card-actions"],[3,"submit","formGroup"],["matInput","","formControlName","name","placeholder","Adicionar nova habilidade"],["mat-icon-button","","matIconSuffix",""],["name","send"],[3,"pageChange","size","items"],["mat-header-cell","","mat-sort-header","name"],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click"],["name","software/edit"],["mat-header-row",""],["mat-row",""]],template:function(i,r){if(i&1&&(s(0,"button",1),_("click",function(){return r.createSkill()}),l(1,"devmx-icon",2),d(),s(2,"mat-card",3)(3,"mat-card-header",4)(4,"devmx-search-field",5),_("searchChange",function(x){return r.onSearchChange(x)}),d()(),w(5,Ae,17,6),ot(6,"async"),d()),i&2){let o;c(4),h("debounce",800),c(),P((o=at(6,2,r.skillFacade.response$))?5:-1,o)}},dependencies:[mt,re,Ut,Qt,Zt,Wt,Kt,te,Jt,Xt,ee,ie,It,Et,Ht,Dt,bt,wt,Ft,kt,xt,yt,At,Pt,Tt,Gt,Vt,qt,Lt,he,j,me,Mt,Yt,Nt,Bt,jt,st],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:4em}[_nghost-%COMP%] .skills-card-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-left:1em}"],changeDetection:0})}return e})();var Pi=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},providers:ce,component:de,children:[{path:"",data:{breadcrumb:"Habilidades"},title:"Administrar hbilidades",component:pe}]}];export{de as LearnFeatureAdminComponent,Pi as learnFeatureAdminRoutes}; diff --git a/chunk-KAZRQD4G.js b/chunk-KAZRQD4G.js deleted file mode 100644 index 2ab75285..00000000 --- a/chunk-KAZRQD4G.js +++ /dev/null @@ -1 +0,0 @@ -import{b as Le,c as Be,d as ke,e as Se,g as Te}from"./chunk-ZQOXWN4S.js";import{a as Oe,b as Ne}from"./chunk-RRBYVHNZ.js";import{a as we,b as Ee}from"./chunk-MLNPCJDD.js";import{a as $,b as A}from"./chunk-UOTKRQ63.js";import{a as Ie,b as $e,c as Ae,d as Re}from"./chunk-5DAHKZ7F.js";import{a as Fe}from"./chunk-A3N3AUUJ.js";import{C as De,G as ze,I as N}from"./chunk-4FWBEGAE.js";import{f as me,h as ce,i as pe,j as O,k as ge,p as ue}from"./chunk-KXTQ2UTD.js";import{c as xe,e as Ce,g as Me,j as Pe,l as R}from"./chunk-PAP2P7QR.js";import{a as y}from"./chunk-EDIJ2EBQ.js";import{B as _e,H as be,K as ve,S as he,T as ye,Y as G,q as H,r as fe}from"./chunk-W5KNOAKV.js";import{$b as z,Ba as X,F as U,Fa as J,Fc as oe,Hc as re,Ia as K,Ja as Q,Jc as c,Kc as p,Mb as ie,Nb as u,Pa as W,Sc as se,Tb as g,Vb as S,Vc as I,Y as Z,Yb as f,Yd as le,ac as L,bc as o,cc as s,dc as d,ed as de,fa as Y,hc as ae,je as P,k as q,ka as l,kc as T,lb as r,mc as B,nc as x,oc as C,sb as ee,ta as E,ua as D,ub as b,vb as te,wb as ne,wc as M,xc as v,yc as h,zc as F}from"./chunk-TEKHUYWQ.js";var Xe=["*"];function Je(e,a){e&1&&(o(0,"p",1),d(1,"devmx-icon",6),o(2,"span"),v(3),s()()),e&2&&(r(3),h(a.displayName))}var je=(()=>{class e{toolbar=l(Oe);year=new Date().getFullYear();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=b({type:e,selectors:[["devmx-layout-toolbar"]],ngContentSelectors:Xe,decls:11,vars:4,consts:[[1,"layout-toolbar"],[1,"layout-toolbar-account"],[1,"spacer"],[1,"devpr"],["target","_blank","href","//devpr.org",1,"devpr-link"],["src","devpr.svg","alt","Comunidade DevParan\xE1"],["name","user-circle"]],template:function(n,i){if(n&1&&(x(),o(0,"mat-toolbar",0)(1,"div"),C(2),u(3,Je,4,1,"p",1),c(4,"async"),s(),d(5,"span",2),o(6,"div")(7,"p",3),v(8),s(),o(9,"a",4),d(10,"img",5),s()()()),n&2){let m;r(3),f((m=p(4,2,i.toolbar.auth.auth$))?3:-1,m),r(5),F("DevParan\xE1 \xA9 ",i.year,"")}},dependencies:[A,$,y,R,P],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .layout-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] .layout-toolbar-account[_ngcontent-%COMP%]{display:inline-flex;align-items:center;font-size:.8em;gap:.6em;padding:0;margin:0}[_nghost-%COMP%] .layout-toolbar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{gap:.5em;display:flex;align-items:center}[_nghost-%COMP%] .devpr[_ngcontent-%COMP%]{display:flex;gap:1em;font-size:.68em;margin:0;opacity:.6}[_nghost-%COMP%] .devpr-link[_ngcontent-%COMP%]{height:100%;display:inline-flex;align-items:center;margin-left:.4em;margin-right:.4em}[_nghost-%COMP%] .devpr-link[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:32px}@media (max-width: 767px){[_nghost-%COMP%] .devpr[_ngcontent-%COMP%]{display:none}}"],changeDetection:0})}return e})();var w=class{router;#e=new q([]);breadcrumbs$=this.#e.asObservable();constructor(a){this.router=a,this.router.events.pipe(U(t=>t instanceof me)).subscribe(()=>{let{root:t}=this.router.routerState.snapshot,n=[];this.#t([],n,t),this.#e.next(n)})}#t(a,t,n){if(n){let i=a.concat(n.url.map(m=>m.path));if("breadcrumb"in n.data){let m=n.data.breadcrumb,_=typeof n.data.breadcrumb=="function"?m(n.data):m;if(t.every(V=>V.text!==_)){let V="/"+i.join("/");t.push({path:V,text:_})}}this.#t(i,t,n.firstChild)}}};var Qe=(e,a)=>a.path;function We(e,a){e&1&&d(0,"devmx-icon",1),e&2&&g("size",16)}function et(e,a){if(e&1&&(o(0,"li")(1,"a",0),v(2),s(),u(3,We,1,1,"devmx-icon",1),s()),e&2){let t=a.$implicit,n=a.$index,i=a.$count;r(),g("routerLink",t.path),r(),h(t.text),r(),f(n!==i-1?3:-1)}}var Ve=(()=>{class e{crumbsService=l(w);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=b({type:e,selectors:[["devmx-crumbs"]],decls:4,vars:2,consts:[["mat-button","",1,"crumb",3,"routerLink"],["name","arrow/chevron-right",3,"size"]],template:function(n,i){n&1&&(o(0,"ul"),z(1,et,4,3,"li",null,Qe),c(3,"async"),s()),n&2&&(r(),L(p(3,0,i.crumbsService.breadcrumbs$)))},dependencies:[O,N,De,y,P],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none;display:flex;flex-direction:row}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:0}[_nghost-%COMP%] .crumb-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4em} .crumb{display:inline-flex;justify-content:flex-start} .crumb .mdc-button__label{overflow:hidden;max-width:120px;text-overflow:ellipsis;width:fit-content;white-space:nowrap}"]})}return e})();function He(){return{provide:w,deps:[pe]}}var tt=["*"],Ge=(()=>{class e{title=K("devparana . mx");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=b({type:e,selectors:[["devmx-layout-navbar"]],inputs:{title:[1,"title"]},features:[oe([He()])],ngContentSelectors:tt,decls:11,vars:1,consts:[[1,"layout-navbar"],["routerLink","/",1,"app-logo"],["src","devmx.svg","height","48","alt","DevMX"],[1,"app-title"],[1,"app-crumbs"],[1,"spacer"],["target","_blank","rel","noreferrer","title","Github","href","https://github.com/DeveloperParana/devmx"],["name","github"]],template:function(n,i){n&1&&(x(),o(0,"mat-toolbar",0)(1,"div"),C(2),s(),o(3,"a",1),d(4,"img",2),s(),o(5,"h1",3),v(6),s(),d(7,"devmx-crumbs",4)(8,"span",5),o(9,"a",6),d(10,"devmx-icon",7),s()()),n&2&&(r(6),h(i.title()))},dependencies:[A,$,Ve,y,O],styles:["[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .layout-navbar[_ngcontent-%COMP%]{display:flex;gap:.4em}[_nghost-%COMP%] .layout-navbar-toggle-menu.cdk-focused[_ngcontent-%COMP%] devmx-icon[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_rotate-center .8s cubic-bezier(.175,.885,.32,1.275) both}[_nghost-%COMP%] .app-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:48px}[_nghost-%COMP%] .app-title[_ngcontent-%COMP%]{font-size:.9em;font-weight:500;opacity:.3;margin:0}@media (max-width: 767px){[_nghost-%COMP%] .app-crumbs[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1 1 auto}@keyframes _ngcontent-%COMP%_rotate-center{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"],changeDetection:0})}return e})();var qe="mat-badge-content",nt=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,i){},styles:[".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}"],encapsulation:2,changeDetection:0})}return e})(),Ue=(()=>{class e{_ngZone=l(J);_elementRef=l(Q);_ariaDescriber=l(be);_renderer=l(ee);_animationMode=l(W,{optional:!0});_idGenerator=l(ye);get color(){return this._color}set color(t){this._setColor(t),this._color=t}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(t){this._updateRenderedContent(t)}_content;get description(){return this._description}set description(t){this._updateDescription(t)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=l(ve);_document=l(de);constructor(){l(H).load(nt),l(H).load(fe)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let t=this._renderer.createElement("span"),n="mat-badge-active";return t.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),t.setAttribute("aria-hidden","true"),t.classList.add(qe),this._animationMode==="NoopAnimations"&&t.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(t),typeof requestAnimationFrame=="function"&&this._animationMode!=="NoopAnimations"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add(n)})}):t.classList.add(n),t}_updateRenderedContent(t){let n=`${t??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!t||this._isHostInteractive())&&this._removeInlineDescription(),this._description=t,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,t):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(t){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),t&&n.add(`mat-badge-${t}`)}_clearExistingBadges(){let t=this._elementRef.nativeElement.querySelectorAll(`:scope > .${qe}`);for(let n of Array.from(t))n!==this._badgeElement&&n.remove()}static \u0275fac=function(n){return new(n||e)};static \u0275dir=ne({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,i){n&2&&S("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small",i.size==="small")("mat-badge-medium",i.size==="medium")("mat-badge-large",i.size==="large")("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",I],disabled:[2,"matBadgeDisabled","disabled",I],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",I]},features:[ie]})}return e})(),Ze=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=te({type:e});static \u0275inj=Y({imports:[he,G,G]})}return e})();var at=[[["mat-toolbar"]]],ot=["mat-toolbar"],rt=(e,a)=>a.label,st=(e,a)=>a.route,dt=e=>({disabled:e});function lt(e,a){e&1&&d(0,"devmx-icon",4)}function mt(e,a){e&1&&d(0,"devmx-icon",5)}function ct(e,a){if(e&1&&d(0,"devmx-icon",16),e&2){let t=B().$implicit;g("name",t.icon)}}function pt(e,a){if(e&1&&d(0,"devmx-icon",16),e&2){let t=B(2).$implicit;g("name",t.icon)}}function gt(e,a){if(e&1&&d(0,"devmx-icon",20),e&2){let t=B(2).$implicit;g("name",t.lock)}}function ut(e,a){if(e&1&&(o(0,"a",18),u(1,pt,1,1,"devmx-icon",16),o(2,"span",19),c(3,"async"),v(4),s(),u(5,gt,1,1,"devmx-icon",20),s()),e&2){let t=B().$implicit;g("routerLink",t.route)("disabled",t.disabled)("tabindex",t.disabled?-1:0)("ngClass",re(10,dt,t.disabled)),r(),f(t.icon?1:-1),r(),g("matBadge",p(3,8,t.badge)),r(2),F(" ",t.label," "),r(),f(t.showLock?5:-1)}}function ft(e,a){if(e&1&&u(0,ut,6,12,"a",18),e&2){let t=a.$implicit;f(t.disabled?-1:0)}}function _t(e,a){if(e&1&&(o(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),v(3),s(),o(4,"mat-panel-description"),u(5,ct,1,1,"devmx-icon",16),s()(),o(6,"mat-nav-list",17),z(7,ft,1,1,null,null,st),s()()),e&2){let t=a.$implicit;g("expanded",t.expanded),r(3),h(t.label),r(2),f(t.icon?5:-1),r(2),L(t.links)}}function bt(e,a){e&1&&d(0,"mat-progress-bar",11)}function vt(e,a){e&1&&d(0,"devmx-icon",4)}function ht(e,a){e&1&&d(0,"devmx-icon",5)}var kn=(()=>{class e{destroyRef=l(X);layoutFacade;constructor(){let t=l(se);this.layoutFacade=l(Ne),this.layoutFacade.mobile$.pipe(Fe(),Z(1)).subscribe(()=>t.detectChanges()),this.destroyRef.onDestroy(()=>{this.layoutFacade.destroyListener()})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=b({type:e,selectors:[["devmx-layout"]],ngContentSelectors:ot,decls:33,vars:29,consts:[["snav",""],["enav",""],[1,"layout-container"],["mat-icon-button","",1,"layout-container-toggle-menu",3,"click"],["name","menu/hide"],["name","menu/show"],[1,"layout-sidenav-container",3,"hasBackdrop"],["fixedTopGap","52",1,"layout-sidenav-start",3,"mode","fixedInViewport","opened"],[3,"expanded"],[1,"layout-content"],[1,"layout-progress"],["mode","indeterminate"],[1,"layout-main-wrapper"],[1,"layout-main"],["mode","over","fixedTopGap","56","position","end",1,"layout-sidenav-end",3,"fixedInViewport","opened"],["name","right",3,"activate","deactivate"],["matListItemIcon","",3,"name"],[1,"layout-nav-list"],["mat-list-item","","routerLinkActive","active",3,"routerLink","disabled","tabindex","ngClass"],["matBadgeDescription","before",3,"matBadge"],["matListItemMeta","",3,"name"]],template:function(n,i){if(n&1){let m=ae();x(at),o(0,"div",2),c(1,"async"),o(2,"devmx-layout-navbar")(3,"button",3),T("click",function(){E(m);let _=M(9);return D(_.toggle())}),u(4,lt,1,0,"devmx-icon",4)(5,mt,1,0,"devmx-icon",5),s()(),o(6,"mat-sidenav-container",6),c(7,"async"),o(8,"mat-sidenav",7,0),c(10,"async"),c(11,"async"),c(12,"async"),z(13,_t,9,3,"mat-expansion-panel",8,rt),c(15,"async"),s(),o(16,"mat-sidenav-content",9)(17,"div",10),u(18,bt,1,0,"mat-progress-bar",11),c(19,"async"),s(),C(20),o(21,"div",12)(22,"main",13),d(23,"router-outlet"),s()()(),o(24,"mat-sidenav",14,1),c(26,"async"),c(27,"async"),o(28,"router-outlet",15),T("activate",function(){E(m);let _=M(25);return D(_.open())})("deactivate",function(){E(m);let _=M(25);return D(_.close())}),s()()(),o(29,"devmx-layout-toolbar")(30,"button",3),T("click",function(){E(m);let _=M(9);return D(_.toggle())}),u(31,vt,1,0,"devmx-icon",4)(32,ht,1,0,"devmx-icon",5),s()()()}if(n&2){let m=M(9);S("layout-is-mobile",p(1,11,i.layoutFacade.mobile$)),r(4),f(m.opened?4:5),r(2),g("hasBackdrop",p(7,13,i.layoutFacade.mobile$)),r(2),g("mode",p(10,15,i.layoutFacade.mobile$)?"over":"side")("fixedInViewport",p(11,17,i.layoutFacade.mobile$))("opened",p(12,19,i.layoutFacade.sidenavStart$)),r(5),L(p(15,21,i.layoutFacade.sections$)),r(5),f(p(19,23,i.layoutFacade.loader$)?18:-1),r(6),g("fixedInViewport",p(26,25,i.layoutFacade.mobile$))("opened",p(27,27,i.layoutFacade.sidenavEnd$)),r(7),f(m.opened?31:32)}},dependencies:[le,P,_e,ue,ce,O,ge,R,Pe,Me,Ce,xe,y,Ze,Ue,N,ze,Re,$e,Ae,Ie,Te,Le,Be,Se,ke,Ee,we,je,Ge],styles:['[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:absolute;inset:0}[_nghost-%COMP%] .layout-container-toggle-menu.cdk-focused[_ngcontent-%COMP%] devmx-icon[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_rotate-center .8s cubic-bezier(.175,.885,.32,1.275) both}[_nghost-%COMP%] h1.layout-app-name[_ngcontent-%COMP%]{margin-left:8px}[_nghost-%COMP%] .layout-sidenav-container[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]) .mat-expansion-panel-body{padding:0}[_nghost-%COMP%] .space-between[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:space-between}[_nghost-%COMP%] .layout-nav-list[_ngcontent-%COMP%]{gap:.4em;display:flex;flex-direction:column}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;padding-right:16px}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%] .layout-content-toolbar[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%] .layout-progress[_ngcontent-%COMP%]{padding:0 8px;max-height:2px;min-height:2px;overflow:hidden;position:relative}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%] .layout-progress[_ngcontent-%COMP%]:after{inset:0;height:2px;content:" ";position:absolute;background-size:100%;background:#fefdfd;background-position:center center;background:linear-gradient(90deg,#fefdfd,#fefdfd00 25% 75%,#fefdfd)}[_nghost-%COMP%] .layout-main-wrapper[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;max-height:calc(100dvh - 128px);overflow:auto;border-radius:16px;box-sizing:border-box}[_nghost-%COMP%] .layout-main[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow-y:auto;box-sizing:border-box}@media (pointer: fine){[_nghost-%COMP%] .layout-main[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:8px}[_nghost-%COMP%] .layout-main[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:4px}}@media (max-width: 959.98px){[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%]{padding-right:8px;padding-left:8px}[_nghost-%COMP%] .layout-main-wrapper[_ngcontent-%COMP%]{height:calc(100dvh - 128px)}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%]{overflow-y:visible;padding:8px}}[_nghost-%COMP%] .layout-sidenav-start[_ngcontent-%COMP%]{width:16em;min-width:12em;padding-left:.4em}[_nghost-%COMP%] .layout-sidenav-start[_ngcontent-%COMP%] .mat-mdc-subheader[_ngcontent-%COMP%]{font-size:1.2em;margin:0 .6em;opacity:.8}[_nghost-%COMP%] .layout-sidenav-end[_ngcontent-%COMP%]{width:48vw;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;max-height:calc(100dvh - 128px)}[_nghost-%COMP%] .layout-sidenav-end[_ngcontent-%COMP%]:active, [_nghost-%COMP%] .layout-sidenav-end[_ngcontent-%COMP%]:hover{box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;padding:0 .4em}[_nghost-%COMP%] .layout-is-mobile[_ngcontent-%COMP%] .layout-toolbar[_ngcontent-%COMP%]{position:fixed;z-index:2}[_nghost-%COMP%] .layout-is-mobile[_ngcontent-%COMP%] .layout-sidenav-container[_ngcontent-%COMP%]{flex:1 0 auto}[_nghost-%COMP%] .layout-is-mobile[_ngcontent-%COMP%] .layout-sidenav-start[_ngcontent-%COMP%]{max-height:calc(100dvh - 108px);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .layout-is-mobile[_ngcontent-%COMP%] .layout-sidenav-end[_ngcontent-%COMP%]{width:98vw;max-height:calc(100dvh - 114px)}@keyframes _ngcontent-%COMP%_rotate-center{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0})}return e})();export{kn as a}; diff --git a/chunk-KDMTRYHW.js b/chunk-KDMTRYHW.js new file mode 100644 index 00000000..9379aaf1 --- /dev/null +++ b/chunk-KDMTRYHW.js @@ -0,0 +1 @@ +import{a,b,c,d,e,f,g,h,i,j}from"./chunk-F2BR4OZZ.js";import"./chunk-56M6HFOE.js";import"./chunk-73QBZNVE.js";import"./chunk-Q2N7RZTH.js";import"./chunk-BLJCB4Q7.js";import"./chunk-2XST3EDK.js";import"./chunk-JNB3NYAZ.js";import"./chunk-XYJHVZQT.js";import"./chunk-VVQ6JEVH.js";import"./chunk-HGOTYYGI.js";import"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import"./chunk-A3N3AUUJ.js";import"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import"./chunk-EC6LD5KM.js";import"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import"./chunk-TEKHUYWQ.js";export{g as PresentationCardComponent,b as PresentationCardListComponent,f as PresentationEmbedComponent,c as PresentationFilterComponent,a as PresentationFormatPipe,e as PresentationSearchComponent,d as PresentationSearchForm,i as SelectPresentation,h as SelectPresentationDialog,j as provideSelectPresentation}; diff --git a/chunk-KXTQ2UTD.js b/chunk-KXTQ2UTD.js deleted file mode 100644 index 4617cb6e..00000000 --- a/chunk-KXTQ2UTD.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as Jr,$a as hn,$c as Pn,Ab as Rn,Bb as Qt,Cb as Yt,Ce as Jt,Da as on,Db as Kt,Ea as ue,Eb as bn,Ee as $n,F as J,Fa as Q,Ga as Ht,Ge as zn,H as oe,I as se,Ia as sn,Ja as Bt,K as Nt,L as ae,La as an,M as Qr,Ma as qt,Mb as En,Na as un,Oa as Te,Oc as st,P as rt,Q as Z,Qa as Vt,R as _t,S as Yr,Sb as In,Sc as at,Uc as Un,V as Kr,Va as cn,Vc as ut,Wa as De,Xa as ce,Xd as jn,Ya as le,Z as Xr,Za as ln,_,_a as dn,a as d,ab as fn,ad as ct,b as M,ba as E,bb as pn,bd as xn,ca as C,cb as gn,cd as Nn,db as vn,dc as Mn,e as qr,ea as S,eb as ee,ed as D,f as Vr,fa as Lt,ga as en,gd as _n,h as Ut,ha as b,i as Pt,ia as jt,ib as mn,j as G,ja as m,jd as de,k as P,ka as p,kb as Oe,kc as An,la as kt,ld as Ln,ma as tn,mb as L,md as Xt,n as W,na as $t,nb as yn,nd as Ue,o as A,oa as rn,p as f,pa as Ae,pc as Tn,q as Ie,qa as z,qb as Sn,r as Gr,rb as wn,rc as Dn,s as Wr,sa as nt,sb as Gt,sc as On,t as w,tb as Wt,u as tt,ub as Cn,v as T,vb as Zt,w as Me,wb as it,x as Zr,xa as zt,y as xt,ya as nn,yb as ot,za as Ft,ze as kn}from"./chunk-TEKHUYWQ.js";var tr=class extends Nn{supportsDOMEvents=!0},rr=class t extends tr{static makeCurrent(){xn(new t)}onAndCancel(n,e,r){return n.addEventListener(e,r),()=>{n.removeEventListener(e,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Qi();return e==null?null:Yi(e)}resetBaseElement(){Pe=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return jn(document.cookie,n)}},Pe=null;function Qi(){return Pe=Pe||document.querySelector("base"),Pe?Pe.getAttribute("href"):null}function Yi(t){return new URL(t,document.baseURI).pathname}var Ki=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),nr=new b(""),Gn=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(m(nr),m(Q))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),lt=class{_doc;constructor(n){this._doc=n}manager},ir="ng-app-id";function Fn(t){for(let n of t)n.remove()}function Hn(t,n){let e=n.createElement("style");return e.textContent=t,e}function Xi(t,n,e){let r=t.head?.querySelectorAll(`style[${ir}="${n}"]`);if(r)for(let i of r)i.textContent&&(i.removeAttribute(ir),e.set(i.textContent,{usage:0,elements:[i]}))}function or(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Wn=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,this.isServer=Jt(o),Xi(e,r,this.inline),this.hosts.add(e.head)}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,Hn);r?.forEach(i=>this.addUsage(i,this.external,or))}removeStyles(e,r){for(let i of e)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,r,i){let o=r.get(e);o?o.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,r){let i=r.get(e);i&&(i.usage--,i.usage<=0&&(Fn(i.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Fn(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,Hn(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,or(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(ir,this.appId),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(m(D),m(qt),m(Vt,8),m(Te))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),er={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},ar=/%COMP%/g,Zn="%COMP%",Ji=`_nghost-${Zn}`,eo=`_ngcontent-${Zn}`,to=!0,ro=new b("",{providedIn:"root",factory:()=>to});function no(t){return eo.replace(ar,t)}function io(t){return Ji.replace(ar,t)}function Qn(t,n){return n.map(e=>e.replace(ar,t))}var Bn=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,r,i,o,s,u,a,c=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=u,this.ngZone=a,this.nonce=c,this.platformIsServer=Jt(u),this.defaultRenderer=new xe(e,s,a,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===De.ShadowDom&&(r=M(d({},r),{encapsulation:De.Emulated}));let i=this.getOrCreateRenderer(e,r);return i instanceof dt?i.applyToHost(e):i instanceof Ne&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,u=this.ngZone,a=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case De.Emulated:o=new dt(a,c,r,this.appId,l,s,u,h);break;case De.ShadowDom:return new sr(a,c,e,r,s,u,this.nonce,h);default:o=new Ne(a,c,r,l,s,u,h);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||t)(m(Gn),m(Wn),m(qt),m(ro),m(D),m(Te),m(Q),m(Vt))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),xe=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,r,i){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=i}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(er[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(qn(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(qn(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new C(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let o=er[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=er[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(Oe.DashCase|Oe.Important)?n.style.setProperty(e,r,i&Oe.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Oe.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r){if(typeof n=="string"&&(n=ct().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(r))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function qn(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var sr=class extends xe{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,r,i,o,s,u,a){super(n,o,s,a),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Qn(i.id,i.styles);for(let h of c){let v=document.createElement("style");u&&v.setAttribute("nonce",u),v.textContent=h,this.shadowRoot.appendChild(v)}let l=i.getExternalStyles?.();if(l)for(let h of l){let v=or(h,o);u&&v.setAttribute("nonce",u),this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ne=class extends xe{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,i,o,s,u,a){super(n,o,s,u),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i,this.styles=a?Qn(a,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},dt=class extends Ne{contentAttr;hostAttr;constructor(n,e,r,i,o,s,u,a){let c=i+"-"+r.id;super(n,e,r,o,s,u,a,c),this.contentAttr=no(c),this.hostAttr=io(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}},oo=(()=>{class t extends lt{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}static \u0275fac=function(r){return new(r||t)(m(D))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),Vn=["alt","control","meta","shift"],so={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ao={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},uo=(()=>{class t extends lt{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i){let o=t.parseEventName(r),s=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ct().onAndCancel(e,o.domEventName,s))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),s="code."),Vn.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let a={};return a.domEventName=i,a.fullKey=s,a}static matchEventFullKeyCode(e,r){let i=so[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Vn.forEach(s=>{if(s!==i){let u=ao[s];u(e)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||t)(m(D))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function za(t,n){return Un(d({rootComponent:t},co(n)))}function co(t){return{appProviders:[...go,...t?.providers??[]],platformProviders:po}}function lo(){rr.makeCurrent()}function ho(){return new Ht}function fo(){return an(document),document}var po=[{provide:Te,useValue:kn},{provide:un,useValue:lo,multi:!0},{provide:D,useFactory:fo,deps:[]}];var go=[{provide:rn,useValue:"root"},{provide:Ht,useFactory:ho,deps:[]},{provide:nr,useClass:oo,multi:!0,deps:[D,Q,Te]},{provide:nr,useClass:uo,multi:!0,deps:[D]},Bn,Wn,Gn,{provide:wn,useExisting:Bn},{provide:zn,useClass:Ki,deps:[]},[]];var Fa=(()=>{class t{_doc;_dom;constructor(e){this._doc=e,this._dom=ct()}addTag(e,r=!1){return e?this._getOrCreateElement(e,r):null}addTags(e,r=!1){return e?e.reduce((i,o)=>(o&&i.push(this._getOrCreateElement(o,r)),i),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let r=this._doc.querySelectorAll(`meta[${e}]`);return r?[].slice.call(r):[]}updateTag(e,r){if(!e)return null;r=r||this._parseSelector(e);let i=this.getTag(r);return i?this._setMetaElementAttributes(e,i):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,r=!1){if(!r){let s=this._parseSelector(e),u=this.getTags(s).filter(a=>this._containsAttributes(e,a))[0];if(u!==void 0)return u}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(e,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(e,r){return Object.keys(e).forEach(i=>r.setAttribute(this._getMetaKeyMap(i),e[i])),r}_parseSelector(e){let r=e.name?"name":"property";return`${r}="${e[r]}"`}_containsAttributes(e,r){return Object.keys(e).every(i=>r.getAttribute(this._getMetaKeyMap(i))===e[i])}_getMetaKeyMap(e){return vo[e]||e}static \u0275fac=function(r){return new(r||t)(m(D))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vo={httpEquiv:"http-equiv"},Yn=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||t)(m(D))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var mo=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=m(yo),i},providedIn:"root"})}return t})(),yo=(()=>{class t extends mo{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case ee.NONE:return r;case ee.HTML:return le(r,"HTML")?ce(r):vn(this._doc,String(r)).toString();case ee.STYLE:return le(r,"Style")?ce(r):r;case ee.SCRIPT:if(le(r,"Script"))return ce(r);throw new C(5200,!1);case ee.URL:return le(r,"URL")?ce(r):gn(String(r));case ee.RESOURCE_URL:if(le(r,"ResourceURL"))return ce(r);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(e){return ln(e)}bypassSecurityTrustStyle(e){return dn(e)}bypassSecurityTrustScript(e){return hn(e)}bypassSecurityTrustUrl(e){return fn(e)}bypassSecurityTrustResourceUrl(e){return pn(e)}static \u0275fac=function(r){return new(r||t)(m(D))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var g="primary",Qe=Symbol("RouteTitle"),hr=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function me(t){return new hr(t)}function wo(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.lengthr[o]===i)}else return t===n}function ci(t){return t.length>0?t[t.length-1]:null}function X(t){return Gr(t)?t:Rn(t)?A(Promise.resolve(t)):f(t)}var Ro={exact:di,subset:hi},li={exact:bo,subset:Eo,ignored:()=>!0};function Kn(t,n,e){return Ro[e.paths](t.root,n.root,e.matrixParams)&&li[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function bo(t,n){return F(t,n)}function di(t,n,e){if(!re(t.segments,n.segments)||!pt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!di(t.children[r],n.children[r],e))return!1;return!0}function Eo(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ui(t[e],n[e]))}function hi(t,n,e){return fi(t,n,n.segments,e)}function fi(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!re(i,e)||n.hasChildren()||!pt(i,e,r))}else if(t.segments.length===e.length){if(!re(t.segments,e)||!pt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!hi(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!re(t.segments,i)||!pt(t.segments,i,r)||!t.children[g]?!1:fi(t.children[g],n,o,r)}}function pt(t,n,e){return n.every((r,i)=>li[e](t[i].parameters,r.parameters))}var q=class{root;queryParams;fragment;_queryParamMap;constructor(n=new y([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=me(this.queryParams),this._queryParamMap}toString(){return Ao.serialize(this)}},y=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gt(this)}},te=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=me(this.parameters),this._parameterMap}toString(){return gi(this)}};function Io(t,n){return re(t,n)&&t.every((e,r)=>F(e.parameters,n[r].parameters))}function re(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function Mo(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var Ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>new ye,providedIn:"root"})}return t})(),ye=class{parse(n){let e=new gr(n);return new q(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_e(n.root,!0)}`,r=Oo(n.queryParams),i=typeof n.fragment=="string"?`#${To(n.fragment)}`:"";return`${e}${r}${i}`}},Ao=new ye;function gt(t){return t.segments.map(n=>gi(n)).join("/")}function _e(t,n){if(!t.hasChildren())return gt(t);if(n){let e=t.children[g]?_e(t.children[g],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g&&r.push(`${i}:${_e(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=Mo(t,(r,i)=>i===g?[_e(t.children[g],!1)]:[`${i}:${_e(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${gt(t)}/${e[0]}`:`${gt(t)}/(${e.join("//")})`}}function pi(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ht(t){return pi(t).replace(/%3B/gi,";")}function To(t){return encodeURI(t)}function pr(t){return pi(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function vt(t){return decodeURIComponent(t)}function Xn(t){return vt(t.replace(/\+/g,"%20"))}function gi(t){return`${pr(t.path)}${Do(t.parameters)}`}function Do(t){return Object.entries(t).map(([n,e])=>`;${pr(n)}=${pr(e)}`).join("")}function Oo(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${ht(e)}=${ht(i)}`).join("&"):`${ht(e)}=${ht(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Uo=/^[^\/()?;#]+/;function ur(t){let n=t.match(Uo);return n?n[0]:""}var Po=/^[^\/()?;=#]+/;function xo(t){let n=t.match(Po);return n?n[0]:""}var No=/^[^=?&#]+/;function _o(t){let n=t.match(No);return n?n[0]:""}var Lo=/^[^&#]+/;function jo(t){let n=t.match(Lo);return n?n[0]:""}var gr=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new y([],{}):new y([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[g]=new y(n,e)),r}parseSegment(){let n=ur(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(n),new te(vt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=xo(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=ur(this.remaining);i&&(r=i,this.capture(r))}n[vt(e)]=vt(r)}parseQueryParam(n){let e=_o(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=jo(this.remaining);s&&(r=s,this.capture(r))}let i=Xn(e),o=Xn(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=ur(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=g);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[g]:new y([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new C(4011,!1)}};function vi(t){return t.segments.length>0?new y([],{[g]:t}):t}function mi(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=mi(i);if(r===g&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))n[s]=u;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new y(t.segments,n);return ko(e)}function ko(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new y(t.segments.concat(n.segments),n.children)}return t}function ne(t){return t instanceof q}function $o(t,n,e=null,r=null){let i=yi(t);return Si(i,n,e,r)}function yi(t){let n;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new y(o.url,s);return o===t&&(n=u),u}let r=e(t.root),i=vi(r);return n??i}function Si(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return cr(i,i,i,e,r);let o=zo(n);if(o.toRoot())return cr(i,i,new y([],{}),e,r);let s=Fo(o,i,t),u=s.processChildren?ke(s.segmentGroup,s.index,o.commands):Ci(s.segmentGroup,s.index,o.commands);return cr(i,s.segmentGroup,u,e,r)}function mt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Fe(t){return typeof t=="object"&&t!=null&&t.outlets}function cr(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===n?s=e:s=wi(t,n,e);let u=vi(mi(s));return new q(u,o,i)}function wi(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=wi(o,n,e)}),new y(t.segments,r)}var yt=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&mt(r[0]))throw new C(4003,!1);let i=r.find(Fe);if(i&&i!==ci(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function zo(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new yt(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?n++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new yt(e,n,r)}var pe=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Fo(t,n,e){if(t.isAbsolute)return new pe(n,!0,0);if(!e)return new pe(n,!1,NaN);if(e.parent===null)return new pe(e,!0,0);let r=mt(t.commands[0])?0:1,i=e.segments.length-1+r;return Ho(e,i,t.numberOfDoubleDots)}function Ho(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new pe(r,!1,i-o)}function Bo(t){return Fe(t[0])?t[0].outlets:{[g]:t}}function Ci(t,n,e){if(t??=new y([],{}),t.segments.length===0&&t.hasChildren())return ke(t,n,e);let r=qo(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndexo!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let o=ke(t.children[g],n,e);return new y(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Ci(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new y(t.segments,i)}}function qo(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return o;let s=t.segments[i],u=e[r];if(Fe(u))break;let a=`${u}`,c=r0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!ei(a,c,s))return o;r+=2}else{if(!ei(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function vr(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=vr(new y([],{}),0,r))}),n}function Jn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function ei(t,n,e){return t==e.path&&F(n,e.parameters)}var $e="imperative",R=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(R||{}),x=class{id;url;constructor(n,e){this.id=n,this.url=e}},Se=class extends x{type=R.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends x{urlAfterRedirects;type=R.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},U=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(U||{}),St=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(St||{}),B=class extends x{reason;code;type=R.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Y=class extends x{reason;code;type=R.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},He=class extends x{error;target;type=R.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},wt=class extends x{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mr=class extends x{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yr=class extends x{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Sr=class extends x{urlAfterRedirects;state;type=R.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wr=class extends x{urlAfterRedirects;state;type=R.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Cr=class{route;type=R.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rr=class{route;type=R.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},br=class{snapshot;type=R.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Er=class{snapshot;type=R.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ir=class{snapshot;type=R.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mr=class{snapshot;type=R.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct=class{routerEvent;position;anchor;type=R.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Be=class{},we=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Go(t,n){return t.providers&&!t._injector&&(t._injector=Wt(t.providers,n,`Route: ${t.path}`)),t._injector??n}function j(t){return t.outlet||g}function Wo(t,n){let e=t.filter(r=>j(r)===n);return e.push(...t.filter(r=>j(r)!==n)),e}function Ke(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Ar=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ke(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Xe(this.rootInjector)}},Xe=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Ar(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(m(Ae))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Tr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Tr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Dr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Dr(n,this._root).map(e=>e.value)}};function Tr(t,n){if(t===n.value)return n;for(let e of n.children){let r=Tr(t,e);if(r)return r}return null}function Dr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=Dr(t,e);if(r.length)return r.unshift(n),r}return[]}var O=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function fe(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var bt=class extends Rt{snapshot;constructor(n,e){super(n),this.snapshot=e,kr(this,n)}toString(){return this.snapshot.toString()}};function Ri(t){let n=Zo(t),e=new P([new te("",{})]),r=new P({}),i=new P({}),o=new P({}),s=new P(""),u=new K(e,r,o,s,i,g,t,n.root);return u.snapshot=n.root,new bt(new O(u,[]),n)}function Zo(t){let n={},e={},r={},i="",o=new ge([],n,r,i,e,g,t,null,{});return new It("",new O(o,[]))}var K=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,u,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(w(c=>c[Qe]))??f(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(w(n=>me(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(w(n=>me(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Et(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:d(d({},n.params),t.params),data:d(d({},n.data),t.data),resolve:d(d(d(d({},t.data),n.data),i?.data),t._resolvedData)}:r={params:d({},t.params),data:d({},t.data),resolve:d(d({},t.data),t._resolvedData??{})},i&&Ei(i)&&(r.resolve[Qe]=i.title),r}var ge=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Qe]}constructor(n,e,r,i,o,s,u,a,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=me(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=me(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},It=class extends Rt{url;constructor(n,e){super(e),this.url=n,kr(this,e)}toString(){return bi(this._root)}};function kr(t,n){n.value._routerState=t,n.children.forEach(e=>kr(t,e))}function bi(t){let n=t.children.length>0?` { ${t.children.map(bi).join(", ")} } `:"";return`${t.value}${n}`}function lr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,F(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),F(n.params,e.params)||t.paramsSubject.next(e.params),Co(n.url,e.url)||t.urlSubject.next(e.url),F(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Or(t,n){let e=F(t.params,n.params)&&Io(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Or(t.parent,n.parent))}function Ei(t){return typeof t.title=="string"||t.title===null}var Qo=new b(""),Yo=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new ue;deactivateEvents=new ue;attachEvents=new ue;detachEvents=new ue;routerOutletData=sn(void 0);parentContexts=p(Xe);location=p(bn);changeDetector=p(at);inputBinder=p(Dt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new Ur(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=it({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[nt]})}return t})(),Ur=class t{route;childContexts;parent;outletData;__ngOutletInjector(n){return new t(this.route,this.childContexts,n,this.outletData)}constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===K?this.route:n===Xe?this.childContexts:n===Qo?this.outletData:this.parent.get(n,e)}},Dt=new b(""),ti=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=tt([r.queryParams,r.params,r.data]).pipe(_(([o,s,u],a)=>(u=d(d(d({},o),s),u),a===0?f(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=Pn(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function Ko(t,n,e){let r=qe(t,n._root,e?e._root:void 0);return new bt(r,n)}function qe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Xo(t,n,e);return new O(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(u=>qe(t,u)),s}}let r=Jo(n.value),i=n.children.map(o=>qe(t,o));return new O(r,i)}}function Xo(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return qe(t,r,i);return qe(t,r)})}function Jo(t){return new K(new P(t.url),new P(t.params),new P(t.queryParams),new P(t.fragment),new P(t.data),t.outlet,t.component,t)}var Ve=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},Ii="ngNavigationCancelingError";function Mt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=ne(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Mi(!1,U.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Mi(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Ii]=!0,e.cancellationCode=n,e}function es(t){return Ai(t)&&ne(t.url)}function Ai(t){return!!t&&t[Ii]}var ts=(t,n,e,r)=>w(i=>(new Pr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),Pr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),lr(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=fe(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=fe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),u=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:u})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=fe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=fe(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Mr(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Er(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(lr(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),lr(u.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},At=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ve=class{component;route;constructor(n,e){this.component=n,this.route=e}};function rs(t,n,e){let r=t._root,i=n?n._root:null;return Le(r,i,e,[r.value])}function ns(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Re(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!en(t)?t:n.get(t):r}function Le(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=fe(n);return t.children.forEach(s=>{is(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>ze(u,e.getContext(s),i)),i}function is(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=os(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new At(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Le(t,n,u?u.children:null,r,i):Le(t,n,e,r,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new ve(u.outlet.component,s))}else s&&ze(n,u,i),i.canActivateChecks.push(new At(r)),o.component?Le(t,null,u?u.children:null,r,i):Le(t,null,e,r,i);return i}function os(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!re(t.url,n.url);case"pathParamsOrQueryParamsChange":return!re(t.url,n.url)||!F(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Or(t,n)||!F(t.queryParams,n.queryParams);case"paramsChange":default:return!Or(t,n)}}function ze(t,n,e){let r=fe(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?ze(s,n.children.getContext(o),e):ze(s,null,e):ze(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new ve(n.outlet.component,i)):e.canDeactivateChecks.push(new ve(null,i)):e.canDeactivateChecks.push(new ve(null,i))}function Je(t){return typeof t=="function"}function ss(t){return typeof t=="boolean"}function as(t){return t&&Je(t.canLoad)}function us(t){return t&&Je(t.canActivate)}function cs(t){return t&&Je(t.canActivateChild)}function ls(t){return t&&Je(t.canDeactivate)}function ds(t){return t&&Je(t.canMatch)}function Ti(t){return t instanceof Wr||t?.name==="EmptyError"}var ft=Symbol("INITIAL_VALUE");function Ce(){return _(t=>tt(t.map(n=>n.pipe(ae(1),Xr(ft)))).pipe(w(n=>{for(let e of n)if(e!==!0){if(e===ft)return ft;if(e===!1||hs(e))return e}return!0}),J(n=>n!==ft),ae(1)))}function hs(t){return ne(t)||t instanceof Ve}function fs(t,n){return T(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(M(d({},e),{guardsResult:!0})):ps(s,r,i,t).pipe(T(u=>u&&ss(u)?gs(r,o,t,n):f(u)),w(u=>M(d({},e),{guardsResult:u})))})}function ps(t,n,e,r){return A(t).pipe(T(i=>ws(i.component,i.route,e,n,r)),Z(i=>i!==!0,!0))}function gs(t,n,e,r){return A(n).pipe(se(i=>Zr(ms(i.route.parent,r),vs(i.route,r),Ss(t,i.path,e),ys(t,i.route,e))),Z(i=>i!==!0,!0))}function vs(t,n){return t!==null&&n&&n(new Ir(t)),f(!0)}function ms(t,n){return t!==null&&n&&n(new br(t)),f(!0)}function ys(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let i=r.map(o=>xt(()=>{let s=Ke(n)??e,u=Re(o,s),a=us(u)?u.canActivate(n,t):z(s,()=>u(n,t));return X(a).pipe(Z())}));return f(i).pipe(Ce())}function Ss(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>ns(s)).filter(s=>s!==null).map(s=>xt(()=>{let u=s.guards.map(a=>{let c=Ke(s.node)??e,l=Re(a,c),h=cs(l)?l.canActivateChild(r,t):z(c,()=>l(r,t));return X(h).pipe(Z())});return f(u).pipe(Ce())}));return f(o).pipe(Ce())}function ws(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(u=>{let a=Ke(n)??i,c=Re(u,a),l=ls(c)?c.canDeactivate(t,n,e,r):z(a,()=>c(t,n,e,r));return X(l).pipe(Z())});return f(s).pipe(Ce())}function Cs(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let u=Re(s,t),a=as(u)?u.canLoad(n,e):z(t,()=>u(n,e));return X(a)});return f(o).pipe(Ce(),Di(r))}function Di(t){return Vr(E(n=>{if(typeof n!="boolean")throw Mt(t,n)}),w(n=>n===!0))}function Rs(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let u=Re(s,t),a=ds(u)?u.canMatch(n,e):z(t,()=>u(n,e));return X(a)});return f(o).pipe(Ce(),Di(r))}var Ge=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},We=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function he(t){return Ie(new Ge(t))}function bs(t){return Ie(new C(4e3,!1))}function Es(t){return Ie(Mi(!1,U.GuardRejected))}var xr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return f(r);if(i.numberOfChildren>1||!i.children[g])return bs(`${n.redirectTo}`);i=i.children[g]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:l,url:h,outlet:v,params:$,data:I,title:V}=i,N=z(o,()=>u({params:$,data:I,queryParams:a,fragment:c,routeConfig:l,url:h,outlet:v,title:V}));if(N instanceof q)throw new We(N);e=N}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new We(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new q(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);r[i]=e[u]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(n,a,r,i)}),new y(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},Nr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Is(t,n,e,r,i){let o=Oi(t,n,e);return o.matched?(r=Go(n,r),Rs(r,n,e,i).pipe(w(s=>s===!0?o:d({},Nr)))):f(o)}function Oi(t,n,e){if(n.path==="**")return Ms(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?d({},Nr):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||wo)(e,t,n);if(!i)return d({},Nr);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path});let s=i.consumed.length>0?d(d({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ms(t){return{matched:!0,parameters:t.length>0?ci(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function ri(t,n,e,r){return e.length>0&&Ds(t,e,r)?{segmentGroup:new y(n,Ts(r,new y(e,t.children))),slicedSegments:[]}:e.length===0&&Os(t,e,r)?{segmentGroup:new y(t.segments,As(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new y(t.segments,t.children),slicedSegments:e}}function As(t,n,e,r){let i={};for(let o of e)if(Ot(t,n,o)&&!r[j(o)]){let s=new y([],{});i[j(o)]=s}return d(d({},r),i)}function Ts(t,n){let e={};e[g]=n;for(let r of t)if(r.path===""&&j(r)!==g){let i=new y([],{});e[j(r)]=i}return e}function Ds(t,n,e){return e.some(r=>Ot(t,n,r)&&j(r)!==g)}function Os(t,n,e){return e.some(r=>Ot(t,n,r))}function Ot(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Us(t,n,e){return n.length===0&&!t.children[e]}var _r=class{};function Ps(t,n,e,r,i,o,s="emptyOnly"){return new Lr(t,n,e,r,i,s,o).recognize()}var xs=31,Lr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,u){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new xr(this.urlSerializer,this.urlTree)}noMatchError(n){return new C(4002,`'${n.segmentGroup}'`)}recognize(){let n=ri(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(w(({children:e,rootSnapshot:r})=>{let i=new O(r,e),o=new It("",i),s=$o(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new ge([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,g,e).pipe(w(r=>({children:r,rootSnapshot:e})),oe(r=>{if(r instanceof We)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Ge?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(w(s=>s instanceof O?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return A(o).pipe(se(s=>{let u=r.children[s],a=Wo(e,s);return this.processSegmentGroup(n,a,u,s,i)}),Kr((s,u)=>(s.push(...u),s)),Nt(null),Yr(),T(s=>{if(s===null)return he(r);let u=Ui(s);return Ns(u),f(u)}))}processSegment(n,e,r,i,o,s,u){return A(e).pipe(se(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,o,s,u).pipe(oe(c=>{if(c instanceof Ge)return f(null);throw c}))),Z(a=>!!a),oe(a=>{if(Ti(a))return Us(r,i,o)?f(new _r):he(r);throw a}))}processSegmentAgainstRoute(n,e,r,i,o,s,u,a){return j(r)!==s&&(s===g||!Ot(i,o,r))?he(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,a):he(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,u){let{matched:a,parameters:c,consumedSegments:l,positionalParamSegments:h,remainingSegments:v}=Oi(e,i,o);if(!a)return he(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xs&&(this.allowRedirects=!1));let $=new ge(o,c,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,ni(i),j(i),i.component??i._loadedComponent??null,i,ii(i)),I=Et($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(I.params),$.data=Object.freeze(I.data);let V=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,h,$,n);return this.applyRedirects.lineralizeSegments(i,V).pipe(T(N=>this.processSegment(n,r,e,N.concat(v),s,!1,u)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let u=Is(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),u.pipe(_(a=>a.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(_(({routes:c})=>{let l=r._loadedInjector??n,{parameters:h,consumedSegments:v,remainingSegments:$}=a,I=new ge(v,h,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,ni(r),j(r),r.component??r._loadedComponent??null,r,ii(r)),V=Et(I,s,this.paramsInheritanceStrategy);I.params=Object.freeze(V.params),I.data=Object.freeze(V.data);let{segmentGroup:N,slicedSegments:Ee}=ri(e,v,$,c);if(Ee.length===0&&N.hasChildren())return this.processChildren(l,c,N,I).pipe(w(et=>new O(I,et)));if(c.length===0&&Ee.length===0)return f(new O(I,[]));let Vi=j(r)===o;return this.processSegment(l,c,N,Ee,Vi?g:o,!0,I).pipe(w(et=>new O(I,et instanceof O?[et]:[])))}))):he(e)))}getChildConfig(n,e,r){return e.children?f({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):Cs(n,e,r,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(n,e).pipe(E(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):Es(e))):f({routes:[],injector:n})}};function Ns(t){t.sort((n,e)=>n.value.outlet===g?-1:e.value.outlet===g?1:n.value.outlet.localeCompare(e.value.outlet))}function _s(t){let n=t.value.routeConfig;return n&&n.path===""}function Ui(t){let n=[],e=new Set;for(let r of t){if(!_s(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Ui(r.children);n.push(new O(r.value,i))}return n.filter(r=>!e.has(r))}function ni(t){return t.data||{}}function ii(t){return t.resolve||{}}function Ls(t,n,e,r,i,o){return T(s=>Ps(t,n,e,r,s.extractedUrl,i,o).pipe(w(({state:u,tree:a})=>M(d({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function js(t,n){return T(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of Pi(a))s.add(c);let u=0;return A(s).pipe(se(a=>o.has(a)?ks(a,r,t,n):(a.data=Et(a,a.parent,t).resolve,f(void 0))),E(()=>u++),_t(1),T(a=>u===s.size?f(e):W))})}function Pi(t){let n=t.children.map(e=>Pi(e)).flat();return[t,...n]}function ks(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Ei(i)&&(o[Qe]=i.title),$s(o,t,n,r).pipe(w(s=>(t._resolvedData=s,t.data=Et(t,t.parent,e).resolve,null)))}function $s(t,n,e,r){let i=fr(t);if(i.length===0)return f({});let o={};return A(i).pipe(T(s=>zs(t[s],n,e,r).pipe(Z(),E(u=>{if(u instanceof Ve)throw Mt(new ye,u);o[s]=u}))),_t(1),Qr(o),oe(s=>Ti(s)?W:Ie(s)))}function zs(t,n,e,r){let i=Ke(n)??r,o=Re(t,i),s=o.resolve?o.resolve(n,e):z(i,()=>o(n,e));return X(s)}function dr(t){return _(n=>{let e=t(n);return e?A(e).pipe(w(()=>n)):f(n)})}var xi=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===g);return r}getResolvedTitleForRoute(e){return e.data[Qe]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>p(Fs),providedIn:"root"})}return t})(),Fs=(()=>{class t extends xi{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(m(Yn))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),be=new b("",{providedIn:"root",factory:()=>({})}),Hs=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Cn({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,i){r&1&&Mn(0,"router-outlet")},dependencies:[Yo],encapsulation:2})}return t})();function $r(t){let n=t.children&&t.children.map($r),e=n?M(d({},t),{children:n}):d({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Hs),e}var Ze=new b(""),zr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(st);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=X(e.loadComponent()).pipe(w(Ni),E(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),rt(()=>{this.componentLoaders.delete(e)})),i=new Pt(r,()=>new G).pipe(Ut());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=Bs(r,this.compiler,e,this.onLoadEndListener).pipe(rt(()=>{this.childrenLoaders.delete(r)})),s=new Pt(o,()=>new G).pipe(Ut());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Bs(t,n,e,r){return X(t.loadChildren()).pipe(w(Ni),T(i=>i instanceof Sn||Array.isArray(i)?f(i):A(n.compileModuleAsync(i))),w(i=>{r&&r(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(Ze,[],{optional:!0,self:!0}).flat()),{routes:s.map($r),injector:o}}))}function qs(t){return t&&typeof t=="object"&&"default"in t}function Ni(t){return qs(t)?t.default:t}var Fr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>p(Vs),providedIn:"root"})}return t})(),Vs=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_i=new b(""),Li=new b("");function Gs(t,n,e){let r=t.get(Li),i=t.get(D);return t.get(Q).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),u=i.startViewTransition(()=>(o(),Ws(t))),{onViewTransitionCreated:a}=r;return a&&z(t,()=>a({transition:u,from:n,to:e})),s})}function Ws(t){return new Promise(n=>{cn({read:()=>setTimeout(n)},{injector:t})})}var ji=new b(""),Hr=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new G;transitionAbortSubject=new G;configLoader=p(zr);environmentInjector=p(Ae);urlSerializer=p(Ye);rootContexts=p(Xe);location=p(Ue);inputBindingEnabled=p(Dt,{optional:!0})!==null;titleStrategy=p(xi);options=p(be,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(Fr);createViewTransition=p(_i,{optional:!0});navigationErrorHandler=p(ji,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;constructor(){let e=i=>this.events.next(new Cr(i)),r=i=>this.events.next(new Rr(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(M(d(d({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new P({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:$e,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(J(o=>o.id!==0),w(o=>M(d({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),_(o=>{let s=!1,u=!1;return f(o).pipe(_(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",U.SupersededByNewNavigation),W;this.currentTransition=o,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?M(d({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&l!=="reload"){let h="";return this.events.next(new Y(a.id,this.urlSerializer.serialize(a.rawUrl),h,St.IgnoredSameUrlNavigation)),a.resolve(!1),W}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(_(h=>{let v=this.transitions?.getValue();return this.events.next(new Se(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),v!==this.transitions?.getValue()?W:Promise.resolve(h)}),Ls(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),E(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=M(d({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let v=new wt(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(v)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:h,extractedUrl:v,source:$,restoredState:I,extras:V}=a,N=new Se(h,this.urlSerializer.serialize(v),$,I);this.events.next(N);let Ee=Ri(this.rootComponentType).snapshot;return this.currentTransition=o=M(d({},a),{targetSnapshot:Ee,urlAfterRedirects:v,extras:M(d({},V),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=v,f(o)}else{let h="";return this.events.next(new Y(a.id,this.urlSerializer.serialize(a.extractedUrl),h,St.IgnoredByUrlHandlingStrategy)),a.resolve(!1),W}}),E(a=>{let c=new mr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),w(a=>(this.currentTransition=o=M(d({},a),{guards:rs(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),fs(this.environmentInjector,a=>this.events.next(a)),E(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Mt(this.urlSerializer,a.guardsResult);let c=new yr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),J(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",U.GuardRejected),!1)),dr(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(E(c=>{let l=new Sr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),_(c=>{let l=!1;return f(c).pipe(js(this.paramsInheritanceStrategy,this.environmentInjector),E({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",U.NoDataFromResolver)}}))}),E(c=>{let l=new wr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),dr(a=>{let c=l=>{let h=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(l.routeConfig).pipe(E(v=>{l.component=v}),w(()=>{})));for(let v of l.children)h.push(...c(v));return h};return tt(c(a.targetSnapshot.root)).pipe(Nt(null),ae(1))}),dr(()=>this.afterPreactivation()),_(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,l=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return l?A(l).pipe(w(()=>o)):f(o)}),w(a=>{let c=Ko(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=M(d({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),E(()=>{this.events.next(new Be)}),ts(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ae(1),E({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new k(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Jr(this.transitionAbortSubject.pipe(E(a=>{throw a}))),rt(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",U.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),oe(a=>{if(u=!0,Ai(a))this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),es(a)?this.events.next(new we(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new He(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let l=z(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof Ve){let{message:h,cancellationCode:v}=Mt(this.urlSerializer,l);this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),h,v)),this.events.next(new we(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return W}))}))}cancelNavigationTransition(e,r,i){let o=new B(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zs(t){return t!==$e}var Qs=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>p(Ys),providedIn:"root"})}return t})(),jr=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Ys=(()=>{class t extends jr{static \u0275fac=(()=>{let e;return function(i){return(e||(e=zt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ki=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>p(Ks),providedIn:"root"})}return t})(),Ks=(()=>{class t extends ki{location=p(Ue);urlSerializer=p(Ye);options=p(be,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=p(Fr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new q;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Ri(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof Se)this.stateMemento=this.createStateMemento();else if(e instanceof Y)this.rawUrlTree=r.initialUrl;else if(e instanceof wt){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else e instanceof Be?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):e instanceof B&&(e.code===U.GuardRejected||e.code===U.NoDataFromResolver)?this.restoreHistory(r):e instanceof He?this.restoreHistory(r,!0):e instanceof k&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof q?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=d(d({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=d(d({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=zt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),je=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(je||{});function $i(t,n){t.events.pipe(J(e=>e instanceof k||e instanceof B||e instanceof He||e instanceof Y),w(e=>e instanceof k||e instanceof Y?je.COMPLETE:(e instanceof B?e.code===U.Redirect||e.code===U.SupersededByNewNavigation:!1)?je.REDIRECTING:je.FAILED),J(e=>e!==je.REDIRECTING),ae(1)).subscribe(()=>{n()})}var Xs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Js={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},H=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(ot);stateManager=p(ki);options=p(be,{optional:!0})||{};pendingTasks=p(on);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Hr);urlSerializer=p(Ye);location=p(Ue);urlHandlingStrategy=p(Fr);_events=new G;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(Qs);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Ze,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Dt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new qr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof B&&r.code!==U.Redirect&&r.code!==U.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof k)this.navigated=!0;else if(r instanceof we){let s=r.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a=d({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Zs(i.source)},s);this.scheduleNavigation(u,$e,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ta(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),$e,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=d({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map($r),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=r,c=a?this.currentUrlTree.fragment:s,l=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":l=d(d({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let h;try{let v=i?i.snapshot:this.routerState.snapshot.root;h=yi(v)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return Si(h,e,l,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=ne(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,$e,null,r)}navigate(e,r={skipLocationChange:!1}){return ea(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=d({},Xs):r===!1?i=d({},Js):i=r,ne(e))return Kn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Kn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((h,v)=>{u=h,a=v});let l=this.pendingTasks.add();return $i(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ea(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new G;constructor(e,r,i,o,s,u){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof k&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ne(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:mn(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ne(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(L(H),L(K),nn("tabindex"),L(Gt),L(Bt),L(de))};static \u0275dir=it({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&An("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&In("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ut],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ut],replaceUrl:[2,"replaceUrl","replaceUrl",ut],routerLink:"routerLink"},features:[En,nt]})}return t})(),uu=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ue;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof k&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(Me()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=A(e).pipe(Me()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=ra(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(L(H),L(Bt),L(Gt),L(at),L(oi,8))};static \u0275dir=it({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Tn(o,oi,5),r&2){let s;Dn(s=On())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[nt]})}return t})();function ra(t){return!!t.paths}var Tt=class{};var na=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(J(e=>e instanceof k),se(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Wt(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,u=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(u,o.children??o._loadedRoutes))}return A(i).pipe(Me())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=f(null);let o=i.pipe(T(s=>s===null?f(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return A([o,s]).pipe(Me())}else return o})}static \u0275fac=function(r){return new(r||t)(m(H),m(st),m(Ae),m(Tt),m(zr))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zi=new b(""),ia=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Se?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof k?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Y&&e.code===St.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ct&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ct(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){yn()};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function cu(t,...n){return $t([{provide:Ze,multi:!0,useValue:t},[],{provide:K,useFactory:Fi,deps:[H]},{provide:Yt,multi:!0,useFactory:Hi},n.map(e=>e.\u0275providers)])}function Fi(t){return t.routerState.root}function ie(t,n){return{\u0275kind:t,\u0275providers:n}}function Hi(){let t=p(Ft);return n=>{let e=t.get(Kt);if(n!==e.components[0])return;let r=t.get(H),i=t.get(Bi);t.get(Br)===1&&r.initialNavigation(),t.get(qi,null,jt.Optional)?.setUpPreloading(),t.get(zi,null,jt.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Bi=new b("",{factory:()=>new G}),Br=new b("",{providedIn:"root",factory:()=>1});function oa(){return ie(2,[{provide:Br,useValue:0},{provide:Qt,multi:!0,deps:[Ft],useFactory:n=>{let e=n.get(_n,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(H),o=n.get(Bi);$i(i,()=>{r(!0)}),n.get(Hr).afterPreactivation=()=>(r(!0),o.closed?f(void 0):o),i.initialNavigation()}))}}])}function sa(){return ie(3,[{provide:Qt,multi:!0,useFactory:()=>{let n=p(H);return()=>{n.setUpLocationChangeListener()}}},{provide:Br,useValue:2}])}var qi=new b("");function aa(t){return ie(0,[{provide:qi,useExisting:na},{provide:Tt,useExisting:t}])}function lu(t){return ie(5,[{provide:be,useValue:t}])}function du(){return ie(6,[{provide:de,useClass:Xt}])}function ua(){return ie(8,[ti,{provide:Dt,useExisting:ti}])}function ca(t){let n=[{provide:_i,useValue:Gs},{provide:Li,useValue:d({skipNextTransition:!!t?.skipInitialTransition},t)}];return ie(9,n)}var si=new b("ROUTER_FORROOT_GUARD"),la=[Ue,{provide:Ye,useClass:ye},H,Xe,{provide:K,useFactory:Fi,deps:[H]},zr,[]],hu=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[la,[],{provide:Ze,multi:!0,useValue:e},{provide:si,useFactory:pa,deps:[[H,new kt,new tn]]},r?.errorHandler?{provide:ji,useValue:r.errorHandler}:[],{provide:be,useValue:r||{}},r?.useHash?ha():fa(),da(),r?.preloadingStrategy?aa(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ga(r):[],r?.bindToComponentInputs?ua().\u0275providers:[],r?.enableViewTransitions?ca().\u0275providers:[],va()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ze,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)(m(si,8))};static \u0275mod=Zt({type:t});static \u0275inj=Lt({})}return t})();function da(){return{provide:zi,useFactory:()=>{let t=p($n),n=p(Q),e=p(be),r=p(Hr),i=p(Ye);return e.scrollOffset&&t.setOffset(e.scrollOffset),new ia(i,r,t,n,e)}}}function ha(){return{provide:de,useClass:Xt}}function fa(){return{provide:de,useClass:Ln}}function pa(t){return"guarded"}function ga(t){return[t.initialNavigation==="disabled"?sa().\u0275providers:[],t.initialNavigation==="enabledBlocking"?oa().\u0275providers:[]]}var ai=new b("");function va(){return[{provide:ai,useFactory:Hi},{provide:Yt,multi:!0,useExisting:ai}]}export{Bn as a,za as b,Fa as c,Yn as d,mo as e,k as f,K as g,Yo as h,H as i,oi as j,uu as k,cu as l,lu as m,du as n,ca as o,hu as p}; diff --git a/chunk-5FZSI2PL.js b/chunk-L2JQY5SP.js similarity index 98% rename from chunk-5FZSI2PL.js rename to chunk-L2JQY5SP.js index 58e12b69..d40e385c 100644 --- a/chunk-5FZSI2PL.js +++ b/chunk-L2JQY5SP.js @@ -1 +1 @@ -import{A as D,a as S,b as P,c as A,d as F,f as o,u as y}from"./chunk-4FWBEGAE.js";import{F as H,O as w,ba as L,c as E}from"./chunk-TEKHUYWQ.js";var s=class extends S{};var i=class extends S{};var c=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.create(e)}};var d=class{photoService;constructor(e){this.photoService=e}execute(e){return this.photoService.create(e)}};var m=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.delete(e)}};var l=class{photoService;constructor(e){this.photoService=e}execute(e){return this.photoService.delete(e)}};var h=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.findOne(e)}};var x=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.find(e)}};var f=class{photoService;constructor(e){this.photoService=e}execute(e){return this.photoService.findOne(e)}};var v=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.find(e)}};var C=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.update(e.id,e)}};var U=class{photoService;constructor(e){this.photoService=e}execute(e){return this.photoService.update(e.id,e)}};var b=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.upload(e)}};var g=class extends D{createAlbumUseCase;findAlbumsUseCase;findAlbumByIdUseCase;updateAlbumUseCase;deleteAlbumUseCase;constructor(e,r,n,p,a){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{title:""}},selected:null}),this.createAlbumUseCase=e,this.findAlbumsUseCase=r,this.findAlbumByIdUseCase=n,this.updateAlbumUseCase=p,this.deleteAlbumUseCase=a}load(){this.onLoad(this.findAlbumsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findAlbumByIdUseCase.execute(e))}create(e){return this.createAlbumUseCase.execute(e)}update(e){let r=this.updateAlbumUseCase.execute(e).pipe(L(()=>this.loadOne(e.id)));return this.onUpdate(r),r}delete(e){this.onDelete(this.deleteAlbumUseCase.execute(e))}};function $(){return F(g,[c,x,h,C,m])}var B=class extends D{createPhotoUseCase;findPhotosUseCase;findPhotoByIdUseCase;updatePhotoUseCase;deletePhotoUseCase;uploadPhotoUseCase;constructor(e,r,n,p,a,u){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{caption:""}},selected:null}),this.createPhotoUseCase=e,this.findPhotosUseCase=r,this.findPhotoByIdUseCase=n,this.updatePhotoUseCase=p,this.deletePhotoUseCase=a,this.uploadPhotoUseCase=u}load(){this.onLoad(this.findPhotosUseCase.execute(this.state.params))}upload(e){return this.uploadPhotoUseCase.execute(e)}loadOne(e){this.onLoadOne(this.findPhotoByIdUseCase.execute(e))}create(e){return this.createPhotoUseCase.execute(e)}update(e){let r=this.updatePhotoUseCase.execute(e);return this.onUpdate(r),this.loadOne(e.id),r}delete(e){return this.deletePhotoUseCase.execute(e)}};function q(){return F(B,[d,v,f,U,l,b])}function z(){return[$(),q()]}var O=class extends y{upload({album:e,photo:r,width:n,height:p,caption:a}){let u=new FormData;u.append("file",r),u.append("album",e),u.append("width",String(n)),u.append("height",String(p)),u.append("caption",a??"");let G=[this.url,e,"upload"];return this.http.post(G.join("/"),u,{reportProgress:!0,observe:"events"})}};function j(){return{provide:s,useFactory(t,e){return new O(t,e,"albums")},deps:[A,P]}}var I=class extends y{upload(n){var p=n,{photo:e}=p,r=E(p,["photo"]);let a=new FormData;return a.set("file",e),this.http.post(this.url,r,{body:a,reportProgress:!0,observe:"events"})}};function R(){return{provide:i,useFactory(t,e){return new I(t,e,"photos")},deps:[A,P]}}function W(){return[j(),R()]}function J(){return o(c,[s])}function K(){return o(x,[s])}function M(){return o(h,[s])}function N(){return o(C,[s])}function Q(){return o(m,[s])}function T(){return o(d,[i])}function V(){return o(v,[i])}function X(){return o(f,[i])}function Y(){return o(U,[i])}function Z(){return o(l,[i])}function _(){return o(b,[s])}function k(){return[J(),K(),M(),N(),Q(),T(),V(),X(),Y(),Z(),_()]}function vt(){return[...W(),...k(),...z()]}var bt=(t,e)=>(t.loadOne(e.id),t.selected$.pipe(w(),H(r=>!!r)));export{g as a,B as b,vt as c,bt as d}; +import{A as D,a as S,b as P,c as A,d as F,f as o,u as y}from"./chunk-XYJHVZQT.js";import{F as H,O as w,ba as L,c as E}from"./chunk-TEKHUYWQ.js";var s=class extends S{};var i=class extends S{};var c=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.create(e)}};var d=class{photoService;constructor(e){this.photoService=e}execute(e){return this.photoService.create(e)}};var m=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.delete(e)}};var l=class{photoService;constructor(e){this.photoService=e}execute(e){return this.photoService.delete(e)}};var h=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.findOne(e)}};var x=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.find(e)}};var f=class{photoService;constructor(e){this.photoService=e}execute(e){return this.photoService.findOne(e)}};var v=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.find(e)}};var C=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.update(e.id,e)}};var U=class{photoService;constructor(e){this.photoService=e}execute(e){return this.photoService.update(e.id,e)}};var b=class{albumService;constructor(e){this.albumService=e}execute(e){return this.albumService.upload(e)}};var g=class extends D{createAlbumUseCase;findAlbumsUseCase;findAlbumByIdUseCase;updateAlbumUseCase;deleteAlbumUseCase;constructor(e,r,n,p,a){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{title:""}},selected:null}),this.createAlbumUseCase=e,this.findAlbumsUseCase=r,this.findAlbumByIdUseCase=n,this.updateAlbumUseCase=p,this.deleteAlbumUseCase=a}load(){this.onLoad(this.findAlbumsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findAlbumByIdUseCase.execute(e))}create(e){return this.createAlbumUseCase.execute(e)}update(e){let r=this.updateAlbumUseCase.execute(e).pipe(L(()=>this.loadOne(e.id)));return this.onUpdate(r),r}delete(e){this.onDelete(this.deleteAlbumUseCase.execute(e))}};function $(){return F(g,[c,x,h,C,m])}var B=class extends D{createPhotoUseCase;findPhotosUseCase;findPhotoByIdUseCase;updatePhotoUseCase;deletePhotoUseCase;uploadPhotoUseCase;constructor(e,r,n,p,a,u){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{caption:""}},selected:null}),this.createPhotoUseCase=e,this.findPhotosUseCase=r,this.findPhotoByIdUseCase=n,this.updatePhotoUseCase=p,this.deletePhotoUseCase=a,this.uploadPhotoUseCase=u}load(){this.onLoad(this.findPhotosUseCase.execute(this.state.params))}upload(e){return this.uploadPhotoUseCase.execute(e)}loadOne(e){this.onLoadOne(this.findPhotoByIdUseCase.execute(e))}create(e){return this.createPhotoUseCase.execute(e)}update(e){let r=this.updatePhotoUseCase.execute(e);return this.onUpdate(r),this.loadOne(e.id),r}delete(e){return this.deletePhotoUseCase.execute(e)}};function q(){return F(B,[d,v,f,U,l,b])}function z(){return[$(),q()]}var O=class extends y{upload({album:e,photo:r,width:n,height:p,caption:a}){let u=new FormData;u.append("file",r),u.append("album",e),u.append("width",String(n)),u.append("height",String(p)),u.append("caption",a??"");let G=[this.url,e,"upload"];return this.http.post(G.join("/"),u,{reportProgress:!0,observe:"events"})}};function j(){return{provide:s,useFactory(t,e){return new O(t,e,"albums")},deps:[A,P]}}var I=class extends y{upload(n){var p=n,{photo:e}=p,r=E(p,["photo"]);let a=new FormData;return a.set("file",e),this.http.post(this.url,r,{body:a,reportProgress:!0,observe:"events"})}};function R(){return{provide:i,useFactory(t,e){return new I(t,e,"photos")},deps:[A,P]}}function W(){return[j(),R()]}function J(){return o(c,[s])}function K(){return o(x,[s])}function M(){return o(h,[s])}function N(){return o(C,[s])}function Q(){return o(m,[s])}function T(){return o(d,[i])}function V(){return o(v,[i])}function X(){return o(f,[i])}function Y(){return o(U,[i])}function Z(){return o(l,[i])}function _(){return o(b,[s])}function k(){return[J(),K(),M(),N(),Q(),T(),V(),X(),Y(),Z(),_()]}function vt(){return[...W(),...k(),...z()]}var bt=(t,e)=>(t.loadOne(e.id),t.selected$.pipe(w(),H(r=>!!r)));export{g as a,B as b,vt as c,bt as d}; diff --git a/chunk-L3M72EYY.js b/chunk-L3M72EYY.js deleted file mode 100644 index a24fe678..00000000 --- a/chunk-L3M72EYY.js +++ /dev/null @@ -1 +0,0 @@ -import{a as je}from"./chunk-VE4FGS76.js";import{d as Ve,e as ze}from"./chunk-LFAX4DK3.js";import{a as Ne,b as $e,c as Ae,e as Ue,f as Be,g as Re}from"./chunk-JX4IWPKV.js";import{c as Oe}from"./chunk-VYHC3V3G.js";import{a as Se,b as we}from"./chunk-3I45H2NO.js";import{a as re}from"./chunk-WVZCQXYK.js";import{a as ye}from"./chunk-A3N3AUUJ.js";import{B as ve,I as Pe}from"./chunk-4FWBEGAE.js";import{b as De,c as Fe,d as be,e as Te,f as L}from"./chunk-HGOTYYGI.js";import{b as ne,i as oe,j as ae}from"./chunk-2K6IALUF.js";import{e as ee,j as te}from"./chunk-KXTQ2UTD.js";import{a as ue,b as ge,e as Ce,f as he,g as _e,h as xe,k as Me,l as y}from"./chunk-PAP2P7QR.js";import{a as V,b as z,c as Ee,d as ke,e as Ie,f as N,g as Le,i as $}from"./chunk-EC6LD5KM.js";import{a as k,c as se,h as le,i as me,j as pe,l as R,m as ce,p as de,s as fe,x as I}from"./chunk-EDIJ2EBQ.js";import{na as ie}from"./chunk-W5KNOAKV.js";import{$b as c,Ha as F,Hc as O,Ia as x,J as j,Jc as h,Kc as _,L as G,Nb as T,Tb as m,Yb as E,_b as J,ac as d,bc as n,cc as o,dc as u,gb as H,hb as q,hc as K,je as Z,ka as D,kc as M,lb as s,mb as W,mc as g,nc as Q,oc as X,ta as S,ua as w,ub as p,wc as Y,xb as b,xc as l,yc as v,zc as C}from"./chunk-TEKHUYWQ.js";var A=(()=>{class e{transform(t){switch(t){case"talk":return"Palestra";case"workshop":return"Workshop";case"webinar":return"Semin\xE1rio online"}}static \u0275fac=function(i){return new(i||e)};static \u0275pipe=b({name:"presentationFormat",type:e,pure:!0})}return e})();var Ke=(e,r)=>r.id,Qe=e=>[e],Xe=e=>({right:e}),Ye=e=>({outlets:e}),Ze=e=>["/","apresentacoes",e];function et(e,r){if(e&1&&(n(0,"a",1),u(1,"devmx-icon",2),n(2,"div",3),l(3),o(),n(4,"div",4),l(5),h(6,"presentationFormat"),o()()),e&2){let t=r.$implicit;m("routerLink",O(11,Ze,O(9,Ye,O(7,Xe,O(5,Qe,t.id))))),s(3),v(t.title),s(2),v(_(6,3,t.format))}}var vt=(()=>{class e{data=x([]);static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-presentation-card-list"]],inputs:{data:[1,"data"]},decls:7,vars:0,consts:[[1,"presentations-card"],["mat-list-item","",3,"routerLink"],["matListItemIcon","","name","presentation"],["matListItemTitle",""],["matListItemLine",""]],template:function(i,a){i&1&&(n(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),l(3,"Apresenta\xE7\xF5es"),o()(),n(4,"mat-list"),c(5,et,7,13,"a",1,Ke),o()()),i&2&&(s(5),d(a.data()))},dependencies:[$,V,N,z,y,he,_e,Ce,ge,ue,k,A,te],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] a[_ngcontent-%COMP%]:link{cursor:pointer}"],changeDetection:0})}return e})();var it=(e,r)=>r.value;function nt(e,r){if(e&1&&(n(0,"mat-chip-option",1),l(1),o()),e&2){let t=r.$implicit;m("value",t.value),s(),C(" ",t.viewValue," ")}}var Dt=(()=>{class e{filterChange=F();formats=[{value:"talk",viewValue:"Palestra"},{value:"workshop",viewValue:"Oficina"},{value:"webinar",viewValue:"Semin\xE1rio"}];static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-presentation-filter"]],outputs:{filterChange:"filterChange"},decls:3,vars:0,consts:[[3,"change"],[3,"value"]],template:function(i,a){i&1&&(n(0,"mat-chip-listbox",0),M("change",function(qe){return a.filterChange.emit(qe.value)}),c(1,nt,2,2,"mat-chip-option",1,it),o()),i&2&&(s(),d(a.formats))},dependencies:[L,Te,Fe],encapsulation:2,changeDetection:0})}return e})();var U=class extends pe{formats=[{value:"talk",viewValue:"Palestra"},{value:"workshop",viewValue:"Oficina"},{value:"webinar",viewValue:"Semin\xE1rio online"}];constructor(){super({title:new R("",{nonNullable:!0}),format:new R("talk",{nonNullable:!0})})}};var ot=(e,r)=>r.value;function at(e,r){if(e&1&&(n(0,"mat-option",3),l(1),o()),e&2){let t=r.$implicit;m("value",t.value),s(),C(" ",t.viewValue," ")}}var qt=(()=>{class e{form=new U;valueChange=F();constructor(){this.form.valueChanges.pipe(ye(),j(300)).subscribe(()=>{let t=this.form.getRawValue();this.valueChange.emit(t)})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-presentation-search"]],outputs:{valueChange:"valueChange"},decls:11,vars:1,consts:[[3,"formGroup"],["matInput","","formControlName","title"],["formControlName","format"],[3,"value"]],template:function(i,a){i&1&&(n(0,"form",0)(1,"mat-form-field")(2,"mat-label"),l(3,"T\xEDtulo"),o(),u(4,"input",1),o(),n(5,"mat-form-field")(6,"mat-label"),l(7,"Formato"),o(),n(8,"mat-select",2),c(9,at,2,2,"mat-option",3,ot),o()()()),i&2&&(m("formGroup",a.form),s(9),d(a.form.formats))},dependencies:[I,ce,se,le,me,de,fe,ae,oe,ne,we,Se,ie,ze,Ve],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:row}"],changeDetection:0})}return e})();var Ge=(()=>{class e{sanitizer;constructor(t){this.sanitizer=t}transform(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)}static \u0275fac=function(i){return new(i||e)(W(ee,16))};static \u0275pipe=b({name:"safeUrl",type:e,pure:!0})}return e})();var ei=(()=>{class e{data=x.required();get presentation(){return this.data()}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-presentation-embed"]],inputs:{data:[1,"data"]},decls:2,vars:4,consts:[["scrolling","no","frameborder","0","webkitallowfullscreen","","mozallowfullscreen","","allowfullscreen","",3,"src","title"]],template:function(i,a){i&1&&(u(0,"iframe",0),h(1,"safeUrl")),i&2&&m("src",_(1,2,a.presentation.link+"/embed?style=light"),q)("title",a.presentation.title)},dependencies:[Ge],styles:["[_nghost-%COMP%]{position:relative;width:100%;padding-top:56.25%;overflow:hidden}[_nghost-%COMP%] iframe[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;border:0;aspect-ratio:16/9;padding-top:0}"],changeDetection:0})}return e})();var rt=["*"];function st(e,r){if(e&1&&u(0,"img",1),e&2){let t=g();m("src",t.presentation.cover,H)("alt",t.presentation.title)}}function lt(e,r){if(e&1&&(n(0,"mat-chip"),l(1),o()),e&2){let t=r.$implicit;s(),C(" ",t," ")}}var pi=(()=>{class e{data=x.required();discrete=x(!1);get presentation(){return this.data()}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-presentation-card"]],inputs:{data:[1,"data"],discrete:[1,"discrete"]},ngContentSelectors:rt,decls:19,vars:7,consts:[[1,"presentation-card"],["mat-card-image","",3,"src","alt"],[1,"presentation-card-content"],["aria-label","Hashtags"],[1,"presentation-card-header"],["name","user-circle",3,"size"],["align","end",1,"presentation-card-actions"]],template:function(i,a){i&1&&(Q(),n(0,"mat-card",0),T(1,st,1,2,"img",1),n(2,"mat-card-header")(3,"mat-card-title"),l(4),o(),n(5,"mat-card-subtitle"),l(6),h(7,"presentationFormat"),o()(),n(8,"mat-card-content",2)(9,"mat-chip-set",3),c(10,lt,2,1,"mat-chip",null,J),o()(),n(12,"mat-card-header",4)(13,"mat-card-subtitle"),u(14,"devmx-icon",5),n(15,"span"),l(16),o()()(),n(17,"mat-card-actions",6),X(18),o()()),i&2&&(s(),E(a.presentation.cover?1:-1),s(3),v(a.presentation.title),s(2),v(_(7,5,a.presentation.format)),s(4),d(a.presentation.tags),s(4),m("size",18),s(2),v(a.presentation.owner.displayName))},dependencies:[$,V,Ie,Ee,N,Le,ke,z,y,k,L,De,be,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;flex:1}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;max-width:calc(33vw - 1em)}@media (max-width: 1278px){[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]{max-width:calc(50vw - 2em)}}@media (max-width: 767px){[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]{max-width:calc(100vw - 3em)}}[_nghost-%COMP%] .presentation-card-header[_ngcontent-%COMP%]{padding-bottom:1em}[_nghost-%COMP%] .presentation-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{gap:.4em;display:flex;line-height:1;align-items:center}[_nghost-%COMP%] .presentation-card-content[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]:active, [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]:hover{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}[_nghost-%COMP%] .presentation-card-content[_ngcontent-%COMP%]{padding:1em}[_nghost-%COMP%] .presentation-card-content[_ngcontent-%COMP%]:empty{display:none}[_nghost-%COMP%] .presentation-card-actions[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})}return e})();var mt=(e,r)=>r.id;function pt(e,r){if(e&1&&(n(0,"mat-list-option",5),l(1),o()),e&2){let t=r.$implicit;m("value",t),s(),C(" ",t.title," ")}}function ct(e,r){if(e&1){let t=K();n(0,"mat-dialog-content",2)(1,"devmx-search-field",3),M("searchChange",function(a){S(t);let f=g();return w(f.onSearchChange(a))}),o(),n(2,"mat-selection-list",4,0),c(4,pt,2,2,"mat-list-option",5,mt),o(),n(6,"devmx-paginator",6),M("pageChange",function(a){S(t);let f=g();return w(f.onPageChange(a))}),o()(),n(7,"mat-dialog-actions",7)(8,"button",8),M("click",function(){S(t);let a=Y(3),f=g();return w(f.close(a.selectedOptions.selected))}),l(9," Selecionar "),o(),n(10,"button",9),M("click",function(){S(t);let a=g();return w(a.ref.close())}),l(11,"Cancelar"),o()()}if(e&2){let t=r,i=g();s(2),m("multiple",i.data.multiple),s(2),d(t.data),s(2),m("items",t.items)}}var He=(()=>{class e{presentationFacade=D(re);ref=D(Ne);data=D($e);search="";constructor(){this.load()}onSearchChange(t){this.search=t,this.load()}onPageChange({page:t,size:i}){this.presentationFacade.setParams({page:t,size:i}),this.load()}load(){let t={title:this.search};this.presentationFacade.setFilter(t),this.presentationFacade.load()}close(t){this.data.multiple?this.ref.close(t.map(i=>i.value)):this.ref.close(t[0].value)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=p({type:e,selectors:[["devmx-select-presentation"]],decls:4,vars:3,consts:[["presentation",""],["mat-dialog-title",""],[1,"dialog-content"],[3,"searchChange"],[1,"presentations",3,"multiple"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(i,a){if(i&1&&(n(0,"h2",1),l(1,"Encontre uma conta"),o(),T(2,ct,12,2),h(3,"async")),i&2){let f;s(2),E((f=_(3,1,a.presentationFacade.response$))?2:-1,f)}},dependencies:[I,Oe,je,Ue,Be,Re,Pe,ve,y,Me,xe,Z],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .presentations[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return e})();var B=class{dialog;constructor(r){this.dialog=r}open(r={}){return this.dialog.open(He,{data:r}).afterClosed().pipe(G(1))}};function Ti(){return{provide:B,deps:[Ae]}}export{A as a,vt as b,Dt as c,U as d,qt as e,ei as f,pi as g,He as h,B as i,Ti as j}; diff --git a/chunk-M5BYPXOP.js b/chunk-M5BYPXOP.js new file mode 100644 index 00000000..7c3f838d --- /dev/null +++ b/chunk-M5BYPXOP.js @@ -0,0 +1 @@ +import{b as Le,c as Be,d as ke,e as Se,g as Te}from"./chunk-ZQOXWN4S.js";import{a as Oe,b as Ne}from"./chunk-WKFJTKSD.js";import{a as we,b as Ee}from"./chunk-MLNPCJDD.js";import{a as $,b as A}from"./chunk-UOTKRQ63.js";import{a as Ie,b as $e,c as Ae,d as Re}from"./chunk-ZTWYID37.js";import{a as Fe}from"./chunk-A3N3AUUJ.js";import{f as me,h as ce,i as pe,j as O,k as ge,p as ue,r as De,v as ze,x as N}from"./chunk-6BGAZ7SQ.js";import{c as xe,e as Ce,g as Me,j as Pe,l as R}from"./chunk-PAP2P7QR.js";import{a as y}from"./chunk-EDIJ2EBQ.js";import{B as _e,H as be,K as ve,S as he,T as ye,Y as G,q as H,r as fe}from"./chunk-W5KNOAKV.js";import{$b as z,Ba as X,F as U,Fa as J,Fc as oe,Hc as re,Ia as K,Ja as Q,Jc as c,Kc as p,Mb as ie,Nb as u,Pa as W,Sc as se,Tb as g,Vb as S,Vc as I,Y as Z,Yb as f,Yd as le,ac as L,bc as o,cc as s,dc as d,ed as de,fa as Y,hc as ae,je as P,k as q,ka as l,kc as T,lb as r,mc as B,nc as x,oc as C,sb as ee,ta as E,ua as D,ub as b,vb as te,wb as ne,wc as M,xc as v,yc as h,zc as F}from"./chunk-TEKHUYWQ.js";var Xe=["*"];function Je(e,a){e&1&&(o(0,"p",1),d(1,"devmx-icon",6),o(2,"span"),v(3),s()()),e&2&&(r(3),h(a.displayName))}var je=(()=>{class e{toolbar=l(Oe);year=new Date().getFullYear();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=b({type:e,selectors:[["devmx-layout-toolbar"]],ngContentSelectors:Xe,decls:11,vars:4,consts:[[1,"layout-toolbar"],[1,"layout-toolbar-account"],[1,"spacer"],[1,"devpr"],["target","_blank","href","//devpr.org",1,"devpr-link"],["src","devpr.svg","alt","Comunidade DevParan\xE1"],["name","user-circle"]],template:function(n,i){if(n&1&&(x(),o(0,"mat-toolbar",0)(1,"div"),C(2),u(3,Je,4,1,"p",1),c(4,"async"),s(),d(5,"span",2),o(6,"div")(7,"p",3),v(8),s(),o(9,"a",4),d(10,"img",5),s()()()),n&2){let m;r(3),f((m=p(4,2,i.toolbar.auth.auth$))?3:-1,m),r(5),F("DevParan\xE1 \xA9 ",i.year,"")}},dependencies:[A,$,y,R,P],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .layout-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] .layout-toolbar-account[_ngcontent-%COMP%]{display:inline-flex;align-items:center;font-size:.8em;gap:.6em;padding:0;margin:0}[_nghost-%COMP%] .layout-toolbar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{gap:.5em;display:flex;align-items:center}[_nghost-%COMP%] .devpr[_ngcontent-%COMP%]{display:flex;gap:1em;font-size:.68em;margin:0;opacity:.6}[_nghost-%COMP%] .devpr-link[_ngcontent-%COMP%]{height:100%;display:inline-flex;align-items:center;margin-left:.4em;margin-right:.4em}[_nghost-%COMP%] .devpr-link[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:32px}@media (max-width: 767px){[_nghost-%COMP%] .devpr[_ngcontent-%COMP%]{display:none}}"],changeDetection:0})}return e})();var w=class{router;#e=new q([]);breadcrumbs$=this.#e.asObservable();constructor(a){this.router=a,this.router.events.pipe(U(t=>t instanceof me)).subscribe(()=>{let{root:t}=this.router.routerState.snapshot,n=[];this.#t([],n,t),this.#e.next(n)})}#t(a,t,n){if(n){let i=a.concat(n.url.map(m=>m.path));if("breadcrumb"in n.data){let m=n.data.breadcrumb,_=typeof n.data.breadcrumb=="function"?m(n.data):m;if(t.every(V=>V.text!==_)){let V="/"+i.join("/");t.push({path:V,text:_})}}this.#t(i,t,n.firstChild)}}};var Qe=(e,a)=>a.path;function We(e,a){e&1&&d(0,"devmx-icon",1),e&2&&g("size",16)}function et(e,a){if(e&1&&(o(0,"li")(1,"a",0),v(2),s(),u(3,We,1,1,"devmx-icon",1),s()),e&2){let t=a.$implicit,n=a.$index,i=a.$count;r(),g("routerLink",t.path),r(),h(t.text),r(),f(n!==i-1?3:-1)}}var Ve=(()=>{class e{crumbsService=l(w);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=b({type:e,selectors:[["devmx-crumbs"]],decls:4,vars:2,consts:[["mat-button","",1,"crumb",3,"routerLink"],["name","arrow/chevron-right",3,"size"]],template:function(n,i){n&1&&(o(0,"ul"),z(1,et,4,3,"li",null,Qe),c(3,"async"),s()),n&2&&(r(),L(p(3,0,i.crumbsService.breadcrumbs$)))},dependencies:[O,N,De,y,P],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none;display:flex;flex-direction:row}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:0}[_nghost-%COMP%] .crumb-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4em} .crumb{display:inline-flex;justify-content:flex-start} .crumb .mdc-button__label{overflow:hidden;max-width:120px;text-overflow:ellipsis;width:fit-content;white-space:nowrap}"]})}return e})();function He(){return{provide:w,deps:[pe]}}var tt=["*"],Ge=(()=>{class e{title=K("devparana . mx");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=b({type:e,selectors:[["devmx-layout-navbar"]],inputs:{title:[1,"title"]},features:[oe([He()])],ngContentSelectors:tt,decls:11,vars:1,consts:[[1,"layout-navbar"],["routerLink","/",1,"app-logo"],["src","devmx.svg","height","48","alt","DevMX"],[1,"app-title"],[1,"app-crumbs"],[1,"spacer"],["target","_blank","rel","noreferrer","title","Github","href","https://github.com/DeveloperParana/devmx"],["name","github"]],template:function(n,i){n&1&&(x(),o(0,"mat-toolbar",0)(1,"div"),C(2),s(),o(3,"a",1),d(4,"img",2),s(),o(5,"h1",3),v(6),s(),d(7,"devmx-crumbs",4)(8,"span",5),o(9,"a",6),d(10,"devmx-icon",7),s()()),n&2&&(r(6),h(i.title()))},dependencies:[A,$,Ve,y,O],styles:["[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .layout-navbar[_ngcontent-%COMP%]{display:flex;gap:.4em}[_nghost-%COMP%] .layout-navbar-toggle-menu.cdk-focused[_ngcontent-%COMP%] devmx-icon[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_rotate-center .8s cubic-bezier(.175,.885,.32,1.275) both}[_nghost-%COMP%] .app-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:48px}[_nghost-%COMP%] .app-title[_ngcontent-%COMP%]{font-size:.9em;font-weight:500;opacity:.3;margin:0}@media (max-width: 767px){[_nghost-%COMP%] .app-crumbs[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1 1 auto}@keyframes _ngcontent-%COMP%_rotate-center{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"],changeDetection:0})}return e})();var qe="mat-badge-content",nt=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=b({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,i){},styles:[".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}"],encapsulation:2,changeDetection:0})}return e})(),Ue=(()=>{class e{_ngZone=l(J);_elementRef=l(Q);_ariaDescriber=l(be);_renderer=l(ee);_animationMode=l(W,{optional:!0});_idGenerator=l(ye);get color(){return this._color}set color(t){this._setColor(t),this._color=t}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(t){this._updateRenderedContent(t)}_content;get description(){return this._description}set description(t){this._updateDescription(t)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=l(ve);_document=l(de);constructor(){l(H).load(nt),l(H).load(fe)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let t=this._renderer.createElement("span"),n="mat-badge-active";return t.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),t.setAttribute("aria-hidden","true"),t.classList.add(qe),this._animationMode==="NoopAnimations"&&t.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(t),typeof requestAnimationFrame=="function"&&this._animationMode!=="NoopAnimations"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add(n)})}):t.classList.add(n),t}_updateRenderedContent(t){let n=`${t??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!t||this._isHostInteractive())&&this._removeInlineDescription(),this._description=t,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,t):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(t){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),t&&n.add(`mat-badge-${t}`)}_clearExistingBadges(){let t=this._elementRef.nativeElement.querySelectorAll(`:scope > .${qe}`);for(let n of Array.from(t))n!==this._badgeElement&&n.remove()}static \u0275fac=function(n){return new(n||e)};static \u0275dir=ne({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,i){n&2&&S("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small",i.size==="small")("mat-badge-medium",i.size==="medium")("mat-badge-large",i.size==="large")("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",I],disabled:[2,"matBadgeDisabled","disabled",I],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",I]},features:[ie]})}return e})(),Ze=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=te({type:e});static \u0275inj=Y({imports:[he,G,G]})}return e})();var at=[[["mat-toolbar"]]],ot=["mat-toolbar"],rt=(e,a)=>a.label,st=(e,a)=>a.route,dt=e=>({disabled:e});function lt(e,a){e&1&&d(0,"devmx-icon",4)}function mt(e,a){e&1&&d(0,"devmx-icon",5)}function ct(e,a){if(e&1&&d(0,"devmx-icon",16),e&2){let t=B().$implicit;g("name",t.icon)}}function pt(e,a){if(e&1&&d(0,"devmx-icon",16),e&2){let t=B(2).$implicit;g("name",t.icon)}}function gt(e,a){if(e&1&&d(0,"devmx-icon",20),e&2){let t=B(2).$implicit;g("name",t.lock)}}function ut(e,a){if(e&1&&(o(0,"a",18),u(1,pt,1,1,"devmx-icon",16),o(2,"span",19),c(3,"async"),v(4),s(),u(5,gt,1,1,"devmx-icon",20),s()),e&2){let t=B().$implicit;g("routerLink",t.route)("disabled",t.disabled)("tabindex",t.disabled?-1:0)("ngClass",re(10,dt,t.disabled)),r(),f(t.icon?1:-1),r(),g("matBadge",p(3,8,t.badge)),r(2),F(" ",t.label," "),r(),f(t.showLock?5:-1)}}function ft(e,a){if(e&1&&u(0,ut,6,12,"a",18),e&2){let t=a.$implicit;f(t.disabled?-1:0)}}function _t(e,a){if(e&1&&(o(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),v(3),s(),o(4,"mat-panel-description"),u(5,ct,1,1,"devmx-icon",16),s()(),o(6,"mat-nav-list",17),z(7,ft,1,1,null,null,st),s()()),e&2){let t=a.$implicit;g("expanded",t.expanded),r(3),h(t.label),r(2),f(t.icon?5:-1),r(2),L(t.links)}}function bt(e,a){e&1&&d(0,"mat-progress-bar",11)}function vt(e,a){e&1&&d(0,"devmx-icon",4)}function ht(e,a){e&1&&d(0,"devmx-icon",5)}var kn=(()=>{class e{destroyRef=l(X);layoutFacade;constructor(){let t=l(se);this.layoutFacade=l(Ne),this.layoutFacade.mobile$.pipe(Fe(),Z(1)).subscribe(()=>t.detectChanges()),this.destroyRef.onDestroy(()=>{this.layoutFacade.destroyListener()})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=b({type:e,selectors:[["devmx-layout"]],ngContentSelectors:ot,decls:33,vars:29,consts:[["snav",""],["enav",""],[1,"layout-container"],["mat-icon-button","",1,"layout-container-toggle-menu",3,"click"],["name","menu/hide"],["name","menu/show"],[1,"layout-sidenav-container",3,"hasBackdrop"],["fixedTopGap","52",1,"layout-sidenav-start",3,"mode","fixedInViewport","opened"],[3,"expanded"],[1,"layout-content"],[1,"layout-progress"],["mode","indeterminate"],[1,"layout-main-wrapper"],[1,"layout-main"],["mode","over","fixedTopGap","56","position","end",1,"layout-sidenav-end",3,"fixedInViewport","opened"],["name","right",3,"activate","deactivate"],["matListItemIcon","",3,"name"],[1,"layout-nav-list"],["mat-list-item","","routerLinkActive","active",3,"routerLink","disabled","tabindex","ngClass"],["matBadgeDescription","before",3,"matBadge"],["matListItemMeta","",3,"name"]],template:function(n,i){if(n&1){let m=ae();x(at),o(0,"div",2),c(1,"async"),o(2,"devmx-layout-navbar")(3,"button",3),T("click",function(){E(m);let _=M(9);return D(_.toggle())}),u(4,lt,1,0,"devmx-icon",4)(5,mt,1,0,"devmx-icon",5),s()(),o(6,"mat-sidenav-container",6),c(7,"async"),o(8,"mat-sidenav",7,0),c(10,"async"),c(11,"async"),c(12,"async"),z(13,_t,9,3,"mat-expansion-panel",8,rt),c(15,"async"),s(),o(16,"mat-sidenav-content",9)(17,"div",10),u(18,bt,1,0,"mat-progress-bar",11),c(19,"async"),s(),C(20),o(21,"div",12)(22,"main",13),d(23,"router-outlet"),s()()(),o(24,"mat-sidenav",14,1),c(26,"async"),c(27,"async"),o(28,"router-outlet",15),T("activate",function(){E(m);let _=M(25);return D(_.open())})("deactivate",function(){E(m);let _=M(25);return D(_.close())}),s()()(),o(29,"devmx-layout-toolbar")(30,"button",3),T("click",function(){E(m);let _=M(9);return D(_.toggle())}),u(31,vt,1,0,"devmx-icon",4)(32,ht,1,0,"devmx-icon",5),s()()()}if(n&2){let m=M(9);S("layout-is-mobile",p(1,11,i.layoutFacade.mobile$)),r(4),f(m.opened?4:5),r(2),g("hasBackdrop",p(7,13,i.layoutFacade.mobile$)),r(2),g("mode",p(10,15,i.layoutFacade.mobile$)?"over":"side")("fixedInViewport",p(11,17,i.layoutFacade.mobile$))("opened",p(12,19,i.layoutFacade.sidenavStart$)),r(5),L(p(15,21,i.layoutFacade.sections$)),r(5),f(p(19,23,i.layoutFacade.loader$)?18:-1),r(6),g("fixedInViewport",p(26,25,i.layoutFacade.mobile$))("opened",p(27,27,i.layoutFacade.sidenavEnd$)),r(7),f(m.opened?31:32)}},dependencies:[le,P,_e,ue,ce,O,ge,R,Pe,Me,Ce,xe,y,Ze,Ue,N,ze,Re,$e,Ae,Ie,Te,Le,Be,Se,ke,Ee,we,je,Ge],styles:['[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:absolute;inset:0}[_nghost-%COMP%] .layout-container-toggle-menu.cdk-focused[_ngcontent-%COMP%] devmx-icon[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_rotate-center .8s cubic-bezier(.175,.885,.32,1.275) both}[_nghost-%COMP%] h1.layout-app-name[_ngcontent-%COMP%]{margin-left:8px}[_nghost-%COMP%] .layout-sidenav-container[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]) .mat-expansion-panel-body{padding:0}[_nghost-%COMP%] .space-between[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:space-between}[_nghost-%COMP%] .layout-nav-list[_ngcontent-%COMP%]{gap:.4em;display:flex;flex-direction:column}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;padding-right:16px}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%] .layout-content-toolbar[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%] .layout-progress[_ngcontent-%COMP%]{padding:0 8px;max-height:2px;min-height:2px;overflow:hidden;position:relative}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%] .layout-progress[_ngcontent-%COMP%]:after{inset:0;height:2px;content:" ";position:absolute;background-size:100%;background:#fefdfd;background-position:center center;background:linear-gradient(90deg,#fefdfd,#fefdfd00 25% 75%,#fefdfd)}[_nghost-%COMP%] .layout-main-wrapper[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;max-height:calc(100dvh - 128px);overflow:auto;border-radius:16px;box-sizing:border-box}[_nghost-%COMP%] .layout-main[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow-y:auto;box-sizing:border-box}@media (pointer: fine){[_nghost-%COMP%] .layout-main[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:8px}[_nghost-%COMP%] .layout-main[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:4px}}@media (max-width: 959.98px){[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%]{padding-right:8px;padding-left:8px}[_nghost-%COMP%] .layout-main-wrapper[_ngcontent-%COMP%]{height:calc(100dvh - 128px)}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%]{overflow-y:visible;padding:8px}}[_nghost-%COMP%] .layout-sidenav-start[_ngcontent-%COMP%]{width:16em;min-width:12em;padding-left:.4em}[_nghost-%COMP%] .layout-sidenav-start[_ngcontent-%COMP%] .mat-mdc-subheader[_ngcontent-%COMP%]{font-size:1.2em;margin:0 .6em;opacity:.8}[_nghost-%COMP%] .layout-sidenav-end[_ngcontent-%COMP%]{width:48vw;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;max-height:calc(100dvh - 128px)}[_nghost-%COMP%] .layout-sidenav-end[_ngcontent-%COMP%]:active, [_nghost-%COMP%] .layout-sidenav-end[_ngcontent-%COMP%]:hover{box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}[_nghost-%COMP%] .layout-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;padding:0 .4em}[_nghost-%COMP%] .layout-is-mobile[_ngcontent-%COMP%] .layout-toolbar[_ngcontent-%COMP%]{position:fixed;z-index:2}[_nghost-%COMP%] .layout-is-mobile[_ngcontent-%COMP%] .layout-sidenav-container[_ngcontent-%COMP%]{flex:1 0 auto}[_nghost-%COMP%] .layout-is-mobile[_ngcontent-%COMP%] .layout-sidenav-start[_ngcontent-%COMP%]{max-height:calc(100dvh - 108px);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .layout-is-mobile[_ngcontent-%COMP%] .layout-sidenav-end[_ngcontent-%COMP%]{width:98vw;max-height:calc(100dvh - 114px)}@keyframes _ngcontent-%COMP%_rotate-center{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0})}return e})();export{kn as a}; diff --git a/chunk-MAALDF7A.js b/chunk-MEIYYXQK.js similarity index 88% rename from chunk-MAALDF7A.js rename to chunk-MEIYYXQK.js index 15f777e8..f0ffa741 100644 --- a/chunk-MAALDF7A.js +++ b/chunk-MEIYYXQK.js @@ -1 +1 @@ -import{a as o}from"./chunk-2IAXMR6M.js";import{e as n}from"./chunk-KXTQ2UTD.js";import{mb as a,xb as i}from"./chunk-TEKHUYWQ.js";var s=(()=>{class r{transform(t){return o(t??"",{gfm:!0,async:!1})}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=i({name:"markdown",type:r,pure:!0})}return r})();var u=(()=>{class r{sanitizer;constructor(t){this.sanitizer=t}transform(t){return this.sanitizer.bypassSecurityTrustHtml(t)}static \u0275fac=function(e){return new(e||r)(a(n,16))};static \u0275pipe=i({name:"html",type:r,pure:!0})}return r})();export{s as a,u as b}; +import{a as o}from"./chunk-2IAXMR6M.js";import{e as n}from"./chunk-6BGAZ7SQ.js";import{mb as a,xb as i}from"./chunk-TEKHUYWQ.js";var s=(()=>{class r{transform(t){return o(t??"",{gfm:!0,async:!1})}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=i({name:"markdown",type:r,pure:!0})}return r})();var u=(()=>{class r{sanitizer;constructor(t){this.sanitizer=t}transform(t){return this.sanitizer.bypassSecurityTrustHtml(t)}static \u0275fac=function(e){return new(e||r)(a(n,16))};static \u0275pipe=i({name:"html",type:r,pure:!0})}return r})();export{s as a,u as b}; diff --git a/chunk-RN3MKDGP.js b/chunk-MYMD7E64.js similarity index 95% rename from chunk-RN3MKDGP.js rename to chunk-MYMD7E64.js index fd02667f..a3644515 100644 --- a/chunk-RN3MKDGP.js +++ b/chunk-MYMD7E64.js @@ -1,7 +1,7 @@ -import{a as fn}from"./chunk-HTP655AM.js";import{i as hn,j as _n}from"./chunk-L3M72EYY.js";import{a as Ii,b as Li,c as qi,d as Ui,e as zi,f as Qi}from"./chunk-JCCZXGKN.js";import{a as Fe,b as tn}from"./chunk-CXAKQAL3.js";import"./chunk-AFH22WZE.js";import{a as nn,b as on,c as an,d as rn,e as sn,f as ln,g as mn,h as cn,i as pn,j as dn,k as un}from"./chunk-HPJEYRZM.js";import{a as Je,b as ji}from"./chunk-YJNMZPRM.js";import{a as en}from"./chunk-VE4FGS76.js";import{c as Vi,d as xe,e as Me}from"./chunk-LFAX4DK3.js";import{a as Bi}from"./chunk-AD4TXQD3.js";import{a as Yi,b as Ki,c as Wi,d as Xi,e as Zi,g as Ji}from"./chunk-JX4IWPKV.js";import{c as $i,d as Hi,e as Gi}from"./chunk-XC6WES62.js";import{a as bi}from"./chunk-HYAMKYUE.js";import{a as Ti}from"./chunk-ZHS65JNW.js";import{a as Si,b as wi,c as Xe}from"./chunk-VYHC3V3G.js";import{a as yi,b as Ei}from"./chunk-3I45H2NO.js";import{e as Mi}from"./chunk-R66KDUEB.js";import"./chunk-WVZCQXYK.js";import{d as Ri}from"./chunk-2E7FYHXW.js";import{b as _i}from"./chunk-BJXILAOS.js";import{a as Ai}from"./chunk-AC7KYN3P.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import{a as gi,b as Ci,c as X,d as We,g as xi}from"./chunk-NWAJWWA3.js";import"./chunk-XIUDFJWJ.js";import{a as Fi}from"./chunk-TZR6QHL3.js";import{a as W}from"./chunk-A3N3AUUJ.js";import{B as Ce,F as fi,G as L,H as hi,I as w,M as vi,h as si,r as Ue,s as li}from"./chunk-4FWBEGAE.js";import{f as Ni}from"./chunk-RUSPURVH.js";import"./chunk-HGOTYYGI.js";import{b as ce,c as ai,e as qe,g as ri,i as pe,j as de}from"./chunk-2K6IALUF.js";import{g as se,h as Kt,i as le,j as lt,p as Ge}from"./chunk-KXTQ2UTD.js";import{c as Wt,d as je,e as Xt,g as Pe,h as Zt,j as mt}from"./chunk-I7VYXJU2.js";import{a as ue,c as fe,e as Ke,f as he,g as _e,i as ve,l as ge}from"./chunk-PAP2P7QR.js";import{a as Di,b as ki,e as Pi,f as Oi,i as Ze}from"./chunk-EC6LD5KM.js";import{a as R,b as mi,c as Q,d as ci,e as C,f as S,g as pi,h as Y,i as I,j as G,l as _,m as ze,n as di,p as A,r as Qe,s as K,t as ui,w as Ye,x as P}from"./chunk-EDIJ2EBQ.js";import{$ as pt,I as ei,T as ti,U as ii,_ as Oe,aa as ni,ka as oi,na as me,o as Jt,s as ct}from"./chunk-W5KNOAKV.js";import{$b as T,Aa as Dt,Ba as kt,Eb as It,Ec as Ne,F as bt,Fb as ae,Fc as V,Gb as re,Ha as U,Hb as At,Hc as qt,Ia as g,J as yt,Ja as Ee,Jb as Lt,Jc as z,Kb as Nt,Kc as Be,L as B,Lc as $e,Nb as x,Nc as Ut,Ob as Bt,Pb as $t,Sb as we,Sc as zt,Tb as u,Va as Pt,Vc as Te,Xc as De,Y as oe,Yb as O,Yc as He,Zc as ke,a as Ct,ac as D,b as xt,bc as s,cc as r,d as Mt,dc as p,ec as $,ed as Qt,fa as Et,fc as H,gb as Ot,ha as St,hc as k,ic as Ht,jb as Se,je as Yt,ka as m,kc as f,lb as c,mb as Ie,mc as M,nc as Gt,oc as jt,sb as Ft,t as ne,ta as y,u as Re,ua as E,ub as h,uc as te,va as wt,vb as Vt,vc as Ae,wb as Rt,wc as Le,xc as d,yc as q,za as Tt,zc as F}from"./chunk-TEKHUYWQ.js";var vn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-event-feature-admin"]],decls:1,vars:0,template:function(t,n){t&1&&p(0,"router-outlet")},dependencies:[Kt],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return i})();var et=class extends G{constructor(){super({src:new _("",{nonNullable:!0}),alt:new _("",{nonNullable:!0})})}};var Un=["box"],zn=["overlay"],Qn=["image"],tt=i=>`${i}px`,gn=(()=>{class i{src=g("");aspectRatio=g(16/9);width=g(null);height=g(null);cropChange=U();boxRef=re("box");get box(){let e=this.boxRef();if(!e)throw"box error";return e.nativeElement}overlayRef=re("overlay");get overlay(){let e=this.overlayRef();if(!e)throw"overlay error";return e.nativeElement}imageRef=re("image");get image(){let e=this.imageRef();if(!e)throw"error";return e.nativeElement}#e=null;#t=null;loaded=!1;ngOnInit(){let e=this.src();this.image.onload=()=>{this.loaded=!0,this.setInitialPosition()},this.box.addEventListener("touchstart",this.startUpdate.bind(this),{passive:!0}),this.image.src=e}setInitialPosition(){let{clientWidth:e,clientHeight:t}=this.image,n=this.width()??Math.round(e/2),a=this.height()??n;this.aspectRatio&&(a=Math.round(n/this.aspectRatio()));let l=(e-n)/2,v=(t-a)/2;this.#e=new Ue(l,v),this.updateDimensions(n,a)}updateDimensions(e,t,n=!0){if(!this.#e)return;let{offsetLeft:a,offsetTop:l}=this.box,{clientWidth:v,clientHeight:b}=this.image,j=Math.min(e,v-this.#e.x),be=Math.min(t,b-this.#e.y),J=n?Math.round(Math.max(0,this.#e.x)):a,ee=n?Math.round(Math.max(0,this.#e.y)):l;this.box.style.left=tt(J),this.box.style.top=tt(ee),this.box.style.width=tt(j),this.box.style.height=tt(be),this.updateOverlay(J,ee,j,be);let ye=new DOMRect(J,ee,j,be);this.fireChangeEvent(ye)}updateOverlay(e,t,n,a){this.overlay.style.clipPath=`polygon( +import{a as fn}from"./chunk-4Z5R5VSG.js";import{i as hn,j as _n}from"./chunk-F2BR4OZZ.js";import{a as Ii,b as Li}from"./chunk-VHE4TYFV.js";import{a as Fe,b as tn}from"./chunk-JMI5D6U5.js";import"./chunk-AFH22WZE.js";import{a as nn,b as on,c as an,d as rn,e as sn,f as ln,g as mn,h as cn,i as pn,j as dn,k as un}from"./chunk-FROUXDRM.js";import{a as Je,b as Qi}from"./chunk-4JU575PW.js";import{a as en}from"./chunk-56M6HFOE.js";import{a as ji}from"./chunk-Q33OVU5J.js";import{a as Yi,b as Ki,c as Wi,d as Xi,e as Zi,g as Ji}from"./chunk-73QBZNVE.js";import{c as qi,d as Ui,e as zi}from"./chunk-Q2N7RZTH.js";import{a as bi}from"./chunk-WOE5TNBB.js";import{a as Ti}from"./chunk-ZHS65JNW.js";import{a as Si,b as wi,c as Xe}from"./chunk-BLJCB4Q7.js";import{a as yi,b as Ei}from"./chunk-2XST3EDK.js";import"./chunk-JNB3NYAZ.js";import{d as Ri}from"./chunk-YFMYPYPE.js";import{a as Ai}from"./chunk-WD4JQH2Z.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import{a as gi,b as Ci,c as X,d as We,g as xi}from"./chunk-V6KASOE3.js";import"./chunk-XIUDFJWJ.js";import{a as Fi}from"./chunk-TPJZ2OYR.js";import{h as si,r as Ue,s as li}from"./chunk-XYJHVZQT.js";import{h as Gi}from"./chunk-DAURILCW.js";import{a as Ni,b as Bi,c as $i,h as Hi}from"./chunk-O3T3UZHL.js";import{c as Vi,d as xe,e as Me}from"./chunk-VVQ6JEVH.js";import"./chunk-HGOTYYGI.js";import{b as ce,c as ai,e as qe,g as ri,i as pe,j as de,o as Mi}from"./chunk-AND6K73U.js";import{b as _i}from"./chunk-BJXILAOS.js";import{a as W}from"./chunk-A3N3AUUJ.js";import{B as vi,g as se,h as Kt,i as le,j as lt,p as Ge,q as Ce,u as fi,v as L,w as hi,x as w}from"./chunk-6BGAZ7SQ.js";import{c as Wt,d as je,e as Xt,g as Pe,h as Zt,j as mt}from"./chunk-I7VYXJU2.js";import{a as ue,c as fe,e as Ke,f as he,g as _e,i as ve,l as ge}from"./chunk-PAP2P7QR.js";import{a as Di,b as ki,e as Pi,f as Oi,i as Ze}from"./chunk-EC6LD5KM.js";import{a as R,b as mi,c as Q,d as ci,e as C,f as S,g as pi,h as Y,i as I,j as G,l as _,m as ze,n as di,p as A,r as Qe,s as K,t as ui,w as Ye,x as P}from"./chunk-EDIJ2EBQ.js";import{$ as pt,I as ei,T as ti,U as ii,_ as Oe,aa as ni,ka as oi,na as me,o as Jt,s as ct}from"./chunk-W5KNOAKV.js";import{$b as T,Aa as Dt,Ba as kt,Eb as It,Ec as Ne,F as bt,Fb as ae,Fc as V,Gb as re,Ha as U,Hb as At,Hc as qt,Ia as g,J as yt,Ja as Ee,Jb as Lt,Jc as z,Kb as Nt,Kc as Be,L as B,Lc as $e,Nb as x,Nc as Ut,Ob as Bt,Pb as $t,Sb as we,Sc as zt,Tb as u,Va as Pt,Vc as Te,Xc as De,Y as oe,Yb as O,Yc as He,Zc as ke,a as Ct,ac as D,b as xt,bc as s,cc as r,d as Mt,dc as p,ec as $,ed as Qt,fa as Et,fc as H,gb as Ot,ha as St,hc as k,ic as Ht,jb as Se,je as Yt,ka as m,kc as f,lb as c,mb as Ie,mc as M,nc as Gt,oc as jt,sb as Ft,t as ne,ta as y,u as Re,ua as E,ub as h,uc as te,va as wt,vb as Vt,vc as Ae,wb as Rt,wc as Le,xc as d,yc as q,za as Tt,zc as F}from"./chunk-TEKHUYWQ.js";var vn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-event-feature-admin"]],decls:1,vars:0,template:function(t,n){t&1&&p(0,"router-outlet")},dependencies:[Kt],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return i})();var et=class extends G{constructor(){super({src:new _("",{nonNullable:!0}),alt:new _("",{nonNullable:!0})})}};var Un=["box"],zn=["overlay"],Qn=["image"],tt=i=>`${i}px`,gn=(()=>{class i{src=g("");aspectRatio=g(16/9);width=g(null);height=g(null);cropChange=U();boxRef=re("box");get box(){let e=this.boxRef();if(!e)throw"box error";return e.nativeElement}overlayRef=re("overlay");get overlay(){let e=this.overlayRef();if(!e)throw"overlay error";return e.nativeElement}imageRef=re("image");get image(){let e=this.imageRef();if(!e)throw"error";return e.nativeElement}#e=null;#t=null;loaded=!1;ngOnInit(){let e=this.src();this.image.onload=()=>{this.loaded=!0,this.setInitialPosition()},this.box.addEventListener("touchstart",this.startUpdate.bind(this),{passive:!0}),this.image.src=e}setInitialPosition(){let{clientWidth:e,clientHeight:t}=this.image,n=this.width()??Math.round(e/2),a=this.height()??n;this.aspectRatio&&(a=Math.round(n/this.aspectRatio()));let l=(e-n)/2,v=(t-a)/2;this.#e=new Ue(l,v),this.updateDimensions(n,a)}updateDimensions(e,t,n=!0){if(!this.#e)return;let{offsetLeft:a,offsetTop:l}=this.box,{clientWidth:v,clientHeight:b}=this.image,j=Math.min(e,v-this.#e.x),be=Math.min(t,b-this.#e.y),J=n?Math.round(Math.max(0,this.#e.x)):a,ee=n?Math.round(Math.max(0,this.#e.y)):l;this.box.style.left=tt(J),this.box.style.top=tt(ee),this.box.style.width=tt(j),this.box.style.height=tt(be),this.updateOverlay(J,ee,j,be);let ye=new DOMRect(J,ee,j,be);this.fireChangeEvent(ye)}updateOverlay(e,t,n,a){this.overlay.style.clipPath=`polygon( 0% 0%, 0% 100%, 100% 100%, 100% 0%, ${e}px 0%, ${e}px ${t}px, ${e+n}px ${t}px, ${e+n}px ${t+a}px, ${e}px ${t+a}px, ${e}px ${t}px, ${e}px 0%, 0% 0% - )`}fireChangeEvent(e){let t=this.image,n=t.naturalWidth/t.clientWidth;e=new DOMRect(Math.round(e.x*n),Math.round(e.y*n),Math.round(e.width*n),Math.round(e.height*n)),this.cropChange.emit(e)}stopUpdate(){this.#t=null,this.box.classList.remove("nwse","nesw")}startUpdate(e){if(!(e.target instanceof HTMLElement))return;let t="touches"in e?e.touches[0].pageX:e.pageX,n="touches"in e?e.touches[0].pageY:e.pageY;this.#t=new Ue(t,n)}moveCropArea(e){if(!this.#t)return;let t="touches"in e?e.touches[0].pageX:e.pageX,n="touches"in e?e.touches[0].pageY:e.pageY,a=t-this.#t.x,l=n-this.#t.y,v=this.box,b=this.image,{offsetLeft:j,offsetTop:be,offsetWidth:J,offsetHeight:ee}=v,ye=Math.min(Math.max(0,j+a),b.clientWidth-J),st=Math.min(Math.max(0,be+l),b.clientHeight-ee);v.style.left=`${ye}px`,v.style.top=`${st}px`,this.updateOverlay(ye,st,J,ee);let qn=new DOMRect(ye,st,J,ee);this.fireChangeEvent(qn),this.#t=new Ue(t,n)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-crop-image"]],viewQuery:function(t,n){t&1&&(te(n.boxRef,Un,5),te(n.overlayRef,zn,5),te(n.imageRef,Qn,5)),t&2&&Ae(3)},hostBindings:function(t,n){t&1&&f("mouseup",function(){return n.stopUpdate()},!1,Se)("touchend",function(){return n.stopUpdate()},!1,Se)("mousedown",function(l){return n.startUpdate(l)})("mousemove",function(l){return n.moveCropArea(l)},!1,Se)("touchmove",function(l){return n.moveCropArea(l)},!1,Se)},inputs:{src:[1,"src"],aspectRatio:[1,"aspectRatio"],width:[1,"width"],height:[1,"height"]},outputs:{cropChange:"cropChange"},decls:9,vars:1,consts:[["image",""],["box",""],["overlay",""],[1,"crop-wrapper"],["alt","imagem para recorte",1,"crop-image",3,"src"],[1,"crop-container"],[1,"crop-box"],[1,"crop-outline"],[1,"crop-overlay"]],template:function(t,n){t&1&&(s(0,"div",3),p(1,"img",4,0),s(3,"div",5)(4,"div",6,1),p(6,"div",7),r(),p(7,"div",8,2),r()()),t&2&&(c(),u("src",n.src(),Ot))},styles:["[_nghost-%COMP%]{display:block;touch-action:none;position:relative}[_nghost-%COMP%] .crop-wrapper[_ngcontent-%COMP%]{position:relative;font-size:0}[_nghost-%COMP%] .crop-container[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:2;top:0}[_nghost-%COMP%] .crop-image[_ngcontent-%COMP%]{display:block;max-width:100%;width:100%}[_nghost-%COMP%] .crop-box[_ngcontent-%COMP%]{position:absolute;border:1px dashed #ccc;box-sizing:border-box;background-color:transparent;cursor:move;z-index:3}[_nghost-%COMP%] .crop-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:#00000080;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:none;z-index:1}"],changeDetection:0})}return i})();function Cn({width:i,height:o}){let e=document.createElement("canvas");e.width=i,e.height=o;let t=e.getContext("2d");if(!t)throw"context error";return t}function xn(i,o){let e=Cn(i),t=Cn(o);return e.drawImage(i,0,0),t.drawImage(e.canvas,o.x,o.y,o.width,o.height,0,0,o.width,o.height),t.canvas.toDataURL("image/webp")}var yn=(()=>{class i{ref=m($i);data=m(Hi);src;form=new et;position=new DOMRect;constructor(){this.src=URL.createObjectURL(this.data)}onCropChange(e){this.position=e}onCrop(){return Mt(this,null,function*(){let e=yield fn(this.src),t=xn(e,this.position);this.form.patchValue({src:t}),this.ref.close(this.form.getRawValue())})}close(){this.ref.close()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-select-cover"]],decls:8,vars:3,consts:[[3,"cropChange","src","width"],[3,"submit","formGroup"],["matInput","","formControlName","alt"],["mat-icon-button",""],["name","menu/crop"]],template:function(t,n){t&1&&(s(0,"devmx-crop-image",0),f("cropChange",function(l){return n.onCropChange(l)}),r(),s(1,"form",1),f("submit",function(){return n.onCrop()}),s(2,"mat-form-field")(3,"mat-label"),d(4,"Texto alternativo"),r(),p(5,"input",2),r(),s(6,"button",3),p(7,"devmx-icon",4),r()()),t&2&&(u("src",n.src)("width",980),c(),u("formGroup",n.form))},dependencies:[P,ze,Q,Y,I,A,K,de,pe,ce,gn,Me,xe,w,L,R],styles:["[_nghost-%COMP%]{gap:1em;display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:1em}"],changeDetection:0})}return i})();var it=class{dialog;constructor(o){this.dialog=o}open(o){return this.dialog.open(yn,{data:o}).closed.pipe(B(1))}};function En(){return{provide:it,deps:[Gi]}}var dt=(i,o)=>o.id;function Yn(i,o){i&1&&p(0,"devmx-icon",5)}function Kn(i,o){i&1&&p(0,"devmx-icon",6)}function Wn(i,o){i&1&&p(0,"devmx-icon",7)}function Xn(i,o){if(i&1&&(s(0,"mat-list-item")(1,"span",4),d(2),r(),x(3,Yn,1,0,"devmx-icon",5)(4,Kn,1,0,"devmx-icon",6)(5,Wn,1,0,"devmx-icon",7),r()),i&2){let e,t=o.$implicit;c(2),F(" ",t.user.displayName," "),c(),O((e=t.status)==="confirmed"?3:e==="maybe"?4:e==="declined"?5:-1)}}function Zn(i,o){i&1&&p(0,"devmx-icon",5)}function Jn(i,o){i&1&&p(0,"devmx-icon",6)}function eo(i,o){i&1&&p(0,"devmx-icon",7)}function to(i,o){if(i&1&&(s(0,"mat-list-item")(1,"span",4),d(2),r(),x(3,Zn,1,0,"devmx-icon",5)(4,Jn,1,0,"devmx-icon",6)(5,eo,1,0,"devmx-icon",7),r()),i&2){let e,t=o.$implicit;c(2),F(" ",t.user.displayName," "),c(),O((e=t.status)==="confirmed"?3:e==="maybe"?4:e==="declined"?5:-1)}}function io(i,o){i&1&&p(0,"devmx-icon",5)}function no(i,o){i&1&&p(0,"devmx-icon",6)}function oo(i,o){i&1&&p(0,"devmx-icon",7)}function ao(i,o){if(i&1&&(s(0,"mat-list-item")(1,"span",4),d(2),r(),x(3,io,1,0,"devmx-icon",5)(4,no,1,0,"devmx-icon",6)(5,oo,1,0,"devmx-icon",7),r()),i&2){let e,t=o.$implicit;c(2),F(" ",t.user.displayName," "),c(),O((e=t.status)==="confirmed"?3:e==="maybe"?4:e==="declined"?5:-1)}}var wn=(()=>{class i{ref=m(Yi);data=m(Ki);static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-event-rsvp"]],decls:24,vars:13,consts:[["mat-dialog-title",""],["mat-subheader",""],["align","end"],["mat-button","","mat-dialog-close",""],["matListItemTitle",""],["matListItemMeta","","name","emoji/happy"],["matListItemMeta","","name","emoji/confused"],["matListItemMeta","","name","emoji/crying"]],template:function(t,n){if(t&1&&(s(0,"h2",0),d(1),r(),s(2,"mat-list"),Ne(3),z(4,"rsvpByStatus"),s(5,"h3",1),d(6),r(),T(7,Xn,6,2,"mat-list-item",null,dt),Ne(9),z(10,"rsvpByStatus"),s(11,"h3",1),d(12),r(),T(13,to,6,2,"mat-list-item",null,dt),Ne(15),z(16,"rsvpByStatus"),s(17,"h3",1),d(18),r(),T(19,ao,6,2,"mat-list-item",null,dt),r(),s(21,"mat-dialog-actions",2)(22,"button",3),d(23,"Fechar"),r()()),t&2){c(),F("",n.data.length," respostas");let a=$e(4,4,n.data,"confirmed");c(5),F("",a.length," confirmado(s)"),c(),D(a);let l=$e(10,7,n.data,"maybe");c(5),F("",l.length," em d\xFAvida"),c(),D(l);let v=$e(16,10,n.data,"declined");c(5),F("",v.length," declinado(s)"),c(),D(v)}},dependencies:[Zi,Ji,Xi,w,Ce,ge,he,_e,ve,ue,fe,R,Ni],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.6em;font-weight:500}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:1em;font-weight:400;margin:0 1em;opacity:.6}"],changeDetection:0})}return i})();var Z=class{dialog;constructor(o){this.dialog=o}open(o){return this.dialog.open(wn,{data:o}).afterClosed().pipe(B(1))}};function Tn(){return{provide:Z,deps:[Wi]}}var Dn=[_n(),tn(),En(),Tn(),ji()];var kn=i=>xi(m(X),i.params);function ro(i,o){i&1&&(s(0,"th",15),d(1,"T\xEDtulo do evento"),r())}function so(i,o){if(i&1&&(s(0,"td",16),d(1),r()),i&2){let e=o.$implicit;c(),q(e.title)}}function lo(i,o){i&1&&(s(0,"th",15),d(1,"Criado por"),r())}function mo(i,o){if(i&1&&(s(0,"td",16),d(1),r()),i&2){let e=o.$implicit;c(),q(e.owner.displayName)}}function co(i,o){i&1&&p(0,"th",15)}function po(i,o){if(i&1){let e=k();s(0,"td",16)(1,"button",17),f("click",function(){let n=y(e).$implicit,a=M(2);return E(a.openDelete(n))}),p(2,"devmx-icon",18),r()()}}function uo(i,o){i&1&&p(0,"tr",19)}function fo(i,o){i&1&&p(0,"tr",20)}function ho(i,o){if(i&1){let e=k();s(0,"table",5),$(1,6),x(2,ro,2,0,"th",7)(3,so,2,1,"td",8),H(),$(4,9),x(5,lo,2,0,"th",7)(6,mo,2,1,"td",8),H(),$(7,10),x(8,co,1,0,"th",7)(9,po,3,0,"td",8),H(),x(10,uo,1,0,"tr",11)(11,fo,1,0,"tr",12),r(),s(12,"mat-card-actions",13)(13,"devmx-paginator",14),f("pageChange",function(n){y(e);let a=M();return E(a.onPageChange(n))}),r()()}if(i&2){let e=o,t=M();u("dataSource",e.data),c(10),u("matHeaderRowDef",t.columns),c(),u("matRowDefColumns",t.columns),c(2),u("size",10)("items",e.items)}}var Pn=(()=>{class i{router=m(le);route=m(se);dialogFacade=m(Je);eventFacade=m(X);rsvpFacade=m(We);eventRSVP=m(Z);selectUser=m(Fe);#e=li(null);columns=["title","owner","actions"];constructor(){let e=this.#e.observe().pipe(ne(n=>n?n.id:"")),t=this.route.queryParams.pipe(ne(({page:n,size:a,title:l,format:v,date:b})=>({page:n,size:a,title:l,format:v,date:b})));Re([e,t]).pipe(W()).subscribe(this.onQueryParams),this.eventFacade.loadAll()}setUserRef(e=null){this.#e.update(e)}onQueryParams=([e,t])=>{let{page:n,size:a,title:l,format:v,date:b}=t,j={title:l,format:v,date:b,owner:e};this.eventFacade.setParams({page:n,size:a,filter:j}),this.eventFacade.load()};openSelectUser(){this.selectUser.open({onlyRole:"leader",multiple:!1}).subscribe(e=>{e&&this.#e.update(e)})}openRSVP(e){this.rsvpFacade.load(e),this.rsvpFacade.response$.pipe(oe(1),B(1)).subscribe(t=>{t&&this.eventRSVP.open(t)})}openDelete({id:e,title:t}){this.dialogFacade.confirm(`Confirme que deseja apagar o evento ${t}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(n=>{n&&this.eventFacade.delete(e)})}onSearchChange(e=""){this.eventFacade.setFilter({title:e}),this.eventFacade.loadAll()}onPageChange({page:e,size:t}){let n={page:e,size:t};this.router.navigate([],{queryParams:n})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-event-admin-manage-events"]],decls:10,vars:4,consts:[[1,"events-card"],[1,"events-card-header"],["mat-icon-button","",3,"click"],["name","filter"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","owner"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(t,n){if(t&1&&(s(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),d(3,"Eventos"),r(),s(4,"div")(5,"button",2),f("click",function(){return n.openSelectUser()}),p(6,"devmx-icon",3),r(),s(7,"devmx-search-field",4),f("searchChange",function(l){return n.onSearchChange(l)}),r()()(),x(8,ho,14,5),z(9,"async"),r()),t&2){let a;c(7),u("debounce",1e3),c(),O((a=Be(9,2,n.eventFacade.response$))?8:-1,a)}},dependencies:[Ge,w,L,en,Xe,un,nn,an,mn,rn,on,cn,sn,ln,pn,dn,Ze,Di,Pi,Oi,ki,R,Yt],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .events-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .events-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .events-card-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;align-items:baseline}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:3em}"],changeDetection:0})}return i})();var _o=(i,o)=>o.id,vo=()=>[lt,hi,L,Si,import("./chunk-TH4T4IGP.js").then(i=>i.EventCardComponent),Xe,R,import("./chunk-QQ3DFMVY.js").then(i=>i.AsyncPipe)],go=i=>["/","evento",i];function Co(i,o){if(i&1){let e=k();s(0,"devmx-event-card",3)(1,"button",7),f("click",function(){let n=y(e).$implicit,a=M(3);return E(a.openRSVP(n.id))}),p(2,"devmx-icon",8),r(),s(3,"a",9),p(4,"devmx-icon",10),r(),s(5,"a",11),p(6,"devmx-icon",12),r(),s(7,"button",13),f("click",function(){let n=y(e).$implicit,a=M(3);return E(a.copyEvent(n))}),p(8,"devmx-icon",14),r(),s(9,"button",15),f("click",function(){let n=y(e).$implicit,a=M(3);return E(a.deleteEvent(n))}),p(10,"devmx-icon",16),r()()}if(i&2){let e=o.$implicit;u("data",e),c(3),u("routerLink",qt(3,go,e.id)),c(2),u("routerLink",e.id)}}function xo(i,o){i&1&&(s(0,"div",4)(1,"h2"),d(2,"N\xE3o temos nada aqui..."),r(),s(3,"h3"),d(4," Siga nessa dire\xE7\xE3o "),p(5,"devmx-icon",17)(6,"br"),d(7," at\xE9 encontrar o bot\xE3o com um "),p(8,"devmx-icon",18)(9,"br"),d(10," e cadastre suas eventos. "),p(11,"devmx-icon",19),r()()),i&2&&(c(5),u("size",32),c(3),u("size",32),c(3),u("size",32))}function Mo(i,o){if(i&1){let e=k();s(0,"div",2),T(1,Co,11,5,"devmx-event-card",3,_o),r(),x(3,xo,12,3,"div",4),p(4,"div",5),s(5,"footer")(6,"devmx-paginator",6),f("pageChange",function(n){y(e);let a=M(2);return E(a.onPageChange(n))}),r()()}if(i&2){let e=o;c(),D(e.data),c(2),O(e.items?-1:3),c(3),u("size",10)("items",e.items)}}function bo(i,o){if(i&1&&(x(0,Mo,7,3),z(1,"async")),i&2){let e,t=M();O((e=Be(1,1,t.eventFacade.response$))?0:-1,e)}}function yo(i,o){i&1&&(s(0,"div",2),p(1,"devmx-skeleton",20)(2,"devmx-skeleton",20)(3,"devmx-skeleton",20),r()),i&2&&(c(),u("rows",3),c(),u("rows",2),c(),u("rows",3))}var On=(()=>{class i{router=m(le);route=m(se);dialogFacade=m(Je);authFacade=m(Fi);eventFacade=m(X);rsvpFacade=m(We);eventRSVP=m(Z);constructor(){let e=this.authFacade.auth$.pipe(bt(n=>!!n),ne(({id:n})=>n)),t=this.route.queryParams.pipe(ne(({page:n,size:a,title:l,format:v,date:b})=>({page:n,size:a,title:l,format:v,date:b})));Re([e,t]).pipe(W()).subscribe(this.onQueryParams)}onQueryParams=([e,t])=>{let{page:n,size:a,title:l,format:v,date:b}=t,j={title:l,format:v,date:b,owner:e};this.eventFacade.setParams({page:n,size:a,filter:j}),this.eventFacade.loadMyEvents()};openRSVP(e){this.rsvpFacade.load(e),this.rsvpFacade.response$.pipe(oe(1),B(1)).subscribe(t=>{t&&this.eventRSVP.open(t)})}copyEvent(e){this.dialogFacade.prompt("Qual nome do evento?",e.title,!0).subscribe(t=>{t&&this.eventFacade.copy(xt(Ct({},e),{title:t})).subscribe(({id:n})=>{this.router.navigate([n],{relativeTo:this.route})})})}deleteEvent({id:e,title:t}){this.dialogFacade.confirm(`Confirme que deseja apagar ${t}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(n=>{n&&this.eventFacade.delete(e)})}onPageChange({page:e,size:t}){let n={page:e,size:t};this.router.navigate([],{queryParams:n})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-event-admin-my-events"]],decls:6,vars:0,consts:[["mat-fab","","routerLink","novo",1,"tertiary-fab","top","right"],["name","plus"],[1,"events-container"],[3,"data"],[1,"no-events-yet"],[1,"spacer"],[3,"pageChange","size","items"],["mat-icon-button","","matTooltip","Lista de presen\xE7a","matTooltipPosition","before",3,"click"],["name","doc/check"],["mat-icon-button","","matTooltip","P\xE1gina p\xFAblica","matTooltipPosition","above",3,"routerLink"],["name","software/web-info"],["mat-icon-button","","matTooltip","Editar evento","matTooltipPosition","above",3,"routerLink"],["name","software/edit"],["type","button","mat-icon-button","","matTooltip","Copiar evento","matTooltipPosition","above",3,"click"],["name","doc/copy"],["type","button","mat-icon-button","","matTooltip","Apagar evento","matTooltipPosition","after",3,"click"],["name","trash-alt"],["color","#3BCE53","name","arrow/up-right",3,"size"],["color","#3BCE53","name","plus",3,"size"],["color","#3BCE53","name","emoji/smirking-alt",3,"size"],[3,"rows"]],template:function(t,n){t&1&&(s(0,"a",0),p(1,"devmx-icon",1),r(),x(2,bo,2,3)(3,yo,4,3),Bt(4,2,vo,null,3),$t(500))},dependencies:[Ge,lt,w,fi,wi,Ti,R],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(3,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .events-container[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1;display:flex}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .no-events-yet[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}[_nghost-%COMP%] .no-events-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .no-events-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;white-space:normal}[_nghost-%COMP%] .no-events-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:160%}[_nghost-%COMP%] .no-events-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:120%;text-align:end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return i})();var Eo=(i,o)=>o.value;function So(i,o){if(i&1){let e=k();s(0,"mat-list-item"),p(1,"devmx-icon",3),s(2,"span",4),d(3),r(),s(4,"button",5),f("click",function(){let n=y(e).$index,a=M(2);return E(a.form.presentations.removeAt(n))}),p(5,"devmx-icon",6),r()()}if(i&2){let e=o.$implicit;c(3),q(e.value.title)}}function wo(i,o){if(i&1&&(s(0,"mat-list",1)(1,"p",2),d(2,"Palestras"),r(),T(3,So,6,1,"mat-list-item",null,Eo),r()),i&2){let e=M();c(3),D(e.form.presentations.controls)}}var Fn=(()=>{class i{container=m(S);get form(){return this.container.control}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-admin-event-presentations"]],features:[V([],[{provide:S,useFactory:()=>m(S,{skipSelf:!0})}])],decls:2,vars:2,consts:[[3,"formGroup"],["formArrayName","presentations"],["mat-subheader",""],["matListItemIcon","","name","presentation"],["matListItemTitle",""],["type","button","mat-icon-button","","matListItemMeta","",3,"click"],["name","trash"]],template:function(t,n){t&1&&($(0,0),x(1,wo,5,0,"mat-list",1),H()),t&2&&(u("formGroup",n.form),c(),O(n.form.presentations.controls.length?1:-1))},dependencies:[P,I,A,Qe,ge,he,_e,Ke,ve,ue,fe,w,L,R],encapsulation:2,changeDetection:0})}return i})();var To=(i,o)=>o.value;function Do(i,o){if(i&1){let e=k();s(0,"mat-list-item"),p(1,"devmx-icon",3),s(2,"span",4),d(3),r(),s(4,"button",5),f("click",function(){let n=y(e).$index,a=M(2);return E(a.form.leaders.removeAt(n))}),p(5,"devmx-icon",6),r()()}if(i&2){let e=o.$implicit;c(3),q(e.value.displayName)}}function ko(i,o){if(i&1&&(s(0,"mat-list",1)(1,"p",2),d(2,"L\xEDderes"),r(),T(3,Do,6,1,"mat-list-item",null,To),r()),i&2){let e=M();c(3),D(e.form.leaders.controls)}}var Vn=(()=>{class i{container=m(S);get form(){return this.container.control}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-admin-event-leaders"]],features:[V([],[{provide:S,useFactory:()=>m(S,{skipSelf:!0})}])],decls:2,vars:2,consts:[[3,"formGroup"],["formArrayName","leaders"],["mat-subheader",""],["matListItemIcon","","name","user-circle"],["matListItemTitle",""],["type","button","mat-icon-button","","matListItemMeta","",3,"click"],["name","trash"]],template:function(t,n){t&1&&($(0,0),x(1,ko,5,0,"mat-list",1),H()),t&2&&(u("formGroup",n.form),c(),O(n.form.leaders.controls.length?1:-1))},dependencies:[P,I,A,Qe,ge,he,_e,Ke,ve,ue,fe,w,L,R],encapsulation:2,changeDetection:0})}return i})();var Rn=(()=>{class i{container=m(S);get form(){return this.container.control}destroyRef=m(kt);saving=g.required();autoSave=U();ngAfterViewInit(){this.form.valueChanges.pipe(W(this.destroyRef),yt(4e3),oe(1)).subscribe(()=>this.autoSave.emit(this.form.getRawValue()))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-auto-save-button"]],inputs:{saving:[1,"saving"]},outputs:{autoSave:"autoSave"},features:[V([],[{provide:S,useFactory:()=>m(S,{skipSelf:!0})}])],decls:2,vars:2,consts:[["mat-flat-button","",3,"disabled"]],template:function(t,n){t&1&&(s(0,"button",0),d(1),r()),t&2&&(u("disabled",n.saving()),c(),F(" ",n.saving()?"Salvando...":"Salvar"," "))},dependencies:[P,w,Ce],encapsulation:2,changeDetection:0})}return i})();var Ro=["panelTemplate"],Io=(i,o)=>o.value;function Ao(i,o){if(i&1){let e=k();s(0,"mat-option",3),f("onSelectionChange",function(){let n=y(e).$implicit,a=M(2);return E(a._selectValue(n.value))}),d(1),r()}if(i&2){let e=o.$implicit;u("value",e.value),c(),q(e.label)}}function Lo(i,o){if(i&1&&(s(0,"div",1),T(1,Ao,2,2,"mat-option",2,Io),r()),i&2){let e=M();u("id",e.panelId)("@panel",void 0),we("aria-label",e.ariaLabel()||null)("aria-labelledby",e._getAriaLabelledby()),c(),D(e._timeOptions)}}var No=[[["","matTimepickerToggleIcon",""]]],Bo=["[matTimepickerToggleIcon]"];function $o(i,o){i&1&&(wt(),s(0,"svg",1),p(1,"path",2),r())}var Ho=/^(\d*\.?\d+)\s*(h|hour|hours|m|min|minute|minutes|s|second|seconds)?$/i,Ln=new St("MAT_TIMEPICKER_CONFIG");function In(i){let o;if(i===null)return null;if(typeof i=="number")o=i;else{if(i.trim().length===0)return null;let e=i.match(Ho),t=e?parseFloat(e[1]):null,n=e?.[2]?.toLowerCase()||null;if(!e||t===null||isNaN(t))return null;n==="h"||n==="hour"||n==="hours"?o=t*3600:n==="m"||n==="min"||n==="minute"||n==="minutes"?o=t*60:o=t}return o}function Go(i,o,e,t,n){let a=[],l=i.compareTime(e,t)<1?e:t;for(;i.sameDate(l,e)&&i.compareTime(l,t)<1&&i.isValid(l);)a.push({value:l,label:i.format(l,o.display.timeOptionLabel)}),l=i.addSeconds(l,n);return a}var ft=(()=>{class i{_overlay=m(Mi);_dir=m(ii,{optional:!0});_viewContainerRef=m(It);_injector=m(Tt);_defaultConfig=m(Ln,{optional:!0});_dateAdapter=m(Oe,{optional:!0});_dateFormats=m(pt,{optional:!0});_isOpen=ae(!1);_activeDescendant=ae(null);_input;_overlayRef=null;_portal=null;_optionsCacheKey=null;_localeChanges;_onOpenRender=null;_panelTemplate=re.required("panelTemplate");_timeOptions=[];_options=At(me);_keyManager=new ei(this._options,this._injector).withHomeAndEnd(!0).withPageUpDown(!0).withVerticalOrientation(!0);interval=g(In(this._defaultConfig?.interval||null),{transform:In});options=g(null);isOpen=this._isOpen.asReadonly();selected=U();opened=U();closed=U();activeDescendant=this._activeDescendant.asReadonly();panelId=m(ti).getId("mat-timepicker-panel-");disableRipple=g(this._defaultConfig?.disableRipple??!1,{transform:Te});ariaLabel=g(null,{alias:"aria-label"});ariaLabelledby=g(null,{alias:"aria-labelledby"});constructor(){m(Ee).nativeElement.setAttribute("mat-timepicker-panel-id",this.panelId),this._handleLocaleChanges(),this._handleInputStateChanges(),this._keyManager.change.subscribe(()=>this._activeDescendant.set(this._keyManager.activeItem?.id||null))}open(){if(!this._input||(this._input.focus(),this._isOpen()))return;this._isOpen.set(!0),this._generateOptions();let e=this._getOverlayRef();e.updateSize({width:this._input.getOverlayOrigin().nativeElement.offsetWidth}),this._portal??=new _i(this._panelTemplate(),this._viewContainerRef),e.attach(this._portal),this._onOpenRender?.destroy(),this._onOpenRender=Pt(()=>{let t=this._options();this._syncSelectedState(this._input.value(),t,t[0]),this._onOpenRender=null},{injector:this._injector}),this.opened.emit()}close(){this._isOpen()&&(this._isOpen.set(!1),this._overlayRef?.detach(),this.closed.emit())}registerInput(e){this._input&&this._input,this._input=e}ngOnDestroy(){this._keyManager.destroy(),this._localeChanges.unsubscribe(),this._onOpenRender?.destroy(),this._overlayRef?.dispose()}_selectValue(e){this.close(),this.selected.emit({value:e,source:this}),this._input.focus()}_getAriaLabelledby(){return this.ariaLabel()?null:this.ariaLabelledby()||this._input?._getLabelId()||null}_getOverlayRef(){if(this._overlayRef)return this._overlayRef;let e=this._overlay.position().flexibleConnectedTo(this._input.getOverlayOrigin()).withFlexibleDimensions(!1).withPush(!1).withTransformOriginOn(".mat-timepicker-panel").withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-timepicker-above"}]);return this._overlayRef=this._overlay.create({positionStrategy:e,scrollStrategy:this._overlay.scrollStrategies.reposition(),direction:this._dir||"ltr",hasBackdrop:!1}),this._overlayRef.keydownEvents().subscribe(t=>{this._handleKeydown(t)}),this._overlayRef.outsidePointerEvents().subscribe(t=>{let n=Jt(t),a=this._input.getOverlayOrigin().nativeElement;n&&n!==a&&!a.contains(n)&&this.close()}),this._overlayRef}_generateOptions(){let e=this.interval()??1800,t=this.options();if(t!==null)this._timeOptions=t;else{let n=this._dateAdapter,a=this._dateFormats.display.timeInput,l=this._input.min()||n.setTime(n.today(),0,0,0),v=this._input.max()||n.setTime(n.today(),23,59,0),b=e+"/"+n.format(l,a)+"/"+n.format(v,a);b!==this._optionsCacheKey&&(this._optionsCacheKey=b,this._timeOptions=Go(n,this._dateFormats,l,v,e))}}_syncSelectedState(e,t,n){let a=!1;for(let l of t)e&&this._dateAdapter.sameTime(l.value,e)?(l.select(!1),ut(l,"center"),He(()=>this._keyManager.setActiveItem(l)),a=!0):l.deselect(!1);a||(n?(He(()=>this._keyManager.setActiveItem(n)),ut(n,"center")):He(()=>this._keyManager.setActiveItem(-1)))}_handleKeydown(e){let t=e.keyCode;if(t===9)this.close();else if(t===27&&!ct(e))e.preventDefault(),this.close();else if(t===13)e.preventDefault(),this._keyManager.activeItem?this._selectValue(this._keyManager.activeItem.value):this.close();else{let n=this._keyManager.activeItem;this._keyManager.onKeydown(e);let a=this._keyManager.activeItem;a&&a!==n&&ut(a,"nearest")}}_handleLocaleChanges(){this._localeChanges=this._dateAdapter.localeChanges.subscribe(()=>{this._optionsCacheKey=null,this.isOpen()&&this._generateOptions()})}_handleInputStateChanges(){ke(()=>{let e=this._input?.value(),t=this._options();this._isOpen()&&this._syncSelectedState(e,t,null)})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["mat-timepicker"]],viewQuery:function(t,n){t&1&&(te(n._panelTemplate,Ro,5),te(n._options,me,5)),t&2&&Ae(2)},inputs:{interval:[1,"interval"],options:[1,"options"],disableRipple:[1,"disableRipple"],ariaLabel:[1,"aria-label","ariaLabel"],ariaLabelledby:[1,"aria-labelledby","ariaLabelledby"]},outputs:{selected:"selected",opened:"opened",closed:"closed"},exportAs:["matTimepicker"],features:[V([{provide:oi,useExisting:i}])],decls:2,vars:0,consts:[["panelTemplate",""],["role","listbox",1,"mat-timepicker-panel",3,"id"],[3,"value"],[3,"onSelectionChange","value"]],template:function(t,n){t&1&&x(0,Lo,3,4,"ng-template",null,0,Ut)},dependencies:[me],styles:["mat-timepicker{display:none}.mat-timepicker-panel{width:100%;max-height:256px;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;border-bottom-left-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-timepicker-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-timepicker-container-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){.mat-timepicker-panel{outline:solid 1px}}.mat-timepicker-above .mat-timepicker-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small))}.mat-timepicker-input:read-only{cursor:pointer}@media(forced-colors: active){.mat-timepicker-toggle-default-icon{color:CanvasText}}"],encapsulation:2,data:{animation:[Wt("panel",[Zt("void",Pe({opacity:0,transform:"scaleY(0.8)"})),mt(":enter",[Xt([je("0.03s linear",Pe({opacity:1})),je("0.12s cubic-bezier(0, 0, 0.2, 1)",Pe({transform:"scaleY(1)"}))])]),mt(":leave",[je("0.075s linear",Pe({opacity:0}))])])]},changeDetection:0})}return i})();function ut(i,o){i._getHostElement().scrollIntoView({block:o,inline:o})}var Nn=(()=>{class i{_elementRef=m(Ee);_document=m(Qt);_dateAdapter=m(Oe,{optional:!0});_dateFormats=m(pt,{optional:!0});_formField=m(ri,{optional:!0});_onChange;_onTouched;_validatorOnChange;_accessorDisabled=ae(!1);_localeSubscription;_timepickerSubscription;_validator;_lastValueValid=!0;_lastValidDate=null;_ariaActiveDescendant=De(()=>{let e=this.timepicker(),t=e.isOpen(),n=e.activeDescendant();return t&&n?n:null});_ariaExpanded=De(()=>this.timepicker().isOpen()+"");_ariaControls=De(()=>{let e=this.timepicker();return e.isOpen()?e.panelId:null});value=Lt(null);timepicker=g.required({alias:"matTimepicker"});min=g(null,{alias:"matTimepickerMin",transform:e=>this._transformDateInput(e)});max=g(null,{alias:"matTimepickerMax",transform:e=>this._transformDateInput(e)});disabled=De(()=>this.disabledInput()||this._accessorDisabled());disabledInput=g(!1,{transform:Te,alias:"disabled"});constructor(){this._validator=this._getValidator(),this._respondToValueChanges(),this._respondToMinMaxChanges(),this._registerTimepicker(),this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._hasFocus()||this._formatValue(this.value())}),this.getOverlayOrigin().nativeElement.addEventListener("click",this._handleClick)}writeValue(e){this.value.set(this._dateAdapter.getValidDateOrNull(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._accessorDisabled.set(e)}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._validatorOnChange=e}getOverlayOrigin(){return this._formField?.getConnectedOverlayOrigin()||this._elementRef}focus(){this._elementRef.nativeElement.focus()}ngOnDestroy(){this.getOverlayOrigin().nativeElement.removeEventListener("click",this._handleClick),this._timepickerSubscription?.unsubscribe(),this._localeSubscription.unsubscribe()}_getLabelId(){return this._formField?.getLabelId()||null}_handleClick=()=>{this.timepicker().open()};_handleInput(e){let t=this.value(),n=this._dateAdapter.parseTime(e,this._dateFormats.parse.timeInput),a=!this._dateAdapter.sameTime(n,t);!n||a||e&&!t?this._assignUserSelection(n,!0):this._validatorOnChange?.()}_handleBlur(){let e=this.value();e&&this._isValid(e)&&this._formatValue(e),this._onTouched?.()}_handleKeydown(e){this.timepicker().isOpen()||(e.keyCode===27&&!ct(e)&&this.value()!==null?(e.preventDefault(),this.value.set(null),this._formatValue(null)):(e.keyCode===40||e.keyCode===38)&&!this.disabled()&&(e.preventDefault(),this.timepicker().open()))}_respondToValueChanges(){ke(()=>{let e=this._dateAdapter.deserialize(this.value()),t=this._lastValueValid;this._lastValueValid=this._isValid(e),this._hasFocus()||this._formatValue(e),e&&this._lastValueValid&&(this._lastValidDate=e),t!==this._lastValueValid&&this._validatorOnChange?.()})}_registerTimepicker(){ke(()=>{let e=this.timepicker();e.registerInput(this),e.closed.subscribe(()=>this._onTouched?.()),e.selected.subscribe(({value:t})=>{this._dateAdapter.sameTime(t,this.value())||(this._assignUserSelection(t,!0),this._formatValue(t))})})}_respondToMinMaxChanges(){ke(()=>{this.min(),this.max(),this._validatorOnChange?.()})}_assignUserSelection(e,t){if(e==null||!this._isValid(e))this.value.set(e);else{let n=this._dateAdapter,a=n.getValidDateOrNull(this._lastValidDate||this.value()),l=n.getHours(e),v=n.getMinutes(e),b=n.getSeconds(e);this.value.set(a?n.setTime(a,l,v,b):e)}t&&this._onChange?.(this.value())}_formatValue(e){e=this._dateAdapter.getValidDateOrNull(e),this._elementRef.nativeElement.value=e==null?"":this._dateAdapter.format(e,this._dateFormats.display.timeInput)}_isValid(e){return!e||this._dateAdapter.isValid(e)}_transformDateInput(e){let t=typeof e=="string"?this._dateAdapter.parseTime(e,this._dateFormats.parse.timeInput):this._dateAdapter.deserialize(e);return t&&this._dateAdapter.isValid(t)?t:null}_hasFocus(){return this._document.activeElement===this._elementRef.nativeElement}_getValidator(){return C.compose([()=>this._lastValueValid?null:{matTimepickerParse:{text:this._elementRef.nativeElement.value}},e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),n=this.min();return!n||!t||this._dateAdapter.compareTime(n,t)<=0?null:{matTimepickerMin:{min:n,actual:t}}},e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),n=this.max();return!n||!t||this._dateAdapter.compareTime(n,t)>=0?null:{matTimepickerMax:{max:n,actual:t}}}])}static \u0275fac=function(t){return new(t||i)};static \u0275dir=Rt({type:i,selectors:[["input","matTimepicker",""]],hostAttrs:["role","combobox","type","text","aria-haspopup","listbox",1,"mat-timepicker-input"],hostVars:5,hostBindings:function(t,n){if(t&1&&f("blur",function(){return n._handleBlur()})("input",function(l){return n._handleInput(l.target.value)})("keydown",function(l){return n._handleKeydown(l)}),t&2){let a;Ht("disabled",n.disabled()),we("aria-activedescendant",n._ariaActiveDescendant())("aria-expanded",n._ariaExpanded())("aria-controls",n._ariaControls())("mat-timepicker-id",(a=n.timepicker())==null?null:a.panelId)}},inputs:{value:[1,"value"],timepicker:[1,"matTimepicker","timepicker"],min:[1,"matTimepickerMin","min"],max:[1,"matTimepickerMax","max"],disabledInput:[1,"disabled","disabledInput"]},outputs:{value:"valueChange"},exportAs:["matTimepickerInput"],features:[V([{provide:mi,useExisting:i,multi:!0},{provide:ci,useExisting:i,multi:!0},{provide:Vi,useExisting:i}])]})}return i})(),ht=(()=>{class i{_defaultConfig=m(Ln,{optional:!0});_defaultTabIndex=(()=>{let e=m(new Dt("tabindex"),{optional:!0}),t=Number(e);return isNaN(t)?null:t})();timepicker=g.required({alias:"for"});ariaLabel=g(void 0,{alias:"aria-label"});disabled=g(!1,{transform:Te,alias:"disabled"});tabIndex=g(this._defaultTabIndex);disableRipple=g(this._defaultConfig?.disableRipple??!1,{transform:Te});_open(e){this.timepicker()&&!this.disabled()&&(this.timepicker().open(),e.stopPropagation())}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["mat-timepicker-toggle"]],hostAttrs:[1,"mat-timepicker-toggle"],hostVars:1,hostBindings:function(t,n){t&1&&f("click",function(l){return n._open(l)}),t&2&&we("tabindex",null)},inputs:{timepicker:[1,"for","timepicker"],ariaLabel:[1,"aria-label","ariaLabel"],disabled:[1,"disabled"],tabIndex:[1,"tabIndex"],disableRipple:[1,"disableRipple"]},exportAs:["matTimepickerToggle"],ngContentSelectors:Bo,decls:3,vars:5,consts:[["mat-icon-button","","type","button","aria-haspopup","listbox",3,"disabled","disableRipple"],["height","24px","width","24px","viewBox","0 -960 960 960","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-timepicker-toggle-default-icon"],["d","m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 320q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Z"]],template:function(t,n){t&1&&(Gt(No),s(0,"button",0),jt(1,0,null,$o,2,0),r()),t&2&&(u("disabled",n.disabled())("disableRipple",n.disableRipple()),we("aria-label",n.ariaLabel())("aria-expanded",n.timepicker().isOpen())("tabindex",n.disabled()?-1:n.tabIndex()))},dependencies:[L],encapsulation:2,changeDetection:0})}return i})(),Bn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Vt({type:i});static \u0275inj=Et({imports:[ft,ht,vi]})}return i})();var nt=class extends G{constructor(){super({date:new _,time:new _})}};var $n=(()=>{class i extends Q{elRef;ngControl;get control(){return this.ngControl.control}_adapter=m(Oe);form=new nt;constructor(e,t,n){super(e,t,!0),this.elRef=t,this.ngControl=n,this.ngControl.valueAccessor=this,this._adapter.setLocale("pt-BR")}ngAfterViewInit(){this.control.value||this.control.setValue(new Date);let{value:e}=this.control;this.form.setValue({date:e,time:e},{emitEvent:!1});let{date:t,time:n}=this.form.controls;t.valueChanges.subscribe(a=>{let{value:l}=this.control;!a||!l||(l.setDate(a.getDate()),l.setMonth(a.getMonth()),l.setFullYear(a.getFullYear()),this.control.setValue(l))}),n.valueChanges.subscribe(a=>{let{value:l}=this.control;!a||!l||(l.setHours(a.getHours()),l.setMinutes(a.getMinutes()),l.setSeconds(a.getSeconds()),this.control.setValue(l))})}static \u0275fac=function(t){return new(t||i)(Ie(Ft),Ie(Ee),Ie(pi,10))};static \u0275cmp=h({type:i,selectors:[["devmx-date-time-picker"]],features:[V([ni()]),Nt],decls:15,vars:5,consts:[["datepicker",""],["timepicker",""],[1,"date-time-picker",3,"formGroup"],[1,"date-picker"],["matInput","","formControlName","date","readonly","",3,"focus","matDatepicker"],["matSuffix","",3,"for"],[1,"time-picker"],["matInput","","formControlName","time","readonly","",3,"matTimepicker"]],template:function(t,n){if(t&1){let a=k();s(0,"section",2)(1,"mat-form-field",3)(2,"mat-label"),d(3,"Dia"),r(),s(4,"input",4),f("focus",function(){y(a);let v=Le(6);return E(v.open())}),r(),p(5,"mat-datepicker",null,0)(7,"mat-datepicker-toggle",5),r(),s(8,"mat-form-field",6)(9,"mat-label"),d(10,"Hor\xE1rio"),r(),p(11,"input",7)(12,"mat-timepicker",null,1)(14,"mat-timepicker-toggle",5),r()()}if(t&2){let a=Le(6),l=Le(13);u("formGroup",n.form),c(4),u("matDatepicker",a),c(3),u("for",a),c(4),u("matTimepicker",l),c(3),u("for",l)}},dependencies:[P,Q,Y,I,A,K,Qi,qi,Ui,zi,Bn,ft,Nn,ht,de,pe,ce,qe,Me,xe],styles:["[_nghost-%COMP%]{display:inline-flex}[_nghost-%COMP%] .date-time-picker[_ngcontent-%COMP%]{display:inline-flex;flex-flow:row wrap;gap:1em}[_nghost-%COMP%] .date-time-picker[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]{width:10em}[_nghost-%COMP%] .date-time-picker[_ngcontent-%COMP%] .time-picker[_ngcontent-%COMP%]{width:8em}"],changeDetection:0})}return i})();var Hn=(i,o)=>o.value;function qo(i,o){if(i&1&&(s(0,"mat-option",5),d(1),r()),i&2){let e=o.$implicit;u("value",e.value),c(),F(" ",e.viewValue," ")}}function Uo(i,o){if(i&1&&(s(0,"mat-option",5),d(1),r()),i&2){let e=o.$implicit;u("value",e.value),c(),F(" ",e.viewValue," ")}}var Gn=(()=>{class i{container=m(S);get form(){return this.container.control}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-admin-event-form"]],features:[V([],[{provide:S,useFactory:()=>m(S,{skipSelf:!0})}])],decls:42,vars:1,consts:[[3,"formGroup"],["matInput","","formControlName","title","placeholder","Ex.: 10\xBA Meetup Maring\xE1 Agile","autofocus",""],["formControlName","date"],[1,"event-duration"],["formControlName","duration"],[3,"value"],[1,"event-max"],["matInput","","type","number","min","0","formControlName","maxAttendees"],["matTextSuffix",""],[1,"event-format"],["formControlName","format",3,"selectionChange"],[1,"event-address"],["matInput","","formControlName","address"],[1,"event-link"],["matInput","","type","url","formControlName","link"]],template:function(t,n){t&1&&($(0,0),s(1,"mat-form-field")(2,"mat-label"),d(3,"Qual nome ou t\xEDtulo do evento?"),r(),p(4,"input",1),s(5,"mat-error"),d(6,"Obrigat\xF3rio"),r()(),s(7,"div"),p(8,"devmx-date-time-picker",2),s(9,"mat-form-field",3)(10,"mat-label"),d(11,"Dura\xE7\xE3o"),r(),s(12,"mat-select",4),T(13,qo,2,2,"mat-option",5,Hn),r(),s(15,"mat-error"),d(16,"Obrigat\xF3rio"),r()(),s(17,"mat-form-field",6)(18,"mat-label"),d(19,"M\xE1ximo de"),r(),p(20,"input",7),s(21,"span",8),d(22,"pessoas"),r()()(),s(23,"div")(24,"mat-form-field",9)(25,"mat-label"),d(26,"Formato"),r(),s(27,"mat-select",10),f("selectionChange",function(){return n.form.onFormatChange(n.form.format.value)}),T(28,Uo,2,2,"mat-option",5,Hn),r(),s(30,"mat-error"),d(31,"Obrigat\xF3rio"),r()(),s(32,"mat-form-field",11)(33,"mat-label"),d(34,"Endere\xE7o"),r(),p(35,"input",12),r(),s(36,"mat-form-field",13)(37,"mat-label"),d(38,"Link"),r(),p(39,"input",14),s(40,"mat-error"),d(41,"Obrigat\xF3rio"),r()()(),H()),t&2&&(u("formGroup",n.form),c(13),D(n.form.durations),c(15),D(n.form.formats))},dependencies:[P,Q,di,Y,I,ui,A,K,de,pe,ce,ai,qe,Me,xe,Ei,yi,me,$n],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2em}[_nghost-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] div[_ngcontent-%COMP%] > section[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .event-duration[_ngcontent-%COMP%]{max-width:8em}[_nghost-%COMP%] .event-max[_ngcontent-%COMP%]{max-width:10em}[_nghost-%COMP%] .event-format[_ngcontent-%COMP%]{max-width:9em}[_nghost-%COMP%] .event-address[_ngcontent-%COMP%]{flex:2}[_nghost-%COMP%] .event-link[_ngcontent-%COMP%]{width:18em}"],changeDetection:0})}return i})();var _t=class extends G{constructor(o){super({id:new _("",{nonNullable:!0,validators:[C.required]}),title:new _("",{nonNullable:!0,validators:[C.required]}),description:new _("",{nonNullable:!0}),cover:new _("",{nonNullable:!0})}),o&&this.patchValue(o)}},ot=class extends Ye{constructor(){super([])}add(o){this.push(new _t(o))}};var vt=class extends G{get name(){return this.controls.name.value}constructor(o){super({id:new _("",{nonNullable:!0,validators:[C.required]}),name:new _("",{nonNullable:!0,validators:[C.required]}),displayName:new _("",{nonNullable:!0,validators:[C.required]})}),o&&this.patchValue(o)}},at=class extends Ye{constructor(){super([])}add(o){this.push(new vt(o))}};function jn(i,o,e){let t=Ci(i,e?.in);return isNaN(o)?gi(e?.in||i,NaN):(o&&t.setDate(t.getDate()+o),t)}var rt=class i extends G{formats=[{value:"in-person",viewValue:"Presencial"},{value:"mixed",viewValue:"H\xEDbrido"},{value:"online",viewValue:"Online"}];durations=si.map(o=>({value:o,viewValue:o}));static date=jn(new Date,10);constructor(){i.date.setHours(19),i.date.setMinutes(0),i.date.setSeconds(0),super({id:new _("",{nonNullable:!0}),title:new _("",{nonNullable:!0,validators:[C.required]}),date:new _(i.date,{nonNullable:!0,validators:[C.required],updateOn:"blur"}),duration:new _("2h",{nonNullable:!0,validators:[C.required]}),maxAttendees:new _(0,{nonNullable:!0}),description:new _("",{nonNullable:!0,validators:[C.required]}),presentations:new ot,leaders:new at,format:new _("",{nonNullable:!0,validators:[C.required]}),address:new _("",{nonNullable:!0}),link:new _("",{nonNullable:!0}),visible:new _(!0,{nonNullable:!0})}),this.controls.link?.disable()}get format(){return this.controls.format}get presentations(){return this.controls.presentations}get leaders(){return this.controls.leaders}patch(o){if(this.patchValue(o),o.presentations){this.presentations.clear();for(let e of o.presentations)this.presentations.add(e)}if(o.leaders){this.leaders.clear();for(let e of o.leaders)this.leaders.add(e)}}onFormatChange(o=""){!this.controls.address||!this.controls.link||(o==="in-person"&&(this.controls.address.enable(),this.controls.address.addValidators(C.required),this.controls.link.disable(),this.controls.link.removeValidators(C.required)),o==="online"&&(this.controls.address.disable(),this.controls.address.removeValidators(C.required),this.controls.link.enable(),this.controls.address.addValidators(C.required)),o==="mixed"&&(this.controls.link.enable(),this.controls.link.addValidators(C.required),this.controls.address.enable(),this.controls.address.addValidators(C.required)),this.updateValueAndValidity({onlySelf:!0}))}getErrors(){let o={};for(let e in this.controls){let t=e;o[e]=this.controls[t]?.errors??null}return o}};var gt=(()=>{class i{router=m(le);route=m(se);cdr=m(zt);eventFacade=m(X);messageService=m(bi);searchLeaders=m(Fe);selectPresentation=m(hn);selectUser=m(Fe);saving=ae(!1);form=new rt;constructor(){this.route.data.pipe(W()).subscribe(({event:e})=>{if(e&&e.id&&(this.form.patch(e),this.form.onFormatChange(e.format),e.date)){let t=new Date(e.date);this.form.patchValue({date:t})}})}selectPresentations(){this.selectPresentation.open({multiple:!0}).pipe(B(1)).subscribe(t=>{if(t){for(let n of t)this.form.presentations.add(n);this.cdr.detectChanges()}})}selectLeaders(){this.selectUser.open({multiple:!0,onlyRole:"leader"}).pipe(B(1)).subscribe(t=>{if(t){for(let n of t)this.form.leaders.add(n);this.cdr.detectChanges()}})}onSubmit(){if(this.form.valid){this.saving.set(!0);let e=this.form.getRawValue();e.id?this.eventFacade.update(e).subscribe(this.#e):this.eventFacade.create(e).subscribe(this.#e)}else this.form.markAllAsTouched()}#e=e=>{this.saving.set(!1),this.messageService.open({message:"Armazenando informa\xE7\xF5es"}),e&&e.id&&this.router.navigate(["..",e.id],{relativeTo:this.route})};static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-event-admin-event"]],decls:17,vars:5,consts:[["id","event",3,"submit","formGroup"],[1,"event-tab-content"],["label","Descreva o evento","hint","Compat\xEDvel com markdown do Github","formControlName","description",3,"minRows","maxRows"],[3,"content"],["type","button","mat-button","",3,"click"],[1,"event-footer"],[3,"autoSave","saving"]],template:function(t,n){if(t&1&&(s(0,"form",0),f("submit",function(){return n.onSubmit()}),s(1,"section",1),p(2,"devmx-admin-event-form"),r(),s(3,"section",1)(4,"devmx-markdown-toolbar"),p(5,"devmx-markdown-editor",2)(6,"devmx-markdown-view",3),r()(),s(7,"section",1),p(8,"devmx-admin-event-leaders"),s(9,"button",4),f("click",function(){return n.selectLeaders()}),d(10," Adicionar outras pessoas "),r()(),s(11,"section",1),p(12,"devmx-admin-event-presentations"),s(13,"button",4),f("click",function(){return n.selectPresentations()}),d(14," Procure por conte\xFAdos "),r()(),s(15,"footer",5)(16,"devmx-auto-save-button",6),f("autoSave",function(){return n.onSubmit()}),r()()()),t&2){let a;u("formGroup",n.form),c(5),u("minRows",20)("maxRows",40),c(),u("content",(a=n.form.value.description)!==null&&a!==void 0?a:""),c(10),u("saving",n.saving())}},dependencies:[P,ze,Y,I,A,K,Ai,Ii,Li,Fn,Rn,Vn,Gn,w,Ce,Ri,Ze],styles:["[_nghost-%COMP%]{padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%] .event-tab[_ngcontent-%COMP%]{border-radius:.8em;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] form[_ngcontent-%COMP%] .event-tab-content[_ngcontent-%COMP%]{padding:2em 1em}[_nghost-%COMP%] form[_ngcontent-%COMP%] .event-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return i})();var xm=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},providers:Dn,component:vn,children:[{path:"meus-eventos/novo",data:{breadcrumb:"Novo"},title:"Novo evento",component:gt},{path:"meus-eventos/:id",data:{breadcrumb:i=>i.event.title},title:"Meu evento",resolve:{event:kn},component:gt},{path:"meus-eventos",data:{breadcrumb:"Meus eventos"},title:"Meus eventos",component:On},{path:"gerenciar-eventos",data:{breadcrumb:"Gerenciar eventos"},title:"Gerenciar eventos",canActivate:[Bi("director","manager","staff")],component:Pn},{path:"",pathMatch:"prefix",redirectTo:"meus-eventos"}]}];export{vn as EventFeatureAdminComponent,xm as eventFeatureAdminRoutes}; + )`}fireChangeEvent(e){let t=this.image,n=t.naturalWidth/t.clientWidth;e=new DOMRect(Math.round(e.x*n),Math.round(e.y*n),Math.round(e.width*n),Math.round(e.height*n)),this.cropChange.emit(e)}stopUpdate(){this.#t=null,this.box.classList.remove("nwse","nesw")}startUpdate(e){if(!(e.target instanceof HTMLElement))return;let t="touches"in e?e.touches[0].pageX:e.pageX,n="touches"in e?e.touches[0].pageY:e.pageY;this.#t=new Ue(t,n)}moveCropArea(e){if(!this.#t)return;let t="touches"in e?e.touches[0].pageX:e.pageX,n="touches"in e?e.touches[0].pageY:e.pageY,a=t-this.#t.x,l=n-this.#t.y,v=this.box,b=this.image,{offsetLeft:j,offsetTop:be,offsetWidth:J,offsetHeight:ee}=v,ye=Math.min(Math.max(0,j+a),b.clientWidth-J),st=Math.min(Math.max(0,be+l),b.clientHeight-ee);v.style.left=`${ye}px`,v.style.top=`${st}px`,this.updateOverlay(ye,st,J,ee);let qn=new DOMRect(ye,st,J,ee);this.fireChangeEvent(qn),this.#t=new Ue(t,n)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-crop-image"]],viewQuery:function(t,n){t&1&&(te(n.boxRef,Un,5),te(n.overlayRef,zn,5),te(n.imageRef,Qn,5)),t&2&&Ae(3)},hostBindings:function(t,n){t&1&&f("mouseup",function(){return n.stopUpdate()},!1,Se)("touchend",function(){return n.stopUpdate()},!1,Se)("mousedown",function(l){return n.startUpdate(l)})("mousemove",function(l){return n.moveCropArea(l)},!1,Se)("touchmove",function(l){return n.moveCropArea(l)},!1,Se)},inputs:{src:[1,"src"],aspectRatio:[1,"aspectRatio"],width:[1,"width"],height:[1,"height"]},outputs:{cropChange:"cropChange"},decls:9,vars:1,consts:[["image",""],["box",""],["overlay",""],[1,"crop-wrapper"],["alt","imagem para recorte",1,"crop-image",3,"src"],[1,"crop-container"],[1,"crop-box"],[1,"crop-outline"],[1,"crop-overlay"]],template:function(t,n){t&1&&(s(0,"div",3),p(1,"img",4,0),s(3,"div",5)(4,"div",6,1),p(6,"div",7),r(),p(7,"div",8,2),r()()),t&2&&(c(),u("src",n.src(),Ot))},styles:["[_nghost-%COMP%]{display:block;touch-action:none;position:relative}[_nghost-%COMP%] .crop-wrapper[_ngcontent-%COMP%]{position:relative;font-size:0}[_nghost-%COMP%] .crop-container[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:2;top:0}[_nghost-%COMP%] .crop-image[_ngcontent-%COMP%]{display:block;max-width:100%;width:100%}[_nghost-%COMP%] .crop-box[_ngcontent-%COMP%]{position:absolute;border:1px dashed #ccc;box-sizing:border-box;background-color:transparent;cursor:move;z-index:3}[_nghost-%COMP%] .crop-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:#00000080;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:none;z-index:1}"],changeDetection:0})}return i})();function Cn({width:i,height:o}){let e=document.createElement("canvas");e.width=i,e.height=o;let t=e.getContext("2d");if(!t)throw"context error";return t}function xn(i,o){let e=Cn(i),t=Cn(o);return e.drawImage(i,0,0),t.drawImage(e.canvas,o.x,o.y,o.width,o.height,0,0,o.width,o.height),t.canvas.toDataURL("image/webp")}var yn=(()=>{class i{ref=m(qi);data=m(Ui);src;form=new et;position=new DOMRect;constructor(){this.src=URL.createObjectURL(this.data)}onCropChange(e){this.position=e}onCrop(){return Mt(this,null,function*(){let e=yield fn(this.src),t=xn(e,this.position);this.form.patchValue({src:t}),this.ref.close(this.form.getRawValue())})}close(){this.ref.close()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-select-cover"]],decls:8,vars:3,consts:[[3,"cropChange","src","width"],[3,"submit","formGroup"],["matInput","","formControlName","alt"],["mat-icon-button",""],["name","menu/crop"]],template:function(t,n){t&1&&(s(0,"devmx-crop-image",0),f("cropChange",function(l){return n.onCropChange(l)}),r(),s(1,"form",1),f("submit",function(){return n.onCrop()}),s(2,"mat-form-field")(3,"mat-label"),d(4,"Texto alternativo"),r(),p(5,"input",2),r(),s(6,"button",3),p(7,"devmx-icon",4),r()()),t&2&&(u("src",n.src)("width",980),c(),u("formGroup",n.form))},dependencies:[P,ze,Q,Y,I,A,K,de,pe,ce,gn,Me,xe,w,L,R],styles:["[_nghost-%COMP%]{gap:1em;display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:1em}"],changeDetection:0})}return i})();var it=class{dialog;constructor(o){this.dialog=o}open(o){return this.dialog.open(yn,{data:o}).closed.pipe(B(1))}};function En(){return{provide:it,deps:[zi]}}var dt=(i,o)=>o.id;function Yn(i,o){i&1&&p(0,"devmx-icon",5)}function Kn(i,o){i&1&&p(0,"devmx-icon",6)}function Wn(i,o){i&1&&p(0,"devmx-icon",7)}function Xn(i,o){if(i&1&&(s(0,"mat-list-item")(1,"span",4),d(2),r(),x(3,Yn,1,0,"devmx-icon",5)(4,Kn,1,0,"devmx-icon",6)(5,Wn,1,0,"devmx-icon",7),r()),i&2){let e,t=o.$implicit;c(2),F(" ",t.user.displayName," "),c(),O((e=t.status)==="confirmed"?3:e==="maybe"?4:e==="declined"?5:-1)}}function Zn(i,o){i&1&&p(0,"devmx-icon",5)}function Jn(i,o){i&1&&p(0,"devmx-icon",6)}function eo(i,o){i&1&&p(0,"devmx-icon",7)}function to(i,o){if(i&1&&(s(0,"mat-list-item")(1,"span",4),d(2),r(),x(3,Zn,1,0,"devmx-icon",5)(4,Jn,1,0,"devmx-icon",6)(5,eo,1,0,"devmx-icon",7),r()),i&2){let e,t=o.$implicit;c(2),F(" ",t.user.displayName," "),c(),O((e=t.status)==="confirmed"?3:e==="maybe"?4:e==="declined"?5:-1)}}function io(i,o){i&1&&p(0,"devmx-icon",5)}function no(i,o){i&1&&p(0,"devmx-icon",6)}function oo(i,o){i&1&&p(0,"devmx-icon",7)}function ao(i,o){if(i&1&&(s(0,"mat-list-item")(1,"span",4),d(2),r(),x(3,io,1,0,"devmx-icon",5)(4,no,1,0,"devmx-icon",6)(5,oo,1,0,"devmx-icon",7),r()),i&2){let e,t=o.$implicit;c(2),F(" ",t.user.displayName," "),c(),O((e=t.status)==="confirmed"?3:e==="maybe"?4:e==="declined"?5:-1)}}var wn=(()=>{class i{ref=m(Yi);data=m(Ki);static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-event-rsvp"]],decls:24,vars:13,consts:[["mat-dialog-title",""],["mat-subheader",""],["align","end"],["mat-button","","mat-dialog-close",""],["matListItemTitle",""],["matListItemMeta","","name","emoji/happy"],["matListItemMeta","","name","emoji/confused"],["matListItemMeta","","name","emoji/crying"]],template:function(t,n){if(t&1&&(s(0,"h2",0),d(1),r(),s(2,"mat-list"),Ne(3),z(4,"rsvpByStatus"),s(5,"h3",1),d(6),r(),T(7,Xn,6,2,"mat-list-item",null,dt),Ne(9),z(10,"rsvpByStatus"),s(11,"h3",1),d(12),r(),T(13,to,6,2,"mat-list-item",null,dt),Ne(15),z(16,"rsvpByStatus"),s(17,"h3",1),d(18),r(),T(19,ao,6,2,"mat-list-item",null,dt),r(),s(21,"mat-dialog-actions",2)(22,"button",3),d(23,"Fechar"),r()()),t&2){c(),F("",n.data.length," respostas");let a=$e(4,4,n.data,"confirmed");c(5),F("",a.length," confirmado(s)"),c(),D(a);let l=$e(10,7,n.data,"maybe");c(5),F("",l.length," em d\xFAvida"),c(),D(l);let v=$e(16,10,n.data,"declined");c(5),F("",v.length," declinado(s)"),c(),D(v)}},dependencies:[Zi,Ji,Xi,w,Ce,ge,he,_e,ve,ue,fe,R,Gi],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.6em;font-weight:500}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:1em;font-weight:400;margin:0 1em;opacity:.6}"],changeDetection:0})}return i})();var Z=class{dialog;constructor(o){this.dialog=o}open(o){return this.dialog.open(wn,{data:o}).afterClosed().pipe(B(1))}};function Tn(){return{provide:Z,deps:[Wi]}}var Dn=[_n(),tn(),En(),Tn(),Qi()];var kn=i=>xi(m(X),i.params);function ro(i,o){i&1&&(s(0,"th",15),d(1,"T\xEDtulo do evento"),r())}function so(i,o){if(i&1&&(s(0,"td",16),d(1),r()),i&2){let e=o.$implicit;c(),q(e.title)}}function lo(i,o){i&1&&(s(0,"th",15),d(1,"Criado por"),r())}function mo(i,o){if(i&1&&(s(0,"td",16),d(1),r()),i&2){let e=o.$implicit;c(),q(e.owner.displayName)}}function co(i,o){i&1&&p(0,"th",15)}function po(i,o){if(i&1){let e=k();s(0,"td",16)(1,"button",17),f("click",function(){let n=y(e).$implicit,a=M(2);return E(a.openDelete(n))}),p(2,"devmx-icon",18),r()()}}function uo(i,o){i&1&&p(0,"tr",19)}function fo(i,o){i&1&&p(0,"tr",20)}function ho(i,o){if(i&1){let e=k();s(0,"table",5),$(1,6),x(2,ro,2,0,"th",7)(3,so,2,1,"td",8),H(),$(4,9),x(5,lo,2,0,"th",7)(6,mo,2,1,"td",8),H(),$(7,10),x(8,co,1,0,"th",7)(9,po,3,0,"td",8),H(),x(10,uo,1,0,"tr",11)(11,fo,1,0,"tr",12),r(),s(12,"mat-card-actions",13)(13,"devmx-paginator",14),f("pageChange",function(n){y(e);let a=M();return E(a.onPageChange(n))}),r()()}if(i&2){let e=o,t=M();u("dataSource",e.data),c(10),u("matHeaderRowDef",t.columns),c(),u("matRowDefColumns",t.columns),c(2),u("size",10)("items",e.items)}}var Pn=(()=>{class i{router=m(le);route=m(se);dialogFacade=m(Je);eventFacade=m(X);rsvpFacade=m(We);eventRSVP=m(Z);selectUser=m(Fe);#e=li(null);columns=["title","owner","actions"];constructor(){let e=this.#e.observe().pipe(ne(n=>n?n.id:"")),t=this.route.queryParams.pipe(ne(({page:n,size:a,title:l,format:v,date:b})=>({page:n,size:a,title:l,format:v,date:b})));Re([e,t]).pipe(W()).subscribe(this.onQueryParams),this.eventFacade.loadAll()}setUserRef(e=null){this.#e.update(e)}onQueryParams=([e,t])=>{let{page:n,size:a,title:l,format:v,date:b}=t,j={title:l,format:v,date:b,owner:e};this.eventFacade.setParams({page:n,size:a,filter:j}),this.eventFacade.load()};openSelectUser(){this.selectUser.open({onlyRole:"leader",multiple:!1}).subscribe(e=>{e&&this.#e.update(e)})}openRSVP(e){this.rsvpFacade.load(e),this.rsvpFacade.response$.pipe(oe(1),B(1)).subscribe(t=>{t&&this.eventRSVP.open(t)})}openDelete({id:e,title:t}){this.dialogFacade.confirm(`Confirme que deseja apagar o evento ${t}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(n=>{n&&this.eventFacade.delete(e)})}onSearchChange(e=""){this.eventFacade.setFilter({title:e}),this.eventFacade.loadAll()}onPageChange({page:e,size:t}){let n={page:e,size:t};this.router.navigate([],{queryParams:n})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-event-admin-manage-events"]],decls:10,vars:4,consts:[[1,"events-card"],[1,"events-card-header"],["mat-icon-button","",3,"click"],["name","filter"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","owner"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(t,n){if(t&1&&(s(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),d(3,"Eventos"),r(),s(4,"div")(5,"button",2),f("click",function(){return n.openSelectUser()}),p(6,"devmx-icon",3),r(),s(7,"devmx-search-field",4),f("searchChange",function(l){return n.onSearchChange(l)}),r()()(),x(8,ho,14,5),z(9,"async"),r()),t&2){let a;c(7),u("debounce",1e3),c(),O((a=Be(9,2,n.eventFacade.response$))?8:-1,a)}},dependencies:[Ge,w,L,en,Xe,un,nn,an,mn,rn,on,cn,sn,ln,pn,dn,Ze,Di,Pi,Oi,ki,R,Yt],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .events-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .events-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .events-card-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;align-items:baseline}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:3em}"],changeDetection:0})}return i})();var _o=(i,o)=>o.id,vo=()=>[lt,hi,L,Si,import("./chunk-SZNPDBBQ.js").then(i=>i.EventCardComponent),Xe,R,import("./chunk-QQ3DFMVY.js").then(i=>i.AsyncPipe)],go=i=>["/","evento",i];function Co(i,o){if(i&1){let e=k();s(0,"devmx-event-card",3)(1,"button",7),f("click",function(){let n=y(e).$implicit,a=M(3);return E(a.openRSVP(n.id))}),p(2,"devmx-icon",8),r(),s(3,"a",9),p(4,"devmx-icon",10),r(),s(5,"a",11),p(6,"devmx-icon",12),r(),s(7,"button",13),f("click",function(){let n=y(e).$implicit,a=M(3);return E(a.copyEvent(n))}),p(8,"devmx-icon",14),r(),s(9,"button",15),f("click",function(){let n=y(e).$implicit,a=M(3);return E(a.deleteEvent(n))}),p(10,"devmx-icon",16),r()()}if(i&2){let e=o.$implicit;u("data",e),c(3),u("routerLink",qt(3,go,e.id)),c(2),u("routerLink",e.id)}}function xo(i,o){i&1&&(s(0,"div",4)(1,"h2"),d(2,"N\xE3o temos nada aqui..."),r(),s(3,"h3"),d(4," Siga nessa dire\xE7\xE3o "),p(5,"devmx-icon",17)(6,"br"),d(7," at\xE9 encontrar o bot\xE3o com um "),p(8,"devmx-icon",18)(9,"br"),d(10," e cadastre suas eventos. "),p(11,"devmx-icon",19),r()()),i&2&&(c(5),u("size",32),c(3),u("size",32),c(3),u("size",32))}function Mo(i,o){if(i&1){let e=k();s(0,"div",2),T(1,Co,11,5,"devmx-event-card",3,_o),r(),x(3,xo,12,3,"div",4),p(4,"div",5),s(5,"footer")(6,"devmx-paginator",6),f("pageChange",function(n){y(e);let a=M(2);return E(a.onPageChange(n))}),r()()}if(i&2){let e=o;c(),D(e.data),c(2),O(e.items?-1:3),c(3),u("size",10)("items",e.items)}}function bo(i,o){if(i&1&&(x(0,Mo,7,3),z(1,"async")),i&2){let e,t=M();O((e=Be(1,1,t.eventFacade.response$))?0:-1,e)}}function yo(i,o){i&1&&(s(0,"div",2),p(1,"devmx-skeleton",20)(2,"devmx-skeleton",20)(3,"devmx-skeleton",20),r()),i&2&&(c(),u("rows",3),c(),u("rows",2),c(),u("rows",3))}var On=(()=>{class i{router=m(le);route=m(se);dialogFacade=m(Je);authFacade=m(Fi);eventFacade=m(X);rsvpFacade=m(We);eventRSVP=m(Z);constructor(){let e=this.authFacade.auth$.pipe(bt(n=>!!n),ne(({id:n})=>n)),t=this.route.queryParams.pipe(ne(({page:n,size:a,title:l,format:v,date:b})=>({page:n,size:a,title:l,format:v,date:b})));Re([e,t]).pipe(W()).subscribe(this.onQueryParams)}onQueryParams=([e,t])=>{let{page:n,size:a,title:l,format:v,date:b}=t,j={title:l,format:v,date:b,owner:e};this.eventFacade.setParams({page:n,size:a,filter:j}),this.eventFacade.loadMyEvents()};openRSVP(e){this.rsvpFacade.load(e),this.rsvpFacade.response$.pipe(oe(1),B(1)).subscribe(t=>{t&&this.eventRSVP.open(t)})}copyEvent(e){this.dialogFacade.prompt("Qual nome do evento?",e.title,!0).subscribe(t=>{t&&this.eventFacade.copy(xt(Ct({},e),{title:t})).subscribe(({id:n})=>{this.router.navigate([n],{relativeTo:this.route})})})}deleteEvent({id:e,title:t}){this.dialogFacade.confirm(`Confirme que deseja apagar ${t}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(n=>{n&&this.eventFacade.delete(e)})}onPageChange({page:e,size:t}){let n={page:e,size:t};this.router.navigate([],{queryParams:n})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-event-admin-my-events"]],decls:6,vars:0,consts:[["mat-fab","","routerLink","novo",1,"tertiary-fab","top","right"],["name","plus"],[1,"events-container"],[3,"data"],[1,"no-events-yet"],[1,"spacer"],[3,"pageChange","size","items"],["mat-icon-button","","matTooltip","Lista de presen\xE7a","matTooltipPosition","before",3,"click"],["name","doc/check"],["mat-icon-button","","matTooltip","P\xE1gina p\xFAblica","matTooltipPosition","above",3,"routerLink"],["name","software/web-info"],["mat-icon-button","","matTooltip","Editar evento","matTooltipPosition","above",3,"routerLink"],["name","software/edit"],["type","button","mat-icon-button","","matTooltip","Copiar evento","matTooltipPosition","above",3,"click"],["name","doc/copy"],["type","button","mat-icon-button","","matTooltip","Apagar evento","matTooltipPosition","after",3,"click"],["name","trash-alt"],["color","#3BCE53","name","arrow/up-right",3,"size"],["color","#3BCE53","name","plus",3,"size"],["color","#3BCE53","name","emoji/smirking-alt",3,"size"],[3,"rows"]],template:function(t,n){t&1&&(s(0,"a",0),p(1,"devmx-icon",1),r(),x(2,bo,2,3)(3,yo,4,3),Bt(4,2,vo,null,3),$t(500))},dependencies:[Ge,lt,w,fi,wi,Ti,R],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(3,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .events-container[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1;display:flex}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .no-events-yet[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}[_nghost-%COMP%] .no-events-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .no-events-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;white-space:normal}[_nghost-%COMP%] .no-events-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:160%}[_nghost-%COMP%] .no-events-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:120%;text-align:end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return i})();var Eo=(i,o)=>o.value;function So(i,o){if(i&1){let e=k();s(0,"mat-list-item"),p(1,"devmx-icon",3),s(2,"span",4),d(3),r(),s(4,"button",5),f("click",function(){let n=y(e).$index,a=M(2);return E(a.form.presentations.removeAt(n))}),p(5,"devmx-icon",6),r()()}if(i&2){let e=o.$implicit;c(3),q(e.value.title)}}function wo(i,o){if(i&1&&(s(0,"mat-list",1)(1,"p",2),d(2,"Palestras"),r(),T(3,So,6,1,"mat-list-item",null,Eo),r()),i&2){let e=M();c(3),D(e.form.presentations.controls)}}var Fn=(()=>{class i{container=m(S);get form(){return this.container.control}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-admin-event-presentations"]],features:[V([],[{provide:S,useFactory:()=>m(S,{skipSelf:!0})}])],decls:2,vars:2,consts:[[3,"formGroup"],["formArrayName","presentations"],["mat-subheader",""],["matListItemIcon","","name","presentation"],["matListItemTitle",""],["type","button","mat-icon-button","","matListItemMeta","",3,"click"],["name","trash"]],template:function(t,n){t&1&&($(0,0),x(1,wo,5,0,"mat-list",1),H()),t&2&&(u("formGroup",n.form),c(),O(n.form.presentations.controls.length?1:-1))},dependencies:[P,I,A,Qe,ge,he,_e,Ke,ve,ue,fe,w,L,R],encapsulation:2,changeDetection:0})}return i})();var To=(i,o)=>o.value;function Do(i,o){if(i&1){let e=k();s(0,"mat-list-item"),p(1,"devmx-icon",3),s(2,"span",4),d(3),r(),s(4,"button",5),f("click",function(){let n=y(e).$index,a=M(2);return E(a.form.leaders.removeAt(n))}),p(5,"devmx-icon",6),r()()}if(i&2){let e=o.$implicit;c(3),q(e.value.displayName)}}function ko(i,o){if(i&1&&(s(0,"mat-list",1)(1,"p",2),d(2,"L\xEDderes"),r(),T(3,Do,6,1,"mat-list-item",null,To),r()),i&2){let e=M();c(3),D(e.form.leaders.controls)}}var Vn=(()=>{class i{container=m(S);get form(){return this.container.control}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-admin-event-leaders"]],features:[V([],[{provide:S,useFactory:()=>m(S,{skipSelf:!0})}])],decls:2,vars:2,consts:[[3,"formGroup"],["formArrayName","leaders"],["mat-subheader",""],["matListItemIcon","","name","user-circle"],["matListItemTitle",""],["type","button","mat-icon-button","","matListItemMeta","",3,"click"],["name","trash"]],template:function(t,n){t&1&&($(0,0),x(1,ko,5,0,"mat-list",1),H()),t&2&&(u("formGroup",n.form),c(),O(n.form.leaders.controls.length?1:-1))},dependencies:[P,I,A,Qe,ge,he,_e,Ke,ve,ue,fe,w,L,R],encapsulation:2,changeDetection:0})}return i})();var Rn=(()=>{class i{container=m(S);get form(){return this.container.control}destroyRef=m(kt);saving=g.required();autoSave=U();ngAfterViewInit(){this.form.valueChanges.pipe(W(this.destroyRef),yt(4e3),oe(1)).subscribe(()=>this.autoSave.emit(this.form.getRawValue()))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-auto-save-button"]],inputs:{saving:[1,"saving"]},outputs:{autoSave:"autoSave"},features:[V([],[{provide:S,useFactory:()=>m(S,{skipSelf:!0})}])],decls:2,vars:2,consts:[["mat-flat-button","",3,"disabled"]],template:function(t,n){t&1&&(s(0,"button",0),d(1),r()),t&2&&(u("disabled",n.saving()),c(),F(" ",n.saving()?"Salvando...":"Salvar"," "))},dependencies:[P,w,Ce],encapsulation:2,changeDetection:0})}return i})();var Ro=["panelTemplate"],Io=(i,o)=>o.value;function Ao(i,o){if(i&1){let e=k();s(0,"mat-option",3),f("onSelectionChange",function(){let n=y(e).$implicit,a=M(2);return E(a._selectValue(n.value))}),d(1),r()}if(i&2){let e=o.$implicit;u("value",e.value),c(),q(e.label)}}function Lo(i,o){if(i&1&&(s(0,"div",1),T(1,Ao,2,2,"mat-option",2,Io),r()),i&2){let e=M();u("id",e.panelId)("@panel",void 0),we("aria-label",e.ariaLabel()||null)("aria-labelledby",e._getAriaLabelledby()),c(),D(e._timeOptions)}}var No=[[["","matTimepickerToggleIcon",""]]],Bo=["[matTimepickerToggleIcon]"];function $o(i,o){i&1&&(wt(),s(0,"svg",1),p(1,"path",2),r())}var Ho=/^(\d*\.?\d+)\s*(h|hour|hours|m|min|minute|minutes|s|second|seconds)?$/i,Ln=new St("MAT_TIMEPICKER_CONFIG");function In(i){let o;if(i===null)return null;if(typeof i=="number")o=i;else{if(i.trim().length===0)return null;let e=i.match(Ho),t=e?parseFloat(e[1]):null,n=e?.[2]?.toLowerCase()||null;if(!e||t===null||isNaN(t))return null;n==="h"||n==="hour"||n==="hours"?o=t*3600:n==="m"||n==="min"||n==="minute"||n==="minutes"?o=t*60:o=t}return o}function Go(i,o,e,t,n){let a=[],l=i.compareTime(e,t)<1?e:t;for(;i.sameDate(l,e)&&i.compareTime(l,t)<1&&i.isValid(l);)a.push({value:l,label:i.format(l,o.display.timeOptionLabel)}),l=i.addSeconds(l,n);return a}var ft=(()=>{class i{_overlay=m(Mi);_dir=m(ii,{optional:!0});_viewContainerRef=m(It);_injector=m(Tt);_defaultConfig=m(Ln,{optional:!0});_dateAdapter=m(Oe,{optional:!0});_dateFormats=m(pt,{optional:!0});_isOpen=ae(!1);_activeDescendant=ae(null);_input;_overlayRef=null;_portal=null;_optionsCacheKey=null;_localeChanges;_onOpenRender=null;_panelTemplate=re.required("panelTemplate");_timeOptions=[];_options=At(me);_keyManager=new ei(this._options,this._injector).withHomeAndEnd(!0).withPageUpDown(!0).withVerticalOrientation(!0);interval=g(In(this._defaultConfig?.interval||null),{transform:In});options=g(null);isOpen=this._isOpen.asReadonly();selected=U();opened=U();closed=U();activeDescendant=this._activeDescendant.asReadonly();panelId=m(ti).getId("mat-timepicker-panel-");disableRipple=g(this._defaultConfig?.disableRipple??!1,{transform:Te});ariaLabel=g(null,{alias:"aria-label"});ariaLabelledby=g(null,{alias:"aria-labelledby"});constructor(){m(Ee).nativeElement.setAttribute("mat-timepicker-panel-id",this.panelId),this._handleLocaleChanges(),this._handleInputStateChanges(),this._keyManager.change.subscribe(()=>this._activeDescendant.set(this._keyManager.activeItem?.id||null))}open(){if(!this._input||(this._input.focus(),this._isOpen()))return;this._isOpen.set(!0),this._generateOptions();let e=this._getOverlayRef();e.updateSize({width:this._input.getOverlayOrigin().nativeElement.offsetWidth}),this._portal??=new _i(this._panelTemplate(),this._viewContainerRef),e.attach(this._portal),this._onOpenRender?.destroy(),this._onOpenRender=Pt(()=>{let t=this._options();this._syncSelectedState(this._input.value(),t,t[0]),this._onOpenRender=null},{injector:this._injector}),this.opened.emit()}close(){this._isOpen()&&(this._isOpen.set(!1),this._overlayRef?.detach(),this.closed.emit())}registerInput(e){this._input&&this._input,this._input=e}ngOnDestroy(){this._keyManager.destroy(),this._localeChanges.unsubscribe(),this._onOpenRender?.destroy(),this._overlayRef?.dispose()}_selectValue(e){this.close(),this.selected.emit({value:e,source:this}),this._input.focus()}_getAriaLabelledby(){return this.ariaLabel()?null:this.ariaLabelledby()||this._input?._getLabelId()||null}_getOverlayRef(){if(this._overlayRef)return this._overlayRef;let e=this._overlay.position().flexibleConnectedTo(this._input.getOverlayOrigin()).withFlexibleDimensions(!1).withPush(!1).withTransformOriginOn(".mat-timepicker-panel").withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-timepicker-above"}]);return this._overlayRef=this._overlay.create({positionStrategy:e,scrollStrategy:this._overlay.scrollStrategies.reposition(),direction:this._dir||"ltr",hasBackdrop:!1}),this._overlayRef.keydownEvents().subscribe(t=>{this._handleKeydown(t)}),this._overlayRef.outsidePointerEvents().subscribe(t=>{let n=Jt(t),a=this._input.getOverlayOrigin().nativeElement;n&&n!==a&&!a.contains(n)&&this.close()}),this._overlayRef}_generateOptions(){let e=this.interval()??1800,t=this.options();if(t!==null)this._timeOptions=t;else{let n=this._dateAdapter,a=this._dateFormats.display.timeInput,l=this._input.min()||n.setTime(n.today(),0,0,0),v=this._input.max()||n.setTime(n.today(),23,59,0),b=e+"/"+n.format(l,a)+"/"+n.format(v,a);b!==this._optionsCacheKey&&(this._optionsCacheKey=b,this._timeOptions=Go(n,this._dateFormats,l,v,e))}}_syncSelectedState(e,t,n){let a=!1;for(let l of t)e&&this._dateAdapter.sameTime(l.value,e)?(l.select(!1),ut(l,"center"),He(()=>this._keyManager.setActiveItem(l)),a=!0):l.deselect(!1);a||(n?(He(()=>this._keyManager.setActiveItem(n)),ut(n,"center")):He(()=>this._keyManager.setActiveItem(-1)))}_handleKeydown(e){let t=e.keyCode;if(t===9)this.close();else if(t===27&&!ct(e))e.preventDefault(),this.close();else if(t===13)e.preventDefault(),this._keyManager.activeItem?this._selectValue(this._keyManager.activeItem.value):this.close();else{let n=this._keyManager.activeItem;this._keyManager.onKeydown(e);let a=this._keyManager.activeItem;a&&a!==n&&ut(a,"nearest")}}_handleLocaleChanges(){this._localeChanges=this._dateAdapter.localeChanges.subscribe(()=>{this._optionsCacheKey=null,this.isOpen()&&this._generateOptions()})}_handleInputStateChanges(){ke(()=>{let e=this._input?.value(),t=this._options();this._isOpen()&&this._syncSelectedState(e,t,null)})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["mat-timepicker"]],viewQuery:function(t,n){t&1&&(te(n._panelTemplate,Ro,5),te(n._options,me,5)),t&2&&Ae(2)},inputs:{interval:[1,"interval"],options:[1,"options"],disableRipple:[1,"disableRipple"],ariaLabel:[1,"aria-label","ariaLabel"],ariaLabelledby:[1,"aria-labelledby","ariaLabelledby"]},outputs:{selected:"selected",opened:"opened",closed:"closed"},exportAs:["matTimepicker"],features:[V([{provide:oi,useExisting:i}])],decls:2,vars:0,consts:[["panelTemplate",""],["role","listbox",1,"mat-timepicker-panel",3,"id"],[3,"value"],[3,"onSelectionChange","value"]],template:function(t,n){t&1&&x(0,Lo,3,4,"ng-template",null,0,Ut)},dependencies:[me],styles:["mat-timepicker{display:none}.mat-timepicker-panel{width:100%;max-height:256px;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;border-bottom-left-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-timepicker-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-timepicker-container-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){.mat-timepicker-panel{outline:solid 1px}}.mat-timepicker-above .mat-timepicker-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small))}.mat-timepicker-input:read-only{cursor:pointer}@media(forced-colors: active){.mat-timepicker-toggle-default-icon{color:CanvasText}}"],encapsulation:2,data:{animation:[Wt("panel",[Zt("void",Pe({opacity:0,transform:"scaleY(0.8)"})),mt(":enter",[Xt([je("0.03s linear",Pe({opacity:1})),je("0.12s cubic-bezier(0, 0, 0.2, 1)",Pe({transform:"scaleY(1)"}))])]),mt(":leave",[je("0.075s linear",Pe({opacity:0}))])])]},changeDetection:0})}return i})();function ut(i,o){i._getHostElement().scrollIntoView({block:o,inline:o})}var Nn=(()=>{class i{_elementRef=m(Ee);_document=m(Qt);_dateAdapter=m(Oe,{optional:!0});_dateFormats=m(pt,{optional:!0});_formField=m(ri,{optional:!0});_onChange;_onTouched;_validatorOnChange;_accessorDisabled=ae(!1);_localeSubscription;_timepickerSubscription;_validator;_lastValueValid=!0;_lastValidDate=null;_ariaActiveDescendant=De(()=>{let e=this.timepicker(),t=e.isOpen(),n=e.activeDescendant();return t&&n?n:null});_ariaExpanded=De(()=>this.timepicker().isOpen()+"");_ariaControls=De(()=>{let e=this.timepicker();return e.isOpen()?e.panelId:null});value=Lt(null);timepicker=g.required({alias:"matTimepicker"});min=g(null,{alias:"matTimepickerMin",transform:e=>this._transformDateInput(e)});max=g(null,{alias:"matTimepickerMax",transform:e=>this._transformDateInput(e)});disabled=De(()=>this.disabledInput()||this._accessorDisabled());disabledInput=g(!1,{transform:Te,alias:"disabled"});constructor(){this._validator=this._getValidator(),this._respondToValueChanges(),this._respondToMinMaxChanges(),this._registerTimepicker(),this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._hasFocus()||this._formatValue(this.value())}),this.getOverlayOrigin().nativeElement.addEventListener("click",this._handleClick)}writeValue(e){this.value.set(this._dateAdapter.getValidDateOrNull(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._accessorDisabled.set(e)}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._validatorOnChange=e}getOverlayOrigin(){return this._formField?.getConnectedOverlayOrigin()||this._elementRef}focus(){this._elementRef.nativeElement.focus()}ngOnDestroy(){this.getOverlayOrigin().nativeElement.removeEventListener("click",this._handleClick),this._timepickerSubscription?.unsubscribe(),this._localeSubscription.unsubscribe()}_getLabelId(){return this._formField?.getLabelId()||null}_handleClick=()=>{this.timepicker().open()};_handleInput(e){let t=this.value(),n=this._dateAdapter.parseTime(e,this._dateFormats.parse.timeInput),a=!this._dateAdapter.sameTime(n,t);!n||a||e&&!t?this._assignUserSelection(n,!0):this._validatorOnChange?.()}_handleBlur(){let e=this.value();e&&this._isValid(e)&&this._formatValue(e),this._onTouched?.()}_handleKeydown(e){this.timepicker().isOpen()||(e.keyCode===27&&!ct(e)&&this.value()!==null?(e.preventDefault(),this.value.set(null),this._formatValue(null)):(e.keyCode===40||e.keyCode===38)&&!this.disabled()&&(e.preventDefault(),this.timepicker().open()))}_respondToValueChanges(){ke(()=>{let e=this._dateAdapter.deserialize(this.value()),t=this._lastValueValid;this._lastValueValid=this._isValid(e),this._hasFocus()||this._formatValue(e),e&&this._lastValueValid&&(this._lastValidDate=e),t!==this._lastValueValid&&this._validatorOnChange?.()})}_registerTimepicker(){ke(()=>{let e=this.timepicker();e.registerInput(this),e.closed.subscribe(()=>this._onTouched?.()),e.selected.subscribe(({value:t})=>{this._dateAdapter.sameTime(t,this.value())||(this._assignUserSelection(t,!0),this._formatValue(t))})})}_respondToMinMaxChanges(){ke(()=>{this.min(),this.max(),this._validatorOnChange?.()})}_assignUserSelection(e,t){if(e==null||!this._isValid(e))this.value.set(e);else{let n=this._dateAdapter,a=n.getValidDateOrNull(this._lastValidDate||this.value()),l=n.getHours(e),v=n.getMinutes(e),b=n.getSeconds(e);this.value.set(a?n.setTime(a,l,v,b):e)}t&&this._onChange?.(this.value())}_formatValue(e){e=this._dateAdapter.getValidDateOrNull(e),this._elementRef.nativeElement.value=e==null?"":this._dateAdapter.format(e,this._dateFormats.display.timeInput)}_isValid(e){return!e||this._dateAdapter.isValid(e)}_transformDateInput(e){let t=typeof e=="string"?this._dateAdapter.parseTime(e,this._dateFormats.parse.timeInput):this._dateAdapter.deserialize(e);return t&&this._dateAdapter.isValid(t)?t:null}_hasFocus(){return this._document.activeElement===this._elementRef.nativeElement}_getValidator(){return C.compose([()=>this._lastValueValid?null:{matTimepickerParse:{text:this._elementRef.nativeElement.value}},e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),n=this.min();return!n||!t||this._dateAdapter.compareTime(n,t)<=0?null:{matTimepickerMin:{min:n,actual:t}}},e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),n=this.max();return!n||!t||this._dateAdapter.compareTime(n,t)>=0?null:{matTimepickerMax:{max:n,actual:t}}}])}static \u0275fac=function(t){return new(t||i)};static \u0275dir=Rt({type:i,selectors:[["input","matTimepicker",""]],hostAttrs:["role","combobox","type","text","aria-haspopup","listbox",1,"mat-timepicker-input"],hostVars:5,hostBindings:function(t,n){if(t&1&&f("blur",function(){return n._handleBlur()})("input",function(l){return n._handleInput(l.target.value)})("keydown",function(l){return n._handleKeydown(l)}),t&2){let a;Ht("disabled",n.disabled()),we("aria-activedescendant",n._ariaActiveDescendant())("aria-expanded",n._ariaExpanded())("aria-controls",n._ariaControls())("mat-timepicker-id",(a=n.timepicker())==null?null:a.panelId)}},inputs:{value:[1,"value"],timepicker:[1,"matTimepicker","timepicker"],min:[1,"matTimepickerMin","min"],max:[1,"matTimepickerMax","max"],disabledInput:[1,"disabled","disabledInput"]},outputs:{value:"valueChange"},exportAs:["matTimepickerInput"],features:[V([{provide:mi,useExisting:i,multi:!0},{provide:ci,useExisting:i,multi:!0},{provide:Vi,useExisting:i}])]})}return i})(),ht=(()=>{class i{_defaultConfig=m(Ln,{optional:!0});_defaultTabIndex=(()=>{let e=m(new Dt("tabindex"),{optional:!0}),t=Number(e);return isNaN(t)?null:t})();timepicker=g.required({alias:"for"});ariaLabel=g(void 0,{alias:"aria-label"});disabled=g(!1,{transform:Te,alias:"disabled"});tabIndex=g(this._defaultTabIndex);disableRipple=g(this._defaultConfig?.disableRipple??!1,{transform:Te});_open(e){this.timepicker()&&!this.disabled()&&(this.timepicker().open(),e.stopPropagation())}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["mat-timepicker-toggle"]],hostAttrs:[1,"mat-timepicker-toggle"],hostVars:1,hostBindings:function(t,n){t&1&&f("click",function(l){return n._open(l)}),t&2&&we("tabindex",null)},inputs:{timepicker:[1,"for","timepicker"],ariaLabel:[1,"aria-label","ariaLabel"],disabled:[1,"disabled"],tabIndex:[1,"tabIndex"],disableRipple:[1,"disableRipple"]},exportAs:["matTimepickerToggle"],ngContentSelectors:Bo,decls:3,vars:5,consts:[["mat-icon-button","","type","button","aria-haspopup","listbox",3,"disabled","disableRipple"],["height","24px","width","24px","viewBox","0 -960 960 960","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-timepicker-toggle-default-icon"],["d","m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 320q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Z"]],template:function(t,n){t&1&&(Gt(No),s(0,"button",0),jt(1,0,null,$o,2,0),r()),t&2&&(u("disabled",n.disabled())("disableRipple",n.disableRipple()),we("aria-label",n.ariaLabel())("aria-expanded",n.timepicker().isOpen())("tabindex",n.disabled()?-1:n.tabIndex()))},dependencies:[L],encapsulation:2,changeDetection:0})}return i})(),Bn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Vt({type:i});static \u0275inj=Et({imports:[ft,ht,vi]})}return i})();var nt=class extends G{constructor(){super({date:new _,time:new _})}};var $n=(()=>{class i extends Q{elRef;ngControl;get control(){return this.ngControl.control}_adapter=m(Oe);form=new nt;constructor(e,t,n){super(e,t,!0),this.elRef=t,this.ngControl=n,this.ngControl.valueAccessor=this,this._adapter.setLocale("pt-BR")}ngAfterViewInit(){this.control.value||this.control.setValue(new Date);let{value:e}=this.control;this.form.setValue({date:e,time:e},{emitEvent:!1});let{date:t,time:n}=this.form.controls;t.valueChanges.subscribe(a=>{let{value:l}=this.control;!a||!l||(l.setDate(a.getDate()),l.setMonth(a.getMonth()),l.setFullYear(a.getFullYear()),this.control.setValue(l))}),n.valueChanges.subscribe(a=>{let{value:l}=this.control;!a||!l||(l.setHours(a.getHours()),l.setMinutes(a.getMinutes()),l.setSeconds(a.getSeconds()),this.control.setValue(l))})}static \u0275fac=function(t){return new(t||i)(Ie(Ft),Ie(Ee),Ie(pi,10))};static \u0275cmp=h({type:i,selectors:[["devmx-date-time-picker"]],features:[V([ni()]),Nt],decls:15,vars:5,consts:[["datepicker",""],["timepicker",""],[1,"date-time-picker",3,"formGroup"],[1,"date-picker"],["matInput","","formControlName","date","readonly","",3,"focus","matDatepicker"],["matSuffix","",3,"for"],[1,"time-picker"],["matInput","","formControlName","time","readonly","",3,"matTimepicker"]],template:function(t,n){if(t&1){let a=k();s(0,"section",2)(1,"mat-form-field",3)(2,"mat-label"),d(3,"Dia"),r(),s(4,"input",4),f("focus",function(){y(a);let v=Le(6);return E(v.open())}),r(),p(5,"mat-datepicker",null,0)(7,"mat-datepicker-toggle",5),r(),s(8,"mat-form-field",6)(9,"mat-label"),d(10,"Hor\xE1rio"),r(),p(11,"input",7)(12,"mat-timepicker",null,1)(14,"mat-timepicker-toggle",5),r()()}if(t&2){let a=Le(6),l=Le(13);u("formGroup",n.form),c(4),u("matDatepicker",a),c(3),u("for",a),c(4),u("matTimepicker",l),c(3),u("for",l)}},dependencies:[P,Q,Y,I,A,K,Hi,Ni,Bi,$i,Bn,ft,Nn,ht,de,pe,ce,qe,Me,xe],styles:["[_nghost-%COMP%]{display:inline-flex}[_nghost-%COMP%] .date-time-picker[_ngcontent-%COMP%]{display:inline-flex;flex-flow:row wrap;gap:1em}[_nghost-%COMP%] .date-time-picker[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]{width:10em}[_nghost-%COMP%] .date-time-picker[_ngcontent-%COMP%] .time-picker[_ngcontent-%COMP%]{width:8em}"],changeDetection:0})}return i})();var Hn=(i,o)=>o.value;function qo(i,o){if(i&1&&(s(0,"mat-option",5),d(1),r()),i&2){let e=o.$implicit;u("value",e.value),c(),F(" ",e.viewValue," ")}}function Uo(i,o){if(i&1&&(s(0,"mat-option",5),d(1),r()),i&2){let e=o.$implicit;u("value",e.value),c(),F(" ",e.viewValue," ")}}var Gn=(()=>{class i{container=m(S);get form(){return this.container.control}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-admin-event-form"]],features:[V([],[{provide:S,useFactory:()=>m(S,{skipSelf:!0})}])],decls:42,vars:1,consts:[[3,"formGroup"],["matInput","","formControlName","title","placeholder","Ex.: 10\xBA Meetup Maring\xE1 Agile","autofocus",""],["formControlName","date"],[1,"event-duration"],["formControlName","duration"],[3,"value"],[1,"event-max"],["matInput","","type","number","min","0","formControlName","maxAttendees"],["matTextSuffix",""],[1,"event-format"],["formControlName","format",3,"selectionChange"],[1,"event-address"],["matInput","","formControlName","address"],[1,"event-link"],["matInput","","type","url","formControlName","link"]],template:function(t,n){t&1&&($(0,0),s(1,"mat-form-field")(2,"mat-label"),d(3,"Qual nome ou t\xEDtulo do evento?"),r(),p(4,"input",1),s(5,"mat-error"),d(6,"Obrigat\xF3rio"),r()(),s(7,"div"),p(8,"devmx-date-time-picker",2),s(9,"mat-form-field",3)(10,"mat-label"),d(11,"Dura\xE7\xE3o"),r(),s(12,"mat-select",4),T(13,qo,2,2,"mat-option",5,Hn),r(),s(15,"mat-error"),d(16,"Obrigat\xF3rio"),r()(),s(17,"mat-form-field",6)(18,"mat-label"),d(19,"M\xE1ximo de"),r(),p(20,"input",7),s(21,"span",8),d(22,"pessoas"),r()()(),s(23,"div")(24,"mat-form-field",9)(25,"mat-label"),d(26,"Formato"),r(),s(27,"mat-select",10),f("selectionChange",function(){return n.form.onFormatChange(n.form.format.value)}),T(28,Uo,2,2,"mat-option",5,Hn),r(),s(30,"mat-error"),d(31,"Obrigat\xF3rio"),r()(),s(32,"mat-form-field",11)(33,"mat-label"),d(34,"Endere\xE7o"),r(),p(35,"input",12),r(),s(36,"mat-form-field",13)(37,"mat-label"),d(38,"Link"),r(),p(39,"input",14),s(40,"mat-error"),d(41,"Obrigat\xF3rio"),r()()(),H()),t&2&&(u("formGroup",n.form),c(13),D(n.form.durations),c(15),D(n.form.formats))},dependencies:[P,Q,di,Y,I,ui,A,K,de,pe,ce,ai,qe,Me,xe,Ei,yi,me,$n],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2em}[_nghost-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] div[_ngcontent-%COMP%] > section[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .event-duration[_ngcontent-%COMP%]{max-width:8em}[_nghost-%COMP%] .event-max[_ngcontent-%COMP%]{max-width:10em}[_nghost-%COMP%] .event-format[_ngcontent-%COMP%]{max-width:9em}[_nghost-%COMP%] .event-address[_ngcontent-%COMP%]{flex:2}[_nghost-%COMP%] .event-link[_ngcontent-%COMP%]{width:18em}"],changeDetection:0})}return i})();var _t=class extends G{constructor(o){super({id:new _("",{nonNullable:!0,validators:[C.required]}),title:new _("",{nonNullable:!0,validators:[C.required]}),description:new _("",{nonNullable:!0}),cover:new _("",{nonNullable:!0})}),o&&this.patchValue(o)}},ot=class extends Ye{constructor(){super([])}add(o){this.push(new _t(o))}};var vt=class extends G{get name(){return this.controls.name.value}constructor(o){super({id:new _("",{nonNullable:!0,validators:[C.required]}),name:new _("",{nonNullable:!0,validators:[C.required]}),displayName:new _("",{nonNullable:!0,validators:[C.required]})}),o&&this.patchValue(o)}},at=class extends Ye{constructor(){super([])}add(o){this.push(new vt(o))}};function jn(i,o,e){let t=Ci(i,e?.in);return isNaN(o)?gi(e?.in||i,NaN):(o&&t.setDate(t.getDate()+o),t)}var rt=class i extends G{formats=[{value:"in-person",viewValue:"Presencial"},{value:"mixed",viewValue:"H\xEDbrido"},{value:"online",viewValue:"Online"}];durations=si.map(o=>({value:o,viewValue:o}));static date=jn(new Date,10);constructor(){i.date.setHours(19),i.date.setMinutes(0),i.date.setSeconds(0),super({id:new _("",{nonNullable:!0}),title:new _("",{nonNullable:!0,validators:[C.required]}),date:new _(i.date,{nonNullable:!0,validators:[C.required],updateOn:"blur"}),duration:new _("2h",{nonNullable:!0,validators:[C.required]}),maxAttendees:new _(0,{nonNullable:!0}),description:new _("",{nonNullable:!0,validators:[C.required]}),presentations:new ot,leaders:new at,format:new _("",{nonNullable:!0,validators:[C.required]}),address:new _("",{nonNullable:!0}),link:new _("",{nonNullable:!0}),visible:new _(!0,{nonNullable:!0})}),this.controls.link?.disable()}get format(){return this.controls.format}get presentations(){return this.controls.presentations}get leaders(){return this.controls.leaders}patch(o){if(this.patchValue(o),o.presentations){this.presentations.clear();for(let e of o.presentations)this.presentations.add(e)}if(o.leaders){this.leaders.clear();for(let e of o.leaders)this.leaders.add(e)}}onFormatChange(o=""){!this.controls.address||!this.controls.link||(o==="in-person"&&(this.controls.address.enable(),this.controls.address.addValidators(C.required),this.controls.link.disable(),this.controls.link.removeValidators(C.required)),o==="online"&&(this.controls.address.disable(),this.controls.address.removeValidators(C.required),this.controls.link.enable(),this.controls.address.addValidators(C.required)),o==="mixed"&&(this.controls.link.enable(),this.controls.link.addValidators(C.required),this.controls.address.enable(),this.controls.address.addValidators(C.required)),this.updateValueAndValidity({onlySelf:!0}))}getErrors(){let o={};for(let e in this.controls){let t=e;o[e]=this.controls[t]?.errors??null}return o}};var gt=(()=>{class i{router=m(le);route=m(se);cdr=m(zt);eventFacade=m(X);messageService=m(bi);searchLeaders=m(Fe);selectPresentation=m(hn);selectUser=m(Fe);saving=ae(!1);form=new rt;constructor(){this.route.data.pipe(W()).subscribe(({event:e})=>{if(e&&e.id&&(this.form.patch(e),this.form.onFormatChange(e.format),e.date)){let t=new Date(e.date);this.form.patchValue({date:t})}})}selectPresentations(){this.selectPresentation.open({multiple:!0}).pipe(B(1)).subscribe(t=>{if(t){for(let n of t)this.form.presentations.add(n);this.cdr.detectChanges()}})}selectLeaders(){this.selectUser.open({multiple:!0,onlyRole:"leader"}).pipe(B(1)).subscribe(t=>{if(t){for(let n of t)this.form.leaders.add(n);this.cdr.detectChanges()}})}onSubmit(){if(this.form.valid){this.saving.set(!0);let e=this.form.getRawValue();e.id?this.eventFacade.update(e).subscribe(this.#e):this.eventFacade.create(e).subscribe(this.#e)}else this.form.markAllAsTouched()}#e=e=>{this.saving.set(!1),this.messageService.open({message:"Armazenando informa\xE7\xF5es"}),e&&e.id&&this.router.navigate(["..",e.id],{relativeTo:this.route})};static \u0275fac=function(t){return new(t||i)};static \u0275cmp=h({type:i,selectors:[["devmx-event-admin-event"]],decls:17,vars:5,consts:[["id","event",3,"submit","formGroup"],[1,"event-tab-content"],["label","Descreva o evento","hint","Compat\xEDvel com markdown do Github","formControlName","description",3,"minRows","maxRows"],[3,"content"],["type","button","mat-button","",3,"click"],[1,"event-footer"],[3,"autoSave","saving"]],template:function(t,n){if(t&1&&(s(0,"form",0),f("submit",function(){return n.onSubmit()}),s(1,"section",1),p(2,"devmx-admin-event-form"),r(),s(3,"section",1)(4,"devmx-markdown-toolbar"),p(5,"devmx-markdown-editor",2)(6,"devmx-markdown-view",3),r()(),s(7,"section",1),p(8,"devmx-admin-event-leaders"),s(9,"button",4),f("click",function(){return n.selectLeaders()}),d(10," Adicionar outras pessoas "),r()(),s(11,"section",1),p(12,"devmx-admin-event-presentations"),s(13,"button",4),f("click",function(){return n.selectPresentations()}),d(14," Procure por conte\xFAdos "),r()(),s(15,"footer",5)(16,"devmx-auto-save-button",6),f("autoSave",function(){return n.onSubmit()}),r()()()),t&2){let a;u("formGroup",n.form),c(5),u("minRows",20)("maxRows",40),c(),u("content",(a=n.form.value.description)!==null&&a!==void 0?a:""),c(10),u("saving",n.saving())}},dependencies:[P,ze,Y,I,A,K,Ai,Ii,Li,Fn,Rn,Vn,Gn,w,Ce,Ri,Ze],styles:["[_nghost-%COMP%]{padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%] .event-tab[_ngcontent-%COMP%]{border-radius:.8em;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] form[_ngcontent-%COMP%] .event-tab-content[_ngcontent-%COMP%]{padding:2em 1em}[_nghost-%COMP%] form[_ngcontent-%COMP%] .event-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return i})();var xm=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},providers:Dn,component:vn,children:[{path:"meus-eventos/novo",data:{breadcrumb:"Novo"},title:"Novo evento",component:gt},{path:"meus-eventos/:id",data:{breadcrumb:i=>i.event.title},title:"Meu evento",resolve:{event:kn},component:gt},{path:"meus-eventos",data:{breadcrumb:"Meus eventos"},title:"Meus eventos",component:On},{path:"gerenciar-eventos",data:{breadcrumb:"Gerenciar eventos"},title:"Gerenciar eventos",canActivate:[ji("director","manager","staff")],component:Pn},{path:"",pathMatch:"prefix",redirectTo:"meus-eventos"}]}];export{vn as EventFeatureAdminComponent,xm as eventFeatureAdminRoutes}; diff --git a/chunk-MZVM2UVI.js b/chunk-MZVM2UVI.js new file mode 100644 index 00000000..8c81bdac --- /dev/null +++ b/chunk-MZVM2UVI.js @@ -0,0 +1 @@ +import{a as he,c as Pe,f as xe,g as ve}from"./chunk-F2BR4OZZ.js";import{a as se}from"./chunk-ZTJS4K5V.js";import{a as ae}from"./chunk-M5BYPXOP.js";import"./chunk-ZQOXWN4S.js";import"./chunk-56M6HFOE.js";import{a as I}from"./chunk-Q33OVU5J.js";import"./chunk-73QBZNVE.js";import"./chunk-Q2N7RZTH.js";import{b as oe}from"./chunk-WKFJTKSD.js";import{a as E}from"./chunk-ZHS65JNW.js";import{c as re}from"./chunk-BLJCB4Q7.js";import"./chunk-2XST3EDK.js";import"./chunk-MLNPCJDD.js";import{a as k,b as Q,c as W}from"./chunk-JNB3NYAZ.js";import"./chunk-UOTKRQ63.js";import{a as ge}from"./chunk-WD4JQH2Z.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import{a as Ce}from"./chunk-TPJZ2OYR.js";import"./chunk-ZTWYID37.js";import"./chunk-XYJHVZQT.js";import"./chunk-VVQ6JEVH.js";import"./chunk-HGOTYYGI.js";import"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as M}from"./chunk-A3N3AUUJ.js";import{g as w,i as S,j as b,p as P,w as ne,x as ie}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import{a as K,e as X,f as Y,g as Z,i as ee,l as te}from"./chunk-PAP2P7QR.js";import{a as le,b as me,c as ce,d as pe,f as de,g as _e,h as fe,i as ue}from"./chunk-EC6LD5KM.js";import{a as J}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as O,Ba as $,F as A,Hc as v,Jc as g,Kc as h,Nb as c,Ob as x,Pb as B,Qb as q,Rb as U,Tb as l,Yb as u,_b as V,ac as D,bc as n,cc as a,dc as s,gb as y,hc as N,je as H,ka as m,kc as L,lb as o,mc as _,t as R,ta as z,ua as j,ub as C,xc as p,yc as G,zc as F}from"./chunk-TEKHUYWQ.js";var ye=(()=>{class e{router=m(S);destroyRef=m($);authenticationFacade=m(Ce);layoutFacade=m(oe);ngOnInit(){this.authenticationFacade.auth$.pipe(M(this.destroyRef)).subscribe(t=>{t&&(this.layoutFacade.loadNavLinks(t.roles),this.waitingForLogout())}),this.authenticationFacade.load()}waitingForLogout(){this.authenticationFacade.auth$.pipe(M(this.destroyRef)).subscribe(t=>{t===null&&(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=C({type:e,selectors:[["devmx-presentation-feature-shell"]],decls:1,vars:0,template:function(i,d){i&1&&s(0,"devmx-layout")},dependencies:[P,ae],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var Oe=e=>W(m(k),e.params);var be=()=>[xe];function ke(e,r){if(e&1&&s(0,"img",7),e&2){let t=_();l("src",t.cover,y)("alt",t.title)}}function Te(e,r){if(e&1&&s(0,"devmx-presentation-embed",12),e&2){let t=_(2);l("data",t)}}function Le(e,r){e&1&&(n(0,"div",13)(1,"div")(2,"blockquote")(3,"p"),p(4,'"O conhecimento sem fronteiras transcende barreiras"'),a(),n(5,"cite"),p(6,"\u2014 Guilherme Siquinelli"),a()()()())}function Ee(e,r){e&1&&(c(0,Te,1,1)(1,Le,7,0),x(2,0,be,null,1),q(0,-1))}function Ie(e,r){if(e&1&&(n(0,"mat-list-item"),s(1,"devmx-icon",15),n(2,"div",9)(3,"a",16),p(4),a()()()),e&2){let t=r.$implicit;o(3),l("href",t,y),o(),F(" ",t," ")}}function Re(e,r){if(e&1&&(n(0,"mat-list")(1,"h3",14),p(2,"Materiais"),a(),O(3,Ie,5,2,"mat-list-item",null,V),a()),e&2){let t=_();o(3),D(t.resources)}}function Ae(e,r){if(e&1&&(n(0,"mat-card",0)(1,"mat-card-header",1)(2,"a",2),s(3,"devmx-icon",3),a(),n(4,"mat-card-title",4),p(5),a(),n(6,"a",5),s(7,"devmx-icon",6),a()(),c(8,ke,1,2,"img",7),n(9,"mat-list")(10,"mat-list-item"),s(11,"devmx-icon",8),n(12,"div",9),p(13),g(14,"presentationFormat"),a()()(),c(15,Ee,4,0),n(16,"mat-card-content"),s(17,"devmx-markdown-view",10),a(),c(18,Re,5,0,"mat-list"),n(19,"mat-card-header"),s(20,"img",11),g(21,"photo"),n(22,"mat-card-title"),p(23),a(),n(24,"mat-card-subtitle"),p(25," Autor "),a()()()),e&2){let t=r;o(5),F(" ",t.title," "),o(3),u(t.cover?8:-1),o(5),G(h(14,9,t.format)),o(2),u(t.link?15:-1),o(2),l("content",t.description),o(),u(t.resources.length?18:-1),o(2),l("src",h(21,11,t.owner.profile==null?null:t.owner.profile.photo),y)("alt",t.owner.displayName),o(3),F(" ",t.owner.displayName," ")}}var De=(()=>{class e{route=m(w);presentation$=this.route.data.pipe(A(t=>"presentation"in t),R(t=>t.presentation));static \u0275fac=function(i){return new(i||e)};static \u0275cmp=C({type:e,selectors:[["devmx-presentation-details"]],decls:2,vars:3,consts:[[1,"presentation-card"],[1,"presentation-card-header","sticky"],["mat-card-avatar","","routerLink","..","mat-icon-button",""],["name","arrow/left"],[1,"presentation-card-header-title"],["routerLink","..","mat-icon-button",""],["name","close-cross"],["mat-card-image","",3,"src","alt"],["matListItemIcon","","name","user-presentation"],["matListItemTitle",""],[3,"content"],["mat-card-avatar","",3,"src","alt"],[3,"data"],[1,"presentation-placeholder"],["mat-subheader",""],["matListItemIcon","","name","external-link"],["target","_blank","rel","noopener noreferrer",3,"href"]],template:function(i,d){if(i&1&&(c(0,Ae,26,13,"mat-card",0),g(1,"async")),i&2){let f;u((f=h(1,1,d.presentation$))?0:-1,f)}},dependencies:[P,b,ue,le,fe,ce,de,_e,pe,me,te,Y,Z,X,ee,K,ie,ne,J,ge,he,se,H],styles:["[_nghost-%COMP%]{flex:1;height:100%;display:flex;flex-direction:column}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 16px;font-size:1.2em;font-weight:500;opacity:.6}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-line;line-height:1.2em;word-wrap:break-word}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link:hover{text-decoration:underline}[_nghost-%COMP%] .presentation-card-header[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}[_nghost-%COMP%] .presentation-card-header[_ngcontent-%COMP%] .mat-mdc-card-avatar[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%] .presentation-placeholder[_ngcontent-%COMP%]{position:relative;width:100%;padding-top:56.25%;overflow:hidden}[_nghost-%COMP%] .presentation-placeholder[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:calc(100% - 2em);height:calc(100% - 2em);border:0;aspect-ratio:16/9;padding:1em;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .presentation-placeholder[_ngcontent-%COMP%] div[_ngcontent-%COMP%] blockquote[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:1.2em;line-height:1.2em;opacity:.8}[_nghost-%COMP%] .presentation-placeholder[_ngcontent-%COMP%] div[_ngcontent-%COMP%] blockquote[_ngcontent-%COMP%] cite[_ngcontent-%COMP%]{margin:.4em;display:flex;font-size:1em;opacity:.4}"],changeDetection:0})}return e})();var ze=(e,r)=>r.id,je=()=>[E,re,import("./chunk-QQ3DFMVY.js").then(e=>e.AsyncPipe)],$e=()=>[ve,b],Be=e=>[e],qe=e=>({right:e}),Ue=e=>({outlets:e}),Ve=e=>["/","apresentacoes",e];function Ne(e,r){if(e&1&&(n(0,"a",4),s(1,"devmx-presentation-card",5),a()),e&2){let t=_().$implicit;l("routerLink",v(8,Ve,v(6,Ue,v(4,qe,v(2,Be,t.id))))),o(),l("data",t)}}function Ge(e,r){e&1&&s(0,"devmx-skeleton",6),e&2&&l("rows",3)}function He(e,r){e&1&&(c(0,Ne,2,10)(1,Ge,1,1),x(2,0,$e,null,1),U(0,-1))}function Qe(e,r){if(e&1){let t=N();n(0,"div",1),O(1,He,4,0,null,null,ze),a(),s(3,"div",2),n(4,"footer")(5,"devmx-paginator",3),L("pageChange",function(d){z(t);let f=_(2);return j(f.onPageChange(d))}),a()()}if(e&2){let t=r;o(),D(t.data),o(4),l("size",10)("items",t.items)}}function We(e,r){if(e&1&&(c(0,Qe,6,2),g(1,"async")),e&2){let t,i=_();u((t=h(1,1,i.presentationFacade.response$))?0:-1,t)}}function Je(e,r){e&1&&(n(0,"div",1),s(1,"devmx-skeleton",6)(2,"devmx-skeleton",6)(3,"devmx-skeleton",6),a()),e&2&&(o(),l("rows",3),o(),l("rows",2),o(),l("rows",3))}var Fe=(()=>{class e{presentationFacade=m(k);router=m(S);route=m(w);constructor(){this.route.queryParams.pipe(M()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{page:i=0,size:d=10}=t,{title:f="",format:T=""}=t,we={title:f,format:T};this.presentationFacade.setParams({page:i,size:d,filter:we}),this.presentationFacade.load()};onFilterChange(t){let i={format:t};this.router.navigate([],{queryParams:i})}onPageChange(t){this.router.navigate([],{queryParams:t})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=C({type:e,selectors:[["devmx-presentations"]],decls:6,vars:0,consts:[[3,"filterChange"],[1,"presentations-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[3,"data"],[3,"rows"]],template:function(i,d){i&1&&(n(0,"header")(1,"devmx-presentation-filter",0),L("filterChange",function(T){return d.onFilterChange(T)}),a()(),c(2,We,2,3)(3,Je,4,3),x(4,2,je,null,3),B(500))},dependencies:[E,Pe,P],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;padding:.4em .8em}[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1;display:flex}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return e})();var Nt=[{path:"",providers:[...Q()],data:{breadcrumb:"Apresenta\xE7\xF5es"},canActivate:[I("member")],component:ye,children:[{path:"administracao",canActivate:[I("speaker","director","manager","staff")],loadChildren:()=>import("./chunk-NAMLT62R.js").then(e=>e.presentationFeatureAdminRoutes)},{path:"",title:"Apresenta\xE7\xF5es",component:Fe},{path:":id",data:{breadcrumb:e=>e.presentation.title},title:"Apresenta\xE7\xE3o",resolve:{presentation:Oe},component:De,outlet:"right"}]}];export{ye as PresentationFeatureShellComponent,Nt as presentationFeatureShellRoutes}; diff --git a/chunk-JWVJB74K.js b/chunk-NAMLT62R.js similarity index 93% rename from chunk-JWVJB74K.js rename to chunk-NAMLT62R.js index ea755e75..083bb30a 100644 --- a/chunk-JWVJB74K.js +++ b/chunk-NAMLT62R.js @@ -1 +1 @@ -import{a as re,c as yt,d as wt,f as Ot}from"./chunk-LBSELHKL.js";import{a as ct,b as mt}from"./chunk-WRHYPK6F.js";import{d as at,e as st}from"./chunk-66MLPMX6.js";import{a as Je,b as rt}from"./chunk-JCCZXGKN.js";import{a as dt,b as pt}from"./chunk-CXAKQAL3.js";import{a as et,b as tt}from"./chunk-AFH22WZE.js";import{a as ut,b as _t,c as gt,d as ft,e as ht,f as Ct,g as Mt,h as vt,i as xt,j as Pt,k as bt}from"./chunk-HPJEYRZM.js";import{a as Q,b as it}from"./chunk-YJNMZPRM.js";import{a as lt}from"./chunk-VE4FGS76.js";import{d as Ye,e as Ke}from"./chunk-LFAX4DK3.js";import{a as nt}from"./chunk-AD4TXQD3.js";import{c as ot}from"./chunk-JX4IWPKV.js";import"./chunk-XC6WES62.js";import{a as Be}from"./chunk-HYAMKYUE.js";import{a as Ge}from"./chunk-ZHS65JNW.js";import{a as qe,b as je,c as W}from"./chunk-VYHC3V3G.js";import{a as Ue,b as We}from"./chunk-3I45H2NO.js";import"./chunk-R66KDUEB.js";import{a as P,c as xe}from"./chunk-WVZCQXYK.js";import"./chunk-2E7FYHXW.js";import"./chunk-BJXILAOS.js";import{a as Xe}from"./chunk-AC7KYN3P.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import{a as H}from"./chunk-TZR6QHL3.js";import{a as F}from"./chunk-A3N3AUUJ.js";import{B as Ve,F as ze,G as T,H as $e,I as D,s as ve}from"./chunk-4FWBEGAE.js";import{b as ge,c as fe,d as he,i as Ce,j as Me}from"./chunk-2K6IALUF.js";import{g as E,h as pe,i as B,j as ee,p as U}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import{a as De,b as Fe,c as Re,e as Ae,f as Ie,g as Le,l as Ne}from"./chunk-PAP2P7QR.js";import{a as q,b as He,c as Qe,e as j,f as Ze,i as G}from"./chunk-EC6LD5KM.js";import{a as w,c as Pe,e as b,h as be,i as ye,j as we,l as h,m as Oe,o as Se,p as ke,s as Ee,w as te,x as Te}from"./chunk-EDIJ2EBQ.js";import{Y as ue,na as _e}from"./chunk-W5KNOAKV.js";import{$b as O,F as ie,Jc as z,Kc as $,Nb as g,Ob as se,Pb as ce,Sc as le,Tb as d,Yb as y,_b as L,ac as S,bc as r,cc as i,dc as l,ec as N,fa as oe,fc as V,hc as x,je as de,ka as p,kc as u,lb as c,mc as f,t as A,ta as C,u as I,ua as M,ub as v,vb as ae,xc as s,yc as k,zc as me}from"./chunk-TEKHUYWQ.js";var St=(()=>{class t{static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["devmx-presentation-feature-admin"]],decls:1,vars:0,template:function(a,n){a&1&&l(0,"router-outlet")},dependencies:[pe],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();var Y=class extends we{};var R=class{dialog;formService;constructor(o,e){this.dialog=o,this.formService=e}open(o=null){let e={value:ct({label:"Item",type:"text",value:o&&o.value?o.value:"",errors:{required:"Obrigat\xF3rio"}})},a=mt(e),n=(o?"Alterar":"Adicionar")+" item";return this.formService.open({title:n,fields:e,form:a})}};function kt(){return{provide:R,deps:[ot,at]}}var Et=[kt(),pt(),st(),it()];var Tt=t=>xe(p(P),t.params);function Nt(t,o){t&1&&(r(0,"th",15),s(1,"Nome do curso"),i())}function Vt(t,o){if(t&1&&(r(0,"td",16),s(1),i()),t&2){let e=o.$implicit;c(),k(e.title)}}function zt(t,o){t&1&&(r(0,"th",15),s(1,"Criado por"),i())}function $t(t,o){if(t&1&&(r(0,"td",16),s(1),i()),t&2){let e=o.$implicit;c(),me(" ",e.owner.displayName," ")}}function Bt(t,o){t&1&&l(0,"th",15)}function Ut(t,o){if(t&1){let e=x();r(0,"td",16)(1,"button",17),u("click",function(){let n=C(e).$implicit,m=f(2);return M(m.openDelete(n))}),l(2,"devmx-icon",18),i()()}}function Wt(t,o){t&1&&l(0,"tr",19)}function qt(t,o){t&1&&l(0,"tr",20)}function jt(t,o){if(t&1){let e=x();r(0,"table",5),N(1,6),g(2,Nt,2,0,"th",7)(3,Vt,2,1,"td",8),V(),N(4,9),g(5,zt,2,0,"th",7)(6,$t,2,1,"td",8),V(),N(7,10),g(8,Bt,1,0,"th",7)(9,Ut,3,0,"td",8),V(),g(10,Wt,1,0,"tr",11)(11,qt,1,0,"tr",12),i(),r(12,"mat-card-actions",13)(13,"devmx-paginator",14),u("pageChange",function(n){C(e);let m=f();return M(m.onPageChange(n))}),i()()}if(t&2){let e=o,a=f();d("dataSource",e.data),c(10),d("matHeaderRowDef",a.columns),c(),d("matRowDefColumns",a.columns),c(2),d("size",10)("items",e.items)}}var Ft=(()=>{class t{router=p(B);route=p(E);dialogFacade=p(Q);authFacade=p(H);presentationFacade=p(P);selectUser=p(dt);#e=ve(null);columns=["title","owner","actions"];constructor(){let e=this.#e.observe().pipe(A(n=>n?n.id:"")),a=this.route.queryParams;I([e,a]).pipe(F()).subscribe(this.onQueryParams),this.presentationFacade.load()}setUserRef(e=null){this.#e.update(e)}openSelectUser(){this.selectUser.open({onlyRole:"speaker",multiple:!1}).subscribe(e=>{e&&this.setUserRef(e)})}openDelete({id:e,title:a}){this.dialogFacade.confirm(`Confirme que deseja apagar a apresenta\xE7\xE3o ${a}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(n=>{n&&this.presentationFacade.delete(e)})}onQueryParams=([e,a])=>{let{page:n=0,size:m=10}=a,{title:_="",format:J=""}=a,X={title:_,format:J,owner:e};this.presentationFacade.setParams({page:n,size:m,filter:X}),this.presentationFacade.load()};onSearchChange(e=""){this.presentationFacade.setFilter({title:e}),this.presentationFacade.load()}onPageChange({page:e,size:a}){let n={page:e,size:a};this.router.navigate([],{queryParams:n})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["devmx-manage-presentations"]],decls:10,vars:4,consts:[[1,"presentations-card"],[1,"presentations-card-header"],["mat-icon-button","",3,"click"],["name","filter"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","owner"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(a,n){if(a&1&&(r(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),s(3,"Apresenta\xE7\xF5es"),i(),r(4,"div")(5,"button",2),u("click",function(){return n.openSelectUser()}),l(6,"devmx-icon",3),i(),r(7,"devmx-search-field",4),u("searchChange",function(_){return n.onSearchChange(_)}),i()()(),g(8,jt,14,5),z(9,"async"),i()),a&2){let m;c(7),d("debounce",1e3),c(),y((m=$(9,2,n.presentationFacade.response$))?8:-1,m)}},dependencies:[U,D,T,lt,W,bt,ut,gt,Mt,ft,_t,vt,ht,Ct,xt,Pt,G,q,j,Ze,He,w,de],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .presentations-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .presentations-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;min-width:calc(50% - 1em)}[_nghost-%COMP%] .presentations-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .presentations-card-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;align-items:baseline}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:3em}"],changeDetection:0})}return t})();var Gt=(t,o)=>o.id,Ht=()=>[ee,$e,T,qe,W,import("./chunk-VWDLBNLC.js").then(t=>t.PresentationCardComponent),w,import("./chunk-QQ3DFMVY.js").then(t=>t.AsyncPipe)];function Qt(t,o){if(t&1){let e=x();r(0,"devmx-presentation-card",3)(1,"a",6),l(2,"devmx-icon",7),i(),r(3,"button",8),u("click",function(){let n=C(e).$implicit,m=f(3);return M(m.deletePresentation(n))}),l(4,"devmx-icon",9),i()()}if(t&2){let e=o.$implicit;d("data",e),c(),d("routerLink",e.id)}}function Zt(t,o){t&1&&(r(0,"div",4)(1,"h2"),s(2,"N\xE3o temos nada aqui..."),i(),r(3,"h3"),s(4," Siga nessa dire\xE7\xE3o "),l(5,"devmx-icon",10)(6,"br"),s(7," at\xE9 encontrar o bot\xE3o com um "),l(8,"devmx-icon",11)(9,"br"),s(10," e cadastre suas apresenta\xE7\xF5es. "),l(11,"devmx-icon",12),i()()),t&2&&(c(5),d("size",32),c(3),d("size",32),c(3),d("size",32))}function Yt(t,o){if(t&1){let e=x();r(0,"div",2),O(1,Qt,5,2,"devmx-presentation-card",3,Gt),i(),g(3,Zt,12,3,"div",4),r(4,"footer")(5,"devmx-paginator",5),u("pageChange",function(n){C(e);let m=f(2);return M(m.onPageChange(n))}),i()()}if(t&2){let e=o;c(),S(e.data),c(2),y(e.items?-1:3),c(2),d("size",10)("items",e.items)}}function Kt(t,o){if(t&1&&(g(0,Yt,6,3),z(1,"async")),t&2){let e,a=f();y((e=$(1,1,a.presentationFacade.response$))?0:-1,e)}}function Jt(t,o){t&1&&(r(0,"div",2),l(1,"devmx-skeleton",13)(2,"devmx-skeleton",13),i()),t&2&&(c(),d("rows",3),c(),d("rows",2))}var Rt=(()=>{class t{router=p(B);route=p(E);dialogFacade=p(Q);authFacade=p(H);presentationFacade=p(P);constructor(){let e=this.authFacade.auth$.pipe(ie(n=>!!n),A(n=>n.id)),a=this.route.queryParams;I([e,a]).pipe(F()).subscribe(this.onQueryParams)}deletePresentation({id:e,title:a}){this.dialogFacade.confirm(`Confirme que deseja apagar a apresenta\xE7\xE3o ${a}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(n=>{n&&this.presentationFacade.delete(e)})}onQueryParams=([e,a])=>{let{page:n=0,size:m=10}=a,{title:_="",format:J="",visible:X=!0}=a,It={title:_,format:J,visible:X,owner:e};this.presentationFacade.setParams({page:n,size:m,filter:It}),this.presentationFacade.load()};onPageChange({page:e,size:a}){let n={page:e,size:a};this.router.navigate([],{queryParams:n})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["devmx-my-presentations"]],decls:6,vars:0,consts:[["mat-fab","","routerLink","nova",1,"tertiary-fab","top","right"],["name","plus"],[1,"presentations-container"],[3,"data"],[1,"no-presentations-yet"],[3,"pageChange","size","items"],["mat-icon-button","","matTooltip","Editar apresenta\xE7\xE3o","matTooltipPosition","before",3,"routerLink"],["name","software/edit"],["type","button","mat-icon-button","","matTooltip","Apagar apresenta\xE7\xE3o","matTooltipPosition","after",3,"click"],["name","trash-alt"],["color","#3BCE53","name","arrow/up-right",3,"size"],["color","#3BCE53","name","plus",3,"size"],["color","#3BCE53","name","emoji/smirking-alt",3,"size"],[3,"rows"]],template:function(a,n){a&1&&(r(0,"a",0),l(1,"devmx-icon",1),i(),g(2,Kt,2,3)(3,Jt,3,2),se(4,2,Ht,null,3),ce(500))},dependencies:[U,ee,D,ze,je,Ge,w],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:space-between}[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(3,1fr)}@media (max-width: 1278px){[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .no-presentations-yet[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] .no-presentations-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .no-presentations-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;white-space:normal}[_nghost-%COMP%] .no-presentations-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:160%}[_nghost-%COMP%] .no-presentations-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:120%;text-align:end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return t})();var At=(()=>{class t{static \u0275fac=function(a){return new(a||t)};static \u0275mod=ae({type:t});static \u0275inj=oe({imports:[ue]})}return t})();var K=class extends Y{formats=[{value:"talk",viewValue:"Palestra"},{value:"workshop",viewValue:"Oficina (workshop)"},{value:"webinar",viewValue:"Semin\xE1rio online (webinar)"}];constructor(){super({id:new h("",{nonNullable:!0}),title:new h("",{nonNullable:!0,validators:[b.required]}),description:new h("",{nonNullable:!0,validators:[b.required,b.maxLength(512)]}),link:new h("",{nonNullable:!0,validators:[b.pattern("^https://slides\\.com/[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+$")]}),format:new h("talk",{nonNullable:!0,validators:[b.required]}),resources:new te([]),tags:new te([]),visible:new h}),this.controls.id.disable()}currentResource=new h("",{nonNullable:!0,validators:[b.pattern(/^(https?:\/\/)?([a-zA-Z0-9-_]+(\.[a-zA-Z0-9-_]+)+.*)$/)]});currentTag=new h("",{nonNullable:!0,validators:[b.pattern(/^[a-zA-Z0-9]+$/)]});patch(o){o.id&&this.controls.id&&this.controls.id.enable(),this.patchValue(o),this.resources.clear();for(let e of o.resources)this.pushResource(e);this.tags.clear();for(let e of o.tags)this.pushTag(e)}get resources(){return this.controls.resources}get tags(){return this.controls.tags}addResource(o){if(o.preventDefault(),this.currentResource.valid&&this.currentResource.value)return this.pushResource(this.currentResource.value),this.currentResource.reset("");this.currentResource.markAsTouched()}addTag(o){if(o.preventDefault(),this.currentTag.valid&&this.currentTag.value)return this.pushTag(this.currentTag.value),this.currentTag.reset("");this.currentTag.markAsTouched()}pushResource(o=""){this.resources.push(new h(o,{nonNullable:!0}))}pushTag(o=""){this.tags.push(new h(o,{nonNullable:!0}))}removeResource(o){this.resources.removeAt(o)}removeTag(o){this.tags.removeAt(o)}};function Xt(t,o){if(t&1&&(r(0,"mat-option",4),s(1),i()),t&2){let e=o.$implicit;d("value",e.value),c(),k(e.viewValue)}}function er(t,o){if(t&1){let e=x();r(0,"mat-list-item",7),l(1,"devmx-icon",14),r(2,"div",15),s(3),i(),r(4,"button",16),u("click",function(){let n=C(e).$index,m=f();return M(m.form.removeResource(n))}),l(5,"devmx-icon",17),i()()}if(t&2){let e=o.$implicit;c(3),k(e.value)}}function tr(t,o){if(t&1){let e=x();r(0,"mat-list-item",7),l(1,"devmx-icon",18),r(2,"div",15),s(3),i(),r(4,"button",16),u("click",function(){let n=C(e).$index,m=f();return M(m.form.removeTag(n))}),l(5,"devmx-icon",17),i()()}if(t&2){let e=o.$implicit;c(3),k(e.value)}}function rr(t,o){t&1&&(r(0,"mat-list-item"),l(1,"devmx-icon",19),r(2,"span",15),s(3,"Dica"),i(),r(4,"span",20),s(5,"Voc\xEA pode reordenar os itens arrastando"),i()())}var ne=(()=>{class t{route=p(E);cdr=p(le);presentationFacade=p(P);messageService=p(Be);listItemDialog=p(R);form=new K;constructor(){this.route.data.pipe(F()).subscribe(({presentation:e})=>{e&&e.id&&this.form.patch(e)})}dropTags(e){re(this.form.tags.controls,e.previousIndex,e.currentIndex)}dropResources(e){re(this.form.resources.controls,e.previousIndex,e.currentIndex)}onSubmit(){if(this.form.valid){let e=this.form.getRawValue();return e.id?this.presentationFacade.update(e):this.presentationFacade.create(e),this.messageService.open({message:"Armazenando informa\xE7\xF5es"})}return this.form.markAllAsTouched()}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["devmx-presentation-admin-presentation"]],decls:63,vars:6,consts:[[3,"submit","formGroup"],[1,"presentation-card"],["type","text","matInput","","formControlName","title"],["formControlName","format"],[3,"value"],["matInput","","type","url","formControlName","link"],["cdkDropList","",1,"sortable-list",3,"cdkDropListDropped"],["cdkDrag","",1,"sortable-list-item"],["type","text","matInput","",3,"keydown.enter","formControl"],["formControlName","visible"],["label","Resenha da apresenta\xE7\xE3o","hint","Compat\xEDvel com markdown do Github","formControlName","description",3,"maxRows"],[3,"content"],[1,"presentation-card-actions"],["mat-flat-button",""],["matListItemIcon","","name","link"],["matListItemTitle",""],["type","button","matListItemMeta","","mat-icon-button","",3,"click"],["name","close-cross"],["matListItemIcon","","name","hashtag"],["matListItemIcon","","name","information-circle","color","#1A84FF"],["matListItemLine",""]],template:function(a,n){if(a&1&&(r(0,"form",0),u("submit",function(){return n.onSubmit()}),r(1,"mat-card",1)(2,"mat-card-content")(3,"section")(4,"div")(5,"mat-form-field")(6,"mat-label"),s(7,"T\xEDtulo da apresenta\xE7\xE3o"),i(),l(8,"input",2),r(9,"mat-error"),s(10,"Obrigat\xF3rio"),i()(),r(11,"mat-form-field")(12,"mat-label"),s(13,"Formato da apresenta\xE7\xE3o"),i(),r(14,"mat-select",3),O(15,Xt,2,2,"mat-option",4,L),i()()(),r(17,"mat-form-field")(18,"mat-label"),s(19,"URL da palestra"),i(),l(20,"input",5),r(21,"mat-hint"),s(22,"Apenas URL do slides.com s\xE3o suportadas"),i(),r(23,"mat-error"),s(24,"URL inv\xE1lida"),i()(),r(25,"mat-list",6),u("cdkDropListDropped",function(_){return n.dropResources(_)}),O(26,er,6,1,"mat-list-item",7,L),i(),r(28,"mat-form-field")(29,"mat-label"),s(30,"Adicione um link"),i(),r(31,"input",8),u("keydown.enter",function(_){return n.form.addResource(_)}),i(),r(32,"mat-hint"),s(33,"Use a tecla "),r(34,"kbd"),s(35,"enter"),i(),s(36," para adicionar"),i(),r(37,"mat-error"),s(38,"URL inv\xE1lida"),i()(),r(39,"mat-list",6),u("cdkDropListDropped",function(_){return n.dropTags(_)}),O(40,tr,6,1,"mat-list-item",7,L),g(42,rr,6,0,"mat-list-item"),i(),r(43,"mat-form-field")(44,"mat-label"),s(45,"Adicione uma tag"),i(),r(46,"input",8),u("keydown.enter",function(_){return n.form.addTag(_)}),i(),r(47,"mat-hint"),s(48,"Use a tecla "),r(49,"kbd"),s(50,"enter"),i(),s(51," para adicionar"),i(),r(52,"mat-error"),s(53,"Apenas letras e n\xFAmeros"),i()(),r(54,"mat-checkbox",9),s(55," Vis\xEDvel publicamente "),i()(),r(56,"section")(57,"devmx-markdown-toolbar"),l(58,"devmx-markdown-editor",10)(59,"devmx-markdown-view",11),i()()(),r(60,"mat-card-actions",12)(61,"button",13),s(62,"Salvar"),i()()()()),a&2){let m;d("formGroup",n.form),c(15),S(n.form.formats),c(11),S(n.form.resources.controls),c(5),d("formControl",n.form.currentResource),c(9),S(n.form.tags.controls),c(2),y(n.form.tags.length>1?42:-1),c(4),d("formControl",n.form.currentTag),c(12),d("maxRows",20),c(),d("content",(m=n.form.value.description)!==null&&m!==void 0?m:"")}},dependencies:[Te,Oe,Pe,be,ye,Se,ke,Ee,At,Je,rt,Xe,Me,Ce,ge,he,fe,tt,et,Ot,wt,yt,Ke,Ye,G,q,j,Qe,Ne,Ie,Le,Ae,Fe,De,Re,D,Ve,T,We,Ue,_e,w],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{flex:1;gap:1.6em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:.6em}[_nghost-%COMP%] .presentation-card-actions[_ngcontent-%COMP%]{gap:1em;display:flex;align-items:center;justify-content:flex-end}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;padding:0}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{gap:1em;display:flex}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .sortable-list[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .sortable-list-item[_ngcontent-%COMP%]{cursor:grab}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .sortable-list.cdk-drop-list-dragging[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .sortable-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .sortable-list-item[_ngcontent-%COMP%]{cursor:grabbing}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .cdk-drag-preview[_ngcontent-%COMP%]{border:none;box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .sortable-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .sortable-list-item[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}return t})();var gi=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},providers:Et,component:St,children:[{path:"minhas-apresentacoes/nova",data:{breadcrumb:"Nova"},title:"Nova apresenta\xE7\xE3o",component:ne},{path:"minhas-apresentacoes/:id",data:{breadcrumb:t=>t.presentation.title},title:"Minha apresenta\xE7\xE3o",resolve:{presentation:Tt},component:ne},{path:"minhas-apresentacoes",data:{breadcrumb:"Minhas apresenta\xE7\xF5es"},title:"Minhas apresenta\xE7\xF5es",component:Rt},{path:"gerenciar-apresentacoes",data:{breadcrumb:"Gerenciar apresenta\xE7\xF5es"},title:"Gerenciar apresenta\xE7\xF5es",canActivate:[nt("director","manager","staff")],component:Ft},{path:"",pathMatch:"prefix",redirectTo:"minhas-apresentacoes"}]}];export{St as PresentationFeatureAdminComponent,gi as presentationFeatureAdminRoutes}; +import{a as re,c as yt,d as wt,f as Ot}from"./chunk-7O2H2TAM.js";import{a as ct,b as mt}from"./chunk-HRSGZXOU.js";import{d as at,e as st}from"./chunk-WPU27ID5.js";import{a as Je,b as rt}from"./chunk-VHE4TYFV.js";import{a as dt,b as pt}from"./chunk-JMI5D6U5.js";import{a as et,b as tt}from"./chunk-AFH22WZE.js";import{a as ut,b as _t,c as gt,d as ft,e as ht,f as Ct,g as Mt,h as vt,i as xt,j as Pt,k as bt}from"./chunk-FROUXDRM.js";import{a as Q,b as it}from"./chunk-4JU575PW.js";import{a as lt}from"./chunk-56M6HFOE.js";import{a as nt}from"./chunk-Q33OVU5J.js";import{c as ot}from"./chunk-73QBZNVE.js";import"./chunk-Q2N7RZTH.js";import{a as Be}from"./chunk-WOE5TNBB.js";import{a as Ge}from"./chunk-ZHS65JNW.js";import{a as qe,b as je,c as W}from"./chunk-BLJCB4Q7.js";import{a as Ue,b as We}from"./chunk-2XST3EDK.js";import{a as P,c as xe}from"./chunk-JNB3NYAZ.js";import"./chunk-YFMYPYPE.js";import{a as Xe}from"./chunk-WD4JQH2Z.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import{a as H}from"./chunk-TPJZ2OYR.js";import{s as ve}from"./chunk-XYJHVZQT.js";import"./chunk-O3T3UZHL.js";import{d as Ye,e as Ke}from"./chunk-VVQ6JEVH.js";import{b as ge,c as fe,d as he,i as Ce,j as Me}from"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as F}from"./chunk-A3N3AUUJ.js";import{g as E,h as pe,i as B,j as ee,p as U,q as Ve,u as ze,v as T,w as $e,x as D}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import{a as De,b as Fe,c as Re,e as Ae,f as Ie,g as Le,l as Ne}from"./chunk-PAP2P7QR.js";import{a as q,b as He,c as Qe,e as j,f as Ze,i as G}from"./chunk-EC6LD5KM.js";import{a as w,c as Pe,e as b,h as be,i as ye,j as we,l as h,m as Oe,o as Se,p as ke,s as Ee,w as te,x as Te}from"./chunk-EDIJ2EBQ.js";import{Y as ue,na as _e}from"./chunk-W5KNOAKV.js";import{$b as O,F as ie,Jc as z,Kc as $,Nb as g,Ob as se,Pb as ce,Sc as le,Tb as d,Yb as y,_b as L,ac as S,bc as r,cc as i,dc as l,ec as N,fa as oe,fc as V,hc as x,je as de,ka as p,kc as u,lb as c,mc as f,t as A,ta as C,u as I,ua as M,ub as v,vb as ae,xc as s,yc as k,zc as me}from"./chunk-TEKHUYWQ.js";var St=(()=>{class t{static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["devmx-presentation-feature-admin"]],decls:1,vars:0,template:function(a,n){a&1&&l(0,"router-outlet")},dependencies:[pe],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();var Y=class extends we{};var R=class{dialog;formService;constructor(o,e){this.dialog=o,this.formService=e}open(o=null){let e={value:ct({label:"Item",type:"text",value:o&&o.value?o.value:"",errors:{required:"Obrigat\xF3rio"}})},a=mt(e),n=(o?"Alterar":"Adicionar")+" item";return this.formService.open({title:n,fields:e,form:a})}};function kt(){return{provide:R,deps:[ot,at]}}var Et=[kt(),pt(),st(),it()];var Tt=t=>xe(p(P),t.params);function Nt(t,o){t&1&&(r(0,"th",15),s(1,"Nome do curso"),i())}function Vt(t,o){if(t&1&&(r(0,"td",16),s(1),i()),t&2){let e=o.$implicit;c(),k(e.title)}}function zt(t,o){t&1&&(r(0,"th",15),s(1,"Criado por"),i())}function $t(t,o){if(t&1&&(r(0,"td",16),s(1),i()),t&2){let e=o.$implicit;c(),me(" ",e.owner.displayName," ")}}function Bt(t,o){t&1&&l(0,"th",15)}function Ut(t,o){if(t&1){let e=x();r(0,"td",16)(1,"button",17),u("click",function(){let n=C(e).$implicit,m=f(2);return M(m.openDelete(n))}),l(2,"devmx-icon",18),i()()}}function Wt(t,o){t&1&&l(0,"tr",19)}function qt(t,o){t&1&&l(0,"tr",20)}function jt(t,o){if(t&1){let e=x();r(0,"table",5),N(1,6),g(2,Nt,2,0,"th",7)(3,Vt,2,1,"td",8),V(),N(4,9),g(5,zt,2,0,"th",7)(6,$t,2,1,"td",8),V(),N(7,10),g(8,Bt,1,0,"th",7)(9,Ut,3,0,"td",8),V(),g(10,Wt,1,0,"tr",11)(11,qt,1,0,"tr",12),i(),r(12,"mat-card-actions",13)(13,"devmx-paginator",14),u("pageChange",function(n){C(e);let m=f();return M(m.onPageChange(n))}),i()()}if(t&2){let e=o,a=f();d("dataSource",e.data),c(10),d("matHeaderRowDef",a.columns),c(),d("matRowDefColumns",a.columns),c(2),d("size",10)("items",e.items)}}var Ft=(()=>{class t{router=p(B);route=p(E);dialogFacade=p(Q);authFacade=p(H);presentationFacade=p(P);selectUser=p(dt);#e=ve(null);columns=["title","owner","actions"];constructor(){let e=this.#e.observe().pipe(A(n=>n?n.id:"")),a=this.route.queryParams;I([e,a]).pipe(F()).subscribe(this.onQueryParams),this.presentationFacade.load()}setUserRef(e=null){this.#e.update(e)}openSelectUser(){this.selectUser.open({onlyRole:"speaker",multiple:!1}).subscribe(e=>{e&&this.setUserRef(e)})}openDelete({id:e,title:a}){this.dialogFacade.confirm(`Confirme que deseja apagar a apresenta\xE7\xE3o ${a}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(n=>{n&&this.presentationFacade.delete(e)})}onQueryParams=([e,a])=>{let{page:n=0,size:m=10}=a,{title:_="",format:J=""}=a,X={title:_,format:J,owner:e};this.presentationFacade.setParams({page:n,size:m,filter:X}),this.presentationFacade.load()};onSearchChange(e=""){this.presentationFacade.setFilter({title:e}),this.presentationFacade.load()}onPageChange({page:e,size:a}){let n={page:e,size:a};this.router.navigate([],{queryParams:n})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["devmx-manage-presentations"]],decls:10,vars:4,consts:[[1,"presentations-card"],[1,"presentations-card-header"],["mat-icon-button","",3,"click"],["name","filter"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","owner"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(a,n){if(a&1&&(r(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),s(3,"Apresenta\xE7\xF5es"),i(),r(4,"div")(5,"button",2),u("click",function(){return n.openSelectUser()}),l(6,"devmx-icon",3),i(),r(7,"devmx-search-field",4),u("searchChange",function(_){return n.onSearchChange(_)}),i()()(),g(8,jt,14,5),z(9,"async"),i()),a&2){let m;c(7),d("debounce",1e3),c(),y((m=$(9,2,n.presentationFacade.response$))?8:-1,m)}},dependencies:[U,D,T,lt,W,bt,ut,gt,Mt,ft,_t,vt,ht,Ct,xt,Pt,G,q,j,Ze,He,w,de],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .presentations-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .presentations-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;min-width:calc(50% - 1em)}[_nghost-%COMP%] .presentations-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .presentations-card-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;align-items:baseline}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:3em}"],changeDetection:0})}return t})();var Gt=(t,o)=>o.id,Ht=()=>[ee,$e,T,qe,W,import("./chunk-KDMTRYHW.js").then(t=>t.PresentationCardComponent),w,import("./chunk-QQ3DFMVY.js").then(t=>t.AsyncPipe)];function Qt(t,o){if(t&1){let e=x();r(0,"devmx-presentation-card",3)(1,"a",6),l(2,"devmx-icon",7),i(),r(3,"button",8),u("click",function(){let n=C(e).$implicit,m=f(3);return M(m.deletePresentation(n))}),l(4,"devmx-icon",9),i()()}if(t&2){let e=o.$implicit;d("data",e),c(),d("routerLink",e.id)}}function Zt(t,o){t&1&&(r(0,"div",4)(1,"h2"),s(2,"N\xE3o temos nada aqui..."),i(),r(3,"h3"),s(4," Siga nessa dire\xE7\xE3o "),l(5,"devmx-icon",10)(6,"br"),s(7," at\xE9 encontrar o bot\xE3o com um "),l(8,"devmx-icon",11)(9,"br"),s(10," e cadastre suas apresenta\xE7\xF5es. "),l(11,"devmx-icon",12),i()()),t&2&&(c(5),d("size",32),c(3),d("size",32),c(3),d("size",32))}function Yt(t,o){if(t&1){let e=x();r(0,"div",2),O(1,Qt,5,2,"devmx-presentation-card",3,Gt),i(),g(3,Zt,12,3,"div",4),r(4,"footer")(5,"devmx-paginator",5),u("pageChange",function(n){C(e);let m=f(2);return M(m.onPageChange(n))}),i()()}if(t&2){let e=o;c(),S(e.data),c(2),y(e.items?-1:3),c(2),d("size",10)("items",e.items)}}function Kt(t,o){if(t&1&&(g(0,Yt,6,3),z(1,"async")),t&2){let e,a=f();y((e=$(1,1,a.presentationFacade.response$))?0:-1,e)}}function Jt(t,o){t&1&&(r(0,"div",2),l(1,"devmx-skeleton",13)(2,"devmx-skeleton",13),i()),t&2&&(c(),d("rows",3),c(),d("rows",2))}var Rt=(()=>{class t{router=p(B);route=p(E);dialogFacade=p(Q);authFacade=p(H);presentationFacade=p(P);constructor(){let e=this.authFacade.auth$.pipe(ie(n=>!!n),A(n=>n.id)),a=this.route.queryParams;I([e,a]).pipe(F()).subscribe(this.onQueryParams)}deletePresentation({id:e,title:a}){this.dialogFacade.confirm(`Confirme que deseja apagar a apresenta\xE7\xE3o ${a}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(n=>{n&&this.presentationFacade.delete(e)})}onQueryParams=([e,a])=>{let{page:n=0,size:m=10}=a,{title:_="",format:J="",visible:X=!0}=a,It={title:_,format:J,visible:X,owner:e};this.presentationFacade.setParams({page:n,size:m,filter:It}),this.presentationFacade.load()};onPageChange({page:e,size:a}){let n={page:e,size:a};this.router.navigate([],{queryParams:n})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["devmx-my-presentations"]],decls:6,vars:0,consts:[["mat-fab","","routerLink","nova",1,"tertiary-fab","top","right"],["name","plus"],[1,"presentations-container"],[3,"data"],[1,"no-presentations-yet"],[3,"pageChange","size","items"],["mat-icon-button","","matTooltip","Editar apresenta\xE7\xE3o","matTooltipPosition","before",3,"routerLink"],["name","software/edit"],["type","button","mat-icon-button","","matTooltip","Apagar apresenta\xE7\xE3o","matTooltipPosition","after",3,"click"],["name","trash-alt"],["color","#3BCE53","name","arrow/up-right",3,"size"],["color","#3BCE53","name","plus",3,"size"],["color","#3BCE53","name","emoji/smirking-alt",3,"size"],[3,"rows"]],template:function(a,n){a&1&&(r(0,"a",0),l(1,"devmx-icon",1),i(),g(2,Kt,2,3)(3,Jt,3,2),se(4,2,Ht,null,3),ce(500))},dependencies:[U,ee,D,ze,je,Ge,w],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:space-between}[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(3,1fr)}@media (max-width: 1278px){[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .presentations-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .no-presentations-yet[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] .no-presentations-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .no-presentations-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;white-space:normal}[_nghost-%COMP%] .no-presentations-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:160%}[_nghost-%COMP%] .no-presentations-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:120%;text-align:end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return t})();var At=(()=>{class t{static \u0275fac=function(a){return new(a||t)};static \u0275mod=ae({type:t});static \u0275inj=oe({imports:[ue]})}return t})();var K=class extends Y{formats=[{value:"talk",viewValue:"Palestra"},{value:"workshop",viewValue:"Oficina (workshop)"},{value:"webinar",viewValue:"Semin\xE1rio online (webinar)"}];constructor(){super({id:new h("",{nonNullable:!0}),title:new h("",{nonNullable:!0,validators:[b.required]}),description:new h("",{nonNullable:!0,validators:[b.required,b.maxLength(512)]}),link:new h("",{nonNullable:!0,validators:[b.pattern("^https://slides\\.com/[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+$")]}),format:new h("talk",{nonNullable:!0,validators:[b.required]}),resources:new te([]),tags:new te([]),visible:new h}),this.controls.id.disable()}currentResource=new h("",{nonNullable:!0,validators:[b.pattern(/^(https?:\/\/)?([a-zA-Z0-9-_]+(\.[a-zA-Z0-9-_]+)+.*)$/)]});currentTag=new h("",{nonNullable:!0,validators:[b.pattern(/^[a-zA-Z0-9]+$/)]});patch(o){o.id&&this.controls.id&&this.controls.id.enable(),this.patchValue(o),this.resources.clear();for(let e of o.resources)this.pushResource(e);this.tags.clear();for(let e of o.tags)this.pushTag(e)}get resources(){return this.controls.resources}get tags(){return this.controls.tags}addResource(o){if(o.preventDefault(),this.currentResource.valid&&this.currentResource.value)return this.pushResource(this.currentResource.value),this.currentResource.reset("");this.currentResource.markAsTouched()}addTag(o){if(o.preventDefault(),this.currentTag.valid&&this.currentTag.value)return this.pushTag(this.currentTag.value),this.currentTag.reset("");this.currentTag.markAsTouched()}pushResource(o=""){this.resources.push(new h(o,{nonNullable:!0}))}pushTag(o=""){this.tags.push(new h(o,{nonNullable:!0}))}removeResource(o){this.resources.removeAt(o)}removeTag(o){this.tags.removeAt(o)}};function Xt(t,o){if(t&1&&(r(0,"mat-option",4),s(1),i()),t&2){let e=o.$implicit;d("value",e.value),c(),k(e.viewValue)}}function er(t,o){if(t&1){let e=x();r(0,"mat-list-item",7),l(1,"devmx-icon",14),r(2,"div",15),s(3),i(),r(4,"button",16),u("click",function(){let n=C(e).$index,m=f();return M(m.form.removeResource(n))}),l(5,"devmx-icon",17),i()()}if(t&2){let e=o.$implicit;c(3),k(e.value)}}function tr(t,o){if(t&1){let e=x();r(0,"mat-list-item",7),l(1,"devmx-icon",18),r(2,"div",15),s(3),i(),r(4,"button",16),u("click",function(){let n=C(e).$index,m=f();return M(m.form.removeTag(n))}),l(5,"devmx-icon",17),i()()}if(t&2){let e=o.$implicit;c(3),k(e.value)}}function rr(t,o){t&1&&(r(0,"mat-list-item"),l(1,"devmx-icon",19),r(2,"span",15),s(3,"Dica"),i(),r(4,"span",20),s(5,"Voc\xEA pode reordenar os itens arrastando"),i()())}var ne=(()=>{class t{route=p(E);cdr=p(le);presentationFacade=p(P);messageService=p(Be);listItemDialog=p(R);form=new K;constructor(){this.route.data.pipe(F()).subscribe(({presentation:e})=>{e&&e.id&&this.form.patch(e)})}dropTags(e){re(this.form.tags.controls,e.previousIndex,e.currentIndex)}dropResources(e){re(this.form.resources.controls,e.previousIndex,e.currentIndex)}onSubmit(){if(this.form.valid){let e=this.form.getRawValue();return e.id?this.presentationFacade.update(e):this.presentationFacade.create(e),this.messageService.open({message:"Armazenando informa\xE7\xF5es"})}return this.form.markAllAsTouched()}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=v({type:t,selectors:[["devmx-presentation-admin-presentation"]],decls:63,vars:6,consts:[[3,"submit","formGroup"],[1,"presentation-card"],["type","text","matInput","","formControlName","title"],["formControlName","format"],[3,"value"],["matInput","","type","url","formControlName","link"],["cdkDropList","",1,"sortable-list",3,"cdkDropListDropped"],["cdkDrag","",1,"sortable-list-item"],["type","text","matInput","",3,"keydown.enter","formControl"],["formControlName","visible"],["label","Resenha da apresenta\xE7\xE3o","hint","Compat\xEDvel com markdown do Github","formControlName","description",3,"maxRows"],[3,"content"],[1,"presentation-card-actions"],["mat-flat-button",""],["matListItemIcon","","name","link"],["matListItemTitle",""],["type","button","matListItemMeta","","mat-icon-button","",3,"click"],["name","close-cross"],["matListItemIcon","","name","hashtag"],["matListItemIcon","","name","information-circle","color","#1A84FF"],["matListItemLine",""]],template:function(a,n){if(a&1&&(r(0,"form",0),u("submit",function(){return n.onSubmit()}),r(1,"mat-card",1)(2,"mat-card-content")(3,"section")(4,"div")(5,"mat-form-field")(6,"mat-label"),s(7,"T\xEDtulo da apresenta\xE7\xE3o"),i(),l(8,"input",2),r(9,"mat-error"),s(10,"Obrigat\xF3rio"),i()(),r(11,"mat-form-field")(12,"mat-label"),s(13,"Formato da apresenta\xE7\xE3o"),i(),r(14,"mat-select",3),O(15,Xt,2,2,"mat-option",4,L),i()()(),r(17,"mat-form-field")(18,"mat-label"),s(19,"URL da palestra"),i(),l(20,"input",5),r(21,"mat-hint"),s(22,"Apenas URL do slides.com s\xE3o suportadas"),i(),r(23,"mat-error"),s(24,"URL inv\xE1lida"),i()(),r(25,"mat-list",6),u("cdkDropListDropped",function(_){return n.dropResources(_)}),O(26,er,6,1,"mat-list-item",7,L),i(),r(28,"mat-form-field")(29,"mat-label"),s(30,"Adicione um link"),i(),r(31,"input",8),u("keydown.enter",function(_){return n.form.addResource(_)}),i(),r(32,"mat-hint"),s(33,"Use a tecla "),r(34,"kbd"),s(35,"enter"),i(),s(36," para adicionar"),i(),r(37,"mat-error"),s(38,"URL inv\xE1lida"),i()(),r(39,"mat-list",6),u("cdkDropListDropped",function(_){return n.dropTags(_)}),O(40,tr,6,1,"mat-list-item",7,L),g(42,rr,6,0,"mat-list-item"),i(),r(43,"mat-form-field")(44,"mat-label"),s(45,"Adicione uma tag"),i(),r(46,"input",8),u("keydown.enter",function(_){return n.form.addTag(_)}),i(),r(47,"mat-hint"),s(48,"Use a tecla "),r(49,"kbd"),s(50,"enter"),i(),s(51," para adicionar"),i(),r(52,"mat-error"),s(53,"Apenas letras e n\xFAmeros"),i()(),r(54,"mat-checkbox",9),s(55," Vis\xEDvel publicamente "),i()(),r(56,"section")(57,"devmx-markdown-toolbar"),l(58,"devmx-markdown-editor",10)(59,"devmx-markdown-view",11),i()()(),r(60,"mat-card-actions",12)(61,"button",13),s(62,"Salvar"),i()()()()),a&2){let m;d("formGroup",n.form),c(15),S(n.form.formats),c(11),S(n.form.resources.controls),c(5),d("formControl",n.form.currentResource),c(9),S(n.form.tags.controls),c(2),y(n.form.tags.length>1?42:-1),c(4),d("formControl",n.form.currentTag),c(12),d("maxRows",20),c(),d("content",(m=n.form.value.description)!==null&&m!==void 0?m:"")}},dependencies:[Te,Oe,Pe,be,ye,Se,ke,Ee,At,Je,rt,Xe,Me,Ce,ge,he,fe,tt,et,Ot,wt,yt,Ke,Ye,G,q,j,Qe,Ne,Ie,Le,Ae,Fe,De,Re,D,Ve,T,We,Ue,_e,w],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{flex:1;gap:1.6em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:.6em}[_nghost-%COMP%] .presentation-card-actions[_ngcontent-%COMP%]{gap:1em;display:flex;align-items:center;justify-content:flex-end}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;padding:0}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{gap:1em;display:flex}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .sortable-list[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .sortable-list-item[_ngcontent-%COMP%]{cursor:grab}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .sortable-list.cdk-drop-list-dragging[_ngcontent-%COMP%], [_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .sortable-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .sortable-list-item[_ngcontent-%COMP%]{cursor:grabbing}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .cdk-drag-preview[_ngcontent-%COMP%]{border:none;box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .presentation-card[_ngcontent-%COMP%] .sortable-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .sortable-list-item[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}return t})();var gi=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},providers:Et,component:St,children:[{path:"minhas-apresentacoes/nova",data:{breadcrumb:"Nova"},title:"Nova apresenta\xE7\xE3o",component:ne},{path:"minhas-apresentacoes/:id",data:{breadcrumb:t=>t.presentation.title},title:"Minha apresenta\xE7\xE3o",resolve:{presentation:Tt},component:ne},{path:"minhas-apresentacoes",data:{breadcrumb:"Minhas apresenta\xE7\xF5es"},title:"Minhas apresenta\xE7\xF5es",component:Rt},{path:"gerenciar-apresentacoes",data:{breadcrumb:"Gerenciar apresenta\xE7\xF5es"},title:"Gerenciar apresenta\xE7\xF5es",canActivate:[nt("director","manager","staff")],component:Ft},{path:"",pathMatch:"prefix",redirectTo:"minhas-apresentacoes"}]}];export{St as PresentationFeatureAdminComponent,gi as presentationFeatureAdminRoutes}; diff --git a/chunk-NWAJWWA3.js b/chunk-NWAJWWA3.js deleted file mode 100644 index 3f6ea1a9..00000000 --- a/chunk-NWAJWWA3.js +++ /dev/null @@ -1 +0,0 @@ -import{a as n}from"./chunk-XIUDFJWJ.js";import{A as w,a as g,b as A,c as b,d as P,i as j,j as q,n as R,t as O,u as T}from"./chunk-4FWBEGAE.js";import{F as c,L as p,O as a,a as D,b as $,ba as y,t as I}from"./chunk-TEKHUYWQ.js";var o=class extends g{};var v=class{eventService;constructor(e){this.eventService=e}execute({id:e,title:r}){return this.eventService.copy(e,{id:e,title:r})}};function k(){return n(v,[o])}var d=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.create(e)}};function H(){return n(d,[o])}var m=class{eventService;constructor(e){this.eventService=e}execute({event:e,status:r}){return this.eventService.createRSVP(e,r)}};function W(){return n(m,[o])}var u=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.delete(e)}};function Y(){return n(u,[o])}var f=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findAll(e)}};function L(){return n(f,[o])}var x=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findOne(e)}};function Q(){return n(x,[o])}var l=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findUntil(e)}};function z(){return n(l,[o])}var h=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.find(e)}};function _(){return n(h,[o])}var E=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findMyEvents(e)}};function G(){return n(E,[o])}var C=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findRSVPByEvent(e)}};function J(){return n(C,[o])}var S=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findRSVPConfirmedByEvent(e)}};function K(){return n(S,[o])}var U=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.update(e.id,e)}};function N(){return n(U,[o])}var M=class extends T{findAll(e){let r=[`${this.url}/all`,R(e)];return this.http.get(r.join("?"))}findUntil(e){let r=[`${this.url}/until`,R(e)];return this.http.get(r.join("?"))}findMyEvents(e){let r=[`${this.url}/my`,R(e)];return this.http.get(r.join("?"))}copy(e,r){let s=[this.url,e,"copy"];return this.http.patch(s.join("/"),r)}createRSVP(e,r){let s=[this.url,e,"rsvps"];return this.http.post(s.join("/"),{status:r})}findRSVPByEvent(e){let r=[this.url,e,"rsvps"];return this.http.get(r.join("/"))}findRSVPConfirmedByEvent(e){let r=[this.url,e,"rsvps","confirmed"];return this.http.get(r.join("/"))}};function X(){return{provide:o,useFactory(t,e){return new M(t,e,"events")},deps:[b,A]}}var le=Math.pow(10,8)*24*60*60*1e3,$t=-le;var Z=6e4;var he=3600;var ee=he*24,gt=ee*7,Ee=ee*365.2425,Ce=Ee/12,At=Ce*3,V=Symbol.for("constructDateFrom");function te(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&V in t?t[V](e):t instanceof Date?new t.constructor(e):new Date(e)}function re(t,e){return te(e||t,t)}function oe(t,e,r){let s=re(t,r?.in);return s.setTime(s.getTime()+e*Z),s}function ne(t){let e=new Date(t.date??""),r=j(t.duration??"2h"),s=oe(e,r);return $(D({},t),{start:e,end:s})}var se=t=>{switch(t){case"in-person":return"OfflineEventAttendanceMode";case"online":return"OnlineEventAttendanceMode";case"mixed":default:return"MixedEventAttendanceMode"}};function ie(t){return{"@context":"https://schema.org","@type":"Event",name:t.title,description:q(t.description??""),startDate:`${t.start}`,endDate:`${t.end}`,eventAttendanceMode:se(t.format),eventSchedule:[{"@type":"Schedule"}]}}var F=class extends w{createEventUseCase;findEventsUseCase;findMyEventsUseCase;findAllEventsUseCase;findEventsUntilUseCase;findEventByIDUseCase;updateEventUseCase;copyEventUseCase;deleteEventUseCase;page$=this.select(e=>e.selected).pipe(c(e=>!!e),I(e=>ne(e)));schema$=this.page$.pipe(I(e=>ie(e)));constructor(e,r,s,i,de,me,ue,fe,xe){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{title:"",format:""},sort:{date:"asc"}},selected:null}),this.createEventUseCase=e,this.findEventsUseCase=r,this.findMyEventsUseCase=s,this.findAllEventsUseCase=i,this.findEventsUntilUseCase=de,this.findEventByIDUseCase=me,this.updateEventUseCase=ue,this.copyEventUseCase=fe,this.deleteEventUseCase=xe}load(){this.onLoad(this.findEventsUseCase.execute(this.state.params))}loadAll(){this.onLoad(this.findAllEventsUseCase.execute(this.state.params))}loadUntil(){this.onLoad(this.findEventsUntilUseCase.execute(this.state.params))}loadMyEvents(){this.onLoad(this.findMyEventsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findEventByIDUseCase.execute(e))}create(e){let r=this.createEventUseCase.execute(e),s=i=>this.setState({selected:i});return r.pipe(p(1),y(s))}copy(e){let r=this.copyEventUseCase.execute(e),s=i=>this.setState({selected:i});return r.pipe(p(1),y(s))}update(e){let r=this.updateEventUseCase.execute(e),s=i=>this.setState({selected:i});return r.pipe(p(1),y(s))}delete(e){this.onDelete(this.deleteEventUseCase.execute(e))}};function ce(){return P(F,[d,h,E,f,l,x,U,v,u])}var B=class extends O{createRSVPUseCase;findRSVPByEventUseCase;findRSVPConfirmedByEventUseCase;response$=this.select(e=>e.response);constructor(e,r,s){super({response:[]}),this.createRSVPUseCase=e,this.findRSVPByEventUseCase=r,this.findRSVPConfirmedByEventUseCase=s}load(e){let r=this.findRSVPByEventUseCase.execute(e),s=i=>{this.setState({response:i})};r.pipe(p(1)).subscribe(s)}loadConfirmed(e){let r=this.findRSVPConfirmedByEventUseCase.execute(e),s=i=>{this.setState({response:i})};r.pipe(p(1)).subscribe(s)}create(e){this.createRSVPUseCase.execute(e).pipe(p(1)).subscribe(()=>this.loadConfirmed(e.event))}};function pe(){return P(B,[m,C,S])}function ae(){return[X(),H(),_(),G(),L(),z(),Q(),N(),Y(),k(),ce()]}function ve(){return[W(),J(),K(),pe()]}function Pr(){return[...ae(),...ve()]}var Mr=(t,e)=>(t.loadOne(e.id),t.page$.pipe(a(),c(r=>!!r)));var Br=(t,e)=>(t.loadOne(e.id),t.selected$.pipe(a(),c(r=>!!r)));var gr=(t,e)=>(t.loadOne(e.id),t.schema$.pipe(a(),c(r=>!!r)));export{te as a,re as b,F as c,B as d,Pr as e,Mr as f,Br as g,gr as h}; diff --git a/chunk-O3T3UZHL.js b/chunk-O3T3UZHL.js new file mode 100644 index 00000000..64033ea0 --- /dev/null +++ b/chunk-O3T3UZHL.js @@ -0,0 +1,3 @@ +import{c as $t}from"./chunk-VVQ6JEVH.js";import{f as Lt,g as at,k as Wt,n as Gt,o as He,r as Ut}from"./chunk-AND6K73U.js";import{a as nt,f as st,g as qt}from"./chunk-BJXILAOS.js";import{B as jt,q as it,v as rt,x as Qt}from"./chunk-6BGAZ7SQ.js";import{c as Ze,d as de,g as Y,h as Je,i as et,j as le}from"./chunk-I7VYXJU2.js";import{b as Le,d as Be,e as pe,f as Bt,g as Ht,k as zt,p as Kt}from"./chunk-EDIJ2EBQ.js";import{$ as G,M as Rt,R as tt,S as Tt,T as he,U as W,Y as Ot,Z as Pt,_ as f,ba as Yt,ca as Nt,f as It,i as Ye,n as xt,q as ce,r as Ne,s as z,y as Ft}from"./chunk-W5KNOAKV.js";import{$b as Ee,Aa as yt,Bc as Te,Cc as Oe,D as te,Dc as Pe,Ea as p,Eb as kt,F as bt,Fa as Ct,Fb as $e,Fc as P,Ja as q,Kb as B,L as vt,Mb as re,Nb as H,Sb as b,Sc as E,Tb as m,Ub as Ve,Va as Ue,Vb as S,Vc as F,Wb as Xe,Yb as ne,Yd as Et,Z as Ce,ac as Ie,bc as d,cc as c,da as We,dc as V,e as D,ea as Q,ed as Vt,fa as Dt,ha as we,hc as se,ic as xe,j as R,ja as Ae,jc as Mt,ka as o,kc as g,la as ke,lb as l,lc as St,ma as Me,mc as u,nb as wt,nc as Fe,oc as oe,p as ye,pc as Re,qc as I,rc as k,sa as T,sc as M,ta as y,ua as C,ub as A,va as ae,vb as At,wa as Ge,wb as O,xa as ie,xc as v,yc as x,za as Se,zc as j}from"./chunk-TEKHUYWQ.js";var ba=["mat-calendar-body",""];function va(r,s){return this._trackRow(s)}var na=(r,s)=>s.id;function Da(r,s){if(r&1&&(d(0,"tr",0)(1,"td",3),v(2),c()()),r&2){let e=u();l(),Ve("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),b("colspan",e.numCols),l(),j(" ",e.label," ")}}function ya(r,s){if(r&1&&(d(0,"td",3),v(1),c()),r&2){let e=u(2);Ve("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),b("colspan",e._firstRowOffset),l(),j(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Ca(r,s){if(r&1){let e=se();d(0,"td",6)(1,"button",7),g("click",function(t){let i=y(e).$implicit,n=u(2);return C(n._cellClicked(i,t))})("focus",function(t){let i=y(e).$implicit,n=u(2);return C(n._emitActiveDateChange(i,t))}),d(2,"span",8),v(3),c(),V(4,"span",9),c()()}if(r&2){let e=s.$implicit,a=s.$index,t=u().$index,i=u();Ve("width",i._cellWidth)("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),b("data-mat-row",t)("data-mat-col",a),l(),S("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",i._isActiveCell(t,a))("mat-calendar-body-range-start",i._isRangeStart(e.compareValue))("mat-calendar-body-range-end",i._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",i._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",i._isComparisonBridgeStart(e.compareValue,t,a))("mat-calendar-body-comparison-bridge-end",i._isComparisonBridgeEnd(e.compareValue,t,a))("mat-calendar-body-comparison-start",i._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",i._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",i._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",i._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",i._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",i._isInPreview(e.compareValue)),m("ngClass",e.cssClasses)("tabindex",i._isActiveCell(t,a)?0:-1),b("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",i._isSelected(e.compareValue))("aria-current",i.todayValue===e.compareValue?"date":null)("aria-describedby",i._getDescribedby(e.compareValue)),l(),S("mat-calendar-body-selected",i._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",i._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",i.todayValue===e.compareValue),l(),j(" ",e.displayValue," ")}}function wa(r,s){if(r&1&&(d(0,"tr",1),H(1,ya,2,6,"td",4),Ee(2,Ca,5,48,"td",5,na),c()),r&2){let e=s.$implicit,a=s.$index,t=u();l(),ne(a===0&&t._firstRowOffset?1:-1),l(),Ie(e)}}function Aa(r,s){if(r&1&&(d(0,"th",2)(1,"span",6),v(2),c(),d(3,"span",3),v(4),c()()),r&2){let e=s.$implicit;l(2),x(e.long),l(2),x(e.narrow)}}var ka=["*"];function Ma(r,s){}function Sa(r,s){if(r&1){let e=se();d(0,"mat-month-view",4),Pe("activeDateChange",function(t){y(e);let i=u();return Oe(i.activeDate,t)||(i.activeDate=t),C(t)}),g("_userSelection",function(t){y(e);let i=u();return C(i._dateSelected(t))})("dragStarted",function(t){y(e);let i=u();return C(i._dragStarted(t))})("dragEnded",function(t){y(e);let i=u();return C(i._dragEnded(t))}),c()}if(r&2){let e=u();Te("activeDate",e.activeDate),m("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Va(r,s){if(r&1){let e=se();d(0,"mat-year-view",5),Pe("activeDateChange",function(t){y(e);let i=u();return Oe(i.activeDate,t)||(i.activeDate=t),C(t)}),g("monthSelected",function(t){y(e);let i=u();return C(i._monthSelectedInYearView(t))})("selectedChange",function(t){y(e);let i=u();return C(i._goToDateInView(t,"month"))}),c()}if(r&2){let e=u();Te("activeDate",e.activeDate),m("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ea(r,s){if(r&1){let e=se();d(0,"mat-multi-year-view",6),Pe("activeDateChange",function(t){y(e);let i=u();return Oe(i.activeDate,t)||(i.activeDate=t),C(t)}),g("yearSelected",function(t){y(e);let i=u();return C(i._yearSelectedInMultiYearView(t))})("selectedChange",function(t){y(e);let i=u();return C(i._goToDateInView(t,"year"))}),c()}if(r&2){let e=u();Te("activeDate",e.activeDate),m("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ia(r,s){}var xa=["button"],Fa=[[["","matDatepickerToggleIcon",""]]],Ra=["[matDatepickerToggleIcon]"];function Ta(r,s){r&1&&(ae(),d(0,"svg",2),V(1,"path",3),c())}var Oa=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Pa=["input[matStartDate]","input[matEndDate]"];var fe=(()=>{class r{changes=new R;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";formatYearRange(e,a){return`${e} \u2013 ${a}`}formatYearRangeLabel(e,a){return`${e} to ${a}`}static \u0275fac=function(a){return new(a||r)};static \u0275prov=Q({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Ya=0,me=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Ya++;constructor(s,e,a,t,i={},n=s,h){this.value=s,this.displayValue=e,this.ariaLabel=a,this.enabled=t,this.cssClasses=i,this.compareValue=n,this.rawValue=h}},Xt=Ye({passive:!1,capture:!0}),N=Ye({passive:!0,capture:!0}),ze=Ye({passive:!0}),Z=(()=>{class r{_elementRef=o(q);_ngZone=o(Ct);_platform=o(It);_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new p;previewChange=new p;activeDateChange=new p;dragStarted=new p;dragEnded=new p;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_didDragSinceMouseDown=!1;_injector=o(Se);_trackRow=e=>e;constructor(){let e=o(he);this._startDateLabelId=e.getId("mat-calendar-body-start-"),this._endDateLabelId=e.getId("mat-calendar-body-start-"),o(ce).load(Nt),this._ngZone.runOutsideAngular(()=>{let a=this._elementRef.nativeElement;a.addEventListener("touchmove",this._touchmoveHandler,Xt),a.addEventListener("mouseenter",this._enterHandler,N),a.addEventListener("focus",this._enterHandler,N),a.addEventListener("mouseleave",this._leaveHandler,N),a.addEventListener("blur",this._leaveHandler,N),a.addEventListener("mousedown",this._mousedownHandler,ze),a.addEventListener("touchstart",this._mousedownHandler,ze),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,a){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:a})}_emitActiveDateChange(e,a){e.enabled&&this.activeDateChange.emit({value:e.value,event:a})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let a=e.numCols,{rows:t,numCols:i}=this;(e.rows||a)&&(this._firstRowOffset=t&&t.length&&t[0].length?i-t[0].length:0),(e.cellAspectRatio||a||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/i}%`),(a||!this._cellWidth)&&(this._cellWidth=`${100/i}%`)}ngOnDestroy(){let e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,Xt),e.removeEventListener("mouseenter",this._enterHandler,N),e.removeEventListener("focus",this._enterHandler,N),e.removeEventListener("mouseleave",this._leaveHandler,N),e.removeEventListener("blur",this._leaveHandler,N),e.removeEventListener("mousedown",this._mousedownHandler,ze),e.removeEventListener("touchstart",this._mousedownHandler,ze),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,a){let t=e*this.numCols+a;return e&&(t-=this._firstRowOffset),t==this.activeCell}_focusActiveCell(e=!0){Ue(()=>{setTimeout(()=>{let a=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");a&&(e||(this._skipNextFocus=!0),a.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return lt(e,this.startValue,this.endValue)}_isRangeEnd(e){return ct(e,this.startValue,this.endValue)}_isInRange(e){return ht(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return lt(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,a,t){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let i=this.rows[a][t-1];if(!i){let n=this.rows[a-1];i=n&&n[n.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(e,a,t){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let i=this.rows[a][t+1];if(!i){let n=this.rows[a+1];i=n&&n[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(e){return ct(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return ht(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return lt(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return ct(e,this.previewStart,this.previewEnd)}_isInPreview(e){return ht(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let a=this._getCellFromElement(e.target);a&&this._ngZone.run(()=>this.previewChange.emit({value:a.enabled?a:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let a=Zt(e),t=a?this._getCellFromElement(a):null;a!==e.target&&(this._didDragSinceMouseDown=!0),dt(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:t?.enabled?t:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let a=e.target&&this._getCellFromElement(e.target);!a||!this._isInRange(a.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:a.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let a=dt(e.target);if(!a){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}a.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let t=this._getCellFromElement(a);this.dragEnded.emit({value:t?.rawValue??null,event:e})})};_touchendHandler=e=>{let a=Zt(e);a&&this._mouseupHandler({target:a})};_getCellFromElement(e){let a=dt(e);if(a){let t=a.getAttribute("data-mat-row"),i=a.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=A({type:r,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[T],attrs:ba,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(a,t){a&1&&(H(0,Da,3,6,"tr",0),Ee(1,wa,4,1,"tr",1,va,!0),d(3,"span",2),v(4),c(),d(5,"span",2),v(6),c()),a&2&&(ne(t._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}}'],encapsulation:2,changeDetection:0})}return r})();function ot(r){return r?.nodeName==="TD"}function dt(r){let s;return ot(r)?s=r:ot(r.parentNode)?s=r.parentNode:ot(r.parentNode?.parentNode)&&(s=r.parentNode.parentNode),s?.getAttribute("data-mat-row")!=null?s:null}function lt(r,s,e){return e!==null&&s!==e&&r=s&&r===e}function ht(r,s,e,a){return a&&s!==null&&e!==null&&s!==e&&r>=s&&r<=e}function Zt(r){let s=r.changedTouches[0];return document.elementFromPoint(s.clientX,s.clientY)}var _=class{start;end;_disableStructuralEquivalency;constructor(s,e){this.start=s,this.end=e}},L=(()=>{class r{selection;_adapter;_selectionChanged=new R;selectionChanged=this._selectionChanged;constructor(e,a){this.selection=e,this._adapter=a,this.selection=e}updateSelection(e,a){let t=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:a,oldValue:t})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(a){wt()};static \u0275prov=Q({token:r,factory:r.\u0275fac})}return r})(),Na=(()=>{class r extends L{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new r(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(a){return new(a||r)(Ae(f))};static \u0275prov=Q({token:r,factory:r.\u0275fac})}return r})(),La=(()=>{class r extends L{constructor(e){super(new _(null,null),e)}add(e){let{start:a,end:t}=this.selection;a==null?a=e:t==null?t=e:(a=e,t=null),super.updateSelection(new _(a,t),this)}isValid(){let{start:e,end:a}=this.selection;return e==null&&a==null?!0:e!=null&&a!=null?this._isValidDateInstance(e)&&this._isValidDateInstance(a)&&this._adapter.compareDate(e,a)<=0:(e==null||this._isValidDateInstance(e))&&(a==null||this._isValidDateInstance(a))}isComplete(){return this.selection.start!=null&&this.selection.end!=null}clone(){let e=new r(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(a){return new(a||r)(Ae(f))};static \u0275prov=Q({token:r,factory:r.\u0275fac})}return r})();function Ba(r,s){return r||new Na(s)}var sa={provide:L,deps:[[new ke,new Me,L],f],useFactory:Ba};function Ha(r,s){return r||new La(s)}var za={provide:L,deps:[[new ke,new Me,L],f],useFactory:Ha},Ke=new we("MAT_DATE_RANGE_SELECTION_STRATEGY"),Ka=(()=>{class r{_dateAdapter;constructor(e){this._dateAdapter=e}selectionFinished(e,a){let{start:t,end:i}=a;return t==null?t=e:i==null&&e&&this._dateAdapter.compareDate(e,t)>=0?i=e:(t=e,i=null),new _(t,i)}createPreview(e,a){let t=null,i=null;return a.start&&!a.end&&e&&(t=a.start,i=e),new _(t,i)}createDrag(e,a,t){let i=a.start,n=a.end;if(!i||!n)return null;let h=this._dateAdapter,be=h.compareDate(i,n)!==0,K=h.getYear(t)-h.getYear(e),ve=h.getMonth(t)-h.getMonth(e),De=h.getDate(t)-h.getDate(e);return be&&h.sameDate(e,a.start)?(i=t,h.compareDate(t,n)>0&&(n=h.addCalendarYears(n,K),n=h.addCalendarMonths(n,ve),n=h.addCalendarDays(n,De))):be&&h.sameDate(e,a.end)?(n=t,h.compareDate(t,i)<0&&(i=h.addCalendarYears(i,K),i=h.addCalendarMonths(i,ve),i=h.addCalendarDays(i,De))):(i=h.addCalendarYears(i,K),i=h.addCalendarMonths(i,ve),i=h.addCalendarDays(i,De),n=h.addCalendarYears(n,K),n=h.addCalendarMonths(n,ve),n=h.addCalendarDays(n,De)),new _(i,n)}static \u0275fac=function(a){return new(a||r)(Ae(f))};static \u0275prov=Q({token:r,factory:r.\u0275fac})}return r})();function Qa(r,s){return r||new Ka(s)}var qa={provide:Ke,deps:[[new ke,new Me,Ke],f],useFactory:Qa},pt=7,ja=0,Jt=(()=>{class r{_changeDetectorRef=o(E);_dateFormats=o(G,{optional:!0});_dateAdapter=o(f,{optional:!0});_dir=o(W,{optional:!0});_rangeStrategy=o(Ke,{optional:!0});_rerenderSubscription=D.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this._hasSameMonthAndYear(a,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof _?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new p;_userSelection=new p;dragStarted=new p;dragEnded=new p;activeDateChange=new p;_matCalendarBody;_monthLabel;_weeks;_firstWeekOffset;_rangeStart;_rangeEnd;_comparisonRangeStart;_comparisonRangeEnd;_previewStart;_previewEnd;_isRange;_todayDate;_weekdays;constructor(){o(ce).load(Ne),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ce(null)).subscribe(()=>this._init())}ngOnChanges(e){let a=e.comparisonStart||e.comparisonEnd;a&&!a.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let a=e.value,t=this._getDateFromDayOfMonth(a),i,n;this._selected instanceof _?(i=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):i=n=this._getDateInCurrentMonth(this._selected),(i!==a||n!==a)&&this.selectedChange.emit(t),this._userSelection.emit({value:t,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!z(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(pt+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%pt,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:a}){if(this._rangeStrategy){let t=a?a.rawValue:null,i=this._rangeStrategy.createPreview(t,this.selected,e);if(this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this.activeDrag&&t){let n=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,t,e);n&&(this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let a=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:a??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),a=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map((n,h)=>({long:n,narrow:a[h],id:ja++}));this._weekdays=i.slice(e).concat(i.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),a=this._dateAdapter.getDateNames();this._weeks=[[]];for(let t=0,i=this._firstWeekOffset;t=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,a){return!!(e&&a&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(a)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a))}_getCellCompareValue(e){if(e){let a=this._dateAdapter.getYear(e),t=this._dateAdapter.getMonth(e),i=this._dateAdapter.getDate(e);return new Date(a,t,i).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof _?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=A({type:r,selectors:[["mat-month-view"]],viewQuery:function(a,t){if(a&1&&I(Z,5),a&2){let i;k(i=M())&&(t._matCalendarBody=i.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[T],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(a,t){a&1&&(d(0,"table",0)(1,"thead",1)(2,"tr"),Ee(3,Aa,5,2,"th",2,na),c(),d(5,"tr",3),V(6,"th",4),c()(),d(7,"tbody",5),g("selectedValueChange",function(n){return t._dateSelected(n)})("activeDateChange",function(n){return t._updateActiveDate(n)})("previewChange",function(n){return t._previewChanged(n)})("dragStarted",function(n){return t.dragStarted.emit(n)})("dragEnded",function(n){return t._dragEnded(n)})("keyup",function(n){return t._handleCalendarBodyKeyup(n)})("keydown",function(n){return t._handleCalendarBodyKeydown(n)}),c()()),a&2&&(l(3),Ie(t._weekdays),l(4),m("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1)("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName))},dependencies:[Z],encapsulation:2,changeDetection:0})}return r})(),w=24,ut=4,ea=(()=>{class r{_changeDetectorRef=o(E);_dateAdapter=o(f,{optional:!0});_dir=o(W,{optional:!0});_rerenderSubscription=D.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),oa(this._dateAdapter,a,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof _?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new p;yearSelected=new p;activeDateChange=new p;_matCalendarBody;_years;_todayYear;_selectedYear;constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ce(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let a=this._dateAdapter.getYear(this._activeDate)-ue(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let t=0,i=[];tthis._createCellForYear(n))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let a=e.value,t=this._dateAdapter.createDate(a,0,1),i=this._getDateFromYear(a);this.yearSelected.emit(t),this.selectedChange.emit(i)}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromYear(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ut);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ut);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ue(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,w-ue(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-w*10:-w);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?w*10:w);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return ue(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let a=this._dateAdapter.getMonth(this.activeDate),t=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,a,1));return this._dateAdapter.createDate(e,a,Math.min(this._dateAdapter.getDate(this.activeDate),t))}_createCellForYear(e){let a=this._dateAdapter.createDate(e,0,1),t=this._dateAdapter.getYearName(a),i=this.dateClass?this.dateClass(a,"multi-year"):void 0;return new me(e,t,t,this._shouldEnableYear(e),i)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class r{_changeDetectorRef=o(E);_dateFormats=o(G,{optional:!0});_dateAdapter=o(f,{optional:!0});_dir=o(W,{optional:!0});_rerenderSubscription=D.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this._dateAdapter.getYear(a)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof _?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new p;monthSelected=new p;activeDateChange=new p;_matCalendarBody;_months;_yearLabel;_todayMonth;_selectedMonth;constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ce(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let a=e.value,t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(t);let i=this._getDateFromMonth(a);this.selectedChange.emit(i)}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromMonth(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(a=>a.map(t=>this._createCellForMonth(t,e[t]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),t=this._dateAdapter.getNumDaysInMonth(a);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),t))}_createCellForMonth(e,a){let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.format(t,this._dateFormats.display.monthYearA11yLabel),n=this.dateClass?this.dateClass(t,"year"):void 0;return new me(e,a.toLocaleUpperCase(),i,this._shouldEnableMonth(e),n)}_shouldEnableMonth(e){let a=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(a,e)||this._isYearAndMonthBeforeMinDate(a,e))return!1;if(!this.dateFilter)return!0;let t=this._dateAdapter.createDate(a,e,1);for(let i=t;this._dateAdapter.getMonth(i)==e;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(e,a){if(this.maxDate){let t=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>t||e===t&&a>i}return!1}_isYearAndMonthBeforeMinDate(e,a){if(this.minDate){let t=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e{class r{_intl=o(fe);calendar=o(_t);_dateAdapter=o(f,{optional:!0});_dateFormats=o(G,{optional:!0});constructor(){o(ce).load(Ne);let e=o(E);this.calendar.stateChanges.subscribe(()=>e.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-w)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:w)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,a){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(a):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a):oa(this._dateAdapter,e,a,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let a=this._dateAdapter.getYear(this.calendar.activeDate)-ue(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=a+w-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return[i,n]}_periodButtonLabelId=o(he).getId("mat-calendar-period-label-");static \u0275fac=function(a){return new(a||r)};static \u0275cmp=A({type:r,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ka,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(a,t){a&1&&(Fe(),d(0,"div",0)(1,"div",1)(2,"span",2),v(3),c(),d(4,"button",3),g("click",function(){return t.currentPeriodClicked()}),d(5,"span",4),v(6),c(),ae(),d(7,"svg",5),V(8,"polygon",6),c()(),Ge(),V(9,"div",7),oe(10),d(11,"button",8),g("click",function(){return t.previousClicked()}),ae(),d(12,"svg",9),V(13,"path",10),c()(),Ge(),d(14,"button",11),g("click",function(){return t.nextClicked()}),ae(),d(15,"svg",9),V(16,"path",12),c()()()()),a&2&&(l(2),m("id",t._periodButtonLabelId),l(),x(t.periodButtonDescription),l(),b("aria-label",t.periodButtonLabel)("aria-describedby",t._periodButtonLabelId),l(2),x(t.periodButtonText),l(),S("mat-calendar-invert",t.calendar.currentView!=="month"),l(4),m("disabled",!t.previousEnabled()),b("aria-label",t.prevButtonLabel),l(3),m("disabled",!t.nextEnabled()),b("aria-label",t.nextButtonLabel))},dependencies:[it,rt],encapsulation:2,changeDetection:0})}return r})(),_t=(()=>{class r{_dateAdapter=o(f,{optional:!0});_dateFormats=o(G,{optional:!0});_changeDetectorRef=o(E);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof _?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new p;yearSelected=new p;monthSelected=new p;viewChanged=new p(!0);_userSelection=new p;_userDragDrop=new p;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let a=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),a&&this.viewChanged.emit(a)}_currentView;_activeDrag=null;stateChanges=new R;constructor(){this._intlChanges=o(fe).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new nt(this.headerComponent||la),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let a=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,t=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,i=a||t||e.dateFilter;if(i&&!i.firstChange){let n=this._getCurrentViewComponent();n&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),n._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let a=e.value;(this.selected instanceof _||a&&!this._dateAdapter.sameDate(a,this.selected))&&this.selectedChange.emit(a),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,a){this.activeDate=e,this.currentView=a}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=A({type:r,selectors:[["mat-calendar"]],viewQuery:function(a,t){if(a&1&&(I(Jt,5),I(ta,5),I(ea,5)),a&2){let i;k(i=M())&&(t.monthView=i.first),k(i=M())&&(t.yearView=i.first),k(i=M())&&(t.multiYearView=i.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[P([sa]),T],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(a,t){if(a&1&&(H(0,Ma,0,0,"ng-template",0),d(1,"div",1),H(2,Sa,1,11,"mat-month-view",2)(3,Va,1,6,"mat-year-view",3)(4,Ea,1,6,"mat-multi-year-view",3),c()),a&2){let i;m("cdkPortalOutlet",t._calendarHeaderPortal),l(2),ne((i=t.currentView)==="month"?2:i==="year"?3:i==="multi-year"?4:-1)}},dependencies:[st,tt,Jt,ta,ea],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return r})(),aa={transformPanel:Ze("transformPanel",[le("void => enter-dropdown",de("120ms cubic-bezier(0, 0, 0.2, 1)",et([Y({opacity:0,transform:"scale(1, 0.8)"}),Y({opacity:1,transform:"scale(1, 1)"})]))),le("void => enter-dialog",de("150ms cubic-bezier(0, 0, 0.2, 1)",et([Y({opacity:0,transform:"scale(0.7)"}),Y({transform:"none",opacity:1})]))),le("* => void",de("100ms linear",Y({opacity:0})))]),fadeInCalendar:Ze("fadeInCalendar",[Je("void",Y({opacity:0})),Je("enter",Y({opacity:1})),le("void => *",de("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},ca=new we("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let r=o(He);return()=>r.scrollStrategies.reposition()}});function Ga(r){return()=>r.scrollStrategies.reposition()}var Ua={provide:ca,deps:[He],useFactory:Ga},ha=(()=>{class r{_elementRef=o(q);_changeDetectorRef=o(E);_globalModel=o(L);_dateAdapter=o(f);_rangeSelectionStrategy=o(Ke,{optional:!0});_subscriptions=new D;_model;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationState;_animationDone=new R;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){o(ce).load(Ne);let e=o(fe);this._closeButtonText=e.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let a=this._model.selection,t=e.value,i=a instanceof _;if(i&&this._rangeSelectionStrategy){let n=this._rangeSelectionStrategy.selectionFinished(t,a,e.event);this._model.updateSelection(n,this)}else t&&(i||!this._dateAdapter.sameDate(t,a))&&this._model.add(t);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating=e.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,a){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,a&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=A({type:r,selectors:[["mat-datepicker-content"]],viewQuery:function(a,t){if(a&1&&I(_t,5),a&2){let i;k(i=M())&&(t._calendar=i.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(a,t){a&1&&St("@transformPanel.start",function(n){return t._handleAnimationEvent(n)})("@transformPanel.done",function(n){return t._handleAnimationEvent(n)}),a&2&&(Mt("@transformPanel",t._animationState),Xe(t.color?"mat-"+t.color:""),S("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(a,t){if(a&1&&(d(0,"div",0)(1,"mat-calendar",1),g("yearSelected",function(n){return t.datepicker._selectYear(n)})("monthSelected",function(n){return t.datepicker._selectMonth(n)})("viewChanged",function(n){return t.datepicker._viewChanged(n)})("_userSelection",function(n){return t._handleUserSelection(n)})("_userDragDrop",function(n){return t._handleUserDragDrop(n)}),c(),H(2,Ia,0,0,"ng-template",2),d(3,"button",3),g("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),v(4),c()()),a&2){let i;S("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),b("aria-modal",!0)("aria-labelledby",(i=t._dialogLabelId)!==null&&i!==void 0?i:void 0),l(),Xe(t.datepicker.panelClass),m("id",t.datepicker.id)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName),l(),m("cdkPortalOutlet",t._actionsPortal),l(),S("cdk-visually-hidden",!t._closeButtonFocused),m("color",t.color||"primary"),l(),x(t._closeButtonText)}},dependencies:[Rt,_t,st,it],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[aa.transformPanel,aa.fadeInCalendar]},changeDetection:0})}return r})(),Qe=(()=>{class r{_overlay=o(He);_viewContainerRef=o(kt);_dateAdapter=o(f,{optional:!0});_dir=o(W,{optional:!0});_model=o(L);_scrollStrategy=o(ca);_inputStateChanges=D.EMPTY;_document=o(Vt);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new p;monthSelected=new p;viewChanged=new p(!0);dateClass;openedStream=new p;closedStream=new p;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=Ft(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=o(he).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new R;_injector=o(Se);_changeDetectorRef=o(E);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let a=e.xPosition||e.yPosition;if(a&&!a.firstChange&&this._overlayRef){let t=this._overlayRef.getConfig().positionStrategy;t instanceof Gt&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=xt(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",a=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:t,location:i}=this._componentRef;t._startExitAnimation(),t._animationDone.pipe(vt(1)).subscribe(()=>{let n=this._document.activeElement;e&&(!n||n===this._document.activeElement||i.nativeElement.contains(n))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(a):a()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,a=new nt(ha,this._viewContainerRef),t=this._overlayRef=this._overlay.create(new Wt({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));this._getCloseStream(t).subscribe(i=>{i&&i.preventDefault(),this.close()}),t.keydownEvents().subscribe(i=>{let n=i.keyCode;(n===38||n===40||n===37||n===39||n===33||n===34)&&i.preventDefault()}),this._componentRef=t.attach(a),this._forwardContentValues(this._componentRef.instance),e||Ue(()=>{t.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let a=this.xPosition==="end"?"end":"start",t=a==="start"?"end":"start",i=this.yPosition==="above"?"bottom":"top",n=i==="top"?"bottom":"top";return e.withPositions([{originX:a,originY:n,overlayX:a,overlayY:i},{originX:a,originY:i,overlayX:a,overlayY:n},{originX:t,originY:n,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:n}])}_getCloseStream(e){let a=["ctrlKey","shiftKey","metaKey"];return te(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(bt(t=>t.keyCode===27&&!z(t)||this.datepickerInput&&z(t,"altKey")&&t.keyCode===38&&a.every(i=>!z(t,i)))))}static \u0275fac=function(a){return new(a||r)};static \u0275dir=O({type:r,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",F],disabled:[2,"disabled","disabled",F],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",F],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",F]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[re,T]})}return r})(),Ni=(()=>{class r extends Qe{static \u0275fac=(()=>{let e;return function(t){return(e||(e=ie(r)))(t||r)}})();static \u0275cmp=A({type:r,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[P([sa,{provide:Qe,useExisting:r}]),B],decls:0,vars:0,template:function(a,t){},encapsulation:2,changeDetection:0})}return r})(),U=class{target;targetElement;value;constructor(s,e){this.target=s,this.targetElement=e,this.value=this.target.value}},pa=(()=>{class r{_elementRef=o(q);_dateAdapter=o(f,{optional:!0});_dateFormats=o(G,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let a=e,t=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0)),a&&this._isInitialized&&t.blur&&t.blur()}_disabled;dateChange=new p;dateInput=new p;stateChanges=new R;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=D.EMPTY;_localeSubscription=D.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),t=this._getMinDate();return!t||!a||this._dateAdapter.compareDate(t,a)<=0?null:{matDatepickerMin:{min:t,actual:a}}};_maxValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),t=this._getMaxDate();return!t||!a||this._dateAdapter.compareDate(t,a)>=0?null:{matDatepickerMax:{max:t,actual:a}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(a=>{if(this._shouldHandleChangeEvent(a)){let t=this._getValueFromModel(a.selection);this._lastValueValid=this._isValidValue(t),this._cvaOnChange(t),this._onTouched(),this._formatValue(t),this.dateInput.emit(new U(this,this._elementRef.nativeElement)),this.dateChange.emit(new U(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){ua(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let a=["ctrlKey","shiftKey","metaKey"];z(e,"altKey")&&e.keyCode===40&&a.every(i=>!z(e,i))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let a=this._lastValueValid,t=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t);let i=!this._dateAdapter.sameDate(t,this.value);!t||i?this._cvaOnChange(t):(e&&!this.value&&this._cvaOnChange(t),a!==this._lastValueValid&&this._validatorOnChange()),i&&(this._assignValue(t),this.dateInput.emit(new U(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new U(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let a=this._getDateFilter();return!a||a(e)}static \u0275fac=function(a){return new(a||r)};static \u0275dir=O({type:r,inputs:{value:"value",disabled:[2,"disabled","disabled",F]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[re,T]})}return r})();function ua(r,s){let e=Object.keys(r);for(let a of e){let{previousValue:t,currentValue:i}=r[a];if(s.isDateInstance(t)&&s.isDateInstance(i)){if(!s.sameDate(t,i))return!0}else return!0}return!1}var $a={provide:Le,useExisting:We(()=>_a),multi:!0},Xa={provide:Be,useExisting:We(()=>_a),multi:!0},_a=(()=>{class r extends pa{_formField=o(at,{optional:!0});_closedSubscription=D.EMPTY;_openedSubscription=D.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=$e(null);get min(){return this._min}set min(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._min)||(this._min=a,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._max)||(this._max=a,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let a=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==a&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=pe.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(a){return new(a||r)};static \u0275dir=O({type:r,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(a,t){a&1&&g("input",function(n){return t._onInput(n.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(n){return t._onKeydown(n)}),a&2&&(xe("disabled",t.disabled),b("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",t._ariaOwns())("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[P([$a,Xa,{provide:$t,useExisting:r}]),B]})}return r})(),Za=(()=>{class r{static \u0275fac=function(a){return new(a||r)};static \u0275dir=O({type:r,selectors:[["","matDatepickerToggleIcon",""]]})}return r})(),Ja=(()=>{class r{_intl=o(fe);_changeDetectorRef=o(E);_stateChanges=D.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=o(new yt("tabindex"),{optional:!0}),a=Number(e);this.tabIndex=a||a===0?a:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:ye(),a=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:ye(),t=this.datepicker?te(this.datepicker.openedStream,this.datepicker.closedStream):ye();this._stateChanges.unsubscribe(),this._stateChanges=te(this._intl.changes,e,a,t).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=A({type:r,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,t,i){if(a&1&&Re(i,Za,5),a&2){let n;k(n=M())&&(t._customIcon=n.first)}},viewQuery:function(a,t){if(a&1&&I(xa,5),a&2){let i;k(i=M())&&(t._button=i.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(a,t){a&1&&g("click",function(n){return t._open(n)}),a&2&&(b("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),S("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&t.datepicker.color==="accent")("mat-warn",t.datepicker&&t.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",F],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[re,T],ngContentSelectors:Ra,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(a,t){a&1&&(Fe(Fa),d(0,"button",1,0),H(2,Ta,2,0,":svg:svg",2),oe(3),c()),a&2&&(m("disabled",t.disabled)("disableRipple",t.disableRipple),b("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),l(2),ne(t._customIcon?-1:2))},dependencies:[rt],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}"],encapsulation:2,changeDetection:0})}return r})();function ei(r){return mt(r,!0)}function ia(r){return r.nodeType===Node.ELEMENT_NODE}function ti(r){return r.nodeName==="INPUT"}function ai(r){return r.nodeName==="TEXTAREA"}function mt(r,s){if(ia(r)&&s){let a=(r.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((t,i)=>{let n=document.getElementById(i);return n&&t.push(n),t},[]);if(a.length)return a.map(t=>mt(t,!1)).join(" ")}if(ia(r)){let e=r.getAttribute("aria-label")?.trim();if(e)return e}if(ti(r)||ai(r)){if(r.labels?.length)return Array.from(r.labels).map(t=>mt(t,!1)).join(" ");let e=r.getAttribute("placeholder")?.trim();if(e)return e;let a=r.getAttribute("title")?.trim();if(a)return a}return(r.textContent||"").replace(/\s+/g," ").trim()}var ma=new we("MAT_DATE_RANGE_INPUT_PARENT"),ga=(()=>{class r extends pa{_rangeInput=o(ma);_elementRef=o(q);_defaultErrorStateMatcher=o(Yt);_injector=o(Se);_parentForm=o(zt,{optional:!0});_parentFormGroup=o(Kt,{optional:!0});ngControl;_dir=o(W,{optional:!0});_errorStateTracker;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super(),this._errorStateTracker=new Pt(this._defaultErrorStateMatcher,null,this._parentFormGroup,this._parentForm,this.stateChanges)}ngOnInit(){let e=this._injector.get(Ht,null,{optional:!0,self:!0});e&&(this.ngControl=e,this._errorStateTracker.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return this._elementRef.nativeElement.value.length===0}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){let e=this._elementRef.nativeElement,a=e.value;return a.length>0?a:e.placeholder}updateErrorState(){this._errorStateTracker.updateErrorState()}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return ei(this._elementRef.nativeElement)}static \u0275fac=function(a){return new(a||r)};static \u0275dir=O({type:r,inputs:{errorStateMatcher:"errorStateMatcher"},features:[B]})}return r})(),ii=(()=>{class r extends ga{_startValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),t=this._model?this._model.selection.end:null;return!a||!t||this._dateAdapter.compareDate(a,t)<=0?null:{matStartDateInvalid:{end:t,actual:a}}};_validator=pe.compose([...super._getValidators(),this._startValidator]);_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.start?!e.selection.start||!!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!!e.selection.start:!1}_assignValueToModel(e){if(this._model){let a=new _(e,this._model.selection.end);this._model.updateSelection(a,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}_onKeydown(e){let a=this._rangeInput._endInput,t=this._elementRef.nativeElement,i=this._dir?.value!=="rtl";(e.keyCode===39&&i||e.keyCode===37&&!i)&&t.selectionStart===t.value.length&&t.selectionEnd===t.value.length?(e.preventDefault(),a._elementRef.nativeElement.setSelectionRange(0,0),a.focus()):super._onKeydown(e)}static \u0275fac=(()=>{let e;return function(t){return(e||(e=ie(r)))(t||r)}})();static \u0275dir=O({type:r,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(a,t){a&1&&g("input",function(n){return t._onInput(n.target.value)})("change",function(){return t._onChange()})("keydown",function(n){return t._onKeydown(n)})("blur",function(){return t._onBlur()}),a&2&&(xe("disabled",t.disabled),b("aria-haspopup",t._rangeInput.rangePicker?"dialog":null)("aria-owns",t._rangeInput._ariaOwns?t._rangeInput._ariaOwns():(t._rangeInput.rangePicker==null?null:t._rangeInput.rangePicker.opened)&&t._rangeInput.rangePicker.id||null)("min",t._getMinDate()?t._dateAdapter.toIso8601(t._getMinDate()):null)("max",t._getMaxDate()?t._dateAdapter.toIso8601(t._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[P([{provide:Le,useExisting:r,multi:!0},{provide:Be,useExisting:r,multi:!0}]),B]})}return r})(),ri=(()=>{class r extends ga{_endValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),t=this._model?this._model.selection.start:null;return!a||!t||this._dateAdapter.compareDate(a,t)>=0?null:{matEndDateInvalid:{start:t,actual:a}}};_validator=pe.compose([...super._getValidators(),this._endValidator]);_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.end?!e.selection.end||!!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!!e.selection.end:!1}_assignValueToModel(e){if(this._model){let a=new _(this._model.selection.start,e);this._model.updateSelection(a,this)}}_moveCaretToEndOfStartInput(){let e=this._rangeInput._startInput._elementRef.nativeElement,a=e.value;a.length>0&&e.setSelectionRange(a.length,a.length),e.focus()}_onKeydown(e){let a=this._elementRef.nativeElement,t=this._dir?.value!=="rtl";e.keyCode===8&&!a.value?this._moveCaretToEndOfStartInput():(e.keyCode===37&&t||e.keyCode===39&&!t)&&a.selectionStart===0&&a.selectionEnd===0?(e.preventDefault(),this._moveCaretToEndOfStartInput()):super._onKeydown(e)}static \u0275fac=(()=>{let e;return function(t){return(e||(e=ie(r)))(t||r)}})();static \u0275dir=O({type:r,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(a,t){a&1&&g("input",function(n){return t._onInput(n.target.value)})("change",function(){return t._onChange()})("keydown",function(n){return t._onKeydown(n)})("blur",function(){return t._onBlur()}),a&2&&(xe("disabled",t.disabled),b("aria-haspopup",t._rangeInput.rangePicker?"dialog":null)("aria-owns",t._rangeInput._ariaOwns?t._rangeInput._ariaOwns():(t._rangeInput.rangePicker==null?null:t._rangeInput.rangePicker.opened)&&t._rangeInput.rangePicker.id||null)("min",t._getMinDate()?t._dateAdapter.toIso8601(t._getMinDate()):null)("max",t._getMaxDate()?t._dateAdapter.toIso8601(t._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[P([{provide:Le,useExisting:r,multi:!0},{provide:Be,useExisting:r,multi:!0}]),B]})}return r})(),Li=(()=>{class r{_changeDetectorRef=o(E);_elementRef=o(q);_dateAdapter=o(f,{optional:!0});_formField=o(at,{optional:!0});_closedSubscription=D.EMPTY;_openedSubscription=D.EMPTY;get value(){return this._model?this._model.selection:null}id=o(he).getId("mat-date-range-input-");focused=!1;get shouldLabelFloat(){return this.focused||!this.empty}controlType="mat-date-range-input";get placeholder(){let e=this._startInput?._getPlaceholder()||"",a=this._endInput?._getPlaceholder()||"";return e||a?`${e} ${this.separator} ${a}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe(),this._ariaOwns.set(this.rangePicker.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(this._model))}_rangePicker;_ariaOwns=$e(null);get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(e){this._required=e}_required;get dateFilter(){return this._dateFilter}set dateFilter(e){let a=this._startInput,t=this._endInput,i=a&&a._matchesFilter(a.value),n=t&&t._matchesFilter(a.value);this._dateFilter=e,a&&a._matchesFilter(a.value)!==i&&a._validatorOnChange(),t&&t._matchesFilter(t.value)!==n&&t._validatorOnChange()}_dateFilter;get min(){return this._min}set min(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._min)||(this._min=a,this._revalidate())}_min;get max(){return this._max}set max(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._max)||(this._max=a,this._revalidate())}_max;get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){e!==this._groupDisabled&&(this._groupDisabled=e,this.stateChanges.next(void 0))}_groupDisabled=!1;get errorState(){return this._startInput&&this._endInput?this._startInput.errorState||this._endInput.errorState:!1}get empty(){let e=this._startInput?this._startInput.isEmpty():!1,a=this._endInput?this._endInput.isEmpty():!1;return e&&a}_ariaDescribedBy=null;_model;separator="\u2013";comparisonStart=null;comparisonEnd=null;_startInput;_endInput;ngControl;stateChanges=new R;disableAutomaticLabeling=!0;constructor(){this._dateAdapter,this._formField?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&this._elementRef.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=o(Bt,{optional:!0,self:!0})}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(!this._model||!this._model.selection.start?this._startInput.focus():this._endInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),te(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){ua(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(e){let a=e==="start"?this._startInput:this._endInput;return a?a.getMirrorValue():""}_shouldHidePlaceholders(){return this._startInput?!this._startInput.isEmpty():!1}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){let e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(e){this.focused=e!==null,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}_isTargetRequired(e){return e?.ngControl?.control?.hasValidator(pe.required)}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=A({type:r,selectors:[["mat-date-range-input"]],contentQueries:function(a,t,i){if(a&1&&(Re(i,ii,5),Re(i,ri,5)),a&2){let n;k(n=M())&&(t._startInput=n.first),k(n=M())&&(t._endInput=n.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(a,t){a&2&&(b("id",t.id)("aria-labelledby",t._getAriaLabelledby())("aria-describedby",t._ariaDescribedBy)("data-mat-calendar",t.rangePicker?t.rangePicker.id:null),S("mat-date-range-input-hide-placeholders",t._shouldHidePlaceholders())("mat-date-range-input-required",t.required))},inputs:{rangePicker:"rangePicker",required:[2,"required","required",F],dateFilter:"dateFilter",min:"min",max:"max",disabled:[2,"disabled","disabled",F],separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[P([{provide:Lt,useExisting:r},{provide:ma,useExisting:r}]),re,T],ngContentSelectors:Pa,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(a,t){a&1&&(Fe(Oa),d(0,"div",0),g("cdkFocusChange",function(n){return t._updateFocus(n)}),d(1,"div",1),oe(2),d(3,"span",2),v(4),c()(),d(5,"span",3),v(6),c(),d(7,"div",4),oe(8,1),d(9,"span",2),v(10),c()()()),a&2&&(l(4),x(t._getInputMirrorValue("start")),l(),S("mat-date-range-input-separator-hidden",t._shouldHideSeparator()),l(),x(t.separator),l(4),x(t._getInputMirrorValue("end")))},dependencies:[tt],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px;color:var(--mat-datepicker-range-input-separator-color, var(--mat-sys-on-surface))}.mat-form-field-disabled .mat-date-range-input-separator{color:var(--mat-datepicker-range-input-disabled-state-separator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner[disabled]{color:var(--mat-datepicker-range-input-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0})}return r})(),Bi=(()=>{class r extends Qe{_forwardContentValues(e){super._forwardContentValues(e);let a=this.datepickerInput;a&&(e.comparisonStart=a.comparisonStart,e.comparisonEnd=a.comparisonEnd,e.startDateAccessibleName=a._getStartDateAccessibleName(),e.endDateAccessibleName=a._getEndDateAccessibleName())}static \u0275fac=(()=>{let e;return function(t){return(e||(e=ie(r)))(t||r)}})();static \u0275cmp=A({type:r,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[P([za,qa,{provide:Qe,useExisting:r}]),B],decls:0,vars:0,template:function(a,t){},encapsulation:2,changeDetection:0})}return r})();var Hi=(()=>{class r{static \u0275fac=function(a){return new(a||r)};static \u0275mod=At({type:r});static \u0275inj=Dt({providers:[fe,Ua],imports:[Qt,Ut,Tt,qt,Ot,ha,Ja,la,jt]})}return r})();export{Ni as a,_a as b,Ja as c,ii as d,ri as e,Li as f,Bi as g,Hi as h}; diff --git a/chunk-P6FJ2MEG.js b/chunk-P6FJ2MEG.js new file mode 100644 index 00000000..0f2165eb --- /dev/null +++ b/chunk-P6FJ2MEG.js @@ -0,0 +1 @@ +import{a as Oe,b as Me}from"./chunk-MEIYYXQK.js";import{a as le}from"./chunk-ZTJS4K5V.js";import{a as oe}from"./chunk-M5BYPXOP.js";import"./chunk-ZQOXWN4S.js";import{a as L}from"./chunk-Q33OVU5J.js";import{b as ie}from"./chunk-WKFJTKSD.js";import{a as me,b as pe}from"./chunk-4422JARR.js";import{a as ce,b as se,c as ve}from"./chunk-IIJ56NAR.js";import{a as de}from"./chunk-WK53HQNR.js";import{a as I}from"./chunk-ZHS65JNW.js";import{c as re}from"./chunk-BLJCB4Q7.js";import"./chunk-2XST3EDK.js";import{a as S,c as ae}from"./chunk-2GNIBV4J.js";import"./chunk-MLNPCJDD.js";import"./chunk-UOTKRQ63.js";import"./chunk-2IAXMR6M.js";import{a as ye}from"./chunk-TPJZ2OYR.js";import"./chunk-ZTWYID37.js";import"./chunk-XYJHVZQT.js";import"./chunk-HGOTYYGI.js";import"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as M}from"./chunk-A3N3AUUJ.js";import{g as D,i as F,j as w,p as b,r as ee,w as te,x as ne}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import{a as W,e as K,f as X,g as Y,l as Z}from"./chunk-PAP2P7QR.js";import{a as fe,b as ge,c as _e,d as ue,e as Ce,f as xe,h as he,i as be}from"./chunk-EC6LD5KM.js";import{a as G}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as q,Ba as z,F as R,Hc as O,Jc as p,Kc as c,Nb as f,Ob as E,Pb as H,Rb as $,Tb as d,Yb as g,a as J,ac as V,bc as n,cc as o,dc as r,fb as P,gb as T,hc as U,je as N,ka as s,kc as j,lb as i,mc as _,t as k,ta as B,ua as A,ub as h,we as Q,xc as m,yc as y,zc as x}from"./chunk-TEKHUYWQ.js";function Te(t,l){if(t&1&&(n(0,"mat-list-item"),r(1,"devmx-icon",15),n(2,"span",8),m(3),o()()),t&2){let e=_();i(3),y(e.company)}}function Ee(t,l){if(t&1&&(m(0),p(1,"currency")),t&2){let e=_(2);x(" ",c(1,1,e.salary==null?null:e.salary.min)," ")}}function Ie(t,l){t&1&&m(0," ~ ")}function Le(t,l){if(t&1&&(m(0),p(1,"currency")),t&2){let e=_(2);x(" ",c(1,1,e.salary==null?null:e.salary.max)," ")}}function ke(t,l){if(t&1&&(n(0,"mat-list-item"),r(1,"devmx-icon",16),n(2,"div",8),f(3,Ee,2,3)(4,Ie,1,0)(5,Le,2,3),o()()),t&2){let e=_();i(3),g(e.salary!=null&&e.salary.min?3:-1),i(),g(e.salary!=null&&e.salary.min&&(e.salary!=null&&e.salary.max)?4:-1),i(),g(e.salary!=null&&e.salary.max?5:-1)}}function Re(t,l){if(t&1&&(n(0,"mat-card-actions",12)(1,"a",17),r(2,"devmx-icon",18),n(3,"span"),m(4,"Candidatar-se"),o()()()),t&2){let e=_();i(),d("href",e.link,T)}}function Be(t,l){if(t&1&&(n(0,"mat-card-content")(1,"h3"),m(2,"Benef\xEDcios"),o(),r(3,"div",13),p(4,"markdown"),p(5,"html"),o()),t&2){let e=_();i(3),d("innerHTML",c(5,3,c(4,1,e.benefits)),P)}}function Ae(t,l){if(t&1&&(n(0,"mat-card",0)(1,"mat-card-header",1)(2,"a",2),r(3,"devmx-icon",3),o(),n(4,"mat-card-title",4),m(5),o(),n(6,"mat-card-subtitle"),m(7),o(),n(8,"a",5),r(9,"devmx-icon",6),o()(),n(10,"mat-list"),f(11,Te,4,1,"mat-list-item"),n(12,"mat-list-item"),r(13,"devmx-icon",7),n(14,"div",8),m(15),p(16,"jobMode"),o()(),n(17,"mat-list-item"),r(18,"devmx-icon",9),n(19,"div",8),m(20),o()(),n(21,"mat-list-item"),r(22,"devmx-icon",10),n(23,"div",8),m(24),p(25,"jobLevel"),o()(),n(26,"mat-list-item"),r(27,"devmx-icon",11),n(28,"div",8),m(29),p(30,"jobType"),o()(),f(31,ke,6,3,"mat-list-item"),o(),f(32,Re,5,1,"mat-card-actions",12),n(33,"mat-card-content")(34,"h3"),m(35,"Detalhes"),o(),r(36,"div",13),p(37,"markdown"),p(38,"html"),o(),n(39,"mat-card-content")(40,"h3"),m(41,"Requisitos"),o(),r(42,"div",13),p(43,"markdown"),p(44,"html"),o(),f(45,Be,6,5,"mat-card-content"),n(46,"mat-card-header"),r(47,"img",14),p(48,"photo"),n(49,"mat-card-title"),m(50),o(),n(51,"mat-card-subtitle"),m(52," Organizador "),o()()()),t&2){let e=l;i(5),x(" ",e.title," "),i(2),x("Vaga ",e.active?"aberta":"fechada",""),i(4),g(e.company?11:-1),i(4),y(c(16,15,e.mode)),i(5),x("Contrato ",e.contract,""),i(4),y(c(25,17,e.experience)),i(5),y(c(30,19,e.type)),i(2),g(e.salary!=null&&e.salary.min||e.salary!=null&&e.salary.max?31:-1),i(),g(e.link?32:-1),i(4),d("innerHTML",c(38,23,c(37,21,e.description)),P),i(6),d("innerHTML",c(44,27,c(43,25,e.requirements)),P),i(3),g(e.benefits?45:-1),i(2),d("src",c(48,29,e.owner.profile==null?null:e.owner.profile.photo),T)("alt",e.owner.displayName),i(3),x(" ",e.owner.displayName," ")}}var je=(()=>{class t{route=s(D);jobOpening$=this.route.data.pipe(R(e=>"jobOpening"in e),k(e=>e.jobOpening));static \u0275fac=function(a){return new(a||t)};static \u0275cmp=h({type:t,selectors:[["devmx-job-opening-details"]],decls:2,vars:3,consts:[[1,"job-opening-card"],[1,"job-opening-card-header","sticky"],["mat-card-avatar","","routerLink","..","mat-icon-button",""],["name","arrow/left"],[1,"event-card-header-title"],["routerLink","..","mat-icon-button",""],["name","close-cross"],["matListItemIcon","","name","transport/location-pin-alt"],["matListItemTitle",""],["matListItemIcon","","name","doc/check"],["matListItemIcon","","name","doc/shield"],["matListItemIcon","","name","time-loading"],[1,"job-opening-card-actions"],[3,"innerHTML"],["mat-card-avatar","",3,"src","alt"],["matListItemIcon","","name","building/building"],["matListItemIcon","","name","finance/money"],["target","_blank","rel","noopener noreferrer","mat-stroked-button","",3,"href"],["name","external-link"]],template:function(a,u){if(a&1&&(f(0,Ae,53,31,"mat-card",0),p(1,"async")),a&2){let C;g((C=c(1,1,u.jobOpening$))?0:-1,C)}},dependencies:[b,w,be,fe,Ce,he,_e,xe,ue,ge,Z,X,Y,K,W,ne,ee,te,G,Q,ce,de,se,Oe,Me,le,N],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .job-opening-card[_ngcontent-%COMP%]{height:100%;box-shadow:none;position:relative}[_nghost-%COMP%] .job-opening-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-weight:600;font-size:1.2em}[_nghost-%COMP%] .job-opening-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-line;line-height:1.2em;word-wrap:break-word}[_nghost-%COMP%] .job-opening-card-header[_ngcontent-%COMP%]{justify-content:space-between}[_nghost-%COMP%] .job-opening-card-header[_ngcontent-%COMP%] .mat-mdc-card-header-text{flex:1;justify-self:flex-start}[_nghost-%COMP%] .job-opening-card-actions[_ngcontent-%COMP%] .mdc-button__label{gap:.6em;display:flex;align-items:center}"],changeDetection:0})}return t})();var ze=(t,l)=>l.id,He=()=>[re,I,import("./chunk-QQ3DFMVY.js").then(t=>t.AsyncPipe)],$e=()=>[ve,w],qe=t=>[t],Ve=t=>({right:t}),Ue=t=>({outlets:t}),Ne=t=>["/","carreiras",t];function Qe(t,l){if(t&1&&(n(0,"a",4),r(1,"devmx-job-opening-card",5),o()),t&2){let e=_().$implicit;d("routerLink",O(8,Ne,O(6,Ue,O(4,Ve,O(2,qe,e.id))))),i(),d("data",e)}}function Ge(t,l){t&1&&r(0,"devmx-skeleton",6),t&2&&d("rows",3)}function We(t,l){t&1&&(f(0,Qe,2,10)(1,Ge,1,1),E(2,0,$e,null,1),$(0,-1))}function Ke(t,l){if(t&1){let e=U();n(0,"div",1),q(1,We,4,0,null,null,ze),o(),r(3,"div",2),n(4,"footer")(5,"devmx-paginator",3),j("pageChange",function(u){B(e);let C=_(2);return A(C.onPageChange(u))}),o()()}if(t&2){let e=l;i(),V(e.data),i(4),d("size",10)("items",e.items)}}function Xe(t,l){if(t&1&&(f(0,Ke,6,2),p(1,"async")),t&2){let e,a=_();g((e=c(1,1,a.jobOpeningFacade.response$))?0:-1,e)}}function Ye(t,l){t&1&&(n(0,"div",7),r(1,"devmx-skeleton",6)(2,"devmx-skeleton",6)(3,"devmx-skeleton",6),o()),t&2&&(i(),d("rows",3),i(),d("rows",2),i(),d("rows",3))}var De=(()=>{class t{jobOpeningFacade=s(S);router=s(F);route=s(D);constructor(){this.route.queryParams.pipe(M()).subscribe(this.onQueryParams)}onQueryParams=e=>{let{page:a=0,size:u=10}=e,{experience:C="",mode:v=""}=e,Se={experience:C,mode:v};this.jobOpeningFacade.setParams({page:a,size:u,filter:Se}),this.jobOpeningFacade.load()};onExperienceFilterChange(e){let a=this.mergeParams({experience:e});this.router.navigate([],{queryParams:a})}onModeFilterChange(e){let a=this.mergeParams({mode:e});this.router.navigate([],{queryParams:a})}mergeParams(e){return J(J({},this.route.snapshot.queryParams),e)}onPageChange(e){this.router.navigate([],{queryParams:e})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=h({type:t,selectors:[["devmx-job-openings"]],decls:8,vars:0,consts:[[3,"filterChange"],[1,"job-openings-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[1,"job-opening-card",3,"data"],[3,"rows"],[1,"events-container"]],template:function(a,u){a&1&&(n(0,"header")(1,"div")(2,"devmx-job-opening-experience-filter",0),j("filterChange",function(v){return u.onExperienceFilterChange(v)}),o(),n(3,"devmx-job-opening-mode-filter",0),j("filterChange",function(v){return u.onModeFilterChange(v)}),o()()(),f(4,Xe,2,3)(5,Ye,4,3),E(6,4,He,null,5),H(500))},dependencies:[me,pe,I,b],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;padding:.4em .8em}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%] .job-opening-card[_ngcontent-%COMP%]{width:100%;max-width:100%;box-sizing:border-box}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return t})();var Fe=(()=>{class t{router=s(F);destroyRef=s(z);authFacade=s(ye);layoutFacade=s(ie);ngOnInit(){this.authFacade.auth$.pipe(M(this.destroyRef)).subscribe(e=>{e&&(this.layoutFacade.loadNavLinks(e.roles),this.waitingForLogout())}),this.authFacade.load()}waitingForLogout(){this.authFacade.auth$.pipe(M(this.destroyRef)).subscribe(e=>{e===null&&(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=h({type:t,selectors:[["devmx-career-feature-shell"]],decls:1,vars:0,template:function(a,u){a&1&&r(0,"devmx-layout")},dependencies:[b,oe],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();var we=t=>ae(s(S),t.params);var Wt=[{path:"",data:{breadcrumb:"Carreiras"},canActivate:[L("member")],component:Fe,children:[{path:"administracao",canActivate:[L("recruiter","director","manager","staff")],loadChildren:()=>import("./chunk-JALA4ZS3.js").then(t=>t.careerFeatureAdminRoutes)},{path:"",title:"Carreiras",component:De},{path:":id",data:{breadcrumb:t=>t.jobOpening.title},title:"Vaga",resolve:{jobOpening:we},component:je,outlet:"right"}]}];export{Fe as CareerFeatureShellComponent,Wt as careerFeatureShellRoutes}; diff --git a/chunk-PF4AEVA5.js b/chunk-PF4AEVA5.js deleted file mode 100644 index fe7c3a63..00000000 --- a/chunk-PF4AEVA5.js +++ /dev/null @@ -1 +0,0 @@ -import{a as _n}from"./chunk-JQW63IXS.js";import{a as Fn}from"./chunk-HTP655AM.js";import{b as Gt,c as Zt,d as Xt,e as Kt,g as Yt}from"./chunk-ZQOXWN4S.js";import{a as Se,b as Pe}from"./chunk-CXAKQAL3.js";import{a as mn,b as cn}from"./chunk-AFH22WZE.js";import{a as Cn,b as xn,c as Mn,d as vn,e as yn,f as wn,g as Sn,h as Pn,i as On,j as Dn,k as An}from"./chunk-HPJEYRZM.js";import{a as we,b as gn}from"./chunk-YJNMZPRM.js";import{a as bn}from"./chunk-VE4FGS76.js";import{d as sn,e as ln}from"./chunk-LFAX4DK3.js";import{a as pn}from"./chunk-AD4TXQD3.js";import"./chunk-JX4IWPKV.js";import{b as un,e as fn,f as hn}from"./chunk-XC6WES62.js";import{a as I,b as Wt,d as Jt}from"./chunk-5FZSI2PL.js";import{a as tn,b as nn,c as be}from"./chunk-VYHC3V3G.js";import"./chunk-3I45H2NO.js";import{e as en}from"./chunk-R66KDUEB.js";import{a as Ht,b as Ut}from"./chunk-MLNPCJDD.js";import{f as qt,g as Qt}from"./chunk-BJXILAOS.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import{a as rn}from"./chunk-TZR6QHL3.js";import{a as _e}from"./chunk-A3N3AUUJ.js";import{B as ge,D as jt,G as B,H as Nt,I as R,k as T,q as le,s as Dt}from"./chunk-4FWBEGAE.js";import{b as wt,c as St,i as Pt,j as Ot}from"./chunk-2K6IALUF.js";import{g as q,h as Ct,i as re,j as xt,p as se}from"./chunk-KXTQ2UTD.js";import{c as Mt,d as ke,e as Te,g as Be,h as Re,j as Ie,k as Le,l as Ve}from"./chunk-I7VYXJU2.js";import{a as dn}from"./chunk-BNCLIKTI.js";import{a as de,c as pe,e as $t,f as ue,g as fe,i as zt,l as he}from"./chunk-PAP2P7QR.js";import{a as Ce,b as xe,c as on,d as an,e as Me,f as ve,i as ye}from"./chunk-EC6LD5KM.js";import{a as w,c as Ft,e as Et,h as kt,i as Tt,j as me,l as A,m as Bt,p as Rt,r as It,s as Lt,w as ce,x as Vt}from"./chunk-EDIJ2EBQ.js";import{D as yt,E as z,W as $e,X as ze,Y as He,a as Ee,s as vt,xa as At}from"./chunk-W5KNOAKV.js";import{$b as S,Ac as oe,D as We,Ea as ot,F as L,Fb as V,Fc as ft,Gc as ae,Ha as W,I as Je,Ia as at,Ja as rt,Jc as O,Kb as te,Kc as D,L as y,Nb as g,Sb as ct,Sc as ht,Tb as u,Xc as gt,Yb as M,Zc as _t,a as J,ac as P,b as Xe,ba as et,bc as s,cc as r,d as U,dc as p,ea as tt,ec as ne,fa as nt,fc as ie,gb as st,ha as Fe,hc as v,j as Ke,jc as dt,je as N,ka as d,kc as f,lb as l,lc as pt,mc as h,o as Ye,pe as bt,t as Y,ta as _,u as j,ua as b,ub as C,vb as lt,wb as ee,wc as ut,xa as it,xb as mt,xc as c,yc as k,zc as $}from"./chunk-TEKHUYWQ.js";var En=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["devmx-album-feature-admin"]],decls:1,vars:0,template:function(n,i){n&1&&p(0,"router-outlet")},dependencies:[Ct],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();function ei(t,a){}var ti={bottomSheetState:Mt("state",[Re("void, hidden",Be({transform:"translateY(100%)"})),Re("visible",Be({transform:"translateY(0%)"})),Ie("visible => void, visible => hidden",Te([ke(`${ze.COMPLEX} ${$e.ACCELERATION_CURVE}`),Ve("@*",Le(),{optional:!0})])),Ie("void => visible",Te([ke(`${ze.EXITING} ${$e.DECELERATION_CURVE}`),Ve("@*",Le(),{optional:!0})]))])},ni=(()=>{class t extends un{_breakpointSubscription;_animationState="void";_animationStateChanged=new ot;_destroyed;constructor(){super();let e=d(yt);this._breakpointSubscription=e.observe([z.Medium,z.Large,z.XLarge]).subscribe(()=>{let n=this._elementRef.nativeElement.classList;n.toggle("mat-bottom-sheet-container-medium",e.isMatched(z.Medium)),n.toggle("mat-bottom-sheet-container-large",e.isMatched(z.Large)),n.toggle("mat-bottom-sheet-container-xlarge",e.isMatched(z.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(e){e.toState==="visible"&&this._trapFocus(),this._animationStateChanged.emit(e)}_onAnimationStart(e){this._animationStateChanged.emit(e)}_captureInitialFocus(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(n,i){n&1&&pt("@state.start",function(m){return i._onAnimationStart(m)})("@state.done",function(m){return i._onAnimationDone(m)}),n&2&&(dt("@state",i._animationState),ct("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-label",i._config.ariaLabel))},features:[te],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,i){n&1&&g(0,ei,0,0,"ng-template",0)},dependencies:[qt],styles:[".mat-bottom-sheet-container{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;background:var(--mat-bottom-sheet-container-background-color, var(--mat-sys-surface-container-low));color:var(--mat-bottom-sheet-container-text-color, var(--mat-sys-on-surface));font-family:var(--mat-bottom-sheet-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-bottom-sheet-container-text-size, var(--mat-sys-body-large-size));line-height:var(--mat-bottom-sheet-container-text-line-height, var(--mat-sys-body-large-line-height));font-weight:var(--mat-bottom-sheet-container-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-bottom-sheet-container-text-tracking, var(--mat-sys-body-large-tracking))}@media(forced-colors: active){.mat-bottom-sheet-container{outline:1px solid}}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape, 28px);border-top-right-radius:var(--mat-bottom-sheet-container-shape, 28px)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[ti.bottomSheetState]}})}return t})(),je=new Fe("MatBottomSheetData"),Ue=class{viewContainerRef;panelClass;direction;data=null;hasBackdrop=!0;backdropClass;disableClose=!1;ariaLabel=null;ariaModal=!0;closeOnNavigation=!0;autoFocus="dialog";restoreFocus=!0;scrollStrategy;height="";minHeight;maxHeight},Q=class{_ref;get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}containerInstance;disableClose;_afterOpened=new Ke;_result;_closeFallbackTimeout;constructor(a,e,n){this._ref=a,this.containerInstance=n,this.disableClose=e.disableClose,n._animationStateChanged.pipe(L(i=>i.phaseName==="done"&&i.toState==="visible"),y(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(L(i=>i.phaseName==="done"&&i.toState==="hidden"),y(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),a.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),We(this.backdropClick(),this.keydownEvents().pipe(L(i=>i.keyCode===27))).subscribe(i=>{!this.disableClose&&(i.type!=="keydown"||!vt(i))&&(i.preventDefault(),this.dismiss())})}dismiss(a){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(L(e=>e.phaseName==="start"),y(1)).subscribe(e=>{this._closeFallbackTimeout=setTimeout(()=>{this._ref.close(this._result)},e.totalTime+100),this._ref.overlayRef.detachBackdrop()}),this._result=a,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}},ii=new Fe("mat-bottom-sheet-default-options"),Ne=(()=>{class t{_overlay=d(en);_parentBottomSheet=d(t,{optional:!0,skipSelf:!0});_defaultOptions=d(ii,{optional:!0});_bottomSheetRefAtThisLevel=null;_dialog=d(fn);get _openedBottomSheetRef(){let e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}constructor(){}open(e,n){let i=J(J({},this._defaultOptions||new Ue),n),o;return this._dialog.open(e,Xe(J({},i),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:ni,scrollStrategy:i.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:()=>({bottomSheetRef:o}),providers:(m,x,H)=>(o=new Q(m,i,H),[{provide:Q,useValue:o},{provide:je,useValue:i.data}])})),o.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===o&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>o.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):o.containerInstance.enter(),this._openedBottomSheetRef=o,o}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=tt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=lt({type:t});static \u0275inj=nt({providers:[Ne],imports:[hn,He,Qt,He]})}return t})();var Tn=(()=>{class t{ref=d(Q);data=d(je);close(e){this.ref.dismiss(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ee({type:t})}return t})();var G=class{sheet;constructor(a){this.sheet=a}open(a,e){return this.sheet.open(a,{data:e,autoFocus:!0,restoreFocus:!0,panelClass:"devmx-sheet"}).afterDismissed()}};function Bn(){return{provide:G,deps:[Ne]}}var Rn=[Pe(),gn(),Bn()];var In=t=>Jt(d(I),t.params);function ai(t,a){t&1&&(s(0,"th",15),c(1,"T\xEDtulo do album"),r())}function ri(t,a){if(t&1&&(s(0,"td",16),c(1),r()),t&2){let e=a.$implicit;l(),k(e.title)}}function si(t,a){t&1&&(s(0,"th",15),c(1,"Criado por"),r())}function li(t,a){if(t&1&&(s(0,"td",16),c(1),r()),t&2){let e=a.$implicit;l(),k(e.owner.displayName)}}function mi(t,a){t&1&&p(0,"th",15)}function ci(t,a){if(t&1){let e=v();s(0,"td",16)(1,"button",17),f("click",function(){let i=_(e).$implicit,o=h(2);return b(o.openDelete(i))}),p(2,"devmx-icon",18),r()()}}function di(t,a){t&1&&p(0,"tr",19)}function pi(t,a){t&1&&p(0,"tr",20)}function ui(t,a){if(t&1){let e=v();s(0,"table",5),ne(1,6),g(2,ai,2,0,"th",7)(3,ri,2,1,"td",8),ie(),ne(4,9),g(5,si,2,0,"th",7)(6,li,2,1,"td",8),ie(),ne(7,10),g(8,mi,1,0,"th",7)(9,ci,3,0,"td",8),ie(),g(10,di,1,0,"tr",11)(11,pi,1,0,"tr",12),r(),s(12,"mat-card-actions",13)(13,"devmx-paginator",14),f("pageChange",function(i){_(e);let o=h();return b(o.onPageChange(i))}),r()()}if(t&2){let e=a,n=h();u("dataSource",e.data),l(10),u("matHeaderRowDef",n.columns),l(),u("matRowDefColumns",n.columns),l(2),u("size",10)("items",e.items)}}var Ln=(()=>{class t{router=d(re);route=d(q);dialogFacade=d(we);albumFacade=d(I);selectUser=d(Se);#e=Dt(null);columns=["title","owner","actions"];constructor(){let e=this.#e.observe().pipe(Y(i=>i?i.id:"")),n=this.route.queryParams;j([e,n]).pipe(_e()).subscribe(this.onQueryParams)}onQueryParams=([e,n])=>{let{page:i=0,size:o=10}=n,m={title:"",owner:e};this.albumFacade.setParams({page:i,size:o,filter:m}),this.albumFacade.load()};openDelete({id:e,title:n}){this.dialogFacade.confirm(`Confirme que deseja apagar o album ${n}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(i=>{i&&this.albumFacade.delete(e)})}openSelectUser(){this.selectUser.open({multiple:!1}).subscribe(e=>{e&&this.#e.update(e)})}onSearchChange(e=""){this.albumFacade.setFilter({title:e}),this.albumFacade.load()}onPageChange({page:e,size:n}){let i={page:e,size:n};this.router.navigate([],{queryParams:i})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["devmx-album-admin-manage-albums"]],decls:10,vars:4,consts:[[1,"albums-card"],[1,"albums-card-header"],["mat-icon-button","",3,"click"],["name","filter"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","owner"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1&&(s(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),c(3,"Albuns"),r(),s(4,"div")(5,"button",2),f("click",function(){return i.openSelectUser()}),p(6,"devmx-icon",3),r(),s(7,"devmx-search-field",4),f("searchChange",function(m){return i.onSearchChange(m)}),r()()(),g(8,ui,14,5),O(9,"async"),r()),n&2){let o;l(7),u("debounce",1e3),l(),M((o=D(9,2,i.albumFacade.response$))?8:-1,o)}},dependencies:[se,R,B,bn,be,An,Cn,Mn,Sn,vn,xn,Pn,yn,wn,On,Dn,ye,Ce,Me,ve,xe,w,N],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .albums-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .albums-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .albums-card-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;align-items:baseline}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:3em}"],changeDetection:0})}return t})();function Vn(t){return T((a,e)=>{let n=new FileReader;n.onload=()=>{n.result instanceof ArrayBuffer&&a(n.result)},n.onerror=()=>{e(new Error("Falha ao ler ArrayBuffer"))},n.readAsArrayBuffer(t)})}function $n(t){return"0x"+parseInt(`${t}`).toString(16)}function zn(t){return T(a=>U(this,null,function*(){let e=t.slice(0,4),n=yield Vn(e),o=new DataView(n).getUint32(0,!1);switch(console.log($n(o)),o){case 2303741511:return a("image/png");case 1195984440:return a("image/gif");case 1380533830:return a("image/webp");case 1014199911:return a("image/svg+xml");case 4292411360:case 4292411361:case 4292411374:return a("image/jpeg");default:return a(null)}}))}var Oe=(()=>{class t{elRef=d(rt);get el(){return this.elRef.nativeElement}accept=at([]);enter=W();over=W();leave=W();files=W();onEnter(e){e instanceof DragEvent&&(e.preventDefault(),this.el.classList.add("drag-over"),this.enter.emit(e))}onOver(e){e instanceof DragEvent&&(e.preventDefault(),this.over.emit(e))}onLeave(e){e instanceof DragEvent&&(e.preventDefault(),this.el.classList.remove("drag-over"),this.leave.emit(e))}onDrop(e){return U(this,null,function*(){if(e instanceof DragEvent){e.preventDefault(),this.el.classList.remove("drag-over");let n=e.dataTransfer?.files;if(n&&n.length){let i=Array.from(n),o=[];for(let m of i){let x=yield zn(m);x&&this.accept().includes(x)&&o.push(m)}this.files.emit(o)}}})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ee({type:t,selectors:[["","devmxDropZone",""]],hostBindings:function(n,i){n&1&&f("dragenter",function(m){return i.onEnter(m)})("dragover",function(m){return i.onOver(m)})("dragleave",function(m){return i.onLeave(m)})("drop",function(m){return i.onDrop(m)})},inputs:{accept:[1,"accept"]},outputs:{enter:"enter",over:"over",leave:"leave",files:"files"}})}return t})();var Hn=(()=>{class t{transform(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(2)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=mt({name:"fileSize",type:t,pure:!0})}return t})();function Un(t){return T((a,e)=>{let n=new FileReader;n.onload=()=>{typeof n.result=="string"&&a(n.result)},n.onerror=i=>{i instanceof Error?e(i):e(new Error("Falha ao carregar imagem"))},n.readAsDataURL(t)})}function jn(t,a=1280){return T((e,n)=>{Un(t).then(Fn).then(i=>{let o=document.createElement("canvas");o.width=a;let m=a/i.width;o.height=i.height*m;let x=o.getContext("2d");if(!x)throw n(new Error("Context error"));x.drawImage(i,0,0,o.width,o.height);let H="image/webp";o.toBlob(E=>{if(E){let{width:X,height:K}=o,Ae=new File([E],t.name,{type:H});e(Object.assign(Ae,{width:X,height:K}))}},H)})})}var Qe=class extends me{constructor(a){super({id:new A("",{nonNullable:!0}),data:new A("",{nonNullable:!0}),width:new A(0,{nonNullable:!0}),height:new A(0,{nonNullable:!0}),type:new A("image/webp",{nonNullable:!0})}),a&&this.patchValue(a)}},De=class extends ce{constructor(){super([])}add(a){this.push(new Qe(a))}};var Ge=class extends ce{constructor(){super([])}add(a){this.push(new _n(a))}},Z=class extends me{constructor(){super({id:new A("",{nonNullable:!0}),title:new A(new Date().toLocaleDateString(),{nonNullable:!0,validators:[Et.required]}),contributors:new Ge,photos:new De})}get contributors(){return this.controls.contributors}patch(a){if(this.patchValue(a),a.contributors&&a.contributors.length>0)for(let e of a.contributors)this.contributors.add(e)}};var fi=(t,a)=>a.id,hi=()=>["image/jpeg","image/png","image/webp"];function gi(t,a){if(t&1){let e=v();s(0,"devmx-album-card",3)(1,"a",6),p(2,"devmx-icon",7),r(),s(3,"button",8),f("click",function(){let i=_(e).$implicit,o=h(2);return b(o.deleteAlbum(i))}),p(4,"devmx-icon",9),r()()}if(t&2){let e=a.$implicit;u("data",e),l(),u("routerLink",e.id)}}function _i(t,a){t&1&&(s(0,"div",4)(1,"h2"),c(2,"N\xE3o temos nada aqui..."),r(),s(3,"h3"),c(4," Siga nessa dire\xE7\xE3o "),p(5,"devmx-icon",10)(6,"br"),c(7," at\xE9 encontrar o bot\xE3o com um "),p(8,"devmx-icon",11)(9,"br"),c(10," e cadastre suas fotos. "),p(11,"devmx-icon",12),r()()),t&2&&(l(5),u("size",32),l(3),u("size",32),l(3),u("size",32))}function bi(t,a){if(t&1){let e=v();s(0,"div",2),f("files",function(i){_(e);let o=h();return b(o.onDropFiles(i))}),S(1,gi,5,2,"devmx-album-card",3,fi),r(),g(3,_i,12,3,"div",4),s(4,"footer")(5,"devmx-paginator",5),f("pageChange",function(i){_(e);let o=h();return b(o.onPageChange(i))}),r()()}if(t&2){let e=a;u("accept",ae(4,hi)),l(),P(e.data),l(2),M(e.items?-1:3),l(2),u("size",10)("items",e.items)}}var Nn=(()=>{class t{router=d(re);route=d(q);dialogFacade=d(we);authFacade=d(rn);albumFacade=d(I);constructor(){let e=this.authFacade.auth$.pipe(L(i=>!!i),Y(({id:i})=>i)),n=this.route.queryParams.pipe(Y(({page:i,size:o,title:m})=>({page:i,size:o,title:m})));j([e,n]).pipe(_e()).subscribe(this.onQueryParams)}onQueryParams=([e,n])=>{let{page:i,size:o,title:m}=n,x={title:m,owner:e};this.albumFacade.setParams({page:i,size:o,filter:x}),this.albumFacade.load()};onDropFiles(e){console.log(e)}createAlbum(){let e=new Z;e.patchValue({title:new Date().toLocaleDateString()}),this.albumFacade.create(e.getRawValue()).pipe(y(1)).subscribe(i=>{this.router.navigate([i.id],{relativeTo:this.route})})}deleteAlbum({id:e,title:n}){this.dialogFacade.confirm(`Confirme que deseja apagar a vaga ${n}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(i=>{i&&this.albumFacade.delete(e)})}onPageChange({page:e,size:n}){let i={page:e,size:n};this.router.navigate([],{queryParams:i})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["devmx-admin-my-albums"]],decls:4,vars:3,consts:[["mat-fab","",1,"top","right","tertiary-fab",3,"click"],["name","plus"],["devmxDropZone","",1,"albums-container","drag-area",3,"files","accept"],[3,"data"],[1,"no-albums-yet"],[3,"pageChange","size","items"],["mat-icon-button","","matTooltip","Editar album","matTooltipPosition","above",3,"routerLink"],["name","software/edit"],["type","button","mat-icon-button","","matTooltip","Apagar album","matTooltipPosition","after",3,"click"],["name","trash-alt"],["color","#3BCE53","name","arrow/up-right",3,"size"],["color","#3BCE53","name","plus",3,"size"],["color","#3BCE53","name","emoji/smirking-alt",3,"size"]],template:function(n,i){if(n&1&&(s(0,"button",0),f("click",function(){return i.createAlbum()}),p(1,"devmx-icon",1),r(),g(2,bi,6,5),O(3,"async")),n&2){let o;l(2),M((o=D(3,1,i.albumFacade.response$))?2:-1,o)}},dependencies:[se,xt,R,Nt,B,jt,nn,tn,be,dn,Oe,w,N],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:space-between}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:flex;flex-flow:row wrap;justify-content:flex-start;grid-template-columns:repeat(2,1fr)}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;max-width:50%}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .no-albums-yet[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] .no-albums-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .no-albums-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;white-space:normal}[_nghost-%COMP%] .no-albums-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:160%}[_nghost-%COMP%] .no-albums-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:120%;text-align:end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}@media (min-width: 1920px){[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;max-width:33%}}@media (max-width: 767px){[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{align-content:flex-start;grid-template-columns:1fr}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline-flex;min-width:100%}}[_nghost-%COMP%] .add-button[_ngcontent-%COMP%]{position:fixed;right:4em;top:2em}"],changeDetection:0})}return t})();var xi=(t,a)=>a.photo.name;function Mi(t,a){if(t&1&&(s(0,"mat-list-item")(1,"span",2),c(2),O(3,"fileSize"),r(),s(4,"span",3),c(5),r(),p(6,"mat-progress-bar",4),r()),t&2){let e=a.$implicit;l(2),$(" ",D(3,3,e.photo.size)," "),l(3),$(" ",e.progress(),"% "),l(),u("value",e.progress())}}function vi(t,a){t&1&&c(0," Preparando imagens ")}function yi(t,a){t&1&&c(0," Enviando imagens ")}function wi(t,a){if(t&1&&(s(0,"mat-list-item")(1,"span",2),g(2,vi,1,0)(3,yi,1,0),r(),s(4,"span",3),c(5),r(),p(6,"mat-progress-bar",4),r()),t&2){let e=a;l(2),M(e<100?2:3),l(3),$(" ",e,"% "),l(),u("value",e)}}var qn=(()=>{class t{queue=V([]);opened=V(!1);resizing=V(0);total=gt(()=>this.queue().length);completed=V(0);constructor(){_t(()=>{let{length:e}=this.queue().filter(({progress:n})=>n()>=90);this.completed.set(e)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["devmx-upload-queue"]],exportAs:["devmxUploadQueue"],decls:12,vars:5,consts:[[3,"expanded","hideToggle"],["name","arrow/chevron-down"],["matListItemTitle",""],["matListItemMeta",""],["mode","determinate",3,"value"]],template:function(n,i){if(n&1&&(s(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3," Enviando "),r(),s(4,"mat-panel-description"),c(5),p(6,"devmx-icon",1),r()(),s(7,"section")(8,"mat-list"),S(9,Mi,7,5,"mat-list-item",null,xi),g(11,wi,7,3,"mat-list-item"),r()()()),n&2){let o;u("expanded",i.opened())("hideToggle",!0),l(5),oe(" ",i.completed()," de ",i.total()," "),l(4),P(i.queue()),l(2),M((o=i.resizing())?11:-1,o)}},dependencies:[Ut,Ht,Yt,Gt,Zt,Kt,Xt,he,ue,fe,de,pe,w,Hn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:18em;position:fixed;bottom:64px;right:12px}[_nghost-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}[_nghost-%COMP%] .mat-expansion-panel-content .mat-expansion-panel-body{padding:0}[_nghost-%COMP%] section[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;max-height:80vh;overflow:auto}"],changeDetection:0})}return t})();var Si=(t,a)=>a.value;function Pi(t,a){if(t&1){let e=v();s(0,"mat-list-item"),p(1,"devmx-icon",6),s(2,"span",7),c(3),r(),s(4,"button",8),f("click",function(){let i=_(e).$index,o=h();return b(o.form.contributors.removeAt(i))}),p(5,"devmx-icon",9),r()()}if(t&2){let e=a.$implicit;l(3),k(e.value.displayName)}}var Qn=(()=>{class t extends Tn{form=new Z;cdr=d(ht);selectUser=d(Se);ngOnInit(){this.data&&this.form.patch(this.data)}selectContributors(){this.selectUser.open({multiple:!0}).pipe(y(1)).subscribe(n=>{if(n){for(let i of n)this.form.contributors.add(i);this.cdr.detectChanges()}})}onSubmit(){if(this.form.valid){let e=this.form.getRawValue();return console.log(e),this.close(e)}return this.form.markAllAsTouched()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=it(t)))(i||t)}})();static \u0275cmp=C({type:t,selectors:[["devmx-album-details"]],features:[ft([Pe()]),te],decls:19,vars:1,consts:[[3,"submit","formGroup"],["matInput","","formControlName","title"],["formArrayName","contributors"],["mat-subheader",""],["type","button","mat-button","",3,"click"],["mat-flat-button",""],["matListItemIcon","","name","user-circle"],["matListItemTitle",""],["type","button","mat-icon-button","","matListItemMeta","",3,"click"],["name","trash"]],template:function(n,i){n&1&&(s(0,"form",0),f("submit",function(){return i.onSubmit()}),s(1,"mat-form-field")(2,"mat-label"),c(3,"T\xEDtulo do album"),r(),p(4,"input",1),s(5,"mat-error"),c(6,"Obrigat\xF3rio"),r()(),s(7,"mat-list",2)(8,"p",3),c(9,"Contribuidores"),r(),S(10,Pi,6,1,"mat-list-item",null,Si),r(),s(12,"button",4),f("click",function(){return i.selectContributors()}),c(13," Permitir contribui\xE7\xE3o de outras pessoas "),r(),s(14,"footer")(15,"button",5),c(16,"Salvar"),r(),s(17,"button",4),f("click",function(){return i.close()}),c(18,"Fechar"),r()()()),n&2&&(u("formGroup",i.form),l(10),P(i.form.contributors.controls))},dependencies:[kn,Vt,Bt,Ft,kt,Tt,Rt,Lt,It,Ot,Pt,wt,St,R,ge,B,ln,sn,he,ue,fe,$t,zt,de,pe,w],styles:["[_nghost-%COMP%]{display:flex;padding:1.5em 1em .5em;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex:1;gap:1em;display:flex;flex-direction:column}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{margin-top:1em;display:flex;flex-direction:row-reverse;justify-content:space-between}"],changeDetection:0})}return t})();var Gn=(t,a)=>a.id,Oi=()=>["image/jpeg","image/png","image/webp","image/svg+xml"];function Di(t,a){if(t&1){let e=v();s(0,"figure"),p(1,"img",9),s(2,"figcaption"),c(3),r(),s(4,"mat-checkbox",10),f("change",function(i){let o=_(e).$implicit,m=h(2);return b(i?m.selection.toggle(o.id):null)}),r()()}if(t&2){let e=a.$implicit,n=h(2);l(),u("src",e.data,st)("alt",e.caption),l(2),k(e.caption),l(),u("checked",n.selection.isSelected(e.id))}}function Ai(t,a){if(t&1&&(s(0,"strong"),c(1),r()),t&2){let e=a.$implicit,n=a.$index,i=a.$count;l(),oe("",e.displayName,"",n===i-1?"":", ","")}}function Fi(t,a){if(t&1&&(s(0,"mat-card-content"),S(1,Ai,2,2,"strong",null,Gn),c(3," tem permiss\xE3o para contribuir neste album. "),r()),t&2){let e=h();l(),P(e.contributors)}}function Ei(t,a){if(t&1){let e=v();s(0,"mat-card",1)(1,"mat-card-header",2)(2,"mat-card-title"),c(3),r(),s(4,"mat-card-subtitle"),c(5),O(6,"date"),r(),s(7,"button",3),f("click",function(){let i=_(e),o=h();return b(o.editAlbum(i))}),p(8,"devmx-icon",4),r()(),s(9,"mat-card-actions",5)(10,"mat-checkbox",6),f("change",function(i){let o=_(e),m=h();return b(i?m.toggleAll(o.photos,m.selection.selected):null)}),r(),s(11,"button",7),f("click",function(){let i=_(e),o=h();return b(o.deleteSelection(o.selection.selected,i.id))}),c(12),r()(),s(13,"mat-card-content",8),f("files",function(i){let o=_(e),m=ut(18),x=h();return b(x.onDrop(o.id,i,m))}),S(14,Di,5,4,"figure",null,Gn),r(),g(16,Fi,4,0,"mat-card-content"),r(),p(17,"devmx-upload-queue",null,0)}if(t&2){let e=a,n=h();l(3),k(e.title),l(2),$(" Criado dia ",D(6,8,e.createdAt)," "),l(5),u("indeterminate",n.selection.hasValue()&&!n.isAllSelected(e.photos,n.selection.selected))("checked",n.selection.hasValue()&&n.isAllSelected(e.photos,n.selection.selected)),l(),u("disabled",n.selection.selected.length===0),l(),$(" Remover ",n.selection.selected.length," foto(s) "),l(),u("accept",ae(10,Oi)),l(),P(e.photos),l(2),M(e.contributors&&e.contributors.length>0?16:-1)}}var Zn=(()=>{class t{route=d(q);albumFacade=d(I);photoFacade=d(Wt);sheetFacade=d(G);selection=new At(!0);onDrop(e,n,i){return U(this,null,function*(){let o=n.length*2,m=0;i.opened.set(!0);for(let E of n){m+=1,i.resizing.set(le(m,o));let X=V(0),K=yield jn(E,640);i.queue.set([...i.queue(),{photo:K,progress:X}]),m+=1,i.resizing.set(le(m,o))}let x=0,H=({photo:E,progress:X})=>{let K=({loaded:Yn,total:Wn,type:Ze})=>{Ze===Ee.UploadProgress&&X.set(le(Yn,Wn??E.size)),Ze===Ee.Response&&(x+=1,x>=i.total()&&this.albumFacade.loadOne(e))},{width:Ae,height:Xn}=E,Kn={album:e,width:Ae,height:Xn,photo:E};return this.photoFacade.upload(Kn).pipe(et(K))};Ye(i.queue()).pipe(Je(H)).subscribe()})}isAllSelected(e,n){return n.length===e.length}toggleAll(e,n){if(this.isAllSelected(e,n))return this.selection.clear();this.selection.select(...e.map(({id:i})=>i))}deleteSelection(e,n){j(e.map(i=>(this.selection.deselect(i),this.photoFacade.delete(i)))).subscribe(()=>this.albumFacade.loadOne(n))}editAlbum(e){this.sheetFacade.open(Qn,e).pipe(y(1)).subscribe(i=>{i&&this.albumFacade.update(i)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["devmx-admin-album"]],decls:2,vars:3,consts:[["uploadQueue","devmxUploadQueue"],[1,"album-card"],[1,"album-card-header"],["mat-icon-button","",3,"click"],["name","software/edit"],[1,"album-card-actions"],[1,"photo-checkbox",3,"change","indeterminate","checked"],["color","warn","type","button","mat-flat-button","",3,"click","disabled"],["devmxDropZone","",1,"album-card-content","drag-area",3,"files","accept"],[3,"src","alt"],[1,"photo-checkbox",3,"change","checked"]],template:function(n,i){if(n&1&&(g(0,Ei,19,11),O(1,"async")),n&2){let o;M((o=D(1,1,i.albumFacade.selected$))?0:-1,o)}},dependencies:[qn,Oe,cn,mn,R,ge,B,ye,Ce,Me,on,ve,an,xe,w,N,bt],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .album-card[_ngcontent-%COMP%]{gap:1em}[_nghost-%COMP%] .album-card-header[_ngcontent-%COMP%]{justify-content:space-between}[_nghost-%COMP%] .album-card-header[_ngcontent-%COMP%] .mat-mdc-card-header-text{flex:1;justify-self:flex-start}[_nghost-%COMP%] .album-card-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%]{gap:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%]{margin:0;box-sizing:border-box;border-radius:.4em;position:relative;overflow:hidden;background-color:#0000000a}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;display:flex;object-fit:cover;height:24em}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]{display:flex;width:100%;padding:.4em;position:absolute;bottom:0;background-color:#0006;color:#fff9;z-index:100}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]:empty{display:none}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] .photo-checkbox[_ngcontent-%COMP%]{background-color:#fff;position:absolute;border-radius:50%;opacity:0;right:1em;top:-2em;transition:top .25s ease-in-out,opacity .25s ease-in-out}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%]:hover .photo-checkbox[_ngcontent-%COMP%]{opacity:1;top:1em}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] .photo-checkbox.mat-mdc-checkbox-checked[_ngcontent-%COMP%]{opacity:1;top:1em}[_nghost-%COMP%] .album-card-content.drag-area[_ngcontent-%COMP%]{min-height:32em;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:background-image .6s ease-in-out}[_nghost-%COMP%] .album-card-content.drag-area.drag-over[_ngcontent-%COMP%]{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fff6;background-image:url(/figures/drop-photos.svg);background-position:center center;background-repeat:no-repeat}"],changeDetection:0})}return t})();var Vr=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},providers:Rn,component:En,children:[{path:"meus-albuns/:id",data:{breadcrumb:t=>t.album.title},title:"Meu album",resolve:{album:In},component:Zn},{path:"meus-albuns",data:{breadcrumb:"Meus albuns"},title:"Meus albuns",component:Nn},{path:"gerenciar-albuns",data:{breadcrumb:"Gerenciar albuns"},title:"Gerenciar albuns",canActivate:[pn("director","manager","staff")],component:Ln},{path:"",pathMatch:"prefix",redirectTo:"meus-albuns"}]}];export{En as AlbumFeatureAdminComponent,Vr as albumFeatureAdminRoutes}; diff --git a/chunk-PTGCXAXO.js b/chunk-PTGCXAXO.js deleted file mode 100644 index c54a1c7c..00000000 --- a/chunk-PTGCXAXO.js +++ /dev/null @@ -1 +0,0 @@ -import{a as G,b as I}from"./chunk-4422JARR.js";import{c as U}from"./chunk-IIJ56NAR.js";import"./chunk-WK53HQNR.js";import{a as B}from"./chunk-ZHS65JNW.js";import{c as $}from"./chunk-VYHC3V3G.js";import"./chunk-3I45H2NO.js";import{a as A}from"./chunk-WBTUXFAS.js";import"./chunk-R66KDUEB.js";import{a as z,b as L}from"./chunk-UOTKRQ63.js";import"./chunk-BJXILAOS.js";import{a as Q}from"./chunk-KOL7ATC4.js";import"./chunk-5DAHKZ7F.js";import{a as q}from"./chunk-A3N3AUUJ.js";import"./chunk-4FWBEGAE.js";import"./chunk-HGOTYYGI.js";import"./chunk-2K6IALUF.js";import{g as T,h as k,i as R,j as u,p as C}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import"./chunk-EC6LD5KM.js";import{a as V}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as F,Hc as g,Jc as J,Kc as E,Nb as x,Ob as M,Rb as v,Tb as c,Yb as y,a as h,ac as j,bc as i,cc as o,dc as r,hc as w,je as S,ka as d,kc as f,lb as l,mc as O,ta as b,ua as P,ub as _,xc as D}from"./chunk-TEKHUYWQ.js";var X=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=_({type:e,selectors:[["devmx-career-feature-page"]],decls:10,vars:0,consts:[[1,"app-toolbar"],["routerLink","/",1,"app-logo"],["src","devmx.svg","height","48","alt","DevMX"],[1,"app-title"],[1,"spacer"],["target","_blank","rel","noreferrer","title","Github","href","https://github.com/DeveloperParana/devmx"],["name","github"]],template:function(t,a){t&1&&(i(0,"devmx-app-shell")(1,"mat-toolbar",0)(2,"a",1),r(3,"img",2),o(),i(4,"h1",3),D(5,"Vagas"),o(),r(6,"span",4),i(7,"a",5),r(8,"devmx-icon",6),o()(),r(9,"router-outlet"),o())},dependencies:[C,k,u,L,z,Q,V],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .app-toolbar[_ngcontent-%COMP%]{display:flex;gap:.4em}[_nghost-%COMP%] .app-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:48px}[_nghost-%COMP%] .app-title[_ngcontent-%COMP%]{font-size:.9em;font-weight:500;opacity:.4;margin:0}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1 1 auto}"],changeDetection:0})}return e})();var Y=(e,m)=>m.id,Z=()=>[U,u],ee=e=>[e],ne=e=>({right:e}),te=e=>({outlets:e}),oe=e=>["/","carreiras",e];function ie(e,m){if(e&1&&(i(0,"a",4),r(1,"devmx-job-opening-card",5),o()),e&2){let n=O().$implicit;c("routerLink",g(8,oe,g(6,te,g(4,ne,g(2,ee,n.id))))),l(),c("data",n)}}function re(e,m){e&1&&r(0,"devmx-skeleton",6),e&2&&c("rows",3)}function ae(e,m){e&1&&(x(0,ie,2,10)(1,re,1,1),M(2,0,Z,null,1),v(0,-1))}function pe(e,m){if(e&1){let n=w();i(0,"div",1),F(1,ae,4,0,null,null,Y),o(),r(3,"div",2),i(4,"footer")(5,"devmx-paginator",3),f("pageChange",function(a){b(n);let p=O();return P(p.onPageChange(a))}),o()()}if(e&2){let n=m;l(),j(n.data),l(4),c("size",10)("items",n.items)}}var H=(()=>{class e{jobOpeningFacade=d(A);router=d(R);route=d(T);constructor(){this.route.queryParams.pipe(q()).subscribe(this.onQueryParams)}onQueryParams=n=>{let{page:t=0,size:a=10}=n,{experience:p="",mode:s=""}=n,K={experience:p,mode:s};this.jobOpeningFacade.setParams({page:t,size:a,filter:K}),this.jobOpeningFacade.load()};onExperienceFilterChange(n){let t=this.mergeParams({experience:n});this.router.navigate([],{queryParams:t})}onModeFilterChange(n){let t=this.mergeParams({mode:n});this.router.navigate([],{queryParams:t})}mergeParams(n){return h(h({},this.route.snapshot.queryParams),n)}onPageChange(n){this.router.navigate([],{queryParams:n})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=_({type:e,selectors:[["devmx-job-openings"]],decls:5,vars:3,consts:[[3,"filterChange"],[1,"job-openings-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[1,"job-opening-card",3,"data"],[3,"rows"]],template:function(t,a){if(t&1&&(i(0,"header")(1,"devmx-job-opening-experience-filter",0),f("filterChange",function(s){return a.onExperienceFilterChange(s)}),o(),i(2,"devmx-job-opening-mode-filter",0),f("filterChange",function(s){return a.onModeFilterChange(s)}),o()(),x(3,pe,6,2),J(4,"async")),t&2){let p;l(3),y((p=E(4,1,a.jobOpeningFacade.response$))?3:-1,p)}},dependencies:[G,I,$,B,C,S],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;background-color:#fff}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;padding:.4em .8em;gap:1em}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%] .job-opening-card[_ngcontent-%COMP%]{width:100%;max-width:100%;box-sizing:border-box}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return e})();var Je=[{path:"",title:"Vagas",component:X,children:[{path:"",component:H}]}];export{X as CareerFeaturePageComponent,Je as careerFeaturePageRoutes}; diff --git a/chunk-XC6WES62.js b/chunk-Q2N7RZTH.js similarity index 99% rename from chunk-XC6WES62.js rename to chunk-Q2N7RZTH.js index fe878844..e134ac13 100644 --- a/chunk-XC6WES62.js +++ b/chunk-Q2N7RZTH.js @@ -1 +1 @@ -import{a as J,b as X,c as D,e as b,h as ee}from"./chunk-R66KDUEB.js";import{a as v,b as $,c as K,f as g,g as C}from"./chunk-BJXILAOS.js";import{K as z,L as Y,Q as q,S as Z,T as U,U as y,f as Q,n as m,s as W}from"./chunk-W5KNOAKV.js";import{Fa as F,Ja as I,Kb as P,Nb as M,Sb as j,Sc as H,Va as L,Z as E,a as d,ea as T,ed as V,fa as w,ha as _,j as f,ka as s,ob as R,p as O,qc as x,rc as N,sc as G,ub as S,vb as B,y as k,za as h}from"./chunk-TEKHUYWQ.js";function ie(a,r){}var c=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext};var oe=(()=>{class a extends K{_elementRef=s(I);_focusTrapFactory=s(Y);_config;_interactivityChecker=s(z);_ngZone=s(F);_overlayRef=s(D);_focusMonitor=s(q);_platform=s(Q);_document=s(V,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=s(H);_injector=s(h);_isDestroyed=!1;constructor(){super(),this._config=s(c,{optional:!0})||new c,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{e.removeEventListener("blur",i),e.removeEventListener("mousedown",i),e.removeAttribute("tabindex")};e.addEventListener("blur",i),e.addEventListener("mousedown",i)})),e.focus(t)}_focusByCssSelector(e,t){let i=this._elementRef.nativeElement.querySelector(e);i&&this._forceFocus(i,t)}_trapFocus(){this._isDestroyed||L(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let i=m(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,t=m();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=m()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=S({type:a,selectors:[["cdk-dialog-container"]],viewQuery:function(t,i){if(t&1&&x(g,7),t&2){let o;N(o=G())&&(i._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,i){t&2&&j("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[P],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){t&1&&M(0,ie,0,0,"ng-template",0)},dependencies:[g],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return a})(),u=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new f;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(r,e){this.overlayRef=r,this.config=e,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!W(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=r.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(r,e){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}},ne=new _("DialogScrollStrategy",{providedIn:"root",factory:()=>{let a=s(b);return()=>a.scrollStrategies.block()}}),ae=new _("DialogData"),se=new _("DefaultDialogConfig");var re=(()=>{class a{_overlay=s(b);_injector=s(h);_defaultOptions=s(se,{optional:!0});_parentDialog=s(a,{optional:!0,skipSelf:!0});_overlayContainer=s(X);_idGenerator=s(U);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new f;_afterOpenedAtThisLevel=new f;_ariaHiddenElements=new Map;_scrollStrategy=s(ne);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=k(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(E(void 0)));constructor(){}open(e,t){let i=this._defaultOptions||new c;t=d(d({},i),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let o=this._getOverlayConfig(t),l=this._overlay.create(o),n=new u(l,t),p=this._attachContainer(l,n,t);return n.containerInstance=p,this._attachDialogContent(e,n,p,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){A(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){A(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),A(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let t=new J({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),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,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,i){let o=i.injector||i.viewContainerRef?.injector,l=[{provide:c,useValue:i},{provide:u,useValue:t},{provide:D,useValue:e}],n;i.container?typeof i.container=="function"?n=i.container:(n=i.container.type,l.push(...i.container.providers(i))):n=oe;let p=new v(n,i.viewContainerRef,h.create({parent:o||this._injector,providers:l}));return e.attach(p).instance}_attachDialogContent(e,t,i,o){if(e instanceof R){let l=this._createInjector(o,t,i,void 0),n={$implicit:o.data,dialogRef:t};o.templateContext&&(n=d(d({},n),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),i.attachTemplatePortal(new $(e,null,n,l))}else{let l=this._createInjector(o,t,i,this._injector),n=i.attachComponentPortal(new v(e,o.viewContainerRef,l));t.componentRef=n,t.componentInstance=n.instance}}_createInjector(e,t,i,o){let l=e.injector||e.viewContainerRef?.injector,n=[{provide:ae,useValue:e.data},{provide:u,useValue:t}];return e.providers&&(typeof e.providers=="function"?n.push(...e.providers(t,e,i)):n.push(...e.providers)),e.direction&&(!l||!l.get(y,null,{optional:!0}))&&n.push({provide:y,useValue:{value:e.direction,change:O()}}),h.create({parent:l||o,providers:n})}_removeOpenDialog(e,t){let i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let t=e.parentElement.children;for(let i=t.length-1;i>-1;i--){let o=t[i];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||a)};static \u0275prov=T({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function A(a,r){let e=a.length;for(;e--;)r(a[e])}var Ee=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=B({type:a});static \u0275inj=w({providers:[re],imports:[ee,C,Z,C]})}return a})();export{c as a,oe as b,u as c,ae as d,re as e,Ee as f}; +import{k as J,l as X,m as D,o as b,r as ee}from"./chunk-AND6K73U.js";import{a as v,b as $,c as K,f as g,g as C}from"./chunk-BJXILAOS.js";import{K as z,L as Y,Q as q,S as Z,T as U,U as y,f as Q,n as m,s as W}from"./chunk-W5KNOAKV.js";import{Fa as F,Ja as I,Kb as P,Nb as M,Sb as j,Sc as H,Va as L,Z as E,a as d,ea as T,ed as V,fa as w,ha as _,j as f,ka as s,ob as R,p as O,qc as x,rc as N,sc as G,ub as S,vb as B,y as k,za as h}from"./chunk-TEKHUYWQ.js";function ie(a,r){}var c=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext};var oe=(()=>{class a extends K{_elementRef=s(I);_focusTrapFactory=s(Y);_config;_interactivityChecker=s(z);_ngZone=s(F);_overlayRef=s(D);_focusMonitor=s(q);_platform=s(Q);_document=s(V,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=s(H);_injector=s(h);_isDestroyed=!1;constructor(){super(),this._config=s(c,{optional:!0})||new c,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{e.removeEventListener("blur",i),e.removeEventListener("mousedown",i),e.removeAttribute("tabindex")};e.addEventListener("blur",i),e.addEventListener("mousedown",i)})),e.focus(t)}_focusByCssSelector(e,t){let i=this._elementRef.nativeElement.querySelector(e);i&&this._forceFocus(i,t)}_trapFocus(){this._isDestroyed||L(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let i=m(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,t=m();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=m()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=S({type:a,selectors:[["cdk-dialog-container"]],viewQuery:function(t,i){if(t&1&&x(g,7),t&2){let o;N(o=G())&&(i._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,i){t&2&&j("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[P],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){t&1&&M(0,ie,0,0,"ng-template",0)},dependencies:[g],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return a})(),u=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new f;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(r,e){this.overlayRef=r,this.config=e,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!W(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=r.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(r,e){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}},ne=new _("DialogScrollStrategy",{providedIn:"root",factory:()=>{let a=s(b);return()=>a.scrollStrategies.block()}}),ae=new _("DialogData"),se=new _("DefaultDialogConfig");var re=(()=>{class a{_overlay=s(b);_injector=s(h);_defaultOptions=s(se,{optional:!0});_parentDialog=s(a,{optional:!0,skipSelf:!0});_overlayContainer=s(X);_idGenerator=s(U);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new f;_afterOpenedAtThisLevel=new f;_ariaHiddenElements=new Map;_scrollStrategy=s(ne);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=k(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(E(void 0)));constructor(){}open(e,t){let i=this._defaultOptions||new c;t=d(d({},i),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let o=this._getOverlayConfig(t),l=this._overlay.create(o),n=new u(l,t),p=this._attachContainer(l,n,t);return n.containerInstance=p,this._attachDialogContent(e,n,p,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){A(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){A(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),A(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let t=new J({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),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,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,i){let o=i.injector||i.viewContainerRef?.injector,l=[{provide:c,useValue:i},{provide:u,useValue:t},{provide:D,useValue:e}],n;i.container?typeof i.container=="function"?n=i.container:(n=i.container.type,l.push(...i.container.providers(i))):n=oe;let p=new v(n,i.viewContainerRef,h.create({parent:o||this._injector,providers:l}));return e.attach(p).instance}_attachDialogContent(e,t,i,o){if(e instanceof R){let l=this._createInjector(o,t,i,void 0),n={$implicit:o.data,dialogRef:t};o.templateContext&&(n=d(d({},n),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),i.attachTemplatePortal(new $(e,null,n,l))}else{let l=this._createInjector(o,t,i,this._injector),n=i.attachComponentPortal(new v(e,o.viewContainerRef,l));t.componentRef=n,t.componentInstance=n.instance}}_createInjector(e,t,i,o){let l=e.injector||e.viewContainerRef?.injector,n=[{provide:ae,useValue:e.data},{provide:u,useValue:t}];return e.providers&&(typeof e.providers=="function"?n.push(...e.providers(t,e,i)):n.push(...e.providers)),e.direction&&(!l||!l.get(y,null,{optional:!0}))&&n.push({provide:y,useValue:{value:e.direction,change:O()}}),h.create({parent:l||o,providers:n})}_removeOpenDialog(e,t){let i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let t=e.parentElement.children;for(let i=t.length-1;i>-1;i--){let o=t[i];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||a)};static \u0275prov=T({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function A(a,r){let e=a.length;for(;e--;)r(a[e])}var Ee=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=B({type:a});static \u0275inj=w({providers:[re],imports:[ee,C,Z,C]})}return a})();export{c as a,oe as b,u as c,ae as d,re as e,Ee as f}; diff --git a/chunk-AD4TXQD3.js b/chunk-Q33OVU5J.js similarity index 70% rename from chunk-AD4TXQD3.js rename to chunk-Q33OVU5J.js index 00625ca8..d9e82d8b 100644 --- a/chunk-AD4TXQD3.js +++ b/chunk-Q33OVU5J.js @@ -1 +1 @@ -import{a as n}from"./chunk-TZR6QHL3.js";import{F as e,ka as a,t as o}from"./chunk-TEKHUYWQ.js";var d=(...i)=>()=>{let r=a(n),c=r.auth$.pipe(e(t=>!!t),o(t=>i.some(m=>t.roles[m])));return r.load(),c};export{d as a}; +import{a as n}from"./chunk-TPJZ2OYR.js";import{F as e,ka as a,t as o}from"./chunk-TEKHUYWQ.js";var d=(...i)=>()=>{let r=a(n),c=r.auth$.pipe(e(t=>!!t),o(t=>i.some(m=>t.roles[m])));return r.load(),c};export{d as a}; diff --git a/chunk-R66KDUEB.js b/chunk-R66KDUEB.js deleted file mode 100644 index febd6337..00000000 --- a/chunk-R66KDUEB.js +++ /dev/null @@ -1 +0,0 @@ -import{b as kt,d as Ot,g as St}from"./chunk-BJXILAOS.js";import{J as H,L as D,N as V}from"./chunk-4FWBEGAE.js";import{T as bt,U as F,V as wt,f as R,k as vt,o as P,p as X,q as I,s as mt,v as T,w as _}from"./chunk-W5KNOAKV.js";import{$ as tt,D as J,Db as ft,Ea as w,Eb as pt,F as Q,Fa as S,Ja as x,Mb as ut,Pa as at,Ua as lt,Va as ht,Vc as k,Yc as gt,a as C,aa as et,b as U,e as b,ea as v,ed as E,fa as it,ha as st,j as y,ka as l,nd as yt,ob as ct,pa as ot,sa as nt,ub as dt,vb as _t,wb as Y,xa as A,za as rt}from"./chunk-TEKHUYWQ.js";var Et=vt(),N=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(t,e){this._viewportRuler=t,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=_(-this._previousScrollPosition.left),t.style.top=_(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,e=this._document.body,i=t.style,s=e.style,n=i.scrollBehavior||"",r=s.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Et&&(i.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Et&&(i.scrollBehavior=n,s.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};var W=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(t,e,i,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=s}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(Q(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},B=class{enable(){}disable(){}attach(){}};function z(o,t){return t.some(e=>{let i=o.bottome.bottom,n=o.righte.right;return i||s||n||r})}function Ct(o,t){return t.some(e=>{let i=o.tope.bottom,n=o.lefte.right;return i||s||n||r})}var j=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(t,e,i,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=s}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:s}=this._viewportRuler.getViewportSize();z(e,[{width:i,height:s,bottom:s,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Tt=(()=>{class o{_scrollDispatcher=l(H);_viewportRuler=l(D);_ngZone=l(S);_document=l(E);constructor(){}noop=()=>new B;close=e=>new W(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new N(this._viewportRuler,this._document);reposition=e=>new j(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static \u0275fac=function(i){return new(i||o)};static \u0275prov=v({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),L=class{positionStrategy;scrollStrategy=new B;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(t){if(t){let e=Object.keys(t);for(let i of e)t[i]!==void 0&&(this[i]=t[i])}}};var Z=class{connectionPair;scrollableViewProperties;constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}};var Mt=(()=>{class o{_attachedOverlays=[];_document=l(E);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||o)};static \u0275prov=v({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Ft=(()=>{class o extends Mt{_ngZone=l(S,{optional:!0});add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}_keydownListener=e=>{let i=this._attachedOverlays;for(let s=i.length-1;s>-1;s--)if(i[s]._keydownEvents.observers.length>0){let n=i[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(e)):n.next(e);break}};static \u0275fac=(()=>{let e;return function(s){return(e||(e=A(o)))(s||o)}})();static \u0275prov=v({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Ht=(()=>{class o extends Mt{_platform=l(R);_ngZone=l(S,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=e=>{this._pointerDownEventTarget=P(e)};_clickListener=e=>{let i=P(e),s=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let n=this._attachedOverlays.slice();for(let r=n.length-1;r>-1;r--){let a=n[r];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(xt(a.overlayElement,i)||xt(a.overlayElement,s))break;let c=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}};static \u0275fac=(()=>{let e;return function(s){return(e||(e=A(o)))(s||o)}})();static \u0275prov=v({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function xt(o,t){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=t;for(;i;){if(i===o)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var At=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=dt({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,s){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return o})(),Yt=(()=>{class o{_platform=l(R);_containerElement;_document=l(E);_styleLoader=l(I);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||X()){let s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let n=0;nthis._backdropClick.next(t);_backdropTransitionendHandler=t=>{this._disposeBackdrop(t.target)};_previousHostParent;_keydownEvents=new y;_outsidePointerEvents=new y;_renders=new y;_afterRenderRef;_afterNextRenderRef;constructor(t,e,i,s,n,r,a,c,d,h=!1,f){this._portalOutlet=t,this._host=e,this._pane=i,this._config=s,this._ngZone=n,this._keyboardDispatcher=r,this._document=a,this._location=c,this._outsideClickDispatcher=d,this._animationsDisabled=h,this._injector=f,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy,this._afterRenderRef=gt(()=>lt(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=ht(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=C(C({},this._config),t),this._updateElementSize()}setDirection(t){this._config=U(C({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=_(this._config.width),t.height=_(this._config.height),t.minWidth=_(this._config.minWidth),t.minHeight=_(this._config.minHeight),t.maxWidth=_(this._config.maxWidth),t.maxHeight=_(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){let s=T(e||[]).filter(n=>!!n);s.length&&(i?t.classList.add(...s):t.classList.remove(...s))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(tt(J(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Rt="cdk-overlay-connected-position-bounding-box",Vt=/([A-Za-z%]+)$/,K=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new y;_resizeSubscription=b.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(t,e,i,s,n){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=n,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(Rt),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,e=this._overlayRect,i=this._viewportRect,s=this._containerRect,n=[],r;for(let a of this._preferredPositions){let c=this._getOriginPoint(t,s,a),d=this._getOverlayPoint(c,e,a),h=this._getOverlayFit(d,e,i,a);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(h,d,i)){n.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!r||r.overlayFit.visibleAreac&&(c=h,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&O(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Rt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let s;if(i.originX=="center")s=t.left+t.width/2;else{let r=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;s=i.originX=="start"?r:a}e.left<0&&(s-=e.left);let n;return i.originY=="center"?n=t.top+t.height/2:n=i.originY=="top"?t.top:t.bottom,e.top<0&&(n-=e.top),{x:s,y:n}}_getOverlayPoint(t,e,i){let s;i.overlayX=="center"?s=-e.width/2:i.overlayX==="start"?s=this._isRtl()?-e.width:0:s=this._isRtl()?0:-e.width;let n;return i.overlayY=="center"?n=-e.height/2:n=i.overlayY=="top"?0:-e.height,{x:t.x+s,y:t.y+n}}_getOverlayFit(t,e,i,s){let n=Dt(e),{x:r,y:a}=t,c=this._getOffset(s,"x"),d=this._getOffset(s,"y");c&&(r+=c),d&&(a+=d);let h=0-r,f=r+n.width-i.width,m=0-a,u=a+n.height-i.height,p=this._subtractOverflows(n.width,h,f),g=this._subtractOverflows(n.height,m,u),q=p*g;return{visibleArea:q,isCompletelyWithinViewport:n.width*n.height===q,fitsInViewportVertically:g===n.height,fitsInViewportHorizontally:p==n.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){let s=i.bottom-e.y,n=i.right-e.x,r=Pt(this._overlayRef.getConfig().minHeight),a=Pt(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportVertically||r!=null&&r<=s,d=t.fitsInViewportHorizontally||a!=null&&a<=n;return c&&d}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let s=Dt(e),n=this._viewportRect,r=Math.max(t.x+s.width-n.width,0),a=Math.max(t.y+s.height-n.height,0),c=Math.max(n.top-i.top-t.y,0),d=Math.max(n.left-i.left-t.x,0),h=0,f=0;return s.width<=n.width?h=d||-r:h=t.xp&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-p/2)}let c=e.overlayX==="start"&&!s||e.overlayX==="end"&&s,d=e.overlayX==="end"&&!s||e.overlayX==="start"&&s,h,f,m;if(d)m=i.width-t.x+this._viewportMargin*2,h=t.x-this._viewportMargin;else if(c)f=t.x,h=i.right-t.x;else{let u=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;h=u*2,f=t.x-u,h>p&&!this._isInitialRender&&!this._growAfterOpen&&(f=t.x-p/2)}return{top:r,left:f,bottom:a,right:m,width:h,height:n}}_setBoundingBoxStyles(t,e){let i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{let n=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;s.height=_(i.height),s.top=_(i.top),s.bottom=_(i.bottom),s.width=_(i.width),s.left=_(i.left),s.right=_(i.right),e.overlayX==="center"?s.alignItems="center":s.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?s.justifyContent="center":s.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",n&&(s.maxHeight=_(n)),r&&(s.maxWidth=_(r))}this._lastBoundingBoxSize=i,O(this._boundingBox.style,s)}_resetBoundingBoxStyles(){O(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){O(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){let i={},s=this._hasExactPosition(),n=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){let h=this._viewportRuler.getViewportScrollPosition();O(i,this._getExactOverlayY(e,t,h)),O(i,this._getExactOverlayX(e,t,h))}else i.position="static";let a="",c=this._getOffset(e,"x"),d=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),d&&(a+=`translateY(${d}px)`),i.transform=a.trim(),r.maxHeight&&(s?i.maxHeight=_(r.maxHeight):n&&(i.maxHeight="")),r.maxWidth&&(s?i.maxWidth=_(r.maxWidth):n&&(i.maxWidth="")),O(this._pane.style,i)}_getExactOverlayY(t,e,i){let s={top:"",bottom:""},n=this._getOverlayPoint(e,this._overlayRect,t);if(this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i)),t.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;s.bottom=`${r-(n.y+this._overlayRect.height)}px`}else s.top=_(n.y);return s}_getExactOverlayX(t,e,i){let s={left:"",right:""},n=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i));let r;if(this._isRtl()?r=t.overlayX==="end"?"left":"right":r=t.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;s.right=`${a-(n.x+this._overlayRect.width)}px`}else s.left=_(n.x);return s}_getScrollVisibility(){let t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ct(t,i),isOriginOutsideView:z(t,i),isOverlayClipped:Ct(e,i),isOverlayOutsideView:z(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,s)=>i-Math.max(s,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return e==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&T(t).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof x)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}};function O(o,t){for(let e in t)t.hasOwnProperty(e)&&(o[e]=t[e]);return o}function Pt(o){if(typeof o!="number"&&o!=null){let[t,e]=o.split(Vt);return!e||e==="px"?parseFloat(t):null}return o||null}function Dt(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function Nt(o,t){return o===t?!0:o.isOriginClipped===t.isOriginClipped&&o.isOriginOutsideView===t.isOriginOutsideView&&o.isOverlayClipped===t.isOverlayClipped&&o.isOverlayOutsideView===t.isOverlayOutsideView}var Bt="cdk-global-overlay-wrapper",G=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(t){let e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Bt),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:s,height:n,maxWidth:r,maxHeight:a}=i,c=(s==="100%"||s==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(n==="100%"||n==="100vh")&&(!a||a==="100%"||a==="100vh"),h=this._xPosition,f=this._xOffset,m=this._overlayRef.getConfig().direction==="rtl",u="",p="",g="";c?g="flex-start":h==="center"?(g="center",m?p=f:u=f):m?h==="left"||h==="end"?(g="flex-end",u=f):(h==="right"||h==="start")&&(g="flex-start",p=f):h==="left"||h==="start"?(g="flex-start",u=f):(h==="right"||h==="end")&&(g="flex-end",p=f),t.position=this._cssPosition,t.marginLeft=c?"0":u,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=c?"0":p,e.justifyContent=g,e.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Bt),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},Wt=(()=>{class o{_viewportRuler=l(D);_document=l(E);_platform=l(R);_overlayContainer=l(Yt);constructor(){}global(){return new G}flexibleConnectedTo(e){return new K(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(i){return new(i||o)};static \u0275prov=v({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),M=(()=>{class o{scrollStrategies=l(Tt);_overlayContainer=l(Yt);_positionBuilder=l(Wt);_keyboardDispatcher=l(Ft);_injector=l(rt);_ngZone=l(S);_document=l(E);_directionality=l(F);_location=l(yt);_outsideClickDispatcher=l(Ht);_animationsModuleType=l(at,{optional:!0});_idGenerator=l(bt);_appRef;_styleLoader=l(I);constructor(){}create(e){this._styleLoader.load(At);let i=this._createHostElement(),s=this._createPaneElement(i),n=this._createPortalOutlet(s),r=new L(e);return r.direction=r.direction||this._directionality.value,new $(n,i,s,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(ot))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ft)),new Ot(e,null,this._appRef,this._injector,this._document)}static \u0275fac=function(i){return new(i||o)};static \u0275prov=v({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),zt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Xt=new st("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=l(M);return()=>o.scrollStrategies.reposition()}}),Lt=(()=>{class o{elementRef=l(x);constructor(){}static \u0275fac=function(i){return new(i||o)};static \u0275dir=Y({type:o,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return o})(),ue=(()=>{class o{_overlay=l(M);_dir=l(F,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=b.EMPTY;_attachSubscription=b.EMPTY;_detachSubscription=b.EMPTY;_positionSubscription=b.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=l(Xt);_disposeOnNavigation=!1;_ngZone=l(S);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new w;positionChange=new w;attach=new w;detach=new w;overlayKeydown=new w;overlayOutsideClick=new w;constructor(){let e=l(ct),i=l(pt);this._templatePortal=new kt(e,i),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=zt);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!mt(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let s=this._getOriginElement(),n=P(i);(!s||s!==n&&!s.contains(n))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new L({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Lt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Lt?this.origin.elementRef.nativeElement:this.origin instanceof x?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(et(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||o)};static \u0275dir=Y({type:o,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",k],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",k],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",k],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",k],push:[2,"cdkConnectedOverlayPush","push",k],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",k]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ut,nt]})}return o})();function jt(o){return()=>o.scrollStrategies.reposition()}var Zt={provide:Xt,deps:[M],useFactory:jt},ge=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=_t({type:o});static \u0275inj=it({providers:[M,Zt],imports:[wt,St,V,V]})}return o})();export{L as a,Yt as b,$ as c,K as d,M as e,Lt as f,ue as g,ge as h}; diff --git a/chunk-RGIFAF2T.js b/chunk-RGIFAF2T.js new file mode 100644 index 00000000..62bfcc4c --- /dev/null +++ b/chunk-RGIFAF2T.js @@ -0,0 +1 @@ +import{a as ue,b as pe}from"./chunk-AFH22WZE.js";import{a as he,b as xe,c as ge,d as ve,e as Me,f as be,g as we,h as ye,i as Fe,j as Se,k as De}from"./chunk-FROUXDRM.js";import{a as fe,b as Ce}from"./chunk-4JU575PW.js";import{a as _e}from"./chunk-56M6HFOE.js";import"./chunk-Q2N7RZTH.js";import{a as ae}from"./chunk-WOE5TNBB.js";import{c as me}from"./chunk-BLJCB4Q7.js";import"./chunk-2XST3EDK.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import"./chunk-V6KASOE3.js";import"./chunk-XIUDFJWJ.js";import{a as de,b as y}from"./chunk-TPJZ2OYR.js";import"./chunk-XYJHVZQT.js";import"./chunk-VVQ6JEVH.js";import"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as A}from"./chunk-A3N3AUUJ.js";import{g as U,h as J,i as K,j as W,p as N,q as oe,v as ie,w as re,x as T}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import{a as O,b as se,c as le,d as ce,e as k,f as V,i as H}from"./chunk-EC6LD5KM.js";import{a as X,e as B,f as j,h as Y,i as R,j as I,l as d,m as Z,p as ee,q as te,s as ne,x as E}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{F as z,Fc as L,Jc as w,Kc as F,Mc as Q,Nb as p,Tb as C,Yb as g,bc as i,cc as o,dc as f,ec as S,fc as D,hc as v,je as P,ka as s,kc as M,lb as c,mc as u,ta as h,ua as x,ub as _,xb as q,xc as m,yc as b}from"./chunk-TEKHUYWQ.js";var Pe=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=_({type:e,selectors:[["devmx-account-feature-admin"]],decls:1,vars:0,template:function(n,a){n&1&&f(0,"router-outlet")},dependencies:[J],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var Ue=[Ce()];var Ne=(()=>{class e{transform(t,...n){return n.some(a=>t?.roles[a])}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=q({name:"hasRole",type:e,pure:!0})}return e})();function $e(e,r){e&1&&(i(0,"th",13),m(1,"Nome"),o())}function Ge(e,r){if(e&1&&(i(0,"td",14),m(1),o()),e&2){let t=r.$implicit;c(),b(t.displayName)}}function Be(e,r){e&1&&(i(0,"th",13),m(1,"Usu\xE1rio"),o())}function je(e,r){if(e&1&&(i(0,"td",14),m(1),o()),e&2){let t=r.$implicit;c(),b(t.name)}}function Ie(e,r){e&1&&f(0,"th",13)}function ze(e,r){if(e&1){let t=v();i(0,"button",18),M("click",function(){h(t);let a=u().$implicit,l=u(3);return x(l.openDelete(a))}),f(1,"devmx-icon",19),o()}}function qe(e,r){if(e&1&&(i(0,"td",14)(1,"a",15),f(2,"devmx-icon",16),o(),p(3,ze,2,0,"button",17),w(4,"hasRole"),o()),e&2){let t=r.$implicit,n=u(2);c(),C("routerLink",t.id),c(2),g(Q(4,2,n,"director","manager")?3:-1)}}function Le(e,r){e&1&&f(0,"tr",20)}function Qe(e,r){e&1&&f(0,"tr",21)}function Je(e,r){if(e&1){let t=v();i(0,"table",3),S(1,4),p(2,$e,2,0,"th",5)(3,Ge,2,1,"td",6),D(),S(4,7),p(5,Be,2,0,"th",5)(6,je,2,1,"td",6),D(),S(7,8),p(8,Ie,1,0,"th",5)(9,qe,5,6,"td",6),D(),p(10,Le,1,0,"tr",9)(11,Qe,1,0,"tr",10),o(),i(12,"mat-card-actions",11)(13,"devmx-paginator",12),M("pageChange",function(a){h(t);let l=u(2);return x(l.onPageChange(a))}),o()()}if(e&2){let t=r,n=u(2);C("dataSource",t.data),c(10),C("matHeaderRowDef",n.columns),c(),C("matRowDefColumns",n.columns),c(2),C("size",10)("items",t.items)}}function Ke(e,r){if(e&1){let t=v();i(0,"mat-card",0)(1,"mat-card-header",1)(2,"devmx-search-field",2),M("searchChange",function(a){h(t);let l=u();return x(l.onSearchChange(a))}),o()(),p(3,Je,14,5),w(4,"async"),o()}if(e&2){let t,n=u();c(2),C("debounce",800),c(),g((t=F(4,2,n.userFacade.response$))?3:-1,t)}}var Re=(()=>{class e{router=s(K);route=s(U);authFacade=s(de);userFacade=s(y);dialogFacade=s(fe);columns=["displayName","name","actions"];constructor(){this.route.queryParams.pipe(A()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{page:n=0,size:a=10}=t,{name:l="",username:Oe=""}=t,ke={name:l,username:Oe};this.userFacade.setParams({page:n,size:a,filter:ke}),this.userFacade.load()};openDelete(t){this.dialogFacade.confirm(`Confirme que deseja remover o usu\xE1rio de ${t.displayName}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(n=>{n&&this.userFacade.delete(t.id)})}onSearchChange(t=""){this.userFacade.setFilter({displayName:t}),this.userFacade.load()}onPageChange(t){this.router.navigate([],{queryParams:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=_({type:e,selectors:[["devmx-users"]],decls:2,vars:3,consts:[[1,"users-card"],[1,"users-card-header"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","displayName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"routerLink"],["name","user-box"],["mat-icon-button","","color","warn"],["mat-icon-button","","color","warn",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,a){if(n&1&&(p(0,Ke,5,4,"mat-card",0),w(1,"async")),n&2){let l;g((l=F(1,1,a.authFacade.auth$))?0:-1,l)}},dependencies:[me,_e,T,re,ie,De,he,ge,we,ve,xe,ye,Me,be,Fe,Se,H,O,k,V,X,N,W,Ne,P],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .users-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .users-card-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:4em}"],changeDetection:0})}return e})();var Ee=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=_({type:e,selectors:[["devmx-user-roles"]],features:[L([],[{provide:j,useFactory:()=>s(j,{skipSelf:!0})}])],decls:16,vars:0,consts:[["formGroupName","roles"],["formControlName","member"],["formControlName","speaker"],["formControlName","recruiter"],["formControlName","leader"],["formControlName","staff"]],template:function(n,a){n&1&&(i(0,"div",0)(1,"section")(2,"mat-checkbox",1),m(3,"Membro"),o()(),i(4,"section")(5,"mat-checkbox",2),m(6,"Palestrante"),o()(),i(7,"section")(8,"mat-checkbox",3),m(9,"Recrutador(a)"),o()(),i(10,"section")(11,"mat-checkbox",4),m(12,"L\xEDder de grupo"),o()(),i(13,"section")(14,"mat-checkbox",5),m(15,"Organizador"),o()()())},dependencies:[E,Y,R,ne,te,pe,ue],encapsulation:2,changeDetection:0})}return e})();var G=class extends I{constructor(){super({id:new d("",{nonNullable:!0,validators:[B.required]}),roles:new I({academic:new d(!1,{nonNullable:!0}),director:new d(!1,{nonNullable:!0}),donor:new d(!1,{nonNullable:!0}),fellow:new d(!1,{nonNullable:!0}),leader:new d(!1,{nonNullable:!0}),manager:new d(!1,{nonNullable:!0}),member:new d(!1,{nonNullable:!0,validators:[B.requiredTrue]}),neighbor:new d(!1,{nonNullable:!0}),recruiter:new d(!1,{nonNullable:!0}),speaker:new d(!1,{nonNullable:!0}),staff:new d(!1,{nonNullable:!0})})})}};function Xe(e,r){if(e&1){let t=v();i(0,"form",1),M("submit",function(){h(t);let a=u();return x(a.onSubmit())}),i(1,"mat-card",2)(2,"mat-card-header",3)(3,"mat-card-title"),m(4),o(),i(5,"mat-card-subtitle"),m(6),o()(),i(7,"mat-card-content",4),f(8,"devmx-user-roles"),o(),i(9,"mat-card-actions",5)(10,"button",6),m(11,"Salvar"),o()()()()}if(e&2){let t=r,n=u();C("formGroup",n.form),c(4),b(t.displayName),c(2),b(t.name)}}var Te=(()=>{class e{route=s(U);userFacade=s(y);messageService=s(ae);form=new G;constructor(){this.route.data.pipe(A()).subscribe(({user:t})=>{t&&this.form.patchValue(t)})}onSubmit(){if(this.form.valid){let t=this.form.getRawValue();return this.userFacade.updateRoles(t),this.messageService.open({message:"Armazenando informa\xE7\xF5es"})}return this.form.markAllAsTouched()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=_({type:e,selectors:[["devmx-admin-user"]],decls:2,vars:3,consts:[[3,"formGroup"],[3,"submit","formGroup"],[1,"user-card"],[1,"user-card-header"],[1,"user-card-content"],["align","end"],["mat-button",""]],template:function(n,a){if(n&1&&(p(0,Xe,12,3,"form",0),w(1,"async")),n&2){let l;g((l=F(1,1,a.userFacade.selected$))?0:-1,l)}},dependencies:[E,Z,R,ee,Ee,T,oe,H,O,k,le,V,ce,se,N,P],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .user-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .user-card-header[_ngcontent-%COMP%]{padding-bottom:.8em;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .user-card-content[_ngcontent-%COMP%]{padding-top:.8em}"],changeDetection:0})}return e})();var Ae=e=>{let r=s(y);return r.loadOne(e.params.id),r.selected$.pipe(z(t=>!!t))};var an=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},title:"Administrar conta",providers:Ue,component:Pe,children:[{path:"usuarios",data:{breadcrumb:"Usu\xE1rios"},title:"Contas de usu\xE1rios",component:Re},{path:"usuarios/:id",data:{breadcrumb:e=>e.user.displayName},title:"Usu\xE1rio",resolve:{user:Ae},component:Te},{path:"",pathMatch:"prefix",redirectTo:"usuarios"}]}];export{Pe as AccountFeatureAdminComponent,an as accountFeatureAdminRoutes}; diff --git a/chunk-RUSPURVH.js b/chunk-RUSPURVH.js deleted file mode 100644 index 56bb5a14..00000000 --- a/chunk-RUSPURVH.js +++ /dev/null @@ -1 +0,0 @@ -import{c as Q,e as $,f as q}from"./chunk-HGOTYYGI.js";import{j as St}from"./chunk-KXTQ2UTD.js";import{a as N,b as Ht,e as z,f as U,g as H,l as j}from"./chunk-PAP2P7QR.js";import{a as W,b as Y,e as jt,f as Z,g as Qt,i as J}from"./chunk-EC6LD5KM.js";import{a as A,b as Lt,c as Rt,e as dt,g as Vt,h as At,j as Nt,l as ct,o as zt,x as Ut}from"./chunk-EDIJ2EBQ.js";import{Q as Et,T as lt,U as Pt,Y as st,ca as Ot,ga as Bt,ha as Ft,ia as Dt,q as wt,xa as Gt}from"./chunk-W5KNOAKV.js";import{$b as C,Aa as ht,Ea as P,Fc as It,Ha as y,Hc as E,Ia as O,Ja as B,Jc as I,Kb as xt,Kc as it,Lc as R,Mb as et,Nb as w,Sb as D,Sc as rt,Tb as u,Vb as at,Vc as b,Yb as x,ac as k,bc as n,cc as r,da as gt,dc as p,fa as mt,gb as ft,ha as tt,hc as Ct,ka as g,kc as f,lb as l,mb as F,mc as M,nc as G,oc as L,pc as kt,pe as V,qc as Mt,rc as ot,sb as vt,sc as nt,ta as pt,ua as bt,ub as m,vb as _t,wb as yt,wc as Tt,xb as h,xc as c,yc as _,zc as T}from"./chunk-TEKHUYWQ.js";var Xt=(e,d)=>d.id,te=e=>[e],ee=e=>({right:e}),ae=e=>({outlets:e}),oe=e=>["/","eventos",e];function ne(e,d){if(e&1&&(n(0,"a",1),p(1,"devmx-icon",2),n(2,"div",3),c(3),r(),n(4,"div",4),c(5),I(6,"date"),r()()),e&2){let t=d.$implicit;u("routerLink",E(12,oe,E(10,ae,E(8,ee,E(6,te,t.id))))),l(3),_(t.title),l(2),_(R(6,3,t.date,"longDate"))}}var we=(()=>{class e{data=O([]);static \u0275fac=function(a){return new(a||e)};static \u0275cmp=m({type:e,selectors:[["devmx-event-card-list"]],inputs:{data:[1,"data"]},decls:7,vars:0,consts:[[1,"events-card"],["mat-list-item","",3,"routerLink"],["matListItemIcon","","name","calendar"],["matListItemTitle",""],["matListItemLine",""]],template:function(a,o){a&1&&(n(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),c(3,"Eventos"),r()(),n(4,"mat-list"),C(5,ne,7,14,"a",1,Xt),r()()),a&2&&(l(5),k(o.data()))},dependencies:[J,W,Z,Y,j,U,H,z,Ht,N,A,V,St],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] a[_ngcontent-%COMP%]:link{cursor:pointer}"],changeDetection:0})}return e})();var re=(e,d)=>d.value;function le(e,d){if(e&1&&(n(0,"mat-chip-option",1),c(1),r()),e&2){let t=d.$implicit;u("value",t.value),l(),T(" ",t.viewValue," ")}}var De=(()=>{class e{filterChange=y();formats=[{value:"in-person",viewValue:"Presencial"},{value:"online",viewValue:"Online"},{value:"mixed",viewValue:"H\xEDbrido"}];static \u0275fac=function(a){return new(a||e)};static \u0275cmp=m({type:e,selectors:[["devmx-event-filter"]],outputs:{filterChange:"filterChange"},decls:3,vars:0,consts:[[3,"change"],[3,"value"]],template:function(a,o){a&1&&(n(0,"mat-chip-listbox",0),f("change",function(s){return o.filterChange.emit(s.value)}),C(1,le,2,2,"mat-chip-option",1,re),r()),a&2&&(l(),k(o.formats))},dependencies:[q,$,Q],encapsulation:2,changeDetection:0})}return e})();var se=["button"],de=["*"];function ce(e,d){if(e&1&&p(0,"mat-pseudo-checkbox",3),e&2){let t=M();u("disabled",t.disabled)}}function ue(e,d){if(e&1&&p(0,"mat-pseudo-checkbox",3),e&2){let t=M();u("disabled",t.disabled)}}var $t=new tt("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:ge});function ge(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var qt=new tt("MatButtonToggleGroup"),me={provide:Lt,useExisting:gt(()=>ut),multi:!0},K=class{source;value;constructor(d,t){this.source=d,this.value=t}},ut=(()=>{class e{_changeDetector=g(rt);_dir=g(Pt,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}_name=g(lt).getId("mat-button-toggle-group-");vertical;get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(a=>a.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}valueChange=new P;get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new P;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let t=g($t,{optional:!0});this.appearance=t&&t.appearance?t.appearance:"standard",this.hideSingleSelectionIndicator=t?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=t?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Gt(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled)return;let o=t.target.id,i=this._buttonToggles.toArray().findIndex(S=>S.buttonId===o),s=null;switch(t.keyCode){case 32:case 13:s=this._buttonToggles.get(i)||null;break;case 38:s=this._getNextButton(i,-1);break;case 37:s=this._getNextButton(i,this.dir==="ltr"?-1:1);break;case 40:s=this._getNextButton(i,1);break;case 39:s=this._getNextButton(i,this.dir==="ltr"?1:-1);break;default:return}s&&(t.preventDefault(),s._onButtonClick(),s.focus())}_emitChangeEvent(t){let a=new K(t,this.value);this._rawValue=a.value,this._controlValueAccessorChangeFn(a.value),this.change.emit(a)}_syncButtonToggle(t,a,o=!1,i=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?a?this._selectionModel.select(t):this._selectionModel.deselect(t):i=!0,i?Promise.resolve().then(()=>this._updateModelValue(t,o)):this._updateModelValue(t,o)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(a=>t.value!=null&&a===t.value):t.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let t=0;tthis._selectValue(a))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t){let a=this._buttonToggles.find(o=>o.value!=null&&o.value===t);a&&(a.checked=!0,this._selectionModel.select(a),this.multiple||(a.tabIndex=0))}_updateModelValue(t,a){a&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}static \u0275fac=function(a){return new(a||e)};static \u0275dir=yt({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(a,o,i){if(a&1&&kt(i,X,5),a&2){let s;ot(s=nt())&&(o._buttonToggles=s)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(a,o){a&1&&f("keydown",function(s){return o._keydown(s)}),a&2&&(D("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),at("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",b],value:"value",multiple:[2,"multiple","multiple",b],disabled:[2,"disabled","disabled",b],disabledInteractive:[2,"disabledInteractive","disabledInteractive",b],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",b],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",b]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[It([me,{provide:qt,useExisting:e}]),et]})}return e})(),X=(()=>{class e{_changeDetectorRef=g(rt);_elementRef=g(B);_focusMonitor=g(Et);_idGenerator=g(lt);_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex}set tabIndex(t){this._tabIndex=t,this._markForCheck()}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}_disabledInteractive;change=new P;constructor(){g(wt).load(Ot);let t=g(qt,{optional:!0}),a=g(new ht("tabindex"),{optional:!0}),o=g($t,{optional:!0}),i=Number(a);this.tabIndex=i||i===0?i:null,this.buttonToggleGroup=t,this.appearance=o&&o.appearance?o.appearance:"standard",this.disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){if(this.disabled)return;let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let a=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);a&&(a.tabIndex=-1),this.tabIndex=0}this.change.emit(new K(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=m({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(a,o){if(a&1&&Mt(se,5),a&2){let i;ot(i=nt())&&(o._buttonElement=i.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(a,o){a&1&&f("focus",function(){return o.focus()}),a&2&&(D("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),at("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-disabled-interactive",o.disabledInteractive)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",b],appearance:"appearance",checked:[2,"checked","checked",b],disabled:[2,"disabled","disabled",b],disabledInteractive:[2,"disabledInteractive","disabledInteractive",b]},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[et],ngContentSelectors:de,decls:8,vars:14,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(a,o){if(a&1){let i=Ct();G(),n(0,"button",1,0),f("click",function(){return pt(i),bt(o._onButtonClick())}),n(2,"span",2),w(3,ce,1,1,"mat-pseudo-checkbox",3)(4,ue,1,1,"mat-pseudo-checkbox",3),L(5),r()(),p(6,"span",4)(7,"span",5)}if(a&2){let i=Tt(1);u("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),D("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),l(3),x(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),l(),x(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),l(3),u("matRippleTrigger",i)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Bt,Dt],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-legacy-button-toggle-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-legacy-button-toggle-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-standard-button-toggle-background-color, transparent);font-family:var(--mat-standard-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-standard-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-standard-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-standard-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-standard-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-standard-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}"],encapsulation:2,changeDetection:0})}return e})(),Wt=(()=>{class e{static \u0275fac=function(a){return new(a||e)};static \u0275mod=_t({type:e});static \u0275inj=mt({imports:[st,Ft,X,st]})}return e})();var ba=(()=>{class e extends Rt{ngControl;statusChange=y();get control(){return this.ngControl.control}constructor(t,a,o){super(t,a,!0),this.ngControl=o,this.ngControl.valueAccessor=this}static \u0275fac=function(a){return new(a||e)(F(vt),F(B),F(Vt,10))};static \u0275cmp=m({type:e,selectors:[["devmx-rsvp-button"]],outputs:{statusChange:"statusChange"},features:[xt],decls:7,vars:1,consts:[["aria-label","Presen\xE7a",1,"button-group",3,"change","formControl"],["value","confirmed"],["value","declined"],["value","maybe"]],template:function(a,o){a&1&&(n(0,"mat-button-toggle-group",0),f("change",function(){return o.statusChange.emit()}),n(1,"mat-button-toggle",1),c(2,"Vou!"),r(),n(3,"mat-button-toggle",2),c(4,"N\xE3o vou"),r(),n(5,"mat-button-toggle",3),c(6,"Talvez"),r()()),a&2&&u("formControl",o.control)},dependencies:[Ut,At,zt,Wt,ut,X],encapsulation:2,changeDetection:0})}return e})();var Yt=(()=>{class e{transform(t){switch(t){case"in-person":return"Presencial";case"online":return"Online";case"mixed":return"H\xEDbrido"}}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=h({name:"eventFormat",type:e,pure:!0})}return e})();var va=(()=>{class e{transform(t,a){return t.find(o=>o.user.id===a)??null}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=h({name:"findInRSVP",type:e,pure:!0})}return e})();var ya=(()=>{class e{transform(t,a){return t.filter(o=>o.status===a)}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=h({name:"rsvpByStatus",type:e,pure:!0})}return e})();var Ca=(()=>{class e{transform(t){return["in-person","mixed"].includes(t)}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=h({name:"showEventAddress",type:e,pure:!0})}return e})();var Ma=(()=>{class e{transform(t){return["online","mixed"].includes(t)}static \u0275fac=function(a){return new(a||e)};static \u0275pipe=h({name:"showEventLink",type:e,pure:!0})}return e})();var be=["*"];function he(e,d){if(e&1&&p(0,"img",1),e&2){let t=M();u("src",t.event.cover,ft)("alt",t.event.title)}}function fe(e,d){if(e&1&&(n(0,"mat-list-item"),p(1,"devmx-icon",3),n(2,"div",4),c(3),I(4,"eventFormat"),r()(),n(5,"mat-list-item"),p(6,"devmx-icon",5),n(7,"div",4),c(8),I(9,"date"),r()(),n(10,"mat-list-item"),p(11,"devmx-icon",6),n(12,"div",4),c(13),I(14,"date"),r()()),e&2){let t=M();l(3),_(it(4,3,t.event.format)),l(5),T("",R(9,5,t.event.date,"shortTime"),"h"),l(5),_(it(14,8,t.event.date))}}var Da=(()=>{class e{data=O.required();get event(){return this.data()}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=m({type:e,selectors:[["devmx-event-card"]],inputs:{data:[1,"data"]},ngContentSelectors:be,decls:9,vars:3,consts:[[1,"event-card"],["mat-card-image","",3,"src","alt"],["align","end",1,"event-card-actions"],["matListItemIcon","","name","transport/flag-pin"],["matListItemTitle",""],["matListItemIcon","","name","alarm-clock-alert"],["matListItemIcon","","name","calendar"]],template:function(a,o){a&1&&(G(),n(0,"mat-card",0),w(1,he,1,2,"img",1),n(2,"mat-card-header")(3,"mat-card-title"),c(4),r()(),n(5,"mat-list"),w(6,fe,15,10),r(),n(7,"mat-card-actions",2),L(8),r()()),a&2&&(l(),x(o.event.cover?1:-1),l(3),_(o.event.title),l(2),x(o.event.date?6:-1))},dependencies:[J,W,jt,Z,Qt,Y,j,U,H,z,N,Yt,A,V],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;flex:1}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;max-width:100%}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%] .event-address[_ngcontent-%COMP%] .mdc-list-item__primary-text[_ngcontent-%COMP%]{max-width:calc(100% - 4em)}[_nghost-%COMP%] .event-card-header[_ngcontent-%COMP%]{padding-bottom:1em}[_nghost-%COMP%] .event-card-header[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{gap:.4em;display:flex;line-height:1;align-items:center}[_nghost-%COMP%] .event-card-content[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%]:active, [_nghost-%COMP%] .event-card[_ngcontent-%COMP%]:hover{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}[_nghost-%COMP%] .event-card-actions[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})}return e})();var ve=(e,d)=>d.value;function _e(e,d){if(e&1&&(n(0,"mat-chip-option",1),c(1),r()),e&2){let t=d.$implicit;u("value",t.value),l(),T(" ",t.viewValue," ")}}var Na=(()=>{class e{timeChange=y();times=[{value:"",viewValue:"Chegando"},{value:"until",viewValue:"Passados"}];static \u0275fac=function(a){return new(a||e)};static \u0275cmp=m({type:e,selectors:[["devmx-event-time"]],outputs:{timeChange:"timeChange"},decls:3,vars:0,consts:[[3,"change"],[3,"value"]],template:function(a,o){a&1&&(n(0,"mat-chip-listbox",0),f("change",function(s){return o.timeChange.emit(s.value)}),C(1,_e,2,2,"mat-chip-option",1,ve),r()),a&2&&(l(),k(o.times))},dependencies:[q,$,Q],encapsulation:2,changeDetection:0})}return e})();var Zt=class extends Nt{constructor(){super({event:new ct("",{nonNullable:!0,validators:[dt.required]}),status:new ct("",{nonNullable:!0,validators:[dt.required]})})}};export{we as a,De as b,ba as c,Yt as d,va as e,ya as f,Ca as g,Ma as h,Da as i,Na as j,Zt as k}; diff --git a/chunk-SG4GQJJH.js b/chunk-SG4GQJJH.js new file mode 100644 index 00000000..3d9f3620 --- /dev/null +++ b/chunk-SG4GQJJH.js @@ -0,0 +1 @@ +import{a as _n}from"./chunk-JQW63IXS.js";import{a as Fn}from"./chunk-4Z5R5VSG.js";import{b as Gt,c as Zt,d as Xt,e as Kt,g as Yt}from"./chunk-ZQOXWN4S.js";import{a as Se,b as Pe}from"./chunk-JMI5D6U5.js";import{a as mn,b as cn}from"./chunk-AFH22WZE.js";import{a as Cn,b as xn,c as Mn,d as vn,e as yn,f as wn,g as Sn,h as Pn,i as On,j as Dn,k as An}from"./chunk-FROUXDRM.js";import{a as we,b as gn}from"./chunk-4JU575PW.js";import{a as bn}from"./chunk-56M6HFOE.js";import{a as pn}from"./chunk-Q33OVU5J.js";import"./chunk-73QBZNVE.js";import{b as un,e as fn,f as hn}from"./chunk-Q2N7RZTH.js";import{a as I,b as Wt,d as Jt}from"./chunk-L2JQY5SP.js";import{a as tn,b as nn,c as be}from"./chunk-BLJCB4Q7.js";import"./chunk-2XST3EDK.js";import{a as Ht,b as Ut}from"./chunk-MLNPCJDD.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import{a as rn}from"./chunk-TPJZ2OYR.js";import{k as T,q as le,s as Dt}from"./chunk-XYJHVZQT.js";import{d as sn,e as ln}from"./chunk-VVQ6JEVH.js";import{b as wt,c as St,i as Pt,j as Ot,o as en}from"./chunk-AND6K73U.js";import{f as qt,g as Qt}from"./chunk-BJXILAOS.js";import{a as _e}from"./chunk-A3N3AUUJ.js";import{g as q,h as Ct,i as re,j as xt,p as se,q as ge,s as jt,v as B,w as Nt,x as R}from"./chunk-6BGAZ7SQ.js";import{c as Mt,d as ke,e as Te,g as Be,h as Re,j as Ie,k as Le,l as Ve}from"./chunk-I7VYXJU2.js";import{a as dn}from"./chunk-BNCLIKTI.js";import{a as de,c as pe,e as $t,f as ue,g as fe,i as zt,l as he}from"./chunk-PAP2P7QR.js";import{a as Ce,b as xe,c as on,d as an,e as Me,f as ve,i as ye}from"./chunk-EC6LD5KM.js";import{a as w,c as Ft,e as Et,h as kt,i as Tt,j as me,l as A,m as Bt,p as Rt,r as It,s as Lt,w as ce,x as Vt}from"./chunk-EDIJ2EBQ.js";import{D as yt,E as z,W as $e,X as ze,Y as He,a as Ee,s as vt,xa as At}from"./chunk-W5KNOAKV.js";import{$b as S,Ac as oe,D as We,Ea as ot,F as L,Fb as V,Fc as ft,Gc as ae,Ha as W,I as Je,Ia as at,Ja as rt,Jc as O,Kb as te,Kc as D,L as y,Nb as g,Sb as ct,Sc as ht,Tb as u,Xc as gt,Yb as M,Zc as _t,a as J,ac as P,b as Xe,ba as et,bc as s,cc as r,d as U,dc as p,ea as tt,ec as ne,fa as nt,fc as ie,gb as st,ha as Fe,hc as v,j as Ke,jc as dt,je as N,ka as d,kc as f,lb as l,lc as pt,mc as h,o as Ye,pe as bt,t as Y,ta as _,u as j,ua as b,ub as C,vb as lt,wb as ee,wc as ut,xa as it,xb as mt,xc as c,yc as k,zc as $}from"./chunk-TEKHUYWQ.js";var En=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["devmx-album-feature-admin"]],decls:1,vars:0,template:function(n,i){n&1&&p(0,"router-outlet")},dependencies:[Ct],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return t})();function ei(t,a){}var ti={bottomSheetState:Mt("state",[Re("void, hidden",Be({transform:"translateY(100%)"})),Re("visible",Be({transform:"translateY(0%)"})),Ie("visible => void, visible => hidden",Te([ke(`${ze.COMPLEX} ${$e.ACCELERATION_CURVE}`),Ve("@*",Le(),{optional:!0})])),Ie("void => visible",Te([ke(`${ze.EXITING} ${$e.DECELERATION_CURVE}`),Ve("@*",Le(),{optional:!0})]))])},ni=(()=>{class t extends un{_breakpointSubscription;_animationState="void";_animationStateChanged=new ot;_destroyed;constructor(){super();let e=d(yt);this._breakpointSubscription=e.observe([z.Medium,z.Large,z.XLarge]).subscribe(()=>{let n=this._elementRef.nativeElement.classList;n.toggle("mat-bottom-sheet-container-medium",e.isMatched(z.Medium)),n.toggle("mat-bottom-sheet-container-large",e.isMatched(z.Large)),n.toggle("mat-bottom-sheet-container-xlarge",e.isMatched(z.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(e){e.toState==="visible"&&this._trapFocus(),this._animationStateChanged.emit(e)}_onAnimationStart(e){this._animationStateChanged.emit(e)}_captureInitialFocus(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(n,i){n&1&&pt("@state.start",function(m){return i._onAnimationStart(m)})("@state.done",function(m){return i._onAnimationDone(m)}),n&2&&(dt("@state",i._animationState),ct("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-label",i._config.ariaLabel))},features:[te],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,i){n&1&&g(0,ei,0,0,"ng-template",0)},dependencies:[qt],styles:[".mat-bottom-sheet-container{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;background:var(--mat-bottom-sheet-container-background-color, var(--mat-sys-surface-container-low));color:var(--mat-bottom-sheet-container-text-color, var(--mat-sys-on-surface));font-family:var(--mat-bottom-sheet-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-bottom-sheet-container-text-size, var(--mat-sys-body-large-size));line-height:var(--mat-bottom-sheet-container-text-line-height, var(--mat-sys-body-large-line-height));font-weight:var(--mat-bottom-sheet-container-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-bottom-sheet-container-text-tracking, var(--mat-sys-body-large-tracking))}@media(forced-colors: active){.mat-bottom-sheet-container{outline:1px solid}}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape, 28px);border-top-right-radius:var(--mat-bottom-sheet-container-shape, 28px)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[ti.bottomSheetState]}})}return t})(),je=new Fe("MatBottomSheetData"),Ue=class{viewContainerRef;panelClass;direction;data=null;hasBackdrop=!0;backdropClass;disableClose=!1;ariaLabel=null;ariaModal=!0;closeOnNavigation=!0;autoFocus="dialog";restoreFocus=!0;scrollStrategy;height="";minHeight;maxHeight},Q=class{_ref;get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}containerInstance;disableClose;_afterOpened=new Ke;_result;_closeFallbackTimeout;constructor(a,e,n){this._ref=a,this.containerInstance=n,this.disableClose=e.disableClose,n._animationStateChanged.pipe(L(i=>i.phaseName==="done"&&i.toState==="visible"),y(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(L(i=>i.phaseName==="done"&&i.toState==="hidden"),y(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),a.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),We(this.backdropClick(),this.keydownEvents().pipe(L(i=>i.keyCode===27))).subscribe(i=>{!this.disableClose&&(i.type!=="keydown"||!vt(i))&&(i.preventDefault(),this.dismiss())})}dismiss(a){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(L(e=>e.phaseName==="start"),y(1)).subscribe(e=>{this._closeFallbackTimeout=setTimeout(()=>{this._ref.close(this._result)},e.totalTime+100),this._ref.overlayRef.detachBackdrop()}),this._result=a,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}},ii=new Fe("mat-bottom-sheet-default-options"),Ne=(()=>{class t{_overlay=d(en);_parentBottomSheet=d(t,{optional:!0,skipSelf:!0});_defaultOptions=d(ii,{optional:!0});_bottomSheetRefAtThisLevel=null;_dialog=d(fn);get _openedBottomSheetRef(){let e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}constructor(){}open(e,n){let i=J(J({},this._defaultOptions||new Ue),n),o;return this._dialog.open(e,Xe(J({},i),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:ni,scrollStrategy:i.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:()=>({bottomSheetRef:o}),providers:(m,x,H)=>(o=new Q(m,i,H),[{provide:Q,useValue:o},{provide:je,useValue:i.data}])})),o.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===o&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>o.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):o.containerInstance.enter(),this._openedBottomSheetRef=o,o}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=tt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=lt({type:t});static \u0275inj=nt({providers:[Ne],imports:[hn,He,Qt,He]})}return t})();var Tn=(()=>{class t{ref=d(Q);data=d(je);close(e){this.ref.dismiss(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ee({type:t})}return t})();var G=class{sheet;constructor(a){this.sheet=a}open(a,e){return this.sheet.open(a,{data:e,autoFocus:!0,restoreFocus:!0,panelClass:"devmx-sheet"}).afterDismissed()}};function Bn(){return{provide:G,deps:[Ne]}}var Rn=[Pe(),gn(),Bn()];var In=t=>Jt(d(I),t.params);function ai(t,a){t&1&&(s(0,"th",15),c(1,"T\xEDtulo do album"),r())}function ri(t,a){if(t&1&&(s(0,"td",16),c(1),r()),t&2){let e=a.$implicit;l(),k(e.title)}}function si(t,a){t&1&&(s(0,"th",15),c(1,"Criado por"),r())}function li(t,a){if(t&1&&(s(0,"td",16),c(1),r()),t&2){let e=a.$implicit;l(),k(e.owner.displayName)}}function mi(t,a){t&1&&p(0,"th",15)}function ci(t,a){if(t&1){let e=v();s(0,"td",16)(1,"button",17),f("click",function(){let i=_(e).$implicit,o=h(2);return b(o.openDelete(i))}),p(2,"devmx-icon",18),r()()}}function di(t,a){t&1&&p(0,"tr",19)}function pi(t,a){t&1&&p(0,"tr",20)}function ui(t,a){if(t&1){let e=v();s(0,"table",5),ne(1,6),g(2,ai,2,0,"th",7)(3,ri,2,1,"td",8),ie(),ne(4,9),g(5,si,2,0,"th",7)(6,li,2,1,"td",8),ie(),ne(7,10),g(8,mi,1,0,"th",7)(9,ci,3,0,"td",8),ie(),g(10,di,1,0,"tr",11)(11,pi,1,0,"tr",12),r(),s(12,"mat-card-actions",13)(13,"devmx-paginator",14),f("pageChange",function(i){_(e);let o=h();return b(o.onPageChange(i))}),r()()}if(t&2){let e=a,n=h();u("dataSource",e.data),l(10),u("matHeaderRowDef",n.columns),l(),u("matRowDefColumns",n.columns),l(2),u("size",10)("items",e.items)}}var Ln=(()=>{class t{router=d(re);route=d(q);dialogFacade=d(we);albumFacade=d(I);selectUser=d(Se);#e=Dt(null);columns=["title","owner","actions"];constructor(){let e=this.#e.observe().pipe(Y(i=>i?i.id:"")),n=this.route.queryParams;j([e,n]).pipe(_e()).subscribe(this.onQueryParams)}onQueryParams=([e,n])=>{let{page:i=0,size:o=10}=n,m={title:"",owner:e};this.albumFacade.setParams({page:i,size:o,filter:m}),this.albumFacade.load()};openDelete({id:e,title:n}){this.dialogFacade.confirm(`Confirme que deseja apagar o album ${n}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(i=>{i&&this.albumFacade.delete(e)})}openSelectUser(){this.selectUser.open({multiple:!1}).subscribe(e=>{e&&this.#e.update(e)})}onSearchChange(e=""){this.albumFacade.setFilter({title:e}),this.albumFacade.load()}onPageChange({page:e,size:n}){let i={page:e,size:n};this.router.navigate([],{queryParams:i})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["devmx-album-admin-manage-albums"]],decls:10,vars:4,consts:[[1,"albums-card"],[1,"albums-card-header"],["mat-icon-button","",3,"click"],["name","filter"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","owner"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1&&(s(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),c(3,"Albuns"),r(),s(4,"div")(5,"button",2),f("click",function(){return i.openSelectUser()}),p(6,"devmx-icon",3),r(),s(7,"devmx-search-field",4),f("searchChange",function(m){return i.onSearchChange(m)}),r()()(),g(8,ui,14,5),O(9,"async"),r()),n&2){let o;l(7),u("debounce",1e3),l(),M((o=D(9,2,i.albumFacade.response$))?8:-1,o)}},dependencies:[se,R,B,bn,be,An,Cn,Mn,Sn,vn,xn,Pn,yn,wn,On,Dn,ye,Ce,Me,ve,xe,w,N],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .albums-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .albums-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .albums-card-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;align-items:baseline}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:3em}"],changeDetection:0})}return t})();function Vn(t){return T((a,e)=>{let n=new FileReader;n.onload=()=>{n.result instanceof ArrayBuffer&&a(n.result)},n.onerror=()=>{e(new Error("Falha ao ler ArrayBuffer"))},n.readAsArrayBuffer(t)})}function $n(t){return"0x"+parseInt(`${t}`).toString(16)}function zn(t){return T(a=>U(this,null,function*(){let e=t.slice(0,4),n=yield Vn(e),o=new DataView(n).getUint32(0,!1);switch(console.log($n(o)),o){case 2303741511:return a("image/png");case 1195984440:return a("image/gif");case 1380533830:return a("image/webp");case 1014199911:return a("image/svg+xml");case 4292411360:case 4292411361:case 4292411374:return a("image/jpeg");default:return a(null)}}))}var Oe=(()=>{class t{elRef=d(rt);get el(){return this.elRef.nativeElement}accept=at([]);enter=W();over=W();leave=W();files=W();onEnter(e){e instanceof DragEvent&&(e.preventDefault(),this.el.classList.add("drag-over"),this.enter.emit(e))}onOver(e){e instanceof DragEvent&&(e.preventDefault(),this.over.emit(e))}onLeave(e){e instanceof DragEvent&&(e.preventDefault(),this.el.classList.remove("drag-over"),this.leave.emit(e))}onDrop(e){return U(this,null,function*(){if(e instanceof DragEvent){e.preventDefault(),this.el.classList.remove("drag-over");let n=e.dataTransfer?.files;if(n&&n.length){let i=Array.from(n),o=[];for(let m of i){let x=yield zn(m);x&&this.accept().includes(x)&&o.push(m)}this.files.emit(o)}}})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ee({type:t,selectors:[["","devmxDropZone",""]],hostBindings:function(n,i){n&1&&f("dragenter",function(m){return i.onEnter(m)})("dragover",function(m){return i.onOver(m)})("dragleave",function(m){return i.onLeave(m)})("drop",function(m){return i.onDrop(m)})},inputs:{accept:[1,"accept"]},outputs:{enter:"enter",over:"over",leave:"leave",files:"files"}})}return t})();var Hn=(()=>{class t{transform(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(2)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=mt({name:"fileSize",type:t,pure:!0})}return t})();function Un(t){return T((a,e)=>{let n=new FileReader;n.onload=()=>{typeof n.result=="string"&&a(n.result)},n.onerror=i=>{i instanceof Error?e(i):e(new Error("Falha ao carregar imagem"))},n.readAsDataURL(t)})}function jn(t,a=1280){return T((e,n)=>{Un(t).then(Fn).then(i=>{let o=document.createElement("canvas");o.width=a;let m=a/i.width;o.height=i.height*m;let x=o.getContext("2d");if(!x)throw n(new Error("Context error"));x.drawImage(i,0,0,o.width,o.height);let H="image/webp";o.toBlob(E=>{if(E){let{width:X,height:K}=o,Ae=new File([E],t.name,{type:H});e(Object.assign(Ae,{width:X,height:K}))}},H)})})}var Qe=class extends me{constructor(a){super({id:new A("",{nonNullable:!0}),data:new A("",{nonNullable:!0}),width:new A(0,{nonNullable:!0}),height:new A(0,{nonNullable:!0}),type:new A("image/webp",{nonNullable:!0})}),a&&this.patchValue(a)}},De=class extends ce{constructor(){super([])}add(a){this.push(new Qe(a))}};var Ge=class extends ce{constructor(){super([])}add(a){this.push(new _n(a))}},Z=class extends me{constructor(){super({id:new A("",{nonNullable:!0}),title:new A(new Date().toLocaleDateString(),{nonNullable:!0,validators:[Et.required]}),contributors:new Ge,photos:new De})}get contributors(){return this.controls.contributors}patch(a){if(this.patchValue(a),a.contributors&&a.contributors.length>0)for(let e of a.contributors)this.contributors.add(e)}};var fi=(t,a)=>a.id,hi=()=>["image/jpeg","image/png","image/webp"];function gi(t,a){if(t&1){let e=v();s(0,"devmx-album-card",3)(1,"a",6),p(2,"devmx-icon",7),r(),s(3,"button",8),f("click",function(){let i=_(e).$implicit,o=h(2);return b(o.deleteAlbum(i))}),p(4,"devmx-icon",9),r()()}if(t&2){let e=a.$implicit;u("data",e),l(),u("routerLink",e.id)}}function _i(t,a){t&1&&(s(0,"div",4)(1,"h2"),c(2,"N\xE3o temos nada aqui..."),r(),s(3,"h3"),c(4," Siga nessa dire\xE7\xE3o "),p(5,"devmx-icon",10)(6,"br"),c(7," at\xE9 encontrar o bot\xE3o com um "),p(8,"devmx-icon",11)(9,"br"),c(10," e cadastre suas fotos. "),p(11,"devmx-icon",12),r()()),t&2&&(l(5),u("size",32),l(3),u("size",32),l(3),u("size",32))}function bi(t,a){if(t&1){let e=v();s(0,"div",2),f("files",function(i){_(e);let o=h();return b(o.onDropFiles(i))}),S(1,gi,5,2,"devmx-album-card",3,fi),r(),g(3,_i,12,3,"div",4),s(4,"footer")(5,"devmx-paginator",5),f("pageChange",function(i){_(e);let o=h();return b(o.onPageChange(i))}),r()()}if(t&2){let e=a;u("accept",ae(4,hi)),l(),P(e.data),l(2),M(e.items?-1:3),l(2),u("size",10)("items",e.items)}}var Nn=(()=>{class t{router=d(re);route=d(q);dialogFacade=d(we);authFacade=d(rn);albumFacade=d(I);constructor(){let e=this.authFacade.auth$.pipe(L(i=>!!i),Y(({id:i})=>i)),n=this.route.queryParams.pipe(Y(({page:i,size:o,title:m})=>({page:i,size:o,title:m})));j([e,n]).pipe(_e()).subscribe(this.onQueryParams)}onQueryParams=([e,n])=>{let{page:i,size:o,title:m}=n,x={title:m,owner:e};this.albumFacade.setParams({page:i,size:o,filter:x}),this.albumFacade.load()};onDropFiles(e){console.log(e)}createAlbum(){let e=new Z;e.patchValue({title:new Date().toLocaleDateString()}),this.albumFacade.create(e.getRawValue()).pipe(y(1)).subscribe(i=>{this.router.navigate([i.id],{relativeTo:this.route})})}deleteAlbum({id:e,title:n}){this.dialogFacade.confirm(`Confirme que deseja apagar a vaga ${n}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(i=>{i&&this.albumFacade.delete(e)})}onPageChange({page:e,size:n}){let i={page:e,size:n};this.router.navigate([],{queryParams:i})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["devmx-admin-my-albums"]],decls:4,vars:3,consts:[["mat-fab","",1,"top","right","tertiary-fab",3,"click"],["name","plus"],["devmxDropZone","",1,"albums-container","drag-area",3,"files","accept"],[3,"data"],[1,"no-albums-yet"],[3,"pageChange","size","items"],["mat-icon-button","","matTooltip","Editar album","matTooltipPosition","above",3,"routerLink"],["name","software/edit"],["type","button","mat-icon-button","","matTooltip","Apagar album","matTooltipPosition","after",3,"click"],["name","trash-alt"],["color","#3BCE53","name","arrow/up-right",3,"size"],["color","#3BCE53","name","plus",3,"size"],["color","#3BCE53","name","emoji/smirking-alt",3,"size"]],template:function(n,i){if(n&1&&(s(0,"button",0),f("click",function(){return i.createAlbum()}),p(1,"devmx-icon",1),r(),g(2,bi,6,5),O(3,"async")),n&2){let o;l(2),M((o=D(3,1,i.albumFacade.response$))?2:-1,o)}},dependencies:[se,xt,R,Nt,B,jt,nn,tn,be,dn,Oe,w,N],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:space-between}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:flex;flex-flow:row wrap;justify-content:flex-start;grid-template-columns:repeat(2,1fr)}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;max-width:50%}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .no-albums-yet[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] .no-albums-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .no-albums-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;white-space:normal}[_nghost-%COMP%] .no-albums-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:160%}[_nghost-%COMP%] .no-albums-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:120%;text-align:end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}@media (min-width: 1920px){[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;max-width:33%}}@media (max-width: 767px){[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%]{align-content:flex-start;grid-template-columns:1fr}[_nghost-%COMP%] .albums-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline-flex;min-width:100%}}[_nghost-%COMP%] .add-button[_ngcontent-%COMP%]{position:fixed;right:4em;top:2em}"],changeDetection:0})}return t})();var xi=(t,a)=>a.photo.name;function Mi(t,a){if(t&1&&(s(0,"mat-list-item")(1,"span",2),c(2),O(3,"fileSize"),r(),s(4,"span",3),c(5),r(),p(6,"mat-progress-bar",4),r()),t&2){let e=a.$implicit;l(2),$(" ",D(3,3,e.photo.size)," "),l(3),$(" ",e.progress(),"% "),l(),u("value",e.progress())}}function vi(t,a){t&1&&c(0," Preparando imagens ")}function yi(t,a){t&1&&c(0," Enviando imagens ")}function wi(t,a){if(t&1&&(s(0,"mat-list-item")(1,"span",2),g(2,vi,1,0)(3,yi,1,0),r(),s(4,"span",3),c(5),r(),p(6,"mat-progress-bar",4),r()),t&2){let e=a;l(2),M(e<100?2:3),l(3),$(" ",e,"% "),l(),u("value",e)}}var qn=(()=>{class t{queue=V([]);opened=V(!1);resizing=V(0);total=gt(()=>this.queue().length);completed=V(0);constructor(){_t(()=>{let{length:e}=this.queue().filter(({progress:n})=>n()>=90);this.completed.set(e)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["devmx-upload-queue"]],exportAs:["devmxUploadQueue"],decls:12,vars:5,consts:[[3,"expanded","hideToggle"],["name","arrow/chevron-down"],["matListItemTitle",""],["matListItemMeta",""],["mode","determinate",3,"value"]],template:function(n,i){if(n&1&&(s(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3," Enviando "),r(),s(4,"mat-panel-description"),c(5),p(6,"devmx-icon",1),r()(),s(7,"section")(8,"mat-list"),S(9,Mi,7,5,"mat-list-item",null,xi),g(11,wi,7,3,"mat-list-item"),r()()()),n&2){let o;u("expanded",i.opened())("hideToggle",!0),l(5),oe(" ",i.completed()," de ",i.total()," "),l(4),P(i.queue()),l(2),M((o=i.resizing())?11:-1,o)}},dependencies:[Ut,Ht,Yt,Gt,Zt,Kt,Xt,he,ue,fe,de,pe,w,Hn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:18em;position:fixed;bottom:64px;right:12px}[_nghost-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}[_nghost-%COMP%] .mat-expansion-panel-content .mat-expansion-panel-body{padding:0}[_nghost-%COMP%] section[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;max-height:80vh;overflow:auto}"],changeDetection:0})}return t})();var Si=(t,a)=>a.value;function Pi(t,a){if(t&1){let e=v();s(0,"mat-list-item"),p(1,"devmx-icon",6),s(2,"span",7),c(3),r(),s(4,"button",8),f("click",function(){let i=_(e).$index,o=h();return b(o.form.contributors.removeAt(i))}),p(5,"devmx-icon",9),r()()}if(t&2){let e=a.$implicit;l(3),k(e.value.displayName)}}var Qn=(()=>{class t extends Tn{form=new Z;cdr=d(ht);selectUser=d(Se);ngOnInit(){this.data&&this.form.patch(this.data)}selectContributors(){this.selectUser.open({multiple:!0}).pipe(y(1)).subscribe(n=>{if(n){for(let i of n)this.form.contributors.add(i);this.cdr.detectChanges()}})}onSubmit(){if(this.form.valid){let e=this.form.getRawValue();return console.log(e),this.close(e)}return this.form.markAllAsTouched()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=it(t)))(i||t)}})();static \u0275cmp=C({type:t,selectors:[["devmx-album-details"]],features:[ft([Pe()]),te],decls:19,vars:1,consts:[[3,"submit","formGroup"],["matInput","","formControlName","title"],["formArrayName","contributors"],["mat-subheader",""],["type","button","mat-button","",3,"click"],["mat-flat-button",""],["matListItemIcon","","name","user-circle"],["matListItemTitle",""],["type","button","mat-icon-button","","matListItemMeta","",3,"click"],["name","trash"]],template:function(n,i){n&1&&(s(0,"form",0),f("submit",function(){return i.onSubmit()}),s(1,"mat-form-field")(2,"mat-label"),c(3,"T\xEDtulo do album"),r(),p(4,"input",1),s(5,"mat-error"),c(6,"Obrigat\xF3rio"),r()(),s(7,"mat-list",2)(8,"p",3),c(9,"Contribuidores"),r(),S(10,Pi,6,1,"mat-list-item",null,Si),r(),s(12,"button",4),f("click",function(){return i.selectContributors()}),c(13," Permitir contribui\xE7\xE3o de outras pessoas "),r(),s(14,"footer")(15,"button",5),c(16,"Salvar"),r(),s(17,"button",4),f("click",function(){return i.close()}),c(18,"Fechar"),r()()()),n&2&&(u("formGroup",i.form),l(10),P(i.form.contributors.controls))},dependencies:[kn,Vt,Bt,Ft,kt,Tt,Rt,Lt,It,Ot,Pt,wt,St,R,ge,B,ln,sn,he,ue,fe,$t,zt,de,pe,w],styles:["[_nghost-%COMP%]{display:flex;padding:1.5em 1em .5em;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex:1;gap:1em;display:flex;flex-direction:column}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{margin-top:1em;display:flex;flex-direction:row-reverse;justify-content:space-between}"],changeDetection:0})}return t})();var Gn=(t,a)=>a.id,Oi=()=>["image/jpeg","image/png","image/webp","image/svg+xml"];function Di(t,a){if(t&1){let e=v();s(0,"figure"),p(1,"img",9),s(2,"figcaption"),c(3),r(),s(4,"mat-checkbox",10),f("change",function(i){let o=_(e).$implicit,m=h(2);return b(i?m.selection.toggle(o.id):null)}),r()()}if(t&2){let e=a.$implicit,n=h(2);l(),u("src",e.data,st)("alt",e.caption),l(2),k(e.caption),l(),u("checked",n.selection.isSelected(e.id))}}function Ai(t,a){if(t&1&&(s(0,"strong"),c(1),r()),t&2){let e=a.$implicit,n=a.$index,i=a.$count;l(),oe("",e.displayName,"",n===i-1?"":", ","")}}function Fi(t,a){if(t&1&&(s(0,"mat-card-content"),S(1,Ai,2,2,"strong",null,Gn),c(3," tem permiss\xE3o para contribuir neste album. "),r()),t&2){let e=h();l(),P(e.contributors)}}function Ei(t,a){if(t&1){let e=v();s(0,"mat-card",1)(1,"mat-card-header",2)(2,"mat-card-title"),c(3),r(),s(4,"mat-card-subtitle"),c(5),O(6,"date"),r(),s(7,"button",3),f("click",function(){let i=_(e),o=h();return b(o.editAlbum(i))}),p(8,"devmx-icon",4),r()(),s(9,"mat-card-actions",5)(10,"mat-checkbox",6),f("change",function(i){let o=_(e),m=h();return b(i?m.toggleAll(o.photos,m.selection.selected):null)}),r(),s(11,"button",7),f("click",function(){let i=_(e),o=h();return b(o.deleteSelection(o.selection.selected,i.id))}),c(12),r()(),s(13,"mat-card-content",8),f("files",function(i){let o=_(e),m=ut(18),x=h();return b(x.onDrop(o.id,i,m))}),S(14,Di,5,4,"figure",null,Gn),r(),g(16,Fi,4,0,"mat-card-content"),r(),p(17,"devmx-upload-queue",null,0)}if(t&2){let e=a,n=h();l(3),k(e.title),l(2),$(" Criado dia ",D(6,8,e.createdAt)," "),l(5),u("indeterminate",n.selection.hasValue()&&!n.isAllSelected(e.photos,n.selection.selected))("checked",n.selection.hasValue()&&n.isAllSelected(e.photos,n.selection.selected)),l(),u("disabled",n.selection.selected.length===0),l(),$(" Remover ",n.selection.selected.length," foto(s) "),l(),u("accept",ae(10,Oi)),l(),P(e.photos),l(2),M(e.contributors&&e.contributors.length>0?16:-1)}}var Zn=(()=>{class t{route=d(q);albumFacade=d(I);photoFacade=d(Wt);sheetFacade=d(G);selection=new At(!0);onDrop(e,n,i){return U(this,null,function*(){let o=n.length*2,m=0;i.opened.set(!0);for(let E of n){m+=1,i.resizing.set(le(m,o));let X=V(0),K=yield jn(E,640);i.queue.set([...i.queue(),{photo:K,progress:X}]),m+=1,i.resizing.set(le(m,o))}let x=0,H=({photo:E,progress:X})=>{let K=({loaded:Yn,total:Wn,type:Ze})=>{Ze===Ee.UploadProgress&&X.set(le(Yn,Wn??E.size)),Ze===Ee.Response&&(x+=1,x>=i.total()&&this.albumFacade.loadOne(e))},{width:Ae,height:Xn}=E,Kn={album:e,width:Ae,height:Xn,photo:E};return this.photoFacade.upload(Kn).pipe(et(K))};Ye(i.queue()).pipe(Je(H)).subscribe()})}isAllSelected(e,n){return n.length===e.length}toggleAll(e,n){if(this.isAllSelected(e,n))return this.selection.clear();this.selection.select(...e.map(({id:i})=>i))}deleteSelection(e,n){j(e.map(i=>(this.selection.deselect(i),this.photoFacade.delete(i)))).subscribe(()=>this.albumFacade.loadOne(n))}editAlbum(e){this.sheetFacade.open(Qn,e).pipe(y(1)).subscribe(i=>{i&&this.albumFacade.update(i)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=C({type:t,selectors:[["devmx-admin-album"]],decls:2,vars:3,consts:[["uploadQueue","devmxUploadQueue"],[1,"album-card"],[1,"album-card-header"],["mat-icon-button","",3,"click"],["name","software/edit"],[1,"album-card-actions"],[1,"photo-checkbox",3,"change","indeterminate","checked"],["color","warn","type","button","mat-flat-button","",3,"click","disabled"],["devmxDropZone","",1,"album-card-content","drag-area",3,"files","accept"],[3,"src","alt"],[1,"photo-checkbox",3,"change","checked"]],template:function(n,i){if(n&1&&(g(0,Ei,19,11),O(1,"async")),n&2){let o;M((o=D(1,1,i.albumFacade.selected$))?0:-1,o)}},dependencies:[qn,Oe,cn,mn,R,ge,B,ye,Ce,Me,on,ve,an,xe,w,N,bt],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .album-card[_ngcontent-%COMP%]{gap:1em}[_nghost-%COMP%] .album-card-header[_ngcontent-%COMP%]{justify-content:space-between}[_nghost-%COMP%] .album-card-header[_ngcontent-%COMP%] .mat-mdc-card-header-text{flex:1;justify-self:flex-start}[_nghost-%COMP%] .album-card-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%]{gap:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%]{margin:0;box-sizing:border-box;border-radius:.4em;position:relative;overflow:hidden;background-color:#0000000a}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;display:flex;object-fit:cover;height:24em}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]{display:flex;width:100%;padding:.4em;position:absolute;bottom:0;background-color:#0006;color:#fff9;z-index:100}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]:empty{display:none}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] .photo-checkbox[_ngcontent-%COMP%]{background-color:#fff;position:absolute;border-radius:50%;opacity:0;right:1em;top:-2em;transition:top .25s ease-in-out,opacity .25s ease-in-out}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%]:hover .photo-checkbox[_ngcontent-%COMP%]{opacity:1;top:1em}[_nghost-%COMP%] .album-card-content[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] .photo-checkbox.mat-mdc-checkbox-checked[_ngcontent-%COMP%]{opacity:1;top:1em}[_nghost-%COMP%] .album-card-content.drag-area[_ngcontent-%COMP%]{min-height:32em;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);transition:background-image .6s ease-in-out}[_nghost-%COMP%] .album-card-content.drag-area.drag-over[_ngcontent-%COMP%]{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fff6;background-image:url(/figures/drop-photos.svg);background-position:center center;background-repeat:no-repeat}"],changeDetection:0})}return t})();var Vr=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},providers:Rn,component:En,children:[{path:"meus-albuns/:id",data:{breadcrumb:t=>t.album.title},title:"Meu album",resolve:{album:In},component:Zn},{path:"meus-albuns",data:{breadcrumb:"Meus albuns"},title:"Meus albuns",component:Nn},{path:"gerenciar-albuns",data:{breadcrumb:"Gerenciar albuns"},title:"Gerenciar albuns",canActivate:[pn("director","manager","staff")],component:Ln},{path:"",pathMatch:"prefix",redirectTo:"meus-albuns"}]}];export{En as AlbumFeatureAdminComponent,Vr as albumFeatureAdminRoutes}; diff --git a/chunk-PVFLBKFE.js b/chunk-SVV7FRLS.js similarity index 95% rename from chunk-PVFLBKFE.js rename to chunk-SVV7FRLS.js index f763328a..788ebe36 100644 --- a/chunk-PVFLBKFE.js +++ b/chunk-SVV7FRLS.js @@ -1 +1 @@ -import{a as Ue}from"./chunk-XUKBPA5N.js";import{a as je}from"./chunk-JQW63IXS.js";import{a as me,b as ue,c as de,f as pe,g as fe}from"./chunk-ZQOXWN4S.js";import{a as it,b as Ft}from"./chunk-WRHYPK6F.js";import{d as wt,e as Ee}from"./chunk-66MLPMX6.js";import{a as Pe,b as ye}from"./chunk-JCCZXGKN.js";import{a as Dt,b as Ie}from"./chunk-CXAKQAL3.js";import{a as Oe,b as Se}from"./chunk-AFH22WZE.js";import{a as Te,b as Ve,c as Ae,d as Re,e as $e,f as Ne,g as Le,h as ze,i as Be,j as Ge,k as qe}from"./chunk-HPJEYRZM.js";import{a as yt,b as Fe}from"./chunk-YJNMZPRM.js";import{a as ke}from"./chunk-VE4FGS76.js";import{d as X,e as Y}from"./chunk-LFAX4DK3.js";import{a as we}from"./chunk-AD4TXQD3.js";import{a as Z,b as De,c as tt,e as et,f as nt,g as ot}from"./chunk-JX4IWPKV.js";import"./chunk-XC6WES62.js";import{a as $,b as L,c as xt,e as _e}from"./chunk-MWZTEPOQ.js";import{a as ge}from"./chunk-HYAMKYUE.js";import{a as Ce,b as Pt,c as I}from"./chunk-VYHC3V3G.js";import"./chunk-3I45H2NO.js";import"./chunk-R66KDUEB.js";import"./chunk-2E7FYHXW.js";import"./chunk-BJXILAOS.js";import{a as ve}from"./chunk-AC7KYN3P.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import"./chunk-XIUDFJWJ.js";import{a as xe}from"./chunk-TZR6QHL3.js";import{a as k}from"./chunk-A3N3AUUJ.js";import{B as R,F as ce,G as K,H as le,I as P,s as Wt}from"./chunk-4FWBEGAE.js";import{b as Ut,c as Ht,d as Qt,i as q,j as U}from"./chunk-2K6IALUF.js";import{g as G,h as Gt,i as Ct,j as qt,p as ht}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import{a as oe,c as ie,f as re,g as ae,h as W,i as se,k as J,l as j}from"./chunk-PAP2P7QR.js";import{a as vt,b as he,c as Me,e as Ot,f as be,i as St}from"./chunk-EC6LD5KM.js";import{a as D,c as H,e as E,h as Q,i as Jt,j as V,l as C,m as Kt,n as Xt,o as Mt,p as Yt,q as Zt,r as te,s as ee,t as ne,w as bt,x as A}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$ as N,$b as O,F as Lt,Fb as zt,J as pt,Jc as y,Kc as w,L as ft,Nb as h,Sc as Bt,Tb as m,Yb as x,ac as S,bc as a,cc as r,dc as d,ec as _t,fc as gt,hc as M,j as at,je as F,k as ut,ka as u,kc as p,lb as c,mc as f,t as st,ta as _,u as dt,ua as g,ub as b,wc as z,xc as l,yc as B,zc as T}from"./chunk-TEKHUYWQ.js";var He=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-academy-feature-admin"]],decls:1,vars:0,template:function(e,i){e&1&&d(0,"router-outlet")},dependencies:[Gt],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return n})();var sn=(n,o)=>o.id;function cn(n,o){if(n&1&&(a(0,"mat-list-option",7),l(1),r()),n&2){let t=o.$implicit;m("value",t),c(),T(" ",t.name," ")}}function ln(n,o){if(n&1){let t=M();a(0,"mat-dialog-content",2)(1,"mat-form-field"),d(2,"input",3),r(),a(3,"button",4),p("click",function(){_(t);let i=f();return g(i.addInstitution())}),d(4,"devmx-icon",5),a(5,"span"),l(6,"Adicionar institui\xE7\xE3o"),r()(),a(7,"mat-selection-list",6,0),O(9,cn,2,2,"mat-list-option",7,sn),r(),a(11,"devmx-paginator",8),p("pageChange",function(i){_(t);let s=f();return g(s.onPageChange(i))}),r()(),a(12,"mat-dialog-actions",9)(13,"button",10),p("click",function(){_(t);let i=z(8),s=f();return g(s.close(i.selectedOptions.selected[0]))}),l(14," Salvar "),r(),a(15,"button",11),p("click",function(){_(t);let i=f();return g(i.ref.close())}),l(16,"Cancelar"),r()()}if(n&2){let t=o,e=f();c(2),m("formControl",e.search),c(2),m("size",18),c(3),m("multiple",!1),c(2),S(t.data),c(2),m("items",t.items)}}var Ke=(()=>{class n{institutionFacade=u(L);ref=u(Z);search=new C("");#t=new ut(!1);addInstitution$=this.#t.asObservable();constructor(){this.search.valueChanges.pipe(pt(300)).pipe(k()).subscribe(t=>{let e=t||"";this.institutionFacade.setFilter({name:e}),this.institutionFacade.load()}),this.institutionFacade.load()}addInstitution(){this.#t.value===!0&&this.#t.next(!1),this.#t.next(!0)}close(t){this.ref.close(t.value)}onPageChange({page:t,size:e}){this.institutionFacade.setParams({page:t,size:e}),this.institutionFacade.load()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-admin-search-institution"]],decls:4,vars:3,consts:[["institutions",""],["mat-dialog-title",""],[1,"dialog-content"],["matInput","","placeholder","Qual institui\xE7\xE3o procura?",3,"formControl"],["type","button","mat-button","",1,"add-institution",3,"click"],["name","plus",3,"size"],[1,"institutions",3,"multiple"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(e,i){if(e&1&&(a(0,"h2",1),l(1,"Encontre institui\xE7\xF5es"),r(),h(2,ln,17,4),y(3,"async")),e&2){let s;c(2),x((s=w(3,1,i.institutionFacade.response$))?2:-1,s)}},dependencies:[A,H,Q,Mt,U,q,I,et,nt,ot,P,R,Y,X,D,j,J,W,F],styles:["[_nghost-%COMP%]{display:block;width:24em}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .institutions[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .add-institution[_ngcontent-%COMP%]{align-self:flex-end}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return n})();var mn=(n,o)=>o.id;function un(n,o){if(n&1&&(a(0,"mat-list-option",7),l(1),r()),n&2){let t=o.$implicit;m("value",t),c(),T(" ",t.name," ")}}function dn(n,o){if(n&1){let t=M();a(0,"mat-dialog-content",2)(1,"mat-form-field"),d(2,"input",3),r(),a(3,"button",4),p("click",function(){_(t);let i=f();return g(i.addSubject())}),d(4,"devmx-icon",5),a(5,"span"),l(6,"Adicionar assunto"),r()(),a(7,"mat-selection-list",6,0),O(9,un,2,2,"mat-list-option",7,mn),r(),a(11,"devmx-paginator",8),p("pageChange",function(i){_(t);let s=f();return g(s.onPageChange(i))}),r()(),a(12,"mat-dialog-actions",9)(13,"button",10),p("click",function(){_(t);let i=z(8),s=f();return g(s.close(i.selectedOptions.selected))}),l(14," Salvar "),r(),a(15,"button",11),p("click",function(){_(t);let i=f();return g(i.ref.close())}),l(16,"Cancelar"),r()()}if(n&2){let t=o,e=f();c(2),m("formControl",e.search),c(2),m("size",18),c(5),S(t.data),c(2),m("items",t.items)}}var Xe=(()=>{class n{subjectFacade=u(xt);ref=u(Z);search=new C("");#t=new ut(!1);addSubject$=this.#t.asObservable();constructor(){this.search.valueChanges.pipe(pt(300)).pipe(k()).subscribe(t=>{let e=t||"";this.subjectFacade.setFilter({name:e}),this.subjectFacade.load()}),this.subjectFacade.load()}addSubject(){this.#t.value===!0&&this.#t.next(!1),this.#t.next(!0)}close(t){this.ref.close(t.map(e=>e.value))}onPageChange({page:t,size:e}){this.subjectFacade.setParams({page:t,size:e})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-admin-search-subjects"]],decls:4,vars:3,consts:[["subjects",""],["mat-dialog-title",""],[1,"dialog-content"],["matInput","","placeholder","Qual assunto procura?",3,"formControl"],["type","button","mat-button","",1,"add-subject",3,"click"],["name","plus",3,"size"],[1,"subjects"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(e,i){if(e&1&&(a(0,"h2",1),l(1,"Encontre assuntos"),r(),h(2,dn,17,3),y(3,"async")),e&2){let s;c(2),x((s=w(3,1,i.subjectFacade.response$))?2:-1,s)}},dependencies:[A,H,Q,Mt,U,q,I,et,nt,ot,P,R,Y,X,D,j,J,W,F],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .subjects[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .add-subject[_ngcontent-%COMP%]{align-self:flex-end}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return n})();var lt=class{dialog;formService;constructor(o,t){this.dialog=o,this.formService=t}openInstitution(o=null){let t={id:it({label:"ID",type:"hidden",value:o&&o.id?o.id:""}),name:it({label:"Nome",type:"text",value:o&&o.name?o.name:"",errors:{required:"Obrigat\xF3rio"}})},e=Ft(t),i=(o?"Editar":"Cadastrar")+" institui\xE7\xE3o";return this.formService.open({title:i,fields:t,form:e})}searchInstitution(){return this.dialog.open(Ke)}};function Ye(){return{provide:lt,deps:[tt,wt]}}var mt=class{dialog;formService;constructor(o,t){this.dialog=o,this.formService=t}openSubject(o=null){let t={id:it({label:"ID",type:"hidden",value:o&&o.id?o.id:""}),name:it({label:"Assunto",type:"text",value:o&&o.name?o.name:"",errors:{required:"Obrigat\xF3rio"}})},e=Ft(t),i=(o?"Editar":"Cadastrar")+" assunto";return this.formService.open({title:i,fields:t,form:e})}searchSubjects(){return this.dialog.open(Xe)}};function Ze(){return{provide:mt,deps:[tt,wt]}}var pn=(n,o)=>o.id;function fn(n,o){if(n&1&&(a(0,"mat-list-option",4),l(1),r()),n&2){let t=o.$implicit;m("value",t),c(),T(" ",t.name," ")}}function _n(n,o){if(n&1){let t=M();a(0,"mat-dialog-content",2)(1,"mat-selection-list",3,0),O(3,fn,2,2,"mat-list-option",4,pn),r(),a(5,"devmx-paginator",5),p("pageChange",function(i){_(t);let s=f();return g(s.onPageChange(i))}),r()(),a(6,"mat-dialog-actions",6)(7,"button",7),p("click",function(){_(t);let i=z(2),s=f();return g(s.close(i.selectedOptions.selected))}),l(8," Selecionar "),r(),a(9,"button",8),p("click",function(){_(t);let i=f();return g(i.ref.close())}),l(10,"Cancelar"),r()()}if(n&2){let t=o,e=f();c(),m("multiple",e.data.multiple),c(2),S(t.data),c(2),m("items",t.items)}}var tn=(()=>{class n{institutionFacade=u(L);ref=u(Z);data=u(De);constructor(){this.institutionFacade.load()}onSearchChange(t){this.institutionFacade.setFilter(t),this.institutionFacade.load()}onPageChange({page:t,size:e}){this.institutionFacade.setParams({page:t,size:e}),this.institutionFacade.load()}close(t){this.data.multiple?this.ref.close(t.map(e=>e.value)):this.ref.close(t[0].value)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-select-institution"]],decls:4,vars:3,consts:[["institution",""],["mat-dialog-title",""],[1,"dialog-content"],[1,"institutions",3,"multiple"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(e,i){if(e&1&&(a(0,"h2",1),l(1,"Encontre institui\xE7\xF5es"),r(),h(2,_n,11,2),y(3,"async")),e&2){let s;c(2),x((s=w(3,1,i.institutionFacade.response$))?2:-1,s)}},dependencies:[A,I,et,nt,ot,P,R,j,J,W,F],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .institutions[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return n})();var Et=class{dialog;constructor(o){this.dialog=o}open(o={}){return this.dialog.open(tn,{data:o}).afterClosed().pipe(ft(1))}};function en(){return{provide:Et,deps:[tt]}}var nn=[en(),Ye(),Ie(),Ze(),Ee(),Fe()];var on=n=>_e(u($),n.params);function Cn(n,o){n&1&&(a(0,"th",15),l(1,"Nome do curso"),r())}function hn(n,o){if(n&1&&(a(0,"td",16),l(1),r()),n&2){let t=o.$implicit;c(),B(t.name)}}function Mn(n,o){n&1&&(a(0,"th",15),l(1,"Criado por"),r())}function bn(n,o){if(n&1&&(a(0,"td",16),l(1),r()),n&2){let t=o.$implicit;c(),B(t.owner.displayName)}}function xn(n,o){n&1&&d(0,"th",15)}function Pn(n,o){if(n&1){let t=M();a(0,"td",16)(1,"button",17),p("click",function(){let i=_(t).$implicit,s=f(2);return g(s.openDelete(i))}),d(2,"devmx-icon",18),r()()}}function vn(n,o){n&1&&d(0,"tr",19)}function On(n,o){n&1&&d(0,"tr",20)}function Sn(n,o){if(n&1){let t=M();a(0,"table",5),_t(1,6),h(2,Cn,2,0,"th",7)(3,hn,2,1,"td",8),gt(),_t(4,9),h(5,Mn,2,0,"th",7)(6,bn,2,1,"td",8),gt(),_t(7,10),h(8,xn,1,0,"th",7)(9,Pn,3,0,"td",8),gt(),h(10,vn,1,0,"tr",11)(11,On,1,0,"tr",12),r(),a(12,"mat-card-actions",13)(13,"devmx-paginator",14),p("pageChange",function(i){_(t);let s=f();return g(s.onPageChange(i))}),r()()}if(n&2){let t=o,e=f();m("dataSource",t.data),c(10),m("matHeaderRowDef",e.columns),c(),m("matRowDefColumns",e.columns),c(2),m("size",10)("items",t.items)}}var rn=(()=>{class n{router=u(Ct);route=u(G);dialogFacade=u(yt);courseFacade=u($);selectUser=u(Dt);#t=Wt(null);columns=["name","owner","actions"];constructor(){let t=this.#t.observe().pipe(st(i=>i?i.id:"")),e=this.route.queryParams;dt([t,e]).pipe(k()).subscribe(this.onQueryParams)}onQueryParams=([t,e])=>{let{page:i=0,size:s=10}=e,v={name:"",owner:t};this.courseFacade.setParams({page:i,size:s,filter:v}),this.courseFacade.load()};openDelete({id:t,name:e}){this.dialogFacade.confirm(`Confirme que deseja apagar o curso ${e}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(i=>{i&&this.courseFacade.delete(t)})}openSelectUser(){this.selectUser.open({onlyRole:"academic",multiple:!1}).subscribe(t=>{t&&this.#t.update(t)})}onSearchChange(t=""){this.courseFacade.setFilter({name:t}),this.courseFacade.load()}onPageChange({page:t,size:e}){let i={page:t,size:e};this.router.navigate([],{queryParams:i})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-career-admin-manage-courses"]],decls:10,vars:4,consts:[[1,"courses-card"],[1,"courses-card-header"],["mat-icon-button","",3,"click"],["name","filter"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","owner"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(e,i){if(e&1&&(a(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),l(3,"Cursos"),r(),a(4,"div")(5,"button",2),p("click",function(){return i.openSelectUser()}),d(6,"devmx-icon",3),r(),a(7,"devmx-search-field",4),p("searchChange",function(v){return i.onSearchChange(v)}),r()()(),h(8,Sn,14,5),y(9,"async"),r()),e&2){let s;c(7),m("debounce",1e3),c(),x((s=w(9,2,i.courseFacade.response$))?8:-1,s)}},dependencies:[ht,P,K,ke,I,qe,Te,Ae,Le,Re,Ve,ze,$e,Ne,Be,Ge,St,vt,Ot,be,he,D,F],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .courses-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .courses-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .courses-card-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;align-items:baseline}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:3em}"],changeDetection:0})}return n})();var yn=(n,o)=>o.id;function wn(n,o){if(n&1){let t=M();a(0,"devmx-course-card",3)(1,"a",6),d(2,"devmx-icon",7),r(),a(3,"button",8),p("click",function(){let i=_(t).$implicit,s=f(2);return g(s.deleteCourse(i))}),d(4,"devmx-icon",9),r()()}if(n&2){let t=o.$implicit;m("data",t),c(),m("routerLink",t.id)}}function Fn(n,o){n&1&&(a(0,"div",4)(1,"h2"),l(2,"N\xE3o temos nada aqui..."),r(),a(3,"h3"),l(4," Siga nessa dire\xE7\xE3o "),d(5,"devmx-icon",10)(6,"br"),l(7," at\xE9 encontrar o bot\xE3o com um "),d(8,"devmx-icon",11)(9,"br"),l(10," e cadastre seus cursos. "),d(11,"devmx-icon",12),r()()),n&2&&(c(5),m("size",32),c(3),m("size",32),c(3),m("size",32))}function Dn(n,o){if(n&1){let t=M();a(0,"div",2),O(1,wn,5,2,"devmx-course-card",3,yn),r(),h(3,Fn,12,3,"div",4),a(4,"footer")(5,"devmx-paginator",5),p("pageChange",function(i){_(t);let s=f();return g(s.onPageChange(i))}),r()()}if(n&2){let t=o;c(),S(t.data),c(2),x(t.items?-1:3),c(2),m("size",10)("items",t.items)}}var an=(()=>{class n{router=u(Ct);route=u(G);dialogFacade=u(yt);authFacade=u(xe);courseFacade=u($);constructor(){let t=this.authFacade.auth$.pipe(Lt(i=>!!i),st(({id:i})=>i)),e=this.route.queryParams.pipe(st(({page:i,size:s,open:v=null,active:At=null})=>({page:i,size:s,open:v,active:At})));dt([t,e]).pipe(k()).subscribe(this.onQueryParams)}onQueryParams=([t,e])=>{let{page:i,size:s,name:v=""}=e,At={name:v,owner:t};this.courseFacade.setParams({page:i,size:s,filter:At}),this.courseFacade.load()};deleteCourse({id:t,name:e}){this.dialogFacade.confirm(`Confirme que deseja apagar o curso ${e}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(i=>{i&&this.courseFacade.delete(t)})}onPageChange({page:t,size:e}){let i={page:t,size:e};this.router.navigate([],{queryParams:i})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-academy-admin-my-courses"]],decls:4,vars:3,consts:[["mat-fab","","routerLink","novo",1,"add-button","tertiary-fab"],["name","plus"],[1,"courses-container"],[3,"data"],[1,"no-courses-yet"],[3,"pageChange","size","items"],["mat-icon-button","","matTooltip","Editar curso","matTooltipPosition","before",3,"routerLink"],["name","software/edit"],["type","button","mat-icon-button","","matTooltip","Apagar curso","matTooltipPosition","after",3,"click"],["name","trash-alt"],["color","#3BCE53","name","arrow/up-right",3,"size"],["color","#3BCE53","name","plus",3,"size"],["color","#3BCE53","name","emoji/smirking-alt",3,"size"]],template:function(e,i){if(e&1&&(a(0,"a",0),d(1,"devmx-icon",1),r(),h(2,Dn,6,3),y(3,"async")),e&2){let s;c(2),x((s=w(3,1,i.courseFacade.response$))?2:-1,s)}},dependencies:[ht,qt,j,P,le,K,ce,Pt,Ce,I,Ue,D,F],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:space-between}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:flex;flex-flow:row wrap;justify-content:flex-start;grid-template-columns:repeat(2,1fr)}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;max-width:50%}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .no-courses-yet[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] .no-courses-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .no-courses-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;white-space:normal}[_nghost-%COMP%] .no-courses-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:160%}[_nghost-%COMP%] .no-courses-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:120%;text-align:end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}@media (min-width: 1920px){[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;max-width:33%}}@media (max-width: 767px){[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{align-content:flex-start;grid-template-columns:1fr}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline-flex;min-width:100%}}[_nghost-%COMP%] .add-button[_ngcontent-%COMP%]{position:fixed;right:4em;top:2em}"],changeDetection:0})}return n})();var jt=class extends V{constructor(){super({id:new C("",{nonNullable:!0}),name:new C("",{nonNullable:!0,validators:[E.required]})})}};var $t=class extends V{constructor(o){super({subject:new jt,instructor:new C("",{nonNullable:!0}),hours:new C(0,{nonNullable:!0,validators:[E.min(0)]})}),o&&this.patchValue(o)}get subject(){return this.controls.subject}},kt=class extends bt{constructor(){super([],{validators:[E.required]})}add(o){this.push(new $t(o))}childrenErrors=zt([]);updateErrors(){let o=this.controls.map(t=>t.errors);this.childrenErrors.set(o)}};var It=class extends bt{constructor(){super([])}add(o){this.push(new je(o))}};var Tt=class extends V{constructor(){super({id:new C("",{nonNullable:!0}),name:new C("",{nonNullable:!0,validators:[E.required]})})}patch(o){this.patchValue(o)}};var Vt=class extends V{constructor(){super({id:new C("",{nonNullable:!0}),name:new C("",{nonNullable:!0,validators:[E.required]}),institution:new Tt,subjects:new kt,goal:new C("",{nonNullable:!0,validators:[E.required]}),ead:new C(!1,{nonNullable:!0}),details:new C,link:new C,contributors:new It})}get institution(){return this.controls.institution}get contributors(){return this.controls.contributors}get subjects(){return this.controls.subjects}patch(o){if(this.patchValue(o),o.subjects){this.subjects.clear();for(let t of o.subjects)this.subjects.add(t)}if(o.contributors){this.contributors.clear();for(let t of o.contributors)this.contributors.add(t)}}};var En=(n,o)=>o.value,jn=(n,o)=>o.value.id;function kn(n,o){if(n&1){let t=M();a(0,"mat-form-field")(1,"mat-label"),l(2,"Professor"),r(),d(3,"input",22),r(),a(4,"mat-form-field")(5,"mat-label"),l(6,"Carga hor\xE1ria"),r(),d(7,"input",23),r(),a(8,"footer",24)(9,"button",7),p("click",function(){_(t);let i=f().$index,s=f();return g(s.form.subjects.removeAt(i))}),d(10,"devmx-icon",25),r()()}}function In(n,o){if(n&1&&(a(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header"),l(2),r(),h(3,kn,11,0,"ng-template",21),r()),n&2){let t=o.$implicit,e=o.$index;m("formGroupName",e),c(2),T(" ",t.subject.value.name," ")}}function Tn(n,o){n&1&&(a(0,"mat-error"),l(1,"Selecione ou cadastre ao menos uma assunto"),r())}function Vn(n,o){if(n&1){let t=M();a(0,"mat-list-item")(1,"span",26),l(2),r(),a(3,"button",27),p("click",function(){let i=_(t).$index,s=f();return g(s.form.contributors.removeAt(i))}),d(4,"devmx-icon",25),r()()}if(n&2){let t=o.$implicit;c(2),B(t.value.name)}}function An(n,o){if(n&1&&(a(0,"mat-list-item")(1,"span",26),l(2),r()()),n&2){let t=f();c(2),B(t.form.institution.value.name)}}var Nt=(()=>{class n{route=u(G);cdr=u(Bt);subjectFacade=u(xt);institutionFacade=u(L);institutionDialog=u(lt);subjectDialog=u(mt);selectAccount=u(Dt);courseFacade=u($);messageService=u(ge);form=new Vt;#t={openSubject:new at,searchSubject:new at,openInstitution:new at,searchInstitution:new at};constructor(){this.route.data.pipe(k()).subscribe(({course:t})=>{t&&t.id&&this.form.patch(t)})}openSelectContributor(){this.selectAccount.open({onlyRole:"academic",multiple:!0}).pipe(ft(1)).subscribe(t=>{if(t&&t.length)for(let e of t)this.form.contributors.add(e);this.cdr.detectChanges()})}openInstitution(t=null){return this.institutionDialog.openInstitution(t).afterClosed().pipe(N(this.#t.openInstitution)).subscribe(e=>{e&&(e.id?this.institutionFacade.update(e):this.institutionFacade.create(e))})}openSearchInstitution(){let t=this.institutionDialog.searchInstitution();t.componentInstance.addInstitution$.pipe(N(this.#t.searchInstitution)).subscribe(e=>{e&&this.openInstitution()}),t.afterClosed().pipe(N(this.#t.searchInstitution)).subscribe(e=>{e&&this.form.patchValue({institution:e}),this.#t.openInstitution.next(),this.#t.openInstitution.complete(),this.#t.searchInstitution.next(),this.#t.searchInstitution.complete()})}openSubject(t=null){return this.subjectDialog.openSubject(t).afterClosed().pipe(N(this.#t.openSubject)).subscribe(e=>{e&&(e.id?this.subjectFacade.update(e):this.subjectFacade.create(e))})}openSearchSubjects(){let t=this.subjectDialog.searchSubjects();t.componentInstance.addSubject$.pipe(N(this.#t.searchSubject)).subscribe(e=>{e&&this.openSubject(),console.log(e)}),t.afterClosed().pipe(N(this.#t.searchSubject)).subscribe(e=>{if(e&&e.length){for(let i of e){let s={hours:0,instructor:"",subject:i};this.form.subjects.add(s)}this.cdr.detectChanges()}this.#t.openSubject.next(),this.#t.openSubject.complete(),this.#t.searchSubject.next(),this.#t.searchSubject.complete()})}onSubmit(){if(this.form.valid){let t=this.form.getRawValue();return t.id?this.courseFacade.update(t):this.courseFacade.create(t),this.messageService.open({message:"Armazenando informa\xE7\xF5es"})}return this.form.markAllAsTouched()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-academy-admin-course"]],decls:55,vars:8,consts:[[3,"submit","formGroup"],[1,"course"],[1,"course-content"],["matInput","","formControlName","name","autofocus",""],["formControlName","ead"],[1,"course-subjects"],["mat-subheader",""],["type","button","mat-icon-button","",3,"click"],["name","plus"],["formArrayName","subjects"],[3,"formGroupName"],[1,"course-contributors"],["formArrayName","contributors",1,"contributors"],[1,"course-institution"],["name","software/edit"],["label","Objetivo","hint","Compat\xEDvel com markdown do Github","formControlName","goal",3,"minRows"],[3,"content"],["label","Detalhes","hint","Compat\xEDvel com markdown do Github","formControlName","details",3,"minRows"],["matInput","","formControlName","link"],["align","end",1,"course-actions"],["mat-flat-button","",3,"disabled"],["matExpansionPanelContent",""],["matInput","","formControlName","instructor"],["matInput","","type","number","formControlName","hours","min","0"],[1,"course-subjects-action"],["name","trash"],["matListItemTitle",""],["type","button","mat-icon-button","","matListItemMeta","",3,"click"]],template:function(e,i){if(e&1&&(a(0,"form",0),p("submit",function(){return i.onSubmit()}),a(1,"mat-card",1)(2,"mat-card-content",2)(3,"section")(4,"mat-form-field")(5,"mat-label"),l(6,"Nome do curso"),r(),d(7,"input",3),a(8,"mat-error"),l(9,"Obrigat\xF3rio"),r()(),a(10,"mat-checkbox",4),l(11,"Ensino a dist\xE2ncia"),r(),a(12,"div",5)(13,"header")(14,"h3",6),l(15,"Disciplinas"),r(),a(16,"button",7),p("click",function(){return i.openSearchSubjects()}),d(17,"devmx-icon",8),r()(),a(18,"mat-accordion",9),O(19,In,4,2,"mat-expansion-panel",10,En),r(),h(21,Tn,2,0,"mat-error"),r(),a(22,"div",11)(23,"header")(24,"h3",6),l(25,"Contribuidores"),r(),a(26,"button",7),p("click",function(){return i.openSelectContributor()}),d(27,"devmx-icon",8),r()(),a(28,"mat-list",12),O(29,Vn,5,1,"mat-list-item",null,jn),r()(),a(31,"div",13)(32,"header")(33,"h3",6),l(34,"Institui\xE7\xE3o"),r(),a(35,"button",7),p("click",function(){return i.openSearchInstitution()}),d(36,"devmx-icon",14),r()(),a(37,"mat-list"),h(38,An,3,1,"mat-list-item"),r()()(),a(39,"section")(40,"devmx-markdown-toolbar"),d(41,"devmx-markdown-editor",15)(42,"devmx-markdown-view",16),r(),a(43,"devmx-markdown-toolbar"),d(44,"devmx-markdown-editor",17)(45,"devmx-markdown-view",16),r(),a(46,"mat-form-field")(47,"mat-label"),l(48,"Link"),r(),d(49,"input",18),a(50,"mat-hint"),l(51,"Opcional"),r()()()(),a(52,"mat-card-actions",19)(53,"button",20),l(54,"Salvar"),r()()()()),e&2){let s,v;m("formGroup",i.form),c(19),S(i.form.subjects.controls),c(2),x(i.form.subjects.touched&&i.form.subjects.hasError("required")?21:-1),c(8),S(i.form.contributors.controls),c(9),x(i.form.institution.valid?38:-1),c(3),m("minRows",10),c(),m("content",(s=i.form.value.goal)!==null&&s!==void 0?s:""),c(2),m("minRows",10),c(),m("content",(v=i.form.value.details)!==null&&v!==void 0?v:""),c(8),m("disabled",i.form.invalid)}},dependencies:[ye,Pe,ve,A,Kt,H,Xt,Q,Jt,ne,Yt,ee,Zt,te,fe,pe,ue,de,me,Se,Oe,U,q,Ut,Qt,Ht,Pt,P,R,K,Y,X,St,vt,Ot,Me,j,re,ae,se,oe,ie,D],styles:["[_nghost-%COMP%]{display:block;padding:1em}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%]{flex:1;gap:1.6em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:.6em}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:100%;opacity:.72;margin-bottom:0}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .add-button[_ngcontent-%COMP%]{align-self:flex-start}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%]{flex-direction:column;margin-bottom:1em}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%] header[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%] header[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child, [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child, [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{width:8em}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child, [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child, [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:3em}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution-action[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors-action[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects-action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end} body .mat-mdc-button .mdc-button__label{display:inline-flex;align-items:center;gap:4px}"],changeDetection:0})}return n})();var Wr=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},title:"Administra\xE7\xE3o",providers:nn,component:He,children:[{path:"meus-cursos/novo",data:{breadcrumb:"Novo"},title:"Novo curso",component:Nt},{path:"meus-cursos/:id",data:{breadcrumb:n=>n.course.name},title:"Curso",resolve:{course:on},component:Nt},{path:"meus-cursos",data:{breadcrumb:"Meus cursos"},title:"Meus cursos",component:an},{path:"gerenciar-cursos",data:{breadcrumb:"Gerenciar cursos"},title:"Gerenciar cursos",canActivate:[we("director","manager","staff")],component:rn},{path:"",pathMatch:"prefix",redirectTo:"meus-cursos"}]}];export{He as AcademyFeatureAdminComponent,Wr as academyFeatureAdminRoutes}; +import{a as Ue}from"./chunk-XUKBPA5N.js";import{a as je}from"./chunk-JQW63IXS.js";import{a as me,b as ue,c as de,f as pe,g as fe}from"./chunk-ZQOXWN4S.js";import{a as it,b as Ft}from"./chunk-HRSGZXOU.js";import{d as wt,e as Ee}from"./chunk-WPU27ID5.js";import{a as Pe,b as ye}from"./chunk-VHE4TYFV.js";import{a as Dt,b as Ie}from"./chunk-JMI5D6U5.js";import{a as Oe,b as Se}from"./chunk-AFH22WZE.js";import{a as Te,b as Ve,c as Ae,d as Re,e as $e,f as Ne,g as Le,h as ze,i as Be,j as Ge,k as qe}from"./chunk-FROUXDRM.js";import{a as yt,b as Fe}from"./chunk-4JU575PW.js";import{a as ke}from"./chunk-56M6HFOE.js";import{a as we}from"./chunk-Q33OVU5J.js";import{a as Z,b as De,c as tt,e as et,f as nt,g as ot}from"./chunk-73QBZNVE.js";import"./chunk-Q2N7RZTH.js";import{a as $,b as L,c as xt,e as _e}from"./chunk-6P3MPDKA.js";import{a as ge}from"./chunk-WOE5TNBB.js";import{a as Ce,b as Pt,c as I}from"./chunk-BLJCB4Q7.js";import"./chunk-2XST3EDK.js";import"./chunk-YFMYPYPE.js";import{a as ve}from"./chunk-WD4JQH2Z.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import"./chunk-XIUDFJWJ.js";import{a as xe}from"./chunk-TPJZ2OYR.js";import{s as Wt}from"./chunk-XYJHVZQT.js";import"./chunk-O3T3UZHL.js";import{d as X,e as Y}from"./chunk-VVQ6JEVH.js";import{b as Ut,c as Ht,d as Qt,i as q,j as U}from"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as k}from"./chunk-A3N3AUUJ.js";import{g as G,h as Gt,i as Ct,j as qt,p as ht,q as R,u as ce,v as K,w as le,x as P}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import{a as oe,c as ie,f as re,g as ae,h as W,i as se,k as J,l as j}from"./chunk-PAP2P7QR.js";import{a as vt,b as he,c as Me,e as Ot,f as be,i as St}from"./chunk-EC6LD5KM.js";import{a as D,c as H,e as E,h as Q,i as Jt,j as V,l as C,m as Kt,n as Xt,o as Mt,p as Yt,q as Zt,r as te,s as ee,t as ne,w as bt,x as A}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$ as N,$b as O,F as Lt,Fb as zt,J as pt,Jc as y,Kc as w,L as ft,Nb as h,Sc as Bt,Tb as m,Yb as x,ac as S,bc as a,cc as r,dc as d,ec as _t,fc as gt,hc as M,j as at,je as F,k as ut,ka as u,kc as p,lb as c,mc as f,t as st,ta as _,u as dt,ua as g,ub as b,wc as z,xc as l,yc as B,zc as T}from"./chunk-TEKHUYWQ.js";var He=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-academy-feature-admin"]],decls:1,vars:0,template:function(e,i){e&1&&d(0,"router-outlet")},dependencies:[Gt],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return n})();var sn=(n,o)=>o.id;function cn(n,o){if(n&1&&(a(0,"mat-list-option",7),l(1),r()),n&2){let t=o.$implicit;m("value",t),c(),T(" ",t.name," ")}}function ln(n,o){if(n&1){let t=M();a(0,"mat-dialog-content",2)(1,"mat-form-field"),d(2,"input",3),r(),a(3,"button",4),p("click",function(){_(t);let i=f();return g(i.addInstitution())}),d(4,"devmx-icon",5),a(5,"span"),l(6,"Adicionar institui\xE7\xE3o"),r()(),a(7,"mat-selection-list",6,0),O(9,cn,2,2,"mat-list-option",7,sn),r(),a(11,"devmx-paginator",8),p("pageChange",function(i){_(t);let s=f();return g(s.onPageChange(i))}),r()(),a(12,"mat-dialog-actions",9)(13,"button",10),p("click",function(){_(t);let i=z(8),s=f();return g(s.close(i.selectedOptions.selected[0]))}),l(14," Salvar "),r(),a(15,"button",11),p("click",function(){_(t);let i=f();return g(i.ref.close())}),l(16,"Cancelar"),r()()}if(n&2){let t=o,e=f();c(2),m("formControl",e.search),c(2),m("size",18),c(3),m("multiple",!1),c(2),S(t.data),c(2),m("items",t.items)}}var Ke=(()=>{class n{institutionFacade=u(L);ref=u(Z);search=new C("");#t=new ut(!1);addInstitution$=this.#t.asObservable();constructor(){this.search.valueChanges.pipe(pt(300)).pipe(k()).subscribe(t=>{let e=t||"";this.institutionFacade.setFilter({name:e}),this.institutionFacade.load()}),this.institutionFacade.load()}addInstitution(){this.#t.value===!0&&this.#t.next(!1),this.#t.next(!0)}close(t){this.ref.close(t.value)}onPageChange({page:t,size:e}){this.institutionFacade.setParams({page:t,size:e}),this.institutionFacade.load()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-admin-search-institution"]],decls:4,vars:3,consts:[["institutions",""],["mat-dialog-title",""],[1,"dialog-content"],["matInput","","placeholder","Qual institui\xE7\xE3o procura?",3,"formControl"],["type","button","mat-button","",1,"add-institution",3,"click"],["name","plus",3,"size"],[1,"institutions",3,"multiple"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(e,i){if(e&1&&(a(0,"h2",1),l(1,"Encontre institui\xE7\xF5es"),r(),h(2,ln,17,4),y(3,"async")),e&2){let s;c(2),x((s=w(3,1,i.institutionFacade.response$))?2:-1,s)}},dependencies:[A,H,Q,Mt,U,q,I,et,nt,ot,P,R,Y,X,D,j,J,W,F],styles:["[_nghost-%COMP%]{display:block;width:24em}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .institutions[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .add-institution[_ngcontent-%COMP%]{align-self:flex-end}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return n})();var mn=(n,o)=>o.id;function un(n,o){if(n&1&&(a(0,"mat-list-option",7),l(1),r()),n&2){let t=o.$implicit;m("value",t),c(),T(" ",t.name," ")}}function dn(n,o){if(n&1){let t=M();a(0,"mat-dialog-content",2)(1,"mat-form-field"),d(2,"input",3),r(),a(3,"button",4),p("click",function(){_(t);let i=f();return g(i.addSubject())}),d(4,"devmx-icon",5),a(5,"span"),l(6,"Adicionar assunto"),r()(),a(7,"mat-selection-list",6,0),O(9,un,2,2,"mat-list-option",7,mn),r(),a(11,"devmx-paginator",8),p("pageChange",function(i){_(t);let s=f();return g(s.onPageChange(i))}),r()(),a(12,"mat-dialog-actions",9)(13,"button",10),p("click",function(){_(t);let i=z(8),s=f();return g(s.close(i.selectedOptions.selected))}),l(14," Salvar "),r(),a(15,"button",11),p("click",function(){_(t);let i=f();return g(i.ref.close())}),l(16,"Cancelar"),r()()}if(n&2){let t=o,e=f();c(2),m("formControl",e.search),c(2),m("size",18),c(5),S(t.data),c(2),m("items",t.items)}}var Xe=(()=>{class n{subjectFacade=u(xt);ref=u(Z);search=new C("");#t=new ut(!1);addSubject$=this.#t.asObservable();constructor(){this.search.valueChanges.pipe(pt(300)).pipe(k()).subscribe(t=>{let e=t||"";this.subjectFacade.setFilter({name:e}),this.subjectFacade.load()}),this.subjectFacade.load()}addSubject(){this.#t.value===!0&&this.#t.next(!1),this.#t.next(!0)}close(t){this.ref.close(t.map(e=>e.value))}onPageChange({page:t,size:e}){this.subjectFacade.setParams({page:t,size:e})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-admin-search-subjects"]],decls:4,vars:3,consts:[["subjects",""],["mat-dialog-title",""],[1,"dialog-content"],["matInput","","placeholder","Qual assunto procura?",3,"formControl"],["type","button","mat-button","",1,"add-subject",3,"click"],["name","plus",3,"size"],[1,"subjects"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(e,i){if(e&1&&(a(0,"h2",1),l(1,"Encontre assuntos"),r(),h(2,dn,17,3),y(3,"async")),e&2){let s;c(2),x((s=w(3,1,i.subjectFacade.response$))?2:-1,s)}},dependencies:[A,H,Q,Mt,U,q,I,et,nt,ot,P,R,Y,X,D,j,J,W,F],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .subjects[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .add-subject[_ngcontent-%COMP%]{align-self:flex-end}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return n})();var lt=class{dialog;formService;constructor(o,t){this.dialog=o,this.formService=t}openInstitution(o=null){let t={id:it({label:"ID",type:"hidden",value:o&&o.id?o.id:""}),name:it({label:"Nome",type:"text",value:o&&o.name?o.name:"",errors:{required:"Obrigat\xF3rio"}})},e=Ft(t),i=(o?"Editar":"Cadastrar")+" institui\xE7\xE3o";return this.formService.open({title:i,fields:t,form:e})}searchInstitution(){return this.dialog.open(Ke)}};function Ye(){return{provide:lt,deps:[tt,wt]}}var mt=class{dialog;formService;constructor(o,t){this.dialog=o,this.formService=t}openSubject(o=null){let t={id:it({label:"ID",type:"hidden",value:o&&o.id?o.id:""}),name:it({label:"Assunto",type:"text",value:o&&o.name?o.name:"",errors:{required:"Obrigat\xF3rio"}})},e=Ft(t),i=(o?"Editar":"Cadastrar")+" assunto";return this.formService.open({title:i,fields:t,form:e})}searchSubjects(){return this.dialog.open(Xe)}};function Ze(){return{provide:mt,deps:[tt,wt]}}var pn=(n,o)=>o.id;function fn(n,o){if(n&1&&(a(0,"mat-list-option",4),l(1),r()),n&2){let t=o.$implicit;m("value",t),c(),T(" ",t.name," ")}}function _n(n,o){if(n&1){let t=M();a(0,"mat-dialog-content",2)(1,"mat-selection-list",3,0),O(3,fn,2,2,"mat-list-option",4,pn),r(),a(5,"devmx-paginator",5),p("pageChange",function(i){_(t);let s=f();return g(s.onPageChange(i))}),r()(),a(6,"mat-dialog-actions",6)(7,"button",7),p("click",function(){_(t);let i=z(2),s=f();return g(s.close(i.selectedOptions.selected))}),l(8," Selecionar "),r(),a(9,"button",8),p("click",function(){_(t);let i=f();return g(i.ref.close())}),l(10,"Cancelar"),r()()}if(n&2){let t=o,e=f();c(),m("multiple",e.data.multiple),c(2),S(t.data),c(2),m("items",t.items)}}var tn=(()=>{class n{institutionFacade=u(L);ref=u(Z);data=u(De);constructor(){this.institutionFacade.load()}onSearchChange(t){this.institutionFacade.setFilter(t),this.institutionFacade.load()}onPageChange({page:t,size:e}){this.institutionFacade.setParams({page:t,size:e}),this.institutionFacade.load()}close(t){this.data.multiple?this.ref.close(t.map(e=>e.value)):this.ref.close(t[0].value)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-select-institution"]],decls:4,vars:3,consts:[["institution",""],["mat-dialog-title",""],[1,"dialog-content"],[1,"institutions",3,"multiple"],[3,"value"],[3,"pageChange","items"],["align","end",1,"dialog-actions"],["mat-raised-button","","type","button",3,"click"],["mat-button","","type","button",3,"click"]],template:function(e,i){if(e&1&&(a(0,"h2",1),l(1,"Encontre institui\xE7\xF5es"),r(),h(2,_n,11,2),y(3,"async")),e&2){let s;c(2),x((s=w(3,1,i.institutionFacade.response$))?2:-1,s)}},dependencies:[A,I,et,nt,ot,P,R,j,J,W,F],styles:["[_nghost-%COMP%]{display:block;width:24em;max-width:calc(98vw - 32px)}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.2em;margin-bottom:0}[_nghost-%COMP%] .institutions[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:.6em}[_nghost-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:0 16px;display:flex;justify-content:space-between}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;margin-left:-8px}"],changeDetection:0})}return n})();var Et=class{dialog;constructor(o){this.dialog=o}open(o={}){return this.dialog.open(tn,{data:o}).afterClosed().pipe(ft(1))}};function en(){return{provide:Et,deps:[tt]}}var nn=[en(),Ye(),Ie(),Ze(),Ee(),Fe()];var on=n=>_e(u($),n.params);function Cn(n,o){n&1&&(a(0,"th",15),l(1,"Nome do curso"),r())}function hn(n,o){if(n&1&&(a(0,"td",16),l(1),r()),n&2){let t=o.$implicit;c(),B(t.name)}}function Mn(n,o){n&1&&(a(0,"th",15),l(1,"Criado por"),r())}function bn(n,o){if(n&1&&(a(0,"td",16),l(1),r()),n&2){let t=o.$implicit;c(),B(t.owner.displayName)}}function xn(n,o){n&1&&d(0,"th",15)}function Pn(n,o){if(n&1){let t=M();a(0,"td",16)(1,"button",17),p("click",function(){let i=_(t).$implicit,s=f(2);return g(s.openDelete(i))}),d(2,"devmx-icon",18),r()()}}function vn(n,o){n&1&&d(0,"tr",19)}function On(n,o){n&1&&d(0,"tr",20)}function Sn(n,o){if(n&1){let t=M();a(0,"table",5),_t(1,6),h(2,Cn,2,0,"th",7)(3,hn,2,1,"td",8),gt(),_t(4,9),h(5,Mn,2,0,"th",7)(6,bn,2,1,"td",8),gt(),_t(7,10),h(8,xn,1,0,"th",7)(9,Pn,3,0,"td",8),gt(),h(10,vn,1,0,"tr",11)(11,On,1,0,"tr",12),r(),a(12,"mat-card-actions",13)(13,"devmx-paginator",14),p("pageChange",function(i){_(t);let s=f();return g(s.onPageChange(i))}),r()()}if(n&2){let t=o,e=f();m("dataSource",t.data),c(10),m("matHeaderRowDef",e.columns),c(),m("matRowDefColumns",e.columns),c(2),m("size",10)("items",t.items)}}var rn=(()=>{class n{router=u(Ct);route=u(G);dialogFacade=u(yt);courseFacade=u($);selectUser=u(Dt);#t=Wt(null);columns=["name","owner","actions"];constructor(){let t=this.#t.observe().pipe(st(i=>i?i.id:"")),e=this.route.queryParams;dt([t,e]).pipe(k()).subscribe(this.onQueryParams)}onQueryParams=([t,e])=>{let{page:i=0,size:s=10}=e,v={name:"",owner:t};this.courseFacade.setParams({page:i,size:s,filter:v}),this.courseFacade.load()};openDelete({id:t,name:e}){this.dialogFacade.confirm(`Confirme que deseja apagar o curso ${e}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(i=>{i&&this.courseFacade.delete(t)})}openSelectUser(){this.selectUser.open({onlyRole:"academic",multiple:!1}).subscribe(t=>{t&&this.#t.update(t)})}onSearchChange(t=""){this.courseFacade.setFilter({name:t}),this.courseFacade.load()}onPageChange({page:t,size:e}){let i={page:t,size:e};this.router.navigate([],{queryParams:i})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-career-admin-manage-courses"]],decls:10,vars:4,consts:[[1,"courses-card"],[1,"courses-card-header"],["mat-icon-button","",3,"click"],["name","filter"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","owner"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(e,i){if(e&1&&(a(0,"mat-card",0)(1,"mat-card-header",1)(2,"mat-card-title"),l(3,"Cursos"),r(),a(4,"div")(5,"button",2),p("click",function(){return i.openSelectUser()}),d(6,"devmx-icon",3),r(),a(7,"devmx-search-field",4),p("searchChange",function(v){return i.onSearchChange(v)}),r()()(),h(8,Sn,14,5),y(9,"async"),r()),e&2){let s;c(7),m("debounce",1e3),c(),x((s=w(9,2,i.courseFacade.response$))?8:-1,s)}},dependencies:[ht,P,K,ke,I,qe,Te,Ae,Le,Re,Ve,ze,$e,Ne,Be,Ge,St,vt,Ot,be,he,D,F],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .courses-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .courses-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .courses-card-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:2em;display:flex;align-items:baseline}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:3em}"],changeDetection:0})}return n})();var yn=(n,o)=>o.id;function wn(n,o){if(n&1){let t=M();a(0,"devmx-course-card",3)(1,"a",6),d(2,"devmx-icon",7),r(),a(3,"button",8),p("click",function(){let i=_(t).$implicit,s=f(2);return g(s.deleteCourse(i))}),d(4,"devmx-icon",9),r()()}if(n&2){let t=o.$implicit;m("data",t),c(),m("routerLink",t.id)}}function Fn(n,o){n&1&&(a(0,"div",4)(1,"h2"),l(2,"N\xE3o temos nada aqui..."),r(),a(3,"h3"),l(4," Siga nessa dire\xE7\xE3o "),d(5,"devmx-icon",10)(6,"br"),l(7," at\xE9 encontrar o bot\xE3o com um "),d(8,"devmx-icon",11)(9,"br"),l(10," e cadastre seus cursos. "),d(11,"devmx-icon",12),r()()),n&2&&(c(5),m("size",32),c(3),m("size",32),c(3),m("size",32))}function Dn(n,o){if(n&1){let t=M();a(0,"div",2),O(1,wn,5,2,"devmx-course-card",3,yn),r(),h(3,Fn,12,3,"div",4),a(4,"footer")(5,"devmx-paginator",5),p("pageChange",function(i){_(t);let s=f();return g(s.onPageChange(i))}),r()()}if(n&2){let t=o;c(),S(t.data),c(2),x(t.items?-1:3),c(2),m("size",10)("items",t.items)}}var an=(()=>{class n{router=u(Ct);route=u(G);dialogFacade=u(yt);authFacade=u(xe);courseFacade=u($);constructor(){let t=this.authFacade.auth$.pipe(Lt(i=>!!i),st(({id:i})=>i)),e=this.route.queryParams.pipe(st(({page:i,size:s,open:v=null,active:At=null})=>({page:i,size:s,open:v,active:At})));dt([t,e]).pipe(k()).subscribe(this.onQueryParams)}onQueryParams=([t,e])=>{let{page:i,size:s,name:v=""}=e,At={name:v,owner:t};this.courseFacade.setParams({page:i,size:s,filter:At}),this.courseFacade.load()};deleteCourse({id:t,name:e}){this.dialogFacade.confirm(`Confirme que deseja apagar o curso ${e}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(i=>{i&&this.courseFacade.delete(t)})}onPageChange({page:t,size:e}){let i={page:t,size:e};this.router.navigate([],{queryParams:i})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-academy-admin-my-courses"]],decls:4,vars:3,consts:[["mat-fab","","routerLink","novo",1,"add-button","tertiary-fab"],["name","plus"],[1,"courses-container"],[3,"data"],[1,"no-courses-yet"],[3,"pageChange","size","items"],["mat-icon-button","","matTooltip","Editar curso","matTooltipPosition","before",3,"routerLink"],["name","software/edit"],["type","button","mat-icon-button","","matTooltip","Apagar curso","matTooltipPosition","after",3,"click"],["name","trash-alt"],["color","#3BCE53","name","arrow/up-right",3,"size"],["color","#3BCE53","name","plus",3,"size"],["color","#3BCE53","name","emoji/smirking-alt",3,"size"]],template:function(e,i){if(e&1&&(a(0,"a",0),d(1,"devmx-icon",1),r(),h(2,Dn,6,3),y(3,"async")),e&2){let s;c(2),x((s=w(3,1,i.courseFacade.response$))?2:-1,s)}},dependencies:[ht,qt,j,P,le,K,ce,Pt,Ce,I,Ue,D,F],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;justify-content:space-between}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:flex;flex-flow:row wrap;justify-content:flex-start;grid-template-columns:repeat(2,1fr)}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;max-width:50%}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .no-courses-yet[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] .no-courses-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .no-courses-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;white-space:normal}[_nghost-%COMP%] .no-courses-yet[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:160%}[_nghost-%COMP%] .no-courses-yet[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:120%;text-align:end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}@media (min-width: 1920px){[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;max-width:33%}}@media (max-width: 767px){[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{align-content:flex-start;grid-template-columns:1fr}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline-flex;min-width:100%}}[_nghost-%COMP%] .add-button[_ngcontent-%COMP%]{position:fixed;right:4em;top:2em}"],changeDetection:0})}return n})();var jt=class extends V{constructor(){super({id:new C("",{nonNullable:!0}),name:new C("",{nonNullable:!0,validators:[E.required]})})}};var $t=class extends V{constructor(o){super({subject:new jt,instructor:new C("",{nonNullable:!0}),hours:new C(0,{nonNullable:!0,validators:[E.min(0)]})}),o&&this.patchValue(o)}get subject(){return this.controls.subject}},kt=class extends bt{constructor(){super([],{validators:[E.required]})}add(o){this.push(new $t(o))}childrenErrors=zt([]);updateErrors(){let o=this.controls.map(t=>t.errors);this.childrenErrors.set(o)}};var It=class extends bt{constructor(){super([])}add(o){this.push(new je(o))}};var Tt=class extends V{constructor(){super({id:new C("",{nonNullable:!0}),name:new C("",{nonNullable:!0,validators:[E.required]})})}patch(o){this.patchValue(o)}};var Vt=class extends V{constructor(){super({id:new C("",{nonNullable:!0}),name:new C("",{nonNullable:!0,validators:[E.required]}),institution:new Tt,subjects:new kt,goal:new C("",{nonNullable:!0,validators:[E.required]}),ead:new C(!1,{nonNullable:!0}),details:new C,link:new C,contributors:new It})}get institution(){return this.controls.institution}get contributors(){return this.controls.contributors}get subjects(){return this.controls.subjects}patch(o){if(this.patchValue(o),o.subjects){this.subjects.clear();for(let t of o.subjects)this.subjects.add(t)}if(o.contributors){this.contributors.clear();for(let t of o.contributors)this.contributors.add(t)}}};var En=(n,o)=>o.value,jn=(n,o)=>o.value.id;function kn(n,o){if(n&1){let t=M();a(0,"mat-form-field")(1,"mat-label"),l(2,"Professor"),r(),d(3,"input",22),r(),a(4,"mat-form-field")(5,"mat-label"),l(6,"Carga hor\xE1ria"),r(),d(7,"input",23),r(),a(8,"footer",24)(9,"button",7),p("click",function(){_(t);let i=f().$index,s=f();return g(s.form.subjects.removeAt(i))}),d(10,"devmx-icon",25),r()()}}function In(n,o){if(n&1&&(a(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header"),l(2),r(),h(3,kn,11,0,"ng-template",21),r()),n&2){let t=o.$implicit,e=o.$index;m("formGroupName",e),c(2),T(" ",t.subject.value.name," ")}}function Tn(n,o){n&1&&(a(0,"mat-error"),l(1,"Selecione ou cadastre ao menos uma assunto"),r())}function Vn(n,o){if(n&1){let t=M();a(0,"mat-list-item")(1,"span",26),l(2),r(),a(3,"button",27),p("click",function(){let i=_(t).$index,s=f();return g(s.form.contributors.removeAt(i))}),d(4,"devmx-icon",25),r()()}if(n&2){let t=o.$implicit;c(2),B(t.value.name)}}function An(n,o){if(n&1&&(a(0,"mat-list-item")(1,"span",26),l(2),r()()),n&2){let t=f();c(2),B(t.form.institution.value.name)}}var Nt=(()=>{class n{route=u(G);cdr=u(Bt);subjectFacade=u(xt);institutionFacade=u(L);institutionDialog=u(lt);subjectDialog=u(mt);selectAccount=u(Dt);courseFacade=u($);messageService=u(ge);form=new Vt;#t={openSubject:new at,searchSubject:new at,openInstitution:new at,searchInstitution:new at};constructor(){this.route.data.pipe(k()).subscribe(({course:t})=>{t&&t.id&&this.form.patch(t)})}openSelectContributor(){this.selectAccount.open({onlyRole:"academic",multiple:!0}).pipe(ft(1)).subscribe(t=>{if(t&&t.length)for(let e of t)this.form.contributors.add(e);this.cdr.detectChanges()})}openInstitution(t=null){return this.institutionDialog.openInstitution(t).afterClosed().pipe(N(this.#t.openInstitution)).subscribe(e=>{e&&(e.id?this.institutionFacade.update(e):this.institutionFacade.create(e))})}openSearchInstitution(){let t=this.institutionDialog.searchInstitution();t.componentInstance.addInstitution$.pipe(N(this.#t.searchInstitution)).subscribe(e=>{e&&this.openInstitution()}),t.afterClosed().pipe(N(this.#t.searchInstitution)).subscribe(e=>{e&&this.form.patchValue({institution:e}),this.#t.openInstitution.next(),this.#t.openInstitution.complete(),this.#t.searchInstitution.next(),this.#t.searchInstitution.complete()})}openSubject(t=null){return this.subjectDialog.openSubject(t).afterClosed().pipe(N(this.#t.openSubject)).subscribe(e=>{e&&(e.id?this.subjectFacade.update(e):this.subjectFacade.create(e))})}openSearchSubjects(){let t=this.subjectDialog.searchSubjects();t.componentInstance.addSubject$.pipe(N(this.#t.searchSubject)).subscribe(e=>{e&&this.openSubject(),console.log(e)}),t.afterClosed().pipe(N(this.#t.searchSubject)).subscribe(e=>{if(e&&e.length){for(let i of e){let s={hours:0,instructor:"",subject:i};this.form.subjects.add(s)}this.cdr.detectChanges()}this.#t.openSubject.next(),this.#t.openSubject.complete(),this.#t.searchSubject.next(),this.#t.searchSubject.complete()})}onSubmit(){if(this.form.valid){let t=this.form.getRawValue();return t.id?this.courseFacade.update(t):this.courseFacade.create(t),this.messageService.open({message:"Armazenando informa\xE7\xF5es"})}return this.form.markAllAsTouched()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["devmx-academy-admin-course"]],decls:55,vars:8,consts:[[3,"submit","formGroup"],[1,"course"],[1,"course-content"],["matInput","","formControlName","name","autofocus",""],["formControlName","ead"],[1,"course-subjects"],["mat-subheader",""],["type","button","mat-icon-button","",3,"click"],["name","plus"],["formArrayName","subjects"],[3,"formGroupName"],[1,"course-contributors"],["formArrayName","contributors",1,"contributors"],[1,"course-institution"],["name","software/edit"],["label","Objetivo","hint","Compat\xEDvel com markdown do Github","formControlName","goal",3,"minRows"],[3,"content"],["label","Detalhes","hint","Compat\xEDvel com markdown do Github","formControlName","details",3,"minRows"],["matInput","","formControlName","link"],["align","end",1,"course-actions"],["mat-flat-button","",3,"disabled"],["matExpansionPanelContent",""],["matInput","","formControlName","instructor"],["matInput","","type","number","formControlName","hours","min","0"],[1,"course-subjects-action"],["name","trash"],["matListItemTitle",""],["type","button","mat-icon-button","","matListItemMeta","",3,"click"]],template:function(e,i){if(e&1&&(a(0,"form",0),p("submit",function(){return i.onSubmit()}),a(1,"mat-card",1)(2,"mat-card-content",2)(3,"section")(4,"mat-form-field")(5,"mat-label"),l(6,"Nome do curso"),r(),d(7,"input",3),a(8,"mat-error"),l(9,"Obrigat\xF3rio"),r()(),a(10,"mat-checkbox",4),l(11,"Ensino a dist\xE2ncia"),r(),a(12,"div",5)(13,"header")(14,"h3",6),l(15,"Disciplinas"),r(),a(16,"button",7),p("click",function(){return i.openSearchSubjects()}),d(17,"devmx-icon",8),r()(),a(18,"mat-accordion",9),O(19,In,4,2,"mat-expansion-panel",10,En),r(),h(21,Tn,2,0,"mat-error"),r(),a(22,"div",11)(23,"header")(24,"h3",6),l(25,"Contribuidores"),r(),a(26,"button",7),p("click",function(){return i.openSelectContributor()}),d(27,"devmx-icon",8),r()(),a(28,"mat-list",12),O(29,Vn,5,1,"mat-list-item",null,jn),r()(),a(31,"div",13)(32,"header")(33,"h3",6),l(34,"Institui\xE7\xE3o"),r(),a(35,"button",7),p("click",function(){return i.openSearchInstitution()}),d(36,"devmx-icon",14),r()(),a(37,"mat-list"),h(38,An,3,1,"mat-list-item"),r()()(),a(39,"section")(40,"devmx-markdown-toolbar"),d(41,"devmx-markdown-editor",15)(42,"devmx-markdown-view",16),r(),a(43,"devmx-markdown-toolbar"),d(44,"devmx-markdown-editor",17)(45,"devmx-markdown-view",16),r(),a(46,"mat-form-field")(47,"mat-label"),l(48,"Link"),r(),d(49,"input",18),a(50,"mat-hint"),l(51,"Opcional"),r()()()(),a(52,"mat-card-actions",19)(53,"button",20),l(54,"Salvar"),r()()()()),e&2){let s,v;m("formGroup",i.form),c(19),S(i.form.subjects.controls),c(2),x(i.form.subjects.touched&&i.form.subjects.hasError("required")?21:-1),c(8),S(i.form.contributors.controls),c(9),x(i.form.institution.valid?38:-1),c(3),m("minRows",10),c(),m("content",(s=i.form.value.goal)!==null&&s!==void 0?s:""),c(2),m("minRows",10),c(),m("content",(v=i.form.value.details)!==null&&v!==void 0?v:""),c(8),m("disabled",i.form.invalid)}},dependencies:[ye,Pe,ve,A,Kt,H,Xt,Q,Jt,ne,Yt,ee,Zt,te,fe,pe,ue,de,me,Se,Oe,U,q,Ut,Qt,Ht,Pt,P,R,K,Y,X,St,vt,Ot,Me,j,re,ae,se,oe,ie,D],styles:["[_nghost-%COMP%]{display:block;padding:1em}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%]{flex:1;gap:1.6em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:.6em}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:100%;opacity:.72;margin-bottom:0}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .add-button[_ngcontent-%COMP%]{align-self:flex-start}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%]{flex-direction:column;margin-bottom:1em}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%] header[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%] header[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child, [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child, [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{width:8em}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child, [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child, [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{width:3em}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-institution-action[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-contributors-action[_ngcontent-%COMP%], [_nghost-%COMP%] .course-content[_ngcontent-%COMP%] section[_ngcontent-%COMP%] div.course-subjects-action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end} body .mat-mdc-button .mdc-button__label{display:inline-flex;align-items:center;gap:4px}"],changeDetection:0})}return n})();var Wr=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},title:"Administra\xE7\xE3o",providers:nn,component:He,children:[{path:"meus-cursos/novo",data:{breadcrumb:"Novo"},title:"Novo curso",component:Nt},{path:"meus-cursos/:id",data:{breadcrumb:n=>n.course.name},title:"Curso",resolve:{course:on},component:Nt},{path:"meus-cursos",data:{breadcrumb:"Meus cursos"},title:"Meus cursos",component:an},{path:"gerenciar-cursos",data:{breadcrumb:"Gerenciar cursos"},title:"Gerenciar cursos",canActivate:[we("director","manager","staff")],component:rn},{path:"",pathMatch:"prefix",redirectTo:"meus-cursos"}]}];export{He as AcademyFeatureAdminComponent,Wr as academyFeatureAdminRoutes}; diff --git a/chunk-SZNPDBBQ.js b/chunk-SZNPDBBQ.js new file mode 100644 index 00000000..bcb28c48 --- /dev/null +++ b/chunk-SZNPDBBQ.js @@ -0,0 +1 @@ +import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"./chunk-DAURILCW.js";import"./chunk-O3T3UZHL.js";import"./chunk-VVQ6JEVH.js";import"./chunk-HGOTYYGI.js";import"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import"./chunk-A3N3AUUJ.js";import"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import"./chunk-EC6LD5KM.js";import"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import"./chunk-TEKHUYWQ.js";export{k as EventCardComponent,c as EventCardListComponent,b as EventDateRangeComponent,a as EventDateRangeForm,d as EventFilterComponent,f as EventFormatPipe,l as EventTimeComponent,g as FindInRSVPPipe,e as RSVPButtonComponent,h as RSVPByStatusPipe,m as RSVPForm,i as ShowEventAddressPipe,j as ShowEventLinkPipe}; diff --git a/chunk-TH4T4IGP.js b/chunk-TH4T4IGP.js deleted file mode 100644 index 4c85183e..00000000 --- a/chunk-TH4T4IGP.js +++ /dev/null @@ -1 +0,0 @@ -import{a,b,c,d,e,f,g,h,i,j,k}from"./chunk-RUSPURVH.js";import"./chunk-HGOTYYGI.js";import"./chunk-2K6IALUF.js";import"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import"./chunk-EC6LD5KM.js";import"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import"./chunk-TEKHUYWQ.js";export{i as EventCardComponent,a as EventCardListComponent,b as EventFilterComponent,d as EventFormatPipe,j as EventTimeComponent,e as FindInRSVPPipe,c as RSVPButtonComponent,f as RSVPByStatusPipe,k as RSVPForm,g as ShowEventAddressPipe,h as ShowEventLinkPipe}; diff --git a/chunk-TZR6QHL3.js b/chunk-TPJZ2OYR.js similarity index 99% rename from chunk-TZR6QHL3.js rename to chunk-TPJZ2OYR.js index 09edea27..1694f97a 100644 --- a/chunk-TZR6QHL3.js +++ b/chunk-TPJZ2OYR.js @@ -1 +1 @@ -import{A as z,a as L,b as B,c as F,d as w,f as s,p as T,t as E,u as W}from"./chunk-4FWBEGAE.js";import{F as n,L as a,O as d,_ as H,a as k,b as q,c as I,t as N}from"./chunk-TEKHUYWQ.js";var p=class{};var o=class extends L{};var h=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.createUser(e)}};var l=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.delete(e)}};var U=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.findOne(e)}};var x=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.findOneByName(e)}};var m=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.find(e)}};var f=class{authenticationService;constructor(e){this.authenticationService=e}execute(){return this.authenticationService.load()}};var v=class{authenticationService;constructor(e){this.authenticationService=e}execute({name:e}){return this.authenticationService.sendUserCode(e)}};var C=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.updatePassword(e)}};var S=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.updatePhoto(e)}};var g=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.updateProfile(e)}};var P=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.updateRoles(e)}};var b=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.updateSocial(e)}};var y=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.update(e.id,e)}};var $=class{authenticationService;constructor(e){this.authenticationService=e}execute(e){return this.authenticationService.validateUserCode(e).pipe(H(({accessToken:t})=>(localStorage.setItem("accessToken",t),this.authenticationService.load())))}};var V=T({auth:null,loading:!1,message:null,sended:!1}),O=class extends E{createUserUseCase;sendUserCodeUseCase;validateUserCodeUseCase;loadAuthenticationUseCase;auth$=this.select(e=>e.auth);message$=this.select(e=>e.message);loading$=this.select(e=>e.loading);connected$=this.select(()=>!!this.accessToken);get accessToken(){return localStorage.getItem("accessToken")}constructor(e,t,i,c){super(V),this.createUserUseCase=e,this.sendUserCodeUseCase=t,this.validateUserCodeUseCase=i,this.loadAuthenticationUseCase=c}load(){this.loadAuthenticationUseCase.execute().pipe(a(1)).subscribe(t=>this.setState({auth:t}))}sendUserCode(e){this.setState({loading:!0}),this.sendUserCodeUseCase.execute(e).pipe(a(1)).subscribe(({message:i})=>{this.setState({sended:!0,loading:!1,message:i})})}validateUserCode(e){this.setState({loading:!0}),this.validateUserCodeUseCase.execute(e).pipe(a(1)).subscribe(()=>this.setState({loading:!1}))}createUser(e){return this.setState({loading:!0}),this.createUserUseCase.execute(e).pipe(a(1))}signOut(){this.setState(V),localStorage.removeItem("accessToken")}};function M(){return w(O,[h,v,$,f])}function G(r){return{"@context":"https://schema.org","@type":"Person",name:r.displayName,email:`mailto:${r.contact.email}`,url:`https://devparana.mx/#/sobre/${r.name}`}}var R=class extends z{findUsersUseCase;findUserByIDUseCase;updateProfileUseCase;updateUserUseCase;updatePhotoUseCase;updatePasswordUseCase;updateSocialUseCase;updateRolesUseCase;deleteUserUseCase;findUserByNameUseCase;profile$=this.select(e=>{if(e.selected){let{profile:t,id:i}=e.selected;return q(k({},t),{id:i})}return null});social$=this.selected$.pipe(n(e=>!!e),N(({id:e,social:t})=>({id:e,social:t})));schema$=this.selected$.pipe(n(e=>!!e),N(e=>G(e)));constructor(e,t,i,c,u,A,_,ee,te,re){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{name:""}},selected:null}),this.findUsersUseCase=e,this.findUserByIDUseCase=t,this.updateProfileUseCase=i,this.updateUserUseCase=c,this.updatePhotoUseCase=u,this.updatePasswordUseCase=A,this.updateSocialUseCase=_,this.updateRolesUseCase=ee,this.deleteUserUseCase=te,this.findUserByNameUseCase=re}load(){this.onLoad(this.findUsersUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findUserByIDUseCase.execute(e))}loadOneByName(e){this.onLoadOne(this.findUserByNameUseCase.execute(e))}update(e){this.updateUserUseCase.execute(e).pipe(a(1)).subscribe()}updateProfile(e){this.updateProfileUseCase.execute(e).pipe(a(1)).subscribe()}updatePhoto(e){this.updatePhotoUseCase.execute(e).pipe(a(1)).subscribe()}updatePassword(e){this.onUpdate(this.updatePasswordUseCase.execute(e))}updateSocial(e){this.updateSocialUseCase.execute(e).pipe(a(1)).subscribe()}updateRoles(e){this.onUpdate(this.updateRolesUseCase.execute(e))}delete(e){this.onDelete(this.deleteUserUseCase.execute(e))}};function J(){return w(R,[m,U,g,y,S,C,b,P,l,x])}function K(){return[M(),J()]}var D=class{http;env;endpoint;get url(){return`${this.env.api.url}/${this.endpoint}`}constructor(e,t,i){this.http=e,this.env=t,this.endpoint=i}load(){return this.http.get(this.url)}createUser(e){let t=[this.url,"create-user"];return this.http.post(t.join("/"),e)}sendUserCode(e){return this.http.post(this.url,{name:e})}validateUserCode(e){let t=[this.url,"validate"];return this.http.post(t.join("/"),e)}};function Q(){return{provide:p,useFactory(r,e){return new D(r,e,"authentication")},deps:[F,B]}}var j=class extends W{findOneByName(e){let t=[this.url,"about",e];return this.http.get(t.join("/"))}updatePassword(e){let t=[this.url,e.id,"password"];return this.http.patch(t.join("/"),e)}updateProfile(e){let t=[this.url,e.id,"profile"];return this.http.patch(t.join("/"),e)}updatePhoto(i){var c=i,{id:e}=c,t=I(c,["id"]);let u=new FormData;u.append("photo",t.photo),u.append("gender",t.gender??""),u.append("minibio",t.minibio??""),u.append("birthday",t.birthday?.toString()??"");let A=[this.url,e,"photo"];return this.http.post(A.join("/"),u)}updateSocial(e){let t=[this.url,e.id,"social"];return this.http.patch(t.join("/"),e)}updateRoles(e){let t=[this.url,e.id,"roles"];return this.http.patch(t.join("/"),e)}};function X(){return{provide:o,useFactory(r,e){return new j(r,e,"users")},deps:[F,B]}}function Y(){return[Q(),X()]}function se(){return s(h,[p])}function oe(){return s(l,[o])}function ie(){return s(U,[o])}function ae(){return s(x,[o])}function ne(){return s(m,[o])}function pe(){return s(f,[p])}function ue(){return s(v,[p])}function ce(){return s(C,[o])}function de(){return s(g,[o])}function he(){return s(y,[o])}function le(){return s(S,[o])}function Ue(){return s(b,[o])}function xe(){return s(P,[o])}function me(){return s($,[p])}function Z(){return[se(),oe(),ie(),ae(),ne(),pe(),ue(),ce(),le(),de(),he(),Ue(),xe(),me()]}function Mt(){return[...Y(),...Z(),...K()]}var Kt=(r,e)=>(r.loadOneByName(e.name),r.selected$.pipe(d(),n(t=>!!t)));var Yt=(r,e)=>(r.loadOneByName(e.name),r.schema$.pipe(d(),n(t=>!!t)));var er=(r,e)=>(r.loadOne(e.id),r.selected$.pipe(d(),n(t=>!!t)));export{O as a,R as b,Mt as c,Kt as d,Yt as e,er as f}; +import{A as z,a as L,b as B,c as F,d as w,f as s,p as T,t as E,u as W}from"./chunk-XYJHVZQT.js";import{F as n,L as a,O as d,_ as H,a as k,b as q,c as I,t as N}from"./chunk-TEKHUYWQ.js";var p=class{};var o=class extends L{};var h=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.createUser(e)}};var l=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.delete(e)}};var U=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.findOne(e)}};var x=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.findOneByName(e)}};var m=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.find(e)}};var f=class{authenticationService;constructor(e){this.authenticationService=e}execute(){return this.authenticationService.load()}};var v=class{authenticationService;constructor(e){this.authenticationService=e}execute({name:e}){return this.authenticationService.sendUserCode(e)}};var C=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.updatePassword(e)}};var S=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.updatePhoto(e)}};var g=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.updateProfile(e)}};var P=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.updateRoles(e)}};var b=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.updateSocial(e)}};var y=class{userService;constructor(e){this.userService=e}execute(e){return this.userService.update(e.id,e)}};var $=class{authenticationService;constructor(e){this.authenticationService=e}execute(e){return this.authenticationService.validateUserCode(e).pipe(H(({accessToken:t})=>(localStorage.setItem("accessToken",t),this.authenticationService.load())))}};var V=T({auth:null,loading:!1,message:null,sended:!1}),O=class extends E{createUserUseCase;sendUserCodeUseCase;validateUserCodeUseCase;loadAuthenticationUseCase;auth$=this.select(e=>e.auth);message$=this.select(e=>e.message);loading$=this.select(e=>e.loading);connected$=this.select(()=>!!this.accessToken);get accessToken(){return localStorage.getItem("accessToken")}constructor(e,t,i,c){super(V),this.createUserUseCase=e,this.sendUserCodeUseCase=t,this.validateUserCodeUseCase=i,this.loadAuthenticationUseCase=c}load(){this.loadAuthenticationUseCase.execute().pipe(a(1)).subscribe(t=>this.setState({auth:t}))}sendUserCode(e){this.setState({loading:!0}),this.sendUserCodeUseCase.execute(e).pipe(a(1)).subscribe(({message:i})=>{this.setState({sended:!0,loading:!1,message:i})})}validateUserCode(e){this.setState({loading:!0}),this.validateUserCodeUseCase.execute(e).pipe(a(1)).subscribe(()=>this.setState({loading:!1}))}createUser(e){return this.setState({loading:!0}),this.createUserUseCase.execute(e).pipe(a(1))}signOut(){this.setState(V),localStorage.removeItem("accessToken")}};function M(){return w(O,[h,v,$,f])}function G(r){return{"@context":"https://schema.org","@type":"Person",name:r.displayName,email:`mailto:${r.contact.email}`,url:`https://devparana.mx/#/sobre/${r.name}`}}var R=class extends z{findUsersUseCase;findUserByIDUseCase;updateProfileUseCase;updateUserUseCase;updatePhotoUseCase;updatePasswordUseCase;updateSocialUseCase;updateRolesUseCase;deleteUserUseCase;findUserByNameUseCase;profile$=this.select(e=>{if(e.selected){let{profile:t,id:i}=e.selected;return q(k({},t),{id:i})}return null});social$=this.selected$.pipe(n(e=>!!e),N(({id:e,social:t})=>({id:e,social:t})));schema$=this.selected$.pipe(n(e=>!!e),N(e=>G(e)));constructor(e,t,i,c,u,A,_,ee,te,re){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{name:""}},selected:null}),this.findUsersUseCase=e,this.findUserByIDUseCase=t,this.updateProfileUseCase=i,this.updateUserUseCase=c,this.updatePhotoUseCase=u,this.updatePasswordUseCase=A,this.updateSocialUseCase=_,this.updateRolesUseCase=ee,this.deleteUserUseCase=te,this.findUserByNameUseCase=re}load(){this.onLoad(this.findUsersUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findUserByIDUseCase.execute(e))}loadOneByName(e){this.onLoadOne(this.findUserByNameUseCase.execute(e))}update(e){this.updateUserUseCase.execute(e).pipe(a(1)).subscribe()}updateProfile(e){this.updateProfileUseCase.execute(e).pipe(a(1)).subscribe()}updatePhoto(e){this.updatePhotoUseCase.execute(e).pipe(a(1)).subscribe()}updatePassword(e){this.onUpdate(this.updatePasswordUseCase.execute(e))}updateSocial(e){this.updateSocialUseCase.execute(e).pipe(a(1)).subscribe()}updateRoles(e){this.onUpdate(this.updateRolesUseCase.execute(e))}delete(e){this.onDelete(this.deleteUserUseCase.execute(e))}};function J(){return w(R,[m,U,g,y,S,C,b,P,l,x])}function K(){return[M(),J()]}var D=class{http;env;endpoint;get url(){return`${this.env.api.url}/${this.endpoint}`}constructor(e,t,i){this.http=e,this.env=t,this.endpoint=i}load(){return this.http.get(this.url)}createUser(e){let t=[this.url,"create-user"];return this.http.post(t.join("/"),e)}sendUserCode(e){return this.http.post(this.url,{name:e})}validateUserCode(e){let t=[this.url,"validate"];return this.http.post(t.join("/"),e)}};function Q(){return{provide:p,useFactory(r,e){return new D(r,e,"authentication")},deps:[F,B]}}var j=class extends W{findOneByName(e){let t=[this.url,"about",e];return this.http.get(t.join("/"))}updatePassword(e){let t=[this.url,e.id,"password"];return this.http.patch(t.join("/"),e)}updateProfile(e){let t=[this.url,e.id,"profile"];return this.http.patch(t.join("/"),e)}updatePhoto(i){var c=i,{id:e}=c,t=I(c,["id"]);let u=new FormData;u.append("photo",t.photo),u.append("gender",t.gender??""),u.append("minibio",t.minibio??""),u.append("birthday",t.birthday?.toString()??"");let A=[this.url,e,"photo"];return this.http.post(A.join("/"),u)}updateSocial(e){let t=[this.url,e.id,"social"];return this.http.patch(t.join("/"),e)}updateRoles(e){let t=[this.url,e.id,"roles"];return this.http.patch(t.join("/"),e)}};function X(){return{provide:o,useFactory(r,e){return new j(r,e,"users")},deps:[F,B]}}function Y(){return[Q(),X()]}function se(){return s(h,[p])}function oe(){return s(l,[o])}function ie(){return s(U,[o])}function ae(){return s(x,[o])}function ne(){return s(m,[o])}function pe(){return s(f,[p])}function ue(){return s(v,[p])}function ce(){return s(C,[o])}function de(){return s(g,[o])}function he(){return s(y,[o])}function le(){return s(S,[o])}function Ue(){return s(b,[o])}function xe(){return s(P,[o])}function me(){return s($,[p])}function Z(){return[se(),oe(),ie(),ae(),ne(),pe(),ue(),ce(),le(),de(),he(),Ue(),xe(),me()]}function Mt(){return[...Y(),...Z(),...K()]}var Kt=(r,e)=>(r.loadOneByName(e.name),r.selected$.pipe(d(),n(t=>!!t)));var Yt=(r,e)=>(r.loadOneByName(e.name),r.schema$.pipe(d(),n(t=>!!t)));var er=(r,e)=>(r.loadOne(e.id),r.selected$.pipe(d(),n(t=>!!t)));export{O as a,R as b,Mt as c,Kt as d,Yt as e,er as f}; diff --git a/chunk-TQRFHWEI.js b/chunk-TQRFHWEI.js new file mode 100644 index 00000000..8dd42cc4 --- /dev/null +++ b/chunk-TQRFHWEI.js @@ -0,0 +1 @@ +import{a as ye}from"./chunk-XUKBPA5N.js";import{a as ve,b as Me}from"./chunk-MEIYYXQK.js";import{a as ae}from"./chunk-M5BYPXOP.js";import"./chunk-ZQOXWN4S.js";import{a as R}from"./chunk-Q33OVU5J.js";import{a as S,e as se}from"./chunk-6P3MPDKA.js";import{b as re}from"./chunk-WKFJTKSD.js";import{a as I}from"./chunk-ZHS65JNW.js";import{c as ce}from"./chunk-BLJCB4Q7.js";import"./chunk-2XST3EDK.js";import"./chunk-MLNPCJDD.js";import"./chunk-UOTKRQ63.js";import"./chunk-2IAXMR6M.js";import"./chunk-XIUDFJWJ.js";import{a as xe}from"./chunk-TPJZ2OYR.js";import"./chunk-ZTWYID37.js";import"./chunk-XYJHVZQT.js";import{c as me,e as le,f as de}from"./chunk-HGOTYYGI.js";import"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as y}from"./chunk-A3N3AUUJ.js";import{g as O,i as w,j as b,p as x,r as ne,w as ie,x as oe}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import{a as K,b as X,e as Y,f as Z,g as ee,l as te}from"./chunk-PAP2P7QR.js";import{a as pe,b as ue,c as fe,e as Ce,f as _e,h as he,i as ge}from"./chunk-EC6LD5KM.js";import{a as J}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as P,Ba as U,F as B,Ha as V,Hc as M,Jc as C,Kc as _,Nb as u,Ob as E,Pb as N,Rb as Q,Tb as c,Yb as h,a as k,ac as D,bc as i,cc as o,dc as s,fb as T,gb as q,hc as G,je as W,ka as m,kc as v,lb as r,mc as f,t as $,ta as z,ua as H,ub as p,xc as l,yc as F,zc as A}from"./chunk-TEKHUYWQ.js";var Pe=(()=>{class e{router=m(w);destroyRef=m(U);authFacade=m(xe);layoutFacade=m(re);constructor(){this.authFacade.auth$.pipe(y()).subscribe(t=>{t&&(this.layoutFacade.loadNavLinks(t.roles),this.waitingForLogout())}),this.authFacade.load()}waitingForLogout(){this.authFacade.auth$.pipe(y(this.destroyRef)).subscribe(t=>{t===null&&(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,d){n&1&&s(0,"devmx-layout")},dependencies:[x,ae],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var Se=(e,a)=>a.subject.id;function Le(e,a){if(e&1&&l(0),e&2){let t=f().$implicit;A(" com ",t.instructor," ")}}function ke(e,a){if(e&1&&(i(0,"mat-list-item"),s(1,"devmx-icon",11),i(2,"span",8),l(3),o(),i(4,"span",12),l(5),u(6,Le,1,1),o()()),e&2){let t=a.$implicit;r(3),F(t.subject.name),r(2),A("",t.hours," horas "),r(),h(t.instructor?6:-1)}}function Te(e,a){if(e&1&&(i(0,"mat-card-content")(1,"h3"),l(2,"Detalhes"),o(),s(3,"div",9),C(4,"markdown"),C(5,"html"),o()),e&2){let t=f();r(3),c("innerHTML",_(5,3,_(4,1,t.details)),T)}}function Ee(e,a){if(e&1&&(i(0,"mat-card-actions",10)(1,"a",13),s(2,"devmx-icon",14),i(3,"span"),l(4,"Inscreva-se"),o()()()),e&2){let t=f();r(),c("href",t.link,q)}}function Ae(e,a){if(e&1&&(i(0,"mat-card",0)(1,"mat-card-header",1)(2,"a",2),s(3,"devmx-icon",3),o(),i(4,"mat-card-title",4),l(5),o(),i(6,"a",5),s(7,"devmx-icon",6),o()(),i(8,"mat-list")(9,"mat-list-item"),s(10,"devmx-icon",7),i(11,"span",8),l(12),o()()(),i(13,"mat-card-content")(14,"h3"),l(15,"Objetivo"),o(),s(16,"div",9),C(17,"markdown"),C(18,"html"),o(),i(19,"mat-list"),P(20,ke,7,3,"mat-list-item",null,Se),o(),u(22,Te,6,5,"mat-card-content")(23,Ee,5,1,"mat-card-actions",10),o()),e&2){let t=a;r(5),F(t.name),r(7),F(t.institution.name),r(4),c("innerHTML",_(18,7,_(17,5,t.goal)),T),r(4),D(t.subjects),r(2),h(t.details?22:-1),r(),h(t.link?23:-1)}}var De=(()=>{class e{route=m(O);course$=this.route.data.pipe(B(t=>"course"in t),$(t=>t.course));static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-course-details"]],decls:2,vars:3,consts:[[1,"course-card"],[1,"course-card-header","sticky"],["mat-card-avatar","","routerLink","..","mat-icon-button",""],["name","arrow/left"],[1,"course-card-header-title"],["routerLink","..","mat-icon-button",""],["name","close-cross"],["matListItemIcon","","name","building/school"],["matListItemTitle",""],[3,"innerHTML"],[1,"course-card-actions"],["matListItemIcon","","name","arrow/chevron-right"],["matListItemLine",""],["target","_blank","rel","noopener noreferrer","mat-stroked-button","",3,"href"],["name","external-link"]],template:function(n,d){if(n&1&&(u(0,Ae,24,9,"mat-card",0),C(1,"async")),n&2){let g;h((g=_(1,1,d.course$))?0:-1,g)}},dependencies:[x,b,ge,pe,Ce,he,fe,_e,ue,te,Z,ee,Y,X,K,oe,ne,ie,J,ve,Me,W],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .course-card[_ngcontent-%COMP%]{height:100%;box-shadow:none;position:relative}[_nghost-%COMP%] .course-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-weight:600;font-size:1.2em}[_nghost-%COMP%] .course-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-line;line-height:1.2em;word-wrap:break-word}[_nghost-%COMP%] .course-card-header[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}[_nghost-%COMP%] .course-card-header[_ngcontent-%COMP%] .mat-mdc-card-avatar[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%] .course-card-actions[_ngcontent-%COMP%] .mdc-button__label{gap:.6em;display:flex;align-items:center}"],changeDetection:0})}return e})();var Fe=(()=>{class e{filterChange=V();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-course-ead-filter"]],outputs:{filterChange:"filterChange"},decls:3,vars:1,consts:[[3,"change"],[3,"value"]],template:function(n,d){n&1&&(i(0,"mat-chip-listbox",0),v("change",function(L){return d.filterChange.emit(L.value)}),i(1,"mat-chip-option",1),l(2," EAD "),o()()),n&2&&(r(),c("value",!0))},dependencies:[de,le,me],encapsulation:2,changeDetection:0})}return e})();var Ie=(e,a)=>a.id,Re=()=>[ce,I,import("./chunk-QQ3DFMVY.js").then(e=>e.AsyncPipe)],je=()=>[ye,b],$e=e=>[e],Be=e=>({right:e}),ze=e=>({outlets:e}),He=e=>["/","academia",e];function Ue(e,a){if(e&1&&(i(0,"a",4),s(1,"devmx-course-card",5),o()),e&2){let t=f().$implicit;c("routerLink",M(8,He,M(6,ze,M(4,Be,M(2,$e,t.id))))),r(),c("data",t)}}function Ve(e,a){e&1&&s(0,"devmx-skeleton",6),e&2&&c("rows",3)}function qe(e,a){e&1&&(u(0,Ue,2,10)(1,Ve,1,1),E(2,0,je,null,1),Q(0,-1))}function Ne(e,a){if(e&1){let t=G();i(0,"div",1),P(1,qe,4,0,null,null,Ie),o(),s(3,"div",2),i(4,"footer")(5,"devmx-paginator",3),v("pageChange",function(d){z(t);let g=f(2);return H(g.onPageChange(d))}),o()()}if(e&2){let t=a;r(),D(t.data),r(4),c("size",10)("items",t.items)}}function Qe(e,a){if(e&1&&(u(0,Ne,6,2),C(1,"async")),e&2){let t,n=f();h((t=_(1,1,n.courseFacade.response$))?0:-1,t)}}function Ge(e,a){e&1&&(i(0,"div",1),s(1,"devmx-skeleton",6)(2,"devmx-skeleton",6)(3,"devmx-skeleton",6),o()),e&2&&(r(),c("rows",3),r(),c("rows",2),r(),c("rows",3))}var Oe=(()=>{class e{courseFacade=m(S);router=m(w);route=m(O);constructor(){this.route.queryParams.pipe(y()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{page:n=0,size:d=10}=t;this.courseFacade.setParams({page:n,size:d}),this.courseFacade.load()};onEADFilterChange(t){let n=this.mergeParams({ead:t});this.router.navigate([],{queryParams:n})}mergeParams(t){return k(k({},this.route.snapshot.queryParams),t)}onPageChange(t){this.router.navigate([],{queryParams:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=p({type:e,selectors:[["devmx-courses"]],decls:6,vars:0,consts:[[3,"filterChange"],[1,"courses-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[3,"data"],[3,"rows"]],template:function(n,d){n&1&&(i(0,"header")(1,"devmx-course-ead-filter",0),v("filterChange",function(L){return d.onEADFilterChange(L)}),o()(),u(2,Qe,2,3)(3,Ge,4,3),E(4,2,Re,null,3),N(500))},dependencies:[Fe,I,x],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;padding:.4em .8em}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .courses-container[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1;display:flex}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return e})();var we=e=>se(m(S),e.params);var Qt=[{path:"",data:{breadcrumb:"Academia"},title:"Academia",canActivate:[R("member")],component:Pe,children:[{path:"administracao",canActivate:[R("academic","director","manager","staff")],loadChildren:()=>import("./chunk-SVV7FRLS.js").then(e=>e.academyFeatureAdminRoutes)},{path:"",data:{breadcrumb:"Cursos"},title:"Cursos",component:Oe},{path:":id",data:{breadcrumb:e=>e.course.name},resolve:{course:we},component:De,outlet:"right"}]}];export{Pe as AcademyFeatureShellComponent,Qt as academyFeatureShellRoutes}; diff --git a/chunk-UH3UXNJ6.js b/chunk-UH3UXNJ6.js new file mode 100644 index 00000000..93391adf --- /dev/null +++ b/chunk-UH3UXNJ6.js @@ -0,0 +1 @@ +import{a as G,b as I}from"./chunk-4422JARR.js";import{c as U}from"./chunk-IIJ56NAR.js";import"./chunk-WK53HQNR.js";import{a as B}from"./chunk-ZHS65JNW.js";import{c as $}from"./chunk-BLJCB4Q7.js";import"./chunk-2XST3EDK.js";import{a as A}from"./chunk-2GNIBV4J.js";import{a as z,b as L}from"./chunk-UOTKRQ63.js";import{a as Q}from"./chunk-YGTSZDQ5.js";import"./chunk-ZTWYID37.js";import"./chunk-XYJHVZQT.js";import"./chunk-HGOTYYGI.js";import"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as q}from"./chunk-A3N3AUUJ.js";import{g as T,h as k,i as R,j as u,p as C}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import"./chunk-EC6LD5KM.js";import{a as V}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as F,Hc as g,Jc as J,Kc as E,Nb as x,Ob as M,Rb as v,Tb as c,Yb as y,a as h,ac as j,bc as i,cc as o,dc as r,hc as w,je as S,ka as d,kc as f,lb as l,mc as O,ta as b,ua as P,ub as _,xc as D}from"./chunk-TEKHUYWQ.js";var X=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=_({type:e,selectors:[["devmx-career-feature-page"]],decls:10,vars:0,consts:[[1,"app-toolbar"],["routerLink","/",1,"app-logo"],["src","devmx.svg","height","48","alt","DevMX"],[1,"app-title"],[1,"spacer"],["target","_blank","rel","noreferrer","title","Github","href","https://github.com/DeveloperParana/devmx"],["name","github"]],template:function(t,a){t&1&&(i(0,"devmx-app-shell")(1,"mat-toolbar",0)(2,"a",1),r(3,"img",2),o(),i(4,"h1",3),D(5,"Vagas"),o(),r(6,"span",4),i(7,"a",5),r(8,"devmx-icon",6),o()(),r(9,"router-outlet"),o())},dependencies:[C,k,u,L,z,Q,V],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .app-toolbar[_ngcontent-%COMP%]{display:flex;gap:.4em}[_nghost-%COMP%] .app-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:48px}[_nghost-%COMP%] .app-title[_ngcontent-%COMP%]{font-size:.9em;font-weight:500;opacity:.4;margin:0}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1 1 auto}"],changeDetection:0})}return e})();var Y=(e,m)=>m.id,Z=()=>[U,u],ee=e=>[e],ne=e=>({right:e}),te=e=>({outlets:e}),oe=e=>["/","carreiras",e];function ie(e,m){if(e&1&&(i(0,"a",4),r(1,"devmx-job-opening-card",5),o()),e&2){let n=O().$implicit;c("routerLink",g(8,oe,g(6,te,g(4,ne,g(2,ee,n.id))))),l(),c("data",n)}}function re(e,m){e&1&&r(0,"devmx-skeleton",6),e&2&&c("rows",3)}function ae(e,m){e&1&&(x(0,ie,2,10)(1,re,1,1),M(2,0,Z,null,1),v(0,-1))}function pe(e,m){if(e&1){let n=w();i(0,"div",1),F(1,ae,4,0,null,null,Y),o(),r(3,"div",2),i(4,"footer")(5,"devmx-paginator",3),f("pageChange",function(a){b(n);let p=O();return P(p.onPageChange(a))}),o()()}if(e&2){let n=m;l(),j(n.data),l(4),c("size",10)("items",n.items)}}var H=(()=>{class e{jobOpeningFacade=d(A);router=d(R);route=d(T);constructor(){this.route.queryParams.pipe(q()).subscribe(this.onQueryParams)}onQueryParams=n=>{let{page:t=0,size:a=10}=n,{experience:p="",mode:s=""}=n,K={experience:p,mode:s};this.jobOpeningFacade.setParams({page:t,size:a,filter:K}),this.jobOpeningFacade.load()};onExperienceFilterChange(n){let t=this.mergeParams({experience:n});this.router.navigate([],{queryParams:t})}onModeFilterChange(n){let t=this.mergeParams({mode:n});this.router.navigate([],{queryParams:t})}mergeParams(n){return h(h({},this.route.snapshot.queryParams),n)}onPageChange(n){this.router.navigate([],{queryParams:n})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=_({type:e,selectors:[["devmx-job-openings"]],decls:5,vars:3,consts:[[3,"filterChange"],[1,"job-openings-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[1,"job-opening-card",3,"data"],[3,"rows"]],template:function(t,a){if(t&1&&(i(0,"header")(1,"devmx-job-opening-experience-filter",0),f("filterChange",function(s){return a.onExperienceFilterChange(s)}),o(),i(2,"devmx-job-opening-mode-filter",0),f("filterChange",function(s){return a.onModeFilterChange(s)}),o()(),x(3,pe,6,2),J(4,"async")),t&2){let p;l(3),y((p=E(4,1,a.jobOpeningFacade.response$))?3:-1,p)}},dependencies:[G,I,$,B,C,S],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;background-color:#fff}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;padding:.4em .8em;gap:1em}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .job-openings-container[_ngcontent-%COMP%] .job-opening-card[_ngcontent-%COMP%]{width:100%;max-width:100%;box-sizing:border-box}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return e})();var Je=[{path:"",title:"Vagas",component:X,children:[{path:"",component:H}]}];export{X as CareerFeaturePageComponent,Je as careerFeaturePageRoutes}; diff --git a/chunk-UQM5ZHMX.js b/chunk-UQM5ZHMX.js deleted file mode 100644 index 8d7d4e33..00000000 --- a/chunk-UQM5ZHMX.js +++ /dev/null @@ -1 +0,0 @@ -import{a as De}from"./chunk-6STDPPRP.js";import{a as Me}from"./chunk-KAZRQD4G.js";import"./chunk-ZQOXWN4S.js";import{a as W}from"./chunk-AD4TXQD3.js";import{h as We}from"./chunk-JX4IWPKV.js";import"./chunk-XC6WES62.js";import{b as Ee}from"./chunk-RRBYVHNZ.js";import{a as Q}from"./chunk-ZHS65JNW.js";import{c as Se}from"./chunk-VYHC3V3G.js";import"./chunk-3I45H2NO.js";import"./chunk-R66KDUEB.js";import"./chunk-MLNPCJDD.js";import{a as Ae,b as Ve,c as $e,d as Ne}from"./chunk-F2GYQZHU.js";import"./chunk-UOTKRQ63.js";import"./chunk-BJXILAOS.js";import{a as Be}from"./chunk-AC7KYN3P.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import{c as w,d as Pe,g as Fe}from"./chunk-NWAJWWA3.js";import"./chunk-XIUDFJWJ.js";import{a as z}from"./chunk-TZR6QHL3.js";import"./chunk-5DAHKZ7F.js";import{a as M}from"./chunk-A3N3AUUJ.js";import{C as ge,G as xe,H as ye,I as D}from"./chunk-4FWBEGAE.js";import{b as ze,c as Ue,g as je,h as Ge,i as He,j as qe,k as Qe}from"./chunk-RUSPURVH.js";import"./chunk-HGOTYYGI.js";import"./chunk-2K6IALUF.js";import{g as A,i as V,j as $,p as S}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import{a as de,d as ue,e as ve,f as _e,g as fe,i as Ce,l as he}from"./chunk-PAP2P7QR.js";import{a as we,b as be,c as Oe,d as Te,f as Ie,g as ke,h as Le,i as Re}from"./chunk-EC6LD5KM.js";import{a as N,h as re,i as me,m as se,p as le,s as ce,x as pe}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{$b as P,Ba as K,F as T,Fb as ee,Ha as X,Hc as E,Ia as G,Jc as v,Kc as C,Lc as q,Nb as _,Ob as H,Pb as te,Rb as ne,Tb as l,Yb as f,Yd as ie,_b as L,ac as F,ba as J,bc as o,cc as r,dc as s,gb as b,hc as R,je as oe,ka as p,kc as x,lb as a,mc as u,pe as ae,t as j,ta as I,u as Y,ua as k,ub as g,xb as Z,xc as c,yc as y,zc as B}from"./chunk-TEKHUYWQ.js";var Ye=(()=>{class e{router=p(V);destroyRef=p(K);authFacade=p(z);layoutFacade=p(Ee);ngOnInit(){this.authFacade.auth$.pipe(M(this.destroyRef)).subscribe(t=>{t&&(this.layoutFacade.loadNavLinks(t.roles),this.waitingForLogout())}),this.authFacade.load()}waitingForLogout(){this.authFacade.auth$.pipe(M(this.destroyRef)).subscribe(t=>{t===null&&(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=g({type:e,selectors:[["devmx-event-feature-shell"]],decls:1,vars:0,template:function(i,n){i&1&&s(0,"devmx-layout")},dependencies:[S,Me],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var Je=e=>Fe(p(w),e.params);var Ke=(()=>{class e{transform(t){switch(t){case"in-person":return"Presencial";case"online":return"Online";case"mixed":return"H\xEDbrido"}}static \u0275fac=function(i){return new(i||e)};static \u0275pipe=Z({name:"eventFormat",type:e,pure:!0})}return e})();var mt=e=>["/","evento",e];function st(e,m){if(e&1&&s(0,"img",7),e&2){let t=u();l("src",t.cover,b)("alt",t.title)}}function lt(e,m){if(e&1&&(o(0,"mat-list-item"),s(1,"devmx-icon",16),o(2,"div",9),c(3),r()()),e&2){let t=u();a(3),y(t.address)}}function ct(e,m){if(e&1&&s(0,"devmx-maps-button",18),e&2){let t=u();l("data",t)}}function pt(e,m){if(e&1&&s(0,"devmx-youtube-button",19),e&2){let t=u();l("data",t)}}function dt(e,m){if(e&1&&(o(0,"mat-card-content",12),s(1,"devmx-calendar-button",17),_(2,ct,1,1,"devmx-maps-button",18),v(3,"showEventAddress"),_(4,pt,1,1,"devmx-youtube-button",19),v(5,"showEventLink"),s(6,"devmx-whats-app-button",20),r()),e&2){let t=m;a(),l("data",t),a(),f(C(3,4,t.format)&&t.address?2:-1),a(2),f(C(5,6,t.format)&&t.link?4:-1),a(2),l("data",t)}}function ut(e,m){if(e&1&&(o(0,"mat-list-item"),s(1,"devmx-icon",22),o(2,"div",9),c(3),r()()),e&2){let t=m.$implicit;a(3),y(t.title)}}function vt(e,m){if(e&1&&(o(0,"mat-list")(1,"h3",21),c(2,"Apresenta\xE7\xF5es"),r(),P(3,ut,4,1,"mat-list-item",null,L),r()),e&2){let t=u();a(3),F(t.presentations)}}function _t(e,m){if(e&1&&(o(0,"mat-list-item"),s(1,"img",23),v(2,"photo"),o(3,"div",9),c(4),r()()),e&2){let t=m.$implicit;a(),l("src",C(2,3,t==null||t.profile==null?null:t.profile.photo),b)("alt",t.displayName),a(3),y(t.displayName)}}function ft(e,m){if(e&1&&(o(0,"mat-list")(1,"h3",21),c(2,"Organizadores"),r(),P(3,_t,5,5,"mat-list-item",null,L),r()),e&2){let t=u();a(3),F(t.leaders)}}function Ct(e,m){if(e&1&&(o(0,"mat-list-item"),s(1,"img",23),v(2,"photo"),o(3,"div",9),c(4),r()()),e&2){let t=m.$implicit;a(),l("src",C(2,3,t.user.profile==null?null:t.user.profile.photo),b)("alt",t.user.displayName),a(3),y(t.user.displayName)}}function ht(e,m){if(e&1){let t=R();o(0,"form",24)(1,"devmx-rsvp-button",25),x("statusChange",function(){I(t);let n=u(2);return k(n.onStatusChange())}),r()(),o(2,"mat-list")(3,"h3",21),c(4,"Presen\xE7as"),r(),P(5,Ct,5,5,"mat-list-item",null,L),r()}if(e&2){let t=u(2);l("formGroup",t.rsvpForm),a(5),F(m)}}function gt(e,m){if(e&1&&(o(0,"mat-card",0)(1,"mat-card-header",1)(2,"a",2),s(3,"devmx-icon",3),r(),o(4,"mat-card-title",4),c(5),r(),o(6,"a",5),s(7,"devmx-icon",6),r()(),_(8,st,1,2,"img",7),o(9,"mat-list")(10,"mat-list-item"),s(11,"devmx-icon",8),o(12,"div",9),c(13),v(14,"eventFormat"),r()(),o(15,"mat-list-item"),s(16,"devmx-icon",10),o(17,"div",9),c(18),v(19,"date"),r()(),o(20,"mat-list-item"),s(21,"devmx-icon",11),o(22,"div",9),c(23),v(24,"date"),r()(),_(25,lt,4,1,"mat-list-item"),r(),_(26,dt,7,8,"mat-card-content",12),v(27,"async"),o(28,"mat-card-content"),s(29,"devmx-markdown-view",13),o(30,"a",14),c(31," Ir para p\xE1gina do evento "),r()(),_(32,vt,5,0,"mat-list")(33,ft,5,0,"mat-list")(34,ht,7,1),v(35,"async"),o(36,"mat-card-header"),s(37,"img",15),v(38,"photo"),o(39,"mat-card-title"),c(40),r(),o(41,"mat-card-subtitle"),c(42," Organizador "),r()()()),e&2){let t,i,n=m,d=u();a(5),B(" ",n.title," "),a(3),f(n.cover?8:-1),a(5),y(C(14,15,n.format)),a(5),y(q(19,17,n.date,"shortDate")),a(5),B("",q(24,20,n.date,"shortTime"),"h"),a(2),f(n.address?25:-1),a(),f((t=C(27,23,d.eventFacade.page$))?26:-1,t),a(3),l("content",n.description),a(),l("routerLink",E(29,mt,n.id)),a(2),f(n.presentations.length?32:-1),a(),f(n.leaders.length?33:-1),a(),f((i=C(35,25,d.rsvpFacade.response$))?34:-1,i),a(3),l("src",C(38,27,n.owner.profile==null?null:n.owner.profile.photo),b)("alt",n.owner.displayName),a(3),B(" ",n.owner.displayName," ")}}var Xe=(()=>{class e{route=p(A);rsvpForm=new Qe;authFacade=p(z);eventFacade=p(w);rsvpFacade=p(Pe);event$=this.route.data.pipe(T(t=>"event"in t),j(t=>t.event),J(t=>this.setRSVPEvent(t.id)));constructor(){let t=this.authFacade.auth$.pipe(T(n=>!!n),j(n=>n.id)),i=this.rsvpFacade.response$.pipe(T(n=>n.length>0));Y([t,i]).pipe(M()).subscribe(([n,d])=>{let h=d.find(U=>U.user.id===n);h&&this.setRSVPStatus(h)})}setRSVPEvent=t=>{this.rsvpForm.patchValue({event:t}),this.rsvpFacade.loadConfirmed(t)};setRSVPStatus({status:t}){this.rsvpForm.patchValue({status:t},{emitEvent:!1})}onStatusChange(){this.rsvpForm.valid&&this.rsvpFacade.create(this.rsvpForm.getRawValue())}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=g({type:e,selectors:[["devmx-event-details"]],decls:2,vars:3,consts:[[1,"event-card"],[1,"event-card-header","sticky"],["mat-card-avatar","","routerLink","..","mat-icon-button",""],["name","arrow/left"],[1,"event-card-header-title"],["routerLink","..","mat-icon-button",""],["name","close-cross"],["mat-card-image","",3,"src","alt"],["matListItemIcon","","name","transport/flag-pin"],["matListItemTitle",""],["matListItemIcon","","name","calendar"],["matListItemIcon","","name","alarm-clock-alert"],[1,"event-card-buttons"],[3,"content"],["mat-raised-button","",3,"routerLink"],["mat-card-avatar","",3,"src","alt"],["matListItemIcon","","name","transport/map-pin"],["text","Definir lembrete",3,"data"],["text","Ver no mapa",3,"data"],["text","Assistir",3,"data"],["text","Compartilhar",3,"data"],["mat-subheader",""],["matListItemIcon","","name","presentation"],["matListItemAvatar","",3,"src","alt"],[1,"rsvp-button",3,"formGroup"],["formControlName","status",3,"statusChange"]],template:function(i,n){if(i&1&&(_(0,gt,43,31,"mat-card",0),v(1,"async")),i&2){let d;f((d=C(1,1,n.event$))?0:-1,d)}},dependencies:[S,$,pe,se,re,me,le,ce,Ue,Ve,$e,Ae,Ne,Re,we,Le,Oe,Ie,ke,Te,be,he,_e,fe,ue,ve,Ce,de,D,ge,ye,N,Ke,Be,je,Ge,De,oe,ae],styles:["[_nghost-%COMP%]{flex:1;height:100%;display:flex;flex-direction:column}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 16px;font-size:1.2em;font-weight:500;opacity:.6}[_nghost-%COMP%] .event-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-line;line-height:1.2em;word-wrap:break-word}[_nghost-%COMP%] .event-card-header[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}[_nghost-%COMP%] .event-card-header[_ngcontent-%COMP%] .mat-mdc-card-avatar[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%] .event-card-buttons[_ngcontent-%COMP%]{gap:1em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] .rsvp-button[_ngcontent-%COMP%]{padding:1em}"],changeDetection:0})}return e})();var Ze=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=g({type:e,selectors:[["devmx-event-home"]],decls:0,vars:0,template:function(i,n){},dependencies:[D,We],encapsulation:2,changeDetection:0})}return e})();var et=(()=>{class e{ascText=G("");descText=G("");sortChange=X();current=ee("asc");toggle(){this.current()==="asc"?this.current.set("desc"):this.current.set("asc"),this.sortChange.emit(this.current())}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=g({type:e,selectors:[["devmx-sort-direction"]],inputs:{ascText:[1,"ascText"],descText:[1,"descText"]},outputs:{sortChange:"sortChange"},exportAs:["sortDirection"],decls:4,vars:2,consts:[["mat-icon-button","",3,"click","ngClass"],["name","arrow/up"]],template:function(i,n){i&1&&(o(0,"span"),c(1),r(),o(2,"button",0),x("click",function(){return n.toggle()}),s(3,"devmx-icon",1),r()),i&2&&(a(),y(n.current()==="asc"?n.ascText():n.descText()),a(),l("ngClass",n.current()))},dependencies:[D,xe,N,ie],styles:["[_nghost-%COMP%]{display:inline-flex;align-items:center}[_nghost-%COMP%] button[_ngcontent-%COMP%]{transition:transform .6s cubic-bezier(.175,.885,.32,1.275)}[_nghost-%COMP%] button.asc[_ngcontent-%COMP%]{transform:rotate(-360deg)}[_nghost-%COMP%] button.desc[_ngcontent-%COMP%]{transform:rotate(540deg)}"]})}return e})();var xt=(e,m)=>m.id,yt=()=>[Se,Q,import("./chunk-QQ3DFMVY.js").then(e=>e.AsyncPipe)],Et=()=>[He,$],Mt=e=>[e],Pt=e=>({right:e}),Ft=e=>({outlets:e}),St=e=>["/","eventos",e];function Dt(e,m){if(e&1&&(o(0,"a",6),s(1,"devmx-event-card",7),r()),e&2){let t=u().$implicit;l("routerLink",E(8,St,E(6,Ft,E(4,Pt,E(2,Mt,t.id))))),a(),l("data",t)}}function wt(e,m){e&1&&s(0,"devmx-skeleton",8),e&2&&l("rows",3)}function bt(e,m){e&1&&(_(0,Dt,2,10)(1,wt,1,1),H(2,0,Et,null,1),ne(0,-1))}function Ot(e,m){if(e&1){let t=R();o(0,"div",3),P(1,bt,4,0,null,null,xt),r(),s(3,"div",4),o(4,"footer")(5,"devmx-paginator",5),x("pageChange",function(n){I(t);let d=u(2);return k(d.onPageChange(n))}),r()()}if(e&2){let t=m;a(),F(t.data),a(4),l("size",10)("items",t.items)}}function Tt(e,m){if(e&1&&(_(0,Ot,6,2),v(1,"async")),e&2){let t,i=u();f((t=C(1,1,i.eventFacade.response$))?0:-1,t)}}function It(e,m){e&1&&(o(0,"div",3),s(1,"devmx-skeleton",8)(2,"devmx-skeleton",8)(3,"devmx-skeleton",8),r()),e&2&&(a(),l("rows",3),a(),l("rows",2),a(),l("rows",3))}var tt=(()=>{class e{router=p(V);route=p(A);eventFacade=p(w);constructor(){this.route.queryParams.pipe(M()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{title:i="",format:n="",date:d="asc",time:h=""}=t,{page:U=0,size:nt=10}=t,it={title:i,format:n},ot={date:d};this.eventFacade.setParams({page:U,size:nt,filter:it,sort:ot}),h==="until"?this.eventFacade.loadUntil():this.eventFacade.load()};onFilterChange(t){let i={format:t};this.router.navigate([],{queryParams:i})}onTimeChange(t){let i={time:t};this.router.navigate([],{queryParams:i})}onSortChange(t){let i={date:t};this.router.navigate([],{queryParams:i})}onPageChange(t){this.router.navigate([],{queryParams:t})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=g({type:e,selectors:[["devmx-events"]],decls:9,vars:0,consts:[[3,"filterChange"],[3,"timeChange"],[3,"sortChange"],[1,"events-container"],[1,"spacer"],[3,"pageChange","size","items"],[3,"routerLink"],[1,"event-card",3,"data"],[3,"rows"]],template:function(i,n){i&1&&(o(0,"header")(1,"div")(2,"devmx-event-filter",0),x("filterChange",function(h){return n.onFilterChange(h)}),r(),o(3,"devmx-event-time",1),x("timeChange",function(h){return n.onTimeChange(h)}),r()(),o(4,"devmx-sort-direction",2),x("sortChange",function(h){return n.onSortChange(h)}),r()(),_(5,Tt,2,3)(6,It,4,3),H(7,5,yt,null,6),te(500))},dependencies:[qe,ze,et,Q,S],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-between;padding:.4em .8em}[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{gap:1em;padding:1em;display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,1fr)}@media (max-width: 1918px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media (max-width: 1278px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width: 767px){[_nghost-%COMP%] .events-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}[_nghost-%COMP%] .events-container[_ngcontent-%COMP%] .event-card[_ngcontent-%COMP%]{width:100%;max-width:100%;box-sizing:border-box}[_nghost-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return e})();var Qn=[{path:"",data:{breadcrumb:"Eventos"},canActivate:[W("member")],component:Ye,children:[{path:"administracao",canActivate:[W("leader","director","manager","staff")],loadChildren:()=>import("./chunk-RN3MKDGP.js").then(e=>e.eventFeatureAdminRoutes)},{path:"",title:"Eventos",component:tt},{path:":id",data:{breadcrumb:e=>e.event.title},title:"Evento",resolve:{event:Je},component:Xe,outlet:"right"},{path:"",component:Ze}]}];export{Ye as EventFeatureShellComponent,Qn as eventFeatureShellRoutes}; diff --git a/chunk-V6KASOE3.js b/chunk-V6KASOE3.js new file mode 100644 index 00000000..2f42793d --- /dev/null +++ b/chunk-V6KASOE3.js @@ -0,0 +1 @@ +import{a as s}from"./chunk-XIUDFJWJ.js";import{A as L,a as j,b as q,c as O,d as D,i as T,j as w,n as v,t as k,u as H}from"./chunk-XYJHVZQT.js";import{F as c,L as p,O as a,a as I,b as A,ba as g,c as b,t as F}from"./chunk-TEKHUYWQ.js";var o=class extends j{};var d=class{eventService;constructor(e){this.eventService=e}execute({id:e,title:r}){return this.eventService.copy(e,{id:e,title:r})}};function W(){return s(d,[o])}var m=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.create(e)}};function Y(){return s(m,[o])}var u=class{eventService;constructor(e){this.eventService=e}execute({event:e,status:r}){return this.eventService.createRSVP(e,r)}};function Q(){return s(u,[o])}var f=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.delete(e)}};function z(){return s(f,[o])}var x=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findAll(e)}};function _(){return s(x,[o])}var l=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findOne(e)}};function G(){return s(l,[o])}var h=class{eventService;constructor(e){this.eventService=e}execute(i){var R=i,{start:e,end:r}=R,n=b(R,["start","end"]);return this.eventService.findDateRange(e,r,n)}};function J(){return s(h,[o])}var E=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findUntil(e)}};function K(){return s(E,[o])}var C=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.find(e)}};function N(){return s(C,[o])}var S=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findMyEvents(e)}};function X(){return s(S,[o])}var U=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findRSVPByEvent(e)}};function Z(){return s(U,[o])}var y=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.findRSVPConfirmedByEvent(e)}};function ee(){return s(y,[o])}var P=class{eventService;constructor(e){this.eventService=e}execute(e){return this.eventService.update(e.id,e)}};function te(){return s(P,[o])}var M=class extends H{findAll(e){let r=[`${this.url}/all`,v(e)];return this.http.get(r.join("?"))}findUntil(e){let r=[`${this.url}/until`,v(e)];return this.http.get(r.join("?"))}findDateRange(e,r,n){let i=[`${this.url}/range/${e}/${r}`,v(n)];return this.http.get(i.join("?"))}findMyEvents(e){let r=[`${this.url}/my`,v(e)];return this.http.get(r.join("?"))}copy(e,r){let n=[this.url,e,"copy"];return this.http.patch(n.join("/"),r)}createRSVP(e,r){let n=[this.url,e,"rsvps"];return this.http.post(n.join("/"),{status:r})}findRSVPByEvent(e){let r=[this.url,e,"rsvps"];return this.http.get(r.join("/"))}findRSVPConfirmedByEvent(e){let r=[this.url,e,"rsvps","confirmed"];return this.http.get(r.join("/"))}};function re(){return{provide:o,useFactory(t,e){return new M(t,e,"events")},deps:[O,q]}}var Se=Math.pow(10,8)*24*60*60*1e3,kt=-Se;var oe=6e4;var Ue=3600;var ne=Ue*24,Ht=ne*7,ye=ne*365.2425,Pe=ye/12,Lt=Pe*3,V=Symbol.for("constructDateFrom");function se(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&V in t?t[V](e):t instanceof Date?new t.constructor(e):new Date(e)}function ie(t,e){return se(e||t,t)}function ce(t,e,r){let n=ie(t,r?.in);return n.setTime(n.getTime()+e*oe),n}function pe(t){let e=new Date(t.date??""),r=T(t.duration??"2h"),n=ce(e,r);return A(I({},t),{start:e,end:n})}var ae=t=>{switch(t){case"in-person":return"OfflineEventAttendanceMode";case"online":return"OnlineEventAttendanceMode";case"mixed":default:return"MixedEventAttendanceMode"}};function ve(t){return{"@context":"https://schema.org","@type":"Event",name:t.title,description:w(t.description??""),startDate:`${t.start}`,endDate:`${t.end}`,eventAttendanceMode:ae(t.format),eventSchedule:[{"@type":"Schedule"}]}}var $=class extends L{createEventUseCase;findEventsUseCase;findMyEventsUseCase;findAllEventsUseCase;findEventsUntilUseCase;findEventsDateRangeUseCase;findEventByIDUseCase;updateEventUseCase;copyEventUseCase;deleteEventUseCase;page$=this.select(e=>e.selected).pipe(c(e=>!!e),F(e=>pe(e)));schema$=this.page$.pipe(F(e=>ve(e)));constructor(e,r,n,i,R,xe,le,he,Ee,Ce){super({response:{data:[],items:0,pages:0},params:{page:0,size:10,filter:{title:"",format:""},sort:{date:"asc"}},selected:null}),this.createEventUseCase=e,this.findEventsUseCase=r,this.findMyEventsUseCase=n,this.findAllEventsUseCase=i,this.findEventsUntilUseCase=R,this.findEventsDateRangeUseCase=xe,this.findEventByIDUseCase=le,this.updateEventUseCase=he,this.copyEventUseCase=Ee,this.deleteEventUseCase=Ce}load(){this.onLoad(this.findEventsUseCase.execute(this.state.params))}loadAll(){this.onLoad(this.findAllEventsUseCase.execute(this.state.params))}loadDateRange(e,r){let n=I({start:e,end:r},this.state.params);this.onLoad(this.findEventsDateRangeUseCase.execute(n))}loadUntil(){this.onLoad(this.findEventsUntilUseCase.execute(this.state.params))}loadMyEvents(){this.onLoad(this.findMyEventsUseCase.execute(this.state.params))}loadOne(e){this.onLoadOne(this.findEventByIDUseCase.execute(e))}create(e){let r=this.createEventUseCase.execute(e),n=i=>this.setState({selected:i});return r.pipe(p(1),g(n))}copy(e){let r=this.copyEventUseCase.execute(e),n=i=>this.setState({selected:i});return r.pipe(p(1),g(n))}update(e){let r=this.updateEventUseCase.execute(e),n=i=>this.setState({selected:i});return r.pipe(p(1),g(n))}delete(e){this.onDelete(this.deleteEventUseCase.execute(e))}};function de(){return D($,[m,C,S,x,E,h,l,P,d,f])}var B=class extends k{createRSVPUseCase;findRSVPByEventUseCase;findRSVPConfirmedByEventUseCase;response$=this.select(e=>e.response);constructor(e,r,n){super({response:[]}),this.createRSVPUseCase=e,this.findRSVPByEventUseCase=r,this.findRSVPConfirmedByEventUseCase=n}load(e){let r=this.findRSVPByEventUseCase.execute(e),n=i=>{this.setState({response:i})};r.pipe(p(1)).subscribe(n)}loadConfirmed(e){let r=this.findRSVPConfirmedByEventUseCase.execute(e),n=i=>{this.setState({response:i})};r.pipe(p(1)).subscribe(n)}create(e){this.createRSVPUseCase.execute(e).pipe(p(1)).subscribe(()=>this.loadConfirmed(e.event))}};function me(){return D(B,[u,U,y])}function ue(){return[re(),Y(),N(),X(),_(),K(),J(),G(),te(),z(),W(),de()]}function fe(){return[Q(),Z(),ee(),me()]}function Ar(){return[...ue(),...fe()]}var qr=(t,e)=>(t.loadOne(e.id),t.page$.pipe(a(),c(r=>!!r)));var wr=(t,e)=>(t.loadOne(e.id),t.selected$.pipe(a(),c(r=>!!r)));var Lr=(t,e)=>(t.loadOne(e.id),t.schema$.pipe(a(),c(r=>!!r)));export{se as a,ie as b,$ as c,B as d,Ar as e,qr as f,wr as g,Lr as h}; diff --git a/chunk-3SNV2MVI.js b/chunk-VAO4SSMZ.js similarity index 88% rename from chunk-3SNV2MVI.js rename to chunk-VAO4SSMZ.js index a22b0133..a053fb1a 100644 --- a/chunk-3SNV2MVI.js +++ b/chunk-VAO4SSMZ.js @@ -1 +1 @@ -import{a as o}from"./chunk-2IAXMR6M.js";import{e as n}from"./chunk-KXTQ2UTD.js";import{mb as a,xb as i}from"./chunk-TEKHUYWQ.js";var s=(()=>{class r{sanitizer;constructor(t){this.sanitizer=t}transform(t){return this.sanitizer.bypassSecurityTrustHtml(t)}static \u0275fac=function(e){return new(e||r)(a(n,16))};static \u0275pipe=i({name:"html",type:r,pure:!0})}return r})();var u=(()=>{class r{transform(t){return o(t??"",{gfm:!0,async:!1})}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=i({name:"markdown",type:r,pure:!0})}return r})();export{s as a,u as b}; +import{a as o}from"./chunk-2IAXMR6M.js";import{e as n}from"./chunk-6BGAZ7SQ.js";import{mb as a,xb as i}from"./chunk-TEKHUYWQ.js";var s=(()=>{class r{sanitizer;constructor(t){this.sanitizer=t}transform(t){return this.sanitizer.bypassSecurityTrustHtml(t)}static \u0275fac=function(e){return new(e||r)(a(n,16))};static \u0275pipe=i({name:"html",type:r,pure:!0})}return r})();var u=(()=>{class r{transform(t){return o(t??"",{gfm:!0,async:!1})}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=i({name:"markdown",type:r,pure:!0})}return r})();export{s as a,u as b}; diff --git a/chunk-VHE4TYFV.js b/chunk-VHE4TYFV.js new file mode 100644 index 00000000..bb1fbd8f --- /dev/null +++ b/chunk-VHE4TYFV.js @@ -0,0 +1,5 @@ +import{a as ie,b as re}from"./chunk-AFH22WZE.js";import{d as oe}from"./chunk-YFMYPYPE.js";import{a as T}from"./chunk-WD4JQH2Z.js";import{a as Z,b as ee,d as te,e as ne}from"./chunk-VVQ6JEVH.js";import{b as j,c as Q,d as N,i as q,j as B}from"./chunk-AND6K73U.js";import{t as X,x as Y}from"./chunk-6BGAZ7SQ.js";import{a as K,c as M,g as U,h as H,l as G,o as J,x as W}from"./chunk-EDIJ2EBQ.js";import{Fb as D,Gb as I,Ia as m,Ib as g,Ja as F,Kb as O,Nb as P,Tb as _,Yb as $,bc as a,cc as l,dc as u,hc as z,kc as c,lb as d,mb as x,nc as L,oc as b,sb as A,ta as E,tc as y,ua as S,ub as h,uc as V,vc as C,xc as p,yc as k}from"./chunk-TEKHUYWQ.js";var se=["textareaRef"],R=(()=>{class r extends M{ngControl;textareaRef=I("textareaRef");get textarea(){let n=this.textareaRef();return n?n.nativeElement:null}autofocus=m(!1);get hasAutofocus(){let n=this.autofocus();return n===!0||n===""}resize=m(!0);label=m("");hint=m("");error=m("");minRows=m(5);maxRows=m(10);get control(){return this.ngControl.control??new G}constructor(n,t,e){super(n,t,!0),this.ngControl=e,this.ngControl.valueAccessor=this}handleKeydown(n){if(n.key==="Enter"&&this.textarea){let{selectionStart:t,value:e}=this.textarea,o=e.lastIndexOf(` +`,t-1)+1,i=e.slice(o,t),s=i.match(/^(\d+)\.\s/);if(s){if(i.match(/^(\d+)\.\s$/))return;n.preventDefault(),this.handleOrderedList(s,e,t)}if(i.match(/^-\s/)){if(i.match(/^-\s$/))return;n.preventDefault(),this.handleUnorderedList(e,t)}}}handleOrderedList(n,t,e){let i=parseInt(n[1],10)+1,s=t.slice(0,e),f=t.slice(e),v=`${s} +${i}. ${f}`;this.control.setValue(v),queueMicrotask(()=>{if(this.textarea){let w=e+` +${i}. `.length;this.textarea.setSelectionRange(w,w)}})}handleUnorderedList(n,t){let e=n.slice(0,t),o=n.slice(t),i=`${e} +- ${o}`;this.control.setValue(i),queueMicrotask(()=>{if(this.textarea){let s=t+3;this.textarea.setSelectionRange(s,s)}})}static \u0275fac=function(t){return new(t||r)(x(A),x(F),x(U,10))};static \u0275cmp=h({type:r,selectors:[["devmx-markdown-editor"]],viewQuery:function(t,e){t&1&&V(e.textareaRef,se,5),t&2&&C()},inputs:{autofocus:[1,"autofocus"],resize:[1,"resize"],label:[1,"label"],hint:[1,"hint"],error:[1,"error"],minRows:[1,"minRows"],maxRows:[1,"maxRows"]},exportAs:["markdownEditor"],features:[O],decls:10,vars:7,consts:[["textareaRef","","autosize","cdkTextareaAutosize"],["matInput","","cdkTextareaAutosize","",3,"keydown","formControl","autofocus","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(t,e){if(t&1){let o=z();a(0,"mat-form-field")(1,"mat-label"),p(2),l(),a(3,"textarea",1,0),c("keydown",function(s){return E(o),S(e.handleKeydown(s))}),l(),a(6,"mat-hint"),p(7),l(),a(8,"mat-error"),p(9),l()()}t&2&&(d(2),k(e.label()),d(),_("formControl",e.control)("autofocus",e.hasAutofocus)("cdkAutosizeMinRows",e.minRows())("cdkAutosizeMaxRows",e.maxRows()),d(4),k(e.hint()),d(2),k(e.error()))},dependencies:[W,M,H,J,B,q,j,N,Q,ee,Z,ne,te,oe],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return r})();var ce=[[["devmx-markdown-view"]],[["devmx-markdown-editor"]]],me=["devmx-markdown-view","devmx-markdown-editor"];function de(r,ae){r&1&&b(0)}function ue(r,ae){r&1&&b(0,1)}var Qe=(()=>{class r{editor=g(R);view=g(T);preview=D(!1);togglePreview(){this.preview.set(!this.preview())}applyFormat(n,t=n){let e=this.editor();if(!e||!e.textarea)return;let o=e.textarea.selectionStart,i=e.textarea.selectionEnd,s=e.control.value.slice(o,i),f=e.control.value.slice(0,o),v=e.control.value.slice(i),w=`${f}${n}${s}${t}${v}`;e.control.setValue(w),queueMicrotask(()=>{e.textarea&&(e.textarea.setSelectionRange(o+n.length,i+n.length),e.textarea.focus())})}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=h({type:r,selectors:[["devmx-markdown-toolbar"]],contentQueries:function(t,e,o){t&1&&(y(o,e.editor,R,5),y(o,e.view,T,5)),t&2&&C(2)},ngContentSelectors:me,decls:18,vars:2,consts:[[3,"change","checked"],["type","button","mat-mini-fab","",3,"click"],["name","text/heading"],["name","text/bold"],["name","text/italic"],["name","software/code"],["name","text/ordered-list"],["name","text/unordered-list"]],template:function(t,e){t&1&&(L(ce),a(0,"div")(1,"mat-checkbox",0),c("change",function(){return e.togglePreview()}),p(2," Visualiza\xE7\xE3o "),l(),a(3,"menu")(4,"button",1),c("click",function(){return e.applyFormat("### ","")}),u(5,"devmx-icon",2),l(),a(6,"button",1),c("click",function(){return e.applyFormat("**")}),u(7,"devmx-icon",3),l(),a(8,"button",1),c("click",function(){return e.applyFormat("_")}),u(9,"devmx-icon",4),l(),a(10,"button",1),c("click",function(){return e.applyFormat("`")}),u(11,"devmx-icon",5),l(),a(12,"button",1),c("click",function(){return e.applyFormat("1. ","")}),u(13,"devmx-icon",6),l(),a(14,"button",1),c("click",function(){return e.applyFormat("- ","")}),u(15,"devmx-icon",7),l()()(),P(16,de,1,0)(17,ue,1,0)),t&2&&(d(),_("checked",e.preview()),d(15),$(e.preview()?16:17))},dependencies:[Y,X,re,ie,K],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;margin:.2em 0;flex-direction:row;justify-content:flex-end}[_nghost-%COMP%] div[_ngcontent-%COMP%] menu[_ngcontent-%COMP%]{padding:0;display:flex;margin:.2em 0;flex-direction:row}[_nghost-%COMP%] .mat-mdc-mini-fab[_ngcontent-%COMP%]{background-color:transparent;box-shadow:unset}"],changeDetection:0})}return r})();export{R as a,Qe as b}; diff --git a/chunk-LFAX4DK3.js b/chunk-VVQ6JEVH.js similarity index 99% rename from chunk-LFAX4DK3.js rename to chunk-VVQ6JEVH.js index 7270b691..21ea71ad 100644 --- a/chunk-LFAX4DK3.js +++ b/chunk-VVQ6JEVH.js @@ -1 +1 @@ -import{f as Z,g as U,j as A}from"./chunk-2K6IALUF.js";import{e as G,g as K,k as $,p as Y}from"./chunk-EDIJ2EBQ.js";import{T as j,Y as M,Z as q,ba as W,f as h,h as x,i as z,q as E,t as y,u as k,x as w}from"./chunk-W5KNOAKV.js";import{$ as F,A as C,Fa as d,Fc as P,G as T,Ja as m,Mb as p,Sb as B,Vb as D,Vc as v,Zc as V,ea as S,ed as O,fa as c,ha as b,ic as N,j as l,ka as r,kc as g,n as I,sa as R,ub as L,vb as _,wb as f,zb as H}from"./chunk-TEKHUYWQ.js";var J=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=L({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,i){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0})}return s})(),X=z({passive:!0}),Q=(()=>{class s{_platform=r(h);_ngZone=r(d);_styleLoader=r(E);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return I;this._styleLoader.load(J);let t=w(e),i=this._monitoredElements.get(t);if(i)return i.subject;let n=new l,a="cdk-text-field-autofilled",o=u=>{u.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>n.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>n.next({target:u.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",o,X),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:n,unlisten:()=>{t.removeEventListener("animationstart",o,X)}}),n}stopMonitoring(e){let t=w(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=S({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var xe=(()=>{class s{_elementRef=r(m);_platform=r(h);_ngZone=r(d);_previousValue;_initialHeight;_destroyed=new l;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=k(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=k(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=r(O,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){r(E).load(J),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();C(e,"resize").pipe(T(16),F(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,t=e.style.marginBottom||"",i=this._platform.FIREFOX,n=i&&this._hasFocus,a=i?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";n&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let o=e.scrollHeight-4;return e.classList.remove(a),n&&(e.style.marginBottom=t),o}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}_handleFocusEvent=e=>{this._hasFocus=e.type==="focus"};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let t=this._elementRef.nativeElement,i=t.value;if(!e&&this._minRows===this._previousMinRows&&i===this._previousValue)return;let n=this._measureScrollHeight(),a=Math.max(n,this._cachedPlaceholderHeight||0);t.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){let{selectionStart:t,selectionEnd:i}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,i)}static \u0275fac=function(t){return new(t||s)};static \u0275dir=f({type:s,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,i){t&1&&g("input",function(){return i._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",v],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],features:[p]})}return s})(),ee=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=_({type:s});static \u0275inj=c({})}return s})();var ie=new b("MAT_INPUT_VALUE_ACCESSOR"),se=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ne=new b("MAT_INPUT_CONFIG"),Be=(()=>{class s{_elementRef=r(m);_platform=r(h);ngControl=r(K,{optional:!0,self:!0});_autofillMonitor=r(Q);_ngZone=r(d);_formField=r(U,{optional:!0});_uid=r(j).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_webkitBlinkWheelListenerAttached=!1;_config=r(ne,{optional:!0});_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new l;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=y(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(G.required)??!1}set required(e){this._required=y(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&x().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=y(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>x().has(e));constructor(){let e=r($,{optional:!0}),t=r(Y,{optional:!0}),i=r(W),n=r(ie,{optional:!0,self:!0}),a=this._elementRef.nativeElement,o=a.nodeName.toLowerCase();n?H(n.value)?this._signalBasedValueAccessor=n:this._inputValueAccessor=n:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{a.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new q(i,this.ngControl,t,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=o==="select",this._isTextarea=o==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&V(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let t=this._elementRef.nativeElement;t.type==="number"?(t.type="text",t.setSelectionRange(0,0),t.type="number"):t.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){se.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused&&!this.disabled||!this.empty}setDescribedByIds(e){let t=this._elementRef.nativeElement,i=t.getAttribute("aria-describedby"),n;if(i){let a=this._formFieldDescribedBy||e;n=e.concat(i.split(" ").filter(o=>o&&!a.includes(o)))}else n=e;this._formFieldDescribedBy=e,n.length?t.setAttribute("aria-describedby",n.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let t=e.target;!t.value&&t.selectionStart===0&&t.selectionEnd===0&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||s)};static \u0275dir=f({type:s,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(t,i){t&1&&g("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),t&2&&(N("id",i.id)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),B("name",i.name||null)("readonly",i._getReadonlyAttribute())("aria-disabled",i.disabled&&i.disabledInteractive?"true":null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),D("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mat-mdc-input-disabled-interactive",i.disabledInteractive)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",v]},exportAs:["matInput"],features:[P([{provide:Z,useExisting:s}]),p,R]})}return s})(),De=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=_({type:s});static \u0275inj=c({imports:[M,A,A,ee,M]})}return s})();export{xe as a,ee as b,ie as c,Be as d,De as e}; +import{f as Z,g as U,j as A}from"./chunk-AND6K73U.js";import{e as G,g as K,k as $,p as Y}from"./chunk-EDIJ2EBQ.js";import{T as j,Y as M,Z as q,ba as W,f as h,h as x,i as z,q as E,t as y,u as k,x as w}from"./chunk-W5KNOAKV.js";import{$ as F,A as C,Fa as d,Fc as P,G as T,Ja as m,Mb as p,Sb as B,Vb as D,Vc as v,Zc as V,ea as S,ed as O,fa as c,ha as b,ic as N,j as l,ka as r,kc as g,n as I,sa as R,ub as L,vb as _,wb as f,zb as H}from"./chunk-TEKHUYWQ.js";var J=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=L({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,i){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0})}return s})(),X=z({passive:!0}),Q=(()=>{class s{_platform=r(h);_ngZone=r(d);_styleLoader=r(E);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return I;this._styleLoader.load(J);let t=w(e),i=this._monitoredElements.get(t);if(i)return i.subject;let n=new l,a="cdk-text-field-autofilled",o=u=>{u.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>n.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>n.next({target:u.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",o,X),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:n,unlisten:()=>{t.removeEventListener("animationstart",o,X)}}),n}stopMonitoring(e){let t=w(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=S({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var xe=(()=>{class s{_elementRef=r(m);_platform=r(h);_ngZone=r(d);_previousValue;_initialHeight;_destroyed=new l;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=k(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=k(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=r(O,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){r(E).load(J),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();C(e,"resize").pipe(T(16),F(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,t=e.style.marginBottom||"",i=this._platform.FIREFOX,n=i&&this._hasFocus,a=i?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";n&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let o=e.scrollHeight-4;return e.classList.remove(a),n&&(e.style.marginBottom=t),o}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}_handleFocusEvent=e=>{this._hasFocus=e.type==="focus"};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let t=this._elementRef.nativeElement,i=t.value;if(!e&&this._minRows===this._previousMinRows&&i===this._previousValue)return;let n=this._measureScrollHeight(),a=Math.max(n,this._cachedPlaceholderHeight||0);t.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){let{selectionStart:t,selectionEnd:i}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,i)}static \u0275fac=function(t){return new(t||s)};static \u0275dir=f({type:s,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,i){t&1&&g("input",function(){return i._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",v],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],features:[p]})}return s})(),ee=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=_({type:s});static \u0275inj=c({})}return s})();var ie=new b("MAT_INPUT_VALUE_ACCESSOR"),se=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ne=new b("MAT_INPUT_CONFIG"),Be=(()=>{class s{_elementRef=r(m);_platform=r(h);ngControl=r(K,{optional:!0,self:!0});_autofillMonitor=r(Q);_ngZone=r(d);_formField=r(U,{optional:!0});_uid=r(j).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_webkitBlinkWheelListenerAttached=!1;_config=r(ne,{optional:!0});_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new l;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=y(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(G.required)??!1}set required(e){this._required=y(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&x().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=y(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>x().has(e));constructor(){let e=r($,{optional:!0}),t=r(Y,{optional:!0}),i=r(W),n=r(ie,{optional:!0,self:!0}),a=this._elementRef.nativeElement,o=a.nodeName.toLowerCase();n?H(n.value)?this._signalBasedValueAccessor=n:this._inputValueAccessor=n:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{a.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new q(i,this.ngControl,t,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=o==="select",this._isTextarea=o==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&V(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let t=this._elementRef.nativeElement;t.type==="number"?(t.type="text",t.setSelectionRange(0,0),t.type="number"):t.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){se.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused&&!this.disabled||!this.empty}setDescribedByIds(e){let t=this._elementRef.nativeElement,i=t.getAttribute("aria-describedby"),n;if(i){let a=this._formFieldDescribedBy||e;n=e.concat(i.split(" ").filter(o=>o&&!a.includes(o)))}else n=e;this._formFieldDescribedBy=e,n.length?t.setAttribute("aria-describedby",n.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let t=e.target;!t.value&&t.selectionStart===0&&t.selectionEnd===0&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||s)};static \u0275dir=f({type:s,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(t,i){t&1&&g("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),t&2&&(N("id",i.id)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),B("name",i.name||null)("readonly",i._getReadonlyAttribute())("aria-disabled",i.disabled&&i.disabledInteractive?"true":null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),D("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mat-mdc-input-disabled-interactive",i.disabledInteractive)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",v]},exportAs:["matInput"],features:[P([{provide:Z,useExisting:s}]),p,R]})}return s})(),De=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=_({type:s});static \u0275inj=c({imports:[M,A,A,ee,M]})}return s})();export{xe as a,ee as b,ie as c,Be as d,De as e}; diff --git a/chunk-VWDLBNLC.js b/chunk-VWDLBNLC.js deleted file mode 100644 index 4deec10f..00000000 --- a/chunk-VWDLBNLC.js +++ /dev/null @@ -1 +0,0 @@ -import{a,b,c,d,e,f,g,h,i,j}from"./chunk-L3M72EYY.js";import"./chunk-VE4FGS76.js";import"./chunk-LFAX4DK3.js";import"./chunk-JX4IWPKV.js";import"./chunk-XC6WES62.js";import"./chunk-VYHC3V3G.js";import"./chunk-3I45H2NO.js";import"./chunk-R66KDUEB.js";import"./chunk-WVZCQXYK.js";import"./chunk-BJXILAOS.js";import"./chunk-A3N3AUUJ.js";import"./chunk-4FWBEGAE.js";import"./chunk-HGOTYYGI.js";import"./chunk-2K6IALUF.js";import"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import"./chunk-EC6LD5KM.js";import"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import"./chunk-TEKHUYWQ.js";export{g as PresentationCardComponent,b as PresentationCardListComponent,f as PresentationEmbedComponent,c as PresentationFilterComponent,a as PresentationFormatPipe,e as PresentationSearchComponent,d as PresentationSearchForm,i as SelectPresentation,h as SelectPresentationDialog,j as provideSelectPresentation}; diff --git a/chunk-VYHC3V3G.js b/chunk-VYHC3V3G.js deleted file mode 100644 index 492e3822..00000000 --- a/chunk-VYHC3V3G.js +++ /dev/null @@ -1 +0,0 @@ -import{a as Et,b as Lt}from"./chunk-3I45H2NO.js";import{e as V,h as zt}from"./chunk-R66KDUEB.js";import{a as Dt}from"./chunk-BJXILAOS.js";import{G as St,I as wt,J as Ot,M as Mt}from"./chunk-4FWBEGAE.js";import{i as Ct}from"./chunk-2K6IALUF.js";import{H as bt,Q as yt,S as Pt,T as Tt,U as It,Y as X,f as ut,i as ft,na as xt,s as vt,t as H,u as j}from"./chunk-W5KNOAKV.js";import{$ as g,$b as lt,Ea as J,Eb as nt,Fa as tt,Ha as et,Ia as G,Ja as E,Mb as st,Nb as D,Pa as it,Sb as y,Sc as N,Tb as d,Va as ot,Vb as Y,Vc as F,Wc as M,Yb as P,Yd as _t,_b as rt,a as x,ac as pt,bc as s,cc as p,dc as O,ea as Z,ed as gt,fa as z,ha as S,hc as T,j as C,ka as r,kc as c,l as $,la as Q,lb as l,ma as W,mb as L,mc as h,qc as dt,rc as ct,sc as ht,ta as _,ua as u,ub as b,va as w,vb as A,wa as q,wb as at,wc as mt,xc as f,yc as R,za as K,zc as k}from"./chunk-TEKHUYWQ.js";var Ht=["tooltip"],Nt=20;var Ft=new S("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let o=r(V);return()=>o.scrollStrategies.reposition({scrollThrottle:Nt})}});function jt(o){return()=>o.scrollStrategies.reposition({scrollThrottle:Nt})}var Xt={provide:Ft,deps:[V],useFactory:jt};function Ut(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var $t=new S("mat-tooltip-default-options",{providedIn:"root",factory:Ut});var At="tooltip-panel",Rt=ft({passive:!0}),Zt=8,Qt=8,Wt=24,qt=200,Vt=(()=>{class o{_overlay=r(V);_elementRef=r(E);_scrollDispatcher=r(Ot);_viewContainerRef=r(nt);_ngZone=r(tt);_platform=r(ut);_ariaDescriber=r(bt);_focusMonitor=r(yt);_dir=r(It);_injector=r(K);_defaultOptions=r($t,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=r(Ft);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Kt;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=H(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let e=H(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=j(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=j(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=r(gt);_touchstartTimeout=null;_destroyed=new C;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._dir.change.pipe(g(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=Zt}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(g(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,Rt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(e);this._detach(),this._portal=this._portal||new Dt(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=i.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(g(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(t)}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&a._origin instanceof E)return this._overlayRef;this._detach()}let e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(g(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${At}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(g(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(g(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(g(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!vt(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let e=t.getConfig().positionStrategy,i=this._getOrigin(),a=this._getOverlayPosition();e.withPositions([this._addOffset(x(x({},i.main),a.main)),this._addOffset(x(x({},i.fallback),a.fallback))])}_addOffset(t){let e=Qt,i=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=i?-e:e:t.originX==="end"&&(t.offsetX=i?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"||e=="below"?i={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={originX:"end",originY:"center"});let{x:a,y:n}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:a,originY:n}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"?i={overlayX:"center",overlayY:"bottom"}:e=="below"?i={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={overlayX:"start",overlayY:"center"});let{x:a,y:n}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:a,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),ot(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:i,originY:a}=t,n;if(e==="center"?this._dir&&this._dir.value==="rtl"?n=i==="end"?"left":"right":n=i==="start"?"left":"right":n=e==="bottom"&&a==="top"?"above":"below",n!==this._currentPosition){let m=this._overlayRef;if(m){let I=`${this._cssClassPrefix}-${At}-`;m.removePanelClass(I+this._currentPosition),m.addPanelClass(I+n)}this._currentPosition=n}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let e=t.targetTouches?.[0],i=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i)},this._defaultOptions?.touchLongPressShowDelay??a)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",e=>{let i=e.relatedTarget;(!i||!this._overlayRef?.overlayElement.contains(i))&&this.hide()}],["wheel",e=>this._wheelListener(e)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([e,i])=>{this._elementRef.nativeElement.addEventListener(e,i,Rt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let e=this._document.elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e!==i&&!i.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,i=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(t==="on"||!e.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static \u0275fac=function(e){return new(e||o)};static \u0275dir=at({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,i){e&2&&Y("mat-mdc-tooltip-disabled",i.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return o})(),Kt=(()=>{class o{_changeDetectorRef=r(N);_elementRef=r(E);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new C;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let t=r(it,{optional:!0});this._animationsDisabled=t==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>Wt&&t.width>=qt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let e=this._tooltip.nativeElement,i=this._showAnimation,a=this._hideAnimation;if(e.classList.remove(t?a:i),e.classList.add(t?i:a),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let n=getComputedStyle(e);(n.getPropertyValue("animation-duration")==="0s"||n.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=b({type:o,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(e&1&&dt(Ht,7),e&2){let a;ct(a=ht())&&(i._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,i){e&1&&c("mouseleave",function(n){return i._handleMouseLeave(n)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,i){if(e&1){let a=T();s(0,"div",1,0),c("animationend",function(m){return _(a),u(i._handleAnimationEnd(m))}),s(2,"div",2),f(3),p()()}e&2&&(Y("mdc-tooltip--multiline",i._isMultiline),d("ngClass",i.tooltipClass),l(3),R(i.message))},dependencies:[_t],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return o})();var Bt=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=A({type:o});static \u0275inj=z({providers:[Xt],imports:[Pt,zt,X,X,Mt]})}return o})();function Jt(o,v){if(o&1&&(s(0,"mat-option",17),f(1),p()),o&2){let t=v.$implicit;d("value",t),l(),k(" ",t," ")}}function te(o,v){if(o&1){let t=T();s(0,"mat-form-field",14)(1,"mat-select",16,0),c("selectionChange",function(i){_(t);let a=h(2);return u(a._changePageSize(i.value))}),lt(3,Jt,2,2,"mat-option",17,rt),p(),s(5,"div",18),c("click",function(){_(t);let i=mt(2);return u(i.open())}),p()()}if(o&2){let t=h(2);d("appearance",t._formFieldAppearance)("color",t.color),l(),d("value",t.pageSize)("disabled",t.disabled)("aria-labelledby",t._pageSizeLabelId)("panelClass",t.selectConfig.panelClass||"")("disableOptionCentering",t.selectConfig.disableOptionCentering),l(2),pt(t._displayedPageSizeOptions)}}function ee(o,v){if(o&1&&(s(0,"div",15),f(1),p()),o&2){let t=h(2);l(),R(t.pageSize)}}function ie(o,v){if(o&1&&(s(0,"div",3)(1,"div",13),f(2),p(),D(3,te,6,7,"mat-form-field",14)(4,ee,2,1,"div",15),p()),o&2){let t=h();l(),y("id",t._pageSizeLabelId),l(),k(" ",t._intl.itemsPerPageLabel," "),l(),P(t._displayedPageSizeOptions.length>1?3:-1),l(),P(t._displayedPageSizeOptions.length<=1?4:-1)}}function oe(o,v){if(o&1){let t=T();s(0,"button",19),c("click",function(){_(t);let i=h();return u(i.firstPage())}),w(),s(1,"svg",8),O(2,"path",20),p()()}if(o&2){let t=h();d("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),y("aria-label",t._intl.firstPageLabel)}}function ae(o,v){if(o&1){let t=T();s(0,"button",21),c("click",function(){_(t);let i=h();return u(i.lastPage())}),w(),s(1,"svg",8),O(2,"path",22),p()()}if(o&2){let t=h();d("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),y("aria-label",t._intl.lastPageLabel)}}var B=(()=>{class o{changes=new C;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(t,e,i)=>{if(i==0||e==0)return`0 of ${i}`;i=Math.max(i,0);let a=t*e,n=a{class o{_intl;_changeDetectorRef;_formFieldAppearance;_pageSizeLabelId=r(Tt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new $(1);color;get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(e=>M(e,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new J;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(t,e,i){if(this._intl=t,this._changeDetectorRef=e,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:a,pageSizeOptions:n,hidePageSize:m,showFirstLastButtons:I}=i;a!=null&&(this._pageSize=a),n!=null&&(this._pageSizeOptions=n),m!=null&&(this.hidePageSize=m),I!=null&&(this.showFirstLastButtons=I)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static \u0275fac=function(e){return new(e||o)(L(B),L(N),L(le,8))};static \u0275cmp=b({type:o,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",M],length:[2,"length","length",M],pageSize:[2,"pageSize","pageSize",M],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",F],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",F],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",F]},outputs:{page:"page"},exportAs:["matPaginator"],features:[st],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,i){e&1&&(s(0,"div",1)(1,"div",2),D(2,ie,5,4,"div",3),s(3,"div",4)(4,"div",5),f(5),p(),D(6,oe,3,5,"button",6),s(7,"button",7),c("click",function(){return i.previousPage()}),w(),s(8,"svg",8),O(9,"path",9),p()(),q(),s(10,"button",10),c("click",function(){return i.nextPage()}),w(),s(11,"svg",8),O(12,"path",11),p()(),D(13,ae,3,5,"button",12),p()()()),e&2&&(l(2),P(i.hidePageSize?-1:2),l(3),k(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),l(),P(i.showFirstLastButtons?6:-1),l(),d("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),y("aria-label",i._intl.previousPageLabel),l(3),d("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),y("aria-label",i._intl.nextPageLabel),l(3),P(i.showFirstLastButtons?13:-1))},dependencies:[Ct,Et,xt,St,Vt],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}"],encapsulation:2,changeDetection:0})}return o})(),Gt=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=A({type:o});static \u0275inj=z({providers:[se],imports:[wt,Lt,Bt,U]})}return o})();var Ke=(()=>{class o{items=G(0);size=G(10);pageChange=et();onChange({pageIndex:t,pageSize:e}){this.pageChange.emit({page:t,size:e})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=b({type:o,selectors:[["devmx-paginator"]],inputs:{items:[1,"items"],size:[1,"size"]},outputs:{pageChange:"pageChange"},decls:1,vars:2,consts:[["hidePageSize","",3,"page","pageSize","length"]],template:function(e,i){e&1&&(s(0,"mat-paginator",0),c("page",function(n){return i.onChange(n)}),p()),e&2&&d("pageSize",i.size())("length",i.items())},dependencies:[Gt,U],styles:["[_nghost-%COMP%]{display:flex;justify-content:center}[_nghost-%COMP%] .mat-mdc-paginator[_ngcontent-%COMP%]{background-color:transparent}"],changeDetection:0})}return o})();export{Vt as a,Bt as b,Ke as c}; diff --git a/chunk-AC7KYN3P.js b/chunk-WD4JQH2Z.js similarity index 95% rename from chunk-AC7KYN3P.js rename to chunk-WD4JQH2Z.js index cbf3296f..d5dc0804 100644 --- a/chunk-AC7KYN3P.js +++ b/chunk-WD4JQH2Z.js @@ -1,2 +1,2 @@ -import{a as w,b as d}from"./chunk-3SNV2MVI.js";import{Ia as i,Jc as e,Kc as n,Tb as p,dc as m,fb as a,ub as r}from"./chunk-TEKHUYWQ.js";var f=(()=>{class o{content=i.required();static \u0275fac=function(t){return new(t||o)};static \u0275cmp=r({type:o,selectors:[["devmx-markdown-view"]],inputs:{content:[1,"content"]},decls:3,vars:5,consts:[[1,"markdown-view",3,"innerHTML"]],template:function(t,h){t&1&&(m(0,"div",0),e(1,"markdown"),e(2,"html")),t&2&&p("innerHTML",n(2,3,n(1,1,h.content())),a)},dependencies:[d,w],styles:[`:host{padding:1em;display:flex;flex-direction:column}.markdown-view{gap:0}.markdown-view ul{margin:0}.markdown-view ul li{margin:0;padding:0}.markdown-view p{margin-bottom:24px!important;line-height:24px;padding:0;white-space:pre-wrap}:root .mat-typography .markdown-view>h1,:root .mat-typography .markdown-view>h2,:root .mat-typography .markdown-view>h3,:root .mat-typography .markdown-view>h4,:root .mat-typography .markdown-view>h5,:root .mat-typography .markdown-view>h6{font-weight:600;margin:1em 0 0}:root .mat-typography .markdown-view>h1{font-size:1.7em}:root .mat-typography .markdown-view>h2{font-size:1.6em}:root .mat-typography .markdown-view>h3{font-size:1.5em}:root .mat-typography .markdown-view>h4{font-size:1.4em}:root .mat-typography .markdown-view>h5{font-size:1.3em}:root .mat-typography .markdown-view>h6{font-size:1.2em}:root .mat-typography .markdown-view p{padding:1em 0 0}:root .mat-typography .markdown-view ul+p{margin-top:1em} +import{a as w,b as d}from"./chunk-VAO4SSMZ.js";import{Ia as i,Jc as e,Kc as n,Tb as p,dc as m,fb as a,ub as r}from"./chunk-TEKHUYWQ.js";var f=(()=>{class o{content=i.required();static \u0275fac=function(t){return new(t||o)};static \u0275cmp=r({type:o,selectors:[["devmx-markdown-view"]],inputs:{content:[1,"content"]},decls:3,vars:5,consts:[[1,"markdown-view",3,"innerHTML"]],template:function(t,h){t&1&&(m(0,"div",0),e(1,"markdown"),e(2,"html")),t&2&&p("innerHTML",n(2,3,n(1,1,h.content())),a)},dependencies:[d,w],styles:[`:host{padding:1em;display:flex;flex-direction:column}.markdown-view{gap:0}.markdown-view ul{margin:0}.markdown-view ul li{margin:0;padding:0}.markdown-view p{margin-bottom:24px!important;line-height:24px;padding:0;white-space:pre-wrap}:root .mat-typography .markdown-view>h1,:root .mat-typography .markdown-view>h2,:root .mat-typography .markdown-view>h3,:root .mat-typography .markdown-view>h4,:root .mat-typography .markdown-view>h5,:root .mat-typography .markdown-view>h6{font-weight:600;margin:1em 0 0}:root .mat-typography .markdown-view>h1{font-size:1.7em}:root .mat-typography .markdown-view>h2{font-size:1.6em}:root .mat-typography .markdown-view>h3{font-size:1.5em}:root .mat-typography .markdown-view>h4{font-size:1.4em}:root .mat-typography .markdown-view>h5{font-size:1.3em}:root .mat-typography .markdown-view>h6{font-size:1.2em}:root .mat-typography .markdown-view p{padding:1em 0 0}:root .mat-typography .markdown-view ul+p{margin-top:1em} `],encapsulation:2,changeDetection:0})}return o})();export{f as a}; diff --git a/chunk-RRBYVHNZ.js b/chunk-WKFJTKSD.js similarity index 93% rename from chunk-RRBYVHNZ.js rename to chunk-WKFJTKSD.js index 2a2c22b4..efe69d11 100644 --- a/chunk-RRBYVHNZ.js +++ b/chunk-WKFJTKSD.js @@ -1 +1 @@ -import{a as d}from"./chunk-BJXILAOS.js";import{l as h,t as c}from"./chunk-4FWBEGAE.js";import{a,b as l}from"./chunk-TEKHUYWQ.js";var o=class{route;label;icon;badge;roles;#t=!1;get showLock(){return this.#t}#e="lock";get lock(){return this.#e}#s=!1;get disabled(){return this.#s}kind="link";constructor(t){this.route=t.route,this.label=t.label,this.icon=t.icon,this.badge=t.badge,this.roles=t.roles??[],this.roles.length>1&&(this.#t=!0)}validate(t){let e=this.roles.some(s=>t[s]);return this.#i(e),e}#i(t){this.#t=!0,t?this.#e="opened-lock":(this.#s=!0,this.route=[])}};var r=class{label;links;expanded;icon;constructor(t,e,s,i){this.label=t,this.links=e,this.expanded=s,this.icon=i}};var m=(n,t)=>n.map(e=>{let s=e.links.map(i=>new o(i)).map(i=>(i.roles.length&&i.validate(t),i));return l(a({},e),{links:s})}).filter(e=>e.links.some(s=>!s.disabled)).map(({label:e,links:s,expanded:i,icon:v})=>new r(e,s,i,v));var u=class extends c{sections;loader$=this.select(t=>t.loader);mobile$=this.select(t=>t.mobile);sidenav$=this.select(t=>t.sidenav);sidenavStart$=this.select(t=>t.sidenav.start);sidenavEnd$=this.select(t=>t.sidenav.end);component$=this.select(t=>t.component);sections$=this.select(t=>t.sections);#t;#e;constructor(t,e=[]){super({loader:!1,mobile:!1,component:null,sections:[],sidenav:{start:!0,end:!1}}),this.sections=e,this.#t=t.matchMedia("(max-width: 600px)"),this.#e=s=>{s.matches&&this.setSidenav({start:!1}),this.setMobile(s.matches)},this.setMobile(this.#t.matches),h(()=>{this.#t.matches&&this.setSidenav({start:!1})},500),this.#t.addEventListener("change",this.#e)}loadNavLinks(t){this.setState({sections:m(this.sections,t)})}resetNavLinks(){this.setState({sections:[]})}setLoader(t){this.setState({loader:t})}setMobile(t){this.setState({mobile:t})}setComponent(t){let e=new d(t);this.setState({component:e})}resetComponent(){this.setState({component:null})}setSidenav(t){let{sidenav:e}=this.state;this.setState({sidenav:a(a({},e),t)})}destroyListener(){this.#t.removeEventListener("change",this.#e)}};var p=class{auth;constructor(t){this.auth=t}};export{p as a,u as b}; +import{l as h,t as c}from"./chunk-XYJHVZQT.js";import{a as d}from"./chunk-BJXILAOS.js";import{a,b as l}from"./chunk-TEKHUYWQ.js";var o=class{route;label;icon;badge;roles;#t=!1;get showLock(){return this.#t}#e="lock";get lock(){return this.#e}#s=!1;get disabled(){return this.#s}kind="link";constructor(t){this.route=t.route,this.label=t.label,this.icon=t.icon,this.badge=t.badge,this.roles=t.roles??[],this.roles.length>1&&(this.#t=!0)}validate(t){let e=this.roles.some(s=>t[s]);return this.#i(e),e}#i(t){this.#t=!0,t?this.#e="opened-lock":(this.#s=!0,this.route=[])}};var r=class{label;links;expanded;icon;constructor(t,e,s,i){this.label=t,this.links=e,this.expanded=s,this.icon=i}};var m=(n,t)=>n.map(e=>{let s=e.links.map(i=>new o(i)).map(i=>(i.roles.length&&i.validate(t),i));return l(a({},e),{links:s})}).filter(e=>e.links.some(s=>!s.disabled)).map(({label:e,links:s,expanded:i,icon:v})=>new r(e,s,i,v));var u=class extends c{sections;loader$=this.select(t=>t.loader);mobile$=this.select(t=>t.mobile);sidenav$=this.select(t=>t.sidenav);sidenavStart$=this.select(t=>t.sidenav.start);sidenavEnd$=this.select(t=>t.sidenav.end);component$=this.select(t=>t.component);sections$=this.select(t=>t.sections);#t;#e;constructor(t,e=[]){super({loader:!1,mobile:!1,component:null,sections:[],sidenav:{start:!0,end:!1}}),this.sections=e,this.#t=t.matchMedia("(max-width: 600px)"),this.#e=s=>{s.matches&&this.setSidenav({start:!1}),this.setMobile(s.matches)},this.setMobile(this.#t.matches),h(()=>{this.#t.matches&&this.setSidenav({start:!1})},500),this.#t.addEventListener("change",this.#e)}loadNavLinks(t){this.setState({sections:m(this.sections,t)})}resetNavLinks(){this.setState({sections:[]})}setLoader(t){this.setState({loader:t})}setMobile(t){this.setState({mobile:t})}setComponent(t){let e=new d(t);this.setState({component:e})}resetComponent(){this.setState({component:null})}setSidenav(t){let{sidenav:e}=this.state;this.setState({sidenav:a(a({},e),t)})}destroyListener(){this.#t.removeEventListener("change",this.#e)}};var p=class{auth;constructor(t){this.auth=t}};export{p as a,u as b}; diff --git a/chunk-HYAMKYUE.js b/chunk-WOE5TNBB.js similarity index 98% rename from chunk-HYAMKYUE.js rename to chunk-WOE5TNBB.js index 25acbe86..018f4cfe 100644 --- a/chunk-HYAMKYUE.js +++ b/chunk-WOE5TNBB.js @@ -1,2 +1,2 @@ -import{a as ft,e as ht}from"./chunk-R66KDUEB.js";import{a as V,b as pt,c as ut,f as H}from"./chunk-BJXILAOS.js";import{B as D,I as N}from"./chunk-4FWBEGAE.js";import{c as st,d as F,g as R,h as L,j as z}from"./chunk-I7VYXJU2.js";import{D as ct,E as lt,P as dt,T as mt,f as rt}from"./chunk-W5KNOAKV.js";import{$ as W,Fa as Z,Ja as K,Kb as $,Nb as k,Sb as G,Sc as at,Tb as Y,Yb as M,Yd as ot,a as f,bc as d,cc as c,dc as J,ea as y,ed as it,ha as E,hc as B,j as p,jc as tt,ka as o,kc as w,lb as l,lc as et,mc as g,ob as X,qc as O,rc as I,sc as P,ta as A,ua as C,ub as v,wb as S,xc as h,yc as nt,za as x,zc as j}from"./chunk-TEKHUYWQ.js";function yt(a,m){if(a&1){let t=B();d(0,"div",1)(1,"button",2),w("click",function(){A(t);let n=g();return C(n.action())}),h(2),c()()}if(a&2){let t=g();l(2),j(" ",t.data.action," ")}}var At=["label"];function Ct(a,m){}var xt=Math.pow(2,31)-1,u=class{_overlayRef;instance;containerInstance;_afterDismissed=new p;_afterOpened=new p;_onAction=new p;_durationTimeoutId;_dismissedByAction=!1;constructor(m,t){this._overlayRef=t,this.containerInstance=m,m._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(m){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(m,xt))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},T=new E("MatSnackBarData"),_=class{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},q=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=S({type:a,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return a})(),Q=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=S({type:a,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return a})(),U=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=S({type:a,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return a})(),St=(()=>{class a{snackBarRef=o(u);data=o(T);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=v({type:a,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,n){e&1&&(d(0,"div",0),h(1),c(),k(2,yt,3,1,"div",1)),e&2&&(l(),j(" ",n.data.message,` +import{k as ft,o as ht}from"./chunk-AND6K73U.js";import{a as V,b as pt,c as ut,f as H}from"./chunk-BJXILAOS.js";import{q as D,x as N}from"./chunk-6BGAZ7SQ.js";import{c as st,d as F,g as R,h as L,j as z}from"./chunk-I7VYXJU2.js";import{D as ct,E as lt,P as dt,T as mt,f as rt}from"./chunk-W5KNOAKV.js";import{$ as W,Fa as Z,Ja as K,Kb as $,Nb as k,Sb as G,Sc as at,Tb as Y,Yb as M,Yd as ot,a as f,bc as d,cc as c,dc as J,ea as y,ed as it,ha as E,hc as B,j as p,jc as tt,ka as o,kc as w,lb as l,lc as et,mc as g,ob as X,qc as O,rc as I,sc as P,ta as A,ua as C,ub as v,wb as S,xc as h,yc as nt,za as x,zc as j}from"./chunk-TEKHUYWQ.js";function yt(a,m){if(a&1){let t=B();d(0,"div",1)(1,"button",2),w("click",function(){A(t);let n=g();return C(n.action())}),h(2),c()()}if(a&2){let t=g();l(2),j(" ",t.data.action," ")}}var At=["label"];function Ct(a,m){}var xt=Math.pow(2,31)-1,u=class{_overlayRef;instance;containerInstance;_afterDismissed=new p;_afterOpened=new p;_onAction=new p;_durationTimeoutId;_dismissedByAction=!1;constructor(m,t){this._overlayRef=t,this.containerInstance=m,m._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(m){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(m,xt))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},T=new E("MatSnackBarData"),_=class{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},q=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=S({type:a,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return a})(),Q=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=S({type:a,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return a})(),U=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=S({type:a,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return a})(),St=(()=>{class a{snackBarRef=o(u);data=o(T);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=v({type:a,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,n){e&1&&(d(0,"div",0),h(1),c(),k(2,yt,3,1,"div",1)),e&2&&(l(),j(" ",n.data.message,` `),l(),M(n.hasAction?2:-1))},dependencies:[D,q,Q,U],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return a})(),Mt={snackBarState:st("state",[L("void, hidden",R({transform:"scale(0.8)",opacity:0})),L("visible",R({transform:"scale(1)",opacity:1})),z("* => visible",F("150ms cubic-bezier(0, 0, 0.2, 1)")),z("* => void, * => hidden",F("75ms cubic-bezier(0.4, 0.0, 1, 1)",R({opacity:0})))])},Bt=(()=>{class a extends ut{_ngZone=o(Z);_elementRef=o(K);_changeDetectorRef=o(at);_platform=o(rt);snackBarConfig=o(_);_document=o(it);_trackedModals=new Set;_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new p;_onExit=new p;_onEnter=new p;_animationState="void";_live;_label;_role;_liveElementId=o(mt).getId("mat-snack-bar-container-live-");constructor(){super();let t=this.snackBarConfig;t.politeness==="assertive"&&!t.announcementMessage?this._live="assertive":t.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),e}attachTemplatePortal(t){this._assertNotAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),e}attachDomPortal=t=>{this._assertNotAttached();let e=this._portalOutlet.attachDomPortal(t);return this._afterPortalAttached(),e};onAnimationEnd(t){let{fromState:e,toState:n}=t;if((n==="void"&&e!=="void"||n==="hidden")&&this._completeExit(),n==="visible"){let i=this._onEnter;this._ngZone.run(()=>{i.next(),i.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(s=>t.classList.add(s)):t.classList.add(e)),this._exposeToModals();let n=this._label.nativeElement,i="mdc-snackbar__label";n.classList.toggle(i,!n.querySelector(`.${i}`))}_exposeToModals(){let t=this._liveElementId,e=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n{let e=t.getAttribute("aria-owns");if(e){let n=e.replace(this._liveElementId,"").trim();n.length>0?t.setAttribute("aria-owns",n):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let n=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(n=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),n?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=v({type:a,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(e&1&&(O(H,7),O(At,7)),e&2){let i;I(i=P())&&(n._portalOutlet=i.first),I(i=P())&&(n._label=i.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(e,n){e&1&&et("@state.done",function(s){return n.onAnimationEnd(s)}),e&2&&tt("@state",n._animationState)},features:[$],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){e&1&&(d(0,"div",1)(1,"div",2,0)(3,"div",3),k(4,Ct,0,0,"ng-template",4),c(),J(5,"div"),c()()),e&2&&(l(5),G("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[H],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[Mt.snackBarState]}})}return a})();function wt(){return new _}var Rt=new E("mat-snack-bar-default-options",{providedIn:"root",factory:wt}),bt=(()=>{class a{_overlay=o(ht);_live=o(dt);_injector=o(x);_breakpointObserver=o(ct);_parentSnackBar=o(a,{optional:!0,skipSelf:!0});_defaultConfig=o(Rt);_snackBarRefAtThisLevel=null;simpleSnackBarComponent=St;snackBarContainerComponent=Bt;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(){}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){let i=f(f({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=x.create({parent:n||this._injector,providers:[{provide:_,useValue:e}]}),s=new V(this.snackBarContainerComponent,e.viewContainerRef,i),r=t.attach(s);return r.instance.snackBarConfig=e,r.instance}_attach(t,e){let n=f(f(f({},new _),this._defaultConfig),e),i=this._createOverlay(n),s=this._attachSnackBarContainer(i,n),r=new u(s,i);if(t instanceof X){let b=new pt(t,null,{$implicit:n.data,snackBarRef:r});r.instance=s.attachTemplatePortal(b)}else{let b=this._createInjector(n,r),kt=new V(t,void 0,b),gt=s.attachComponentPortal(kt);r.instance=gt.instance}return this._breakpointObserver.observe(lt.HandsetPortrait).pipe(W(i.detachments())).subscribe(b=>{i.overlayElement.classList.toggle(this.handsetCssClass,b.matches)}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(r,n),this._openedSnackBarRef=r,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration))}_createOverlay(t){let e=new ft;e.direction=t.direction;let n=this._overlay.position().global(),i=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!i||t.horizontalPosition==="end"&&i,r=!s&&t.horizontalPosition!=="center";return s?n.left("0"):r?n.right("0"):n.centerHorizontally(),t.verticalPosition==="top"?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}_createInjector(t,e){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector;return x.create({parent:n||this._injector,providers:[{provide:u,useValue:e},{provide:T,useValue:t.data}]})}static \u0275fac=function(e){return new(e||a)};static \u0275prov=y({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function Dt(a,m){if(a&1){let t=B();d(0,"button",4),w("click",function(){A(t);let n=g();return C(n.messageRef.closeWithAction())}),h(1," Fechar "),c()}}var vt=(()=>{class a{data=o(T);messageRef=o(u);static \u0275fac=function(e){return new(e||a)};static \u0275cmp=v({type:a,selectors:[["devmx-message"]],decls:5,vars:3,consts:[[3,"ngClass"],["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","type","button","matSnackBarAction","","color","error"],["mat-button","","type","button","matSnackBarAction","","color","error",3,"click"]],template:function(e,n){e&1&&(d(0,"div",0)(1,"em",1),h(2),c(),d(3,"menu",2),k(4,Dt,2,0,"button",3),c()()),e&2&&(Y("ngClass",n.data.type),l(2),nt(n.data.message),l(2),M(n.data.action?4:-1))},dependencies:[ot,N,D,q,Q,U],styles:["[_nghost-%COMP%] div[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .info[_ngcontent-%COMP%]{--mat-snack-bar-button-color: #39b44d}[_nghost-%COMP%] .warn[_ngcontent-%COMP%]{--mat-snack-bar-button-color: #f6db0f}[_nghost-%COMP%] .error[_ngcontent-%COMP%]{--mat-snack-bar-button-color: #ff3333}[_nghost-%COMP%] em[_ngcontent-%COMP%]{font-style:normal;font-size:1em}"]})}return a})();var pe=(()=>{class a{#t=o(bt);open(t){t.type??="info",t.action??=!1;let e=t.message,n={data:t,announcementMessage:e,duration:3e3};return this.#t.openFromComponent(vt,n)}static \u0275fac=function(e){return new(e||a)};static \u0275prov=y({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();export{pe as a}; diff --git a/chunk-66MLPMX6.js b/chunk-WPU27ID5.js similarity index 99% rename from chunk-66MLPMX6.js rename to chunk-WPU27ID5.js index 3fb62c50..c181abc2 100644 --- a/chunk-66MLPMX6.js +++ b/chunk-WPU27ID5.js @@ -1,2 +1,2 @@ -import{c as fe,d as be,e as ve,f as ge}from"./chunk-JCCZXGKN.js";import{a as he,b as pe}from"./chunk-AFH22WZE.js";import{a as ue,b as _e,d as yt,e as Ct}from"./chunk-LFAX4DK3.js";import{a as xe,b as ke,c as ye,d as Ce,e as Te,f as Ie,g as Me,h as Re}from"./chunk-JX4IWPKV.js";import{a as ce,b as me}from"./chunk-3I45H2NO.js";import{a as le}from"./chunk-A3N3AUUJ.js";import{B as se,I as de}from"./chunk-4FWBEGAE.js";import{b as Q,c as j,e as ae,i as Z,j as Y}from"./chunk-2K6IALUF.js";import{b as vt,c as gt,h as S,i as xt,m as ne,o as w,p as kt,x as k}from"./chunk-EDIJ2EBQ.js";import{Q as Kt,T as Dt,U as Jt,Y as ot,aa as te,ca as ft,da as At,f as ht,fa as ee,ga as nt,ha as bt,na as ie,q as pt,sa as re,ya as oe}from"./chunk-W5KNOAKV.js";import{$b as C,Aa as Nt,Ba as Lt,Ea as z,Fa as $,Fb as qt,Fc as B,Ha as Gt,Ia as v,J as Ut,Ja as X,Jc as F,Kc as N,Lc as Yt,Mb as H,Nb as p,Pa as lt,Sb as it,Sc as q,Tb as c,Ub as Wt,Va as zt,Vb as rt,Vc as y,Wb as wt,Wc as E,Yb as f,Zb as $t,_b as A,ac as T,bc as m,cc as u,da as st,dc as _,ec as Ht,fa as dt,fc as Qt,ha as P,hc as jt,j as Ot,ka as l,kc as O,lb as s,mc as d,nc as ut,oc as _t,pc as at,qc as V,rc as M,sc as R,ta as Et,te as L,ua as St,ub as g,vb as ct,wb as mt,wc as Zt,xb as Xt,xc as b,yc as x,za as Bt,zc as U}from"./chunk-TEKHUYWQ.js";var qe=["knob"],We=["valueIndicatorContainer"];function $e(i,o){if(i&1&&(m(0,"div",2,1)(2,"div",5)(3,"span",6),b(4),u()()()),i&2){let t=d();s(4),x(t.valueIndicatorText)}}var He=["trackActive"],Qe=["*"];function je(i,o){if(i&1&&_(0,"div"),i&2){let t=o.$implicit,e=o.$index,r=d(3);wt(t===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),Wt("transform",r._calcTickMarkTransform(e))}}function Ze(i,o){if(i&1&&C(0,je,1,4,"div",8,$t),i&2){let t=d(2);T(t._tickMarks)}}function Ye(i,o){if(i&1&&(m(0,"div",6,1),p(2,Ze,2,0),u()),i&2){let t=d();s(2),f(t._cachedWidth?2:-1)}}function Ke(i,o){if(i&1&&_(0,"mat-slider-visual-thumb",7),i&2){let t=d();c("discrete",t.discrete)("thumbPosition",1)("valueIndicatorText",t.startValueIndicatorText)}}var n=function(i){return i[i.START=1]="START",i[i.END=2]="END",i}(n||{}),K=function(i){return i[i.ACTIVE=0]="ACTIVE",i[i.INACTIVE=1]="INACTIVE",i}(K||{}),Vt=new P("_MatSlider"),Ee=new P("_MatSliderThumb"),Je=new P("_MatSliderRangeThumb"),Se=new P("_MatSliderVisualThumb");var ti=(()=>{class i{_cdr=l(q);_ngZone=l($);_slider=l(Vt);discrete;thumbPosition;valueIndicatorText;_ripple;_knob;_valueIndicatorContainer;_sliderInput;_sliderInputEl;_hoverRippleRef;_focusRippleRef;_activeRippleRef;_isHovered=!1;_isActive=!1;_isValueIndicatorVisible=!1;_hostElement=l(X).nativeElement;_platform=l(ht);constructor(){}ngAfterViewInit(){let t=this._slider._getInput(this.thumbPosition);t&&(this._ripple.radius=24,this._sliderInput=t,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(()=>{let e=this._sliderInputEl;e.addEventListener("pointermove",this._onPointerMove),e.addEventListener("pointerdown",this._onDragStart),e.addEventListener("pointerup",this._onDragEnd),e.addEventListener("pointerleave",this._onMouseLeave),e.addEventListener("focus",this._onFocus),e.addEventListener("blur",this._onBlur)}))}ngOnDestroy(){let t=this._sliderInputEl;t&&(t.removeEventListener("pointermove",this._onPointerMove),t.removeEventListener("pointerdown",this._onDragStart),t.removeEventListener("pointerup",this._onDragEnd),t.removeEventListener("pointerleave",this._onMouseLeave),t.removeEventListener("focus",this._onFocus),t.removeEventListener("blur",this._onBlur))}_onPointerMove=t=>{if(this._sliderInput._isFocused)return;let e=this._hostElement.getBoundingClientRect(),r=this._slider._isCursorOnSliderThumb(t,e);this._isHovered=r,r?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)};_onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)};_onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")};_onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")};_onDragStart=t=>{t.button===0&&(this._isActive=!0,this._showActiveRipple())};_onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()};_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(t){return t?.state===At.FADING_IN||t?.state===At.VISIBLE}_showRipple(t,e){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===n.START?n.END:n.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!e)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:t,centered:!0,persistent:!0})}_hideRipple(t){if(t?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let e=this._getSibling();e._isShowingAnyRipple()||(this._hideValueIndicator(),e._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===n.START?n.END:n.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(e,r){if(e&1&&(V(nt,5),V(qe,5),V(We,5)),e&2){let a;M(a=R())&&(r._ripple=a.first),M(a=R())&&(r._knob=a.first),M(a=R())&&(r._valueIndicatorContainer=a.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[B([{provide:Se,useExisting:i}])],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(e,r){e&1&&(p(0,$e,5,1,"div",2),_(1,"div",3,0)(3,"div",4)),e&2&&(f(r.discrete?0:-1),s(3),c("matRippleDisabled",!0))},dependencies:[nt],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}return i})(),we=(()=>{class i{_ngZone=l($);_cdr=l(q);_elementRef=l(X);_dir=l(Jt,{optional:!0});_globalRippleOptions=l(ee,{optional:!0});_trackActive;_thumbs;_input;_inputs;get disabled(){return this._disabled}set disabled(t){this._disabled=t;let e=this._getInput(n.END),r=this._getInput(n.START);e&&(e.disabled=this._disabled),r&&(r.disabled=this._disabled)}_disabled=!1;get discrete(){return this._discrete}set discrete(t){this._discrete=t,this._updateValueIndicatorUIs()}_discrete=!1;showTickMarks=!1;get min(){return this._min}set min(t){let e=isNaN(t)?this._min:t;this._min!==e&&this._updateMin(e)}_min=0;color;disableRipple=!1;_updateMin(t){let e=this._min;this._min=t,this._isRange?this._updateMinRange({old:e,new:t}):this._updateMinNonRange(t),this._onMinMaxOrStepChange()}_updateMinRange(t){let e=this._getInput(n.END),r=this._getInput(n.START),a=e.value,h=r.value;r.min=t.new,e.min=Math.max(t.new,r.value),r.max=Math.min(e.max,e.value),r._updateWidthInactive(),e._updateWidthInactive(),t.newt.old?this._onTranslateXChangeBySideEffect(r,e):this._onTranslateXChangeBySideEffect(e,r),a!==e.value&&this._onValueChange(e),h!==r.value&&this._onValueChange(r)}_updateMaxNonRange(t){let e=this._getInput(n.END);if(e){let r=e.value;e.max=t,e._updateThumbUIByValue(),this._updateTrackUI(e),r!==e.value&&this._onValueChange(e)}}get step(){return this._step}set step(t){let e=isNaN(t)?this._step:t;this._step!==e&&this._updateStep(e)}_step=1;_updateStep(t){this._step=t,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let t=this._getInput(n.END),e=this._getInput(n.START),r=t.value,a=e.value,h=e.value;t.min=this._min,e.max=this._max,t.step=this._step,e.step=this._step,this._platform.SAFARI&&(t.value=t.value,e.value=e.value),t.min=Math.max(this._min,e.value),e.max=Math.min(this._max,t.value),e._updateWidthInactive(),t._updateWidthInactive(),t.value`${t}`;_tickMarks;_noopAnimations;_dirChangeSubscription;_resizeObserver;_cachedWidth;_cachedLeft;_rippleRadius=24;startValueIndicatorText="";endValueIndicatorText="";_endThumbTransform;_startThumbTransform;_isRange=!1;_isRtl=!1;_hasViewInitialized=!1;_tickMarkTrackWidth=0;_hasAnimation=!1;_resizeTimer=null;_platform=l(ht);constructor(){l(pt).load(ft);let t=l(lt,{optional:!0});this._noopAnimations=t==="NoopAnimations",this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl")}_knobRadius=8;_inputPadding;ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let t=this._getInput(n.END),e=this._getInput(n.START);this._isRange=!!t&&!!e,this._cdr.detectChanges();let r=this._getThumb(n.END);this._rippleRadius=r._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(t,e):this._initUINonRange(t),this._updateTrackUI(t),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(t){t.initProps(),t.initUI(),this._updateValueIndicatorUI(t),this._hasViewInitialized=!0,t._updateThumbUIByValue()}_initUIRange(t,e){t.initProps(),t.initUI(),e.initProps(),e.initUI(),t._updateMinMax(),e._updateMinMax(),t._updateStaticStyles(),e._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,t._updateThumbUIByValue(),e._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl=this._dir?.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){let t=this._getInput(n.END),e=this._getInput(n.START);t._setIsLeftThumb(),e._setIsLeftThumb(),t.translateX=t._calcTranslateXByValue(),e.translateX=e._calcTranslateXByValue(),t._updateStaticStyles(),e._updateStaticStyles(),t._updateWidthInactive(),e._updateWidthInactive(),t._updateThumbUIByValue(),e._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(n.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(n.START)._isActive||this._getThumb(n.END)._isActive}_getValue(t=n.END){let e=this._getInput(t);return e?e.value:this.min}_skipUpdate(){return!!(this._getInput(n.START)?._skipUIUpdate||this._getInput(n.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(t){let e=this._trackActive.nativeElement.style;e.left=t.left,e.right=t.right,e.transformOrigin=t.transformOrigin,e.transform=t.transform}_calcTickMarkTransform(t){return`translateX(${t*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(t){this._hasViewInitialized&&(this._updateThumbUI(t),this._updateTrackUI(t),this._updateOverlappingThumbUI(t))}_onTranslateXChangeBySideEffect(t,e){this._hasViewInitialized&&(t._updateThumbUIByValue(),e._updateThumbUIByValue())}_onValueChange(t){this._hasViewInitialized&&(this._updateValueIndicatorUI(t),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let t=this._getInput(n.END),e=this._getInput(n.START);t._updateThumbUIByValue(),e._updateThumbUIByValue(),t._updateStaticStyles(),e._updateStaticStyles(),t._updateMinMax(),e._updateMinMax(),t._updateWidthInactive(),e._updateWidthInactive()}else{let t=this._getInput(n.END);t&&t._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_thumbsOverlap=!1;_areThumbsOverlapping(){let t=this._getInput(n.START),e=this._getInput(n.END);return!t||!e?!1:e.translateX-t.translateX<20}_updateOverlappingThumbClassNames(t){let e=t.getSibling(),r=this._getThumb(t.thumbPosition);this._getThumb(e.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),r._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(t){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(t))}_updateThumbUI(t){if(this._skipUpdate())return;let e=this._getThumb(t.thumbPosition===n.END?n.END:n.START);e._hostElement.style.transform=`translateX(${t.translateX}px)`}_updateValueIndicatorUI(t){if(this._skipUpdate())return;let e=this.displayWith(t.value);if(this._hasViewInitialized?t._valuetext.set(e):t._hostElement.setAttribute("aria-valuetext",e),this.discrete){t.thumbPosition===n.START?this.startValueIndicatorText=e:this.endValueIndicatorText=e;let r=this._getThumb(t.thumbPosition);e.length<3?r._hostElement.classList.add("mdc-slider__thumb--short-value"):r._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let t=this._getInput(n.END),e=this._getInput(n.START);t&&this._updateValueIndicatorUI(t),e&&this._updateValueIndicatorUI(e)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let t=this._step&&this._step>0?this._step:1,r=(Math.floor(this.max/t)*t-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*r-6}_updateTrackUI(t){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(t):this._updateTrackUINonRange(t))}_updateTrackUIRange(t){let e=t.getSibling();if(!e||!this._cachedWidth)return;let r=Math.abs(e.translateX-t.translateX)/this._cachedWidth;t._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-e.translateX}px`,transformOrigin:"right",transform:`scaleX(${r})`}):this._setTrackActiveStyles({left:`${e.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${r})`})}_updateTrackUINonRange(t){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-t.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${t.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let t=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(t):this._updateTickMarkUINonRange(t),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(t){let e=this._getValue(),r=Math.max(Math.round((e-this.min)/t),0),a=Math.max(Math.round((this.max-e)/t),0);this._isRtl?r++:a++,this._tickMarks=Array(r).fill(K.ACTIVE).concat(Array(a).fill(K.INACTIVE))}_updateTickMarkUIRange(t){let e=this._getValue(),r=this._getValue(n.START),a=Math.max(Math.round((r-this.min)/t),0),h=Math.max(Math.round((e-r)/t)+1,0),I=Math.max(Math.round((this.max-e)/t),0);this._tickMarks=Array(a).fill(K.INACTIVE).concat(Array(h).fill(K.ACTIVE),Array(I).fill(K.INACTIVE))}_getInput(t){if(t===n.END&&this._input)return this._input;if(this._inputs?.length)return t===n.START?this._inputs.first:this._inputs.last}_getThumb(t){return t===n.END?this._thumbs?.last:this._thumbs?.first}_setTransition(t){this._hasAnimation=!this._platform.IOS&&t&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(t,e){let r=e.width/2,a=e.x+r,h=e.y+r,I=t.clientX-a,W=t.clientY-h;return Math.pow(I,2)+Math.pow(W,2)Ft),multi:!0};var Ft=(()=>{class i{_ngZone=l($);_elementRef=l(X);_cdr=l(q);_slider=l(Vt);get value(){return E(this._hostElement.value,0)}set value(t){t=isNaN(t)?0:t;let e=t+"";if(!this._hasSetInitialValue){this._initialValue=e;return}this._isActive||this._setValue(e)}_setValue(t){this._hostElement.value=t,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}valueChange=new z;dragStart=new z;dragEnd=new z;get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(t){this._translateX=t}_translateX;thumbPosition=n.END;get min(){return E(this._hostElement.min,0)}set min(t){this._hostElement.min=t+"",this._cdr.detectChanges()}get max(){return E(this._hostElement.max,0)}set max(t){this._hostElement.max=t+"",this._cdr.detectChanges()}get step(){return E(this._hostElement.step,0)}set step(t){this._hostElement.step=t+"",this._cdr.detectChanges()}get disabled(){return y(this._hostElement.disabled)}set disabled(t){this._hostElement.disabled=t,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_hostElement=this._elementRef.nativeElement;_valuetext=qt("");_knobRadius=8;_tickMarkOffset=3;_isActive=!1;_isFocused=!1;_setIsFocused(t){this._isFocused=t}_hasSetInitialValue=!1;_initialValue;_formControl;_destroyed=new Ot;_skipUIUpdate=!1;_onChangeFn;_onTouchedFn=()=>{};_isControlInitialized=!1;_platform=l(ht);constructor(){this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(t){if(!(this.disabled||t.button!==0)){if(this._platform.IOS){let e=this._slider._isCursorOnSliderThumb(t,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=e,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(t,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(t),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(t){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(t)},0)}_fixValue(t){let e=t.clientX-this._slider._cachedLeft,r=this._slider._cachedWidth,a=this._slider.step===0?1:this._slider.step,h=Math.floor((this._slider.max-this._slider.min)/a),I=this._slider._isRtl?1-e/r:e/r,tt=Math.round(I*h)/h*(this._slider.max-this._slider.min)+this._slider.min,et=Math.round(tt/a)*a,G=this.value;if(et===G){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(t,{withAnimation:this._slider._hasAnimation});return}this.value=et,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(t,{withAnimation:this._slider._hasAnimation})}_onPointerMove(t){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(t)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(t){let e=this._tickMarkOffset,r=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(t,r),e)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(t){return t.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(t){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(t)}_updateThumbUIByPointerEvent(t,e){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(t)),this._updateThumbUI(e)}_updateThumbUI(t){this._slider._setTransition(!!t?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(t){(this._isControlInitialized||t!==null)&&(this.value=t)}registerOnChange(t){this._onChangeFn=t,this._isControlInitialized=!0}registerOnTouched(t){this._onTouchedFn=t}setDisabledState(t){this.disabled=t}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static \u0275fac=function(e){return new(e||i)};static \u0275dir=mt({type:i,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(e,r){e&1&&O("change",function(){return r._onChange()})("input",function(){return r._onInput()})("blur",function(){return r._onBlur()})("focus",function(){return r._onFocus()}),e&2&&it("aria-valuetext",r._valuetext())},inputs:{value:[2,"value","value",E]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[B([ei,{provide:Ee,useExisting:i}]),H]})}return i})();var De=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=ct({type:i});static \u0275inj=dt({imports:[ot,bt]})}return i})();function ri(i,o){if(i&1&&(m(0,"mat-checkbox",0),b(1),u()),i&2){let t=o,e=d();c("formControl",e.control())("checked",t.checked),s(),U(" ",t.label,` +import{a as he,b as pe}from"./chunk-AFH22WZE.js";import{a as xe,b as ke,c as ye,d as Ce,e as Te,f as Ie,g as Me,h as Re}from"./chunk-73QBZNVE.js";import{a as ce,b as me}from"./chunk-2XST3EDK.js";import{a as fe,b as be,c as ve,h as ge}from"./chunk-O3T3UZHL.js";import{a as ue,b as _e,d as yt,e as Ct}from"./chunk-VVQ6JEVH.js";import{b as Q,c as j,e as ae,i as Z,j as Y}from"./chunk-AND6K73U.js";import{a as le}from"./chunk-A3N3AUUJ.js";import{q as se,x as de}from"./chunk-6BGAZ7SQ.js";import{b as vt,c as gt,h as S,i as xt,m as ne,o as w,p as kt,x as k}from"./chunk-EDIJ2EBQ.js";import{Q as Kt,T as Dt,U as Jt,Y as ot,aa as te,ca as ft,da as At,f as ht,fa as ee,ga as nt,ha as bt,na as ie,q as pt,sa as re,ya as oe}from"./chunk-W5KNOAKV.js";import{$b as C,Aa as Nt,Ba as Lt,Ea as z,Fa as $,Fb as qt,Fc as B,Ha as Gt,Ia as v,J as Ut,Ja as X,Jc as F,Kc as N,Lc as Yt,Mb as H,Nb as p,Pa as lt,Sb as it,Sc as q,Tb as c,Ub as Wt,Va as zt,Vb as rt,Vc as y,Wb as wt,Wc as E,Yb as f,Zb as $t,_b as A,ac as T,bc as m,cc as u,da as st,dc as _,ec as Ht,fa as dt,fc as Qt,ha as P,hc as jt,j as Ot,ka as l,kc as O,lb as s,mc as d,nc as ut,oc as _t,pc as at,qc as V,rc as M,sc as R,ta as Et,te as L,ua as St,ub as g,vb as ct,wb as mt,wc as Zt,xb as Xt,xc as b,yc as x,za as Bt,zc as U}from"./chunk-TEKHUYWQ.js";var qe=["knob"],We=["valueIndicatorContainer"];function $e(i,o){if(i&1&&(m(0,"div",2,1)(2,"div",5)(3,"span",6),b(4),u()()()),i&2){let t=d();s(4),x(t.valueIndicatorText)}}var He=["trackActive"],Qe=["*"];function je(i,o){if(i&1&&_(0,"div"),i&2){let t=o.$implicit,e=o.$index,r=d(3);wt(t===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),Wt("transform",r._calcTickMarkTransform(e))}}function Ze(i,o){if(i&1&&C(0,je,1,4,"div",8,$t),i&2){let t=d(2);T(t._tickMarks)}}function Ye(i,o){if(i&1&&(m(0,"div",6,1),p(2,Ze,2,0),u()),i&2){let t=d();s(2),f(t._cachedWidth?2:-1)}}function Ke(i,o){if(i&1&&_(0,"mat-slider-visual-thumb",7),i&2){let t=d();c("discrete",t.discrete)("thumbPosition",1)("valueIndicatorText",t.startValueIndicatorText)}}var n=function(i){return i[i.START=1]="START",i[i.END=2]="END",i}(n||{}),K=function(i){return i[i.ACTIVE=0]="ACTIVE",i[i.INACTIVE=1]="INACTIVE",i}(K||{}),Vt=new P("_MatSlider"),Ee=new P("_MatSliderThumb"),Je=new P("_MatSliderRangeThumb"),Se=new P("_MatSliderVisualThumb");var ti=(()=>{class i{_cdr=l(q);_ngZone=l($);_slider=l(Vt);discrete;thumbPosition;valueIndicatorText;_ripple;_knob;_valueIndicatorContainer;_sliderInput;_sliderInputEl;_hoverRippleRef;_focusRippleRef;_activeRippleRef;_isHovered=!1;_isActive=!1;_isValueIndicatorVisible=!1;_hostElement=l(X).nativeElement;_platform=l(ht);constructor(){}ngAfterViewInit(){let t=this._slider._getInput(this.thumbPosition);t&&(this._ripple.radius=24,this._sliderInput=t,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(()=>{let e=this._sliderInputEl;e.addEventListener("pointermove",this._onPointerMove),e.addEventListener("pointerdown",this._onDragStart),e.addEventListener("pointerup",this._onDragEnd),e.addEventListener("pointerleave",this._onMouseLeave),e.addEventListener("focus",this._onFocus),e.addEventListener("blur",this._onBlur)}))}ngOnDestroy(){let t=this._sliderInputEl;t&&(t.removeEventListener("pointermove",this._onPointerMove),t.removeEventListener("pointerdown",this._onDragStart),t.removeEventListener("pointerup",this._onDragEnd),t.removeEventListener("pointerleave",this._onMouseLeave),t.removeEventListener("focus",this._onFocus),t.removeEventListener("blur",this._onBlur))}_onPointerMove=t=>{if(this._sliderInput._isFocused)return;let e=this._hostElement.getBoundingClientRect(),r=this._slider._isCursorOnSliderThumb(t,e);this._isHovered=r,r?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)};_onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)};_onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")};_onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")};_onDragStart=t=>{t.button===0&&(this._isActive=!0,this._showActiveRipple())};_onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()};_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(t){return t?.state===At.FADING_IN||t?.state===At.VISIBLE}_showRipple(t,e){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===n.START?n.END:n.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!e)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:t,centered:!0,persistent:!0})}_hideRipple(t){if(t?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let e=this._getSibling();e._isShowingAnyRipple()||(this._hideValueIndicator(),e._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===n.START?n.END:n.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(e,r){if(e&1&&(V(nt,5),V(qe,5),V(We,5)),e&2){let a;M(a=R())&&(r._ripple=a.first),M(a=R())&&(r._knob=a.first),M(a=R())&&(r._valueIndicatorContainer=a.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[B([{provide:Se,useExisting:i}])],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(e,r){e&1&&(p(0,$e,5,1,"div",2),_(1,"div",3,0)(3,"div",4)),e&2&&(f(r.discrete?0:-1),s(3),c("matRippleDisabled",!0))},dependencies:[nt],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}return i})(),we=(()=>{class i{_ngZone=l($);_cdr=l(q);_elementRef=l(X);_dir=l(Jt,{optional:!0});_globalRippleOptions=l(ee,{optional:!0});_trackActive;_thumbs;_input;_inputs;get disabled(){return this._disabled}set disabled(t){this._disabled=t;let e=this._getInput(n.END),r=this._getInput(n.START);e&&(e.disabled=this._disabled),r&&(r.disabled=this._disabled)}_disabled=!1;get discrete(){return this._discrete}set discrete(t){this._discrete=t,this._updateValueIndicatorUIs()}_discrete=!1;showTickMarks=!1;get min(){return this._min}set min(t){let e=isNaN(t)?this._min:t;this._min!==e&&this._updateMin(e)}_min=0;color;disableRipple=!1;_updateMin(t){let e=this._min;this._min=t,this._isRange?this._updateMinRange({old:e,new:t}):this._updateMinNonRange(t),this._onMinMaxOrStepChange()}_updateMinRange(t){let e=this._getInput(n.END),r=this._getInput(n.START),a=e.value,h=r.value;r.min=t.new,e.min=Math.max(t.new,r.value),r.max=Math.min(e.max,e.value),r._updateWidthInactive(),e._updateWidthInactive(),t.newt.old?this._onTranslateXChangeBySideEffect(r,e):this._onTranslateXChangeBySideEffect(e,r),a!==e.value&&this._onValueChange(e),h!==r.value&&this._onValueChange(r)}_updateMaxNonRange(t){let e=this._getInput(n.END);if(e){let r=e.value;e.max=t,e._updateThumbUIByValue(),this._updateTrackUI(e),r!==e.value&&this._onValueChange(e)}}get step(){return this._step}set step(t){let e=isNaN(t)?this._step:t;this._step!==e&&this._updateStep(e)}_step=1;_updateStep(t){this._step=t,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let t=this._getInput(n.END),e=this._getInput(n.START),r=t.value,a=e.value,h=e.value;t.min=this._min,e.max=this._max,t.step=this._step,e.step=this._step,this._platform.SAFARI&&(t.value=t.value,e.value=e.value),t.min=Math.max(this._min,e.value),e.max=Math.min(this._max,t.value),e._updateWidthInactive(),t._updateWidthInactive(),t.value`${t}`;_tickMarks;_noopAnimations;_dirChangeSubscription;_resizeObserver;_cachedWidth;_cachedLeft;_rippleRadius=24;startValueIndicatorText="";endValueIndicatorText="";_endThumbTransform;_startThumbTransform;_isRange=!1;_isRtl=!1;_hasViewInitialized=!1;_tickMarkTrackWidth=0;_hasAnimation=!1;_resizeTimer=null;_platform=l(ht);constructor(){l(pt).load(ft);let t=l(lt,{optional:!0});this._noopAnimations=t==="NoopAnimations",this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl")}_knobRadius=8;_inputPadding;ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let t=this._getInput(n.END),e=this._getInput(n.START);this._isRange=!!t&&!!e,this._cdr.detectChanges();let r=this._getThumb(n.END);this._rippleRadius=r._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(t,e):this._initUINonRange(t),this._updateTrackUI(t),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(t){t.initProps(),t.initUI(),this._updateValueIndicatorUI(t),this._hasViewInitialized=!0,t._updateThumbUIByValue()}_initUIRange(t,e){t.initProps(),t.initUI(),e.initProps(),e.initUI(),t._updateMinMax(),e._updateMinMax(),t._updateStaticStyles(),e._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,t._updateThumbUIByValue(),e._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl=this._dir?.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){let t=this._getInput(n.END),e=this._getInput(n.START);t._setIsLeftThumb(),e._setIsLeftThumb(),t.translateX=t._calcTranslateXByValue(),e.translateX=e._calcTranslateXByValue(),t._updateStaticStyles(),e._updateStaticStyles(),t._updateWidthInactive(),e._updateWidthInactive(),t._updateThumbUIByValue(),e._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(n.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(n.START)._isActive||this._getThumb(n.END)._isActive}_getValue(t=n.END){let e=this._getInput(t);return e?e.value:this.min}_skipUpdate(){return!!(this._getInput(n.START)?._skipUIUpdate||this._getInput(n.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(t){let e=this._trackActive.nativeElement.style;e.left=t.left,e.right=t.right,e.transformOrigin=t.transformOrigin,e.transform=t.transform}_calcTickMarkTransform(t){return`translateX(${t*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(t){this._hasViewInitialized&&(this._updateThumbUI(t),this._updateTrackUI(t),this._updateOverlappingThumbUI(t))}_onTranslateXChangeBySideEffect(t,e){this._hasViewInitialized&&(t._updateThumbUIByValue(),e._updateThumbUIByValue())}_onValueChange(t){this._hasViewInitialized&&(this._updateValueIndicatorUI(t),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let t=this._getInput(n.END),e=this._getInput(n.START);t._updateThumbUIByValue(),e._updateThumbUIByValue(),t._updateStaticStyles(),e._updateStaticStyles(),t._updateMinMax(),e._updateMinMax(),t._updateWidthInactive(),e._updateWidthInactive()}else{let t=this._getInput(n.END);t&&t._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_thumbsOverlap=!1;_areThumbsOverlapping(){let t=this._getInput(n.START),e=this._getInput(n.END);return!t||!e?!1:e.translateX-t.translateX<20}_updateOverlappingThumbClassNames(t){let e=t.getSibling(),r=this._getThumb(t.thumbPosition);this._getThumb(e.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),r._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(t){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(t))}_updateThumbUI(t){if(this._skipUpdate())return;let e=this._getThumb(t.thumbPosition===n.END?n.END:n.START);e._hostElement.style.transform=`translateX(${t.translateX}px)`}_updateValueIndicatorUI(t){if(this._skipUpdate())return;let e=this.displayWith(t.value);if(this._hasViewInitialized?t._valuetext.set(e):t._hostElement.setAttribute("aria-valuetext",e),this.discrete){t.thumbPosition===n.START?this.startValueIndicatorText=e:this.endValueIndicatorText=e;let r=this._getThumb(t.thumbPosition);e.length<3?r._hostElement.classList.add("mdc-slider__thumb--short-value"):r._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let t=this._getInput(n.END),e=this._getInput(n.START);t&&this._updateValueIndicatorUI(t),e&&this._updateValueIndicatorUI(e)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let t=this._step&&this._step>0?this._step:1,r=(Math.floor(this.max/t)*t-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*r-6}_updateTrackUI(t){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(t):this._updateTrackUINonRange(t))}_updateTrackUIRange(t){let e=t.getSibling();if(!e||!this._cachedWidth)return;let r=Math.abs(e.translateX-t.translateX)/this._cachedWidth;t._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-e.translateX}px`,transformOrigin:"right",transform:`scaleX(${r})`}):this._setTrackActiveStyles({left:`${e.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${r})`})}_updateTrackUINonRange(t){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-t.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${t.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let t=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(t):this._updateTickMarkUINonRange(t),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(t){let e=this._getValue(),r=Math.max(Math.round((e-this.min)/t),0),a=Math.max(Math.round((this.max-e)/t),0);this._isRtl?r++:a++,this._tickMarks=Array(r).fill(K.ACTIVE).concat(Array(a).fill(K.INACTIVE))}_updateTickMarkUIRange(t){let e=this._getValue(),r=this._getValue(n.START),a=Math.max(Math.round((r-this.min)/t),0),h=Math.max(Math.round((e-r)/t)+1,0),I=Math.max(Math.round((this.max-e)/t),0);this._tickMarks=Array(a).fill(K.INACTIVE).concat(Array(h).fill(K.ACTIVE),Array(I).fill(K.INACTIVE))}_getInput(t){if(t===n.END&&this._input)return this._input;if(this._inputs?.length)return t===n.START?this._inputs.first:this._inputs.last}_getThumb(t){return t===n.END?this._thumbs?.last:this._thumbs?.first}_setTransition(t){this._hasAnimation=!this._platform.IOS&&t&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(t,e){let r=e.width/2,a=e.x+r,h=e.y+r,I=t.clientX-a,W=t.clientY-h;return Math.pow(I,2)+Math.pow(W,2)Ft),multi:!0};var Ft=(()=>{class i{_ngZone=l($);_elementRef=l(X);_cdr=l(q);_slider=l(Vt);get value(){return E(this._hostElement.value,0)}set value(t){t=isNaN(t)?0:t;let e=t+"";if(!this._hasSetInitialValue){this._initialValue=e;return}this._isActive||this._setValue(e)}_setValue(t){this._hostElement.value=t,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}valueChange=new z;dragStart=new z;dragEnd=new z;get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(t){this._translateX=t}_translateX;thumbPosition=n.END;get min(){return E(this._hostElement.min,0)}set min(t){this._hostElement.min=t+"",this._cdr.detectChanges()}get max(){return E(this._hostElement.max,0)}set max(t){this._hostElement.max=t+"",this._cdr.detectChanges()}get step(){return E(this._hostElement.step,0)}set step(t){this._hostElement.step=t+"",this._cdr.detectChanges()}get disabled(){return y(this._hostElement.disabled)}set disabled(t){this._hostElement.disabled=t,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_hostElement=this._elementRef.nativeElement;_valuetext=qt("");_knobRadius=8;_tickMarkOffset=3;_isActive=!1;_isFocused=!1;_setIsFocused(t){this._isFocused=t}_hasSetInitialValue=!1;_initialValue;_formControl;_destroyed=new Ot;_skipUIUpdate=!1;_onChangeFn;_onTouchedFn=()=>{};_isControlInitialized=!1;_platform=l(ht);constructor(){this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(t){if(!(this.disabled||t.button!==0)){if(this._platform.IOS){let e=this._slider._isCursorOnSliderThumb(t,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=e,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(t,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(t),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(t){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(t)},0)}_fixValue(t){let e=t.clientX-this._slider._cachedLeft,r=this._slider._cachedWidth,a=this._slider.step===0?1:this._slider.step,h=Math.floor((this._slider.max-this._slider.min)/a),I=this._slider._isRtl?1-e/r:e/r,tt=Math.round(I*h)/h*(this._slider.max-this._slider.min)+this._slider.min,et=Math.round(tt/a)*a,G=this.value;if(et===G){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(t,{withAnimation:this._slider._hasAnimation});return}this.value=et,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(t,{withAnimation:this._slider._hasAnimation})}_onPointerMove(t){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(t)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(t){let e=this._tickMarkOffset,r=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(t,r),e)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(t){return t.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(t){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(t)}_updateThumbUIByPointerEvent(t,e){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(t)),this._updateThumbUI(e)}_updateThumbUI(t){this._slider._setTransition(!!t?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(t){(this._isControlInitialized||t!==null)&&(this.value=t)}registerOnChange(t){this._onChangeFn=t,this._isControlInitialized=!0}registerOnTouched(t){this._onTouchedFn=t}setDisabledState(t){this.disabled=t}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static \u0275fac=function(e){return new(e||i)};static \u0275dir=mt({type:i,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(e,r){e&1&&O("change",function(){return r._onChange()})("input",function(){return r._onInput()})("blur",function(){return r._onBlur()})("focus",function(){return r._onFocus()}),e&2&&it("aria-valuetext",r._valuetext())},inputs:{value:[2,"value","value",E]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[B([ei,{provide:Ee,useExisting:i}]),H]})}return i})();var De=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=ct({type:i});static \u0275inj=dt({imports:[ot,bt]})}return i})();function ri(i,o){if(i&1&&(m(0,"mat-checkbox",0),b(1),u()),i&2){let t=o,e=d();c("formControl",e.control())("checked",t.checked),s(),U(" ",t.label,` `)}}var Ae=(()=>{class i{field=v.required();control=v.required();static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["devmx-checkbox"]],inputs:{field:[1,"field"],control:[1,"control"]},decls:1,vars:1,consts:[["color","primary",3,"formControl","checked"]],template:function(e,r){if(e&1&&p(0,ri,2,3,"mat-checkbox",0),e&2){let a;f((a=r.field())?0:-1,a)}},dependencies:[k,S,w,pe,he],encapsulation:2,changeDetection:0})}return i})();function ai(i,o){if(i&1&&(m(0,"mat-option",1),b(1),u()),i&2){let t=o.$implicit;c("value",t.value),s(),x(t.text)}}function oi(i,o){if(i&1&&b(0),i&2){let t=d().$implicit;U(" ",t.value," ")}}function ni(i,o){if(i&1&&p(0,oi,1,1),i&2){let t=o.$implicit,e=d(2);f(e.control().hasError(t.key)?0:-1)}}function si(i,o){if(i&1&&(m(0,"mat-form-field")(1,"mat-label"),b(2),u(),m(3,"mat-select",0),C(4,ai,2,2,"mat-option",1,A),u(),m(6,"mat-error"),C(7,ni,1,1,null,null,A),F(9,"keyvalue"),u()()),i&2){let t=o,e=d();s(2),x(t.label),s(),c("formControl",e.control()),s(),T(t.options),s(3),T(N(9,2,t.errors))}}var Fe=(()=>{class i{field=v.required();control=v.required();static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["devmx-dropdown"]],inputs:{field:[1,"field"],control:[1,"control"]},decls:1,vars:1,consts:[[3,"formControl"],[3,"value"]],template:function(e,r){if(e&1&&p(0,si,10,4,"mat-form-field"),e&2){let a;f((a=r.field())?0:-1,a)}},dependencies:[k,S,w,Y,Z,Q,j,me,ce,ie,L],styles:["[_nghost-%COMP%]{display:inline-flex;flex-direction:column}"],changeDetection:0})}return i})();var di=["input"],li=["formField"],ci=["*"],Tt=class{source;value;constructor(o,t){this.source=o,this.value=t}},mi={provide:vt,useExisting:st(()=>Pt),multi:!0},Pe=new P("MatRadioGroup"),ui=new P("mat-radio-default-options",{providedIn:"root",factory:_i});function _i(){return{color:"accent",disabledInteractive:!1}}var Pt=(()=>{class i{_changeDetector=l(q);_value=null;_name=l(Dt).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new z;_radios;color;get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition=t==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=t,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(t=>t===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){let t=this._selected!==null&&this._selected.value===this._value;this._radios&&!t&&(this._selected=null,this._radios.forEach(e=>{e.checked=this.value===e.value,e.checked&&(this._selected=e)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Tt(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}static \u0275fac=function(e){return new(e||i)};static \u0275dir=mt({type:i,selectors:[["mat-radio-group"]],contentQueries:function(e,r,a){if(e&1&&at(a,It,5),e&2){let h;M(h=R())&&(r._radios=h)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",y],required:[2,"required","required",y],disabledInteractive:[2,"disabledInteractive","disabledInteractive",y]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[B([mi,{provide:Pe,useExisting:i}]),H]})}return i})(),It=(()=>{class i{_elementRef=l(X);_changeDetector=l(q);_focusMonitor=l(Kt);_radioDispatcher=l(oe);_defaultOptions=l(ui,{optional:!0});_ngZone=l($);_uniqueId=l(Dt).getId("mat-radio-");id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(t){this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(t){this._setDisabled(t)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=t}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(t){this._color=t}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}_disabledInteractive;change=new z;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations;_injector=l(Bt);constructor(){l(pt).load(ft);let t=l(Pe,{optional:!0}),e=l(lt,{optional:!0}),r=l(new Nt("tabindex"),{optional:!0});this.radioGroup=t,this._noopAnimations=e==="NoopAnimations",this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,r&&(this.tabIndex=E(r,0))}focus(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._inputElement.nativeElement.addEventListener("click",this._onInputClick)})}ngOnDestroy(){this._inputElement?.nativeElement.removeEventListener("click",this._onInputClick),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Tt(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(t){if(t.stopPropagation(),!this.checked&&!this.disabled){let e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(t){this._onInputInteraction(t),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}_onInputClick=t=>{this.disabled&&this.disabledInteractive&&t.preventDefault()};_updateTabIndex(){let t=this.radioGroup,e;if(!t||!t.selected||this.disabled?e=this.tabIndex:e=t.selected===this?this.tabIndex:-1,e!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",e+""),this._previousTabIndex=e,zt(()=>{queueMicrotask(()=>{t&&t.selected&&t.selected!==this&&document.activeElement===r&&(t.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["mat-radio-button"]],viewQuery:function(e,r){if(e&1&&(V(di,5),V(li,7,X)),e&2){let a;M(a=R())&&(r._inputElement=a.first),M(a=R())&&(r._rippleTrigger=a.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(e,r){e&1&&O("focus",function(){return r._inputElement.nativeElement.focus()}),e&2&&(it("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),rt("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:E(t)],checked:[2,"checked","checked",y],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",y],required:[2,"required","required",y],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",y]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[H],ngContentSelectors:ci,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(e,r){if(e&1){let a=jt();ut(),m(0,"div",2,0)(2,"div",3)(3,"div",4),O("click",function(I){return Et(a),St(r._onTouchTargetClick(I))}),u(),m(4,"input",5,1),O("change",function(I){return Et(a),St(r._onInputInteraction(I))}),u(),m(6,"div",6),_(7,"div",7)(8,"div",8),u(),m(9,"div",9),_(10,"div",10),u()(),m(11,"label",11),_t(12),u()()}e&2&&(c("labelPosition",r.labelPosition),s(2),rt("mdc-radio--disabled",r.disabled),s(2),c("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),it("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),s(5),c("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),s(2),c("for",r.inputId))},dependencies:[nt,re],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled])~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px);top:calc(-1*(var(--mdc-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mdc-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return i})(),Oe=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=ct({type:i});static \u0275inj=dt({imports:[ot,bt,It,ot]})}return i})();function pi(i,o){if(i&1&&(m(0,"mat-radio-button",1),b(1),u()),i&2){let t=o.$implicit;c("value",t.value),s(),x(t.text)}}function fi(i,o){if(i&1&&(m(0,"h3"),b(1),u(),m(2,"mat-radio-group",0),C(3,pi,2,2,"mat-radio-button",1,A),u()),i&2){let t=o,e=d();s(),x(t.label),s(),c("ariaLabel",t.label)("formControl",e.control()),s(),T(t.options)}}var Ue=(()=>{class i{field=v.required();control=v.required();static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["devmx-radio"]],inputs:{field:[1,"field"],control:[1,"control"]},decls:1,vars:1,consts:[["color","primary",3,"ariaLabel","formControl"],[3,"value"]],template:function(e,r){if(e&1&&p(0,fi,5,3),e&2){let a;f((a=r.field())?0:-1,a)}},dependencies:[k,S,w,Oe,Pt,It],styles:["[_nghost-%COMP%]{display:inline-flex;flex-direction:column}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:1em;opacity:.8}[_nghost-%COMP%] .mat-mdc-radio-group[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column}"],changeDetection:0})}return i})();function vi(i,o){if(i&1&&_(0,"textarea",0),i&2){let t=d(2);c("formControl",t.control())}}function gi(i,o){if(i&1&&_(0,"input",1),i&2){let t=d(),e=d();c("formControl",e.control())("type",t.type)("autocomplete",t.autocomplete)}}function xi(i,o){if(i&1&&b(0),i&2){let t=d().$implicit;U(" ",t.value," ")}}function ki(i,o){if(i&1&&p(0,xi,1,1),i&2){let t=o.$implicit,e=d(2);f(e.control().hasError(t.key)?0:-1)}}function yi(i,o){if(i&1&&(m(0,"mat-form-field")(1,"mat-label"),b(2),u(),p(3,vi,1,1,"textarea",0)(4,gi,1,3,"input",1),m(5,"mat-error"),C(6,ki,1,1,null,null,A),F(8,"keyvalue"),u()()),i&2){let t=o;s(2),x(t.label),s(),f(t.type==="long"?3:4),s(3),T(N(8,2,t.errors))}}var Be=(()=>{class i{field=v.required();name=v.required();control=v.required();static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["devmx-textbox"]],inputs:{field:[1,"field"],name:[1,"name"],control:[1,"control"]},decls:1,vars:1,consts:[["matInput","","cdkTextareaAutosize","",3,"formControl"],["matInput","",3,"formControl","type","autocomplete"]],template:function(e,r){if(e&1&&p(0,yi,9,4,"mat-form-field"),e&2){let a;f((a=r.field())?0:-1,a)}},dependencies:[k,gt,S,w,Y,Z,Q,j,_e,ue,Ct,yt,L],styles:["[_nghost-%COMP%]{display:inline-flex;flex-direction:column}"],changeDetection:0})}return i})();function Ci(i,o){if(i&1&&b(0),i&2){let t=d().$implicit;U(" ",t.value," ")}}function Ti(i,o){if(i&1&&p(0,Ci,1,1),i&2){let t=o.$implicit,e=d(2);f(e.control().hasError(t.key)?0:-1)}}function Ii(i,o){if(i&1&&(m(0,"mat-form-field")(1,"mat-label"),b(2),u(),_(3,"input",1)(4,"mat-datepicker-toggle",2)(5,"mat-datepicker",null,0),m(7,"mat-error"),C(8,Ti,1,1,null,null,A),F(10,"keyvalue"),u()()),i&2){let t=o,e=Zt(6);s(2),x(t.label),s(),c("matDatepicker",e)("min",t.min)("max",t.max),s(),c("for",e),s(4),T(N(10,5,t.errors))}}var Ne=(()=>{class i{field=v.required();control=v.required();static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["devmx-datepicker"]],inputs:{field:[1,"field"],control:[1,"control"]},features:[B([te()])],decls:1,vars:1,consts:[["picker",""],["matInput","",3,"matDatepicker","min","max"],["matIconSuffix","",3,"for"]],template:function(e,r){if(e&1&&p(0,Ii,11,7,"mat-form-field"),e&2){let a;f((a=r.field())?0:-1,a)}},dependencies:[k,Y,Z,Q,j,ae,ge,fe,be,ve,Ct,yt,L],styles:["[_nghost-%COMP%]{display:inline-flex;flex-direction:column}"],changeDetection:0})}return i})();function Mi(i,o){if(i&1&&(m(0,"label",0),b(1),u(),m(2,"mat-slider",1),_(3,"input",2),u()),i&2){let t=o,e=d();s(),x(t.label),s(),c("min",t.min)("max",t.max)("step",t.step),s(),c("formControl",e.control())("value",t.value)}}var Le=(()=>{class i{field=v.required();control=v.required();static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["devmx-slider"]],inputs:{field:[1,"field"],control:[1,"control"]},decls:1,vars:1,consts:[["for","slider"],["discrete","",3,"min","max","step"],["matSliderThumb","","id","slider",3,"formControl","value"]],template:function(e,r){if(e&1&&p(0,Mi,4,6),e&2){let a;f((a=r.field())?0:-1,a)}},dependencies:[k,gt,S,w,De,we,Ft],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}"],changeDetection:0})}return i})();var Ge=(()=>{class i{transform(t,e){let r=e.toString(),a=r.indexOf(".")>-1;return t.sort((h,I)=>{let W,tt;if(a){let et=r.split(".");W=et.reduce((G,Rt)=>G?G[Rt]:void 0,h),tt=et.reduce((G,Rt)=>G?G[Rt]:void 0,I)}else W=h[e],tt=I[e];return W-tt})}static \u0275fac=function(e){return new(e||i)};static \u0275pipe=Xt({name:"orderBy",type:i,pure:!0})}return i})();var Ri=(i,o)=>o.key;function Ei(i,o){if(i&1&&_(0,"devmx-textbox",2),i&2){let t=d(3).$implicit,e=d();c("field",t.value)("name",t.key)("control",e.getControl(t.key))}}function Si(i,o){if(i&1&&p(0,Ei,1,3,"devmx-textbox",2),i&2){let t=d(2).$implicit;f(t.value.type!=="hidden"?0:-1)}}function wi(i,o){if(i&1&&_(0,"devmx-dropdown",1),i&2){let t=d(2).$implicit,e=d();c("field",t.value)("control",e.getControl(t.key))}}function Di(i,o){if(i&1&&_(0,"devmx-datepicker",1),i&2){let t=d(2).$implicit,e=d();c("field",t.value)("control",e.getControl(t.key))}}function Ai(i,o){if(i&1&&_(0,"devmx-checkbox",1),i&2){let t=d(2).$implicit,e=d();c("field",t.value)("control",e.getControl(t.key))}}function Vi(i,o){if(i&1&&_(0,"devmx-radio",1),i&2){let t=d(2).$implicit,e=d();c("field",t.value)("control",e.getControl(t.key))}}function Fi(i,o){if(i&1&&_(0,"devmx-slider",1),i&2){let t=d(2).$implicit,e=d();c("field",t.value)("control",e.getControl(t.key))}}function Pi(i,o){if(i&1&&p(0,Si,1,1)(1,wi,1,2,"devmx-dropdown",1)(2,Di,1,2,"devmx-datepicker",1)(3,Ai,1,2,"devmx-checkbox",1)(4,Vi,1,2,"devmx-radio",1)(5,Fi,1,2,"devmx-slider",1),i&2){let t,e=d().$implicit;f((t=e.value.kind)==="textbox"?0:t==="dropdown"?1:t==="datepicker"?2:t==="checkbox"?3:t==="radio"?4:t==="slider"?5:-1)}}function Oi(i,o){if(i&1&&(Ht(0,0),_(1,"devmx-form-group",3),Qt()),i&2){let t=d().$implicit,e=d();c("formGroup",e.getGroup(t.key)),s(),c("fields",t.value)("formGroup",e.getGroup(t.key))}}function Ui(i,o){if(i&1&&p(0,Pi,6,1)(1,Oi,2,3,"ng-container",0),i&2){let t=o.$implicit,e=d();f(e.isFormField(t.value)?0:1)}}var ze=(()=>{class i{#t=l(Lt);fields=v.required();formGroup=v.required();valueChanges=Gt();getControl(t){return this.formGroup().get(t)}getGroup(t){return this.formGroup().get(t)}isFormField(t){return"kind"in t}ngOnInit(){this.formGroup().valueChanges.pipe(Ut(300),le(this.#t)).subscribe(()=>{let t=this.formGroup().getRawValue();this.valueChanges.emit(t)})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["devmx-form-group"]],inputs:{fields:[1,"fields"],formGroup:[1,"formGroup"]},outputs:{valueChanges:"valueChanges"},decls:4,vars:5,consts:[[3,"formGroup"],[3,"field","control"],[3,"field","name","control"],[3,"fields","formGroup"]],template:function(e,r){e&1&&(C(0,Ui,2,1,null,null,Ri),F(2,"keyvalue"),F(3,"orderBy")),e&2&&T(Yt(3,2,N(2,0,r.fields()),"value.order"))},dependencies:[i,k,xt,kt,Be,Fe,Ae,Ne,Ue,Le,L,Ge],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1.4em}"],changeDetection:0})}return i})();var Xe=(()=>{class i{ref=l(xe);data=l(ke);onSubmit(){if(this.data.form.valid){let t=this.data.form.getRawValue();return this.ref.close(t)}console.log(this.data.form.errors),this.data.form.markAllAsTouched()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["devmx-form"]],decls:10,vars:4,consts:[["mat-dialog-title","",1,"dialog-title"],[3,"submit","formGroup"],[1,"dialog-content"],[3,"fields","formGroup"],[1,"dialog-actions"],["type","button","mat-button","","mat-dialog-close",""],["mat-raised-button",""]],template:function(e,r){e&1&&(m(0,"h2",0),b(1),u(),m(2,"form",1),O("submit",function(){return r.onSubmit()}),m(3,"mat-dialog-content",2),_(4,"devmx-form-group",3),u(),m(5,"mat-dialog-actions",4)(6,"button",5),b(7,"Cancelar"),u(),m(8,"button",6),b(9,"Enviar"),u()()()),e&2&&(s(),x(r.data.title),s(),c("formGroup",r.data.form),s(2),c("fields",r.data.fields)("formGroup",r.data.form))},dependencies:[k,ne,xt,kt,Re,Ce,Te,Me,Ie,de,se,ze],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .dialog-title[_ngcontent-%COMP%]{font-size:140%}[_nghost-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding-top:0;display:flex;flex-direction:column}[_nghost-%COMP%] .dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})}return i})();var Mt=class{dialog;constructor(o){this.dialog=o}open(o){return this.dialog.open(Xe,{data:o})}};function Xa(){return{provide:Mt,deps:[ye]}}export{we as a,Ft as b,De as c,Mt as d,Xa as e}; diff --git a/chunk-XWYI7Y6E.js b/chunk-XWYI7Y6E.js new file mode 100644 index 00000000..f46ddfb1 --- /dev/null +++ b/chunk-XWYI7Y6E.js @@ -0,0 +1 @@ +import{a as xi,b as Si}from"./chunk-AFH22WZE.js";import{a as Mi,b as Ii}from"./chunk-4JU575PW.js";import"./chunk-Q2N7RZTH.js";import{a as bi}from"./chunk-WOE5TNBB.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import{a as rt}from"./chunk-TPJZ2OYR.js";import"./chunk-XYJHVZQT.js";import{d as me,e as ue}from"./chunk-VVQ6JEVH.js";import{b as $e,c as qe,i as oe,j as ae}from"./chunk-AND6K73U.js";import{b as gi,f as vi,g as Ci}from"./chunk-BJXILAOS.js";import{a as Et}from"./chunk-A3N3AUUJ.js";import{e as Zt,g as He,h as Xt,i as Ue,j as Be,p as ei,q as We,r as Ye,x as Ke}from"./chunk-6BGAZ7SQ.js";import{c as Ct,d as bt,e as yt,g as G,h as W,j as xt,k as St,l as Mt}from"./chunk-I7VYXJU2.js";import{a as Je,b as Ze,c as Xe,d as et,e as yi,f as tt,h as it,i as nt}from"./chunk-EC6LD5KM.js";import{c as H,e as g,f as ui,g as Qe,h as se,i as le,j as U,l as b,m as Ge,p as ce,q as fi,s as pe,u as hi,v as _i,x as de}from"./chunk-EDIJ2EBQ.js";import{J as oi,Q as ai,T as si,U as li,V as ci,Y as re,ba as je,c as Jt,ca as pi,f as ti,ga as di,ha as mi,n as ii,q as It,r as ni,s as ri}from"./chunk-W5KNOAKV.js";import{$ as B,$b as ke,Aa as Bt,Ea as X,Eb as $t,Fc as ft,Ga as De,Gb as Te,Gc as ht,H as Nt,Hc as _t,Ic as be,Ja as R,Jc as Qt,Ka as ve,Kb as z,Kc as Gt,L as Ie,Mb as Ce,Nb as x,Nc as Wt,P as zt,Sb as j,Sc as Le,Tb as u,Vb as D,Vc as L,W as Vt,Wb as Oe,Wc as Yt,Xb as qt,Yb as I,Z as J,_ as Lt,_b as Re,ac as Ae,ba as Ee,bc as a,cc as s,dc as S,e as Me,ea as we,eb as ee,ed as gt,fa as Z,gc as $,ha as _e,hc as V,ic as Pe,ie as vt,j as he,ja as ge,je as Kt,ka as d,kc as h,la as mt,lb as m,ma as ut,mb as te,mc as f,nc as q,ob as ie,oc as Q,p as P,pc as T,q as At,qc as Ne,rc as w,sa as Ht,sb as jt,sc as F,t as N,ta as v,ua as C,ub as y,uc as ze,va as Ut,vb as ne,vc as Ve,wb as E,wc as M,xa as Fe,xc as c,yc as O,z as Pt}from"./chunk-TEKHUYWQ.js";var Ei=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["devmx-account-feature-auth"]],decls:1,vars:0,template:function(t,i){t&1&&S(0,"router-outlet")},dependencies:[Xt],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return n})();var wi=[Ii()];var tn=["*"];function nn(n,l){n&1&&Q(0)}var wt=(()=>{class n{_elementRef=d(R);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=E({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return n})(),Ft=(()=>{class n{template=d(ie);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=E({type:n,selectors:[["","cdkStepLabel",""]]})}return n})();var k={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},rn=new _e("STEPPER_GLOBAL_OPTIONS"),ot=(()=>{class n{_stepperOptions;_stepper=d(ye);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new X;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=d(rn,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["cdk-step"]],contentQueries:function(t,i,r){if(t&1&&(T(r,Ft,5),T(r,ui,5)),t&2){let o;w(o=F())&&(i.stepLabel=o.first),w(o=F())&&(i._childForms=o)}},viewQuery:function(t,i){if(t&1&&Ne(ie,7),t&2){let r;w(r=F())&&(i.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",L],optional:[2,"optional","optional",L],completed:[2,"completed","completed",L],hasError:[2,"hasError","hasError",L]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Ce,Ht],ngContentSelectors:tn,decls:1,vars:0,template:function(t,i){t&1&&(q(),x(0,nn,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return n})(),ye=(()=>{class n{_dir=d(li,{optional:!0});_changeDetectorRef=d(Le);_elementRef=d(R);_destroyed=new he;_keyManager;_steps;steps=new ve;_stepHeader;_sortedHeaders=new ve;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this.steps&&this._steps?(this._isValidIndex(e),this.selected?._markAsInteracted(),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new X;selectedIndexChange=new X;_groupId=d(si).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(J(this._steps),B(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(J(this._stepHeader),B(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,i)=>t._elementRef.nativeElement.compareDocumentPosition(i._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new oi(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:P()).pipe(J(this._layoutDirection()),B(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._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.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`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=k.NUMBER){let i=this.steps.toArray()[e],r=this._isCurrentStep(e);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,r):this._getGuidelineLogic(i,r,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?k.ERROR:!e.completed||t?k.NUMBER:e.editable?k.EDIT:k.DONE}_getGuidelineLogic(e,t,i=k.NUMBER){return e._showError()&&e.hasError&&!t?k.ERROR:e.completed&&!t?k.DONE:e.completed&&t?i:e.editable&&t?k.EDIT:i}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let 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.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=ri(e),i=e.keyCode,r=this._keyManager;r.activeItemIndex!=null&&!t&&(i===32||i===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let i=t.stepControl;return(i?i.invalid||i.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=ii();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class n{_stepper=d(ye);type="submit";constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=E({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,i){t&1&&h("click",function(){return i._stepper.next()}),t&2&&Pe("type",i.type)},inputs:{type:"type"}})}return n})();var Di=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ne({type:n});static \u0275inj=Z({imports:[ci]})}return n})();var on=["*"],at;function an(){if(at===void 0&&(at=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(at=n.trustedTypes.createPolicy("angular#components",{createHTML:l=>l}))}return at}function xe(n){return an()?.createHTML(n)||n}function Ti(n){return Error(`Unable to find icon with the name "${n}"`)}function sn(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Oi(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Ri(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var A=class{url;svgText;options;svgElement;constructor(l,e,t){this.url=l,this.svgText=e,this.options=t}},ln=(()=>{class n{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,i,r){this._httpClient=e,this._sanitizer=t,this._errorHandler=r,this._document=i}addSvgIcon(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}addSvgIconLiteral(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}addSvgIconInNamespace(e,t,i,r){return this._addSvgIconConfig(e,t,new A(i,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,i,r){let o=this._sanitizer.sanitize(ee.HTML,i);if(!o)throw Ri(i);let p=xe(o);return this._addSvgIconConfig(e,t,new A("",p,r))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,i){return this._addSvgIconSetConfig(e,new A(t,null,i))}addSvgIconSetLiteralInNamespace(e,t,i){let r=this._sanitizer.sanitize(ee.HTML,t);if(!r)throw Ri(t);let o=xe(r);return this._addSvgIconSetConfig(e,new A("",o,i))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(ee.RESOURCE_URL,e);if(!t)throw Oi(e);let i=this._cachedIconsByUrl.get(t);return i?P(st(i)):this._loadSvgIconFromConfig(new A(e,null)).pipe(Ee(r=>this._cachedIconsByUrl.set(t,r)),N(r=>st(r)))}getNamedSvgIcon(e,t=""){let i=ki(t,e),r=this._svgIconConfigs.get(i);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(t,e),r)return this._svgIconConfigs.set(i,r),this._getSvgFromConfig(r);let o=this._iconSetConfigs.get(t);return o?this._getSvgFromIconSetConfigs(e,o):At(Ti(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?P(st(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(N(t=>st(t)))}_getSvgFromIconSetConfigs(e,t){let i=this._extractIconWithNameFromAnySet(e,t);if(i)return P(i);let r=t.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(Nt(p=>{let K=`Loading icon set URL: ${this._sanitizer.sanitize(ee.RESOURCE_URL,o.url)} failed: ${p.message}`;return this._errorHandler.handleError(new Error(K)),P(null)})));return Pt(r).pipe(N(()=>{let o=this._extractIconWithNameFromAnySet(e,t);if(!o)throw Ti(e);return o}))}_extractIconWithNameFromAnySet(e,t){for(let i=t.length-1;i>=0;i--){let r=t[i];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let o=this._svgElementFromConfig(r),p=this._extractSvgIconFromSet(o,e,r.options);if(p)return p}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ee(t=>e.svgText=t),N(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?P(null):this._fetchIcon(e).pipe(Ee(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,i){let r=e.querySelector(`[id="${t}"]`);if(!r)return null;let o=r.cloneNode(!0);if(o.removeAttribute("id"),o.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(o,i);if(o.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(o),i);let p=this._svgElementFromString(xe(""));return p.appendChild(o),this._setSvgAttributes(p,i)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let i=t.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(e){let t=this._svgElementFromString(xe("")),i=e.attributes;for(let r=0;rxe(K)),zt(()=>this._inProgressUrlFetches.delete(o)),Vt());return this._inProgressUrlFetches.set(o,_),_}_addSvgIconConfig(e,t,i){return this._svgIconConfigs.set(ki(e,t),i),this}_addSvgIconSetConfig(e,t){let i=this._iconSetConfigs.get(e);return i?i.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;il?l.pathname+l.search:""}}var Ai=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],un=Ai.map(n=>`[${n}]`).join(", "),fn=/^url\(['"]?#(.*?)['"]?\)$/,Pi=(()=>{class n{_elementRef=d(R);_iconRegistry=d(ln);_location=d(dn);_errorHandler=d(De);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Me.EMPTY;constructor(){let e=d(new Bt("aria-hidden"),{optional:!0}),t=d(pn,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let i=e.childNodes[t];(i.nodeType!==1||i.nodeName.toLowerCase()==="svg")&&i.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(i=>i.length>0);this._previousFontSetClass.forEach(i=>e.classList.remove(i)),t.forEach(i=>e.classList.add(i)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((i,r)=>{i.forEach(o=>{r.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(un),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let p=t[r],_=p.getAttribute(o),K=_?_.match(fn):null;if(K){let Se=i.get(p);Se||(Se=[],i.set(p,Se)),Se.push({name:o,value:K[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,i]=this._splitIconName(e);t&&(this._svgNamespace=t),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,t).pipe(Ie(1)).subscribe(r=>this._setSvgElement(r),r=>{let o=`Error retrieving icon ${t}:${i}! ${r.message}`;this._errorHandler.handleError(new Error(o))})}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,i){t&2&&(j("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),Oe(i.color?"mat-"+i.color:""),D("mat-icon-inline",i.inline)("mat-icon-no-color",i.color!=="primary"&&i.color!=="accent"&&i.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",L],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Ce],ngContentSelectors:on,decls:1,vars:0,template:function(t,i){t&1&&(q(),Q(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return n})(),Ni=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ne({type:n});static \u0275inj=Z({imports:[re,re]})}return n})();function hn(n,l){if(n&1&&$(0,2),n&2){let e=f();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function _n(n,l){if(n&1&&(a(0,"span",7),c(1),s()),n&2){let e=f(2);m(),O(e._getDefaultTextForState(e.state))}}function gn(n,l){if(n&1&&(a(0,"span",8),c(1),s()),n&2){let e=f(3);m(),O(e._intl.completedLabel)}}function vn(n,l){if(n&1&&(a(0,"span",8),c(1),s()),n&2){let e=f(3);m(),O(e._intl.editableLabel)}}function Cn(n,l){if(n&1&&(x(0,gn,2,1,"span",8)(1,vn,2,1,"span",8),a(2,"mat-icon",7),c(3),s()),n&2){let e=f(2);I(e.state==="done"?0:e.state==="edit"?1:-1),m(3),O(e._getDefaultTextForState(e.state))}}function bn(n,l){if(n&1&&x(0,_n,2,1,"span",7)(1,Cn,4,2),n&2){let e,t=f();I((e=t.state)==="number"?0:1)}}function yn(n,l){n&1&&(a(0,"div",4),$(1,9),s()),n&2&&(m(),u("ngTemplateOutlet",l.template))}function xn(n,l){if(n&1&&(a(0,"div",4),c(1),s()),n&2){let e=f();m(),O(e.label)}}function Sn(n,l){if(n&1&&(a(0,"div",5),c(1),s()),n&2){let e=f();m(),O(e._intl.optionalLabel)}}function Mn(n,l){if(n&1&&(a(0,"div",6),c(1),s()),n&2){let e=f();m(),O(e.errorMessage)}}var Vi=["*"];function In(n,l){}function En(n,l){if(n&1&&(Q(0),x(1,In,0,0,"ng-template",0)),n&2){let e=f();m(),u("cdkPortalOutlet",e._portal)}}var Li=(n,l)=>({step:n,i:l}),Hi=n=>({animationDuration:n}),Ui=(n,l)=>({value:n,params:l});function wn(n,l){n&1&&Q(0)}function Fn(n,l){n&1&&S(0,"div",6)}function Dn(n,l){if(n&1&&($(0,5),x(1,Fn,1,0,"div",6)),n&2){let e=l.$implicit,t=l.$index,i=l.$count;f(2);let r=M(4);u("ngTemplateOutlet",r)("ngTemplateOutletContext",be(3,Li,e,t)),m(),I(t!==i-1?1:-1)}}function Tn(n,l){if(n&1){let e=V();a(0,"div",7),h("@horizontalStepTransition.done",function(i){v(e);let r=f(2);return C(r._animationDone.next(i))}),$(1,8),s()}if(n&2){let e=l.$implicit,t=l.$index,i=f(2);D("mat-horizontal-stepper-content-inactive",i.selectedIndex!==t),u("@horizontalStepTransition",be(8,Ui,i._getAnimationDirection(t),_t(6,Hi,i._getAnimationDuration())))("id",i._getStepContentId(t)),j("aria-labelledby",i._getStepLabelId(t)),m(),u("ngTemplateOutlet",e.content)}}function On(n,l){if(n&1&&(a(0,"div",1)(1,"div",2),ke(2,Dn,2,6,null,null,Re),s(),a(4,"div",3),ke(5,Tn,2,11,"div",4,Re),s()()),n&2){let e=f();m(2),Ae(e.steps),m(3),Ae(e.steps)}}function Rn(n,l){if(n&1){let e=V();a(0,"div",9),$(1,5),a(2,"div",10)(3,"div",11),h("@verticalStepTransition.done",function(i){v(e);let r=f(2);return C(r._animationDone.next(i))}),a(4,"div",12),$(5,8),s()()()()}if(n&2){let e=l.$implicit,t=l.$index,i=l.$count,r=f(2),o=M(4);m(),u("ngTemplateOutlet",o)("ngTemplateOutletContext",be(10,Li,e,t)),m(),D("mat-stepper-vertical-line",t!==i-1),m(),D("mat-vertical-stepper-content-inactive",r.selectedIndex!==t),u("@verticalStepTransition",be(15,Ui,r._getAnimationDirection(t),_t(13,Hi,r._getAnimationDuration())))("id",r._getStepContentId(t)),j("aria-labelledby",r._getStepLabelId(t)),m(2),u("ngTemplateOutlet",e.content)}}function kn(n,l){if(n&1&&ke(0,Rn,6,18,"div",9,Re),n&2){let e=f();Ae(e.steps)}}function An(n,l){if(n&1){let e=V();a(0,"mat-step-header",13),h("click",function(){let i=v(e).step;return C(i.select())})("keydown",function(i){v(e);let r=f();return C(r._onKeydown(i))}),s()}if(n&2){let e=l.step,t=l.i,i=f();D("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),u("tabIndex",i._getFocusIndex()===t?0:-1)("id",i._getStepLabelId(t))("index",t)("state",i._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",i.selectedIndex===t)("active",i._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!i._stepIsNavigable(t,e))("color",e.color||i.color),j("aria-posinset",t+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(t))("aria-selected",i.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",i._stepIsNavigable(t,e)?null:!0)}}var Dt=(()=>{class n extends Ft{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Fe(n)))(i||n)}})();static \u0275dir=E({type:n,selectors:[["","matStepLabel",""]],features:[z]})}return n})(),lt=(()=>{class n{changes=new he;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(t){return new(t||n)};static \u0275prov=we({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Pn(n){return n||new lt}var Nn={provide:lt,deps:[[new mt,new ut,lt]],useFactory:Pn},Tt=(()=>{class n extends wt{_intl=d(lt);_focusMonitor=d(ai);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super(),d(It).load(pi),d(It).load(ni);let e=d(Le);this._intlSubscription=this._intl.changes.subscribe(()=>e.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 Dt?null:this.label}_templateLabel(){return this.label instanceof Dt?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,i){t&2&&Oe("mat-"+(i.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[z],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,i){if(t&1&&(S(0,"div",0),a(1,"div")(2,"div",1),x(3,hn,1,2,"ng-container",2)(4,bn,2,1),s()(),a(5,"div",3),x(6,yn,2,1,"div",4)(7,xn,2,1,"div",4)(8,Sn,2,1,"div",5)(9,Mn,2,1,"div",6),s()),t&2){let r;u("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disableRipple),m(),qt("mat-step-icon-state-",i.state," mat-step-icon"),D("mat-step-icon-selected",i.selected),m(2),I(i.iconOverrides&&i.iconOverrides[i.state]?3:4),m(2),D("mat-step-label-active",i.active)("mat-step-label-selected",i.selected)("mat-step-label-error",i.state=="error"),m(),I((r=i._templateLabel())?6:i._stringLabel()?7:-1,r),m(2),I(i.optional&&i.state!="error"?8:-1),m(),I(i.state==="error"?9:-1)}},dependencies:[di,vt,Pi],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.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;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.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}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}'],encapsulation:2,changeDetection:0})}return n})(),Bi="500ms",ji="225ms",zi={horizontalStepTransition:Ct("horizontalStepTransition",[W("previous",G({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),W("current",G({transform:"none",visibility:"inherit"})),W("next",G({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),xt("* => *",yt([bt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),Mt("@*",St(),{optional:!0})]),{params:{animationDuration:Bi}})]),verticalStepTransition:Ct("verticalStepTransition",[W("previous",G({height:"0px",visibility:"hidden"})),W("next",G({height:"0px",visibility:"hidden"})),W("current",G({height:"*",visibility:"inherit"})),xt("* <=> current",yt([bt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),Mt("@*",St(),{optional:!0})]),{params:{animationDuration:ji}})])},Ot=(()=>{class n{templateRef=d(ie);name;constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=E({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return n})(),zn=(()=>{class n{_template=d(ie);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=E({type:n,selectors:[["ng-template","matStepContent",""]]})}return n})(),Rt=(()=>{class n extends ot{_errorStateMatcher=d(je,{skipSelf:!0});_viewContainerRef=d($t);_isSelected=Me.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Lt(()=>this._stepper.selectionChange.pipe(N(e=>e.selectedStep===this),J(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new gi(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){let i=this._errorStateMatcher.isErrorState(e,t),r=!!(e&&e.invalid&&this.interacted);return i||r}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Fe(n)))(i||n)}})();static \u0275cmp=y({type:n,selectors:[["mat-step"]],contentQueries:function(t,i,r){if(t&1&&(T(r,Dt,5),T(r,zn,5)),t&2){let o;w(o=F())&&(i.stepLabel=o.first),w(o=F())&&(i._lazyContent=o.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ft([{provide:je,useExisting:n},{provide:ot,useExisting:n}]),z],ngContentSelectors:Vi,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,i){t&1&&(q(),x(0,En,2,1,"ng-template"))},dependencies:[vi],encapsulation:2,changeDetection:0})}return n})(),fe=(()=>{class n extends ye{_stepHeader=void 0;_steps=void 0;steps=new ve;_icons;animationDone=new X;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};_animationDone=new he;get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!d(ti).isBrowser;constructor(){super();let t=d(R).nativeElement.nodeName.toLowerCase();this.orientation=t==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(B(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(B(this._destroyed)).subscribe(e=>{e.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?Bi:ji}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,i,r){if(t&1&&(T(r,Rt,5),T(r,Ot,5)),t&2){let o;w(o=F())&&(i._steps=o),w(o=F())&&(i._icons=o)}},viewQuery:function(t,i){if(t&1&&Ne(Tt,5),t&2){let r;w(r=F())&&(i._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(t,i){t&2&&(j("aria-orientation",i.orientation),D("mat-stepper-horizontal",i.orientation==="horizontal")("mat-stepper-vertical",i.orientation==="vertical")("mat-stepper-label-position-end",i.orientation==="horizontal"&&i.labelPosition=="end")("mat-stepper-label-position-bottom",i.orientation==="horizontal"&&i.labelPosition=="bottom")("mat-stepper-header-position-bottom",i.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ft([{provide:ye,useExisting:n}]),z],ngContentSelectors:Vi,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(t,i){if(t&1&&(q(),x(0,wn,1,0)(1,On,7,0,"div",1)(2,kn,2,0)(3,An,1,23,"ng-template",null,0,Wt)),t&2){let r;I(i._isServer?0:-1),m(),I((r=i.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[vt,Tt],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.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-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.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;height:var(--mat-stepper-header-height, 72px)}.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-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.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;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 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-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[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;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[zi.horizontalStepTransition,zi.verticalStepTransition]},changeDetection:0})}return n})(),$i=(()=>{class n extends Fi{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Fe(n)))(i||n)}})();static \u0275dir=E({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,i){t&2&&Pe("type",i.type)},features:[z]})}return n})();var qi=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ne({type:n});static \u0275inj=Z({providers:[Nn,je],imports:[re,Ci,Di,Ni,mi,fe,Tt,re]})}return n})();var Qi=(()=>{class n{ngControl;constructor(e){this.ngControl=e}onInput(e){this.#e(e.toUpperCase())}#e(e){this.ngControl.control&&this.ngControl.control.setValue(e,{emitEvent:!1})}static \u0275fac=function(t){return new(t||n)(te(Qe))};static \u0275dir=E({type:n,selectors:[["input","devmxUpper",""]],hostBindings:function(t,i){t&1&&h("input",function(o){return i.onInput(o.target.value)})}})}return n})();var Ln=["inputA"],Yi=(()=>{class n extends H{elRef;ngControl;inputA=Te("inputA");get inputAElm(){return this.inputA()?.nativeElement}get control(){return this.ngControl.control}constructor(e,t,i){super(e,t,!0),this.elRef=t,this.ngControl=i,this.ngControl.valueAccessor=this,this.form.valueChanges.subscribe(()=>{if(this.form.valid){let{a:r,b:o,c:p,d:_}=this.form.getRawValue();this.control.setValue(`${r+o+p+_}`.toUpperCase())}})}form=new U({a:new b("",{nonNullable:!0,validators:[g.required]}),b:new b("",{nonNullable:!0,validators:[g.required]}),c:new b("",{nonNullable:!0,validators:[g.required]}),d:new b("",{nonNullable:!0,validators:[g.required]})});onInput(e,t){e.value.length===1&&t&&t.focus()}onPaste(e,t){e.preventDefault();let i=e.clipboardData?.getData("text")??"";if(i.length===4){let[r,o,p,_]=i.split("");this.form.controls.a.setValue(r),this.form.controls.b.setValue(o),this.form.controls.c.setValue(p),this.form.controls.d.setValue(_),t.focus()}}static \u0275fac=function(t){return new(t||n)(te(jt),te(R),te(Qe,10))};static \u0275cmp=y({type:n,selectors:[["devmx-code-field"]],viewQuery:function(t,i){t&1&&ze(i.inputA,Ln,5),t&2&&Ve()},exportAs:["devmxCodeField"],features:[z],decls:13,vars:1,consts:[["inputA",""],["inputB",""],["inputC",""],["inputD",""],[3,"formGroup"],[1,"code-field"],["matInput","","devmxUpper","","minlength","1","maxlength","1","formControlName","a",3,"input","paste"],["matInput","","devmxUpper","","minlength","1","maxlength","1","formControlName","b",3,"input","keyup.backspace"],["matInput","","devmxUpper","","minlength","1","maxlength","1","formControlName","c",3,"input","keyup.backspace"],["matInput","","devmxUpper","","minlength","1","maxlength","1","formControlName","d",3,"input","keyup.backspace"]],template:function(t,i){if(t&1){let r=V();a(0,"div",4)(1,"mat-form-field",5)(2,"input",6,0),h("input",function(){v(r);let p=M(3),_=M(6);return C(i.onInput(p,_))})("paste",function(p){v(r);let _=M(12);return C(i.onPaste(p,_))}),s()(),a(4,"mat-form-field",5)(5,"input",7,1),h("input",function(){v(r);let p=M(6),_=M(9);return C(i.onInput(p,_))})("keyup.backspace",function(){v(r);let p=M(3);return C(p.focus())}),s()(),a(7,"mat-form-field",5)(8,"input",8,2),h("input",function(){v(r);let p=M(9),_=M(12);return C(i.onInput(p,_))})("keyup.backspace",function(){v(r);let p=M(6);return C(p.focus())}),s()(),a(10,"mat-form-field",5)(11,"input",9,3),h("input",function(){v(r);let p=M(12);return C(i.onInput(p))})("keyup.backspace",function(){v(r);let p=M(9);return C(p.focus())}),s()()()}t&2&&u("formGroup",i.form)},dependencies:[de,H,se,le,hi,_i,ce,pe,ae,oe,ue,me,Qi],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%]{gap:1em;display:flex;justify-content:space-between}[_nghost-%COMP%] .code-field[_ngcontent-%COMP%]{width:2.8em}"],changeDetection:0})}return n})();var ct=class extends U{constructor(){super({name:new b("",{nonNullable:!0,validators:[g.required,g.pattern(/^[a-z0-9]+$/)]}),code:new b("",{nonNullable:!0})})}};var pt=class extends U{constructor(){super({member:new b(!0,{nonNullable:!0,validators:[g.requiredTrue]}),academic:new b(!1,{nonNullable:!0}),recruiter:new b(!1,{nonNullable:!0}),speaker:new b(!1,{nonNullable:!0})})}};var dt=class extends U{constructor(){super({name:new b("",{nonNullable:!0,validators:[g.required,g.pattern(/^[a-z0-9]+$/)]}),displayName:new b("",{nonNullable:!0,validators:[g.required]}),email:new b("",{nonNullable:!0,validators:[g.required,g.email]}),roles:new pt})}};var Ki=()=>["..","cadastrar"];function Bn(n,l){n&1&&(Ut(),a(0,"svg",21),S(1,"path",22),s())}var Ji=(()=>{class n{route=d(He);router=d(Ue);stepper=Te(fe);authenticationFacade=d(rt);form=new ct;constructor(){this.authenticationFacade.connected$.pipe(Et()).subscribe(e=>{let{redirectTo:t}=this.route.snapshot.queryParams;e&&t?this.router.navigateByUrl(t):e&&this.router.navigate(["/"])}),this.form.controls.code.valueChanges.pipe(Et()).subscribe(e=>{e.length===4&&this.validateUserCode()})}sendUserCode(){if(this.form.valid){let e=this.form.getRawValue();this.authenticationFacade.sendUserCode(e);let t=[g.required];this.form.controls.code.addValidators(t)}}validateUserCode(){if(this.form.valid){let e=this.form.getRawValue();this.authenticationFacade.validateUserCode(e)}}onAnimationDone(e,t){let i=this.stepper();if(i)switch(i.selectedIndex){case 0:return t.focus();case 1:default:return e.inputAElm?.focus()}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["devmx-authentication"]],viewQuery:function(t,i){t&1&&ze(i.stepper,fe,5),t&2&&Ve()},decls:40,vars:14,consts:[["stepper",""],["nameRef",""],["codeFieldRef","devmxCodeField"],[1,"authentication-card"],[1,"authentication-card-header"],["mat-card-avatar","","src","devmx.svg","alt","devmx logo"],[1,"authentication-card-content"],["mat-raised-button","",3,"routerLink","queryParams"],[3,"linear"],["label","Identifique-se",3,"stepControl"],["matStepperIcon","edit"],[3,"submit","formGroup"],["matInput","","formControlName","name","autocomplete","username","autofocus",""],["mat-button","","matStepperNext",""],["label","Confirme sua identidade",3,"stepControl"],[3,"formGroup"],["formControlName","code"],[1,"auth-resend-button"],["mat-button","","type","button",3,"click"],["mat-button","",3,"routerLink","queryParams"],["target","_blank","rel","noopener noreferrer","href","https://wa.me/5544991422726?text=Gui,%20me%20ajuda!%20Estou%20sem%20acesso%20a%20minha%20conta%20no%20portal%20devparana.mx","mat-button",""],["width","16","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3 5L10.7721 11.045C11.4943 11.6067 12.5057 11.6067 13.2279 11.045L21 5M5.2 20H18.8C19.9201 20 20.4802 20 20.908 19.782C21.2843 19.5903 21.5903 19.2843 21.782 18.908C22 18.4802 22 17.9201 22 16.8V7.2C22 6.0799 22 5.51984 21.782 5.09202C21.5903 4.71569 21.2843 4.40973 20.908 4.21799C20.4802 4 19.9201 4 18.8 4H5.2C4.07989 4 3.51984 4 3.09202 4.21799C2.71569 4.40973 2.40973 4.71569 2.21799 5.09202C2 5.51984 2 6.07989 2 7.2V16.8C2 17.9201 2 18.4802 2.21799 18.908C2.40973 19.2843 2.71569 19.5903 3.09202 19.782C3.51984 20 4.0799 20 5.2 20Z","stroke","currentColor","stroke-width","2"]],template:function(t,i){if(t&1){let r=V();a(0,"div")(1,"mat-card",3)(2,"mat-card-header",4),S(3,"img",5),a(4,"mat-card-title"),c(5,"Autentica\xE7\xE3o"),s(),a(6,"mat-card-subtitle"),c(7,"Em dois toques"),s()(),a(8,"mat-card-content",6)(9,"a",7),c(10," Quero criar minha conta "),s()(),a(11,"mat-vertical-stepper",8,0)(13,"mat-step",9),x(14,Bn,2,0,"ng-template",10),a(15,"form",11),h("submit",function(){return v(r),C(i.sendUserCode())}),a(16,"mat-form-field")(17,"mat-label"),c(18,"Seu usu\xE1rio"),s(),S(19,"input",12,1),a(21,"mat-error"),c(22,"Obrigat\xF3rio"),s()(),a(23,"button",13),c(24,"Enviar c\xF3digo por e-mail"),s()()(),a(25,"mat-step",14)(26,"form",15)(27,"p"),c(28),Qt(29,"async"),s(),S(30,"devmx-code-field",16,2),a(32,"div",17)(33,"button",18),h("click",function(){return v(r),C(i.sendUserCode())}),c(34," Reenviar c\xF3digo "),s()()()()()(),a(35,"footer")(36,"a",19),c(37," Criar minha conta "),s(),a(38,"a",20),c(39," Recuperar conta "),s()()()}t&2&&(m(9),u("routerLink",ht(12,Ki))("queryParams",i.route.snapshot.queryParams),m(2),u("linear",!0),m(2),u("stepControl",i.form),m(2),u("formGroup",i.form),m(10),u("stepControl",i.form),m(),u("formGroup",i.form),m(2),O(Gt(29,10,i.authenticationFacade.message$)),m(8),u("routerLink",ht(13,Ki))("queryParams",i.route.snapshot.queryParams))},dependencies:[de,Ge,H,se,le,ce,pe,ae,oe,$e,qe,Yi,qi,Rt,fe,$i,Ot,Ke,Ye,We,ue,me,nt,Je,it,Xe,tt,et,Ze,Be,Kt],styles:[`[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#f1edec;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpath fill='%23f4f1f0' d='M486 705.8c-109.3-21.8-223.4-32.2-335.3-19.4C99.5 692.1 49 703 0 719.8V800h843.8c-115.9-33.2-230.8-68.1-347.6-92.2C492.8 707.1 489.4 706.5 486 705.8z'/%3E%3Cpath fill='%23f7f4f4' d='M1600 0H0v719.8c49-16.8 99.5-27.8 150.7-33.5c111.9-12.7 226-2.4 335.3 19.4c3.4 0.7 6.8 1.4 10.2 2c116.8 24 231.7 59 347.6 92.2H1600V0z'/%3E%3Cpath fill='%23f9f8f7' d='M478.4 581c3.2 0.8 6.4 1.7 9.5 2.5c196.2 52.5 388.7 133.5 593.5 176.6c174.2 36.6 349.5 29.2 518.6-10.2V0H0v574.9c52.3-17.6 106.5-27.7 161.1-30.9C268.4 537.4 375.7 554.2 478.4 581z'/%3E%3Cpath fill='%23fcfbfb' d='M0 0v429.4c55.6-18.4 113.5-27.3 171.4-27.7c102.8-0.8 203.2 22.7 299.3 54.5c3 1 5.9 2 8.9 3c183.6 62 365.7 146.1 562.4 192.1c186.7 43.7 376.3 34.4 557.9-12.6V0H0z'/%3E%3Cpath fill='%23FFFFFF' d='M181.8 259.4c98.2 6 191.9 35.2 281.3 72.1c2.8 1.1 5.5 2.3 8.3 3.4c171 71.6 342.7 158.5 531.3 207.7c198.8 51.8 403.4 40.8 597.3-14.8V0H0v283.2C59 263.6 120.6 255.7 181.8 259.4z'/%3E%3Cpath fill='%23ffffff' d='M1600 0H0v136.3c62.3-20.9 127.7-27.5 192.2-19.2c93.6 12.1 180.5 47.7 263.3 89.6c2.6 1.3 5.1 2.6 7.7 3.9c158.4 81.1 319.7 170.9 500.3 223.2c210.5 61 430.8 49 636.6-16.6V0z'/%3E%3Cpath fill='%23ffffff' d='M454.9 86.3C600.7 177 751.6 269.3 924.1 325c208.6 67.4 431.3 60.8 637.9-5.3c12.8-4.1 25.4-8.4 38.1-12.9V0H288.1c56 21.3 108.7 50.6 159.7 82C450.2 83.4 452.5 84.9 454.9 86.3z'/%3E%3Cpath fill='%23ffffff' d='M1600 0H498c118.1 85.8 243.5 164.5 386.8 216.2c191.8 69.2 400 74.7 595 21.1c40.8-11.2 81.1-25.2 120.3-41.7V0z'/%3E%3Cpath fill='%23ffffff' d='M1397.5 154.8c47.2-10.6 93.6-25.3 138.6-43.8c21.7-8.9 43-18.8 63.9-29.5V0H643.4c62.9 41.7 129.7 78.2 202.1 107.4C1020.4 178.1 1214.2 196.1 1397.5 154.8z'/%3E%3Cpath fill='%23FFFFFF' d='M1315.3 72.4c75.3-12.6 148.9-37.1 216.8-72.4h-723C966.8 71 1144.7 101 1315.3 72.4z'/%3E%3C/g%3E%3C/svg%3E");background-attachment:fixed;background-size:cover}[_nghost-%COMP%] form[_ngcontent-%COMP%]{gap:.4em;display:flex;flex-direction:column;margin-top:.8em}[_nghost-%COMP%] .authentication-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .authentication-card-header[_ngcontent-%COMP%] .mat-mdc-card-title[_ngcontent-%COMP%]{font-size:1.2em}[_nghost-%COMP%] .authentication-card-header[_ngcontent-%COMP%] .mat-mdc-card-subtitle[_ngcontent-%COMP%]{font-size:1em;opacity:.8}[_nghost-%COMP%] .authentication-card-content[_ngcontent-%COMP%]{padding:.3em 3.8em 1em}[_nghost-%COMP%] .authentication-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:80%;opacity:.8}[_nghost-%COMP%] .auth-resend-button[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:space-between}`],changeDetection:0})}return n})();function jn(n,l){n&1&&c(0," Use apenas letras do alfabeto min\xFAsculas ")}function $n(n,l){n&1&&c(0," Obrigat\xF3rio ")}function qn(n,l){n&1&&(a(0,"mat-error"),c(1,"\xC9 obrigat\xF3rio ser membro"),s())}var Zi=(()=>{class n{authFacade=d(rt);message=d(bi);dialog=d(Mi);route=d(He);router=d(Ue);form=new dt;onSubmit(){if(this.form.valid){let e=this.form.getRawValue();this.authFacade.createUser(e).pipe(Ie(1)).subscribe(()=>{let{redirectTo:r}=this.route.snapshot.queryParams,o={redirectTo:r},p=["/","conta","autenticacao","acessar"];this.router.navigate(p,{queryParams:o})});let i=`Conta ${e.name} criada`;this.message.open({message:i})}}openConduteCode(){this.dialog.readMe("https://raw.githubusercontent.com/DeveloperParana/conduta/refs/heads/master/README.md").subscribe()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=y({type:n,selectors:[["devmx-registration"]],decls:54,vars:4,consts:[[3,"submit","formGroup"],[1,"registration-card"],[1,"registration-card-header"],["mat-card-avatar","","src","devmx.svg","alt","devmx logo"],[1,"registration-card-content"],["matInput","","formControlName","displayName","placeholder","Ex.: Francisco Thiago","autocomplete","name","autofocus",""],["matInput","","formControlName","name","autocomplete","username","placeholder","Ex.: chico"],["matInput","","type","email","formControlName","email","autocomplete","email"],["formGroupName","roles",1,"registration-roles"],["formControlName","member"],["formControlName","speaker"],["formControlName","recruiter"],["formControlName","academic"],[1,"registration-card-actions"],["mat-flat-button",""],["routerLink","../acessar","mat-button",""],["href","#"],["href","javascript:void(0)",3,"click"]],template:function(t,i){t&1&&(a(0,"div")(1,"form",0),h("submit",function(){return i.onSubmit()}),a(2,"mat-card",1)(3,"mat-card-header",2),S(4,"img",3),a(5,"mat-card-title"),c(6,"Acesse a comunidade"),s(),a(7,"mat-card-subtitle"),c(8,"Fa\xE7a parte da DevParan\xE1"),s()(),a(9,"mat-card-content",4)(10,"mat-form-field")(11,"mat-label"),c(12,"Seu nome"),s(),S(13,"input",5),a(14,"mat-error"),c(15,"Obrigat\xF3rio"),s()(),a(16,"mat-form-field")(17,"mat-label"),c(18,"Seu usu\xE1rio"),s(),S(19,"input",6),a(20,"mat-error"),x(21,jn,1,0)(22,$n,1,0),s()(),a(23,"mat-form-field")(24,"mat-label"),c(25,"Seu e-mail"),s(),S(26,"input",7),a(27,"mat-error"),c(28,"Endere\xE7o inv\xE1lido"),s()(),a(29,"div",8)(30,"mat-checkbox",9),c(31," Sou membro da comunidade "),s(),x(32,qn,2,0,"mat-error"),a(33,"mat-checkbox",10),c(34," Sou ou quero ser palestrante "),s(),a(35,"mat-checkbox",11),c(36," Sou recrutador de talentos "),s(),a(37,"mat-checkbox",12),c(38," Sou da \xE1rea acad\xEAmica "),s()()(),a(39,"mat-card-actions",13)(40,"button",14),c(41,"Cadastrar"),s(),a(42,"a",15),c(43," J\xE1 tenho uma conta "),s()()(),a(44,"footer"),c(45," Ao continuar, voc\xEA concorda com nossos "),a(46,"a",16),c(47,"Termos de Servi\xE7o"),s(),c(48,", reconhece nossa "),a(49,"a",16),c(50,"Pol\xEDtica de Privacidade"),s(),c(51," e "),a(52,"a",17),h("click",function(){return i.openConduteCode()}),c(53," C\xF3digo de Conduta "),s()()()()),t&2&&(m(),u("formGroup",i.form),m(20),I(i.form.controls.name.hasError("pattern")?21:-1),m(),I(i.form.controls.name.hasError("required")?22:-1),m(10),I(i.form.controls.roles.controls.member.errors?32:-1))},dependencies:[de,Ge,H,se,le,ce,pe,fi,ae,oe,$e,qe,Si,xi,Ke,Ye,We,ue,me,nt,Je,yi,it,Xe,tt,et,Ze,ei,Be],styles:[`[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#f1edec;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg %3E%3Cpath fill='%23f4f1f0' d='M486 705.8c-109.3-21.8-223.4-32.2-335.3-19.4C99.5 692.1 49 703 0 719.8V800h843.8c-115.9-33.2-230.8-68.1-347.6-92.2C492.8 707.1 489.4 706.5 486 705.8z'/%3E%3Cpath fill='%23f7f4f4' d='M1600 0H0v719.8c49-16.8 99.5-27.8 150.7-33.5c111.9-12.7 226-2.4 335.3 19.4c3.4 0.7 6.8 1.4 10.2 2c116.8 24 231.7 59 347.6 92.2H1600V0z'/%3E%3Cpath fill='%23f9f8f7' d='M478.4 581c3.2 0.8 6.4 1.7 9.5 2.5c196.2 52.5 388.7 133.5 593.5 176.6c174.2 36.6 349.5 29.2 518.6-10.2V0H0v574.9c52.3-17.6 106.5-27.7 161.1-30.9C268.4 537.4 375.7 554.2 478.4 581z'/%3E%3Cpath fill='%23fcfbfb' d='M0 0v429.4c55.6-18.4 113.5-27.3 171.4-27.7c102.8-0.8 203.2 22.7 299.3 54.5c3 1 5.9 2 8.9 3c183.6 62 365.7 146.1 562.4 192.1c186.7 43.7 376.3 34.4 557.9-12.6V0H0z'/%3E%3Cpath fill='%23FFFFFF' d='M181.8 259.4c98.2 6 191.9 35.2 281.3 72.1c2.8 1.1 5.5 2.3 8.3 3.4c171 71.6 342.7 158.5 531.3 207.7c198.8 51.8 403.4 40.8 597.3-14.8V0H0v283.2C59 263.6 120.6 255.7 181.8 259.4z'/%3E%3Cpath fill='%23ffffff' d='M1600 0H0v136.3c62.3-20.9 127.7-27.5 192.2-19.2c93.6 12.1 180.5 47.7 263.3 89.6c2.6 1.3 5.1 2.6 7.7 3.9c158.4 81.1 319.7 170.9 500.3 223.2c210.5 61 430.8 49 636.6-16.6V0z'/%3E%3Cpath fill='%23ffffff' d='M454.9 86.3C600.7 177 751.6 269.3 924.1 325c208.6 67.4 431.3 60.8 637.9-5.3c12.8-4.1 25.4-8.4 38.1-12.9V0H288.1c56 21.3 108.7 50.6 159.7 82C450.2 83.4 452.5 84.9 454.9 86.3z'/%3E%3Cpath fill='%23ffffff' d='M1600 0H498c118.1 85.8 243.5 164.5 386.8 216.2c191.8 69.2 400 74.7 595 21.1c40.8-11.2 81.1-25.2 120.3-41.7V0z'/%3E%3Cpath fill='%23ffffff' d='M1397.5 154.8c47.2-10.6 93.6-25.3 138.6-43.8c21.7-8.9 43-18.8 63.9-29.5V0H643.4c62.9 41.7 129.7 78.2 202.1 107.4C1020.4 178.1 1214.2 196.1 1397.5 154.8z'/%3E%3Cpath fill='%23FFFFFF' d='M1315.3 72.4c75.3-12.6 148.9-37.1 216.8-72.4h-723C966.8 71 1144.7 101 1315.3 72.4z'/%3E%3C/g%3E%3C/svg%3E");background-attachment:fixed;background-size:cover}[_nghost-%COMP%] form[_ngcontent-%COMP%]{gap:1em;margin:.8em 1em 1em;max-width:24em;display:flex;flex-direction:column}[_nghost-%COMP%] .registration-card[_ngcontent-%COMP%]{min-width:22em;overflow:hidden}[_nghost-%COMP%] .registration-card-header[_ngcontent-%COMP%]{margin-bottom:1em}[_nghost-%COMP%] .registration-card-header[_ngcontent-%COMP%] .mat-mdc-card-title[_ngcontent-%COMP%]{font-size:1.2em}[_nghost-%COMP%] .registration-card-header[_ngcontent-%COMP%] .mat-mdc-card-subtitle[_ngcontent-%COMP%]{font-size:1em;opacity:.8}[_nghost-%COMP%] .registration-card-content[_ngcontent-%COMP%]{gap:.8em;display:flex;margin-bottom:.8em;flex-direction:column}[_nghost-%COMP%] .registration-card-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between}[_nghost-%COMP%] .registration-card[_ngcontent-%COMP%] .registration-roles[_ngcontent-%COMP%]{gap:.4em;display:flex;flex-direction:column}[_nghost-%COMP%] .registration-card[_ngcontent-%COMP%] .registration-roles[_ngcontent-%COMP%] .mat-mdc-form-field-error[_ngcontent-%COMP%]{margin-left:1em}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{margin:.4em 0;font-size:78%;text-align:center}`],changeDetection:0})}return n})();var da=[{path:"",providers:wi,component:Ei,children:[{path:"acessar",title:"Acessar",component:Ji},{path:"cadastrar",title:"Cadastrar",component:Zi},{path:"",redirectTo:"acessar",pathMatch:"full"}]}];export{Ei as AccountFeatureAuthComponent,da as accountFeatureAuthRoutes}; diff --git a/chunk-XYJHVZQT.js b/chunk-XYJHVZQT.js new file mode 100644 index 00000000..c9913b17 --- /dev/null +++ b/chunk-XYJHVZQT.js @@ -0,0 +1,4 @@ +import{L as c,O as b,a,k as x,t as y}from"./chunk-TEKHUYWQ.js";var $=class{};var u=class{};var f=class{};var h=class{};function ue(r){return{provide:f,useValue:r}}function fe(r){return{provide:h,useClass:r}}function v(r,e){return{provide:r,useFactory(...t){return new r(...t)},deps:e}}function le(r,e,t){return{provide:r,useFactory(...s){return new e(...s)},deps:t}}function S(r,e,t){return{provide:r,useFactory(...s){return new e(...s)},deps:t}}function ye(r,e){return{provide:r,useFactory(...t){return new r(...t)},deps:e}}var d=class{http;env;constructor(e,t){this.http=e,this.env=t}findRepoContributors(e){let t=`${this.env.api.url}/github/contributors/${e}`;return this.http.get(t)}findRepoIssues(e){let t=`${this.env.api.url}/github/issues/${e}`;return this.http.get(t)}};function ke(){return S(u,d,[h,f])}var Fe=["10m","20m","30m","40m","50m","1h","1h e 10m","1h e 20m","1h e 30m","1h e 40m","1h e 50m","2h","2h e 10m","2h e 20m","2h e 30m","2h e 40m","2h e 50m","3h","3h e 10m","3h e 20m","3h e 30m","3h e 40m","3h e 50m","4h","4h e 10m","4h e 20m","4h e 30m","4h e 40m","4h e 50m","5h","5h e 10m","5h e 20m","5h e 30m","5h e 40m","5h e 50m","6h","6h e 10m","6h e 20m","6h e 30m","6h e 40m","6h e 50m","7h","7h e 10m","7h e 20m","7h e 30m","7h e 40m","7h e 50m","8h","8h e 10m","8h e 20m","8h e 30m","8h e 40m","8h e 50m","9h","9h e 10m","9h e 20m","9h e 30m","9h e 40m","9h e 50m"];function ze(r){let[e,t]=r.split(" e "),s=+e.replace("h",""),n=t?+t.replace("m",""):0;return s*60+n}function Qe(r,e={listUnicodeChar:""}){let{listUnicodeChar:t=!1,stripListLeaders:s=!0,useImgAltText:n=!0,preserveLinks:i=!1,gfm:p=!0}=e??{},o=r??"";o=o.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{s&&(t?o=o.replace(/^([\s\t]*)([\\*\-\\+]|\d+\.)\s+/gm,t+" $1"):o=o.replace(/^([\s\t]*)([\\*\-\\+]|\d+\.)\s+/gm,"$1")),p&&(o=o.replace(/\n={2,}/g,` +`).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),i&&(o=o.replace(/\[(.*?)\][\\[\\(](.*?)[\]\\)]/g,"$1 ($2)"));let l;do l=o,o=new DOMParser().parseFromString(o,"text/html").body.textContent||"",o=o.replace(/^[=\\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\\!\[(.*?)\][\\[\\(].*?[\]\\)]/g,n?"$1":"").replace(/\[(.*?)\][\\[\\(].*?[\]\\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,` + +`).replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{1,}/g," ");while(o!==l)}catch(l){return console.error(l),r}return o}var M=r=>new Promise(r);var Xe=(r,e=500)=>M(t=>setTimeout(()=>t(r()),e));function w(r){return Object.entries(r)}function O({page:r=0,size:e=10,filter:t={},sort:s={},location:n}={}){let i=new URLSearchParams;i.append("page",`${r}`),i.append("size",`${e}`);for(let[p,o]of Object.entries(t))o&&i.append(`filter[${p}]`,`${o}`);for(let[p,o]of Object.entries(s))o&&i.append(`sort[${p}]`,`${o}`);if(n)for(let[p,o]of Object.entries(n))o&&i.append(`location[${p}]`,`${o}`);return i}function P(r){return Object.keys(r)}var F=/[\\^$.*+?()[\]{}|]/g,gt=RegExp(F.source);function bt(r){return Object.freeze(r)}var Ct=(r,e)=>Math.round(r/e*100);var I=class r{x;y;constructor(e=0,t=0){this.x=e,this.y=t}set(e,t){this.x=e,this.y=t}clone(){return new r(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}sub(e){return this.x-=e.x,this.y-=e.y,this}};function yr(r){let e=new x(r);return{current:()=>e.value,update:i=>{e.next(i)},observe:()=>e.asObservable()}}var m=class{#e;state$;get state(){return this.#e.value}constructor(e){let t=Object.freeze(e);this.#e=new x(t),this.state$=this.#e.asObservable()}select(e){return this.state$.pipe(y(t=>e(t)),b())}setState(e){this.#e.next(a(a({},this.state),e))}};var C=class{http;env;endpoint;get url(){return`${this.env.api.url}/${this.endpoint}`}constructor(e,t,s){this.http=e,this.env=t,this.endpoint=s}create(e){return this.http.post(this.url,e)}find(e){let t=[this.url,O(e)];return this.http.get(t.join("?"))}findOne(e){let t=[this.url,e];return this.http.get(t.join("/"))}update(e,t){let s=[this.url,e];return this.http.patch(s.join("/"),t)}delete(e){let t=[this.url,e];return this.http.delete(t.join("/"))}};var g=class extends m{githubService;contributors$=this.select(e=>e.contributors);issues$=this.select(e=>e.issues);constructor(e){super({contributors:[],issues:[]}),this.githubService=e}loadContributors(e){let t=this.githubService.findRepoContributors(e),s=n=>{this.setState({contributors:n})};t.pipe(c(1)).subscribe(s)}loadIssues(e){let t=this.githubService.findRepoIssues(e),s=n=>{this.setState({issues:n})};t.pipe(c(1)).subscribe(s)}};function vo(){return v(g,[u])}var D=class{static toParams(e,t){return{sort:t?`${e}:${t}`:null}}static fromParams(e){let[t,s]=e.split(":")??[];return s?{[t]:s}:{}}};var k=class extends m{response$=this.select(e=>e.response);selected$=this.select(e=>e.selected);setParams(e){this.setState({params:e})}patchParams(e){let t=a(a({},this.state.params),e);this.setState({params:t})}setPage(e,t=10){let{params:s}=this.state;s.page=e,s.size=t,this.setState({params:s})}setFilter(e){let{params:t}=this.state;t.filter=e,this.setState({params:t})}setSort(e){let{params:t}=this.state;t.sort=e,this.setState({params:t})}onLoad(e){e.pipe(c(1)).subscribe(t=>this.setState({response:t}))}onLoadOne(e){this.setState({selected:null}),e.pipe(c(1)).subscribe(t=>this.setState({selected:t}))}onCreate(e){e.pipe(c(1)).subscribe(()=>this.load())}onUpdate(e){e.pipe(c(1)).subscribe(()=>this.load())}onDelete(e){e.pipe(c(1)).subscribe(()=>this.load())}};export{$ as a,f as b,h as c,v as d,le as e,ye as f,ke as g,Fe as h,ze as i,Qe as j,M as k,Xe as l,w as m,O as n,P as o,bt as p,Ct as q,I as r,yr as s,m as t,C as u,g as v,vo as w,ue as x,fe as y,D as z,k as A}; diff --git a/chunk-YAOAPCED.js b/chunk-YAOAPCED.js deleted file mode 100644 index 463cf4af..00000000 --- a/chunk-YAOAPCED.js +++ /dev/null @@ -1 +0,0 @@ -import{a as ue,b as pe}from"./chunk-AFH22WZE.js";import{a as he,b as xe,c as ge,d as ve,e as Me,f as be,g as we,h as ye,i as Fe,j as Se,k as De}from"./chunk-HPJEYRZM.js";import{a as fe,b as Ce}from"./chunk-YJNMZPRM.js";import{a as _e}from"./chunk-VE4FGS76.js";import"./chunk-LFAX4DK3.js";import"./chunk-XC6WES62.js";import{a as ae}from"./chunk-HYAMKYUE.js";import{c as me}from"./chunk-VYHC3V3G.js";import"./chunk-3I45H2NO.js";import"./chunk-R66KDUEB.js";import"./chunk-BJXILAOS.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import"./chunk-NWAJWWA3.js";import"./chunk-XIUDFJWJ.js";import{a as de,b as y}from"./chunk-TZR6QHL3.js";import{a as A}from"./chunk-A3N3AUUJ.js";import{B as oe,G as ie,H as re,I as T}from"./chunk-4FWBEGAE.js";import"./chunk-2K6IALUF.js";import{g as U,h as J,i as K,j as W,p as N}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import{a as O,b as se,c as le,d as ce,e as k,f as V,i as H}from"./chunk-EC6LD5KM.js";import{a as X,e as B,f as j,h as Y,i as R,j as I,l as d,m as Z,p as ee,q as te,s as ne,x as E}from"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{F as z,Fc as L,Jc as w,Kc as F,Mc as Q,Nb as p,Tb as C,Yb as g,bc as i,cc as o,dc as f,ec as S,fc as D,hc as v,je as P,ka as s,kc as M,lb as c,mc as u,ta as h,ua as x,ub as _,xb as q,xc as m,yc as b}from"./chunk-TEKHUYWQ.js";var Pe=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=_({type:e,selectors:[["devmx-account-feature-admin"]],decls:1,vars:0,template:function(n,a){n&1&&f(0,"router-outlet")},dependencies:[J],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var Ue=[Ce()];var Ne=(()=>{class e{transform(t,...n){return n.some(a=>t?.roles[a])}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=q({name:"hasRole",type:e,pure:!0})}return e})();function $e(e,r){e&1&&(i(0,"th",13),m(1,"Nome"),o())}function Ge(e,r){if(e&1&&(i(0,"td",14),m(1),o()),e&2){let t=r.$implicit;c(),b(t.displayName)}}function Be(e,r){e&1&&(i(0,"th",13),m(1,"Usu\xE1rio"),o())}function je(e,r){if(e&1&&(i(0,"td",14),m(1),o()),e&2){let t=r.$implicit;c(),b(t.name)}}function Ie(e,r){e&1&&f(0,"th",13)}function ze(e,r){if(e&1){let t=v();i(0,"button",18),M("click",function(){h(t);let a=u().$implicit,l=u(3);return x(l.openDelete(a))}),f(1,"devmx-icon",19),o()}}function qe(e,r){if(e&1&&(i(0,"td",14)(1,"a",15),f(2,"devmx-icon",16),o(),p(3,ze,2,0,"button",17),w(4,"hasRole"),o()),e&2){let t=r.$implicit,n=u(2);c(),C("routerLink",t.id),c(2),g(Q(4,2,n,"director","manager")?3:-1)}}function Le(e,r){e&1&&f(0,"tr",20)}function Qe(e,r){e&1&&f(0,"tr",21)}function Je(e,r){if(e&1){let t=v();i(0,"table",3),S(1,4),p(2,$e,2,0,"th",5)(3,Ge,2,1,"td",6),D(),S(4,7),p(5,Be,2,0,"th",5)(6,je,2,1,"td",6),D(),S(7,8),p(8,Ie,1,0,"th",5)(9,qe,5,6,"td",6),D(),p(10,Le,1,0,"tr",9)(11,Qe,1,0,"tr",10),o(),i(12,"mat-card-actions",11)(13,"devmx-paginator",12),M("pageChange",function(a){h(t);let l=u(2);return x(l.onPageChange(a))}),o()()}if(e&2){let t=r,n=u(2);C("dataSource",t.data),c(10),C("matHeaderRowDef",n.columns),c(),C("matRowDefColumns",n.columns),c(2),C("size",10)("items",t.items)}}function Ke(e,r){if(e&1){let t=v();i(0,"mat-card",0)(1,"mat-card-header",1)(2,"devmx-search-field",2),M("searchChange",function(a){h(t);let l=u();return x(l.onSearchChange(a))}),o()(),p(3,Je,14,5),w(4,"async"),o()}if(e&2){let t,n=u();c(2),C("debounce",800),c(),g((t=F(4,2,n.userFacade.response$))?3:-1,t)}}var Re=(()=>{class e{router=s(K);route=s(U);authFacade=s(de);userFacade=s(y);dialogFacade=s(fe);columns=["displayName","name","actions"];constructor(){this.route.queryParams.pipe(A()).subscribe(this.onQueryParams)}onQueryParams=t=>{let{page:n=0,size:a=10}=t,{name:l="",username:Oe=""}=t,ke={name:l,username:Oe};this.userFacade.setParams({page:n,size:a,filter:ke}),this.userFacade.load()};openDelete(t){this.dialogFacade.confirm(`Confirme que deseja remover o usu\xE1rio de ${t.displayName}`,"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita").subscribe(n=>{n&&this.userFacade.delete(t.id)})}onSearchChange(t=""){this.userFacade.setFilter({displayName:t}),this.userFacade.load()}onPageChange(t){this.router.navigate([],{queryParams:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=_({type:e,selectors:[["devmx-users"]],decls:2,vars:3,consts:[[1,"users-card"],[1,"users-card-header"],[3,"searchChange","debounce"],["mat-table","",3,"dataSource"],["matColumnDef","displayName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["align","end"],[3,"pageChange","size","items"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"routerLink"],["name","user-box"],["mat-icon-button","","color","warn"],["mat-icon-button","","color","warn",3,"click"],["name","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,a){if(n&1&&(p(0,Ke,5,4,"mat-card",0),w(1,"async")),n&2){let l;g((l=F(1,1,a.authFacade.auth$))?0:-1,l)}},dependencies:[me,_e,T,re,ie,De,he,ge,we,ve,xe,ye,Me,be,Fe,Se,H,O,k,V,X,N,W,Ne,P],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .users-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .users-card-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%] .mat-mdc-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{max-width:4em}"],changeDetection:0})}return e})();var Ee=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=_({type:e,selectors:[["devmx-user-roles"]],features:[L([],[{provide:j,useFactory:()=>s(j,{skipSelf:!0})}])],decls:16,vars:0,consts:[["formGroupName","roles"],["formControlName","member"],["formControlName","speaker"],["formControlName","recruiter"],["formControlName","leader"],["formControlName","staff"]],template:function(n,a){n&1&&(i(0,"div",0)(1,"section")(2,"mat-checkbox",1),m(3,"Membro"),o()(),i(4,"section")(5,"mat-checkbox",2),m(6,"Palestrante"),o()(),i(7,"section")(8,"mat-checkbox",3),m(9,"Recrutador(a)"),o()(),i(10,"section")(11,"mat-checkbox",4),m(12,"L\xEDder de grupo"),o()(),i(13,"section")(14,"mat-checkbox",5),m(15,"Organizador"),o()()())},dependencies:[E,Y,R,ne,te,pe,ue],encapsulation:2,changeDetection:0})}return e})();var G=class extends I{constructor(){super({id:new d("",{nonNullable:!0,validators:[B.required]}),roles:new I({academic:new d(!1,{nonNullable:!0}),director:new d(!1,{nonNullable:!0}),donor:new d(!1,{nonNullable:!0}),fellow:new d(!1,{nonNullable:!0}),leader:new d(!1,{nonNullable:!0}),manager:new d(!1,{nonNullable:!0}),member:new d(!1,{nonNullable:!0,validators:[B.requiredTrue]}),neighbor:new d(!1,{nonNullable:!0}),recruiter:new d(!1,{nonNullable:!0}),speaker:new d(!1,{nonNullable:!0}),staff:new d(!1,{nonNullable:!0})})})}};function Xe(e,r){if(e&1){let t=v();i(0,"form",1),M("submit",function(){h(t);let a=u();return x(a.onSubmit())}),i(1,"mat-card",2)(2,"mat-card-header",3)(3,"mat-card-title"),m(4),o(),i(5,"mat-card-subtitle"),m(6),o()(),i(7,"mat-card-content",4),f(8,"devmx-user-roles"),o(),i(9,"mat-card-actions",5)(10,"button",6),m(11,"Salvar"),o()()()()}if(e&2){let t=r,n=u();C("formGroup",n.form),c(4),b(t.displayName),c(2),b(t.name)}}var Te=(()=>{class e{route=s(U);userFacade=s(y);messageService=s(ae);form=new G;constructor(){this.route.data.pipe(A()).subscribe(({user:t})=>{t&&this.form.patchValue(t)})}onSubmit(){if(this.form.valid){let t=this.form.getRawValue();return this.userFacade.updateRoles(t),this.messageService.open({message:"Armazenando informa\xE7\xF5es"})}return this.form.markAllAsTouched()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=_({type:e,selectors:[["devmx-admin-user"]],decls:2,vars:3,consts:[[3,"formGroup"],[3,"submit","formGroup"],[1,"user-card"],[1,"user-card-header"],[1,"user-card-content"],["align","end"],["mat-button",""]],template:function(n,a){if(n&1&&(p(0,Xe,12,3,"form",0),w(1,"async")),n&2){let l;g((l=F(1,1,a.userFacade.selected$))?0:-1,l)}},dependencies:[E,Z,R,ee,Ee,T,oe,H,O,k,le,V,ce,se,N,P],styles:["[_nghost-%COMP%]{flex:1;padding:1em;display:flex;flex-direction:column}[_nghost-%COMP%] .user-card[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .user-card-header[_ngcontent-%COMP%]{padding-bottom:.8em;border-bottom:1px dashed rgba(0,0,0,.1)}[_nghost-%COMP%] .user-card-content[_ngcontent-%COMP%]{padding-top:.8em}"],changeDetection:0})}return e})();var Ae=e=>{let r=s(y);return r.loadOne(e.params.id),r.selected$.pipe(z(t=>!!t))};var an=[{path:"",data:{breadcrumb:"Administra\xE7\xE3o"},title:"Administrar conta",providers:Ue,component:Pe,children:[{path:"usuarios",data:{breadcrumb:"Usu\xE1rios"},title:"Contas de usu\xE1rios",component:Re},{path:"usuarios/:id",data:{breadcrumb:e=>e.user.displayName},title:"Usu\xE1rio",resolve:{user:Ae},component:Te},{path:"",pathMatch:"prefix",redirectTo:"usuarios"}]}];export{Pe as AccountFeatureAdminComponent,an as accountFeatureAdminRoutes}; diff --git a/chunk-FB5UBQJ4.js b/chunk-YDU3JYTF.js similarity index 98% rename from chunk-FB5UBQJ4.js rename to chunk-YDU3JYTF.js index e4360e67..2219497d 100644 --- a/chunk-FB5UBQJ4.js +++ b/chunk-YDU3JYTF.js @@ -1 +1 @@ -import{b as Ae}from"./chunk-MLNPCJDD.js";import{a as Se}from"./chunk-WVZCQXYK.js";import{a as Re}from"./chunk-5FQQWOZL.js";import{a as $e}from"./chunk-AC7KYN3P.js";import"./chunk-3SNV2MVI.js";import"./chunk-2IAXMR6M.js";import{c as Fe}from"./chunk-NWAJWWA3.js";import"./chunk-XIUDFJWJ.js";import{a as Le,b as D,d as Ve,e as qe}from"./chunk-TZR6QHL3.js";import{a as Ue}from"./chunk-KOL7ATC4.js";import"./chunk-5DAHKZ7F.js";import{a as ze}from"./chunk-A3N3AUUJ.js";import{I as De,j as Oe}from"./chunk-4FWBEGAE.js";import{c as fe,d as we,g as A,h as be,p as ve}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import{a as Ie,b as Ee,d as Te}from"./chunk-EDIJ2EBQ.js";import{Q as Ce,T as ke,Y as j,ca as xe,ga as Me,q as ye,sa as Pe}from"./chunk-W5KNOAKV.js";import{$b as k,Aa as J,Ea as L,F as P,Fc as he,Ia as y,Ja as Z,Jc as w,Kc as E,L as U,Lc as $,Mb as ie,Nb as p,Pa as K,Sb as C,Sc as pe,Tb as u,Vb as q,Vc as b,Wb as ae,Wc as ue,Xc as _e,Yb as d,ac as x,bc as n,cc as s,da as G,dc as l,ea as X,fa as H,gb as V,ha as Q,hc as T,ic as ne,ja as R,je as ge,ka as r,kc as I,lb as c,mc as m,nc as oe,oc as ce,qc as se,rc as re,sa as W,sc as de,t as M,ta as O,ua as S,ub as g,va as Y,vb as ee,wc as le,xb as te,xc as _,yc as f,zc as me}from"./chunk-TEKHUYWQ.js";var je=(()=>{class t{route=r(A);script=r(Re);constructor(){this.route.data.pipe(P(({schema:e})=>!!e),M(({schema:e})=>e),ze()).subscribe(e=>{let i="application/ld+json",a=JSON.stringify(e,null,2);this.script.addScript({type:i},a)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["devmx-account-feature-about"]],decls:2,vars:0,template:function(i,a){i&1&&(n(0,"devmx-app-shell"),l(1,"router-outlet"),s())},dependencies:[ve,be,Ue],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] h1[_ngcontent-%COMP%]{font-size:100%;margin:0}[_nghost-%COMP%] .toolbar[_ngcontent-%COMP%]{display:flex;gap:1em}"],changeDetection:0})}return t})();var Be=[];var Ne=t=>qe(r(D),t.params);var Ge=t=>{let o=t.parent?t.parent.params:t.params;return Ve(r(D),o)};var Ke=["switch"],et=["*"];function tt(t,o){t&1&&(n(0,"span",10),Y(),n(1,"svg",12),l(2,"path",13),s(),n(3,"svg",14),l(4,"path",15),s()())}var it=new Q("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),at={provide:Ee,useExisting:G(()=>F),multi:!0},z=class{source;checked;constructor(o,e){this.source=o,this.checked=e}},F=(()=>{class t{_elementRef=r(Z);_focusMonitor=r(Ce);_changeDetectorRef=r(pe);defaults=r(it);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new z(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations;_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new L;toggleChange=new L;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){r(ye).load(xe);let e=r(new J("tabindex"),{optional:!0}),i=this.defaults,a=r(K,{optional:!0});this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this._noopAnimations=a==="NoopAnimations",this.id=this._uniqueId=r(ke).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new z(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,a){if(i&1&&se(Ke,5),i&2){let h;re(h=de())&&(a._switchElement=h.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,a){i&2&&(ne("id",a.id),C("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),ae(a.color?"mat-"+a.color:""),q("mat-mdc-slide-toggle-focused",a._focused)("mat-mdc-slide-toggle-checked",a.checked)("_mat-animation-noopable",a._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",b],color:"color",disabled:[2,"disabled","disabled",b],disableRipple:[2,"disableRipple","disableRipple",b],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ue(e)],checked:[2,"checked","checked",b],hideIcon:[2,"hideIcon","hideIcon",b],disabledInteractive:[2,"disabledInteractive","disabledInteractive",b]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[he([at,{provide:Te,useExisting:t,multi:!0}]),ie,W],ngContentSelectors:et,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(i,a){if(i&1){let h=T();oe(),n(0,"div",1)(1,"button",2,0),I("click",function(){return O(h),S(a._handleClick())}),l(3,"span",3),n(4,"span",4)(5,"span",5)(6,"span",6),l(7,"span",7),s(),n(8,"span",8),l(9,"span",9),s(),p(10,tt,5,0,"span",10),s()()(),n(11,"label",11),I("click",function(N){return O(h),S(N.stopPropagation())}),ce(12),s()()}if(i&2){let h=le(2);u("labelPosition",a.labelPosition),c(),q("mdc-switch--selected",a.checked)("mdc-switch--unselected",!a.checked)("mdc-switch--checked",a.checked)("mdc-switch--disabled",a.disabled)("mat-mdc-slide-toggle-disabled-interactive",a.disabledInteractive),u("tabIndex",a.disabled&&!a.disabledInteractive?-1:a.tabIndex)("disabled",a.disabled&&!a.disabledInteractive),C("id",a.buttonId)("name",a.name)("aria-label",a.ariaLabel)("aria-labelledby",a._getAriaLabelledBy())("aria-describedby",a.ariaDescribedby)("aria-required",a.required||null)("aria-checked",a.checked)("aria-disabled",a.disabled&&a.disabledInteractive?"true":null),c(8),u("matRippleTrigger",h)("matRippleDisabled",a.disableRipple||a.disabled)("matRippleCentered",!0),c(),d(a.hideIcon?-1:10),c(),u("for",a.buttonId),C("id",a._labelId)}},dependencies:[Me,Pe],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height, 32px);border-radius:var(--mdc-switch-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width, 2px);border-color:var(--mat-switch-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width, 2px);border-color:var(--mat-switch-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size, 16px);height:var(--mat-switch-unselected-handle-size, 16px);margin:var(--mat-switch-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size, 24px);height:var(--mat-switch-selected-handle-size, 24px);margin:var(--mat-switch-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size, 24px);height:var(--mat-switch-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size, 28px);height:var(--mat-switch-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size, 40px);height:var(--mdc-switch-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 16px);height:var(--mdc-switch-unselected-icon-size, 16px);fill:var(--mdc-switch-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 16px);height:var(--mdc-switch-selected-icon-size, 16px);fill:var(--mdc-switch-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}'],encapsulation:2,changeDetection:0})}return t})();var Xe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=H({imports:[F,j,j]})}return t})();var He=(()=>{class t{transform(e,i="phone"){if(e)switch(i){default:case"phone":{let a="#".repeat(Math.max(0,String(e).length-6)),h=String(e).slice(-6);return a+h}case"email":{let[a,h]=String(e).split("@");return`${a[0]+"#".repeat(a.length-2)+a[a.length-1]}@${h}`}}}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=te({name:"shadow",type:t,pure:!0})}return t})();var Qe=(()=>{class t{_meta;_title;constructor(e,i){this._meta=e,this._title=i}setImage(e){this._title.setTitle(e.title),this.#e("url",e.url),this.#e("type","website"),this.#e("title",e.title),this.#e("description",e.description),this.#e("image",e.image),this.#e("image:type",e.type),this.#e("image:width",e.width),this.#e("image:height",e.height)}setVideo(e){this._title.setTitle(e.title),this.#e("url",e.url),this.#e("type","website"),this.#e("title",e.title),this.#e("description",e.description),this.#e("video",e.video),this.#e("image:type",e.type),this.#e("image:width",e.width),this.#e("image:height",e.height)}#e(e,i){let a=this.#t(e);e=`og:${e}`,i=`${i}`,this._meta.updateTag({property:e,content:i},a)}#t(e){return`property="og:${e}"`}static \u0275fac=function(i){return new(i||t)(R(fe),R(we))};static \u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ot=(t,o)=>o.id;function ct(t,o){if(t&1&&(n(0,"li"),_(1),s()),t&2){let e=o.$implicit;c(),f(e.title)}}var We=(()=>{class t{data=y.required();static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["devmx-user-presentations"]],inputs:{data:[1,"data"]},decls:3,vars:0,template:function(i,a){i&1&&(n(0,"ul"),k(1,ct,2,1,"li",null,ot),s()),i&2&&(c(),x(a.data()))},styles:['[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{gap:8px;margin:0;padding:0;display:flex;flex-direction:column;list-style-type:none}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{gap:8px;display:flex;list-style-type:none;align-items:center}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";display:flex;width:18px;min-height:18px;background-image:url(data:image/svg+xml,%3Csvg%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d=%22M18%204L14%2020M10%204L6%2020M5%208H21M3%2016H19%22%20stroke=%22currentColor%22%20stroke-width=%222%22%20stroke-linecap=%22round%22/%3E%3C/svg%3E);background-size:18px;background-position:center;background-repeat:no-repeat;align-items:center}'],changeDetection:0})}return t})();var st=(t,o)=>o.id;function rt(t,o){if(t&1&&(n(0,"li"),_(1),s()),t&2){let e=o.$implicit;c(),f(e.title)}}var Ye=(()=>{class t{data=y.required();static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["devmx-user-events"]],inputs:{data:[1,"data"]},decls:3,vars:0,template:function(i,a){i&1&&(n(0,"ul"),k(1,rt,2,1,"li",null,st),s()),i&2&&(c(),x(a.data()))},styles:['[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{gap:8px;margin:0;padding:0;display:flex;flex-direction:column;list-style-type:none}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{gap:8px;display:flex;list-style-type:none;align-items:center}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";display:flex;width:18px;min-height:18px;background-image:url(data:image/svg+xml,%3Csvg%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d=%22M16.7365%207L7.25643%2016.7233C6.89674%2017.0922%206.31358%2017.0922%205.95389%2016.7233L2%2012.668M12.5199%2016.7233L22%207%22%20stroke=%22currentColor%22%20stroke-width=%222%22%20stroke-linecap=%22round%22/%3E%3C/svg%3E);background-size:18px;background-position:center;background-repeat:no-repeat;align-items:center}'],changeDetection:0})}return t})();var dt=(t,o)=>o.skill.id;function lt(t,o){if(t&1&&(n(0,"li"),_(1),s()),t&2){let e=o.$implicit;C("data-weight",e.weight),c(),me(" ",e.skill.name," ")}}var Je=(()=>{class t{data=y.required();static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["devmx-user-skills"]],inputs:{data:[1,"data"]},decls:3,vars:0,template:function(i,a){i&1&&(n(0,"ul"),k(1,lt,2,2,"li",null,dt),s()),i&2&&(c(),x(a.data()))},styles:['[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{gap:8px;margin:0;padding:0;display:flex;flex-direction:column;list-style-type:none}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{gap:8px;display:flex;list-style-type:none;align-items:center}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";display:flex;width:18px;min-height:18px;background-image:url(data:image/svg+xml,%3Csvg%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d=%22M20%207L9.35355%2017.6464C9.15829%2017.8417%208.84171%2017.8417%208.64645%2017.6464L4%2013%22%20stroke=%22currentColor%22%20stroke-width=%222%22%20stroke-linecap=%22round%22/%3E%3C/svg%3E);background-size:18px;background-position:center;background-repeat:no-repeat;align-items:center}'],changeDetection:0})}return t})();function mt(t,o){if(t&1){let e=T();n(0,"div",0)(1,"mat-slide-toggle",1),I("change",function(){O(e);let a=m(3);return S(a.toggleDesignMode())}),s()()}if(t&2){let e=m(3);c(),u("checked",e.designMode())}}function ht(t,o){if(t&1&&(n(0,"menu"),p(1,mt,2,1,"div",0),s()),t&2){let e=m();c(),d(o.id===e.id?1:-1)}}function pt(t,o){if(t&1&&(n(0,"a",2),l(1,"devmx-icon",3),n(2,"span"),_(3),w(4,"shadow"),s()()),t&2){let e=m(2);u("href","mailto:"+e.contact.email,V),c(3),f($(4,2,e.contact.email,"email"))}}function ut(t,o){if(t&1&&(n(0,"a",2),l(1,"devmx-icon",4),n(2,"span"),_(3),w(4,"shadow"),s()()),t&2){let e=m(2);u("href","tel://"+e.contact.phone,V),c(3),f($(4,2,e.contact.phone,"phone"))}}function _t(t,o){if(t&1&&(n(0,"nav"),p(1,pt,5,5,"a",2)(2,ut,5,5,"a",2),s()),t&2){let e=m();c(),d(e.visibility!=null&&e.visibility.email?1:-1),c(),d(e.visibility!=null&&e.visibility.phone?2:-1)}}function gt(t,o){if(t&1&&l(0,"devmx-markdown-view",5),t&2){let e=m(2);u("content",e.profile.minibio)}}function ft(t,o){if(t&1&&(n(0,"article"),p(1,gt,1,1,"devmx-markdown-view",5),s()),t&2){let e=m();c(),d(e.profile.minibio?1:-1)}}function wt(t,o){if(t&1&&(n(0,"h3"),_(1,"Habilidades"),s(),l(2,"devmx-user-skills",6)),t&2){let e=m(3);c(2),u("data",e.skills)}}function bt(t,o){if(t&1&&(n(0,"section"),p(1,wt,3,1),s()),t&2){let e=m(2);c(),d(e.skills?1:-1)}}function vt(t,o){t&1&&(n(0,"h3"),_(1,"Eventos organizados"),s(),l(2,"devmx-user-events",6)),t&2&&(c(2),u("data",o.data))}function yt(t,o){if(t&1&&(n(0,"section"),p(1,vt,3,1),w(2,"async"),s()),t&2){let e,i=m(3);c(),d((e=E(2,1,i.eventFacade.response$))?1:-1,e)}}function Ct(t,o){t&1&&(n(0,"h3"),_(1,"Apresenta\xE7\xF5es"),s(),l(2,"devmx-user-presentations",6)),t&2&&(c(2),u("data",o.data))}function kt(t,o){if(t&1&&(n(0,"section"),p(1,Ct,3,1),w(2,"async"),s()),t&2){let e,i=m(3);c(),d((e=E(2,1,i.presentationFacade.response$))?1:-1,e)}}function xt(t,o){if(t&1&&(n(0,"aside"),p(1,bt,2,1,"section")(2,yt,3,3,"section")(3,kt,3,3,"section"),s()),t&2){let e=m();c(),d(e.visibility.skills?1:-1),c(),d(e.visibility.events?2:-1),c(),d(e.visibility.presentations?3:-1)}}function Mt(t,o){if(t&1&&(p(0,ht,2,1,"menu"),w(1,"async"),n(2,"header")(3,"h2"),_(4),s(),p(5,_t,3,2,"nav"),s(),n(6,"main"),p(7,ft,2,1,"article")(8,xt,4,3,"aside"),s()),t&2){let e,i=o,a=m();d((e=E(1,5,a.authFacade.auth$))?0:-1,e),c(4),f(i.displayName),c(),d(i.visibility!=null&&i.visibility.email||i.visibility!=null&&i.visibility.phone?5:-1),c(2),d(i.profile?7:-1),c(),d(i.visibility?8:-1)}}var Ze=(()=>{class t{authFacade=r(Le);presentationFacade=r(Se);eventFacade=r(Fe);route=r(A);graph=r(Qe);user$=this.route.data.pipe(P(({about:e})=>!!e),M(({about:e})=>e));designMode=_e(()=>document.designMode==="on");constructor(){this.user$.pipe(P(e=>!!e.id),M(e=>e.id),U(1)).subscribe(e=>{console.log("owner: ",e);let i={title:"",owner:e};this.eventFacade.setFilter(i),this.presentationFacade.setFilter(i),this.eventFacade.load(),this.presentationFacade.load()}),this.user$.pipe(U(1)).subscribe(e=>{console.log("user: ",e),this.graph.setImage({title:`Perfil de ${e.displayName}`,description:Oe(e.profile?.minibio??""),url:`https://devparana.mx/#/sobre/${e.name}`,image:"https://devparana.mx/images/resume-folder.webp",type:"image/webp",width:800,height:800})})}toggleDesignMode(){let{designMode:e}=document,i=e==="on"?"off":"on";document.designMode=i}print(){window.print()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["devmx-about-user"]],decls:2,vars:3,consts:[[1,"edit-mode-toggle"],[3,"change","checked"],[3,"href"],["name","message/mail"],["name","tech/phone"],[3,"content"],[3,"data"]],template:function(i,a){if(i&1&&(p(0,Mt,9,7),w(1,"async")),i&2){let h;d((h=E(1,1,a.user$))?0:-1,h)}},dependencies:[$e,We,Xe,F,Je,Ye,Ae,De,Ie,He,ge],styles:["[_nghost-%COMP%]{flex:1;gap:2em;padding:1em;position:relative;display:flex;flex-direction:column;background-color:#fff}@media print{[_nghost-%COMP%]{max-width:822px;width:100vw;padding:0}}[_nghost-%COMP%] menu[_ngcontent-%COMP%]{margin:0;padding:0;top:16px;right:16px;position:absolute;display:flex;gap:8px}@media print{[_nghost-%COMP%] menu[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%] > header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:200%}[_nghost-%COMP%] > header[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%]{gap:2em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] > header[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{gap:.4em;display:flex;align-items:center}[_nghost-%COMP%] > header[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:link:not(.mdc-button):not(.mdc-icon-button):not(.mdc-fab){color:#1e1e1e}[_nghost-%COMP%] > header[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{text-decoration:underline}[_nghost-%COMP%] > main[_ngcontent-%COMP%]{flex:1;gap:4em;display:flex;flex-direction:row;justify-content:space-between}@media print{[_nghost-%COMP%] > main[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%] > main[_ngcontent-%COMP%] .user-card[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] > main[_ngcontent-%COMP%] article[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column}@media print{[_nghost-%COMP%] > main[_ngcontent-%COMP%] article[_ngcontent-%COMP%]{flex:2;min-width:480px}}[_nghost-%COMP%] > main[_ngcontent-%COMP%] aside[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:column;width:24em}[_nghost-%COMP%] > main[_ngcontent-%COMP%] aside[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;opacity:.6;font-size:120%}[_nghost-%COMP%] > main[_ngcontent-%COMP%] aside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] ol[_ngcontent-%COMP%]{padding-left:1.4em}[_nghost-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:1em}[_nghost-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0} :root .mat-typography article h1, :root .mat-typography article h2, :root .mat-typography article h3, :root .mat-typography article h4, :root .mat-typography article h5, :root .mat-typography article h6{font-weight:600;margin:1em 0 0} :root .mat-typography article h1{font-size:1.7em} :root .mat-typography article h2{font-size:1.6em} :root .mat-typography article h3{font-size:1.5em} :root .mat-typography article h4{font-size:1.4em} :root .mat-typography article h5{font-size:1.3em} :root .mat-typography article h6{font-size:1.2em} :root .mat-typography article p{padding:1em 0 0} :root .mat-typography article ul+p{margin-top:1em} :root .mat-typography article .markdown-view h1:first-child, :root .mat-typography article .markdown-view h2:first-child, :root .mat-typography article .markdown-view h3:first-child, :root .mat-typography article .markdown-view h4:first-child, :root .mat-typography article .markdown-view h5:first-child, :root .mat-typography article .markdown-view h6:first-child{margin-top:0}@media print{ :root body .app-shell-container>.sidenav-content{max-height:unset!important} :root body .app-shell-container .app-shell-scroll-wrapper{height:unset;overflow:visible} :root body .app-shell-container .app-shell-scroll-wrapper .app-shell-content{max-height:100%!important}}"],changeDetection:0})}return t})();var Ki=[{path:":name",providers:Be,component:je,data:{breadcrumb:"Sobre"},resolve:{schema:Ne},children:[{path:"",title:"Sobre um usu\xE1rio",resolve:{about:Ge},component:Ze}]}];export{je as AccountFeatureAboutComponent,Ki as accountFeatureAboutRoutes}; +import{b as Ae}from"./chunk-MLNPCJDD.js";import{a as Se}from"./chunk-JNB3NYAZ.js";import{a as Re}from"./chunk-BZ5BKAFD.js";import{a as $e}from"./chunk-WD4JQH2Z.js";import"./chunk-VAO4SSMZ.js";import"./chunk-2IAXMR6M.js";import{c as Fe}from"./chunk-V6KASOE3.js";import"./chunk-XIUDFJWJ.js";import{a as Le,b as D,d as Ve,e as qe}from"./chunk-TPJZ2OYR.js";import{a as Ue}from"./chunk-YGTSZDQ5.js";import"./chunk-ZTWYID37.js";import{j as Oe}from"./chunk-XYJHVZQT.js";import{a as ze}from"./chunk-A3N3AUUJ.js";import{c as fe,d as we,g as A,h as be,p as ve,x as De}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import{a as Ie,b as Ee,d as Te}from"./chunk-EDIJ2EBQ.js";import{Q as Ce,T as ke,Y as j,ca as xe,ga as Me,q as ye,sa as Pe}from"./chunk-W5KNOAKV.js";import{$b as k,Aa as J,Ea as L,F as P,Fc as he,Ia as y,Ja as Z,Jc as w,Kc as E,L as U,Lc as $,Mb as ie,Nb as p,Pa as K,Sb as C,Sc as pe,Tb as u,Vb as q,Vc as b,Wb as ae,Wc as ue,Xc as _e,Yb as d,ac as x,bc as n,cc as s,da as G,dc as l,ea as X,fa as H,gb as V,ha as Q,hc as T,ic as ne,ja as R,je as ge,ka as r,kc as I,lb as c,mc as m,nc as oe,oc as ce,qc as se,rc as re,sa as W,sc as de,t as M,ta as O,ua as S,ub as g,va as Y,vb as ee,wc as le,xb as te,xc as _,yc as f,zc as me}from"./chunk-TEKHUYWQ.js";var je=(()=>{class t{route=r(A);script=r(Re);constructor(){this.route.data.pipe(P(({schema:e})=>!!e),M(({schema:e})=>e),ze()).subscribe(e=>{let i="application/ld+json",a=JSON.stringify(e,null,2);this.script.addScript({type:i},a)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["devmx-account-feature-about"]],decls:2,vars:0,template:function(i,a){i&1&&(n(0,"devmx-app-shell"),l(1,"router-outlet"),s())},dependencies:[ve,be,Ue],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] h1[_ngcontent-%COMP%]{font-size:100%;margin:0}[_nghost-%COMP%] .toolbar[_ngcontent-%COMP%]{display:flex;gap:1em}"],changeDetection:0})}return t})();var Be=[];var Ne=t=>qe(r(D),t.params);var Ge=t=>{let o=t.parent?t.parent.params:t.params;return Ve(r(D),o)};var Ke=["switch"],et=["*"];function tt(t,o){t&1&&(n(0,"span",10),Y(),n(1,"svg",12),l(2,"path",13),s(),n(3,"svg",14),l(4,"path",15),s()())}var it=new Q("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),at={provide:Ee,useExisting:G(()=>F),multi:!0},z=class{source;checked;constructor(o,e){this.source=o,this.checked=e}},F=(()=>{class t{_elementRef=r(Z);_focusMonitor=r(Ce);_changeDetectorRef=r(pe);defaults=r(it);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new z(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations;_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new L;toggleChange=new L;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){r(ye).load(xe);let e=r(new J("tabindex"),{optional:!0}),i=this.defaults,a=r(K,{optional:!0});this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this._noopAnimations=a==="NoopAnimations",this.id=this._uniqueId=r(ke).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new z(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,a){if(i&1&&se(Ke,5),i&2){let h;re(h=de())&&(a._switchElement=h.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,a){i&2&&(ne("id",a.id),C("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),ae(a.color?"mat-"+a.color:""),q("mat-mdc-slide-toggle-focused",a._focused)("mat-mdc-slide-toggle-checked",a.checked)("_mat-animation-noopable",a._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",b],color:"color",disabled:[2,"disabled","disabled",b],disableRipple:[2,"disableRipple","disableRipple",b],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ue(e)],checked:[2,"checked","checked",b],hideIcon:[2,"hideIcon","hideIcon",b],disabledInteractive:[2,"disabledInteractive","disabledInteractive",b]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[he([at,{provide:Te,useExisting:t,multi:!0}]),ie,W],ngContentSelectors:et,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(i,a){if(i&1){let h=T();oe(),n(0,"div",1)(1,"button",2,0),I("click",function(){return O(h),S(a._handleClick())}),l(3,"span",3),n(4,"span",4)(5,"span",5)(6,"span",6),l(7,"span",7),s(),n(8,"span",8),l(9,"span",9),s(),p(10,tt,5,0,"span",10),s()()(),n(11,"label",11),I("click",function(N){return O(h),S(N.stopPropagation())}),ce(12),s()()}if(i&2){let h=le(2);u("labelPosition",a.labelPosition),c(),q("mdc-switch--selected",a.checked)("mdc-switch--unselected",!a.checked)("mdc-switch--checked",a.checked)("mdc-switch--disabled",a.disabled)("mat-mdc-slide-toggle-disabled-interactive",a.disabledInteractive),u("tabIndex",a.disabled&&!a.disabledInteractive?-1:a.tabIndex)("disabled",a.disabled&&!a.disabledInteractive),C("id",a.buttonId)("name",a.name)("aria-label",a.ariaLabel)("aria-labelledby",a._getAriaLabelledBy())("aria-describedby",a.ariaDescribedby)("aria-required",a.required||null)("aria-checked",a.checked)("aria-disabled",a.disabled&&a.disabledInteractive?"true":null),c(8),u("matRippleTrigger",h)("matRippleDisabled",a.disableRipple||a.disabled)("matRippleCentered",!0),c(),d(a.hideIcon?-1:10),c(),u("for",a.buttonId),C("id",a._labelId)}},dependencies:[Me,Pe],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height, 32px);border-radius:var(--mdc-switch-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width, 2px);border-color:var(--mat-switch-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width, 2px);border-color:var(--mat-switch-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size, 16px);height:var(--mat-switch-unselected-handle-size, 16px);margin:var(--mat-switch-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size, 24px);height:var(--mat-switch-selected-handle-size, 24px);margin:var(--mat-switch-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size, 24px);height:var(--mat-switch-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size, 28px);height:var(--mat-switch-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size, 40px);height:var(--mdc-switch-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 16px);height:var(--mdc-switch-unselected-icon-size, 16px);fill:var(--mdc-switch-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 16px);height:var(--mdc-switch-selected-icon-size, 16px);fill:var(--mdc-switch-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}'],encapsulation:2,changeDetection:0})}return t})();var Xe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ee({type:t});static \u0275inj=H({imports:[F,j,j]})}return t})();var He=(()=>{class t{transform(e,i="phone"){if(e)switch(i){default:case"phone":{let a="#".repeat(Math.max(0,String(e).length-6)),h=String(e).slice(-6);return a+h}case"email":{let[a,h]=String(e).split("@");return`${a[0]+"#".repeat(a.length-2)+a[a.length-1]}@${h}`}}}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=te({name:"shadow",type:t,pure:!0})}return t})();var Qe=(()=>{class t{_meta;_title;constructor(e,i){this._meta=e,this._title=i}setImage(e){this._title.setTitle(e.title),this.#e("url",e.url),this.#e("type","website"),this.#e("title",e.title),this.#e("description",e.description),this.#e("image",e.image),this.#e("image:type",e.type),this.#e("image:width",e.width),this.#e("image:height",e.height)}setVideo(e){this._title.setTitle(e.title),this.#e("url",e.url),this.#e("type","website"),this.#e("title",e.title),this.#e("description",e.description),this.#e("video",e.video),this.#e("image:type",e.type),this.#e("image:width",e.width),this.#e("image:height",e.height)}#e(e,i){let a=this.#t(e);e=`og:${e}`,i=`${i}`,this._meta.updateTag({property:e,content:i},a)}#t(e){return`property="og:${e}"`}static \u0275fac=function(i){return new(i||t)(R(fe),R(we))};static \u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ot=(t,o)=>o.id;function ct(t,o){if(t&1&&(n(0,"li"),_(1),s()),t&2){let e=o.$implicit;c(),f(e.title)}}var We=(()=>{class t{data=y.required();static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["devmx-user-presentations"]],inputs:{data:[1,"data"]},decls:3,vars:0,template:function(i,a){i&1&&(n(0,"ul"),k(1,ct,2,1,"li",null,ot),s()),i&2&&(c(),x(a.data()))},styles:['[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{gap:8px;margin:0;padding:0;display:flex;flex-direction:column;list-style-type:none}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{gap:8px;display:flex;list-style-type:none;align-items:center}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";display:flex;width:18px;min-height:18px;background-image:url(data:image/svg+xml,%3Csvg%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d=%22M18%204L14%2020M10%204L6%2020M5%208H21M3%2016H19%22%20stroke=%22currentColor%22%20stroke-width=%222%22%20stroke-linecap=%22round%22/%3E%3C/svg%3E);background-size:18px;background-position:center;background-repeat:no-repeat;align-items:center}'],changeDetection:0})}return t})();var st=(t,o)=>o.id;function rt(t,o){if(t&1&&(n(0,"li"),_(1),s()),t&2){let e=o.$implicit;c(),f(e.title)}}var Ye=(()=>{class t{data=y.required();static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["devmx-user-events"]],inputs:{data:[1,"data"]},decls:3,vars:0,template:function(i,a){i&1&&(n(0,"ul"),k(1,rt,2,1,"li",null,st),s()),i&2&&(c(),x(a.data()))},styles:['[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{gap:8px;margin:0;padding:0;display:flex;flex-direction:column;list-style-type:none}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{gap:8px;display:flex;list-style-type:none;align-items:center}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";display:flex;width:18px;min-height:18px;background-image:url(data:image/svg+xml,%3Csvg%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d=%22M16.7365%207L7.25643%2016.7233C6.89674%2017.0922%206.31358%2017.0922%205.95389%2016.7233L2%2012.668M12.5199%2016.7233L22%207%22%20stroke=%22currentColor%22%20stroke-width=%222%22%20stroke-linecap=%22round%22/%3E%3C/svg%3E);background-size:18px;background-position:center;background-repeat:no-repeat;align-items:center}'],changeDetection:0})}return t})();var dt=(t,o)=>o.skill.id;function lt(t,o){if(t&1&&(n(0,"li"),_(1),s()),t&2){let e=o.$implicit;C("data-weight",e.weight),c(),me(" ",e.skill.name," ")}}var Je=(()=>{class t{data=y.required();static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["devmx-user-skills"]],inputs:{data:[1,"data"]},decls:3,vars:0,template:function(i,a){i&1&&(n(0,"ul"),k(1,lt,2,2,"li",null,dt),s()),i&2&&(c(),x(a.data()))},styles:['[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{gap:8px;margin:0;padding:0;display:flex;flex-direction:column;list-style-type:none}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{gap:8px;display:flex;list-style-type:none;align-items:center}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";display:flex;width:18px;min-height:18px;background-image:url(data:image/svg+xml,%3Csvg%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d=%22M20%207L9.35355%2017.6464C9.15829%2017.8417%208.84171%2017.8417%208.64645%2017.6464L4%2013%22%20stroke=%22currentColor%22%20stroke-width=%222%22%20stroke-linecap=%22round%22/%3E%3C/svg%3E);background-size:18px;background-position:center;background-repeat:no-repeat;align-items:center}'],changeDetection:0})}return t})();function mt(t,o){if(t&1){let e=T();n(0,"div",0)(1,"mat-slide-toggle",1),I("change",function(){O(e);let a=m(3);return S(a.toggleDesignMode())}),s()()}if(t&2){let e=m(3);c(),u("checked",e.designMode())}}function ht(t,o){if(t&1&&(n(0,"menu"),p(1,mt,2,1,"div",0),s()),t&2){let e=m();c(),d(o.id===e.id?1:-1)}}function pt(t,o){if(t&1&&(n(0,"a",2),l(1,"devmx-icon",3),n(2,"span"),_(3),w(4,"shadow"),s()()),t&2){let e=m(2);u("href","mailto:"+e.contact.email,V),c(3),f($(4,2,e.contact.email,"email"))}}function ut(t,o){if(t&1&&(n(0,"a",2),l(1,"devmx-icon",4),n(2,"span"),_(3),w(4,"shadow"),s()()),t&2){let e=m(2);u("href","tel://"+e.contact.phone,V),c(3),f($(4,2,e.contact.phone,"phone"))}}function _t(t,o){if(t&1&&(n(0,"nav"),p(1,pt,5,5,"a",2)(2,ut,5,5,"a",2),s()),t&2){let e=m();c(),d(e.visibility!=null&&e.visibility.email?1:-1),c(),d(e.visibility!=null&&e.visibility.phone?2:-1)}}function gt(t,o){if(t&1&&l(0,"devmx-markdown-view",5),t&2){let e=m(2);u("content",e.profile.minibio)}}function ft(t,o){if(t&1&&(n(0,"article"),p(1,gt,1,1,"devmx-markdown-view",5),s()),t&2){let e=m();c(),d(e.profile.minibio?1:-1)}}function wt(t,o){if(t&1&&(n(0,"h3"),_(1,"Habilidades"),s(),l(2,"devmx-user-skills",6)),t&2){let e=m(3);c(2),u("data",e.skills)}}function bt(t,o){if(t&1&&(n(0,"section"),p(1,wt,3,1),s()),t&2){let e=m(2);c(),d(e.skills?1:-1)}}function vt(t,o){t&1&&(n(0,"h3"),_(1,"Eventos organizados"),s(),l(2,"devmx-user-events",6)),t&2&&(c(2),u("data",o.data))}function yt(t,o){if(t&1&&(n(0,"section"),p(1,vt,3,1),w(2,"async"),s()),t&2){let e,i=m(3);c(),d((e=E(2,1,i.eventFacade.response$))?1:-1,e)}}function Ct(t,o){t&1&&(n(0,"h3"),_(1,"Apresenta\xE7\xF5es"),s(),l(2,"devmx-user-presentations",6)),t&2&&(c(2),u("data",o.data))}function kt(t,o){if(t&1&&(n(0,"section"),p(1,Ct,3,1),w(2,"async"),s()),t&2){let e,i=m(3);c(),d((e=E(2,1,i.presentationFacade.response$))?1:-1,e)}}function xt(t,o){if(t&1&&(n(0,"aside"),p(1,bt,2,1,"section")(2,yt,3,3,"section")(3,kt,3,3,"section"),s()),t&2){let e=m();c(),d(e.visibility.skills?1:-1),c(),d(e.visibility.events?2:-1),c(),d(e.visibility.presentations?3:-1)}}function Mt(t,o){if(t&1&&(p(0,ht,2,1,"menu"),w(1,"async"),n(2,"header")(3,"h2"),_(4),s(),p(5,_t,3,2,"nav"),s(),n(6,"main"),p(7,ft,2,1,"article")(8,xt,4,3,"aside"),s()),t&2){let e,i=o,a=m();d((e=E(1,5,a.authFacade.auth$))?0:-1,e),c(4),f(i.displayName),c(),d(i.visibility!=null&&i.visibility.email||i.visibility!=null&&i.visibility.phone?5:-1),c(2),d(i.profile?7:-1),c(),d(i.visibility?8:-1)}}var Ze=(()=>{class t{authFacade=r(Le);presentationFacade=r(Se);eventFacade=r(Fe);route=r(A);graph=r(Qe);user$=this.route.data.pipe(P(({about:e})=>!!e),M(({about:e})=>e));designMode=_e(()=>document.designMode==="on");constructor(){this.user$.pipe(P(e=>!!e.id),M(e=>e.id),U(1)).subscribe(e=>{console.log("owner: ",e);let i={title:"",owner:e};this.eventFacade.setFilter(i),this.presentationFacade.setFilter(i),this.eventFacade.load(),this.presentationFacade.load()}),this.user$.pipe(U(1)).subscribe(e=>{console.log("user: ",e),this.graph.setImage({title:`Perfil de ${e.displayName}`,description:Oe(e.profile?.minibio??""),url:`https://devparana.mx/#/sobre/${e.name}`,image:"https://devparana.mx/images/resume-folder.webp",type:"image/webp",width:800,height:800})})}toggleDesignMode(){let{designMode:e}=document,i=e==="on"?"off":"on";document.designMode=i}print(){window.print()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=g({type:t,selectors:[["devmx-about-user"]],decls:2,vars:3,consts:[[1,"edit-mode-toggle"],[3,"change","checked"],[3,"href"],["name","message/mail"],["name","tech/phone"],[3,"content"],[3,"data"]],template:function(i,a){if(i&1&&(p(0,Mt,9,7),w(1,"async")),i&2){let h;d((h=E(1,1,a.user$))?0:-1,h)}},dependencies:[$e,We,Xe,F,Je,Ye,Ae,De,Ie,He,ge],styles:["[_nghost-%COMP%]{flex:1;gap:2em;padding:1em;position:relative;display:flex;flex-direction:column;background-color:#fff}@media print{[_nghost-%COMP%]{max-width:822px;width:100vw;padding:0}}[_nghost-%COMP%] menu[_ngcontent-%COMP%]{margin:0;padding:0;top:16px;right:16px;position:absolute;display:flex;gap:8px}@media print{[_nghost-%COMP%] menu[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%] > header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:200%}[_nghost-%COMP%] > header[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%]{gap:2em;display:flex;flex-flow:row wrap}[_nghost-%COMP%] > header[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{gap:.4em;display:flex;align-items:center}[_nghost-%COMP%] > header[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:link:not(.mdc-button):not(.mdc-icon-button):not(.mdc-fab){color:#1e1e1e}[_nghost-%COMP%] > header[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{text-decoration:underline}[_nghost-%COMP%] > main[_ngcontent-%COMP%]{flex:1;gap:4em;display:flex;flex-direction:row;justify-content:space-between}@media print{[_nghost-%COMP%] > main[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%] > main[_ngcontent-%COMP%] .user-card[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] > main[_ngcontent-%COMP%] article[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column}@media print{[_nghost-%COMP%] > main[_ngcontent-%COMP%] article[_ngcontent-%COMP%]{flex:2;min-width:480px}}[_nghost-%COMP%] > main[_ngcontent-%COMP%] aside[_ngcontent-%COMP%]{gap:1em;display:flex;flex-direction:column;width:24em}[_nghost-%COMP%] > main[_ngcontent-%COMP%] aside[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;opacity:.6;font-size:120%}[_nghost-%COMP%] > main[_ngcontent-%COMP%] aside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] ol[_ngcontent-%COMP%]{padding-left:1.4em}[_nghost-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:1em}[_nghost-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0} :root .mat-typography article h1, :root .mat-typography article h2, :root .mat-typography article h3, :root .mat-typography article h4, :root .mat-typography article h5, :root .mat-typography article h6{font-weight:600;margin:1em 0 0} :root .mat-typography article h1{font-size:1.7em} :root .mat-typography article h2{font-size:1.6em} :root .mat-typography article h3{font-size:1.5em} :root .mat-typography article h4{font-size:1.4em} :root .mat-typography article h5{font-size:1.3em} :root .mat-typography article h6{font-size:1.2em} :root .mat-typography article p{padding:1em 0 0} :root .mat-typography article ul+p{margin-top:1em} :root .mat-typography article .markdown-view h1:first-child, :root .mat-typography article .markdown-view h2:first-child, :root .mat-typography article .markdown-view h3:first-child, :root .mat-typography article .markdown-view h4:first-child, :root .mat-typography article .markdown-view h5:first-child, :root .mat-typography article .markdown-view h6:first-child{margin-top:0}@media print{ :root body .app-shell-container>.sidenav-content{max-height:unset!important} :root body .app-shell-container .app-shell-scroll-wrapper{height:unset;overflow:visible} :root body .app-shell-container .app-shell-scroll-wrapper .app-shell-content{max-height:100%!important}}"],changeDetection:0})}return t})();var Ki=[{path:":name",providers:Be,component:je,data:{breadcrumb:"Sobre"},resolve:{schema:Ne},children:[{path:"",title:"Sobre um usu\xE1rio",resolve:{about:Ge},component:Ze}]}];export{je as AccountFeatureAboutComponent,Ki as accountFeatureAboutRoutes}; diff --git a/chunk-2E7FYHXW.js b/chunk-YFMYPYPE.js similarity index 99% rename from chunk-2E7FYHXW.js rename to chunk-YFMYPYPE.js index b5c8680c..6197d9d7 100644 --- a/chunk-2E7FYHXW.js +++ b/chunk-YFMYPYPE.js @@ -1 +1 @@ -import{b as qt,e as Kt,f as J}from"./chunk-BJXILAOS.js";import{K as Yt,L as Zt}from"./chunk-4FWBEGAE.js";import{a as Gt}from"./chunk-2K6IALUF.js";import{c as Vt,d as Z,g as E,h as U,j as X}from"./chunk-I7VYXJU2.js";import{J as zt,R as Wt,T as jt,U as dt,Y as lt,ca as $t,f as st,ga as ct,i as Ht,q as Nt,s as Ot,z as Qt}from"./chunk-W5KNOAKV.js";import{$ as C,$b as nt,A as N,B as vt,D as O,Ea as _,Eb as Lt,F as yt,Fa as Dt,Fc as H,Hc as At,Ic as Ft,J as kt,Ja as M,Ka as Pt,Kb as F,Mb as I,Nb as R,Pa as et,Sb as L,Sc as K,Tb as v,Ub as Bt,Va as Mt,Vb as f,Vc as p,Wb as j,Wc as Y,Y as Tt,Yb as at,Z as Q,_ as Ct,_b as it,ac as rt,bc as h,cc as y,dc as G,e as D,fa as wt,g as ut,ha as P,hc as B,j as S,ka as o,kc as k,lb as u,mc as T,n as ft,nc as $,ob as W,oc as q,p as gt,pc as V,qc as g,rc as b,sa as xt,sc as m,ta as l,ua as c,ub as A,vb as Rt,wb as x,wc as ot,xa as z,xc as Et,yc as St,za as It}from"./chunk-TEKHUYWQ.js";var pt=["*"];function re(i,d){i&1&&q(0)}var oe=["tabListContainer"],se=["tabList"],de=["tabListInner"],le=["nextPaginator"],ce=["previousPaginator"],be=i=>({animationDuration:i}),me=(i,d)=>({value:i,params:d});function he(i,d){}var pe=["tabBodyWrapper"],_e=["tabHeader"];function ue(i,d){}function fe(i,d){if(i&1&&R(0,ue,0,0,"ng-template",12),i&2){let t=T().$implicit;v("cdkPortalOutlet",t.templateLabel)}}function ge(i,d){if(i&1&&Et(0),i&2){let t=T().$implicit;St(t.textLabel)}}function ve(i,d){if(i&1){let t=B();h(0,"div",7,2),k("click",function(){let a=l(t),n=a.$implicit,r=a.$index,s=T(),w=ot(1);return c(s._handleClick(n,w,r))})("cdkFocusChange",function(a){let n=l(t).$index,r=T();return c(r._tabFocusChanged(a,n))}),G(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),R(6,fe,1,1,null,12)(7,ge,1,1),y()()()}if(i&2){let t=d.$implicit,e=d.$index,a=ot(1),n=T();j(t.labelClass),f("mdc-tab--active",n.selectedIndex===e),v("id",n._getTabLabelId(e))("disabled",t.disabled)("fitInkBarToContent",n.fitInkBarToContent),L("tabIndex",n._getTabIndex(e))("aria-posinset",e+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(e))("aria-selected",n.selectedIndex===e)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),u(3),v("matRippleTrigger",a)("matRippleDisabled",t.disabled||n.disableRipple),u(3),at(t.templateLabel?6:7)}}function ye(i,d){i&1&&q(0)}function ke(i,d){if(i&1){let t=B();h(0,"mat-tab-body",13),k("_onCentered",function(){l(t);let a=T();return c(a._removeTabBodyWrapperHeight())})("_onCentering",function(a){l(t);let n=T();return c(n._setTabBodyWrapperHeight(a))}),y()}if(i&2){let t=d.$implicit,e=d.$index,a=T();j(t.bodyClass),f("mat-mdc-tab-body-active",a.selectedIndex===e),v("id",a._getTabContentId(e))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",a.animationDuration)("preserveContent",a.preserveContent),L("tabindex",a.contentTabIndex!=null&&a.selectedIndex===e?a.contentTabIndex:null)("aria-labelledby",a._getTabLabelId(e))("aria-hidden",a.selectedIndex!==e)}}var Te=new P("MatTabContent"),Ce=(()=>{class i{template=o(W);constructor(){}static \u0275fac=function(e){return new(e||i)};static \u0275dir=x({type:i,selectors:[["","matTabContent",""]],features:[H([{provide:Te,useExisting:i}])]})}return i})(),we=new P("MatTabLabel"),Jt=new P("MAT_TAB"),xe=(()=>{class i extends Kt{_closestTab=o(Jt,{optional:!0});static \u0275fac=(()=>{let t;return function(a){return(t||(t=z(i)))(a||i)}})();static \u0275dir=x({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[H([{provide:we,useExisting:i}]),F]})}return i})(),te=new P("MAT_TAB_GROUP"),Ie=(()=>{class i{_viewContainerRef=o(Lt);_closestTabGroup=o(te,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new S;position=null;origin=null;isActive=!1;constructor(){o(Nt).load($t)}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new qt(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=A({type:i,selectors:[["mat-tab"]],contentQueries:function(e,a,n){if(e&1&&(V(n,xe,5),V(n,Ce,7,W)),e&2){let r;b(r=m())&&(a.templateLabel=r.first),b(r=m())&&(a._explicitContent=r.first)}},viewQuery:function(e,a){if(e&1&&g(W,7),e&2){let n;b(n=m())&&(a._implicitContent=n.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",p],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[H([{provide:Jt,useExisting:i}]),I,xt],ngContentSelectors:pt,decls:1,vars:0,template:function(e,a){e&1&&($(),R(0,re,1,0,"ng-template"))},encapsulation:2})}return i})(),bt="mdc-tab-indicator--active",Ut="mdc-tab-indicator--no-transition",mt=class{_items;_currentItem;constructor(d){this._items=d}hide(){this._items.forEach(d=>d.deactivateInkBar())}alignToElement(d){let t=this._items.find(a=>a.elementRef.nativeElement===d),e=this._currentItem;if(t!==e&&(e?.deactivateInkBar(),t)){let a=e?.elementRef.nativeElement.getBoundingClientRect?.();t.activateInkBar(a),this._currentItem=t}}},De=(()=>{class i{_elementRef=o(M);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let e=this._elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement){e.classList.add(bt);return}let a=e.getBoundingClientRect(),n=t.width/a.width,r=t.left-a.left;e.classList.add(Ut),this._inkBarContentElement.style.setProperty("transform",`translateX(${r}px) scaleX(${n})`),e.getBoundingClientRect(),e.classList.remove(Ut),e.classList.add(bt),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(bt)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,e=this._inkBarElement=t.createElement("span"),a=this._inkBarContentElement=t.createElement("span");e.className="mdc-tab-indicator",a.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",e.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}static \u0275fac=function(e){return new(e||i)};static \u0275dir=x({type:i,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",p]},features:[I]})}return i})();var ee=(()=>{class i extends De{elementRef=o(M);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let t;return function(a){return(t||(t=z(i)))(a||i)}})();static \u0275dir=x({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,a){e&2&&(L("aria-disabled",!!a.disabled),f("mat-mdc-tab-disabled",a.disabled))},inputs:{disabled:[2,"disabled","disabled",p]},features:[I,F]})}return i})(),Xt=Ht({passive:!0}),Pe=650,Me=100,Re=(()=>{class i{_elementRef=o(M);_changeDetectorRef=o(K);_viewportRuler=o(Zt);_dir=o(dt,{optional:!0});_ngZone=o(Dt);_platform=o(st);_animationMode=o(et,{optional:!0});_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new S;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new S;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let e=isNaN(t)?0:t;this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}_selectedIndex=0;selectFocusedIndex=new _;indexFocused=new _;_sharedResizeObserver=o(Gt);_injector=o(It);constructor(){this._ngZone.runOutsideAngular(()=>{N(this._elementRef.nativeElement,"mouseleave").pipe(C(this._destroyed)).subscribe(()=>this._stopInterval())})}ngAfterViewInit(){N(this._previousPaginator.nativeElement,"touchstart",Xt).pipe(C(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),N(this._nextPaginator.nativeElement,"touchstart",Xt).pipe(C(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let t=this._dir?this._dir.change:gt("ltr"),e=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(kt(32),C(this._destroyed)),a=this._viewportRuler.change(150).pipe(C(this._destroyed)),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new zt(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),Mt(n,{injector:this._injector}),O(t,a,e,this._items.changes,this._itemsResized()).pipe(C(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),n()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(r=>{this.indexFocused.emit(r),this._setTabFocus(r)})}_itemsResized(){return typeof ResizeObserver!="function"?ft:this._items.changes.pipe(Q(this._items),Ct(t=>new ut(e=>this._ngZone.runOutsideAngular(()=>{let a=new ResizeObserver(n=>e.next(n));return t.forEach(n=>a.observe(n.elementRef.nativeElement)),()=>{a.disconnect()}}))),Tt(1),yt(t=>t.some(e=>e.contentRect.width>0&&e.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Ot(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let e=this._items.get(this.focusIndex);e&&!e.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let e=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?e.scrollLeft=0:e.scrollLeft=e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,e=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let e=this._tabListContainer.nativeElement.offsetWidth,a=(t=="before"?-1:1)*e/3;return this._scrollTo(this._scrollDistance+a)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let e=this._items?this._items.toArray()[t]:null;if(!e)return;let a=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:r}=e.elementRef.nativeElement,s,w;this._getLayoutDirection()=="ltr"?(s=n,w=s+r):(w=this._tabListInner.nativeElement.offsetWidth-n,s=w-r);let tt=this.scrollDistance,_t=this.scrollDistance+a;s_t&&(this.scrollDistance+=Math.min(w-_t,s-tt))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth,e=this._elementRef.nativeElement.offsetWidth,a=t-e>=5;a||(this.scrollDistance=0),a!==this._showPaginationControls&&(this._showPaginationControls=a,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let t=this._tabListInner.nativeElement.scrollWidth,e=this._tabListContainer.nativeElement.offsetWidth;return t-e||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&e.button!=null&&e.button!==0||(this._stopInterval(),vt(Pe,Me).pipe(C(O(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:a,distance:n}=this._scrollHeader(t);(n===0||n>=a)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}static \u0275fac=function(e){return new(e||i)};static \u0275dir=x({type:i,inputs:{disablePagination:[2,"disablePagination","disablePagination",p],selectedIndex:[2,"selectedIndex","selectedIndex",Y]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[I]})}return i})(),Le=(()=>{class i extends Re{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new mt(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}static \u0275fac=(()=>{let t;return function(a){return(t||(t=z(i)))(a||i)}})();static \u0275cmp=A({type:i,selectors:[["mat-tab-header"]],contentQueries:function(e,a,n){if(e&1&&V(n,ee,4),e&2){let r;b(r=m())&&(a._items=r)}},viewQuery:function(e,a){if(e&1&&(g(oe,7),g(se,7),g(de,7),g(le,5),g(ce,5)),e&2){let n;b(n=m())&&(a._tabListContainer=n.first),b(n=m())&&(a._tabList=n.first),b(n=m())&&(a._tabListInner=n.first),b(n=m())&&(a._nextPaginator=n.first),b(n=m())&&(a._previousPaginator=n.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,a){e&2&&f("mat-mdc-tab-header-pagination-controls-enabled",a._showPaginationControls)("mat-mdc-tab-header-rtl",a._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",p]},features:[I,F],ngContentSelectors:pt,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(e,a){if(e&1){let n=B();$(),h(0,"div",5,0),k("click",function(){return l(n),c(a._handlePaginatorClick("before"))})("mousedown",function(s){return l(n),c(a._handlePaginatorPress("before",s))})("touchend",function(){return l(n),c(a._stopInterval())}),G(2,"div",6),y(),h(3,"div",7,1),k("keydown",function(s){return l(n),c(a._handleKeydown(s))}),h(5,"div",8,2),k("cdkObserveContent",function(){return l(n),c(a._onContentChanges())}),h(7,"div",9,3),q(9),y()()(),h(10,"div",10,4),k("mousedown",function(s){return l(n),c(a._handlePaginatorPress("after",s))})("click",function(){return l(n),c(a._handlePaginatorClick("after"))})("touchend",function(){return l(n),c(a._stopInterval())}),G(12,"div",6),y()}e&2&&(f("mat-mdc-tab-header-pagination-disabled",a._disableScrollBefore),v("matRippleDisabled",a._disableScrollBefore||a.disableRipple),u(3),f("_mat-animation-noopable",a._animationMode==="NoopAnimations"),u(2),L("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null),u(5),f("mat-mdc-tab-header-pagination-disabled",a._disableScrollAfter),v("matRippleDisabled",a._disableScrollAfter||a.disableRipple))},dependencies:[ct,Qt],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height, 1px);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height, 1px);border-top-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}"],encapsulation:2})}return i})(),Be=new P("MAT_TABS_CONFIG"),Ee={translateTab:Vt("translateTab",[U("center, void, left-origin-center, right-origin-center",E({transform:"none",visibility:"visible"})),U("left",E({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),U("right",E({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),X("* => left, * => right, left => center, right => center",Z("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),X("void => left-origin-center",[E({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Z("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),X("void => right-origin-center",[E({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Z("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Se=(()=>{class i extends J{_host=o(ae);_centeringSub=D.EMPTY;_leavingSub=D.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Q(this._host._isCenterPosition(this._host._position))).subscribe(t=>{this._host._content&&t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(e){return new(e||i)};static \u0275dir=x({type:i,selectors:[["","matTabBodyHost",""]],features:[F]})}return i})(),ae=(()=>{class i{_elementRef=o(M);_dir=o(dt,{optional:!0});_positionIndex;_dirChangeSubscription=D.EMPTY;_position;_translateTabComplete=new S;_onCentering=new _;_beforeCentering=new _;_afterLeavingCenter=new _;_onCentered=new _(!0);_portalHost;_content;origin;animationDuration="500ms";preserveContent=!1;set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(){if(this._dir){let t=o(K);this._dirChangeSubscription=this._dir.change.subscribe(e=>{this._computePositionAnimationState(e),t.markForCheck()})}this._translateTabComplete.subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){let e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(t){return t=="center"||t=="left-origin-center"||t=="right-origin-center"}_computePositionAnimationState(t=this._getLayoutDirection()){this._positionIndex<0?this._position=t=="ltr"?"left":"right":this._positionIndex>0?this._position=t=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(t){let e=this._getLayoutDirection();return e=="ltr"&&t<=0||e=="rtl"&&t>0?"left-origin-center":"right-origin-center"}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=A({type:i,selectors:[["mat-tab-body"]],viewQuery:function(e,a){if(e&1&&g(J,5),e&2){let n;b(n=m())&&(a._portalHost=n.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(e,a){if(e&1){let n=B();h(0,"div",1,0),k("@translateTab.start",function(s){return l(n),c(a._onTranslateTabStarted(s))})("@translateTab.done",function(s){return l(n),c(a._translateTabComplete.next(s))}),R(2,he,0,0,"ng-template",2),y()}e&2&&v("@translateTab",Ft(3,me,a._position,At(1,be,a.animationDuration)))},dependencies:[Se,Yt],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Ee.translateTab]}})}return i})(),Ae=!0,ma=(()=>{class i{_elementRef=o(M);_changeDetectorRef=o(K);_animationMode=o(et,{optional:!0});_allTabs;_tabBodyWrapper;_tabHeader;_tabs=new Pt;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;_tabsSubscription=D.EMPTY;_tabLabelSubscription=D.EMPTY;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(t){let e=t+"";this._animationDuration=/^\d+$/.test(e)?t+"ms":e}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(t){if(!Ae)throw new Error("mat-tab-group background color must be set through the Sass theming API");let e=this._elementRef.nativeElement.classList;e.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),t&&e.add("mat-tabs-with-background",`mat-background-${t}`),this._backgroundColor=t}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new _;focusChange=new _;animationDone=new _;selectedTabChange=new _(!0);_groupId;_isServer=!o(st).isBrowser;constructor(){let t=o(Be,{optional:!0});this._groupId=o(jt).getId("mat-tab-group-"),this.animationDuration=t&&t.animationDuration?t.animationDuration:"500ms",this.disablePagination=t&&t.disablePagination!=null?t.disablePagination:!1,this.dynamicHeight=t&&t.dynamicHeight!=null?t.dynamicHeight:!1,t?.contentTabIndex!=null&&(this.contentTabIndex=t.contentTabIndex),this.preserveContent=!!t?.preserveContent,this.fitInkBarToContent=t&&t.fitInkBarToContent!=null?t.fitInkBarToContent:!1,this.stretchTabs=t&&t.stretchTabs!=null?t.stretchTabs:!0,this.alignTabs=t&&t.alignTabs!=null?t.alignTabs:null}ngAfterContentChecked(){let t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){let e=this._selectedIndex==null;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));let a=this._tabBodyWrapper.nativeElement;a.style.minHeight=a.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((a,n)=>a.isActive=n===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,a)=>{e.position=a-t,this._selectedIndex!=null&&e.position==0&&!e.origin&&(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){let e=this._tabs.toArray(),a;for(let n=0;n{e[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Q(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(e=>e._closestTabGroup===this||!e._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){let e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){let e=new ht;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=O(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`${this._groupId}-label-${t}`}_getTabContentId(t){return`${this._groupId}-content-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){let t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,a){e.focusIndex=a,t.disabled||(this.selectedIndex=a)}_getTabIndex(t){let e=this._lastFocusedTabIndex??this.selectedIndex;return t===e?0:-1}_tabFocusChanged(t,e){t&&t!=="mouse"&&t!=="touch"&&(this._tabHeader.focusIndex=e)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=A({type:i,selectors:[["mat-tab-group"]],contentQueries:function(e,a,n){if(e&1&&V(n,Ie,5),e&2){let r;b(r=m())&&(a._allTabs=r)}},viewQuery:function(e,a){if(e&1&&(g(pe,5),g(_e,5)),e&2){let n;b(n=m())&&(a._tabBodyWrapper=n.first),b(n=m())&&(a._tabHeader=n.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(e,a){e&2&&(L("mat-align-tabs",a.alignTabs),j("mat-"+(a.color||"primary")),Bt("--mat-tab-animation-duration",a.animationDuration),f("mat-mdc-tab-group-dynamic-height",a.dynamicHeight)("mat-mdc-tab-group-inverted-header",a.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",a.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",p],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",p],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",p],selectedIndex:[2,"selectedIndex","selectedIndex",Y],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Y],disablePagination:[2,"disablePagination","disablePagination",p],disableRipple:[2,"disableRipple","disableRipple",p],preserveContent:[2,"preserveContent","preserveContent",p],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[H([{provide:te,useExisting:i}]),I],ngContentSelectors:pt,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(e,a){if(e&1){let n=B();$(),h(0,"mat-tab-header",3,0),k("indexFocused",function(s){return l(n),c(a._focusChanged(s))})("selectFocusedIndex",function(s){return l(n),c(a.selectedIndex=s)}),nt(2,ve,8,17,"div",4,it),y(),R(4,ye,1,0),h(5,"div",5,1),nt(7,ke,1,13,"mat-tab-body",6,it),y()}e&2&&(v("selectedIndex",a.selectedIndex||0)("disableRipple",a.disableRipple)("disablePagination",a.disablePagination)("aria-label",a.ariaLabel)("aria-labelledby",a.ariaLabelledby),u(2),rt(a._tabs),u(2),at(a._isServer?4:-1),u(),f("_mat-animation-noopable",a._animationMode==="NoopAnimations"),u(2),rt(a._tabs))},dependencies:[Le,ee,Wt,ct,J,ae],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height, 48px);font-family:var(--mat-tab-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height, 2px);border-radius:var(--mdc-tab-indicator-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return i})(),ht=class{index;tab};var ha=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=Rt({type:i});static \u0275inj=wt({imports:[lt,lt]})}return i})();export{Ce as a,Ie as b,ma as c,ha as d}; +import{a as Gt}from"./chunk-AND6K73U.js";import{b as qt,e as Kt,f as J}from"./chunk-BJXILAOS.js";import{A as Zt,z as Yt}from"./chunk-6BGAZ7SQ.js";import{c as Vt,d as Z,g as E,h as U,j as X}from"./chunk-I7VYXJU2.js";import{J as zt,R as Wt,T as jt,U as dt,Y as lt,ca as $t,f as st,ga as ct,i as Ht,q as Nt,s as Ot,z as Qt}from"./chunk-W5KNOAKV.js";import{$ as C,$b as nt,A as N,B as vt,D as O,Ea as _,Eb as Lt,F as yt,Fa as Dt,Fc as H,Hc as At,Ic as Ft,J as kt,Ja as M,Ka as Pt,Kb as F,Mb as I,Nb as R,Pa as et,Sb as L,Sc as K,Tb as v,Ub as Bt,Va as Mt,Vb as f,Vc as p,Wb as j,Wc as Y,Y as Tt,Yb as at,Z as Q,_ as Ct,_b as it,ac as rt,bc as h,cc as y,dc as G,e as D,fa as wt,g as ut,ha as P,hc as B,j as S,ka as o,kc as k,lb as u,mc as T,n as ft,nc as $,ob as W,oc as q,p as gt,pc as V,qc as g,rc as b,sa as xt,sc as m,ta as l,ua as c,ub as A,vb as Rt,wb as x,wc as ot,xa as z,xc as Et,yc as St,za as It}from"./chunk-TEKHUYWQ.js";var pt=["*"];function re(i,d){i&1&&q(0)}var oe=["tabListContainer"],se=["tabList"],de=["tabListInner"],le=["nextPaginator"],ce=["previousPaginator"],be=i=>({animationDuration:i}),me=(i,d)=>({value:i,params:d});function he(i,d){}var pe=["tabBodyWrapper"],_e=["tabHeader"];function ue(i,d){}function fe(i,d){if(i&1&&R(0,ue,0,0,"ng-template",12),i&2){let t=T().$implicit;v("cdkPortalOutlet",t.templateLabel)}}function ge(i,d){if(i&1&&Et(0),i&2){let t=T().$implicit;St(t.textLabel)}}function ve(i,d){if(i&1){let t=B();h(0,"div",7,2),k("click",function(){let a=l(t),n=a.$implicit,r=a.$index,s=T(),w=ot(1);return c(s._handleClick(n,w,r))})("cdkFocusChange",function(a){let n=l(t).$index,r=T();return c(r._tabFocusChanged(a,n))}),G(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),R(6,fe,1,1,null,12)(7,ge,1,1),y()()()}if(i&2){let t=d.$implicit,e=d.$index,a=ot(1),n=T();j(t.labelClass),f("mdc-tab--active",n.selectedIndex===e),v("id",n._getTabLabelId(e))("disabled",t.disabled)("fitInkBarToContent",n.fitInkBarToContent),L("tabIndex",n._getTabIndex(e))("aria-posinset",e+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(e))("aria-selected",n.selectedIndex===e)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),u(3),v("matRippleTrigger",a)("matRippleDisabled",t.disabled||n.disableRipple),u(3),at(t.templateLabel?6:7)}}function ye(i,d){i&1&&q(0)}function ke(i,d){if(i&1){let t=B();h(0,"mat-tab-body",13),k("_onCentered",function(){l(t);let a=T();return c(a._removeTabBodyWrapperHeight())})("_onCentering",function(a){l(t);let n=T();return c(n._setTabBodyWrapperHeight(a))}),y()}if(i&2){let t=d.$implicit,e=d.$index,a=T();j(t.bodyClass),f("mat-mdc-tab-body-active",a.selectedIndex===e),v("id",a._getTabContentId(e))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",a.animationDuration)("preserveContent",a.preserveContent),L("tabindex",a.contentTabIndex!=null&&a.selectedIndex===e?a.contentTabIndex:null)("aria-labelledby",a._getTabLabelId(e))("aria-hidden",a.selectedIndex!==e)}}var Te=new P("MatTabContent"),Ce=(()=>{class i{template=o(W);constructor(){}static \u0275fac=function(e){return new(e||i)};static \u0275dir=x({type:i,selectors:[["","matTabContent",""]],features:[H([{provide:Te,useExisting:i}])]})}return i})(),we=new P("MatTabLabel"),Jt=new P("MAT_TAB"),xe=(()=>{class i extends Kt{_closestTab=o(Jt,{optional:!0});static \u0275fac=(()=>{let t;return function(a){return(t||(t=z(i)))(a||i)}})();static \u0275dir=x({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[H([{provide:we,useExisting:i}]),F]})}return i})(),te=new P("MAT_TAB_GROUP"),Ie=(()=>{class i{_viewContainerRef=o(Lt);_closestTabGroup=o(te,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new S;position=null;origin=null;isActive=!1;constructor(){o(Nt).load($t)}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new qt(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=A({type:i,selectors:[["mat-tab"]],contentQueries:function(e,a,n){if(e&1&&(V(n,xe,5),V(n,Ce,7,W)),e&2){let r;b(r=m())&&(a.templateLabel=r.first),b(r=m())&&(a._explicitContent=r.first)}},viewQuery:function(e,a){if(e&1&&g(W,7),e&2){let n;b(n=m())&&(a._implicitContent=n.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",p],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[H([{provide:Jt,useExisting:i}]),I,xt],ngContentSelectors:pt,decls:1,vars:0,template:function(e,a){e&1&&($(),R(0,re,1,0,"ng-template"))},encapsulation:2})}return i})(),bt="mdc-tab-indicator--active",Ut="mdc-tab-indicator--no-transition",mt=class{_items;_currentItem;constructor(d){this._items=d}hide(){this._items.forEach(d=>d.deactivateInkBar())}alignToElement(d){let t=this._items.find(a=>a.elementRef.nativeElement===d),e=this._currentItem;if(t!==e&&(e?.deactivateInkBar(),t)){let a=e?.elementRef.nativeElement.getBoundingClientRect?.();t.activateInkBar(a),this._currentItem=t}}},De=(()=>{class i{_elementRef=o(M);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let e=this._elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement){e.classList.add(bt);return}let a=e.getBoundingClientRect(),n=t.width/a.width,r=t.left-a.left;e.classList.add(Ut),this._inkBarContentElement.style.setProperty("transform",`translateX(${r}px) scaleX(${n})`),e.getBoundingClientRect(),e.classList.remove(Ut),e.classList.add(bt),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(bt)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,e=this._inkBarElement=t.createElement("span"),a=this._inkBarContentElement=t.createElement("span");e.className="mdc-tab-indicator",a.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",e.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}static \u0275fac=function(e){return new(e||i)};static \u0275dir=x({type:i,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",p]},features:[I]})}return i})();var ee=(()=>{class i extends De{elementRef=o(M);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let t;return function(a){return(t||(t=z(i)))(a||i)}})();static \u0275dir=x({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,a){e&2&&(L("aria-disabled",!!a.disabled),f("mat-mdc-tab-disabled",a.disabled))},inputs:{disabled:[2,"disabled","disabled",p]},features:[I,F]})}return i})(),Xt=Ht({passive:!0}),Pe=650,Me=100,Re=(()=>{class i{_elementRef=o(M);_changeDetectorRef=o(K);_viewportRuler=o(Zt);_dir=o(dt,{optional:!0});_ngZone=o(Dt);_platform=o(st);_animationMode=o(et,{optional:!0});_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new S;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new S;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let e=isNaN(t)?0:t;this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}_selectedIndex=0;selectFocusedIndex=new _;indexFocused=new _;_sharedResizeObserver=o(Gt);_injector=o(It);constructor(){this._ngZone.runOutsideAngular(()=>{N(this._elementRef.nativeElement,"mouseleave").pipe(C(this._destroyed)).subscribe(()=>this._stopInterval())})}ngAfterViewInit(){N(this._previousPaginator.nativeElement,"touchstart",Xt).pipe(C(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),N(this._nextPaginator.nativeElement,"touchstart",Xt).pipe(C(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let t=this._dir?this._dir.change:gt("ltr"),e=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(kt(32),C(this._destroyed)),a=this._viewportRuler.change(150).pipe(C(this._destroyed)),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new zt(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),Mt(n,{injector:this._injector}),O(t,a,e,this._items.changes,this._itemsResized()).pipe(C(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),n()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(r=>{this.indexFocused.emit(r),this._setTabFocus(r)})}_itemsResized(){return typeof ResizeObserver!="function"?ft:this._items.changes.pipe(Q(this._items),Ct(t=>new ut(e=>this._ngZone.runOutsideAngular(()=>{let a=new ResizeObserver(n=>e.next(n));return t.forEach(n=>a.observe(n.elementRef.nativeElement)),()=>{a.disconnect()}}))),Tt(1),yt(t=>t.some(e=>e.contentRect.width>0&&e.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Ot(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let e=this._items.get(this.focusIndex);e&&!e.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let e=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?e.scrollLeft=0:e.scrollLeft=e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,e=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let e=this._tabListContainer.nativeElement.offsetWidth,a=(t=="before"?-1:1)*e/3;return this._scrollTo(this._scrollDistance+a)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let e=this._items?this._items.toArray()[t]:null;if(!e)return;let a=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:r}=e.elementRef.nativeElement,s,w;this._getLayoutDirection()=="ltr"?(s=n,w=s+r):(w=this._tabListInner.nativeElement.offsetWidth-n,s=w-r);let tt=this.scrollDistance,_t=this.scrollDistance+a;s_t&&(this.scrollDistance+=Math.min(w-_t,s-tt))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth,e=this._elementRef.nativeElement.offsetWidth,a=t-e>=5;a||(this.scrollDistance=0),a!==this._showPaginationControls&&(this._showPaginationControls=a,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let t=this._tabListInner.nativeElement.scrollWidth,e=this._tabListContainer.nativeElement.offsetWidth;return t-e||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&e.button!=null&&e.button!==0||(this._stopInterval(),vt(Pe,Me).pipe(C(O(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:a,distance:n}=this._scrollHeader(t);(n===0||n>=a)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}static \u0275fac=function(e){return new(e||i)};static \u0275dir=x({type:i,inputs:{disablePagination:[2,"disablePagination","disablePagination",p],selectedIndex:[2,"selectedIndex","selectedIndex",Y]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[I]})}return i})(),Le=(()=>{class i extends Re{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new mt(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}static \u0275fac=(()=>{let t;return function(a){return(t||(t=z(i)))(a||i)}})();static \u0275cmp=A({type:i,selectors:[["mat-tab-header"]],contentQueries:function(e,a,n){if(e&1&&V(n,ee,4),e&2){let r;b(r=m())&&(a._items=r)}},viewQuery:function(e,a){if(e&1&&(g(oe,7),g(se,7),g(de,7),g(le,5),g(ce,5)),e&2){let n;b(n=m())&&(a._tabListContainer=n.first),b(n=m())&&(a._tabList=n.first),b(n=m())&&(a._tabListInner=n.first),b(n=m())&&(a._nextPaginator=n.first),b(n=m())&&(a._previousPaginator=n.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,a){e&2&&f("mat-mdc-tab-header-pagination-controls-enabled",a._showPaginationControls)("mat-mdc-tab-header-rtl",a._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",p]},features:[I,F],ngContentSelectors:pt,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(e,a){if(e&1){let n=B();$(),h(0,"div",5,0),k("click",function(){return l(n),c(a._handlePaginatorClick("before"))})("mousedown",function(s){return l(n),c(a._handlePaginatorPress("before",s))})("touchend",function(){return l(n),c(a._stopInterval())}),G(2,"div",6),y(),h(3,"div",7,1),k("keydown",function(s){return l(n),c(a._handleKeydown(s))}),h(5,"div",8,2),k("cdkObserveContent",function(){return l(n),c(a._onContentChanges())}),h(7,"div",9,3),q(9),y()()(),h(10,"div",10,4),k("mousedown",function(s){return l(n),c(a._handlePaginatorPress("after",s))})("click",function(){return l(n),c(a._handlePaginatorClick("after"))})("touchend",function(){return l(n),c(a._stopInterval())}),G(12,"div",6),y()}e&2&&(f("mat-mdc-tab-header-pagination-disabled",a._disableScrollBefore),v("matRippleDisabled",a._disableScrollBefore||a.disableRipple),u(3),f("_mat-animation-noopable",a._animationMode==="NoopAnimations"),u(2),L("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null),u(5),f("mat-mdc-tab-header-pagination-disabled",a._disableScrollAfter),v("matRippleDisabled",a._disableScrollAfter||a.disableRipple))},dependencies:[ct,Qt],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height, 1px);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height, 1px);border-top-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}"],encapsulation:2})}return i})(),Be=new P("MAT_TABS_CONFIG"),Ee={translateTab:Vt("translateTab",[U("center, void, left-origin-center, right-origin-center",E({transform:"none",visibility:"visible"})),U("left",E({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),U("right",E({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),X("* => left, * => right, left => center, right => center",Z("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),X("void => left-origin-center",[E({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Z("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),X("void => right-origin-center",[E({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Z("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Se=(()=>{class i extends J{_host=o(ae);_centeringSub=D.EMPTY;_leavingSub=D.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Q(this._host._isCenterPosition(this._host._position))).subscribe(t=>{this._host._content&&t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(e){return new(e||i)};static \u0275dir=x({type:i,selectors:[["","matTabBodyHost",""]],features:[F]})}return i})(),ae=(()=>{class i{_elementRef=o(M);_dir=o(dt,{optional:!0});_positionIndex;_dirChangeSubscription=D.EMPTY;_position;_translateTabComplete=new S;_onCentering=new _;_beforeCentering=new _;_afterLeavingCenter=new _;_onCentered=new _(!0);_portalHost;_content;origin;animationDuration="500ms";preserveContent=!1;set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(){if(this._dir){let t=o(K);this._dirChangeSubscription=this._dir.change.subscribe(e=>{this._computePositionAnimationState(e),t.markForCheck()})}this._translateTabComplete.subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){let e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(t){return t=="center"||t=="left-origin-center"||t=="right-origin-center"}_computePositionAnimationState(t=this._getLayoutDirection()){this._positionIndex<0?this._position=t=="ltr"?"left":"right":this._positionIndex>0?this._position=t=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(t){let e=this._getLayoutDirection();return e=="ltr"&&t<=0||e=="rtl"&&t>0?"left-origin-center":"right-origin-center"}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=A({type:i,selectors:[["mat-tab-body"]],viewQuery:function(e,a){if(e&1&&g(J,5),e&2){let n;b(n=m())&&(a._portalHost=n.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(e,a){if(e&1){let n=B();h(0,"div",1,0),k("@translateTab.start",function(s){return l(n),c(a._onTranslateTabStarted(s))})("@translateTab.done",function(s){return l(n),c(a._translateTabComplete.next(s))}),R(2,he,0,0,"ng-template",2),y()}e&2&&v("@translateTab",Ft(3,me,a._position,At(1,be,a.animationDuration)))},dependencies:[Se,Yt],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Ee.translateTab]}})}return i})(),Ae=!0,ma=(()=>{class i{_elementRef=o(M);_changeDetectorRef=o(K);_animationMode=o(et,{optional:!0});_allTabs;_tabBodyWrapper;_tabHeader;_tabs=new Pt;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;_tabsSubscription=D.EMPTY;_tabLabelSubscription=D.EMPTY;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(t){let e=t+"";this._animationDuration=/^\d+$/.test(e)?t+"ms":e}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(t){if(!Ae)throw new Error("mat-tab-group background color must be set through the Sass theming API");let e=this._elementRef.nativeElement.classList;e.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),t&&e.add("mat-tabs-with-background",`mat-background-${t}`),this._backgroundColor=t}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new _;focusChange=new _;animationDone=new _;selectedTabChange=new _(!0);_groupId;_isServer=!o(st).isBrowser;constructor(){let t=o(Be,{optional:!0});this._groupId=o(jt).getId("mat-tab-group-"),this.animationDuration=t&&t.animationDuration?t.animationDuration:"500ms",this.disablePagination=t&&t.disablePagination!=null?t.disablePagination:!1,this.dynamicHeight=t&&t.dynamicHeight!=null?t.dynamicHeight:!1,t?.contentTabIndex!=null&&(this.contentTabIndex=t.contentTabIndex),this.preserveContent=!!t?.preserveContent,this.fitInkBarToContent=t&&t.fitInkBarToContent!=null?t.fitInkBarToContent:!1,this.stretchTabs=t&&t.stretchTabs!=null?t.stretchTabs:!0,this.alignTabs=t&&t.alignTabs!=null?t.alignTabs:null}ngAfterContentChecked(){let t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){let e=this._selectedIndex==null;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));let a=this._tabBodyWrapper.nativeElement;a.style.minHeight=a.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((a,n)=>a.isActive=n===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,a)=>{e.position=a-t,this._selectedIndex!=null&&e.position==0&&!e.origin&&(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){let e=this._tabs.toArray(),a;for(let n=0;n{e[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Q(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(e=>e._closestTabGroup===this||!e._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){let e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){let e=new ht;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=O(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`${this._groupId}-label-${t}`}_getTabContentId(t){return`${this._groupId}-content-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){let t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,a){e.focusIndex=a,t.disabled||(this.selectedIndex=a)}_getTabIndex(t){let e=this._lastFocusedTabIndex??this.selectedIndex;return t===e?0:-1}_tabFocusChanged(t,e){t&&t!=="mouse"&&t!=="touch"&&(this._tabHeader.focusIndex=e)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=A({type:i,selectors:[["mat-tab-group"]],contentQueries:function(e,a,n){if(e&1&&V(n,Ie,5),e&2){let r;b(r=m())&&(a._allTabs=r)}},viewQuery:function(e,a){if(e&1&&(g(pe,5),g(_e,5)),e&2){let n;b(n=m())&&(a._tabBodyWrapper=n.first),b(n=m())&&(a._tabHeader=n.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(e,a){e&2&&(L("mat-align-tabs",a.alignTabs),j("mat-"+(a.color||"primary")),Bt("--mat-tab-animation-duration",a.animationDuration),f("mat-mdc-tab-group-dynamic-height",a.dynamicHeight)("mat-mdc-tab-group-inverted-header",a.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",a.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",p],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",p],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",p],selectedIndex:[2,"selectedIndex","selectedIndex",Y],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Y],disablePagination:[2,"disablePagination","disablePagination",p],disableRipple:[2,"disableRipple","disableRipple",p],preserveContent:[2,"preserveContent","preserveContent",p],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[H([{provide:te,useExisting:i}]),I],ngContentSelectors:pt,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(e,a){if(e&1){let n=B();$(),h(0,"mat-tab-header",3,0),k("indexFocused",function(s){return l(n),c(a._focusChanged(s))})("selectFocusedIndex",function(s){return l(n),c(a.selectedIndex=s)}),nt(2,ve,8,17,"div",4,it),y(),R(4,ye,1,0),h(5,"div",5,1),nt(7,ke,1,13,"mat-tab-body",6,it),y()}e&2&&(v("selectedIndex",a.selectedIndex||0)("disableRipple",a.disableRipple)("disablePagination",a.disablePagination)("aria-label",a.ariaLabel)("aria-labelledby",a.ariaLabelledby),u(2),rt(a._tabs),u(2),at(a._isServer?4:-1),u(),f("_mat-animation-noopable",a._animationMode==="NoopAnimations"),u(2),rt(a._tabs))},dependencies:[Le,ee,Wt,ct,J,ae],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height, 48px);font-family:var(--mat-tab-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height, 2px);border-radius:var(--mdc-tab-indicator-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return i})(),ht=class{index;tab};var ha=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=Rt({type:i});static \u0275inj=wt({imports:[lt,lt]})}return i})();export{Ce as a,Ie as b,ma as c,ha as d}; diff --git a/chunk-KOL7ATC4.js b/chunk-YGTSZDQ5.js similarity index 97% rename from chunk-KOL7ATC4.js rename to chunk-YGTSZDQ5.js index 5f1346fd..8978b1f2 100644 --- a/chunk-KOL7ATC4.js +++ b/chunk-YGTSZDQ5.js @@ -1 +1 @@ -import{a as m,c as M,d as C}from"./chunk-5DAHKZ7F.js";import{B as g,C as d}from"./chunk-W5KNOAKV.js";import{Ba as c,Fb as p,bc as a,cc as s,ka as o,nc as h,oc as l,ub as r}from"./chunk-TEKHUYWQ.js";var x=[[["mat-toolbar"]],[["router-outlet"]]],_=["mat-toolbar","router-outlet"],w=(()=>{class t{destroyRef=o(c);isMobile=p(!1);media=o(d);constructor(){let n=this.media.matchMedia("(max-width: 600px)"),e=i=>{this.isMobile.set(i.matches)};n.addEventListener("change",e),this.destroyRef.onDestroy(()=>{n.removeEventListener("change",e)})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=r({type:t,selectors:[["devmx-app-shell"]],ngContentSelectors:_,decls:6,vars:0,consts:[[1,"app-shell-container"],[1,"sidenav-content"],[1,"app-shell-scroll-wrapper"],[1,"app-shell-content"]],template:function(e,i){e&1&&(h(x),a(0,"mat-sidenav-container",0)(1,"mat-sidenav-content",1),l(2),a(3,"div",2)(4,"div",3),l(5,1),s()()()())},dependencies:[C,M,m,g],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%] .sidenav-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;max-height:100vh;align-items:center}[_nghost-%COMP%] .mat-toolbar.mat-primary[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1}[_nghost-%COMP%] .app-shell-scroll-wrapper[_ngcontent-%COMP%]{flex:1;margin:1em;display:flex;flex-direction:column;max-width:1280px;width:calc(100% - 2em);height:100%;overflow:auto;border-radius:16px;box-sizing:border-box}[_nghost-%COMP%] .app-shell-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;height:100%;overflow-y:auto;box-sizing:border-box}@media (pointer: fine){[_nghost-%COMP%] .app-shell-content[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:8px}[_nghost-%COMP%] .app-shell-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:4px}}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%] .app-shell-scroll-wrapper[_ngcontent-%COMP%]{height:calc(100dvh - 32px)}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%] .app-shell-scroll-wrapper[_ngcontent-%COMP%] .app-shell-content[_ngcontent-%COMP%]{max-height:calc(100vh - 32px)}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%] + .app-shell-scroll-wrapper[_ngcontent-%COMP%]{max-height:calc(100dvh - 64px)}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%] + .app-shell-scroll-wrapper[_ngcontent-%COMP%] .app-shell-content[_ngcontent-%COMP%]{max-height:calc(100vh - 96px)}@media (max-width: 959.98px){[_nghost-%COMP%] mat-app-shell-content[_ngcontent-%COMP%]{padding-right:8px;padding-left:8px}[_nghost-%COMP%] .app-shell-scroll-wrapper[_ngcontent-%COMP%]{height:calc(100dvh - 32px)}[_nghost-%COMP%] .app-shell-content[_ngcontent-%COMP%]{overflow-y:visible}}"],changeDetection:0})}return t})();export{w as a}; +import{a as m,c as M,d as C}from"./chunk-ZTWYID37.js";import{B as g,C as d}from"./chunk-W5KNOAKV.js";import{Ba as c,Fb as p,bc as a,cc as s,ka as o,nc as h,oc as l,ub as r}from"./chunk-TEKHUYWQ.js";var x=[[["mat-toolbar"]],[["router-outlet"]]],_=["mat-toolbar","router-outlet"],w=(()=>{class t{destroyRef=o(c);isMobile=p(!1);media=o(d);constructor(){let n=this.media.matchMedia("(max-width: 600px)"),e=i=>{this.isMobile.set(i.matches)};n.addEventListener("change",e),this.destroyRef.onDestroy(()=>{n.removeEventListener("change",e)})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=r({type:t,selectors:[["devmx-app-shell"]],ngContentSelectors:_,decls:6,vars:0,consts:[[1,"app-shell-container"],[1,"sidenav-content"],[1,"app-shell-scroll-wrapper"],[1,"app-shell-content"]],template:function(e,i){e&1&&(h(x),a(0,"mat-sidenav-container",0)(1,"mat-sidenav-content",1),l(2),a(3,"div",2)(4,"div",3),l(5,1),s()()()())},dependencies:[C,M,m,g],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%] .sidenav-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;max-height:100vh;align-items:center}[_nghost-%COMP%] .mat-toolbar.mat-primary[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1}[_nghost-%COMP%] .app-shell-scroll-wrapper[_ngcontent-%COMP%]{flex:1;margin:1em;display:flex;flex-direction:column;max-width:1280px;width:calc(100% - 2em);height:100%;overflow:auto;border-radius:16px;box-sizing:border-box}[_nghost-%COMP%] .app-shell-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;height:100%;overflow-y:auto;box-sizing:border-box}@media (pointer: fine){[_nghost-%COMP%] .app-shell-content[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:8px}[_nghost-%COMP%] .app-shell-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:4px}}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%] .app-shell-scroll-wrapper[_ngcontent-%COMP%]{height:calc(100dvh - 32px)}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%] .app-shell-scroll-wrapper[_ngcontent-%COMP%] .app-shell-content[_ngcontent-%COMP%]{max-height:calc(100vh - 32px)}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%] + .app-shell-scroll-wrapper[_ngcontent-%COMP%]{max-height:calc(100dvh - 64px)}[_nghost-%COMP%] .app-shell-container[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%] + .app-shell-scroll-wrapper[_ngcontent-%COMP%] .app-shell-content[_ngcontent-%COMP%]{max-height:calc(100vh - 96px)}@media (max-width: 959.98px){[_nghost-%COMP%] mat-app-shell-content[_ngcontent-%COMP%]{padding-right:8px;padding-left:8px}[_nghost-%COMP%] .app-shell-scroll-wrapper[_ngcontent-%COMP%]{height:calc(100dvh - 32px)}[_nghost-%COMP%] .app-shell-content[_ngcontent-%COMP%]{overflow-y:visible}}"],changeDetection:0})}return t})();export{w as a}; diff --git a/chunk-6STDPPRP.js b/chunk-ZTJS4K5V.js similarity index 81% rename from chunk-6STDPPRP.js rename to chunk-ZTJS4K5V.js index 747c935a..19969331 100644 --- a/chunk-6STDPPRP.js +++ b/chunk-ZTJS4K5V.js @@ -1 +1 @@ -import{b as o}from"./chunk-4FWBEGAE.js";import{ka as r,xb as i}from"./chunk-TEKHUYWQ.js";var f=(()=>{class e{env=r(o);transform(t){return this.#t(t)}#t(t){return t?`${this.env.photos.url}/${t}`:"/photos/default.svg"}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=i({name:"photo",type:e,pure:!0})}return e})();export{f as a}; +import{b as o}from"./chunk-XYJHVZQT.js";import{ka as r,xb as i}from"./chunk-TEKHUYWQ.js";var f=(()=>{class e{env=r(o);transform(t){return this.#t(t)}#t(t){return t?`${this.env.photos.url}/${t}`:"/photos/default.svg"}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=i({name:"photo",type:e,pure:!0})}return e})();export{f as a}; diff --git a/chunk-5DAHKZ7F.js b/chunk-ZTWYID37.js similarity index 99% rename from chunk-5DAHKZ7F.js rename to chunk-ZTWYID37.js index bb840757..cc7c289b 100644 --- a/chunk-5DAHKZ7F.js +++ b/chunk-ZTWYID37.js @@ -1 +1 @@ -import{J as ke,K as b,L as De,M as te}from"./chunk-4FWBEGAE.js";import{c as we,d as q,g as Y,h as K,j as $}from"./chunk-I7VYXJU2.js";import{K as ve,L as be,Q as ye,U as Ce,Y as ee,f as J,s as ge,t as g,u as X}from"./chunk-W5KNOAKV.js";import{$ as s,A as ae,D as oe,Ea as S,F as h,Fa as F,Fc as v,J as se,Ja as E,Ka as le,Kb as y,L as de,M as O,Nb as C,Pa as he,Sb as G,Sc as B,Ta as me,Ub as N,Va as W,Vb as l,Yb as k,Z as P,bc as p,cc as u,ed as _e,fa as ce,ha as V,hc as L,j as c,jc as ue,ka as n,kc as Z,lb as H,lc as fe,mc as D,nc as f,oc as d,pc as x,qc as U,rc as _,sc as w,t as I,ta as j,ua as z,ub as m,vb as pe,xa as M,za as Q}from"./chunk-TEKHUYWQ.js";var A=["*"],Fe=["content"],Ee=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Be=["mat-drawer","mat-drawer-content","*"];function Te(i,R){if(i&1){let e=L();p(0,"div",1),Z("click",function(){j(e);let r=D();return z(r._onBackdropClicked())}),u()}if(i&2){let e=D();l("mat-drawer-shown",e._isShowingBackdrop())}}function Ae(i,R){i&1&&(p(0,"mat-drawer-content"),d(1,2),u())}var Re=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Ie=["mat-sidenav","mat-sidenav-content","*"];function Oe(i,R){if(i&1){let e=L();p(0,"div",1),Z("click",function(){j(e);let r=D();return z(r._onBackdropClicked())}),u()}if(i&2){let e=D();l("mat-drawer-shown",e._isShowingBackdrop())}}function Pe(i,R){i&1&&(p(0,"mat-sidenav-content"),d(1,2),u())}var Ve='.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}',Me={transformDrawer:we("transform",[K("open, open-instant",Y({transform:"none",visibility:"visible"})),K("void",Y({"box-shadow":"none",visibility:"hidden"})),$("void => open-instant",q("0ms")),$("void <=> open, open-instant => void",q("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var je=new V("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:ze}),ne=new V("MAT_DRAWER_CONTAINER");function ze(){return!1}var T=(()=>{class i extends b{_platform=n(J);_changeDetectorRef=n(B);_container=n(ie);constructor(){let e=n(E),t=n(ke),r=n(F);super(e,t,r)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:t}=this._container;return e!=null&&e.mode!=="over"&&e.opened||t!=null&&t.mode!=="over"&&t.opened}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=m({type:i,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(t,r){t&2&&(N("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px"),l("mat-drawer-content-hidden",r._shouldBeHidden()))},features:[v([{provide:b,useExisting:i}]),y],ngContentSelectors:A,decls:1,vars:0,template:function(t,r){t&1&&(f(),d(0))},encapsulation:2,changeDetection:0})}return i})(),re=(()=>{class i{_elementRef=n(E);_focusTrapFactory=n(be);_focusMonitor=n(ye);_platform=n(J);_ngZone=n(F);_interactivityChecker=n(ve);_doc=n(_e,{optional:!0});_container=n(ne,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_enableAnimations=!1;_isAttached;_anchor;get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=g(e)}_disableClose=!1;get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=g(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened}set opened(e){this.toggle(g(e))}_opened=!1;_openedVia;_animationStarted=new c;_animationEnd=new c;_animationState="void";openedChange=new S(!0);_openedStream=this.openedChange.pipe(h(e=>e),I(()=>{}));openedStart=this._animationStarted.pipe(h(e=>e.fromState!==e.toState&&e.toState.indexOf("open")===0),O(void 0));_closedStream=this.openedChange.pipe(h(e=>!e),I(()=>{}));closedStart=this._animationStarted.pipe(h(e=>e.fromState!==e.toState&&e.toState==="void"),O(void 0));_destroyed=new c;onPositionChanged=new S;_content;_modeChanged=new c;_injector=n(Q);_changeDetectorRef=n(B);constructor(){this.openedChange.pipe(s(this._destroyed)).subscribe(e=>{e?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{ae(this._elementRef.nativeElement,"keydown").pipe(h(e=>e.keyCode===27&&!this.disableClose&&!ge(e)),s(this._destroyed)).subscribe(e=>this._ngZone.run(()=>{this.close(),e.stopPropagation(),e.preventDefault()}))}),this._animationEnd.subscribe(e=>{let{fromState:t,toState:r}=e;(r.indexOf("open")===0&&t==="void"||r==="void"&&t.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":W(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(a=>{this.openedChange.pipe(de(1)).subscribe(o=>a(o?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let t=this._elementRef.nativeElement,r=t.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=m({type:i,selectors:[["mat-drawer"]],viewQuery:function(t,r){if(t&1&&U(Fe,5),t&2){let a;_(a=w())&&(r._content=a.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,r){t&1&&fe("@transform.start",function(o){return r._animationStarted.next(o)})("@transform.done",function(o){return r._animationEnd.next(o)}),t&2&&(ue("@transform",r._animationState),G("align",null),l("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-drawer-opened",r.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:A,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,r){t&1&&(f(),p(0,"div",1,0),d(2),u())},dependencies:[b],encapsulation:2,data:{animation:[Me.transformDrawer]},changeDetection:0})}return i})(),ie=(()=>{class i{_dir=n(Ce,{optional:!0});_element=n(E);_ngZone=n(F);_changeDetectorRef=n(B);_animationMode=n(he,{optional:!0});_allDrawers;_drawers=new le;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=g(e)}_autosize=n(je);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:g(e)}_backdropOverride;backdropClick=new S;_start;_end;_left;_right;_destroyed=new c;_doCheckSubject=new c;_contentMargins={left:null,right:null};_contentMarginChanges=new c;get scrollable(){return this._userContent||this._content}_injector=n(Q);constructor(){let e=n(De);this._dir?.change.pipe(s(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),e.change().pipe(s(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngAfterContentInit(){this._allDrawers.changes.pipe(P(this._allDrawers),s(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(P(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(se(10),s(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,t-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")t+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();t+=r,e-=r}}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(h(t=>t.fromState!==t.toState),s(this._drawers.changes)).subscribe(t=>{t.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(s(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(s(this._drawers.changes)).subscribe(()=>{W(()=>{this._validateDrawers()},{injector:this._injector,phase:me.Read})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(s(oe(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=m({type:i,selectors:[["mat-drawer-container"]],contentQueries:function(t,r,a){if(t&1&&(x(a,T,5),x(a,re,5)),t&2){let o;_(o=w())&&(r._content=o.first),_(o=w())&&(r._allDrawers=o)}},viewQuery:function(t,r){if(t&1&&U(T,5),t&2){let a;_(a=w())&&(r._userContent=a.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,r){t&2&&l("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[v([{provide:ne,useExisting:i}])],ngContentSelectors:Be,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,r){t&1&&(f(Ee),C(0,Te,1,2,"div",0),d(1),d(2,1),C(3,Ae,2,0,"mat-drawer-content")),t&2&&(k(r.hasBackdrop?0:-1),H(3),k(r._content?-1:3))},dependencies:[T],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return i})(),xe=(()=>{class i extends T{static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(i)))(r||i)}})();static \u0275cmp=m({type:i,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[v([{provide:b,useExisting:i}]),y],ngContentSelectors:A,decls:1,vars:0,template:function(t,r){t&1&&(f(),d(0))},encapsulation:2,changeDetection:0})}return i})(),Qe=(()=>{class i extends re{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=g(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=X(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=X(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(i)))(r||i)}})();static \u0275cmp=m({type:i,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,r){t&2&&(G("align",null),N("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),l("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-drawer-opened",r.opened)("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[v([{provide:re,useExisting:i}]),y],ngContentSelectors:A,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,r){t&1&&(f(),p(0,"div",1,0),d(2),u())},dependencies:[b],encapsulation:2,data:{animation:[Me.transformDrawer]},changeDetection:0})}return i})(),ct=(()=>{class i extends ie{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(i)))(r||i)}})();static \u0275cmp=m({type:i,selectors:[["mat-sidenav-container"]],contentQueries:function(t,r,a){if(t&1&&(x(a,xe,5),x(a,Qe,5)),t&2){let o;_(o=w())&&(r._content=o.first),_(o=w())&&(r._allDrawers=o)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,r){t&2&&l("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[v([{provide:ne,useExisting:i},{provide:ie,useExisting:i}]),y],ngContentSelectors:Ie,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,r){t&1&&(f(Re),C(0,Oe,1,2,"div",0),d(1),d(2,1),C(3,Pe,2,0,"mat-sidenav-content")),t&2&&(k(r.hasBackdrop?0:-1),H(3),k(r._content?-1:3))},dependencies:[xe],styles:[Ve],encapsulation:2,changeDetection:0})}return i})(),lt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=pe({type:i});static \u0275inj=ce({imports:[ee,te,te,ee]})}return i})();export{xe as a,Qe as b,ct as c,lt as d}; +import{A as De,B as te,y as ke,z as b}from"./chunk-6BGAZ7SQ.js";import{c as we,d as q,g as Y,h as K,j as $}from"./chunk-I7VYXJU2.js";import{K as ve,L as be,Q as ye,U as Ce,Y as ee,f as J,s as ge,t as g,u as X}from"./chunk-W5KNOAKV.js";import{$ as s,A as ae,D as oe,Ea as S,F as h,Fa as F,Fc as v,J as se,Ja as E,Ka as le,Kb as y,L as de,M as O,Nb as C,Pa as he,Sb as G,Sc as B,Ta as me,Ub as N,Va as W,Vb as l,Yb as k,Z as P,bc as p,cc as u,ed as _e,fa as ce,ha as V,hc as L,j as c,jc as ue,ka as n,kc as Z,lb as H,lc as fe,mc as D,nc as f,oc as d,pc as x,qc as U,rc as _,sc as w,t as I,ta as j,ua as z,ub as m,vb as pe,xa as M,za as Q}from"./chunk-TEKHUYWQ.js";var A=["*"],Fe=["content"],Ee=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Be=["mat-drawer","mat-drawer-content","*"];function Te(i,R){if(i&1){let e=L();p(0,"div",1),Z("click",function(){j(e);let r=D();return z(r._onBackdropClicked())}),u()}if(i&2){let e=D();l("mat-drawer-shown",e._isShowingBackdrop())}}function Ae(i,R){i&1&&(p(0,"mat-drawer-content"),d(1,2),u())}var Re=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Ie=["mat-sidenav","mat-sidenav-content","*"];function Oe(i,R){if(i&1){let e=L();p(0,"div",1),Z("click",function(){j(e);let r=D();return z(r._onBackdropClicked())}),u()}if(i&2){let e=D();l("mat-drawer-shown",e._isShowingBackdrop())}}function Pe(i,R){i&1&&(p(0,"mat-sidenav-content"),d(1,2),u())}var Ve='.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}',Me={transformDrawer:we("transform",[K("open, open-instant",Y({transform:"none",visibility:"visible"})),K("void",Y({"box-shadow":"none",visibility:"hidden"})),$("void => open-instant",q("0ms")),$("void <=> open, open-instant => void",q("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var je=new V("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:ze}),ne=new V("MAT_DRAWER_CONTAINER");function ze(){return!1}var T=(()=>{class i extends b{_platform=n(J);_changeDetectorRef=n(B);_container=n(ie);constructor(){let e=n(E),t=n(ke),r=n(F);super(e,t,r)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:t}=this._container;return e!=null&&e.mode!=="over"&&e.opened||t!=null&&t.mode!=="over"&&t.opened}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=m({type:i,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(t,r){t&2&&(N("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px"),l("mat-drawer-content-hidden",r._shouldBeHidden()))},features:[v([{provide:b,useExisting:i}]),y],ngContentSelectors:A,decls:1,vars:0,template:function(t,r){t&1&&(f(),d(0))},encapsulation:2,changeDetection:0})}return i})(),re=(()=>{class i{_elementRef=n(E);_focusTrapFactory=n(be);_focusMonitor=n(ye);_platform=n(J);_ngZone=n(F);_interactivityChecker=n(ve);_doc=n(_e,{optional:!0});_container=n(ne,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_enableAnimations=!1;_isAttached;_anchor;get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=g(e)}_disableClose=!1;get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=g(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened}set opened(e){this.toggle(g(e))}_opened=!1;_openedVia;_animationStarted=new c;_animationEnd=new c;_animationState="void";openedChange=new S(!0);_openedStream=this.openedChange.pipe(h(e=>e),I(()=>{}));openedStart=this._animationStarted.pipe(h(e=>e.fromState!==e.toState&&e.toState.indexOf("open")===0),O(void 0));_closedStream=this.openedChange.pipe(h(e=>!e),I(()=>{}));closedStart=this._animationStarted.pipe(h(e=>e.fromState!==e.toState&&e.toState==="void"),O(void 0));_destroyed=new c;onPositionChanged=new S;_content;_modeChanged=new c;_injector=n(Q);_changeDetectorRef=n(B);constructor(){this.openedChange.pipe(s(this._destroyed)).subscribe(e=>{e?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{ae(this._elementRef.nativeElement,"keydown").pipe(h(e=>e.keyCode===27&&!this.disableClose&&!ge(e)),s(this._destroyed)).subscribe(e=>this._ngZone.run(()=>{this.close(),e.stopPropagation(),e.preventDefault()}))}),this._animationEnd.subscribe(e=>{let{fromState:t,toState:r}=e;(r.indexOf("open")===0&&t==="void"||r==="void"&&t.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":W(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(a=>{this.openedChange.pipe(de(1)).subscribe(o=>a(o?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let t=this._elementRef.nativeElement,r=t.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=m({type:i,selectors:[["mat-drawer"]],viewQuery:function(t,r){if(t&1&&U(Fe,5),t&2){let a;_(a=w())&&(r._content=a.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,r){t&1&&fe("@transform.start",function(o){return r._animationStarted.next(o)})("@transform.done",function(o){return r._animationEnd.next(o)}),t&2&&(ue("@transform",r._animationState),G("align",null),l("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-drawer-opened",r.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:A,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,r){t&1&&(f(),p(0,"div",1,0),d(2),u())},dependencies:[b],encapsulation:2,data:{animation:[Me.transformDrawer]},changeDetection:0})}return i})(),ie=(()=>{class i{_dir=n(Ce,{optional:!0});_element=n(E);_ngZone=n(F);_changeDetectorRef=n(B);_animationMode=n(he,{optional:!0});_allDrawers;_drawers=new le;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=g(e)}_autosize=n(je);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:g(e)}_backdropOverride;backdropClick=new S;_start;_end;_left;_right;_destroyed=new c;_doCheckSubject=new c;_contentMargins={left:null,right:null};_contentMarginChanges=new c;get scrollable(){return this._userContent||this._content}_injector=n(Q);constructor(){let e=n(De);this._dir?.change.pipe(s(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),e.change().pipe(s(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngAfterContentInit(){this._allDrawers.changes.pipe(P(this._allDrawers),s(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(P(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(se(10),s(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,t-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")t+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();t+=r,e-=r}}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(h(t=>t.fromState!==t.toState),s(this._drawers.changes)).subscribe(t=>{t.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(s(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(s(this._drawers.changes)).subscribe(()=>{W(()=>{this._validateDrawers()},{injector:this._injector,phase:me.Read})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(s(oe(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=m({type:i,selectors:[["mat-drawer-container"]],contentQueries:function(t,r,a){if(t&1&&(x(a,T,5),x(a,re,5)),t&2){let o;_(o=w())&&(r._content=o.first),_(o=w())&&(r._allDrawers=o)}},viewQuery:function(t,r){if(t&1&&U(T,5),t&2){let a;_(a=w())&&(r._userContent=a.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,r){t&2&&l("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[v([{provide:ne,useExisting:i}])],ngContentSelectors:Be,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,r){t&1&&(f(Ee),C(0,Te,1,2,"div",0),d(1),d(2,1),C(3,Ae,2,0,"mat-drawer-content")),t&2&&(k(r.hasBackdrop?0:-1),H(3),k(r._content?-1:3))},dependencies:[T],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return i})(),xe=(()=>{class i extends T{static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(i)))(r||i)}})();static \u0275cmp=m({type:i,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[v([{provide:b,useExisting:i}]),y],ngContentSelectors:A,decls:1,vars:0,template:function(t,r){t&1&&(f(),d(0))},encapsulation:2,changeDetection:0})}return i})(),Qe=(()=>{class i extends re{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=g(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=X(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=X(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(i)))(r||i)}})();static \u0275cmp=m({type:i,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,r){t&2&&(G("align",null),N("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),l("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-drawer-opened",r.opened)("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[v([{provide:re,useExisting:i}]),y],ngContentSelectors:A,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,r){t&1&&(f(),p(0,"div",1,0),d(2),u())},dependencies:[b],encapsulation:2,data:{animation:[Me.transformDrawer]},changeDetection:0})}return i})(),ct=(()=>{class i extends ie{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=M(i)))(r||i)}})();static \u0275cmp=m({type:i,selectors:[["mat-sidenav-container"]],contentQueries:function(t,r,a){if(t&1&&(x(a,xe,5),x(a,Qe,5)),t&2){let o;_(o=w())&&(r._content=o.first),_(o=w())&&(r._allDrawers=o)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,r){t&2&&l("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],features:[v([{provide:ne,useExisting:i},{provide:ie,useExisting:i}]),y],ngContentSelectors:Ie,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,r){t&1&&(f(Re),C(0,Oe,1,2,"div",0),d(1),d(2,1),C(3,Pe,2,0,"mat-sidenav-content")),t&2&&(k(r.hasBackdrop?0:-1),H(3),k(r._content?-1:3))},dependencies:[xe],styles:[Ve],encapsulation:2,changeDetection:0})}return i})(),lt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=pe({type:i});static \u0275inj=ce({imports:[ee,te,te,ee]})}return i})();export{xe as a,Qe as b,ct as c,lt as d}; diff --git a/chunk-MGSOU4BE.js b/chunk-ZUTFRYJ3.js similarity index 68% rename from chunk-MGSOU4BE.js rename to chunk-ZUTFRYJ3.js index 83311403..83d67daf 100644 --- a/chunk-MGSOU4BE.js +++ b/chunk-ZUTFRYJ3.js @@ -1 +1 @@ -import{a as h}from"./chunk-KAZRQD4G.js";import"./chunk-ZQOXWN4S.js";import{a as F}from"./chunk-AD4TXQD3.js";import{b as f}from"./chunk-RRBYVHNZ.js";import"./chunk-MLNPCJDD.js";import"./chunk-UOTKRQ63.js";import"./chunk-BJXILAOS.js";import{a as y}from"./chunk-TZR6QHL3.js";import"./chunk-5DAHKZ7F.js";import{a as u}from"./chunk-A3N3AUUJ.js";import"./chunk-4FWBEGAE.js";import{i as p,p as d}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{Ba as n,Kb as m,dc as s,ka as r,mb as a,ub as c,wb as l}from"./chunk-TEKHUYWQ.js";var i=class{},v=(()=>{class e{layoutFacade=r(f);destroyRef=r(n);router=r(p);constructor(o){o.auth$.pipe(u()).subscribe(t=>{t?this.layoutFacade.loadNavLinks(t.roles):(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))}),o.load()}static \u0275fac=function(t){return new(t||e)(a(i))};static \u0275dir=l({type:e})}return e})();var x=(()=>{class e extends v{constructor(o){super(o)}static \u0275fac=function(t){return new(t||e)(a(y))};static \u0275cmp=c({type:e,selectors:[["devmx-learn-feature-shell"]],features:[m],decls:1,vars:0,template:function(t,D){t&1&&s(0,"devmx-layout")},dependencies:[d,h],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var H=[{path:"",data:{breadcrumb:"Aprenda"},title:"Habilidades",canActivate:[F("member")],component:x,children:[{path:"administracao",loadChildren:()=>import("./chunk-IUDTHKAB.js").then(e=>e.learnFeatureAdminRoutes)}]}];export{x as LearnFeatureShellComponent,H as learnFeatureShellRoutes}; +import{a as h}from"./chunk-M5BYPXOP.js";import"./chunk-ZQOXWN4S.js";import{a as F}from"./chunk-Q33OVU5J.js";import{b as f}from"./chunk-WKFJTKSD.js";import"./chunk-MLNPCJDD.js";import"./chunk-UOTKRQ63.js";import{a as y}from"./chunk-TPJZ2OYR.js";import"./chunk-ZTWYID37.js";import"./chunk-XYJHVZQT.js";import"./chunk-BJXILAOS.js";import{a as u}from"./chunk-A3N3AUUJ.js";import{i as p,p as d}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import"./chunk-PAP2P7QR.js";import"./chunk-EDIJ2EBQ.js";import"./chunk-W5KNOAKV.js";import{Ba as n,Kb as m,dc as s,ka as r,mb as a,ub as c,wb as l}from"./chunk-TEKHUYWQ.js";var i=class{},v=(()=>{class e{layoutFacade=r(f);destroyRef=r(n);router=r(p);constructor(o){o.auth$.pipe(u()).subscribe(t=>{t?this.layoutFacade.loadNavLinks(t.roles):(this.layoutFacade.resetNavLinks(),this.router.navigateByUrl("/conta/autenticacao"))}),o.load()}static \u0275fac=function(t){return new(t||e)(a(i))};static \u0275dir=l({type:e})}return e})();var x=(()=>{class e extends v{constructor(o){super(o)}static \u0275fac=function(t){return new(t||e)(a(y))};static \u0275cmp=c({type:e,selectors:[["devmx-learn-feature-shell"]],features:[m],decls:1,vars:0,template:function(t,D){t&1&&s(0,"devmx-layout")},dependencies:[d,h],styles:["[_nghost-%COMP%]{flex:1;display:flex;flex-direction:column}"],changeDetection:0})}return e})();var H=[{path:"",data:{breadcrumb:"Aprenda"},title:"Habilidades",canActivate:[F("member")],component:x,children:[{path:"administracao",loadChildren:()=>import("./chunk-K4DUSKBE.js").then(e=>e.learnFeatureAdminRoutes)}]}];export{x as LearnFeatureShellComponent,H as learnFeatureShellRoutes}; diff --git a/index.html b/index.html index 09a27cba..48aaabc2 100644 --- a/index.html +++ b/index.html @@ -75,5 +75,5 @@ - + diff --git a/main-I2XGNJXV.js b/main-I2XGNJXV.js new file mode 100644 index 00000000..a68b3ba8 --- /dev/null +++ b/main-I2XGNJXV.js @@ -0,0 +1,5 @@ +import{d as Fe}from"./chunk-6P3MPDKA.js";import{c as _e}from"./chunk-L2JQY5SP.js";import{b as ke}from"./chunk-GXQHMTZK.js";import{a as H,b as F}from"./chunk-WKFJTKSD.js";import{a as De}from"./chunk-WOE5TNBB.js";import{b as xe}from"./chunk-2GNIBV4J.js";import{b as Pe}from"./chunk-JNB3NYAZ.js";import{e as Ne}from"./chunk-V6KASOE3.js";import"./chunk-XIUDFJWJ.js";import{a as Le,c as je}from"./chunk-TPJZ2OYR.js";import{x as Re,y as Oe}from"./chunk-XYJHVZQT.js";import{h as Ie}from"./chunk-AND6K73U.js";import"./chunk-BJXILAOS.js";import{a as ve,b as ye,h as be,i as Ee,j as we,l as Ce,m as Se,n as Me,o as Ae}from"./chunk-6BGAZ7SQ.js";import"./chunk-I7VYXJU2.js";import{C as Te,b as me,c as he,d as ge,e as fe}from"./chunk-W5KNOAKV.js";import{A as N,Bb as se,Be as U,Ca as te,D as k,Db as j,E as h,F as y,Fa as R,Ga as re,L as p,N as Z,Oa as L,P as J,Pa as oe,Pc as ce,Qc as le,Rc as de,Sa as ne,U as G,Wd as ue,_ as b,a as z,ba as Q,bc as w,ca as X,cc as C,dc as S,ea as E,ed as pe,ha as g,j as $,ja as D,ka as c,na as I,nb as ie,o as q,p as T,q as Y,rb as ae,t as d,ub as O,x as K,xc as P,y as _,za as ee}from"./chunk-TEKHUYWQ.js";var Ue=(()=>{class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=O({type:r,selectors:[["devmx-root"]],decls:1,vars:0,template:function(o,n){o&1&&S(0,"router-outlet")},dependencies:[be],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}"]})}return r})();var tt="@",rt=(()=>{class r{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=c(te,{optional:!0});loadingSchedulerFn=c(ot,{optional:!0});_engine;constructor(e,o,n,a,i){this.doc=e,this.delegate=o,this.zone=n,this.animationType=a,this.moduleImpl=i}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-J6QMVZUK.js").then(n=>n),o;return this.loadingSchedulerFn?o=this.loadingSchedulerFn(e):o=e(),o.catch(n=>{throw new X(5300,!1)}).then(({\u0275createEngine:n,\u0275AnimationRendererFactory:a})=>{this._engine=n(this.animationType,this.doc);let i=new a(this.delegate,this._engine,this.zone);return this.delegate=i,i})}createRenderer(e,o){let n=this.delegate.createRenderer(e,o);if(n.\u0275type===0)return n;typeof n.throwOnSyntheticProps=="boolean"&&(n.throwOnSyntheticProps=!1);let a=new W(n);return o?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(i=>{let s=i.createRenderer(e,o);a.use(s),this.scheduler?.notify(11)}).catch(i=>{a.use(n)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static \u0275fac=function(o){ie()};static \u0275prov=E({token:r,factory:r.\u0275fac})}return r})(),W=class{delegate;replay=[];\u0275type=1;constructor(t){this.delegate=t}use(t){if(this.delegate=t,this.replay!==null){for(let e of this.replay)e(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,e){this.delegate.appendChild(t,e)}insertBefore(t,e,o,n){this.delegate.insertBefore(t,e,o,n)}removeChild(t,e,o){this.delegate.removeChild(t,e,o)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,o,n){this.delegate.setAttribute(t,e,o,n)}removeAttribute(t,e,o){this.delegate.removeAttribute(t,e,o)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,o,n){this.delegate.setStyle(t,e,o,n)}removeStyle(t,e,o){this.delegate.removeStyle(t,e,o)}setProperty(t,e,o){this.shouldReplay(e)&&this.replay.push(n=>n.setProperty(t,e,o)),this.delegate.setProperty(t,e,o)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,o){return this.shouldReplay(e)&&this.replay.push(n=>n.listen(t,e,o)),this.delegate.listen(t,e,o)}shouldReplay(t){return this.replay!==null&&t.startsWith(tt)}},ot=new g("");function He(r="animations"){return ne("NgAsyncAnimations"),I([{provide:ae,useFactory:(t,e,o)=>new rt(t,e,o,r),deps:[pe,ve,R]},{provide:oe,useValue:r==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Ve=(r,t)=>{let e=localStorage.getItem("accessToken"),o;e?o={headers:r.headers.set("Authorization",`Bearer ${e}`)}:o={};let n=r.clone(o);return t(n)};function We(r){return{provide:H,useFactory(t){return new H(t)},deps:[r]}}var Be=new g("layout.sidenav.sections");function ze(r=[]){return[{provide:Be,useValue:r},{provide:F,deps:[Te,Be]}]}var $e=(r,t)=>{let e=c(F);return e.setLoader(!0),t(r).pipe(J(()=>e.setLoader(!1)))};var A="Service workers are disabled or not supported by this browser";function nt(r){return _(()=>Y(new Error(r)))}var f=class{serviceWorker;worker;registration;events;constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=nt(A);else{let o=N(t,"controllerchange").pipe(d(()=>t.controller)),n=_(()=>T(t.controller)),a=K(n,o);this.worker=a.pipe(y(m=>!!m)),this.registration=this.worker.pipe(b(()=>t.getRegistration()));let v=N(t,"message").pipe(d(m=>m.data)).pipe(y(m=>m&&m.type)).pipe(G());v.connect(),this.events=v}}postMessage(t,e){return this.worker.pipe(p(1),Q(o=>{o.postMessage(z({action:t},e))})).toPromise().then(()=>{})}postMessageWithOperation(t,e,o){let n=this.waitForOperationCompleted(o),a=this.postMessage(t,e);return Promise.all([a,n]).then(([,i])=>i)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(t){let e;return typeof t=="string"?e=o=>o.type===t:e=o=>t.includes(o.type),this.events.pipe(y(e))}nextEventOfType(t){return this.eventsOfType(t).pipe(p(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(y(e=>e.nonce===t),p(1),d(e=>{if(e.result!==void 0)return e.result;throw new Error(e.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},it=(()=>{class r{sw;messages;notificationClicks;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new $;constructor(e){if(this.sw=e,!e.isEnabled){this.messages=h,this.notificationClicks=h,this.subscription=h;return}this.messages=this.sw.eventsOfType("PUSH").pipe(d(n=>n.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(d(n=>n.data)),this.pushManager=this.sw.registration.pipe(d(n=>n.pushManager));let o=this.pushManager.pipe(b(n=>n.getSubscription()));this.subscription=k(o,this.subscriptionChanges)}requestSubscription(e){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(A));let o={userVisibleOnly:!0},n=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),a=new Uint8Array(new ArrayBuffer(n.length));for(let i=0;ii.subscribe(o)),p(1)).toPromise().then(i=>(this.subscriptionChanges.next(i),i))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(A));let e=o=>{if(o===null)throw new Error("Not subscribed to push notifications.");return o.unsubscribe().then(n=>{if(!n)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(p(1),b(e)).toPromise()}decodeBase64(e){return atob(e)}static \u0275fac=function(o){return new(o||r)(D(f))};static \u0275prov=E({token:r,factory:r.\u0275fac})}return r})(),at=(()=>{class r{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}constructor(e){if(this.sw=e,!e.isEnabled){this.versionUpdates=h,this.unrecoverable=h;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(A));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(A));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}static \u0275fac=function(o){return new(o||r)(D(f))};static \u0275prov=E({token:r,factory:r.\u0275fac})}return r})();var qe=new g("");function st(r,t,e,o){return()=>{if(!(U(o)&&"serviceWorker"in navigator&&e.enabled!==!1))return;let n=r.get(R),a=r.get(j);n.runOutsideAngular(()=>{let s=navigator.serviceWorker,l=()=>s.controller?.postMessage({action:"INITIALIZE"});s.addEventListener("controllerchange",l),a.onDestroy(()=>{s.removeEventListener("controllerchange",l)})});let i;if(typeof e.registrationStrategy=="function")i=e.registrationStrategy();else{let[s,...l]=(e.registrationStrategy||"registerWhenStable:30000").split(":");switch(s){case"registerImmediately":i=T(null);break;case"registerWithDelay":i=Ye(+l[0]||0);break;case"registerWhenStable":let v=q(r.get(j).whenStable());i=l[0]?k(v,Ye(+l[0])):v;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${e.registrationStrategy}`)}}n.runOutsideAngular(()=>i.pipe(p(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:e.scope}).catch(s=>console.error("Service worker registration failed with:",s))))}}function Ye(r){return T(null).pipe(Z(r))}function ct(r,t){return new f(U(t)&&r.enabled!==!1?navigator.serviceWorker:void 0)}var M=class{enabled;scope;registrationStrategy};function Ke(r,t={}){return I([it,at,{provide:qe,useValue:r},{provide:M,useValue:t},{provide:f,useFactory:ct,deps:[M,L]},{provide:se,useFactory:st,deps:[ee,qe,M,L],multi:!0}])}var Ze=[];var x=class{router;messageService;constructor(){this.router=c(Ee),this.messageService=c(De),localStorage.getItem("accessToken")&&(onstorage=this.#e)}#e=({key:t,newValue:e})=>{t==="accessToken"&&!e&&this.router.navigateByUrl("/conta/autenticacao")};handleError(t){if(console.error(t),t instanceof me){let{message:e}=t.error;if(this.showMessage(t.status,e),t.status===401){let o={redirectTo:this.router.url};this.router.navigate(["/","conta","autenticacao"],{queryParams:o}),localStorage.removeItem("accessToken")}}}showMessage(t,e){let o=t>=400&&t<500?"error":"warn";this.messageService.open({message:e,type:o})}};var Je=[{label:"Navega\xE7\xE3o",expanded:!0,links:[{label:"Inicio",route:["/conta"],icon:"menu/home-4"},{label:"Eventos",route:["/eventos"],icon:"calendar"},{label:"Fotos",route:["/albuns"],icon:"camera-shutter"},{label:"Conhecimento",route:["/apresentacoes"],icon:"presentation"},{label:"Vagas",route:["/carreiras"],icon:"finance/bullseye"},{label:"Academia",route:["/academia"],icon:"academic-cap"}]},{label:"Administra\xE7\xE3o",expanded:!0,links:[{label:"Eventos",route:["/eventos","administracao"],icon:"calendar-tasks",roles:["leader"]},{label:"Fotos",route:["/albuns","administracao","meus-albuns"],icon:"camera-shutter",roles:["leader","fellow","director","manager","staff","speaker"]},{label:"Apresenta\xE7\xF5es",route:["/apresentacoes","administracao"],icon:"presentation",roles:["speaker"]},{label:"Academia",route:["/academia","administracao","meus-cursos"],icon:"academic-cap",roles:["leader","fellow","director","manager","staff","academic"]},{label:"Vagas",route:["/carreiras","administracao"],icon:"music/speaker",roles:["recruiter"]},{label:"Aprenda",route:["/aprenda","administracao"],icon:"book-opened",roles:["member"]},{label:"Sobre voc\xEA",route:["/conta","configuracoes"],icon:"doc/id-card",roles:["member"]},{label:"Sair",route:["/conta","sair"],icon:"exit"}]},{label:"Gerenciamento",expanded:!0,links:[{label:"Eventos",route:["/eventos","administracao","gerenciar-eventos"],icon:"calendar-tasks",roles:["manager","director","staff"]},{label:"Fotos",route:["/albuns","administracao","gerenciar-albuns"],icon:"camera-shutter",roles:["director","manager","staff"]},{label:"Apresenta\xE7\xF5es",route:["/apresentacoes","administracao","gerenciar-apresentacoes"],icon:"presentation",roles:["manager","director","staff"]},{label:"Vagas",route:["/carreiras","administracao","gerenciar-ofertas"],icon:"music/speaker",roles:["manager","director","staff"]},{label:"Academia",route:["/academia","administracao","gerenciar-cursos"],icon:"academic-cap",roles:["manager","director","staff"]},{label:"Usu\xE1rios",route:["/conta","administracao","usuarios"],icon:"gear",roles:["manager","director"]}]}];function lt(r){let t=r,e=Math.floor(Math.abs(r)),o=r.toString().replace(/^[^.]*\.?/,"").length,n=parseInt(r.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return e===Math.floor(e)&&e>=0&&e<=1?1:n===0&&e!==0&&e%1e6===0&&o===0||!(n>=0&&n<=5)?4:5}var Ge=["pt",[["AM","PM"],void 0,void 0],void 0,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."],["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],void 0,[["a.C.","d.C."],void 0,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],PHP:[void 0,"\u20B1"],PTE:["Esc."],RON:[void 0,"L"],SYP:[void 0,"S\xA3"],THB:["\u0E3F"],TWD:["NT$"],USD:["US$","$"]},"ltr",lt];var Qe=(()=>{class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=O({type:r,selectors:[["devmx-not-found"]],decls:10,vars:0,consts:[["src","devmx.svg"],["routerLink","/conta"],["src","devpr.svg","width","100"]],template:function(o,n){o&1&&(w(0,"div"),S(1,"img",0),w(2,"main")(3,"h2"),P(4,"404"),C(),w(5,"h3"),P(6,"P\xE1gina n\xE3o encontrada"),C(),w(7,"a",1),P(8,"Acesse sua conta"),C()(),S(9,"img",2),C())},dependencies:[we],styles:["[_nghost-%COMP%]{height:100vh;display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%]{flex:1;gap:2em;display:flex;flex-direction:column;justify-content:space-around;align-items:center}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:4.04em;text-align:center;font-weight:600}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] a[_ngcontent-%COMP%]{display:flex;justify-content:center;color:#00f}"],changeDetection:0})}return r})();var Xe=[{path:"vagas",loadChildren:()=>import("./chunk-UH3UXNJ6.js").then(r=>r.careerFeaturePageRoutes)},{path:"sobre",loadChildren:()=>import("./chunk-YDU3JYTF.js").then(r=>r.accountFeatureAboutRoutes)},{path:"evento",loadChildren:()=>import("./chunk-3F647OO5.js").then(r=>r.eventFeaturePageRoutes)},{path:"albuns",loadChildren:()=>import("./chunk-3OW34LBR.js").then(r=>r.albumFeatureShellRoutes)},{path:"carreiras",loadChildren:()=>import("./chunk-P6FJ2MEG.js").then(r=>r.careerFeatureShellRoutes)},{path:"eventos",loadChildren:()=>import("./chunk-F6THDKE2.js").then(r=>r.eventFeatureShellRoutes)},{path:"apresentacoes",loadChildren:()=>import("./chunk-MZVM2UVI.js").then(r=>r.presentationFeatureShellRoutes)},{path:"conta",loadChildren:()=>import("./chunk-6GR4MAJE.js").then(r=>r.accountFeatureShellRoutes)},{path:"academia",loadChildren:()=>import("./chunk-TQRFHWEI.js").then(r=>r.academyFeatureShellRoutes)},{path:"aprenda",loadChildren:()=>import("./chunk-ZUTFRYJ3.js").then(r=>r.learnFeatureShellRoutes)},{path:"",pathMatch:"full",redirectTo:"conta"},{path:"**",component:Qe}];var u={prod:!0,api:{url:"https://api.devparana.mx/api"},photos:{url:"https://api.devparana.mx/photos"},covers:{events:{url:"https://api.devparana.mx/events/covers"}},googleTag:"G-3562LSS0KB"};ue(Ge,"pt-BR",Ze);var et={providers:[ce({eventCoalescing:!0}),Ce(Xe,Ae(),Me(),Se({onSameUrlNavigation:"ignore",urlUpdateStrategy:"deferred"})),He(),{provide:le,useValue:"pt-BR"},{provide:re,useClass:x},ze(Je),ge(fe([Ve,$e])),Oe(he),...je(),We(Le),Re(u),...xe(),...Pe(),...Ne(),..._e(),...Fe(),...ke(),Ke("ngsw-worker.js",{enabled:!de(),registrationStrategy:"registerWhenStable:30000"}),{provide:Ie,useValue:{appearance:"outline"}}]};var B=class extends HTMLScriptElement{connectedCallback(){this.setAttribute("async",""),this.setAttribute("src",`https://www.googletagmanager.com/gtag/js?id=${u.googleTag}`);let t=document.createElement("script");t.innerHTML=`window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + + gtag('config', '${u.googleTag}');`,document.body.appendChild(t)}};customElements.define("google-tag",B,{extends:"script"});u.prod&&document.body.appendChild(document.createElement("script",{is:"google-tag"}));ye(Ue,et).catch(r=>console.error(r)); diff --git a/main-VFVBEY5F.js b/main-VFVBEY5F.js deleted file mode 100644 index f5f7a036..00000000 --- a/main-VFVBEY5F.js +++ /dev/null @@ -1,5 +0,0 @@ -import{d as Fe}from"./chunk-MWZTEPOQ.js";import{c as _e}from"./chunk-5FZSI2PL.js";import{b as ke}from"./chunk-LVUYG7JQ.js";import{a as H,b as F}from"./chunk-RRBYVHNZ.js";import{a as De}from"./chunk-HYAMKYUE.js";import{b as xe}from"./chunk-WBTUXFAS.js";import"./chunk-R66KDUEB.js";import{b as Pe}from"./chunk-WVZCQXYK.js";import"./chunk-BJXILAOS.js";import{e as Ne}from"./chunk-NWAJWWA3.js";import"./chunk-XIUDFJWJ.js";import{a as Le,c as je}from"./chunk-TZR6QHL3.js";import{x as Re,y as Oe}from"./chunk-4FWBEGAE.js";import{h as Ie}from"./chunk-2K6IALUF.js";import{a as ve,b as ye,h as be,i as Ee,j as we,l as Ce,m as Se,n as Me,o as Ae}from"./chunk-KXTQ2UTD.js";import"./chunk-I7VYXJU2.js";import{C as Te,b as me,c as he,d as ge,e as fe}from"./chunk-W5KNOAKV.js";import{A as N,Bb as se,Be as U,Ca as te,D as k,Db as j,E as h,F as y,Fa as R,Ga as re,L as p,N as Z,Oa as L,P as J,Pa as oe,Pc as ce,Qc as le,Rc as de,Sa as ne,U as G,Wd as ue,_ as b,a as z,ba as Q,bc as w,ca as X,cc as C,dc as S,ea as E,ed as pe,ha as g,j as $,ja as D,ka as c,na as I,nb as ie,o as q,p as T,q as Y,rb as ae,t as d,ub as O,x as K,xc as P,y as _,za as ee}from"./chunk-TEKHUYWQ.js";var Ue=(()=>{class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=O({type:r,selectors:[["devmx-root"]],decls:1,vars:0,template:function(o,n){o&1&&S(0,"router-outlet")},dependencies:[be],styles:["[_nghost-%COMP%]{height:100%;display:flex;flex-direction:column}"]})}return r})();var tt="@",rt=(()=>{class r{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=c(te,{optional:!0});loadingSchedulerFn=c(ot,{optional:!0});_engine;constructor(e,o,n,a,i){this.doc=e,this.delegate=o,this.zone=n,this.animationType=a,this.moduleImpl=i}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-J6QMVZUK.js").then(n=>n),o;return this.loadingSchedulerFn?o=this.loadingSchedulerFn(e):o=e(),o.catch(n=>{throw new X(5300,!1)}).then(({\u0275createEngine:n,\u0275AnimationRendererFactory:a})=>{this._engine=n(this.animationType,this.doc);let i=new a(this.delegate,this._engine,this.zone);return this.delegate=i,i})}createRenderer(e,o){let n=this.delegate.createRenderer(e,o);if(n.\u0275type===0)return n;typeof n.throwOnSyntheticProps=="boolean"&&(n.throwOnSyntheticProps=!1);let a=new W(n);return o?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(i=>{let s=i.createRenderer(e,o);a.use(s),this.scheduler?.notify(11)}).catch(i=>{a.use(n)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static \u0275fac=function(o){ie()};static \u0275prov=E({token:r,factory:r.\u0275fac})}return r})(),W=class{delegate;replay=[];\u0275type=1;constructor(t){this.delegate=t}use(t){if(this.delegate=t,this.replay!==null){for(let e of this.replay)e(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,e){this.delegate.appendChild(t,e)}insertBefore(t,e,o,n){this.delegate.insertBefore(t,e,o,n)}removeChild(t,e,o){this.delegate.removeChild(t,e,o)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,o,n){this.delegate.setAttribute(t,e,o,n)}removeAttribute(t,e,o){this.delegate.removeAttribute(t,e,o)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,o,n){this.delegate.setStyle(t,e,o,n)}removeStyle(t,e,o){this.delegate.removeStyle(t,e,o)}setProperty(t,e,o){this.shouldReplay(e)&&this.replay.push(n=>n.setProperty(t,e,o)),this.delegate.setProperty(t,e,o)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,o){return this.shouldReplay(e)&&this.replay.push(n=>n.listen(t,e,o)),this.delegate.listen(t,e,o)}shouldReplay(t){return this.replay!==null&&t.startsWith(tt)}},ot=new g("");function He(r="animations"){return ne("NgAsyncAnimations"),I([{provide:ae,useFactory:(t,e,o)=>new rt(t,e,o,r),deps:[pe,ve,R]},{provide:oe,useValue:r==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Ve=(r,t)=>{let e=localStorage.getItem("accessToken"),o;e?o={headers:r.headers.set("Authorization",`Bearer ${e}`)}:o={};let n=r.clone(o);return t(n)};function We(r){return{provide:H,useFactory(t){return new H(t)},deps:[r]}}var Be=new g("layout.sidenav.sections");function ze(r=[]){return[{provide:Be,useValue:r},{provide:F,deps:[Te,Be]}]}var $e=(r,t)=>{let e=c(F);return e.setLoader(!0),t(r).pipe(J(()=>e.setLoader(!1)))};var A="Service workers are disabled or not supported by this browser";function nt(r){return _(()=>Y(new Error(r)))}var f=class{serviceWorker;worker;registration;events;constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=nt(A);else{let o=N(t,"controllerchange").pipe(d(()=>t.controller)),n=_(()=>T(t.controller)),a=K(n,o);this.worker=a.pipe(y(m=>!!m)),this.registration=this.worker.pipe(b(()=>t.getRegistration()));let v=N(t,"message").pipe(d(m=>m.data)).pipe(y(m=>m&&m.type)).pipe(G());v.connect(),this.events=v}}postMessage(t,e){return this.worker.pipe(p(1),Q(o=>{o.postMessage(z({action:t},e))})).toPromise().then(()=>{})}postMessageWithOperation(t,e,o){let n=this.waitForOperationCompleted(o),a=this.postMessage(t,e);return Promise.all([a,n]).then(([,i])=>i)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(t){let e;return typeof t=="string"?e=o=>o.type===t:e=o=>t.includes(o.type),this.events.pipe(y(e))}nextEventOfType(t){return this.eventsOfType(t).pipe(p(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(y(e=>e.nonce===t),p(1),d(e=>{if(e.result!==void 0)return e.result;throw new Error(e.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},it=(()=>{class r{sw;messages;notificationClicks;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new $;constructor(e){if(this.sw=e,!e.isEnabled){this.messages=h,this.notificationClicks=h,this.subscription=h;return}this.messages=this.sw.eventsOfType("PUSH").pipe(d(n=>n.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(d(n=>n.data)),this.pushManager=this.sw.registration.pipe(d(n=>n.pushManager));let o=this.pushManager.pipe(b(n=>n.getSubscription()));this.subscription=k(o,this.subscriptionChanges)}requestSubscription(e){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(A));let o={userVisibleOnly:!0},n=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),a=new Uint8Array(new ArrayBuffer(n.length));for(let i=0;ii.subscribe(o)),p(1)).toPromise().then(i=>(this.subscriptionChanges.next(i),i))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(A));let e=o=>{if(o===null)throw new Error("Not subscribed to push notifications.");return o.unsubscribe().then(n=>{if(!n)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(p(1),b(e)).toPromise()}decodeBase64(e){return atob(e)}static \u0275fac=function(o){return new(o||r)(D(f))};static \u0275prov=E({token:r,factory:r.\u0275fac})}return r})(),at=(()=>{class r{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}constructor(e){if(this.sw=e,!e.isEnabled){this.versionUpdates=h,this.unrecoverable=h;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(A));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(A));let e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}static \u0275fac=function(o){return new(o||r)(D(f))};static \u0275prov=E({token:r,factory:r.\u0275fac})}return r})();var qe=new g("");function st(r,t,e,o){return()=>{if(!(U(o)&&"serviceWorker"in navigator&&e.enabled!==!1))return;let n=r.get(R),a=r.get(j);n.runOutsideAngular(()=>{let s=navigator.serviceWorker,l=()=>s.controller?.postMessage({action:"INITIALIZE"});s.addEventListener("controllerchange",l),a.onDestroy(()=>{s.removeEventListener("controllerchange",l)})});let i;if(typeof e.registrationStrategy=="function")i=e.registrationStrategy();else{let[s,...l]=(e.registrationStrategy||"registerWhenStable:30000").split(":");switch(s){case"registerImmediately":i=T(null);break;case"registerWithDelay":i=Ye(+l[0]||0);break;case"registerWhenStable":let v=q(r.get(j).whenStable());i=l[0]?k(v,Ye(+l[0])):v;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${e.registrationStrategy}`)}}n.runOutsideAngular(()=>i.pipe(p(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:e.scope}).catch(s=>console.error("Service worker registration failed with:",s))))}}function Ye(r){return T(null).pipe(Z(r))}function ct(r,t){return new f(U(t)&&r.enabled!==!1?navigator.serviceWorker:void 0)}var M=class{enabled;scope;registrationStrategy};function Ke(r,t={}){return I([it,at,{provide:qe,useValue:r},{provide:M,useValue:t},{provide:f,useFactory:ct,deps:[M,L]},{provide:se,useFactory:st,deps:[ee,qe,M,L],multi:!0}])}var Ze=[];var x=class{router;messageService;constructor(){this.router=c(Ee),this.messageService=c(De),localStorage.getItem("accessToken")&&(onstorage=this.#e)}#e=({key:t,newValue:e})=>{t==="accessToken"&&!e&&this.router.navigateByUrl("/conta/autenticacao")};handleError(t){if(console.error(t),t instanceof me){let{message:e}=t.error;if(this.showMessage(t.status,e),t.status===401){let o={redirectTo:this.router.url};this.router.navigate(["/","conta","autenticacao"],{queryParams:o}),localStorage.removeItem("accessToken")}}}showMessage(t,e){let o=t>=400&&t<500?"error":"warn";this.messageService.open({message:e,type:o})}};var Je=[{label:"Navega\xE7\xE3o",expanded:!0,links:[{label:"Inicio",route:["/conta"],icon:"menu/home-4"},{label:"Eventos",route:["/eventos"],icon:"calendar"},{label:"Fotos",route:["/albuns"],icon:"camera-shutter"},{label:"Conhecimento",route:["/apresentacoes"],icon:"presentation"},{label:"Vagas",route:["/carreiras"],icon:"finance/bullseye"},{label:"Academia",route:["/academia"],icon:"academic-cap"}]},{label:"Administra\xE7\xE3o",expanded:!0,links:[{label:"Eventos",route:["/eventos","administracao"],icon:"calendar-tasks",roles:["leader"]},{label:"Fotos",route:["/albuns","administracao","meus-albuns"],icon:"camera-shutter",roles:["leader","fellow","director","manager","staff","speaker"]},{label:"Apresenta\xE7\xF5es",route:["/apresentacoes","administracao"],icon:"presentation",roles:["speaker"]},{label:"Academia",route:["/academia","administracao","meus-cursos"],icon:"academic-cap",roles:["leader","fellow","director","manager","staff","academic"]},{label:"Vagas",route:["/carreiras","administracao"],icon:"music/speaker",roles:["recruiter"]},{label:"Aprenda",route:["/aprenda","administracao"],icon:"book-opened",roles:["member"]},{label:"Sobre voc\xEA",route:["/conta","configuracoes"],icon:"doc/id-card",roles:["member"]},{label:"Sair",route:["/conta","sair"],icon:"exit"}]},{label:"Gerenciamento",expanded:!0,links:[{label:"Eventos",route:["/eventos","administracao","gerenciar-eventos"],icon:"calendar-tasks",roles:["manager","director","staff"]},{label:"Fotos",route:["/albuns","administracao","gerenciar-albuns"],icon:"camera-shutter",roles:["director","manager","staff"]},{label:"Apresenta\xE7\xF5es",route:["/apresentacoes","administracao","gerenciar-apresentacoes"],icon:"presentation",roles:["manager","director","staff"]},{label:"Vagas",route:["/carreiras","administracao","gerenciar-ofertas"],icon:"music/speaker",roles:["manager","director","staff"]},{label:"Academia",route:["/academia","administracao","gerenciar-cursos"],icon:"academic-cap",roles:["manager","director","staff"]},{label:"Usu\xE1rios",route:["/conta","administracao","usuarios"],icon:"gear",roles:["manager","director"]}]}];function lt(r){let t=r,e=Math.floor(Math.abs(r)),o=r.toString().replace(/^[^.]*\.?/,"").length,n=parseInt(r.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return e===Math.floor(e)&&e>=0&&e<=1?1:n===0&&e!==0&&e%1e6===0&&o===0||!(n>=0&&n<=5)?4:5}var Ge=["pt",[["AM","PM"],void 0,void 0],void 0,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."],["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],void 0,[["a.C.","d.C."],void 0,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],PHP:[void 0,"\u20B1"],PTE:["Esc."],RON:[void 0,"L"],SYP:[void 0,"S\xA3"],THB:["\u0E3F"],TWD:["NT$"],USD:["US$","$"]},"ltr",lt];var Qe=(()=>{class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=O({type:r,selectors:[["devmx-not-found"]],decls:10,vars:0,consts:[["src","devmx.svg"],["routerLink","/conta"],["src","devpr.svg","width","100"]],template:function(o,n){o&1&&(w(0,"div"),S(1,"img",0),w(2,"main")(3,"h2"),P(4,"404"),C(),w(5,"h3"),P(6,"P\xE1gina n\xE3o encontrada"),C(),w(7,"a",1),P(8,"Acesse sua conta"),C()(),S(9,"img",2),C())},dependencies:[we],styles:["[_nghost-%COMP%]{height:100vh;display:flex;flex-direction:column}[_nghost-%COMP%] div[_ngcontent-%COMP%]{flex:1;gap:2em;display:flex;flex-direction:column;justify-content:space-around;align-items:center}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:4.04em;text-align:center;font-weight:600}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] a[_ngcontent-%COMP%]{display:flex;justify-content:center;color:#00f}"],changeDetection:0})}return r})();var Xe=[{path:"vagas",loadChildren:()=>import("./chunk-PTGCXAXO.js").then(r=>r.careerFeaturePageRoutes)},{path:"sobre",loadChildren:()=>import("./chunk-FB5UBQJ4.js").then(r=>r.accountFeatureAboutRoutes)},{path:"evento",loadChildren:()=>import("./chunk-AAJZ7MIE.js").then(r=>r.eventFeaturePageRoutes)},{path:"albuns",loadChildren:()=>import("./chunk-3QZQQ6F4.js").then(r=>r.albumFeatureShellRoutes)},{path:"carreiras",loadChildren:()=>import("./chunk-DLV4PZL6.js").then(r=>r.careerFeatureShellRoutes)},{path:"eventos",loadChildren:()=>import("./chunk-UQM5ZHMX.js").then(r=>r.eventFeatureShellRoutes)},{path:"apresentacoes",loadChildren:()=>import("./chunk-2ZKKJKGI.js").then(r=>r.presentationFeatureShellRoutes)},{path:"conta",loadChildren:()=>import("./chunk-CAHCLBUG.js").then(r=>r.accountFeatureShellRoutes)},{path:"academia",loadChildren:()=>import("./chunk-C6ZO3Z7T.js").then(r=>r.academyFeatureShellRoutes)},{path:"aprenda",loadChildren:()=>import("./chunk-MGSOU4BE.js").then(r=>r.learnFeatureShellRoutes)},{path:"",pathMatch:"full",redirectTo:"conta"},{path:"**",component:Qe}];var u={prod:!0,api:{url:"https://api.devparana.mx/api"},photos:{url:"https://api.devparana.mx/photos"},covers:{events:{url:"https://api.devparana.mx/events/covers"}},googleTag:"G-3562LSS0KB"};ue(Ge,"pt-BR",Ze);var et={providers:[ce({eventCoalescing:!0}),Ce(Xe,Ae(),Me(),Se({onSameUrlNavigation:"ignore",urlUpdateStrategy:"deferred"})),He(),{provide:le,useValue:"pt-BR"},{provide:re,useClass:x},ze(Je),ge(fe([Ve,$e])),Oe(he),...je(),We(Le),Re(u),...xe(),...Pe(),...Ne(),..._e(),...Fe(),...ke(),Ke("ngsw-worker.js",{enabled:!de(),registrationStrategy:"registerWhenStable:30000"}),{provide:Ie,useValue:{appearance:"outline"}}]};var B=class extends HTMLScriptElement{connectedCallback(){this.setAttribute("async",""),this.setAttribute("src",`https://www.googletagmanager.com/gtag/js?id=${u.googleTag}`);let t=document.createElement("script");t.innerHTML=`window.dataLayer = window.dataLayer || []; - function gtag(){dataLayer.push(arguments);} - gtag('js', new Date()); - - gtag('config', '${u.googleTag}');`,document.body.appendChild(t)}};customElements.define("google-tag",B,{extends:"script"});u.prod&&document.body.appendChild(document.createElement("script",{is:"google-tag"}));ye(Ue,et).catch(r=>console.error(r)); diff --git a/ngsw.json b/ngsw.json index 2ca09174..398c3658 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1734705056681, + "timestamp": 1734779383983, "index": "/index.html", "assetGroups": [ { @@ -11,97 +11,97 @@ "ignoreVary": true }, "urls": [ - "/chunk-2E7FYHXW.js", + "/chunk-2GNIBV4J.js", "/chunk-2IAXMR6M.js", - "/chunk-2K6IALUF.js", - "/chunk-2ZKKJKGI.js", - "/chunk-3H7JVFAU.js", - "/chunk-3I45H2NO.js", - "/chunk-3QZQQ6F4.js", - "/chunk-3SNV2MVI.js", + "/chunk-2XST3EDK.js", + "/chunk-3F647OO5.js", + "/chunk-3OW34LBR.js", "/chunk-4422JARR.js", - "/chunk-4FWBEGAE.js", - "/chunk-4Y7TZHD4.js", - "/chunk-5DAHKZ7F.js", - "/chunk-5FQQWOZL.js", - "/chunk-5FZSI2PL.js", - "/chunk-66MLPMX6.js", - "/chunk-6STDPPRP.js", + "/chunk-4JU575PW.js", + "/chunk-4Z5R5VSG.js", + "/chunk-56M6HFOE.js", + "/chunk-5BAEVBCP.js", + "/chunk-6BGAZ7SQ.js", + "/chunk-6GR4MAJE.js", + "/chunk-6P3MPDKA.js", + "/chunk-73QBZNVE.js", + "/chunk-7O2H2TAM.js", "/chunk-A3N3AUUJ.js", - "/chunk-AAJZ7MIE.js", - "/chunk-AC7KYN3P.js", - "/chunk-AD4TXQD3.js", "/chunk-AFH22WZE.js", + "/chunk-AND6K73U.js", "/chunk-BJXILAOS.js", + "/chunk-BLJCB4Q7.js", "/chunk-BNCLIKTI.js", - "/chunk-C6ZO3Z7T.js", - "/chunk-CAHCLBUG.js", - "/chunk-CXAKQAL3.js", - "/chunk-DLV4PZL6.js", + "/chunk-BZ5BKAFD.js", + "/chunk-DAURILCW.js", "/chunk-DUF4HXV7.js", "/chunk-EC6LD5KM.js", "/chunk-EDIJ2EBQ.js", - "/chunk-F2GYQZHU.js", - "/chunk-FB5UBQJ4.js", + "/chunk-F2BR4OZZ.js", + "/chunk-F6THDKE2.js", + "/chunk-FROUXDRM.js", + "/chunk-FVH3EPWM.js", + "/chunk-GXQHMTZK.js", "/chunk-HGOTYYGI.js", - "/chunk-HPJEYRZM.js", - "/chunk-HTP655AM.js", - "/chunk-HYAMKYUE.js", + "/chunk-HRSGZXOU.js", "/chunk-I7VYXJU2.js", "/chunk-IIJ56NAR.js", - "/chunk-IUDTHKAB.js", - "/chunk-IZTWYWJL.js", "/chunk-J6QMVZUK.js", - "/chunk-JCCZXGKN.js", + "/chunk-JALA4ZS3.js", + "/chunk-JMI5D6U5.js", + "/chunk-JNB3NYAZ.js", "/chunk-JQW63IXS.js", - "/chunk-JWVJB74K.js", - "/chunk-JX4IWPKV.js", - "/chunk-KAZRQD4G.js", - "/chunk-KOL7ATC4.js", - "/chunk-KXTQ2UTD.js", - "/chunk-L3M72EYY.js", - "/chunk-LBSELHKL.js", - "/chunk-LFAX4DK3.js", - "/chunk-LVUYG7JQ.js", - "/chunk-MAALDF7A.js", - "/chunk-MGSOU4BE.js", + "/chunk-K4DUSKBE.js", + "/chunk-KDMTRYHW.js", + "/chunk-L2JQY5SP.js", + "/chunk-M5BYPXOP.js", + "/chunk-MEIYYXQK.js", "/chunk-MLNPCJDD.js", - "/chunk-MWZTEPOQ.js", - "/chunk-NWAJWWA3.js", + "/chunk-MYMD7E64.js", + "/chunk-MZVM2UVI.js", + "/chunk-NAMLT62R.js", + "/chunk-O3T3UZHL.js", + "/chunk-P6FJ2MEG.js", "/chunk-PAP2P7QR.js", - "/chunk-PF4AEVA5.js", - "/chunk-PTGCXAXO.js", - "/chunk-PVFLBKFE.js", + "/chunk-Q2N7RZTH.js", + "/chunk-Q33OVU5J.js", "/chunk-QQ3DFMVY.js", "/chunk-R2BYSYX5.js", - "/chunk-R66KDUEB.js", - "/chunk-RN3MKDGP.js", - "/chunk-RRBYVHNZ.js", - "/chunk-RUSPURVH.js", + "/chunk-RGIFAF2T.js", + "/chunk-SG4GQJJH.js", + "/chunk-SVV7FRLS.js", + "/chunk-SZNPDBBQ.js", "/chunk-TEKHUYWQ.js", - "/chunk-TH4T4IGP.js", - "/chunk-TZR6QHL3.js", + "/chunk-TPJZ2OYR.js", + "/chunk-TQRFHWEI.js", + "/chunk-UH3UXNJ6.js", "/chunk-UOTKRQ63.js", - "/chunk-UQM5ZHMX.js", - "/chunk-VE4FGS76.js", - "/chunk-VWDLBNLC.js", - "/chunk-VYHC3V3G.js", + "/chunk-V6KASOE3.js", + "/chunk-VAO4SSMZ.js", + "/chunk-VHE4TYFV.js", + "/chunk-VVQ6JEVH.js", "/chunk-W5KNOAKV.js", - "/chunk-WBTUXFAS.js", + "/chunk-WD4JQH2Z.js", "/chunk-WK53HQNR.js", - "/chunk-WRHYPK6F.js", - "/chunk-WVZCQXYK.js", - "/chunk-XC6WES62.js", + "/chunk-WKFJTKSD.js", + "/chunk-WOE5TNBB.js", + "/chunk-WPU27ID5.js", "/chunk-XIUDFJWJ.js", "/chunk-XUKBPA5N.js", - "/chunk-YAOAPCED.js", - "/chunk-YJNMZPRM.js", + "/chunk-XWYI7Y6E.js", + "/chunk-XYJHVZQT.js", + "/chunk-YDU3JYTF.js", + "/chunk-YFMYPYPE.js", + "/chunk-YGTSZDQ5.js", "/chunk-Z3ZVRDLS.js", "/chunk-ZHS65JNW.js", "/chunk-ZQOXWN4S.js", + "/chunk-ZTJS4K5V.js", + "/chunk-ZTWYID37.js", + "/chunk-ZUTFRYJ3.js", "/index.html", "/logo.svg", - "/main-VFVBEY5F.js", + "/main-I2XGNJXV.js", "/manifest.webmanifest", "/polyfills-YTAVFQFU.js", "/styles-CQKXDTW2.css" @@ -1084,94 +1084,94 @@ "/banners/undraw_programmer_re_owql.svg": "2f3f6a1413c76f74db01b2336d24b3fe94c4a01a", "/banners/undraw_short_bio_re_fmx0.svg": "7aea0d6ddaa111cc3263058bb0398055d2a6a1f5", "/banners/undraw_spreadsheet_re_cn18.svg": "d50ed18ed77945fca923efd3163a0dedaf182bfd", - "/chunk-2E7FYHXW.js": "847357bcc07579804c86a33d9ec6211b473c4ff8", + "/chunk-2GNIBV4J.js": "9fec64323c90156dfc997fbe75cf090a5d121ff3", "/chunk-2IAXMR6M.js": "a5f0ad9ddcfb088421e470a891154f75b52267d0", - "/chunk-2K6IALUF.js": "8498a125ede1da5f0e5a349ce59d67b001ff1414", - "/chunk-2ZKKJKGI.js": "2dea39f19e64a6340192e61041dce4f6d1fbae57", - "/chunk-3H7JVFAU.js": "286457cfe1532ffd9fe610d87c32e06426de98cc", - "/chunk-3I45H2NO.js": "23680e23a264aff86eb8f1477a50efc8a23b4054", - "/chunk-3QZQQ6F4.js": "b0b33b9ad2953a719caef2bd4631ed7eb7beb37e", - "/chunk-3SNV2MVI.js": "0df08dbc9533e383a530d7dc429aca7d3d40152f", + "/chunk-2XST3EDK.js": "e84eed8e7baa237aeed0d0f2a0af859c335dd51b", + "/chunk-3F647OO5.js": "d2dad350280661a0d26e806e178f637bf6183f27", + "/chunk-3OW34LBR.js": "c56853c181e9199ed2afa544b6f755f470a48fe7", "/chunk-4422JARR.js": "7086d3a9346461410defbe4b787839c2c5243048", - "/chunk-4FWBEGAE.js": "f38b5c60fcba70d46dc2a3784e1a4423f98a3333", - "/chunk-4Y7TZHD4.js": "8139d3ac7fba014841c8b1970cfa1cee44608ed3", - "/chunk-5DAHKZ7F.js": "35430489c79057b2b95654a1ec73cc8e12a41181", - "/chunk-5FQQWOZL.js": "f1e535290f01fb74760ce6e150f43819fe1726f6", - "/chunk-5FZSI2PL.js": "e90d12381441e972d384e6824f6f8ea3e4f3a971", - "/chunk-66MLPMX6.js": "2db79c15bd00d9ed0a04e623aec8f203ff7c8fc0", - "/chunk-6STDPPRP.js": "fab47b1646e3008dd111ebefce9a2def074b67e1", + "/chunk-4JU575PW.js": "4f7520c6ce897c01e097d218894a6b49c952c776", + "/chunk-4Z5R5VSG.js": "9e11da472fc34b99e2e596234bbaaa3fff25ddff", + "/chunk-56M6HFOE.js": "022665ab9e3babdb667d0004dc800843d42e6684", + "/chunk-5BAEVBCP.js": "07fa8770d27175733b31fb50c60a7deadca2c8ae", + "/chunk-6BGAZ7SQ.js": "c6e93c2b8da6a96ad3b4be199d9b276d7a49d8d8", + "/chunk-6GR4MAJE.js": "b41ec6fccdf6f29f4779062f2487dbcd85fb9eb2", + "/chunk-6P3MPDKA.js": "13b24bfae34aac153d45355036698622bb1357e5", + "/chunk-73QBZNVE.js": "20b0e916c94421a826410e23c660e910a7156af3", + "/chunk-7O2H2TAM.js": "f5c0fbf7cdbc2e33ac0e21909b8797eb6dfec7ca", "/chunk-A3N3AUUJ.js": "dc7037208ca3b777d5967a14909d0ba194b064b6", - "/chunk-AAJZ7MIE.js": "18a8fa74b726817c6f71562e12ad234cd4a5a26a", - "/chunk-AC7KYN3P.js": "c4ae4358b650b6a40474da1809e528b12cb7a786", - "/chunk-AD4TXQD3.js": "319dd672ce9c27004cf036a3c5d8df1ab5fafe9d", "/chunk-AFH22WZE.js": "b6d8a77dc258344549e048960815b0134b1897e5", + "/chunk-AND6K73U.js": "ac84b9c5e3b501f5c8c829de8f2ae96014efa8e8", "/chunk-BJXILAOS.js": "3002a26e51a94c52e1abf27f2f10e6eaf9502fce", + "/chunk-BLJCB4Q7.js": "5f22c7f74cd349420616fb7f73ad34da791c8984", "/chunk-BNCLIKTI.js": "ed7aba029580be447387245dfe4ccdf76dfee75f", - "/chunk-C6ZO3Z7T.js": "9c995e2530b703335db17234577a598c68a13077", - "/chunk-CAHCLBUG.js": "2b13d9742e9c6277ababf75e44e90bf855724cb8", - "/chunk-CXAKQAL3.js": "85e1bb418daee8ecebca07c4277f76381f337654", - "/chunk-DLV4PZL6.js": "345156660bd7aa5f4fb60e632ca7b9b6c30587fa", + "/chunk-BZ5BKAFD.js": "497dc0f2d44e77de45d0c5f9e1ddbc50ccda9665", + "/chunk-DAURILCW.js": "868575c0dd619fd9fff554f9b5d947a8722de8e5", "/chunk-DUF4HXV7.js": "233bb7c2e4e8b41af77cfeac58ea5cea01039c26", "/chunk-EC6LD5KM.js": "f0ceeb45af5c43f50b14bf1ab88c561ef12505dc", "/chunk-EDIJ2EBQ.js": "9ed1c47fefdc5c0807791e1f4e59da638e7c219a", - "/chunk-F2GYQZHU.js": "ecb57e50ff93b87df2edff35fe23786dbb807145", - "/chunk-FB5UBQJ4.js": "2e11e12c73c89bf8ef84bb1a4536acc9e3121774", + "/chunk-F2BR4OZZ.js": "564954b87dc0fca6807d7864d562354c15db3528", + "/chunk-F6THDKE2.js": "817348079a7456c6904f315a01208893cc872945", + "/chunk-FROUXDRM.js": "c6ee7efa8dc5ecf17df6214cd40142142392bb42", + "/chunk-FVH3EPWM.js": "97813b155a1070dbbac33fa602e15a5921dc1a02", + "/chunk-GXQHMTZK.js": "6fe4633655065bbcca2704190270990b229b263f", "/chunk-HGOTYYGI.js": "c14c69bc53e5fe10a84744b11bffb55a13fa6adb", - "/chunk-HPJEYRZM.js": "6096a495884748f031590ed4e7d85b08819bb82e", - "/chunk-HTP655AM.js": "a5419bef10e66416fe81df19b4e372d6653712e4", - "/chunk-HYAMKYUE.js": "bdc17ea598b00341cfc51886fe956b4c8ce1888e", + "/chunk-HRSGZXOU.js": "b3d1339cb59d9062c9a59bae3cd2c3df170e54cc", "/chunk-I7VYXJU2.js": "3e369591746c5ccefe654c29a87c54c5e6f87894", "/chunk-IIJ56NAR.js": "889ecfee30d63085563d821c12076654ab0dd83c", - "/chunk-IUDTHKAB.js": "682ad02f34e7edd1c9cd897153882f2c3c774db7", - "/chunk-IZTWYWJL.js": "686a2bae43a6e9bb0ddcbe879afacf33706a1bf8", "/chunk-J6QMVZUK.js": "48e779b33c3b31bf6fa5ad73204f1991e62aaa7b", - "/chunk-JCCZXGKN.js": "d8c93046ce8ddba283801a3ba0d0a401aa644d6d", + "/chunk-JALA4ZS3.js": "ab41ea85369560a40ae0fe9406063865cf75e8f4", + "/chunk-JMI5D6U5.js": "255c7955adad3de3fe68d7a016bd465139c76aa4", + "/chunk-JNB3NYAZ.js": "fbc7e580e3c699b6e91abde34626939915618cbf", "/chunk-JQW63IXS.js": "f8c06958ea22cc7ece931389ec337a81af732bc6", - "/chunk-JWVJB74K.js": "09440d345150bc8f7a3dd497ad452e047ecb2f7f", - "/chunk-JX4IWPKV.js": "7cb1f5c9418f55baa0c21053e278bf227576650d", - "/chunk-KAZRQD4G.js": "e0d928da369b0438952ad0d1d470c5eab3b33557", - "/chunk-KOL7ATC4.js": "a368b5ea6938b7f20a9a2e922da5773633ea2ff7", - "/chunk-KXTQ2UTD.js": "70f649eab0e50b86d88752c65c89131036aa94b9", - "/chunk-L3M72EYY.js": "2762e94a219d3bf146154ae0bb637ca67b9b0c5d", - "/chunk-LBSELHKL.js": "11aaa9c7932a21a0de0847c2a5c1773fda657766", - "/chunk-LFAX4DK3.js": "195bce2120e3e2968194aa171c6cc3a97d1f6d36", - "/chunk-LVUYG7JQ.js": "5d31d27f7b6dda7f6391342de6369ddb02bf752e", - "/chunk-MAALDF7A.js": "015bc118c5bb9a5c7132ab5a7048149ca3393348", - "/chunk-MGSOU4BE.js": "fe5602e3842884806c92353fd4f8271837635b32", + "/chunk-K4DUSKBE.js": "537b193161f0ba5ddfc03e411dc9999e8ea21ebd", + "/chunk-KDMTRYHW.js": "75f55cbd2b6a8d96853630025de16c56a3925beb", + "/chunk-L2JQY5SP.js": "e63463922a9f5770e83c7cb68000b6eef2bdf116", + "/chunk-M5BYPXOP.js": "9f385c8c6db9eb8b0fda7310c86070d5cc486fc2", + "/chunk-MEIYYXQK.js": "691bf056468c05ffccf904cbaf1462556e31ffd7", "/chunk-MLNPCJDD.js": "c876e007e494440439c9311cb65049cd0ecab212", - "/chunk-MWZTEPOQ.js": "1a719979d74138bb42daf159e0f92cf00ddfc14f", - "/chunk-NWAJWWA3.js": "b96bde3f88c11ab80014672ce11f962a6fb28779", + "/chunk-MYMD7E64.js": "99e85091158abf4b0cb1af01c71af1d929ca71f0", + "/chunk-MZVM2UVI.js": "7d2cf6e9880ebde543db83f6337b643a30a7db04", + "/chunk-NAMLT62R.js": "4bbbf5353182cfbd06f852d3877833387da66943", + "/chunk-O3T3UZHL.js": "79ae8a49463e0700f7b7f06766d58c9b232c418a", + "/chunk-P6FJ2MEG.js": "a1053c90863aa9e9adc1149b17af1f10dd4c8879", "/chunk-PAP2P7QR.js": "fcec8eb565b77b8f5f25bfcbce86511f1f670a1d", - "/chunk-PF4AEVA5.js": "f7ad124ff93c3409123ab6f8bdf5f5070c8a4c64", - "/chunk-PTGCXAXO.js": "01d8d4730374a89213ad709a53d9d8affa442fff", - "/chunk-PVFLBKFE.js": "d503edeff82323d95f55d0cc4dfefa3f7d0519a2", + "/chunk-Q2N7RZTH.js": "ebf537ee9e33d9977b8f66d0f0741ac251d6318c", + "/chunk-Q33OVU5J.js": "3988ece12b683f985fc143989b01ed7604ac0623", "/chunk-QQ3DFMVY.js": "1d15368b92bde289a0fc259595b17a5b4b5b676f", "/chunk-R2BYSYX5.js": "fbfc6bcb1c9f37be2f10139e731a84fc376becb8", - "/chunk-R66KDUEB.js": "8a905e7f906e462fef1fe76c40becd18154b1fa2", - "/chunk-RN3MKDGP.js": "762c52d8c693dd23a7fc7e936642e2a8461acf01", - "/chunk-RRBYVHNZ.js": "ff4c6ecc6041e6d61d9e1056e54cfb318c7f2d21", - "/chunk-RUSPURVH.js": "43160bd0a093e38296f7d40c823d400d47529e35", + "/chunk-RGIFAF2T.js": "d8565fb42294837550d8d5ae5687bcfb7c6fac1c", + "/chunk-SG4GQJJH.js": "5587e78c4fa4eed63adc49b8790d127b6af4d961", + "/chunk-SVV7FRLS.js": "882f528f301027506468af21769bac06bf53f10a", + "/chunk-SZNPDBBQ.js": "9ab637f78cf448daa634803014448b9fe8c233bf", "/chunk-TEKHUYWQ.js": "39b3e28be2f156253cfae1b08f166ec78d8bcf35", - "/chunk-TH4T4IGP.js": "04961ccc04593a23509f31ee7355fbb3eebbc45a", - "/chunk-TZR6QHL3.js": "63a0e47c7b3bd49abe6b0512483bef8a3616f4d8", + "/chunk-TPJZ2OYR.js": "20c06ce356c18de47048b9d88e66d53ca47088ca", + "/chunk-TQRFHWEI.js": "ffd4ff695a0faae6affb6269170a4f6a247a814c", + "/chunk-UH3UXNJ6.js": "e55bdb8c303cd34730919a6061c9ec7de8531541", "/chunk-UOTKRQ63.js": "708a090560c444a9e403daf3fa5515cd257a1434", - "/chunk-UQM5ZHMX.js": "c43f6af4dcc8d14757c1a3da3bf4e3fc129a3e1f", - "/chunk-VE4FGS76.js": "bffacfe7c5cc60ef34f189c12d019ddce948f774", - "/chunk-VWDLBNLC.js": "900df2188e30d6b682934feba781a8a39ffea6c2", - "/chunk-VYHC3V3G.js": "52594a5a60e33a688be3259335217b25b3680a3a", + "/chunk-V6KASOE3.js": "cfdc441fbb250d199f63eaa0f7c37eee90bfe496", + "/chunk-VAO4SSMZ.js": "c7192e61016a522d912689d2455e0f36d86859d5", + "/chunk-VHE4TYFV.js": "ca4fe186c87ef94f3b433c7e6ad8edc31fea7289", + "/chunk-VVQ6JEVH.js": "9a3b9b0664ae616fb95d567bbae6de9eb1548eff", "/chunk-W5KNOAKV.js": "814f756d70b30483ca22e453f5c637f1f262e05d", - "/chunk-WBTUXFAS.js": "c58f5fddb916c68184b908629f074783ecd503e8", + "/chunk-WD4JQH2Z.js": "feb871a8db9af0b2c497a0c72ad9880db2ad91ec", "/chunk-WK53HQNR.js": "1bdf422c2eb54247c5d49fce92b19f98844732ed", - "/chunk-WRHYPK6F.js": "c82bd9727cca3a8c0b64ac0caa18b62501a3d451", - "/chunk-WVZCQXYK.js": "a240d9aad74b055940aa7577a656be9e99019928", - "/chunk-XC6WES62.js": "ab1fa4f820b2b5a9170e046d398d349bf942019e", + "/chunk-WKFJTKSD.js": "1c69ebdf0f3b063b12a9be7eaf753512f25123d1", + "/chunk-WOE5TNBB.js": "fde50316638de3fb259c939bbd906c261f50958d", + "/chunk-WPU27ID5.js": "bbd45efcaa64dfc072678d38caf6141f49a1a5de", "/chunk-XIUDFJWJ.js": "fd9c30a40c3d458e96abfcbbfccd64a3f97ce7b6", "/chunk-XUKBPA5N.js": "29310d55a1f1a475f6a9cc42ab0c814d5f394a50", - "/chunk-YAOAPCED.js": "649257021d9cebb0e8d614715092a765a46974e6", - "/chunk-YJNMZPRM.js": "583062ab390bf5f867cd0fb2f1c92e5bedec5ce9", + "/chunk-XWYI7Y6E.js": "d94f6bd091dd4ed0c2b8f1525c05928684c3fdf9", + "/chunk-XYJHVZQT.js": "8dec488ca90328d825d431fa547033d581f08409", + "/chunk-YDU3JYTF.js": "1b0983cd2c3005fb8ad739a91299296ca3aa1c6f", + "/chunk-YFMYPYPE.js": "e0a63387ed4c29edc0b753e97e8c53131f138163", + "/chunk-YGTSZDQ5.js": "d8c6c67513bc18d9d21611647820272674f45903", "/chunk-Z3ZVRDLS.js": "313080ea8db8e923e1f25ad79486d493de32b32e", "/chunk-ZHS65JNW.js": "d5658f4ffec5f0093b379527779021db63ed0fd6", "/chunk-ZQOXWN4S.js": "d79f0ddcf1cccdadb444cb75f3808ee4e4e6972e", + "/chunk-ZTJS4K5V.js": "d1dbafb3eb15a465227cf46f094d37bd4c223eae", + "/chunk-ZTWYID37.js": "321ec7c75e1df558b3f0cd832edbda9deb97fa00", + "/chunk-ZUTFRYJ3.js": "51a1d3af7d6c10936f752deb19c3707ce5cdca31", "/devmx.svg": "2cfa8115983d46ff4e4aadf2d08c4a54dca3d51e", "/devparana.mx.webp": "0d9f58b58d75153e8b2b9912daa3a065891e1db4", "/devpr.svg": "b0341a602edf0cc47bba3bdd03eaf02bb4982b73", @@ -2049,10 +2049,10 @@ "/illustrations/projetos.svg": "0808b82037b44d3563035c7b9497d2d3ce07250e", "/images/resume-folder.png": "36484a5502d2359b07c3c656a694345d16b88f6c", "/images/resume-folder.webp": "ad287528a078eba29452a90a9d973b6f68f77c0c", - "/index.html": "dedc11980e8994448097ed556af7db7d966b0573", + "/index.html": "e100996c7f7c5cc794fa494c192ccb90b4440096", "/loader.svg": "805d529f2dcd845a527c394917dfbf91817efcf5", "/logo.svg": "2e202060974c416a93e07c04259c4aea01ffc8f7", - "/main-VFVBEY5F.js": "e7f4953c7f1ee1eca7449b3452fb03afdcaa653e", + "/main-I2XGNJXV.js": "e3dc8f696a5fcd84686d451042dca1c48eb995ff", "/manifest.webmanifest": "5fb0d39d4d6f1d375edf05eff19dc89664c74ca9", "/photos/default.svg": "28187a03d38b2c569486a162c93a28d60372f9da", "/placeholder.svg": "033b33f152ea32d79c011c1b920e2eb7ce86488f",