1import{u as d,b as I}from"./entry.TffKR4qT.js";const A=()=>{const{route:u}=d(),{t:r,te:c}=I(),P=e=>{const{data:a,parentKey:s}=e,t=a.page;if(t){const E=t.identityPageViewModel?.helloBar;if(E?.label){const o=u?.query?.AuthResultStatusCode,n=u?.query?.AuthResultStatusDescription;E.label=o?i(o,n,s):r(`${s}.errors.SIGNUP_FAILED`)}}},i=(e,a,s)=>{if(e==="FAILED_CREATING_NEW_USER_WITH_USERNAME_PASSWORD")return a.split(` 2`).map(S=>{const o=S.trim(),n={"Passwords must be at least 8 characters":"PASSWORD_MIN_LENGTH_8","Passwords must have at least one digit":"PASSWORD_REQUIRES_DIGIT","Passwords must have at least one uppercase":"PASSWORD_REQUIRES_UPPERCASE","Passwords must have at least one lowercase":"PASSWORD_REQUIRES_LOWERCASE","Invalid token":"RESET_TOKEN_INVALID","Password was unable to be updated":"PASSWORD_UPDATE_FAILED"},l=Object.keys(n).find(_=>o.includes(_));return r(l?`${s}.errors.${n[l]}`:`${s}.errors.SIGNUP_FAILED`)}).join(` 3`);{const t=`${s}.errors.${e||"SIGNUP_FAILED"}`;return c(t)?r(t):a}};return{translateSignUpPage:P}};export{A as useSignUpPasswordTranslations};
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.