1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d275a890-e42d-4af2-b8c3-0944ff2fe160`,e._sentryDebugIdIdentifier=`sentry-dbid-d275a890-e42d-4af2-b8c3-0944ff2fe160`)}catch{}})();import{An as e,G as t,N as n,Rn as r,Tr as i,X as a,Xr as o,Y as s,Yn as c,Zt as l,it as u,ln as d,lr as f,q as p,tt as m,yt as h}from"./vue.runtime.esm-bundler-BfzivDDx.js";import{t as g}from"./useMutation-DFXl2dhP.js";import{Zt as _}from"./index-NHXU4e_h.js";import{n as v,t as y}from"./TranslatedText-DDAORytS.js";import{t as b}from"./route-block-CRqhWGOY.js";import{n as x}from"./dist-oPTLnG_s.js";import{t as S}from"./RevealablePasswordInput-DbRwXew9.js";h(),r(),i();var C={class:`text-center`},w={class:`flex flex-col items-center gap-y-6 w-full`},T={key:0,role:`alert`,class:`text-center text-red-700`},E={class:`text-center`},D={class:`text-center text-red-600`},O={class:`ml-1`},k={class:`text-center`},A={class:`flex flex-col items-center gap-y-6 w-full`},j=[`disabled`],M={key:1,class:`secondary p-2 w-full`,disabled:``},N=`auth.reset_password.reset_success`,P=`auth.reset_password.reset_failure`,F=u({__name:`obnova-hesla`,setup(r){let i=x(`token`),u=x(`userId`),h=c(``),b=c(``),F=t(()=>!i.value||!u.value),{mutate:I,isPending:L,isSuccess:R,isError:z,error:B}=g({mutationFn:({token:e,userId:t,newPassword:n})=>_(e,t,n)}),V=()=>{if(!i.value||!u.value){console.error(`Token or userId is missing`);return}I({token:i.value,userId:u.value,newPassword:h.value})};return(t,r)=>{let i=d(`RouterLink`);return l(),a(n,null,[p(`h1`,C,[m(y,{identifier:`auth.reset_password.reset_title`})]),p(`div`,w,[F.value?(l(),a(`p`,T,` Odkaz pro obnovu hesla je neplatný nebo neúplný. `)):s(``,!0),f(R)?(l(),a(n,{key:1},[p(`p`,E,[m(y,{identifier:N})]),m(i,{to:`/`,class:`button-secondary p-2 w-full`},{default:e(()=>[m(y,{identifier:`buttons.go_home`})]),_:1})],64)):(l(),a(n,{key:2},[f(z)?(l(),a(n,{key:0},[p(`div`,D,[m(y,{identifier:`common.error_prefix`}
1),p(`span`,O,o(f(B).message),1)]),p(`p`,k,[m(y,{identifier:P})])],64)):s(``,!0),p(`div`,A,[m(S,{modelValue:h.value,"onUpdate:modelValue":r[0]||=e=>h.value=e},{default:e(()=>[m(y,{identifier:`labels.password`})]),_:1},8,[`modelValue`]),m(S,{modelValue:b.value,"onUpdate:modelValue":r[1]||=e=>b.value=e},{default:e(()=>[m(y,{identifier:`labels.password_confirm`})]),_:1},8,[`modelValue`]),f(L)?(l(),a(`button`,M,o(f(v)(`loading`)),1)):(l(),a(`button`,{key:0,class:`secondary p-2 w-full`,disabled:F.value||f(L)||!(b.value&&b.value===h.value),onClick:V},[m(y,{identifier:`buttons.change_password`})],8,j))])],64))])],64)}}});typeof b==`function`&&b(F);var I=F;export{I 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.