1import{_ as k}from"./63i-wnH-.js";import{d as S,H as T,A as C,k as g,l as P,t as n,s as A,a as o,c as w,w as l,f as R,G as V,m as i,T as B,v as c,p as F,_ as N,o as d,e as m}from"./CHMWgbwv.js";import{_ as L}from"./BpVqGMAQ.js";import{A as p}from"./DA5Y3dos.js";import"./Dw-5hCsc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"28d2c28e0945b6469ec584e101c9514c17a2d4a0"};var r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="01bedd00-88e5-4e9c-a2b2-c79a2f905098",e._sentryDebugIdIdentifier="sentry-dbid-01bedd00-88e5-4e9c-a2b2-c79a2f905098")}catch{}})();const $={class:"container grid gap-4 md:gap-6 place-content-center min-h-[80vh] bg-rings-large bg-no-repeat bg-[center_top_20px]"},z=S({__name:"userSetPassword",setup(e){const r=T(),u=C(),a=c(""),_=c(),t=c(void 0),y=async()=>{a.value&&a.value&&_.value?.checkValidity()&&((await r.setFirstTimePassword(a.value)).status==="error"?t.value={type:p.ERROR,message:u.$t("unknownError")}:t.value={type:p.SUCCESS,message:u.$t("PasswordHasBeenSet")})};return(s,f)=>{const v=k,b=F,x=N,h=L;return d(),g("div",$,[P("h1",{class:A(["text-lg md:text-3xl font-sans font-bold text-center",{"mb-2":!o(t)}])},n(s.$t("CreatePassword")),3),o(t)?(d(),w(v,{key:0,type:o(t).type},{default:l(()=>[m(n(o(t).message),1)]),_:1},8,["type"])):R("",!0),o(t)?.type===("ALERT_TYPE"in s?s.ALERT_TYPE:o(p)).SUCCESS?(d(),w(x,{key:1,to:{name:"frontpage"}},{default:l(()=>[i(b,{class:"w-full",bg:"bg-blue",text:"text-white","text-hover":"hover:text-blue","bg-hover":"hover:bg-gray-100",border:"border-none"},{default:l(()=>[m(n(s.$t("backToFrontpage")),1)]),_:1})]),_:1})):(d(),g("form",{key:2,onSubmit:V(y,["prevent"]),class:"grid gap-4 md:gap-6 max-w-sm",ref_key:"setPasswordForm",ref:_},[i(h,{modelValue:o(a),"onUpdate:modelValue":f[0]||(f[0]=E=>B(a)?a.value=E:null),label:s.$t("Password"),isBig:"",showCriteria:""},null,8,["modelValue","label"]),i(b,{type:"submit",bg:"bg-blue",text:"text-white",class:"w-full"},{default:l(()=>[m(n(s.$t("okLowercaseK")),1)]),_:1})],544))])}}});export{z as default};
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.