1import"./chunk-7XP4SBGR.js";import{c as x}from"./chunk-VUCZ2ZBW.js";import"./chunk-ZRMDLJZA.js";import{ca as Se}from"./chunk-EHPS5R6A.js";import"./chunk-ZY3NEGAG.js";import{N as oe,P as f,R as ae,S as ie,T as ne,U as T,W as se,Z as le,_ as ce,ha as de}from"./chunk-T2SSGUQK.js";import{b as _e}from"./chunk-FLM4WZOT.js";import"./chunk-76JUPG74.js";import{C as ue,v as te,w as re}from"./chunk-WG44TSM7.js";import"./chunk-OSQ7U4KD.js";import{j as J,k as Q,l as ee,m as v}from"./chunk-LQXHNOD4.js";import{t as Z}from"./chunk-B7DH3IKX.js";import{$ as F,Ba as U,Fb as q,Ia as V,Ib as h,Jb as C,Lb as X,Mb as B,Nb as j,Ob as p,Pb as i,Qb as a,Rb as S,Sb as G,Tb as w,Tc as K,W,ac as M,bc as y,cb as u,cc as l,ea as _,f as H,gc as Y,ic as $,ma as N,na as z,ob as E,va as k,wc as P,xc as O}from"./chunk-ZJCUFDC6.js";import{a as D}from"./chunk-ZTWKRL7G.js";var me=(()=>{class t extends re{getProfile(e){return this.callApi("/user/GetProfile",e);}setPassword(e){return this.callApi("/user/SetPassword",e);}static ɵfac=(()=>{let e;return function(o){return(e||(e=U(t)))(o||t);};})();static ɵprov=F({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function ge(t,d){return e=>{let r=e.get(t),o=e.get(d);if(!r||!o||o.errors&&!o.errors.mismatch)return null;if(r.value!==o.value){let n={mismatch:{actualValue:o.value,expectedValue:r.value}};return o.setErrors(n),n;}return o.errors?.mismatch&&(delete o.errors.mismatch,Object.keys(o.errors).length===0&&o.setErrors(null)),null;};}function Ae(t={}){let{minLength:d=8,requireUppercase:e=!0,requireLowercase:r=!0,requireNumbers:o=!0,requireSpecialChars:n=!0,specialChars:m="!@#$%^&*()_+-=[]{}|;:,.<>?"}=t;return A=>{if(!A.value)return null;let c=A.value,s={};return c.length<d&&(s.minLength={actualLength:c.length,requiredLength:d}),e&&!/[A-Z]/.test(c)&&(s.requireUppercase=!0),r&&!/[a-z]/.test(c)&&(s.requireLowercase=!0),o&&!/\d/.test(c)&&(s.requireNumbers=!0),n&&!new RegExp(`[${Ce(m)}]`).test(c)&&(s.requireSpecialChars={allowedChars:m}),Object.keys(s).length>0?{passwordStrength:s}:null;};}function Ce(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");}var Ee=(()=>{class t{defaultMessages={required:"This field is required",email:"Please enter a valid email address",minlength:e=>"Must be at least "+e.requiredLength+" characters (currently "+e.actualLength+")",maxlength:e=>"Cannot exceed "+e.requiredLength+" characters (currently "+e.actualLength+")",min:e=>"Value must be at least "+e.min+" (currently "+e.actual+")",max:e=>"Value cannot exceed "+e.max+" (currently "+e.actual+")",pattern:"Please enter a valid format",mismatch:"Values do not match",invali
1dDate:"Please enter a valid date",futureDate:"Date cannot be in the future",minAge:e=>"Must be at least "+e.requiredAge+" years old (currently "+e.actualAge+")",minYear:e=>"Year must be "+e.minYear+" or later (currently "+e.actualYear+")",maxYear:e=>"Year cannot exceed "+e.maxYear+" (currently "+e.actualYear+")",invalidUrl:"Please enter a valid URL",httpsRequired:"URL must use HTTPS protocol",invalidProtocol:e=>"Invalid protocol: "+e.protocol+". Only HTTP and HTTPS are allowed",urlNotAccessible:"URL is not accessible",passwordStrength:e=>this.getPasswordStrengthMessage(e),specialCharsNotAllowed:"Only letters, numbers, and spaces are allowed",forbiddenWord:e=>"\""+e.word+"\" is not allowed in usernames",notANumber:"Please enter a valid number",notPositive:"Value must be greater than zero",notInteger:"Value must be a whole number",maxSize:e=>"File \""+e.fileName+"\" is too large. Maximum size is "+this.formatFileSize(e.maxSize)+"",invalidType:e=>"File type \""+e.actualType+"\" is not allowed. Allowed types: "+e.allowedTypes.join(", ")+"",maxFiles:e=>"Too many files. Maximum allowed: "+e.maxCount+" (selected: "+e.actualCount+")",atLeastOneRequired:e=>"At least one of the following fields is required: "+e.fields.join(", ")+"",usernameTaken:"This username is already taken",emailTaken:"This email address is already registered",domainBlacklisted:e=>"Domain \""+e.domain+"\" is not allowed",fileValidationFailed:"File validation failed",fileValidationError:e=>"File validation error: "+e.message+"",invalid:"Please enter a valid value"};customMessages={};setCustomMessages(e){this.customMessages=D(D({},this.customMessages),e);}getErrorMessage(e,r,o){let n=this.customMessages[e]||this.defaultMessages[e];return n?typeof n=="function"?n(r):n:this.defaultMessages.invalid;}getErrorMessages(e,r){return e?Object.keys(e).map(o=>this.getErrorMessage(o,e[o],r)):[];}getFirstErrorMessage(e,r){let o=this.getErrorMessages(e,r);return o.length>0?o[0]:"";}getPasswordStrengthMessage(e){let r=[];return e.minLength&&r.push("at least "+e.minLength.requiredLength+" characters"),e.requireUppercase&&r.push("uppercase letters"),e.requireLowercase&&r.push("lowercase letters"),e.requireNumbers&&r.push("numbers"),e.requireSpecialChars&&r.push("special characters ("+e.requireSpecialChars.allowedChars+")"),"Password must contain "+r.join(", ")+"";}formatFileSize(e){let r=["B","KB","MB","GB"],o=e,n=0;for(;o>=1024&&n<r.length-1;)o/=1024,n++;return`${o.toFixed(1)} ${r[n]}`;}static ɵfac=function(r){return new(r||t)();};static ɵprov=F({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var fe={mailAddress:"Email address",confirmPassword:"Password confirmation",displayName:"Display name",firstName:"First name",lastName:"Last name",phoneNumber:"Phone number",dateOfBirth:"Date of birth",website:"Website",facebookUrl:"Facebook URL",twitterUrl:"Twitter URL",instagramUrl:"Instagram URL",youtubeUrl:"YouTube URL",height:"Height",weight:"Weight",aboutMe:"About me",message:"Message",subject:"Subject",title:"Title",description:"Description",content:"Content",keywords:"Keywords",points:"Points",sortOrder:"Sort order",rank:"Rank",url:"URL",text:"Text",color:"Color",enabled:"Enabled",isPublic:"Public",expiryDate:"Expiry date"};function Re(t,d){if(t&1&&(G(0,"span"),P(1),w()),t&2){let e=$(2);u(),O(e.firstErrorMessage);}}function Fe(t,d){if(t&1&&(G(0,"div"),P(1),w()),t&2){let e=d.$implicit;u(),O(e);}}function Ne(t,d){if(t&1&&B(0,Fe,2,1,"div",null,X),t&2){let e=$(2);j(e.errorMessages);}}function Ge(t,d){if(t&1&&(G(0,"div",0),h(1,Re,2,1,"span")(2,Ne,2,0),w()),t&2){let e=$();q("aria-live",e.ariaLive)("aria-atomic",!0)("id",e.errorId),u(),C(e.showFirstErrorOnly?1:2);}}var pe=(()=>{class t{errorMessageService=_(Ee);destroy$=new H();control;fieldName;showFirstErrorOnly=!0;customClasses;showImmediately=!1;ariaLive="polite";errorId;get shouldShowError(){return!this.control||!this.control.errors?!1:this.showImmediately||this.control.invalid&&(this.control.dirty||this.control.touched);}get errorMessages(){if(!this.control||!this.control.errors)return[];let e=this.fieldName?fe[this.fieldName]||this.fieldName:void 0;return this.errorMessageService.getErrorMessages(this.control.errors,e);}get firstErrorMessage(){let e=this.errorMessages;return e.length>0?e[0]:"";}ngOnInit(){if(!this.control){console.warn("ValidationErrorComponent: control input is required");return;}this.errorId||(this.errorId=`error-${Math.random().toString(36).substr(2,9)}`),this.control.statusChanges.pipe(W(this.destroy$)).subscribe(()=>{});}
1ngOnDestroy(){this.destroy$.next(),this.destroy$.complete();}focus(){}static ɵfac=function(r){return new(r||t)();};static ɵcmp=E({type:t,selectors:[["validation-error"]],inputs:{control:"control",fieldName:"fieldName",showFirstErrorOnly:"showFirstErrorOnly",customClasses:"customClasses",showImmediately:"showImmediately",ariaLive:"ariaLive",errorId:"errorId"},decls:1,vars:1,consts:[["role","alert",1,"mt-1","text-red-600","dark:text-red-400","text-sm"]],template:function(r,o){r&1&&h(0,Ge,3,4,"div",0),r&2&&C(o.shouldShowError?0:-1);},styles:["[_nghost-%COMP%]{display:block}.error-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}.error-item[_ngcontent-%COMP%]{margin-top:.25rem}.error-item[_ngcontent-%COMP%]:first-child{margin-top:0}[_nghost-%COMP%]{animation:_ngcontent-%COMP%_slideIn .2s ease-out}@keyframes _ngcontent-%COMP%_slideIn{0%{opacity:0;transform:translateY(-.5rem)}to{opacity:1;transform:translateY(0)}}"]});}return t;})();function we(t,d){t&1&&(M(0,4,1),N(),i(1,"svg",27),S(2,"circle",28)(3,"path",29),a(),y());}function $e(t,d){t&1&&l(0,4,2);}var b=(()=>{class t{secret="";publicId="";busy=k(!1);userService=_(ue);router=_(ee);route=_(J);changePasswordService=_(me);googleAnalyticsService=_(te);seoService=_(_e);platformId=_(V);localeId=_(K);changePasswordForm=new ne({password:new T("",{validators:[f.required,f.minLength(8),f.maxLength(256),Ae({minLength:6,requireUppercase:!1,requireLowercase:!1,requireNumbers:!1,requireSpecialChars:!1})],nonNullable:!0}),confirmPassword:new T("",{validators:[f.required,f.minLength(8),f.maxLength(256)],nonNullable:!0})},{validators:[ge("password","confirmPassword")]});ngOnInit(){if(this.seoService.setTitle({pageTitle:"Change password"}),Z(this.platformId)){let e=this.route.snapshot.paramMap.get("secret"),r=this.route.snapshot.paramMap.get("publicId");if(e&&r){this.secret=e,this.publicId=r;let o=this.localeId.substring(0,2),n={userPublicId:this.publicId,full:!1,language:o};this.changePasswordService.getProfile(n).subscribe(m=>{m.succeeded||this.router.navigate(["/not-found"]);});}else{let o=this.userService.userSignal();(!o.userId||!o.profile)&&this.router.navigate(["/access-denied"]),this.publicId=o.publicId;}}}changePassword(){if(this.busy()||!this.changePasswordForm.valid)return;let e=this.changePasswordForm.value;this.busy.set(!0);let r={secret:this.secret,password:e.password};this.changePasswordService.setPassword(r).subscribe(o=>{o.succeeded&&(this.googleAnalyticsService.sendEvent({eventName:"Change password",eventCategory:"Portal",eventLabel:this.publicId}),this.router.navigate(["/change-password","password-changed"])),this.busy.set(!1);});}static ɵfac=function(r){return new(r||t)();};static ɵcmp=E({type:t,selectors:[["change-password-form"]],decls:31,vars:8,consts:()=>{let e;e="Enter new password";let r;r="Confirm new password";let o;o="Change Password";let n;n="Set up your new password to continue accessing your account.";let m;m="Password";let A;A="Confirm Password";let c;c=""+"\uFFFD*22:1\uFFFD"+""+"\uFFFD#1:1\uFFFD"+""+"\uFFFD#2:1\uFFFD"+""+"\uFFFD/#2:1\uFFFD"+""+"\uFFFD#3:1\uFFFD"+""+"\uFFFD/#3:1\uFFFD"+""+"\uFFFD/#1:1\uFFFD"+" Changing... "+"\uFFFD/*22:1\uFFFD"+""+"\uFFFD*23:2\uFFFD"+" Change Password "+"\uFFFD/*23:2\uFFFD"+"";let s;s="Sign In";let L;L="Forgot Password";let I;return I="Back to Home",[o,n,m,A,c,s,L,I,[1,"flex","justify-center","items-center","bg-gradient-to-br","from-red-600","dark:from-gray-800","via-orange-600","dark:via-gray-900","to-yellow-600","dark:to-black","px-4","min-h-screen"],[1,"space-y-8","w-full","max-w-md"],[1,"text-center"],[1,"mb-6","font-bold","text-white","text-4xl"],[1,"text-gray-200","text-sm","leading-relaxed"],[1,"bg-white","dark:bg-gray-800","shadow-2xl","p-8","rounded-lg","w-full"],["autocomplete","off",1,"space-y-6",3,"ngSubmit","formGroup"],["for","password",1,"block","mb-2","font-medium","text-gray-700","dark:text-gray-300","text-sm"],["id","password","type","password","formControlName","password","name","password","autocomplete","new-password","placeholder",e,"aria-describedby","password-error",1,"dark:bg-gray-700","px-3","py-2","border","border-gray-300","dark:border-gray-600","focus:border-transparent","rounded-md","focus:outline-none","focus:ring-2","focus:ring-blue-500","w-full","dark:text-white","transition-colors","duration-200"],["fieldName","password","errorId","password-error",3,"control","showFirstErrorOnly"],["for","confirmPassword",1,"block","mb-2","font-medium","text-gray-700","dark:text-gray-300","text-sm"],["id","confirmPassword","type","password","formControlName","confirmPassword","name","confirmPassword","autocomplete","new-password","placeholder",r,"aria-describedby","confirmPassword-error",1,"dark:bg-gray-700","px-3","py-2","border","border-gray-300","dark:border-gray-600","focus:border-transparent","rounded-md","focus:outline-none","focus:ring-2","focus:ring-blue-500","w-full","dark:text-white","transition-colors","duration-200"],["fieldName","confirmPassword","errorId","confirmPassword-error",3,"control"],["errorId","form-errors",3,"control","showImmediately"],["type","submit",1,"bg-gray-800","hover:bg-gray-700","dark:bg-blue-600","dark:hover:bg-blue-700","disabled:bg-gray-400","disabled:cursor-not-allowed","mb-4","px-4","py-3","rounded-md","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2","w-full","font-medium","text-white","transition-colors","duration-200",3,"disabled"],[1,"flex","flex-wrap","justify-center","gap-3","text-sm"],["routerLink","/sign-in",1,"font-medium","text-gray-800","hover:text-gray-700","dark:hover:text-slate-300","dark:text-slate-400"],["routerLink","/forgot-password",1,"font-medium","text-gray-800","hover:text-gray-700","dark:hover:text-slate-300","dark:text-slate-400"],["routerLink","/home",1,"font-medium","text-gray-700","hover:text-gray-800","dark:hover:text-gray-300","dark:text-gray-400"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"mr-3","-ml-1","w-
15","h-5","text-white","animate-spin","inline"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"]];},template:function(r,o){r&1&&(i(0,"div",8)(1,"div",9)(2,"div",10)(3,"h1",11),l(4,0),a(),i(5,"p",12),l(6,1),a()(),i(7,"div",13)(8,"form",14),Y("ngSubmit",function(){return o.changePassword();}),i(9,"div")(10,"label",15),l(11,2),a(),S(12,"input",16)(13,"validation-error",17),a(),i(14,"div")(15,"label",18),l(16,3),a(),S(17,"input",19)(18,"validation-error",20),a(),S(19,"validation-error",21),i(20,"button",22),M(21,4),h(22,we,4,0)(23,$e,1,0),y(),a(),i(24,"div",23)(25,"a",24),l(26,5),a(),i(27,"a",25),l(28,6),a(),i(29,"a",26),l(30,7),a()()()()()()),r&2&&(u(8),p("formGroup",o.changePasswordForm),u(5),p("control",o.changePasswordForm.get("password"))("showFirstErrorOnly",!1),u(5),p("control",o.changePasswordForm.get("confirmPassword")),u(),p("control",o.changePasswordForm)("showImmediately",!0),u(),p("disabled",!o.changePasswordForm.valid||o.busy()),u(2),C(o.busy()?22:23));},dependencies:[de,se,oe,ae,ie,le,ce,v,pe],encapsulation:2});}return t;})();var Pe=(()=>{class t{static ɵfac=function(r){return new(r||t)();};static ɵcmp=E({type:t,selectors:[["change-password-landing"]],decls:29,vars:0,consts:()=>{let e;e="Meet in Chat";let r;r="Social Network";let o;o="Password Changed!";let n;n=" Your password was changed successfully! Welcome back to our community. ";let m;m="Ready to Explore?";let A;A="Your account is secure and ready to go!";let c;return c="Here's where you can go next:",[r,o,n,m,A,c,[1,"flex","justify-center","items-center","bg-gradient-to-br","from-green-500","via-emerald-500","to-teal-500","px-4","min-h-screen"],[1,"text-white","text-center"],["routerLink","/home","alt",e,1,"inline-block","mb-8","hover:scale-105","transition-transform","duration-300"],[1,"flex","justify-center","items-center","bg-white/20","backdrop-blur-sm","mx-auto","mb-4","rounded-full","w-24","h-24"],[1,"logo","logo-contrast"],[1,"mb-2","font-bold","text-2xl"],[1,"text-white/80"],[1,"mb-8"],[1,"flex","justify-center","items-center","bg-white/20","backdrop-blur-sm","mx-auto","mb-6","rounded-full","w-32","h-32"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"drop-shadow-lg","w-16","h-16","text-white"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"mb-4","font-black","text-white/30","text-6xl","select-none"],[1,"mb-4","font-bold","text-4xl","md:text-5xl"],[1,"font-medium","text-white/90","text-lg","md:text-xl"],[1,"bg-white","dark:bg-gray-900","py-16","min-h-screen"],[1,"mx-auto","px-4","max-w-5xl","text-center"],[1,"mb-12"],[1,"mb-4","font-bold","text-gray-900","dark:text-white","text-3xl","md:text-4xl"],[1,"mb-8","text-gray-600","dark:text-gray-300","text-xl","md:text-2xl"],[1,"mb-8","text-gray-500","dark:text-gray-400","text-lg"]];},template:function(r,o){r&1&&(i(0,"div",6)(1,"div",7)(2,"a",8)(3,"div",9),S(4,"div",10),a(),i(5,"h2",11),P(6,"Meet in Chat"),a(),i(7,"span",12),l(8,0),a()(),i(9,"div",13)(10,"div",14),N(),i(11,"svg",15),S(12,"path",16),a()(),z(),i(13,"div",17),P(14,"\u2713"),a(),i(15,"h1",18),l(16,1),a(),i(17,"p",19),l(18,2),a()()()(),i(19,"div",20)(20,"div",21)(21,"div",22)(22,"h2",23),l(23,3),a(),i(24,"h3",24),l(25,4),a(),i(26,"p",25),l(27,5),a(),S(28,"app-site-links"),a()()());},dependencies:[v,Se],encapsulation:2});}return t;})();var he=(()=>{class t{static ɵfac=function(r){return new(r||t)();};static ɵcmp=E({type:t,selectors:[["change-password"]],decls:1,vars:0,template:function(r,o){r&1&&S(0,"router-outlet");},dependencies:[Q],encapsulation:2});}return t;})();var _t=[{path:"",component:he,children:[{path:"",component:b,canActivate:[x]},{path:":publicId/:secret",component:b},{path:"password-changed",component:Pe,canActivate:[x]}]}];export{_t as routes};/**i18n:99f08fedbc352f073866c4543c91659056c69581d88c033e6a821a59c8c1bb06*/
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.