1import{dF as p,cP as m,cw as t,m as i}from"./index-ClAfgm4j.js";import{M as I}from"./index-CfkS3qTl.js";import{s}from"./styles.module-CnNKDriE.js";import{I as O}from"./index-CDhA0M4r.js";import"./Input-Ck4u0nC2.js";const C="/assets/linkedin-otp-Bz2scg-y.webp",M=({open:c,onClose:r,onSubmit:d,loading:o=!1})=>{const{t:e}=p(),[a,l]=m.useState(""),N=()=>{a.length===6&&d(a)},n=()=>{l(""),r()};return t.jsx(I,{open:c,onCancel:n,footer:null,centered:!0,width:540,title:e("ONBOARDING.CONNECT_LINKEDIN.OTP.TITLE"),className:s.otpModal,closable:!0,children:t.jsxs("div",{className:s.otpModalContent,children:[t.jsx("div",{className:s.otpModalImageContainer,children:t.jsx("img",{src:C,alt:"LinkedIn Verification",className:s.otpModalImage})}),t.jsx("p",{className:s.otpModalDescription,children:e("ONBOARDING.CONNECT_LINKEDIN.OTP.DESCRIPTION")}),t.jsx("div",{className:s.otpModalInputWrapper,children:t.jsx(O.OTP,{length:6,value:a,onChange:l})}),t.jsxs("div",{className:s.otpModalActions,children:[t.jsx(i,{type:"default",onClick:n,disabled:o,className:s.otpModalCancelButton,children:e("ONBOARDING.CONNECT_LINKEDIN.OTP.CANCEL")}),t.jsx(i,{type:"primary",onClick:N,loading:o,disabled:a.length!==6,className:s.otpModalSubmitButton,children:e("ONBOARDING.CONNECT_LINKEDIN.OTP.SUBMIT")})]})]})})};export{M as OtpModal};
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.