1import"../chunks/CWj6FrbW.js";import{o as Ke,a as Oe}from"../chunks/CfHcjSR2.js";import{p as Qe,f as Y,s as l,c as o,t as h,k as t,g as u,a as x,b as Ue,j as a,i as Ve,u as U,$ as Xe,r as s,l as ue}from"../chunks/Chv1Rf9A.js";import{d as Ye,e as Ze,s as d}from"../chunks/CrUTHeR8.js";import{i as V}from"../chunks/BNC-Xv9g.js";import{h as et}from"../chunks/dHPumSgb.js";import{s as w,r as P}from"../chunks/BqGGmVQO.js";import{s as tt}from"../chunks/DVFsm7re.js";import{b as j}from"../chunks/BVReb8c3.js";import{p as rt}from"../chunks/Bfc47y5P.js";import{s as ot,a as X}from"../chunks/D0O4N5Zc.js";import{g as ce}from"../chunks/CmD3xIql.js";import{a as me}from"../chunks/DBqlqRs_.js";import{l as at,s as st}from"../chunks/Dik6IyV0.js";import{$ as it}from"../chunks/BoMiQoxg.js";import"../chunks/DixRI1Nz.js";var lt=Y('<div class="bg-red-50 border border-red-200 rounded-lg p-4"><p class="text-red-600 text-sm"> </p></div>'),dt=Y('<div class="bg-emerald-50 border border-emerald-200 rounded-lg p-4"><p class="text-emerald-700 text-sm"> </p></div>'),nt=Y('<div class="flex flex-1 items-center justify-center py-12"><div class="max-w-md w-full mx-4"><div><div class="text-center mb-8"><img class="w-16 h-16 mx-auto mb-4 object-contain"/> <h1 class="text-2xl font-bold text-gray-900"> </h1> <p class="text-gray-600 mt-2"> </p></div> <form class="space-y-5"><div class="space-y-2"><div><label for="email" class="block text-sm font-medium text-gray-700 mb-2"> </label> <input id="email" type="email" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors"/></div> <div><label for="code" class="block text-sm font-medium text-gray-700 mb-2"> </label> <div class="flex items-stretch rounded-lg border border-gray-300 bg-white focus-within:ring-2 focus-within:ring-primary-500 focus-within:border-primary-500"><input id="code" type="text" inputmode="numeric" autocomplete="one-time-code" required class="min-w-0 flex-1 px-4 py-3 border-0 rounded-l-lg bg-transparent tracking-widest focus:outline-hidden focus:ring-0"/> <button type="button" class="shrink-0 min-w-[3.25rem] px-3 text-sm font-medium text-primary-600 hover:text-primary-700 disabled:text-gray-400 disabled:cursor-not-allowed border-l border-gray-200 transition-colors"> </button></div></div></div> <div><label for="new-password" class="block text-sm font-medium text-gray-700 mb-2"> </label> <input id="new-password" type="password" required minlength="8" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors"/></div> <div><label for="confirm-password" class="block text-sm font-medium text-gray-700 mb-2"> </label> <input id="confirm-password" type="password" required minlength="8" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors"/></div> <!> <!> <button type="submit" class="w-full bg-primary-600 text-white font-semibold py-3 rounded-lg hover:bg-primary-700 transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed"><!></button></form> <div class="mt-6 text-center"><button class="text-primary-600 hover:text-primary-700 font-medium text-sm"> </button></div></div></div></div>');function St(fe,pe){Qe(pe,!0);const r=()=>X(it,"$t",D),Z=()=>X(st,"$siteName",D),ve=()=>X(at,"$logoSrc",D),[D,ge]=ot(),_e={},be={};let ee=u(!1),f=u(""),y=u(""),p=u(""),$=u(""),g=u(!1),_=u(!1),c=u(""),v=u(""),m=u(0),te=u(!1),k=null;function L(){k&&(clearInterval(k),k=null)}function he(e){L(),a(m,Math.max(0,Math.floor(e)),!0),!(t(m)<=0)&&(k=setInterval(()=>{a(m,t(m)-1),t(m)<=0&&(L(),a(m,0))},1e3))}Ke(()=>{a(ee,!0)}),Oe(()=>{L()});async function xe(){if(!t(f)){a(c,r()("auth.forgot.fill_all_fields"),!0);return}a(_,!0),a(c,""),a(v,"");const e=await me.sendPasswordResetCode(t(f));a(_,!1),e.success?(a(v,e.message||r()("auth.forgot.code_sent"),!0),a(te,!0),he(e.cooldown_seconds??60)):a(c,e.error||r()("auth.forgot.send_failed"),!0)}async function we(){if(!t(f)||!t(y)||!t(p)||!t($)){a(c,r()("auth.forgot.fill_all_fields"),!0);return}if(t(p).length<8){a(c,r()("auth.forgot.password_too_short"),!0);return}if(t(p)!==t($)){a(c,r()("auth.forgot.password_mismatch"),!0);return}a(g,!0),a(c,""),a(v,"");const e=await me.resetPasswordWithCode(t(f),t(y),t(p));a(g,!1),e.success?(a(v,e.message||r()("auth.forgot.reset_success"),!0),setTimeout(()=>ce("/login"),1200)):a(c,e.error||r()("auth.forgot.reset_failed"),!0)}let ye=U(()=>t(g)||t(_)||t(m)>0||!t(f)),$e=U(()=>t(_)?r()("auth.forgot.sending"):t(m)>0?r()("auth.forgot.resend_in",{values:{seconds:t(m)}}):t(te)?r()("auth.forgot.resend_code"):r()("auth.forgot.send_code"));var ke={data:_e,params:be},M=nt();et("1wx4tso",e=>{Ve(i=>{Xe.title=i??""},[()=>r()("auth.forgot.title",{values:{site_name:Z()}})])});var re=o(M),N=o(re),I=o(N),R=o(I),T=l(R,2),Ce=o(T,!0);s(T);var oe=l(T,2),Se=o(oe,!0);s(oe),s(I);var C=l(I,2),qe=U(()=>rt(we)),W=o(C),z=o(W),A=o(z),Pe=o(A,!0);s(A);var B=l(A,2);P(B),s(z);var ae=l(z,2),E=o(ae),je=o(E,!0);s(E);var se=l(E,2),S=o(se);P(S);var q=l(S,2);q.__click=xe;var De=o(q,!0);s(q),s(se),s(ae),s(W);var F=l(W,2),G=o(F),Le=o(G,!0);s(G);var H=l(G,2);
1P(H),s(F);var J=l(F,2),K=o(J),Me=o(K,!0);s(K);var ie=l(K,2);P(ie),s(J);var le=l(J,2);{var Ne=e=>{var i=lt(),n=o(i),b=o(n,!0);s(n),s(i),h(()=>d(b,t(c))),x(e,i)};V(le,e=>{t(c)&&e(Ne)})}var de=l(le,2);{var Ie=e=>{var i=dt(),n=o(i),b=o(n,!0);s(n),s(i),h(()=>d(b,t(v))),x(e,i)};V(de,e=>{t(v)&&e(Ie)})}var O=l(de,2),Re=o(O);{var Te=e=>{var i=ue();h(n=>d(i,n),[()=>r()("auth.forgot.resetting")]),x(e,i)},We=e=>{var i=ue();h(n=>d(i,n),[()=>r()("auth.forgot.reset_password")]),x(e,i)};V(Re,e=>{t(g)?e(Te):e(We,!1)})}s(O),s(C);var ne=l(C,2),Q=o(ne);Q.__click=()=>ce("/login");var ze=o(Q,!0);s(Q),s(ne),s(N),s(re),s(M),h((e,i,n,b,Be,Ee,Fe,Ge,He,Je)=>{tt(N,1,`bg-white rounded-2xl shadow-lg p-8 transform transition-all duration-700 ${t(ee)?"scale-100 opacity-100":"scale-95 opacity-0"}`),w(R,"src",ve()||""),w(R,"alt",`${Z()} Logo`),d(Ce,e),d(Se,i),d(Pe,n),w(B,"placeholder",b),d(je,Be),w(S,"placeholder",Ee),q.disabled=t(ye),d(De,t($e)),d(Le,Fe),w(H,"placeholder",Ge),d(Me,He),O.disabled=t(g)||t(_),d(ze,Je)},[()=>r()("auth.forgot.heading"),()=>r()("auth.forgot.description"),()=>r()("auth.forgot.email_label"),()=>r()("auth.forgot.email_placeholder"),()=>r()("auth.forgot.code_label"),()=>r()("auth.forgot.code_placeholder"),()=>r()("auth.forgot.new_password_label"),()=>r()("auth.forgot.new_password_placeholder"),()=>r()("auth.forgot.confirm_password_label"),()=>r()("auth.forgot.back_to_login")]),Ze("submit",C,function(...e){var i;(i=t(qe))==null||i.apply(this,e)}),j(B,()=>t(f),e=>a(f,e)),j(S,()=>t(y),e=>a(y,e)),j(H,()=>t(p),e=>a(p,e)),j(ie,()=>t($),e=>a($,e)),x(fe,M);var Ae=Ue(ke);return ge(),Ae}Ye(["click"]);export{St as component}; 2//# sourceMappingURL=24.C9JaRTER.js.map
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.