PageSourceSearch

https://www.mizane.info/assets/VerificationCode-Do63Uu9B.js

js mizane.info collected 2026-10-02 12:00:58 UTC 3,565 bytes, 1 lines download raw bytes

1import{A as e,j as r,a,c as o,b as s,e as t}from"./index-B1fX6ZHs.js";import{u as n,r as i}from"./react-vendor-BD8L7RdB.js";import{u as l,d as c}from"./redux-vendor-B2RgOdIo.js";import{a as d}from"./authLogo-DAFm6WrI.js";import{I as m}from"./index-B3QTtHTl.js";import{B as u}from"./button-DpAFEEun.js";import"./ui-vendor-DdNBJuGt.js";import"./payment-vendor-B7DGonT3.js";import"./compact-item-DwbazKdu.js";import"./SearchOutlined-uEFSRMim.js";const g="_login_con_q60kw_1",p="_authLogo_q60kw_13",f="_registerImage_q60kw_17",h="_cardContainer_q60kw_26",v="_card_q60kw_26",_="_copyRight_q60kw_49",y="_subtitle_q60kw_88",k="_form_q60kw_146",w="_logInButton_q60kw_182",R="_Inputs_q60kw_257",S=()=>{const S=n();l();const j=i.useContext(e),I=c(e=>e.products.selectedLanguage[0].Language);c(e=>e.products.userInfo);localStorage.getItem("token");const[q,B]=i.useState(["","","","","",""]),C=[i.useRef(null),i.useRef(null),i.useRef(null),i.useRef(null),i.useRef(null),i.useRef(null)],[N,z]=i.useState(!1);return r("div",{className:g,children:[r("div",{className:h,children:[a("img",{src:d,alt:"Auth Logo",className:p}),r("div",{className:v,children:[a("div",{className:y,children:a("h1",{children:"eng"===I?"Verification":"Vérification"})}),r(o,{layout:"vertical",name:"nest-messages",className:k,onFinish:e=>{try{const e=q.join(""),r={email:localStorage.getItem("unverifiedEmail"),otp:e,ecom_type:"mizane"};s.post("https://backapi.mizane.info/api/sofiadis/mizane/user-verify",r).then(e=>{e.data.success?(t.success(e.data.message,{hideProgressBar:!0}),S("/verify-email")):t.error(e.data.error,{hideProgressBar:!0})}).catch(e=>{var r,a;t.error((null==(a=null==(r=e.response)?void 0:r.data)?void 0:a.error)||"An error occurred",{hideProgressBar:!0})})}catch(r){t.error("An unexpected error occurred",{hideProgressBar:!0})}},children:[a("div",{style:{display:"flex",justifyContent:"space-between",width:"100%",margin:"2em 0"},children:q.map((e,r)=>a(m,{value:e,onChange:e=>((e,r)=>{if(/^\d*$/.test(r)&&r.length<=1){const a=[...q];a[e]=r,B(a),1===r.length&&e<C.length-1&&C[e+1].current.focus()}})(r,e.target.value),onKeyDown:e=>((e,r)=>{if("Backspace"===r.key&&e>0&&""===q[e]){const r=[...q];r[e-1]="",B(r),C[e-1].current.focus()}})(r,e),maxLength:1,className:R,ref:C[r]},r))}),a(o.Item,{style:{width:"100%"},children:a(u,{size:"large",htmlType:"submit",className:w,children:"eng"===I?"Continue":"Continuer"})})]}),a("div",{style:{margin:"0 auto",fontFamily:"var(--font-family-secondary)",fontStyle:"normal",fontWeight:"500"},children:r("p",{style:{color:"var(--dark-color)"},children:["eng"===I?"Didn't receive a code?":"Vous n'avez pas reçu de code ?",r("span",{style:{color:"var(--primary-color)",cursor:N?"wait":"pointer "},onClick:async()=>{var e,r;const a=localStorage.getItem("unverifiedEmail");try{z(!0);const o={email:a,ecom_type:"mizane"},n=await s.post("https://backapi.mizane.info/api/sofiadis/mizane/resend-otp",o);t.info(null==(e=n.data)?void 0:e.success,{hideProgressBar:!0}),(null==(r=null==j?void 0:j.companySettings)?void 0:r.email_verification)?S("/verify-email"):S("/login")}catch(o){t.error(o.response.data.error,{hideProgressBar:!0})}finally{z(!1)}},children:[" ",a("u",{children:"eng"===I?"Resend":"Renvoyer"})]})]})})]}),r("p",{className:_,children:[a("span",{style:{fontWeight:"bold",cursor:"pointer",color:"var(--dark-color)"},onClick:()=>S("/terms-of-use"),children:"eng"===I?"Terms of Use":"Conditions d'utilisation"})," ","© 2024"," ","eng"===I?"ALL RIGHTS RESERVED":"TOUS DROITS RÉSERVÉS"]})]}),a("div",{className:f})]})};export{S 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.