1"use strict";(self.webpackChunktreo=self.webpackChunktreo||[]).push([[1268],{41268:(O,R,a)=>{a.r(R),a.d(R,{ResetPasswordModule:()=>X});var g=a(6898),w=a(25484),_=a(67421),k=a(42471),e=a(29400),v=a(48661),M=a(1956),b=a(94554),D=a(93887),m=a(89417),F=a(45286),I=a(58728),x=a(27731),L=a(93068),t=a(17705),f=a(1480),N=a(6978),U=a(60177);function n(o,h){if(1&o&&(t.j41(0,"treo-message",29),t.EFF(1),t.k0s()),2&o){const i=t.XpG();t.Y8G("appearance",i.message.appearance)("showIcon",i.message.showIcon)("type",i.message.type)("@shake",i.message.shake),t.R7$(1),t.SpI(" ",i.message.content," ")}}function r(o,h){1&o&&t.nrm(0,"mat-icon",30),2&o&&t.Y8G("svgIcon","visibility")}function s(o,h){1&o&&t.nrm(0,"mat-icon",30),2&o&&t.Y8G("svgIcon","visibility_off")}function c(o,h){1&o&&t.nrm(0,"mat-icon",30),2&o&&t.Y8G("svgIcon","visibility")}function p(o,h){1&o&&t.nrm(0,"mat-icon",30),2&o&&t.Y8G("svgIcon","visibility_off")}function d(o,h){1&o&&(t.j41(0,"mat-error"),t.EFF(1," Password confirmation is required "),t.k0s())}function C(o,h){1&o&&(t.j41(0,"mat-error"),t.EFF(1," Passwords must match "),t.k0s())}function A(o,h){1&o&&(t.j41(0,"span"),t.EFF(1," Reset your password "),t.k0s())}function T(o,h){1&o&&t.nrm(0,"mat-progress-spinner",31),2&o&&t.Y8G("diameter",24)("mode","indeterminate")}const P=function(){return["/pages/authentication/sign-in"]};let G=(()=>{class o{constructor(i,u,l){this._activatedRoute=i,this._formBuilder=u,this._router=l,this.message=null,this._unsubscribeAll=new F.B7}ngOnInit(){this.resetPasswordForm=this._formBuilder.group({password:["",m.k0.required],passwordConfirm:["",m.k0.required]},{validators:L.M.mustMatch("password","passwordConfirm")}),this._setCardStyle(),this._router.events.pipe((0,I.p)(i=>i instanceof g.wF)).subscribe(()=>{this._setCardStyle()})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}_setCardStyle(){let i=this._activatedRoute;for(;i.firstChild;)i=i.firstChild;this.cardStyle=i.snapshot.url[0].path}resetPassword(){this.resetPasswordForm.invalid||(this.resetPasswordForm.disable(),this.message=null,setTimeout(()=>{this.resetPasswordForm.enable(),this.resetPasswordForm.reset({}),this.message={appearance:"outline",content:"Your password has been reset.",shake:!1,showIcon:!1,type:"success"}},1e3))}static{this.\u0275fac=function(u){return new(u||o)(t.rXU(g.nX),t.rXU(m.ok),t.rXU(g.Ix))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["reset-password"]],decls:57,vars:17,consts:[[1,"content-layout","fullwidth-basic-normal-scroll"],[1,"auth-card",3,"ngClass"],[1,"form-container"],[1,"form"],[1,"logo"],["src","assets/images/logo/logo.svg"],[1,"title"],[1,"subtitle"],[3,"appearance","showIcon","type",4,"ngIf"],[3,"formGroup"],["id","password","matInput","","type","password",3,"formControlName"],["passwordField",""],["mat-icon-button","","type","button","matSuffix","",3,"click"],[3,"svgIcon",4,"ngIf"],["id","password-confirm","matInput","","type","password",3,"formControlName"],["passwordConfirmField",""],[4,"ngIf"],["mat-flat-button","","type","button",1,"submit-button","treo-mat-button-large",3,"color","disabled","click"],[3,"diameter","mode",4,"ngIf"],[1,"form-footer"],[1,"link",3,"routerLink"],[1,"content-container"],["viewBox","0 0 1531 891","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"background"],["d","M0 182c144.327 47.973 534.462 219.712 440.509 369.87C346.555 702.028 79.877 662.846 0 638V182z"],["d","M1405 848c-424.366 158.009-437-164-437-272s102-425 563-576v769c-21.333 29.333-63.333 55.667-126 79z"],["d","M1531 162c-122.914-17.284-377.96 33.191-543.433 206.414C822.095 541.636 797.342 648.75 835.842 731.622c38.5 82.871 198.243 134.841 400.555 92.053C1438.71 780.886 1492.752 775.894 1531 768V162z"],[1,"content"],[1,"description"],["mat-stroked-button","",1,"learn-more-button"],[3,"appearance","showIcon","type"],[3,"svgIcon"],[3,"diameter","mode"]],template:function(u,l){if(1&u){const S=t.RV6();t.j41(0,"div",0)(1,"treo-card",1)(2,"div",2)(3,"div",3)(4,"div",4),t.nrm(5,"img",5),t.k0s(),t.j41(6,"div",6),t.EFF(7,"Reset your password"),t.k0s(),t.j41(8,"div",7),t.EFF(9,"Create a new password for your account"),t.k0s(),t.DNE(10,n,2,5,"treo-message",8),t.j41(11,"form",9)(12,"mat-form-field")(13,"mat-label"),t.EFF(14,"Password"),t.k0s(),t.nrm(15,"input",10,11),t.j41(17,"button",12),t.bIt("click",function(){t.eBV(S);const E=t.sdS(16);return t.Njj(E.type="password"===E.type?"text":"password")}),t.DNE(18,r,1,1,"mat-icon",13),t.DNE(19,s,1,1,"mat-icon",13),t.k0s(),t.j41(20,"mat-error"),t.EFF(21," Password is required "),t.k0s()(),t.j41(22,"mat-form-field")(23,"mat-label"),t.EFF(24,"Password (Confirm)"),t.k0s(),t.nrm(25,"input",14,15),t.j41(27,"button",12),t.bIt("click",function(){t.eBV(S);const E=t.sdS(26);return t.Njj(E.type="password"===E.type?"text":"password")}),t.DNE(28,c,1,1,"mat-icon",13),t.DNE(29,p,1,1,"mat-icon",13),t.k0s(),t.DNE(30,d,2,0,"mat-error",16),t.DNE(31,C,2,0,"mat-error",16),t.k0s(),t.j41(32,"button",17),t.bIt("click",function(){return l.resetPassword()}),t.DNE(33,A,2,0,"span",16),t.DNE(34,T,1,2,"mat-progress-spinner",18),t.k0s(),t.j41(35,"div",19)(36,"span"),t.EFF(37,"Return to"),t.k0s(),t.j41(38,"a",20),t.EFF(39,"sign in"),t.k0s()()()()(),t.j41(40,"div",21),t.qSk(),t.j41(41,"svg",22),t.nrm(42,"path",23)(43,"path",24)(44,"path",25),t.k0s(),t.joV(),t.j41(45,"div",26)(46,"div",6)(47,"span"),t.EFF(48,"Well-crafted,"),t.k0s(),t.j41(49,"span"),t.EFF(50,"Coded with attention,"),t.k0s(),t.j41(51,"span"),t.EFF(52,"Build with passion."),t.k0s()(),t.j41(53,"div",27),t.EFF(54," Treo helps developers to build organized and well-coded admin dashboards full of beautiful and feature rich modules. "),t.k0s(),t.j41(55,"button",28),t.EFF(56," Learn more "),t.k0s()()()()()}if(2&u){const S=t.sdS(16),y=t.sdS(26);t.R7$(1),t.Y8G("ngClass",l.cardStyle),t.R7$(9),t.Y8G("ngIf",l.message),t.R7$(1),t.Y8G("formGroup",l.resetPasswordForm),t.R7$(4),t.Y8G("formControlName","password"),t.R7$(3),t.Y8G("ngIf","password"===S.type),t.R7$(1),t.Y8G("ngIf","text"===S.type),t.R7$(6),t.Y8G("formControlName","passwordConfirm"),t.R7$(3),t.Y8G("ngIf","password"===y.type),t.R7$(1),t.Y8G("ngIf","text"===y.type),t.R7$(1),t.Y8G("ngIf",l.resetPasswordForm.get("passwordConfirm").hasError("required")),t.R7$(1),t.Y8G("ngIf",l.resetPasswordForm.get("passwordConfirm").hasError("mustMatch")),t.R7$(1),t.Y8G("color","primary")("disabled",l.resetPasswordForm.disabled),t.R7$(1),t.Y8G("ngIf",!l.resetPasswordForm.disabled),t.R7$(1),t.Y8G("ngIf",l.resetPasswordForm.disabled),t.R7$(4),t.Y8G("routerLink",t.lJ4(16,P))}},dependencies:[g.Wk,w.$z,_.TL,_.rl,_.nJ,_.yw,k.An,e.fg,v.LG,f.g,N.L,U.YU,U.bT,m.qT,m.me,m.BC,m.cb,m.j4,m.JD],styles:["@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}reset-password .content-layout{align-items:center;justify-content:center}\n"],encapsulation:2,data:{animation:x.C}})}}return o}
1)();const j=[{path:"",pathMatch:"full",redirectTo:"classic"},{path:"fullscreen",component:G,data:{layout:"empty"}},{path:"fullscreen-alt",component:G,data:{layout:"empty"}},{path:"**",component:G}];let X=(()=>{class o{static{this.\u0275fac=function(u){return new(u||o)}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=t.G2t({imports:[g.iI.forChild(j),w.Hl,_.RG,k.m_,e.fS,v.D6,M.z,b.c2,D.G]})}}return o})()},48661:(O,R,a)=>{a.d(R,{D6:()=>N,LG:()=>f});var g=a(78363),w=a(58238),_=a(89200),k=a(60177),e=a(17705),v=a(35230),M=a(74337);function b(n,r){if(1&n&&(e.qSk(),e.nrm(0,"circle",4)),2&n){const s=e.XpG(),c=e.sdS(1);e.xc7("animation-name","mat-progress-spinner-stroke-rotate-"+s._spinnerAnimationLabel)("stroke-dashoffset",s._getStrokeDashOffset(),"px")("stroke-dasharray",s._getStrokeCircumference(),"px")("stroke-width",s._getCircleStrokeWidth(),"%")("transform-origin",s._getCircleTransformOrigin(c)),e.BMQ("r",s._getCircleRadius())}}function D(n,r){if(1&n&&(e.qSk(),e.nrm(0,"circle",4)),2&n){const s=e.XpG(),c=e.sdS(1);e.xc7("stroke-dashoffset",s._getStrokeDashOffset(),"px")("stroke-dasharray",s._getStrokeCircumference(),"px")("stroke-width",s._getCircleStrokeWidth(),"%")("transform-origin",s._getCircleTransformOrigin(c)),e.BMQ("r",s._getCircleRadius())}}const I=(0,v.Zc)(class{constructor(n){this._elementRef=n}},"primary"),x=new e.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function L(){return{diameter:100}}});class f extends I{constructor(r,s,c,p,d,C,A,T){super(r),this._document=c,this._diameter=100,this._value=0,this._resizeSubscription=M.y.EMPTY,this.mode="determinate";const P=f._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),P.has(c.head)||P.set(c.head,new Set([100])),this._noopAnimations="NoopAnimations"===p&&!!d&&!d._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),d&&(d.color&&(this.color=this.defaultColor=d.color),d.diameter&&(this.diameter=d.diameter),d.strokeWidth&&(this.strokeWidth=d.strokeWidth)),s.isBrowser&&s.SAFARI&&A&&C&&T&&(this._resizeSubscription=A.change(150).subscribe(()=>{"indeterminate"===this.mode&&T.run(()=>C.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=(0,g.OE)(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=(0,g.OE)(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,(0,g.OE)(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=(0,w.KT)(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){const s=50*(r.currentScale??1);return`${s}% ${s}%`}_attachStyleNode(){const r=this._styleRoot,s=this._diameter,c=f._diameters;let p=c.get(r);if(!p||!p.has(s)){const d=this._document.createElement("style");d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),d.textContent=this._getAnimationText(),r.appendChild(d),p||(p=new Set,c.set(r,p)),p.add(s)}}_getAnimationText(){const r=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMET
1ER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}f._diameters=new WeakMap,f.\u0275fac=function(r){return new(r||f)(e.rXU(e.aKT),e.rXU(w.OD),e.rXU(k.qQ,8),e.rXU(e.bc$,8),e.rXU(x),e.rXU(e.gRc),e.rXU(_.Xj),e.rXU(e.SKi))},f.\u0275cmp=e.VBU({type:f,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,s){2&r&&(e.BMQ("aria-valuemin","determinate"===s.mode?0:null)("aria-valuemax","determinate"===s.mode?100:null)("aria-valuenow","determinate"===s.mode?s.value:null)("mode",s.mode),e.xc7("width",s.diameter,"px")("height",s.diameter,"px"),e.AVh("_mat-animation-noopable",s._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.Vt3],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,s){1&r&&(e.qSk(),e.j41(0,"svg",0,1),e.DNE(2,b,1,11,"circle",2),e.DNE(3,D,1,9,"circle",3),e.k0s()),2&r&&(e.xc7("width",s.diameter,"px")("height",s.diameter,"px"),e.Y8G("ngSwitch","indeterminate"===s.mode),e.BMQ("viewBox",s._getViewBox()),e.R7$(2),e.Y8G("ngSwitchCase",!0),e.R7$(1),e.Y8G("ngSwitchCase",!1))},dependencies:[k.ux,k.e1],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let N=(()=>{class n{}return n.\u0275fac=function(s){return new(s||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[v.yE,k.MD,v.yE]}),n})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.