PageSourceSearch

https://textiaa.com/chunk-5O6EQ53P.js

js textiaa.com collected 2026-10-02 00:09:21 UTC 10,849 bytes, 1 lines download raw bytes

1import{c as F,d as ie}from"./chunk-AZS3QIZL.js";import"./chunk-UYRUDIUB.js";import{a as U,b as ne}from"./chunk-OUWEUXNL.js";import{B as X,C as $,c as V,e as f,h as H,k as j,l as K,m as Z,o as O,q as Y,t as J,u as Q}from"./chunk-PXI4RNCT.js";import"./chunk-KXNDLGYE.js";import{f as T,h as N,m as x,n as W}from"./chunk-MJC7NEL7.js";import"./chunk-G7CCAZ6K.js";import{b as q,c as B,e as G,f as z}from"./chunk-P2NB64WX.js";import{i as k,s as D,z as I}from"./chunk-H3JKYH2Z.js";import{Lc as M,Mb as h,Ob as S,Pb as C,Pc as s,Qc as a,Rc as A,Ub as u,Vb as o,Wb as r,Xb as c,_ as R,gc as P,hb as t,ic as b,lb as y,mb as v,ob as w,uc as g,ud as L,vb as E,xc as p,zc as d}from"./chunk-6ZKZEUGL.js";import{e as te}from"./chunk-J6LPXIX4.js";function oe(l,_){if(l&1&&(o(0,"li"),c(1,"span",13),p(2),s(3,"translate"),r()),l&2){let n=b();g("ok",n.classesOk),t(2),d(" ",a(3,3,"REGISTER.PASSWORD.TYPES_3_OF_4")," ")}}function re(l,_){l&1&&(o(0,"p",16),p(1),s(2,"translate"),r()),l&2&&(t(),d(" ",a(2,1,"RESET_PASSWORD.MISMATCH")," "))}function ae(l,_){if(l&1&&(o(0,"p",18),p(1),s(2,"translate"),r()),l&2){let n=b();u("ngClass",n.success?"is-success":"is-danger"),t(),d(" ",a(2,2,n.messageKey)," ")}}var se,ve,le=te(()=>{L();I();ne();$();W();z();L();ie();W();z();I();$();se=(l,_)=>({min:l,max:_});ve=(()=>{class l{auth;route;router;translate;policy={minLength:8,maxLength:128,forbidSpaces:!0,requireLettersAndNumbers:!0,minClasses:3,requireUpper:!1,requireLower:!1,requireDigit:!1,requireSymbol:!1};form=new Z({new_password:new O("",[f.required,f.minLength(this.policy.minLength),f.maxLength(this.policy.maxLength),this.passwordPolicyValidator.bind(this)]),confirmPassword:new O("",[f.required])});showPassword=!1;showConfirm=!1;messageKey=null;success=!1;token=null;seo=R(U);constructor(n,i,e,m){this.auth=n,this.route=i,this.router=e,this.translate=m,this.route.queryParamMap.subscribe(ee=>this.token=ee.get("token")),this.form.get("new_password").valueChanges.subscribe(()=>{this.form.get("confirmPassword").updateValueAndValidity({onlySelf:!0})})}ngOnInit(){this.seo.setRobotsNoindex()}get f(){return this.form.controls}get lenOk(){let n=this.f.new_password.value||"";return n.length>=this.policy.minLength&&n.length<=this.policy.maxLength}get hasUpper(){return/[A-Z]/.test(this.f.new_password.value||"")}get hasLower(){return/[a-z]/.test(this.f.new_password.value||"")}get hasDigit(){return/\d/.test(this.f.new_password.value||"")}get hasSymbol(){return/[^A-Za-z0-9]/.test(this.f.new_password.value||"")}get classesCount(){return(this.hasUpper?1:0)+(this.hasLower?1:0)+(this.hasDigit?1:0)+(this.hasSymbol?1:0)}get classesOk(){return this.classesCount>=this.policy.minClasses}get lettersAndNumbers(){return this.policy.requireLettersAndNumbers?(this.hasUpper||this.hasLower)&&this.hasDigit:!0}get noSpaces(){return!/\s/.test(this.f.new_password.value||"")}get passwordMismatch(){let n=this.form.value.new_password||"",i=this.form.value.confirmPassword||"";return n!==i&&(this.f.confirmPassword.dirty||this.f.confirmPassword.touched)}get disableSubmit(){return this.form.invalid||this.passwordMismatch||!this.token}passwordPolicyValidator(n){let i=n.value||"";return i?i.length<this.policy.minLength||i.length>this.policy.maxLength?{length:!0}:this.policy.forbidSpaces&&/\s/.test(i)?{spaces:!0}:this.policy.requireLettersAndNumbers&&!(/[A-Za-z]/.test(i)&&/\d/.test(i))?{alnum:!0}:this.policy.minClasses>=3&&(/[A-Z]/.test(i)?1:0)+(/[a-z]/.test(i)?1:0)+(/\d/.test(i)?1:0)+(/[^A-Za-z0-9]/.test(i)?1:0)<this.policy.minClasses?{classes:!0}:null:null}currentLang(){return this.route.parent?.snapshot.paramMap.get("lang")||this.translate.currentLang||localStorage.getItem("lang")||"en"}toggleShowPassword(){this.showPassword=!this.showPassword}toggleShowConfirm(){this.showConfirm=!this.showConfirm}submit(){if(this.disableSubmit)return;let n=this.form.value.new_password;this.auth.resetPassword(this.token,n).subscribe({next:()=>{this.router.navigate(["/",this.currentLang(),"login"],{queryParams:{reset:"success"}})},error:i=>{let e=(i?.error?.detail||"").toString().toLowerCase();e.includes("expir")||e.includes("invalide")?this.messageKey="RESET_PASSWORD.LINK_INVALID":this.messageKey="RESET_PASSWORD.ERROR_GENERIC",this.success=!1}})}static \u0275fac=function(i){return new(i||l)(w(F),w(T),w(N),w(q))};static \u0275cmp=E({type:l,selectors:[["app-reset-password"]],decls:50,vars:67,c
1onsts:[["role","main","aria-labelledby","reset-password-title",1,"hero-body","mt-5"],[1,"container"],[1,"columns","is-centered"],[1,"column","is-4-desktop","is-6-tablet","is-full-mobile"],[1,"box","mt-5","custom-box",3,"ngSubmit","formGroup"],["id","reset-password-title",1,"title","is-5","has-text-centered","mb-4"],[1,"field"],[1,"label","custom-label"],[1,"control","has-icons-right"],["id","new_password","formControlName","new_password","required","","autocomplete","new-password","aria-describedby","pw-rules",1,"input","custom-input",3,"type","placeholder"],["role","button","tabindex","0",1,"icon","is-small","is-right","pw-eye",3,"click","keydown.enter","keydown.space"],[1,"pi",3,"ngClass"],["id","pw-rules","aria-live","polite","role","status",1,"pw-live","mt-2"],["aria-hidden","true",1,"ico"],[3,"ok"],["id","confirm_password","formControlName","confirmPassword","required","","autocomplete","new-password",1,"input","custom-input",3,"type","placeholder"],["id","confirm-error","role","alert",1,"help","is-danger","custom-help"],["type","submit",1,"button","is-success","is-fullwidth","custom-button",3,"disabled"],["role","status","aria-live","polite",1,"help","has-text-centered","custom-text",3,"ngClass"]],template:function(i,e){i&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"form",4),P("ngSubmit",function(){return e.submit()}),o(5,"h1",5),p(6),s(7,"translate"),r(),o(8,"div",6)(9,"label",7),p(10),s(11,"translate"),r(),o(12,"div",8),c(13,"input",9),s(14,"translate"),y(),o(15,"span",10),s(16,"translate"),s(17,"translate"),P("click",function(){return e.toggleShowPassword()})("keydown.enter",function(){return e.toggleShowPassword()})("keydown.space",function(){return e.toggleShowPassword()}),c(18,"i",11),r()(),o(19,"ul",12)(20,"li"),c(21,"span",13),p(22),s(23,"translate"),r(),o(24,"li"),c(25,"span",13),p(26),s(27,"translate"),r(),o(28,"li"),c(29,"span",13),p(30),s(31,"translate"),r(),S(32,oe,4,5,"li",14),r()(),o(33,"div",6)(34,"label",7),p(35),s(36,"translate"),r(),o(37,"div",8),c(38,"input",15),s(39,"translate"),y(),o(40,"span",10),s(41,"translate"),s(42,"translate"),P("click",function(){return e.toggleShowConfirm()})("keydown.enter",function(){return e.toggleShowConfirm()})("keydown.space",function(){return e.toggleShowConfirm()}),c(43,"i",11),r()(),S(44,re,3,3,"p",16),r(),o(45,"div",6)(46,"button",17),p(47),s(48,"translate"),r()(),S(49,ae,3,4,"p",18),r()()()()()),i&2&&(t(4),u("formGroup",e.form),t(2),d(" ",a(7,37,"RESET_PASSWORD.TITLE")," "),t(3),h("for","new_password"),t(),d(" ",a(11,39,"RESET_PASSWORD.PASSWORD_LABEL")," "),t(3),u("type",e.showPassword?"text":"password")("placeholder",a(14,41,"RESET_PASSWORD.NEW_PASSWORD_PLACEHOLDER")),h("aria-required","true")("aria-invalid",e.f.new_password.invalid&&(e.f.new_password.dirty||e.f.new_password.touched)?"true":"false"),v(),t(2),h("aria-label",e.showPassword?a(16,43,"LOGIN.PASSWORD.HIDE"):a(17,45,"LOGIN.PASSWORD.SHOW"))("aria-pressed",e.showPassword?"true":"false"),t(3),u("ngClass",e.showPassword?"pi-eye-slash":"pi-eye"),t(),g("pw-dirty",e.f.new_password.dirty||e.f.new_password.touched),t(),g("ok",e.lenOk),t(2),d(" ",A(23,47,"REGISTER.PASSWORD.RULE_MIN_RANGE",M(64,se,e.policy.minLength,e.policy.maxLength))," "),t(2),g("ok",e.lettersAndNumbers),t(2),d(" ",a(27,50,"REGISTER.PASSWORD.RULE_LETTERS_NUMBERS")," "),t(2),g("ok",e.noSpaces),t(2),d(" ",a(31,52,"REGISTER.PASSWORD.NO_SPACES")," "),t(2),C(e.policy.minClasses>=3&&!(e.policy.requireUpper||e.policy.requireLower||e.policy.requireDigit||e.policy.requireSymbol)?32:-1),t(2),h("for","confirm_password"),t(),d(" ",a(36,54,"RESET_PASSWORD.CONFIRM_LABEL")," "),t(3),u("type",e.showConfirm?"text":"password")("placeholder",a(39,56,"RESET_PASSWORD.CONFIRM_PASSWORD_PLACEHOLDER")),h("aria-required","true")("aria-invalid",e.passwordMismatch?"true":"false")("aria-describedby",e.passwordMismatch?"confirm-error":null),v(),t(2),h("aria-label",e.showConfirm?a(41,58,"LOGIN.PASSWORD.HIDE"):a(42,60,"LOGIN.PASSWORD.SHOW"))("aria-pressed",e.showConfirm?"true":"false"),t(3),u("ngClass",e.showConfirm?"pi-eye-slash":"pi-eye"),t(),C(e.passwordMismatch?44:-1),t(2),u("disabled",e.disableSubmit),t(),d(" ",a(48,62,"RESET_PASSWORD.SUBMIT")," "),t(2),C(e.messageKey?49:-1))},dependencies:[D,k,X,Y,V,j,K,H,Q,J,x,G,B],styles:['@charset "UTF-8";.custom-box[_ngcontent-%COMP%]{padding:2rem}.custom-title[_ngcontent-%COMP%]{font-size:1.5rem}.custom-label[_ngcontent-%COMP%], .custom-input[_ngcontent-%COMP%], .custom-button[_ngcontent-%COMP%], .custom-help[_ngcontent-%COMP%], .custom-text[_ngcontent-%COMP%]{font-size:1rem}.pw-eye[_ngcontent-%COMP%]{pointer-events:auto!important;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:999px;z-index:2}.control.has-icons-right[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]{padding-right:2.5rem}.pw-eye[_ngcontent-%COMP%]:hover{background:#0000000d}[data-theme=dark][_nghost-%COMP%]   .pw-eye[_ngcontent-%COMP%]:hover, [data-theme=dark]   [_nghost-%COMP%]   .pw-eye[_ngcontent-%COMP%]:hover{background:#ffffff14}
1.pw-live[_ngcontent-%COMP%]{list-style:none;padding:0;margin:.35rem 0 0;display:grid;gap:.35rem;color:#9aa0a6;font-size:.95rem}.pw-live[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.pw-live[_ngcontent-%COMP%]   .ico[_ngcontent-%COMP%]{width:18px;height:18px;border-radius:50%;display:inline-grid;place-items:center;font-size:12px;line-height:1;font-weight:700;color:#fff;background:#d1d5db}.pw-live[_ngcontent-%COMP%]   .ico[_ngcontent-%COMP%]:before{content:"\\2713";opacity:1}.pw-live.pw-dirty[_ngcontent-%COMP%]   li.ok[_ngcontent-%COMP%]   .ico[_ngcontent-%COMP%]{background:#22c55e}.pw-live.pw-dirty[_ngcontent-%COMP%]   li.ok[_ngcontent-%COMP%]   .ico[_ngcontent-%COMP%]:before{content:"\\2713"}.pw-live.pw-dirty[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(.ok)   .ico[_ngcontent-%COMP%]{background:#ef4444}.pw-live.pw-dirty[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(.ok)   .ico[_ngcontent-%COMP%]:before{content:"!"}@media(max-width:420px){.custom-box[_ngcontent-%COMP%]{padding:1rem}.custom-title[_ngcontent-%COMP%]{font-size:1.25rem}.custom-label[_ngcontent-%COMP%], .custom-input[_ngcontent-%COMP%], .custom-button[_ngcontent-%COMP%]{font-size:.875rem}.custom-help[_ngcontent-%COMP%], .custom-text[_ngcontent-%COMP%]{font-size:.75rem}.mt-5[_ngcontent-%COMP%]{margin-top:1rem!important}}'],changeDetection:1})}return l})()});le();export{ve as ResetPasswordComponent};

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.