import{Kt as e,Mt as t,Q as n,R as r,Tn as i,X as a,Y as o,Z as s,at as c,it as l,n as u,or as d,r as f,st as p}from"./dist-CoD0k1Bd.js";import{t as m}from"./Label-DKn3cyeE.js";import{t as h}from"./PasswordInput-CusCXasZ.js";import{t as g}from"./button-mN_poAXs.js";import{n as _}from"./wayfinder-Dp7PqxvV.js";import{t as v}from"./InputError-BY5lDrFd.js";import{t as y}from"./PasskeyVerify-C_wzsRyv.js";import{t as b}from"./Spinner-DSMwRdd9.js";import{n as x}from"./confirm-Culw9Q-x.js";var S=e=>({url:S.url(e),method:`get`});S.definition={methods:[`get`,`head`],url:`/passkeys/confirm/options`},S.url=e=>S.definition.url+_(e),S.get=e=>({url:S.url(e),method:`get`}),S.head=e=>({url:S.url(e),method:`head`});var C=e=>({action:S.url(e),method:`get`});C.get=e=>({action:S.url(e),method:`get`}),C.head=e=>({action:S.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),S.form=C;var w=e=>({url:w.url(e),method:`post`});w.definition={methods:[`post`],url:`/passkeys/confirm`},w.url=e=>w.definition.url+_(e),w.post=e=>({url:w.url(e),method:`post`});var T=e=>({action:w.url(e),method:`post`});T.post=e=>({action:w.url(e),method:`post`}),w.form=T;var E={class:`space-y-6`},D={class:`grid gap-2`},O={class:`flex items-center`},k=p({layout:{title:`Konfirmasi Password`,description:`Silakan konfirmasi password anda sebelum melanjutkan ke halaman yang diminta.`},__name:`ConfirmPassword`,setup(p){return(p,_)=>(e(),n(r,null,[c(d(f),{title:`Konfirmasi Password`}),c(y,{routes:{options:d(S)(),submit:d(w)()},label:`Confirm with passkey`,"loading-label":`Confirming...`,separator:`Or confirm with password`},null,8,[`routes`]),c(d(u),t(d(x).form(),{"reset-on-success":``}),{default:i(({errors:t,processing:n})=>[o(`div`,E,[o(`div`,D,[c(d(m),{htmlFor:`password`},{default:i(()=>[..._[0]||=[l(`Password`,-1)]]),_:1}),c(h,{id:`password`,name:`password`,class:`mt-1 block w-full`,required:``,autocomplete:`current-password`,autofocus:``}),c(v,{message:t.password},null,8,[`message`])]),o(`div`,O,[c(d(g),{class:`w-full`,disabled:n,"data-test":`confirm-password-button`},{default:i(()=>[n?(e(),a(d(b),{key:0})):s(``,!0),_[1]||=l(` Konfirmasi Password `,-1)]),_:2},1032,[`disabled`])])])]),_:1},16)],64))}});export{k as default};