PageSourceSearch

https://app.twipla.com/assets/index-D8aTkY1Q.js

js twipla.com collected 2026-10-02 04:07:42 UTC 2,790 bytes, 2 lines download raw bytes

1import{J as E,K as P,r as b,c as s,bI as D,am as O,an as T,P as x,n as w}from"./vendor-CxxxbDOb.js";import{u as R,b9 as q,iD as n,i6 as a,B as M,i$ as k,b as v,f as F,h7 as N,aI as j,j0 as A,iB as C,j1 as V,j2 as _,iX as B,j3 as $,d4 as G}from"./index-CiWVzfug.js";import{S as K}from"./SmallLanguageSelector-G_Rb9h46.js";import{F as U}from"./FormInputWithLabel-ZjTGoius.js";const W={email:""},S={email:"email"},y=({forgotPasswordStatus:r,forgotPasswordErrorMessage:l})=>{var p;const t=R(),e=E(),m=P(),{getPlatformFromStorage:c}=q(),d=g=>{const h=c();e(A({...g,platform:h}))},u=(p=m.location.state)==null?void 0:p.from.pathname,f=n(r===a.FAILED),o=l===N.INTERNAL_SERVER_ERROR,i=b.useMemo(()=>t(o?"errorView.internalServerError":"forgotPassword.form.email.invalidMessage"),[o,t]);return s.jsx(D,{enableReinitialize:!0,initialValues:W,onSubmit:d,validationSchema:z,children:({handleSubmit:g,handleChange:h,values:L,isValid:I})=>s.jsxs("form",{className:"w-full",onSubmit:g,children:[s.jsx(U,{name:S.email,placeholder:t("register.form.email.placeholder"),onChange:h,value:L[S.email],autoFocus:!0}),f(s.jsx("p",{className:"text-sm text-light text-red-negative mt-4",children:i})),s.jsx(M,{className:"w-full rounded-full my-8 py-4",disabled:!I,text:t("button.resetPassword"),type:"submit"}),s.jsx(k,{to:u??"/login",children:s.jsx(v,{className:"text-primary",weight:F.medium,children:t("form.button.backToLogin")})})]})})},z=O().shape({email:T().email(j.invalidEmail).required(j.required)});y.propTypes={forgotPasswordStatus:x.oneOf(Object.values(a)).isRequired,forgotPasswordErrorMessage:x.oneOf(Object.values(N))};const Y=()=>{const r=R(),l=E(),t=P(),e=w(i=>C(i,"forgotPassword")),m=w(i=>V(i,"forgotPassword")),c=n(e===a.IN_PROGRESS),d=n(e!==a.IN_PROGRESS),u=n(_(e)),f=n(e===a.SUCCEEDED),o=t.location.state;return b.useEffect(()=>()=>{[a.FAILED,a.SUCCEEDED].includes(e)&&l(B("forgotPassword"))},[l,e]),s.jsxs("div",{className:"app forgot-password-wrapper flex justify-center",children:[s.jsxs("div",{className:"forgot-password-content w-full h-full flex justify-center flex-column",children:[d(s.jsx("div",{className:"flex flex-start font-semibold sm:text-4xl text-6xl sm:leading-10 leading-72 text-mine-shaft mb-8",children:r("forgotPassword.form.title")})),u(s.jsx(y,{forgotPasswordStatus:e,forgotPasswordErrorMessage:m})),f(s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"font-medium text-15 leading-normal text-mine-shaft",children:r("forgotPassword.success.message")}),s.jsx($,{to:(o==null?void 0:o.from.pathname)??"/login",children:s.jsx(v,{className:"text-primary",weight:F.medium,children:r("form.button.backToLogin")})})]})),c(s.jsx("div",{className:"relative w-full h-full",children:s.jsx(G,{})}))]}),s.jsx(K,{})]})};export{Y as default};
2//# sourceMappingURL=index-D8aTkY1Q.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.