PageSourceSearch

https://deepsearchai.co/assets/ActionHandler-8LXf1Sws.js

js deepsearchai.co collected 2026-10-02 01:22:00 UTC 7,515 bytes, 2 lines download raw bytes

1import{j as e}from"./motion-media-DawMv428.js";import{c as v,N as j,L as N,d as b}from"./react-vendor-D7_aQVuf.js";import{u as R}from"./use-auth-input-scroll-lock-BnRRW32s.js";import{F as w,B as E,C as S,k as I,b as g}from"./Table-DJc65YUW.js";import{r as _}from"./redux-CL95a3IE.js";import"./carousels-DxFOfUD6.js";import{I as y}from"./Input-D5DSOsez.js";import{m as l,u as T}from"./index-Cz5ChEQq.js";import{x as C,y as A,z as K,A as L}from"./firebase-core-BKuvjIs7.js";import{c as U,p as B}from"./schemas-CdftE8hN.js";import{u as k,T as c}from"./i18n-BHtsDrR1.js";import{o as M}from"./forms-B9OIJNcw.js";import{u as Y}from"./auth-B4LYw2JW.js";import{a as $}from"./pro-k0wisggv.js";import{u as D}from"./media-query-C5HekP-S.js";import{a as F,b as H}from"./cdn-urls-DubwJRq-.js";import"./use-scroll-lock-on-input-focus-BJcLIgtl.js";import"./scroll-lock-CIZBMeHc.js";import"./content-rendering-BMcRWwGo.js";import"./hubx-analytics-DIbwCOgs.js";import"./growth-payment-BfHadXwg.js";import"./user-x8tAkV4a.js";import"./names-BMg9Zd4j.js";import"./firestore-DPkgl4RA.js";import"./user-preferences-DvQYfRGE.js";function z({handlers:a}){const[r]=v(),n=r.get("mode"),t=r.get("oobCode");if(n===null||t===null)return e.jsx(j,{to:"/",replace:!0});switch(n){case"resetPassword":return a.resetPassword({oobCode:t});case"verifyEmail":return a.verifyEmail({oobCode:t});default:return e.jsx(j,{to:"/",replace:!0})}}function V({oobCode:a}){const[r,n]=_.useState("loading"),t=_.useRef(!1);return _.useEffect(()=>{t.current||(t.current=!0,n("loading"),C(l,a).then(()=>{n("password")}).catch(o=>{console.error(o),n("expired")}))},[a]),{handlePasswordReset:({password:o})=>{A(l,a,o).then(i=>{n("success")}).catch(i=>{console.error(i),n("error")})},resetPasswordState:{loading:r==="loading",process:r}}}const q="_container_nmakj_1",G="_container__card_nmakj_1",O="_container__expired_nmakj_1",Q="_container__title_nmakj_1",J="_container__form_nmakj_1",s={container:q,container__card:G,container__expired:O,"container__form-input":"_container__form-input_nmakj_1","container__title-content":"_container__title-content_nmakj_1",container__title:Q,"container__form-content":"_container__form-content_nmakj_1",container__form:J,"container__form-button-content":"_container__form-button-content_nmakj_1","container__send-button":"_container__send-button_nmakj_1","container__success-content":"_container__success-content_nmakj_1","container__success-icon-wrapper":"_container__success-icon-wrapper_nmakj_1","container__success-icon":"_container__success-icon_nmakj_1","container__success-text":"_container__success-text_nmakj_1","container__success-title":"_container__success-title_nmakj_1","container__success-description":"_container__success-description_nmakj_1","container__back-login-link":"_container__back-login-link_nmakj_1"};function W({oobCode:a}){const{t:r}=k(),{passwordInputRef:n,confirmPasswordInputRef:t}=R(),{handlePasswordReset:d,resetPasswordState:o}=V({oobCode:a}),i=M({password:B(r),confirmPassword:U(r)}).refine(u=>u.password===u.confirmPassword,{message:r("validation.passwordMatch"),path:["confirmPassword"]}),f={loading:e.jsx("p",{children:e.jsx(c,{i18nKey:"loading",children:"Loading..."})}),expired:e.jsxs("div",{className:s.container__expired,children:[e.jsx("h3",{children:e.jsx(c,{i18nKey:"newPassword.expiredTitle",children:"Try resetting your password again"})}),e.jsx("p",{children:e.jsx(c,{i18nKey:"newPassword.expiredDescription",children:"Your request to reset your password has expired or the link has already been used"})})]}),password:e.jsxs("div",{className:s.container__card,children:[e.jsx("div",{className:s["container__title-content"],children:e.jsx("p",{className:s.container__title,children:e.jsx(c,{i18nKey:"newPassword.title",children:"Create New Password"})})}),e.jsx("div",{className:s["container__form-content"],children:e.jsxs(w,{schema:i,mode:"onChange",onSubmit:d,children:[e.jsxs("div",{className:s.container__form,children:[e.jsx(w.Item,{name:"password",children:e.jsx(y,{type:"password",className:s["container__form-input"],placeholder:r("newPassword.password"),label:"",name:"password",inputRef:n})}),e.jsx(w.Item,{name:"confirmPassword",children:e.jsx(y,{type:"password",className:s["container__form-input"],placeholder:r("newPassword.confirmPassword"),label:"",name:"confirmPassword",inputRef:t})})]}
1),e.jsx("div",{className:s["container__form-button-content"],children:e.jsx(E,{className:s["container__send-button"],type:"submit",size:"xl",disabled:o.loading,children:e.jsx(c,{i18nKey:"newPassword.changePassword",children:"Change Password"})})})]})})]}),success:e.jsxs("div",{className:s.container__card,children:[e.jsxs("div",{className:s["container__success-content"],children:[e.jsx("div",{className:s["container__success-icon-wrapper"],children:e.jsx(S,{icon:I,size:"huge",className:s["container__success-icon"],"aria-hidden":!0})}),e.jsxs("div",{className:s["container__success-text"],children:[e.jsx("span",{className:s["container__success-title"],children:e.jsx(c,{i18nKey:"newPassword.successTitle",children:"Your Password Changed!"})}),e.jsx("p",{className:s["container__success-description"],children:e.jsx(c,{i18nKey:"newPassword.successDescription",children:"Your password has been successfully updated. You can now login to your account with your new password."})})]})]}),e.jsx(N,{to:"/login",className:s["container__back-login-link"],children:e.jsx(c,{i18nKey:"backToLogin",children:"Back to Login"})})]}),error:e.jsx("div",{children:e.jsx(c,{i18nKey:"newPassword.error",children:"Something went wrong"})})};return e.jsx("div",{className:s.container,children:f[o.process]})}const P="authRedirectTo";function X({oobCode:a}){const[r,n]=_.useState("loading"),t=b(),{syncUserState:d}=Y(),{data:o}=$(),i=_.useRef(!1),f=T();return _.useEffect(()=>{if(i.current)return;async function u(){i.current=!0;try{await K(l,a),l.currentUser!==null&&(await L(l.currentUser,!0),await l.currentUser.reload(),d(l.currentUser)),n("success");const m=localStorage.getItem(P);if(m!=null&&m!==""){localStorage.removeItem(P),t(m,{replace:!0});return}if(o===!0){t("/chat",{replace:!0});return}const p=localStorage.getItem("path"),h=localStorage.getItem("searchText");p!=null&&h!=null&&p==="landing"&&h!==""?t("/landing/plan",{replace:!0}):p!=null&&h!=null&&p==="landing-meta"&&h!==""?t("/landing-meta/plan",{replace:!0}):t("/chat",{replace:!0})}catch{n("error")}}u()},[a,t,f,d,o]),{status:r}}const Z="_container_18d0b_1",ee={container:Z};function ne({oobCode:a}){const{status:r}=X({oobCode:a}),{t:n}=k(),t={loading:e.jsx("p",{children:n("loading")}),success:e.jsx("p",{children:n("verifyEmail.success")}),error:e.jsxs("div",{children:[e.jsx("h3",{children:n("verifyEmail.error.title")}),e.jsx("p",{children:n("verifyEmail.error.message")})]})};return e.jsx("div",{className:ee.container,children:t[r]})}const se="_container_12vy6_1",re="_container__content_12vy6_1",x={container:se,container__content:re,"container__auth-section":"_container__auth-section_12vy6_1"},te=()=>{const r=D("(max-width: 1024px)")?F:H;return e.jsx(g,{className:x.container,style:{backgroundImage:`url(${r})`},children:e.jsx(g.Content,{className:x.container__content,children:e.jsx("div",{className:x["container__auth-section"],children:e.jsx(z,{handlers:{resetPassword:({oobCode:n})=>e.jsx(W,{oobCode:n}),verifyEmail:({oobCode:n})=>e.jsx(ne,{oobCode:n}),recoverEmail:()=>e.jsx(j,{to:"/",replace:!0})}})})})})},Ie=()=>e.jsx(te,{});export{Ie as ActionHandlerRoute};
2//# sourceMappingURL=ActionHandler-8LXf1Sws.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.