1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,5702,e=>{"use strict";e.i(47167);var t=e.i(18050),a=e.i(71645),r=e.i(18566),o=e.i(21568),s=e.i(69438),i=e.i(70319),n=e.i(42073),l=e.i(11152),c=e.i(73665),d=e.i(34913),u=e.i(41521),m=e.i(80500),f=e.i(69546);let p=({userType:e,setUserType:a})=>(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsxs)("div",{className:"mb-2 flex justify-between gap-4",children:[(0,t.jsx)("div",{className:"flex-1 text-center",children:(0,t.jsx)("p",{className:`text-xs font-medium transition-all duration-300 ${e===o.UserTypes.Carrier?"font-semibold text-primary":"text-gray-700 dark:text-gray-300"}`,children:"I operate as a vehicle transport carrier"})}),(0,t.jsx)("div",{className:"flex-1 text-center",children:(0,t.jsx)("p",{className:`text-xs font-medium transition-all duration-300 ${e===o.UserTypes.Customer?"font-semibold text-primary":"text-gray-700 dark:text-gray-300"}`,children:"I have cars that need to be shipped"})})]}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsxs)("div",{className:"bg-gray-300 dark:bg-gray-600 flex h-11 items-center rounded-full p-1 shadow-inner",children:[(0,t.jsx)("div",{className:`absolute bottom-1 top-1 w-1/2 rounded-full bg-primary shadow-md transition-all duration-300 ease-in-out ${e===o.UserTypes.Carrier?"left-1":"left-[calc(50%-2px)]"}`}),(0,t.jsx)("button",{onClick:()=>a(o.UserTypes.Carrier),className:`relative z-10 h-full flex-1 rounded-full text-sm font-semibold transition-all duration-300 ${e===o.UserTypes.Carrier?"text-white":"text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white"}`,children:"Carrier"}),(0,t.jsx)("button",{onClick:()=>a(o.UserTypes.Customer),className:`relative z-10 h-full flex-1 rounded-full text-sm font-semibold transition-all duration-300 ${e===o.UserTypes.Customer?"text-white":"text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white"}`,children:"Customer"})]})})]});var y=e.i(20665);e.s(["default",0,({setShowLandingPage:g,setIsNewUser:h,handleSuccessfulLogin:b,setContext:x,selectedUserType:v,initialGoogleCredential:k,initialGoogleUserInfo:_})=>{let w=(0,r.useSearchParams)(),T=w.get("type");w.get("token"),(0,r.useRouter)();let N=()=>{h(!1)},j="customer"===T||"customer"===v?o.UserTypes.Customer:o.UserTypes.Carrier,C="customer"!==T&&"customer"!==v,[I,P]=(0,a.useState)({name:"",email:"",password:"",confirmPassword:"",phone:"",username:"",orgId:0,userType:j,inviteCode:"",id:0,isGoogleUser:!1,acceptedEula:!1,managedModeId:0,isEmailVerified:!1}),[E,S]=(0,a.useState)(C),[U,O]=(0,a.useState)(""),[A,R]=(0,a.useState)(""),[$,L]=(0,a.useState)(!1),[D,z]=(0,a.useState)(!1),[G,M]=(0,a.useState)(null),[V,B]=(0,a.useState)(!1),[F,q]=(0,a.useState)(!1),[W,X]=(0,a.useState)(null),H=(0,a.useRef)(null),Y=(0,a.useRef)(null),[K,J]=(0,a.useState)("form"),[Q,Z]=(0,a.useState)(null),[ee,et]=(0,a.useState)(""),[ea,er]=(0,a.useState)(""),[eo,es]=(0,a.useState)(!1),[ei,en]=(0,a.useState)({name:"",completeAddress:"",primaryPhone:"",email:"",mcNumber:null}),el=(0,a.useRef)(j),ec=(0,a.useRef)(C),ed=(0,a.useRef)(null);(0,a.useEffect)(()=>{document.title="Cargo | Sign Up"},[]),(0,a.useEffect)(()=>{("customer"===v||"customer"===T)&&(P(e=>({...e,userType:o.UserTypes.Customer})),S(!1))},[v,T]),(0,a.useEffect)(()=>{el.current=I.userType},[I.userType]),(0,a.useEffect)(()=>{ec.current=E},[E]),(0,a.useEffect)(()=>{let e=I.email.trim();return(H.current&&clearTimeout(H.current),Y.current?.abort(),n.VALID_EMAIL.test(e))?(H.current=setTimeout(()=>{let t=new AbortController;Y.current=t,(0,m.SignupCheck)(e,{signal:t.signal}).then(e=>{t.signal.aborted||X(e)})},400),()=>{H.current&&clearTimeout(H.current)}):void X(null)},[I.email]);let eu=e=>{let{name:t,value:a,checked:r,type:o}=e.target,s="new-password-field"===t?"password":t;P({...I,[s]:"email"===s?a.replace(/[^a-zA-Z0-9@._+\-]/g,""):"password"===s||"confirmPassword"===t?a.replace(/\s+/g,""):"checkbox"===o?r:a}),O("")},em=async e=>{es(!0),O("");try{let t=await (0,m.InitiateDotVerification)(Number(A),e);Z(t),J("verify")}catch(e){O(e?.message||"Failed to send verification code. Please try again.")}finally{es(!1)}},ef=async()=>
1{if(6!==ee.length)return void O("Please enter the 6-digit verification code.");z(!0),O("");try{let e=await (0,m.VerifyDotCode)(Number(A),ee);if(e.verified&&e.verificationToken){er(e.verificationToken);let t=e.carrierOkEmail||I.email||"";en({name:G?.name||I.name||"",completeAddress:G?.completeAddress||"",primaryPhone:G?.primaryPhone||"",email:t,mcNumber:G?.mcNumber||null}),t&&P(e=>({...e,email:t})),J("email-choice")}else O("Verification failed. Please try again.")}catch(e){O(e?.message||"Invalid verification code. Please try again.")}finally{z(!1)}},ep=async e=>{e.preventDefault();let t=I.userType===o.UserTypes.Carrier&&!$;t&&!ea?G&&A?em("email"):O(A?"No carrier found for this DOT number. Try a different number or switch to manual entry.":"Please enter your USDOT number to continue."):t&&!ea?O(A?"No carrier found for this DOT number. Try a different number or switch to manual entry.":"Please enter your USDOT number to continue."):eh?await ej():((e=!1)=>{if(!I.name)return O("Name is required"),!1;if(!e&&""===I.email)return O("Email is required"),!1;if(!e&&!n.VALID_EMAIL.test(I.email))return O("Invalid Email format."),!1;if(eh)return!0;let t=[I.password,I.confirmPassword];for(let e=0;e<t.length;e++)if(""===t[e])return O("One or more fields are empty"),!1;return n.VALID_PASSWORD.test(I.password)?I.name.toLowerCase().split(" ").some(e=>e.length>2&&I.password.toLowerCase().includes(e))?(O("Password cannot contain personal information."),!1):I.password===I.confirmPassword||(O("Passwords do not match."),!1):(O("Password must be at least 8 characters and cannot contain spaces."),!1)})(!1)&&ey()},ey=async()=>{if(!I.email)return void q(!0);z(!0);try{let e=I.userType===o.UserTypes.Carrier&&!$,t=await (0,s.RegisterUser)(I,I.inviteCode?[2]:[1],E,e&&A?Number(A):void 0,ea||void 0);t.userId>0?(console.log("User registered successfully"),setTimeout(()=>{i.toast.success("Successfully signed up.")},1),eg(t.user,t.userId)):(console.log("User registration failed"),O("User registration failed, please check that this e-mail is not in use"))}catch(e){console.error("User registration failed"),O(e?.message||"An error occurred. Please try again.")}finally{z(!1)}},eg=async(e,t)=>{var a={id:e.id,name:e.name,email:e.email,userType:e.userType,orgId:e.orgId,phone:e.phone,userRoles:e.userRoles};localStorage.setItem("user",JSON.stringify(a)),localStorage.setItem("token",e.accessToken),(0,y.setAuthCookie)(e.accessToken);var r=await (0,m.GetOrg)(e.orgId),s=new o.UserPreferences(await (0,f.GetUserPreferences)(t));O(""),window.fbq&&window.fbq("track","Lead"),b(s,!0,e),x(e,r,!0,s)},[eh,eb]=(0,a.useState)(null),[ex,ev]=(0,a.useState)(null),[ek,e_]=(0,a.useState)(!1);(0,a.useEffect)(()=>{k&&(eb(k),_&&(ev(_),P(e=>({...e,email:_.email||e.email,name:_.name||e.name,isGoogleUser:!0}))))},[]);let ew=!!k&&!ek,eT=async e=>{O("");let t=eh||k;if(e===o.UserTypes.Carrier){P(e=>({...e,userType:o.UserTypes.Carrier})),S(!0),L(!1),e_(!0);return}if(P(e=>({...e,userType:o.UserTypes.Customer})),S(!1),e_(!0),t){z(!0);try{let e=await (0,s.AuthWithGoogle)({token:t},!1,!1);e.id>0?eg(e,e.id):(O(e.error||"Registration failed. Please try again."),e_(!1))}catch(e){O("An error occurred. Please try again."),e_(!1)}finally{z(!1)}}},eN=async e=>{try{let t=el.current,a=ec.current,r=t===o.UserTypes.Carrier;if(r){let t=await (0,s.AuthWithGoogle)({token:e.credential},r,a,!0);if(t.userExists&&t.user&&!t.user.isProvisional)return void eg(t.user,t.user.id);eb(e.credential),ev({email:t.googleUserInfo?.email||"",name:t.googleUserInfo?.name||""}),P(e=>({...e,email:t.googleUserInfo?.email||e.email,name:t.googleUserInfo?.name||e.name,isGoogleUser:!0})),L(!1),i.toast.info("Enter your USDOT number to verify DOT ownership.");return}let n=await (0,s.AuthWithGoogle)({token:e.credential},r,a);n.id>0?eg(n,n.id):O(n.error)}catch(e){O("An error occurred. Please try again.")}},ej=async()=>{if(eh){z(!0);try{let t=await (0,s.AuthWithGoogle)({token:eh},!0,!0),a=t.user||t;if(a?.id>0){if(a.accessToken&&(localStorage.setItem("token",a.accessToken),(0,y.setAuthCookie)(a.accessToken)),ea&&A)try{let{ClaimDot:t}=await e.A(52378);await t(Number(A),ea,a.orgId,ei.email,ei.name,ei.primaryPhone)}catch(e){console.error("ClaimDot after Google signup failed:",e)}eg(a,a.id),i.toast.success("Successfully signed up.")}else O("Registration failed. Please try again.")}catch(e){O(e?.message||"An error occurred. Please try again.")}finally{z(!1)}}},eC=I.userType===o.UserTypes.Carrier&&!$;if(ew){let e=ex?.name?.trim().split(" ")[0];return(0,t.jsx)("div",{className:"flex min-h-screen flex-col items-center justify-center bg-whiten px-4 py-8 dark:bg-boxdark-2",children:(0,t.jsxs)("div",{className:"w-full max-w-md rounded-2xl border border-stroke bg-white p-8 shadow-default dark:border-strokedark dark:bg-boxdark",children:[(0,t.jsx)("span",{className:"mb-1.5 block font-medium text-primary",children:"Almost there"}),(0,t.jsx)("h2",{className:"mb-2 text-2xl font-bold tracking-tight text-black dark:text-white",children:e?`Welcome, ${e}!`:"Welcome to Cargo!"}),(0,t.jsx)("p",{className:"mb-6 text-gray-500 dark:text-gray-400",children:"How will you use Cargo?"}),U&&(0,t.jsx)("div",{className:"mb-4 rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700 dark:border-red-800 dark:bg-red-900/20 dark:text-red-300",role:"alert",children:U}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("button",{type:"button",disabled:D,onClick:()=>eT(o.UserTypes.Customer),className:"w-full rounded-lg border border-stroke bg-white px-5 py-4 text-left transition-colors hover:border-primary hover:bg-primary/5 disabled:opacity-60 dark:border-strokedark dark:bg-boxdark-2 dark:hover:border-primary",children:[(0,t.jsx)("span",{className:"block font-semibold text-black dark:text-white",children:"I'm a shipper / customer"}),(0,t.jsx)("span",{className:"mt-0.5 block text-sm text-gray-500 dark:text-gray-400",children:"I book loads and ship freight"})]}),(0,t.jsxs)("button",{type:"button",disabled:D,onClick:()=>eT(o.UserTypes.Carrier),className:"w-full rounded-lg border border-stroke bg-white px-5 py-4 text-left transition-colors hover:border-primary hover:bg-primary/5 disabled:opacity-60 dark:border-strokedark dark:bg-boxdark-2 dark:hover:border-primary",children:[(0,t.jsx)("span",{className:"block font-semibold text-black dark:text-white",children:"I'm a carrier"}),(0,t.jsx)("span",{className:"mt-0.5 block text-sm text-gray-500 dark:text-gray-400",children:"I move freight (USDOT verification required)"})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>g(!0),className:"mt-6 text-sm text-gray-500 transition-colors hover:text-primary dark:text-gray-400",children:"â Use a different account"})]})})}return(0,t.jsxs)("div",{className:"flex h-screen min-h-[600px] flex-col bg-whiten px-4 py-4 dark:bg-boxdark-2 sm:px-8",children:["form"!==K&&eC?(0,t.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/60 p-4 backdrop-blur-sm",children:(0,t.jsxs)("div",{className:"animate-fadeIn w-full max-w-md rounded-2xl border border-stroke bg-white p-8 shadow-2xl dark:border-strokedark dark:bg-boxdark",children:["verify"===K&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-6 flex flex-col items-center text-center",children:[(0,t.jsx)("div",{className:"mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-primary/10 text-primary",children:(0,t.jsx)(l.FaShieldAlt,{className:"h-8 w-8"})}),(0,t.jsx)("h3",{className:"text-2xl font-bold text-black dark:text-white",children:"Verify DOT Ownership"}),(0,t.jsxs)("p",{className:"text-gray-600 dark:text-gray-400 mt-2",children:["A 6-digit verification code has been sent",Q?.codeSentVia==="email"?" to ":" via SMS to ",(0,t.jsx)("span",{className:"font-semibold text-primary",children:Q?.codeSentVia==="email"?Q?.maskedEmail:Q?.maskedPhone})]})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{className:"mb-2.5 block text-sm font-medium text-black dark:text-white",children:"Verification Code"}),(0,t.jsx)("input",{type:"text",maxLength:6,value:ee,onChange:e=>{et(e.target.value.replace(/\D/g,"").slice(0,6)),O("")},placeholder:"000000",className:"w-full rounded-lg border border-stroke bg-transparent py-4 text-center text-2xl tracking-[0.5em] text-black outline-none focus:border-primary dark:border-form-strokedark dark:bg-form-input dark:text-white",autoFocus:!0})]}),U&&(0,t.jsx)("div",{className:"mb-4 rounded border border-red/10 bg-red/10 px-4 py-3 text-sm text-red-700",children:U}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:ef,disabled:D||6!==ee.length,className:`w-full rounded-xl bg-primary py-4 text-lg font-bold text-white transition-all hover:bg-primary/90 ${D||6!==ee.length?"cursor-not-allowed opacity-50":""}
1`,children:D?"Verifying...":"Verify"}),Q?.codeSentVia==="email"&&Q?.hasPhone&&(0,t.jsx)("button",{type:"button",onClick:()=>{et(""),O(""),em("sms")},disabled:eo,className:"text-sm text-primary underline decoration-primary/40 underline-offset-2 transition-all hover:decoration-primary disabled:opacity-50",children:eo?"Sending...":"Don't have access to this email? Verify via SMS instead"}),Q?.codeSentVia==="sms"&&Q?.hasEmail&&(0,t.jsx)("button",{type:"button",onClick:()=>{et(""),O(""),em("email")},disabled:eo,className:"text-sm text-primary underline decoration-primary/40 underline-offset-2 transition-all hover:decoration-primary disabled:opacity-50",children:eo?"Sending...":"Send code to email instead"}),(0,t.jsxs)("div",{className:"text-gray-500 mt-2 text-center text-xs",children:["Can't access the associated email or phone?"," ",(0,t.jsx)("a",{href:"https://cargoepod.com/contact",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Contact support"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{J("form"),et(""),Z(null),O("")},className:"text-gray-500 mt-1 text-sm hover:text-primary",children:"Cancel"})]})]}),"email-choice"===K&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-5 flex flex-col items-center text-center",children:[(0,t.jsx)("div",{className:"mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-green-100 text-green-600",children:(0,t.jsx)("svg",{className:"h-8 w-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,t.jsx)("h3",{className:"text-xl font-bold text-black dark:text-white",children:"Set Up Your Organization"}),(0,t.jsxs)("p",{className:"text-gray-600 dark:text-gray-400 mt-1 text-sm",children:["USDOT"," ",(0,t.jsxs)("span",{className:"font-bold text-primary",children:["#",A]})," ","verified. Review and edit your organization details below."]})]}),(0,t.jsxs)("div",{className:"mb-5 space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-1 block text-xs font-medium text-black dark:text-white",children:"Company Name"}),(0,t.jsx)("input",{type:"text",value:ei.name,onChange:e=>en({...ei,name:e.target.value}),className:"w-full rounded-lg border border-stroke bg-transparent px-4 py-3 text-sm text-black outline-none focus:border-primary dark:border-form-strokedark dark:bg-form-input dark:text-white"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-1 block text-xs font-medium text-black dark:text-white",children:"Address"}),(0,t.jsx)("input",{type:"text",value:ei.completeAddress,onChange:e=>en({...ei,completeAddress:e.target.value}),className:"w-full rounded-lg border border-stroke bg-transparent px-4 py-3 text-sm text-black outline-none focus:border-primary dark:border-form-strokedark dark:bg-form-input dark:text-white"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-1 block text-xs font-medium text-black dark:text-white",children:"Phone"}),(0,t.jsx)("input",{type:"text",value:ei.primaryPhone,onChange:e=>en({...ei,primaryPhone:e.target.value}),className:"w-full rounded-lg border border-stroke bg-transparent px-4 py-3 text-sm text-black outline-none focus:border-primary dark:border-form-strokedark dark:bg-form-input dark:text-white"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-1 block text-xs font-medium text-black dark:text-white",children:"Email"}),(0,t.jsx)("input",{type:"email",value:ei.email,onChange:e=>en({...ei,email:e.target.value}),className:"w-full rounded-lg border border-stroke bg-transparent px-4 py-3 text-sm text-black outline-none focus:border-primary dark:border-form-strokedark dark:bg-form-input dark:text-white"})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-1 block text-xs font-medium text-black dark:text-white",children:"USDOT"}),(0,t.jsx)("input",{type:"text",value:A,disabled:!0,className:"w-full rounded-lg border border-stroke bg-gray-100 px-4 py-3 text-sm text-black outline-none dark:border-form-strokedark dark:bg-form-input dark:text-white"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-1 block text-xs font-medium text-black dark:text-white",children:"MC Number"}),(0,t.jsx)("input",{type:"text",value:ei.mcNumber??"",onChange:e=>en({...ei,mcNumber:e.target.value?Number(e.target.value):null}),className:"w-full rounded-lg border border-stroke bg-transparent px-4 py-3 text-sm text-black outline-none focus:border-primary dark:border-form-strokedark dark:bg-form-input dark:text-white"})]})]})]}),U&&(0,t.jsx)("div",{className:"mb-4 rounded border border-red/10 bg-red/10 px-4 py-3 text-sm text-red-700",children:U}),(0,t.jsx)("button",{type:"button",onClick:async()=>
1{if(!ei.email||!n.VALID_EMAIL.test(ei.email))return void O("Please enter a valid email address.");if(!ei.name)return void O("Company name is required.");let e={...I,email:ei.email,name:I.name||ei.name,phone:ei.primaryPhone||I.phone,mcNumber:ei.mcNumber??void 0};if(P(e),J("form"),O(""),eh)await ej();else{if(!e.password)return void O("Password is required.");z(!0);try{let t=await (0,s.RegisterUser)(e,e.inviteCode?[2]:[1],E,A?Number(A):void 0,ea||void 0);t.userId>0?(i.toast.success("Successfully signed up."),eg(t.user,t.userId)):O("Registration failed. Please check your details and try again.")}catch(e){O(e?.message||"An error occurred. Please try again.")}finally{z(!1)}}},disabled:D||!ei.email||!ei.name,className:`w-full rounded-xl bg-primary py-4 text-lg font-bold text-white transition-all hover:bg-primary/90 ${D||!ei.email||!ei.name?"cursor-not-allowed opacity-50":""}`,children:D?"Creating Account...":"Create Account"})]})]})}):null,(0,t.jsxs)("button",{type:"button",onClick:()=>{$?L(!1):g(!0)},className:"group mb-4 inline-flex w-fit items-center gap-2 text-sm font-medium text-body transition-colors hover:text-primary dark:text-bodydark dark:hover:text-white",children:[(0,t.jsx)(l.FaArrowLeft,{className:"transition-transform group-hover:-translate-x-0.5"}),"Back"]}),(0,t.jsx)("div",{className:"flex min-h-0 flex-1 items-center justify-center pb-6",children:(0,t.jsx)("div",{className:"flex h-full max-h-full w-full max-w-5xl overflow-hidden rounded-2xl border border-stroke bg-white shadow-default dark:border-strokedark dark:bg-boxdark",children:(0,t.jsxs)("div",{className:"flex min-h-0 w-full items-stretch",children:[(0,t.jsx)("div",{className:"hidden w-full bg-gradient-to-br from-primary via-primaryshade-600 to-primaryshade-800 xl:flex xl:w-1/2 xl:flex-col xl:justify-center",children:(0,t.jsxs)("div",{className:"px-12 py-16 2xl:px-16",children:[(0,t.jsx)("img",{src:"/images/logo/CargoLogo.svg",alt:"Cargo",className:"w-40 brightness-0 invert"}),(0,t.jsx)("h3",{className:"mt-8 text-3xl font-bold leading-snug text-white",children:"Auto transport made simple for everyone"}),(0,t.jsx)("ul",{className:"mt-8 space-y-4 text-white/90",children:(I.userType===o.UserTypes.Customer?["Request auto transport in a few clicks","Track every order and vehicle in real time","Pull eBOLs and documents whenever you need them"]:["Free forever â no credit card required","Set up your fleet and drivers in minutes","eBOLs, inspections, and live tracking built in"]).map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-white/15 text-xs",children:"â"}),e]},e))})]})}),(0,t.jsx)("div",{className:"w-full min-h-0 overflow-y-auto overflow-x-hidden xl:w-1/2",children:(0,t.jsxs)("div",{className:"w-full p-6 sm:p-8 xl:p-8",children:[(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("span",{className:"mb-1.5 block font-medium text-primary",children:"Start for free"}),(0,t.jsx)("h2",{className:"mb-6 text-2xl font-bold tracking-tight text-black dark:text-white sm:text-title-xl2",children:"Sign Up for Cargo"}),(0,t.jsx)(p,{userType:I.userType,setUserType:e=>{P(t=>({...t,userType:e})),e===o.UserTypes.Carrier?(S(!0),L(!1)):e===o.UserTypes.Customer&&S(!1),J("form"),er("")}})]}),U&&"form"===K&&(0,t.jsxs)("div",{className:"mb-6 rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700 dark:border-red-800 dark:bg-red-900/20 dark:text-red-300",role:"alert",children:[(0,t.jsx)("strong",{className:"font-semibold",children:"We're sorry â "}),(0,t.jsx)("span",{children:U})]}),(0,t.jsxs)("form",{onSubmit:ep,children:[(0,t.jsxs)("div",{className:"animate-fadeIn",children:[(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("label",{className:"mb-1.5 block font-medium text-black dark:text-white",children:"Your Name"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"text",name:"name",onChange:eu,value:I.name,className:"w-full rounded-lg border border-stroke bg-transparent py-3 pl-6 pr-10 text-black outline-none focus:border-primary focus-visible:shadow-none dark:border-form-strokedark dark:bg-form-input dark:text-white dark:focus:border-primary"}),(0,t.jsx)("span",{className:"absolute right-4 top-[18px]",children:(0,t.jsx)(l.FaRegUser,{className:"h-6 w-6 text-slate-300"})})]})]}),(I.userType===o.UserTypes.Customer||$||eC&&ea||F)&&(0,t.jsxs)("div",{className:"animate-fadeIn mb-4",children:[(0,t.jsx)("label",{className:"mb-1.5 block font-medium text-black dark:text-white",children:"Email"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"email",name:"email",value:I.email,onChange:eu,className:"w-full rounded-lg border border-stroke bg-transparent py-3 pl-6 pr-10 text-black outline-none focus:border-primary focus-visible:shadow-none dark:border-form-strokedark dark:bg-form-input dark:text-white dark:focus:border-primary"}),(0,t.jsx)("span",{className:"absolute right-4 top-4",children:(0,t.jsx)(c.MdOutlineMailOutline,{className:"h-7 w-7 text-slate-300"})})]}),W?.provisionalAccount&&(0,t.jsx)("div",{className:"animate-fadeIn mt-3 rounded-lg border border-primary/30 bg-primary/5 p-4",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(c.MdOutlineMailOutline,{className:"mt-0.5 h-5 w-5 flex-shrink-0 text-primary"}),(0,t.jsxs)("div",{className:"text-sm",children:[W.provisionalAccount.orderRequestCount>0?(0,t.jsxs)("p",{className:"text-black dark:text-white",children:["This email has"," ",(0,t.jsxs)("span",{className:"font-bold text-primary",children:[W.provisionalAccount.orderRequestCount," ","order"," ",1===W.provisionalAccount.orderRequestCount?"request":"requests"]})," ","waiting. Sign in or claim your account to keep"," ",1===W.provisionalAccount.orderRequestCount?"it":"them","."]}):(0,t.jsx)("p",{className:"text-black dark:text-white",children:"You already have a pending account for this email. Sign in to claim it."}),(0,t.jsx)("button",{type:"button",onClick:N,className:"mt-2 font-semibold text-primary underline decoration-primary/40 underline-offset-2 transition-all hover:
1decoration-primary",children:"Sign in to claim your account"})]})]})}),!W?.provisionalAccount&&W?.domainMatch&&(0,t.jsxs)("p",{className:"animate-fadeIn mt-2 text-sm text-amber-600 dark:text-amber-500",children:["You may already have an account with"," ",(0,t.jsxs)("span",{className:"font-semibold",children:["@",W.domainMatch.domain]}),". Are you sure you want to create a new one?"]})]}),!eh&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("label",{className:"mb-1.5 block font-medium text-black dark:text-white",children:"Password"}),(0,t.jsx)(d.default,{handleInputChange:eu,userLogin:I,isSignup:!0,className:"mb-3 w-full rounded-lg border border-stroke bg-transparent py-3 pl-6 pr-10 text-black outline-none focus:border-primary focus-visible:shadow-none dark:border-form-strokedark dark:bg-form-input dark:text-white dark:focus:border-primary"})]}),eC&&(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("label",{className:"mb-1.5 block font-medium text-black dark:text-white",children:"USDOT Number"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"text",placeholder:"Enter DOT to link your business",value:A,onChange:e=>{let t=e.target.value;R(t),M(null),O(""),J("form"),er(""),et(""),Z(null),ed.current&&clearTimeout(ed.current),t.length>=4?(B(!0),ed.current=setTimeout(async()=>{try{let e=await (0,m.VerifyDot)(Number(t));!e||!e.name||e instanceof Error?M(null):M(e)}catch(e){M(null)}finally{B(!1)}},600)):B(!1)},className:"w-full rounded-lg border border-stroke bg-transparent py-3 pl-6 pr-10 text-black outline-none focus:border-primary focus-visible:shadow-none dark:border-form-strokedark dark:bg-form-input dark:text-white dark:focus:border-primary"}),(0,t.jsx)("span",{className:"absolute right-4 top-[18px]",children:(0,t.jsx)(l.FaTruck,{className:`h-6 w-6 transition-colors ${V?"animate-pulse text-primary":"text-slate-300"}`})})]}),(0,t.jsx)("div",{className:"mt-2 flex items-center",children:(0,t.jsxs)("div",{className:"group relative inline-block",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{eh?ej():L(!0)},className:"text-gray-500 border-gray-400 cursor-pointer border-b border-dotted pb-0.5 text-xs transition-colors hover:border-primary hover:text-primary",children:"Don't have a USDOT Number?"}),(0,t.jsxs)("div",{className:"animate-fadeIn absolute bottom-full left-0 z-50 mb-2 hidden w-64 rounded-lg bg-graydark p-3 text-xs text-white shadow-xl group-hover:block",children:[(0,t.jsx)("p",{className:"leading-relaxed",children:"No Problem! Click here to switch to manual sign up and verify your USDOT with FMCSA later."}),(0,t.jsx)("div",{className:"absolute left-4 top-full -mt-1 border-8 border-transparent border-t-graydark"})]})]})}),(0,t.jsxs)("div",{className:"mt-2",children:[V&&(0,t.jsxs)("div",{className:"text-gray-500 mt-2 flex items-center space-x-2 text-sm italic",children:[(0,t.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-primary border-t-transparent"}),(0,t.jsx)("span",{children:"Searching FMCSA..."})]}),G&&!V&&(0,t.jsxs)("div",{className:"animate-fadeIn my-4 rounded-lg border border-primary/20 bg-primary/5 p-4",children:[(0,t.jsx)("div",{className:"mb-1 text-xs font-bold uppercase text-primary",children:"Organization Found"}),(0,t.jsx)("div",{className:"text-lg font-bold leading-tight text-black dark:text-white",children:G.name}),(0,t.jsx)("div",{className:"text-gray-600 dark:text-gray-400 text-sm",children:G.completeAddress}),G.primaryPhone&&(0,t.jsxs)("div",{className:"text-gray-600 dark:text-gray-400 mt-1 text-sm",children:["Phone: ",G.primaryPhone]}),ea&&(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-1 text-xs font-medium text-green-600",children:[(0,t.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"DOT Verified"]})]}),!V&&!G&&A.length>=4&&(0,t.jsx)("div",{className:"mb-4 mt-2 text-sm italic text-red-400",children:"No carrier found. Please check your DOT number."})]})]}),I.userType===o.UserTypes.Customer&&(0,t.jsx)("div",{className:"mb-4 flex flex-col items-end gap-3",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-black dark:text-white",children:"Business Account"}),(0,t.jsx)("label",{htmlFor:"business-toggle",className:"flex cursor-pointer select-none items-center",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"business-toggle",type:"checkbox",className:"sr-only",checked:E,onChange:e=>S(e.target.checked)}
1),(0,t.jsx)("div",{className:"h-5 w-14 rounded-full bg-meta-9 shadow-inner dark:bg-[#5A616B]"}),(0,t.jsx)("div",{className:`dot absolute -top-1 left-0 h-7 w-7 rounded-full bg-white shadow-switch-1 transition ${E&&"!right-0 !translate-x-full !bg-primary dark:!bg-white"}`})]})})]})}),(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)("input",{value:D?"Creating Account...":eo?"Sending Code...":eC&&G&&A&&!ea?"Verify & Create Account":"Create Account",type:"submit",disabled:D||eo||eC&&""!==A.trim()&&!G,className:`w-full cursor-pointer rounded-lg border border-primary bg-primary p-3 text-white transition hover:bg-primary/90 ${D||eo||eC&&""!==A.trim()&&!G?"cursor-not-allowed opacity-50":""}`})}),(0,t.jsxs)("div",{className:"mb-4 flex items-center gap-3",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-stroke dark:bg-strokedark"}),(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wider text-bodydark2",children:"or"}),(0,t.jsx)("span",{className:"h-px flex-1 bg-stroke dark:bg-strokedark"})]}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(u.default,{handleCredentialResponse:eN})})]}),$&&I.userType===o.UserTypes.Carrier&&(0,t.jsx)("div",{className:"mt-6 text-center",children:(0,t.jsx)("button",{type:"button",onClick:()=>L(!1),className:"text-gray-500 text-sm hover:text-primary",children:"Back to USDOT signup"})}),(0,t.jsx)("div",{className:"mt-4 text-center",children:(0,t.jsxs)("p",{className:"text-sm text-body dark:text-bodydark",children:["Already have an account?",(0,t.jsx)("button",{type:"button",className:"pl-2 pr-2 font-medium text-primary hover:underline",onClick:N,children:"Sign in"})]})})]})]})})]})})})]})}],5702)},70319,e=>{"use strict";var t=e.i(71645);let a=function(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=function e(t){var a,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(a=0;a<s;a++)t[a]&&(r=e(t[a]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}(e))&&(r&&(r+=" "),r+=t);return r};!function(e){if(!e||"u"<typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);
1-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
1.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
1}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}} 2`);var r=e=>"number"==typeof e&&!isNaN(e),o=e=>"string"==typeof e||"function"==typeof e?e:null,s=e=>(0,t.isValidElement)(e)||"string"==typeof e||"function"==typeof e||r(e);function i({enter:e,exit:a,appendPosition:r=!1,collapse:o=!0,collapseDuration:s=300}){return function({children:i,position:n,preventExitTransition:l,done:c,nodeRef:d,isIn:u,playToast:m}){let f=r?`${e}--${n}`:e,p=r?`${a}--${n}`:a,y=(0,t.useRef)(0);return(0,t.useLayoutEffect)(()=>{let e=d.current,t=f.split(" "),a=r=>{r.target===d.current&&(m(),e.removeEventListener("animationend",a),e.removeEventListener("animationcancel",a),0===y.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",a),e.addEventListener("animationcancel",a)},[]),(0,t.useEffect)(()=>{let e=d.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,a=300){let{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${a}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,a)})})}(e,c,s):c()};u||(l?t():(y.current=1,e.className+=` ${p}`,e.addEventListener("animationend",t)))},[u]),t.default.createElement(t.default.Fragment,null,i)}}function n(e,t){return{content:l(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function l(e,a,r=!1){return(0,t.isValidElement)(e)&&"string"!=typeof e.type?(0,t.cloneElement)(e,{closeToast:a.closeToast,toastProps:a,data:a.data,isPaused:r}):"function"==typeof e?e({closeToast:a.closeToast,toastProps:a,data:a.data,isPaused:r}):e}function c({delay:e,isRunning:r,closeToast:o,type:s="default",hide:i,className:n,controlledProgress:l,progress:c,rtl:d,isIn:u,theme:m}){let f=i||l&&0===c,p={animationDuration:`${e}ms`,animationPlayState:r?"running":"paused"};l&&(p.transform=`scaleX(${c})`);let y=a("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":d}),g="function"==typeof n?n({rtl:d,type:s,defaultClassName:y}):a(y,n);return t.default.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},t.default.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${m} Toastify__progress-bar--${s}`}),t.default.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:g,style:p,...{[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{u&&o()}}}))}var d=1,u=()=>`${d++}`,m=new Map,f=[],p=new Set,y=e=>
2p.forEach(t=>t(e));function g(e,t){var a;if(t)return!!(null!=(a=m.get(t))&&a.isToastActive(e));let r=!1;return m.forEach(t=>{t.isToastActive(e)&&(r=!0)}),r}function h(e,t){s(e)&&(m.size>0||f.push({content:e,options:t}),m.forEach(a=>{a.buildToast(e,t)}))}function b(e,t){m.forEach(a=>{null!=t&&null!=t&&t.containerId&&(null==t?void 0:t.containerId)!==a.id||a.toggle(e,null==t?void 0:t.id)})}function x(e,t){return h(e,t),t.toastId}function v(e,t){var a;return{...t,type:t&&t.type||e,toastId:(a=t)&&("string"==typeof a.toastId||r(a.toastId))?a.toastId:u()}}function k(e){return(t,a)=>x(t,v(e,a))}function _(e,t){return x(e,v("default",t))}_.loading=(e,t)=>x(e,v("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),_.promise=function(e,{pending:t,error:a,success:r},o){let s;t&&(s="string"==typeof t?_.loading(t,o):_.loading(t.render,{...o,...t}));let i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},n=(e,t,a)=>{if(null==t)return void _.dismiss(s);let r={type:e,...i,...o,data:a},n="string"==typeof t?{render:t}:t;return s?_.update(s,{...r,...n}):_(n.render,{...r,...n}),a},l="function"==typeof e?e():e;return l.then(e=>n("success",r,e)).catch(e=>n("error",a,e)),l},_.success=k("success"),_.info=k("info"),_.error=k("error"),_.warning=k("warning"),_.warn=_.warning,_.dark=(e,t)=>x(e,v("default",{theme:"dark",...t})),_.dismiss=function(e){!function(e){let t;if(!(m.size>0)){f=f.filter(t=>null!=e&&t.options.toastId!==e);return}if(null==e||"string"==typeof(t=e)||r(t))m.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=m.get(e.containerId);t?t.removeToast(e.id):m.forEach(t=>{t.removeToast(e.id)})}}(e)},_.clearWaitingQueue=(e={})=>{m.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},_.isActive=g,_.update=(e,t={})=>{let a=((e,{containerId:t})=>{var a;return null==(a=m.get(t||1))?void 0:a.toasts.get(e)})(e,t);if(a){let{props:r,content:o}=a,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:u()};s.toastId!==e&&(s.staleId=e);let i=s.render||o;delete s.render,x(i,s)}},_.done=e=>{_.update(e,{progress:1})},_.onChange=function(e){return p.add(e),()=>{p.delete(e)}},_.play=e=>b(!0,e),_.pause=e=>b(!1,e);var w="u">typeof window?t.useLayoutEffect:t.useEffect,T=({theme:e,type:a,isLoading:r,...o})=>t.default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${a})`,...o}),N={info:function(e){return t.default.createElement(T,{...e},t.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.default.createElement(T,{...e},t.default.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.default.createElement(T,{...e},t.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.default.createElement(T,{...e},t.default.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.default.createElement("div",{className:"Toastify__spinner"})}},j=e=>{let{isRunning:r,preventExitTransition:o,toastRef:s,eventHandlers:i,playToast:n}=function(e){var a,r;let[o,s]=(0,t.useState)(!1),[i,n]=(0,t.useState)(!1),l=(0,t.useRef)(null),c=(0,t.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:d,pauseOnHover:u,closeToast:f,onClick:p,closeOnClick:y}=e;function g(){s(!0)}function h(){s(!1)}function b(t){let a=l.current;if(c.canDrag&&a){c.didMove=!0,o&&h(),"x"===e.draggableDirection?c.delta=t.clientX-c.start:c.delta=t.clientY-c.start,c.start!==t.clientX&&(c.canCloseOnClick=!1);let r="x"===e.draggableDirection?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`;a.style.transform=`translate3d(${r},0)`,a.style.opacity=`${1-Math.abs(c.delta/c.removalDistance)}`}}function x(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",x);let t=l.current;if(c.canDrag&&c.didMove&&t){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance){n(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}a={id:e.toastId,containerId:e.containerId,fn:s},null==(r=m.get(a.containerId||1))||r.setToggle(a.id,a.fn),(0,t.useEffect)(()=>
2{if(e.pauseOnFocusLoss)return document.hasFocus()||h(),window.addEventListener("focus",g),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",h)}},[e.pauseOnFocusLoss]);let v={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){c.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",x);let a=l.current;c.canCloseOnClick=!0,c.canDrag=!0,a.style.transition="none","x"===e.draggableDirection?(c.start=t.clientX,c.removalDistance=a.offsetWidth*(e.draggablePercent/100)):(c.start=t.clientY,c.removalDistance=a.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:a,bottom:r,left:o,right:s}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=o&&t.clientX<=s&&t.clientY>=a&&t.clientY<=r?h():g()}};return d&&u&&(v.onMouseEnter=h,e.stacked||(v.onMouseLeave=g)),y&&(v.onClick=e=>{p&&p(e),c.canCloseOnClick&&f(!0)}),{playToast:g,pauseToast:h,isRunning:o,preventExitTransition:i,toastRef:l,eventHandlers:v}}(e),{closeButton:d,children:u,autoClose:f,onClick:p,type:y,hideProgressBar:g,closeToast:h,transition:b,position:x,className:v,style:k,progressClassName:_,updateId:w,role:T,progress:j,rtl:C,toastId:I,deleteToast:P,isIn:E,isLoading:S,closeOnClick:U,theme:O,ariaLabel:A}=e,R=a("Toastify__toast",`Toastify__toast-theme--${O}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":U}),$="function"==typeof v?v({rtl:C,position:x,type:y,defaultClassName:R}):a(R,v),L=function({theme:e,type:a,isLoading:r,icon:o}){let s=null,i={theme:e,type:a};return!1===o||("function"==typeof o?s=o({...i,isLoading:r}):(0,t.isValidElement)(o)?s=(0,t.cloneElement)(o,i):r?s=N.spinner():a in N&&(s=N[a](i))),s}(e),D=!!j||!f,z={closeToast:h,type:y,theme:O},G=null;return!1===d||(G="function"==typeof d?d(z):(0,t.isValidElement)(d)?(0,t.cloneElement)(d,z):function({closeToast:e,theme:a,ariaLabel:r="close"}){return t.default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${a}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":r},t.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(z)),t.default.createElement(b,{isIn:E,done:P,position:x,preventExitTransition:o,nodeRef:s,playToast:n},t.default.createElement("div",{id:I,tabIndex:0,onClick:p,"data-in":E,className:$,...i,style:k,ref:s,...E&&{role:T,"aria-label":A}},null!=L&&t.default.createElement("div",{className:a("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!S})},L),l(u,e,!r),G,!e.customProgressBar&&t.default.createElement(c,{...w&&!D?{key:`p-${w}`}:{},rtl:C,theme:O,delay:f,isRunning:r,isIn:E,closeToast:h,hide:g,type:y,className:_,controlledProgress:D,progress:j||0})))},C=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),I=i(C("bounce",!0)),P=i(C("slide",!0));i(C("zoom")),i(C("flip"));var E={position:"top-right",transition:I,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function S(e){let i={...E,...e},l=e.stacked,[c,d]=(0,t.useState)(!0),u=(0,t.useRef)(null),{getToastToRender:p,isToastActive:b,count:x}=function(e){var a;let i,{subscribe:l,getSnapshot:c,setProps:d}=(0,t.useRef)((i=e.containerId||1,{subscribe(t){let a,l,c,d,u,p,g,b,x,v,k,_=(a=1,l=0,c=[],d=[],u=e,p=new Map,g=new Set,b=()=>{d=Array.from(p.values()),g.forEach(e=>e())},x=e=>{var t,a;null==(a=null==(t=e.props)?void 0:t.onClose)||a.call(t,e.removalReason),e.isActive=!1},v=e=>{if(null==e)p.forEach(x);else{let t=p.get(e);t&&x(t)}b()},k=e=>{var t,a;let{toastId:r,updateId:o}=e.props,s=null==o;e.staleId&&p.delete(e.staleId),e.isActive=!0,p.set(r,e),b(),y(n(e,s?"added":"updated")),s&&(null==(a=(t=e.props).onOpen)||a.call(t))},{id:i,props:u,observe:e=>(g.add(e),()=>g.delete(e)),toggle:(e,t)=>
2{p.forEach(a=>{var r;(null==t||t===a.props.toastId)&&(null==(r=a.toggle)||r.call(a,e))})},removeToast:v,toasts:p,clearQueue:()=>{l-=c.length,c=[]},buildToast:(e,t)=>{let d,m;if((({containerId:e,toastId:t,updateId:a})=>{let r=p.has(t)&&null==a;return(e?e!==i:1!==i)||r})(t))return;let{toastId:f,updateId:g,data:h,staleId:x,delay:_}=t,w=null==g;w&&l++;let T={...u,style:u.toastStyle,key:a++,...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!=t)),toastId:f,updateId:g,data:h,isIn:!1,className:o(t.className||u.toastClassName),progressClassName:o(t.progressClassName||u.progressClassName),autoClose:!t.isLoading&&(d=t.autoClose,m=u.autoClose,!1===d||r(d)&&d>0?d:m),closeToast(e){p.get(f).removalReason=e,v(f)},deleteToast(){let e=p.get(f);if(null!=e){if(y(n(e,"removed")),p.delete(f),--l<0&&(l=0),c.length>0)return void k(c.shift());b()}}};T.closeButton=u.closeButton,!1===t.closeButton||s(t.closeButton)?T.closeButton=t.closeButton:!0===t.closeButton&&(T.closeButton=!s(u.closeButton)||u.closeButton);let N={content:e,props:T,staleId:x};u.limit&&u.limit>0&&l>u.limit&&w?c.push(N):r(_)?setTimeout(()=>{k(N)},_):k(N)},setProps(e){u=e},setToggle:(e,t)=>{let a=p.get(e);a&&(a.toggle=t)},isToastActive:e=>{var t;return null==(t=p.get(e))?void 0:t.isActive},getSnapshot:()=>d});m.set(i,_);let w=_.observe(t);return f.forEach(e=>h(e.content,e.options)),f=[],()=>{w(),m.delete(i)}},setProps(e){var t;null==(t=m.get(i))||t.setProps(e)},getSnapshot(){var e;return null==(e=m.get(i))?void 0:e.getSnapshot()}})).current;d(e);let u=null==(a=(0,t.useSyncExternalStore)(l,c,c))?void 0:a.slice();return{getToastToRender:function(t){if(!u)return[];let a=new Map;return e.newestOnTop&&u.reverse(),u.forEach(e=>{let{position:t}=e.props;a.has(t)||a.set(t,[]),a.get(t).push(e)}),Array.from(a,e=>t(e[0],e[1]))},isToastActive:g,count:null==u?void 0:u.length}}(i),{className:v,style:k,rtl:T,containerId:N,hotKeys:C}=i;function I(){l&&(d(!0),_.play())}return w(()=>{var e;if(l){let t=u.current.querySelectorAll('[data-in="true"]'),a=null==(e=i.position)?void 0:e.includes("top"),r=0,o=0;Array.from(t).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${c}`),e.dataset.pos||(e.dataset.pos=a?"top":"bot");let s=r*(c?.2:1)+(c?0:12*t);e.style.setProperty("--y",`${a?s:-1*s}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",`${1-(c?o:0)}`),r+=e.offsetHeight,o+=.025})}},[c,x,l]),(0,t.useEffect)(()=>{function e(e){var t;let a=u.current;C(e)&&(null==(t=a.querySelector('[tabIndex="0"]'))||t.focus(),d(!1),_.pause()),"Escape"===e.key&&(document.activeElement===a||null!=a&&a.contains(document.activeElement))&&(d(!0),_.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[C]),t.default.createElement("section",{ref:u,className:"Toastify",id:N,onMouseEnter:()=>{l&&(d(!1),_.pause())},onMouseLeave:I,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":i["aria-label"]},p((e,r)=>{var s;let i,n=r.length?{...k}:{...k,pointerEvents:"none"};return t.default.createElement("div",{tabIndex:-1,className:(s=e,i=a("Toastify__toast-container",`Toastify__toast-container--${s}`,{"Toastify__toast-container--rtl":T}),"function"==typeof v?v({position:s,rtl:T,defaultClassName:i}):a(i,o(v))),"data-stacked":l,style:n,key:`c-${e}`},r.map(({content:e,props:a})=>t.default.createElement(j,{...a,stacked:l,collapseAll:I,isIn:b(a.toastId,a.containerId),key:`t-${a.key}`},e)))}))}e.s(["Slide",()=>P,"ToastContainer",()=>S,"toast",()=>_],70319)},80500,e=>{"use strict";var t=e.i(13974);async function a(e,a){return await (0,t.Get)(`api/org?orgId=${e}`,a)}async function r(e){return console.log(e),await (0,t.Post)("api/org",e)}async function o(){return await (0,t.Get)("api/org/AllInspectionReqs")}async function s(e,a){return await (0,t.Post)(`api/org/OrgInspectionReqs?managedModeId=${a}`,e)}async function i(){return await (0,t.Get)("api/org/EmailPreferences")}async function n(e){return await (0,t.Post)("api/org/EmailPreferences",e)}function l(e){return e&&"object"==typeof e?"boolean"!=typeof e.enabled?null:{enabled:e.enabled,canEdit:!0===e.canEdit,showIntro:!0===e.showIntro}:null}async function c(){return l(await (0,t.Get)("api/org/RatingRequests"))}async function d(e){let a=l(await (0,t.Post)("api/org/RatingRequests",{enabled:e}));if(!a)throw Error("Couldn't update rating requests");return a}
2async function u(){await (0,t.Post)("api/org/RatingRequests/intro/dismiss")}async function m(){return await (0,t.Get)("api/org/AutoOpenSpots")}async function f(e){return await (0,t.Post)("api/org/AutoOpenSpots",{enabled:e})}async function p(){await (0,t.Post)("api/org/AutoOpenSpots/intro/dismiss")}async function y(){return await (0,t.Get)("api/org/PaymentOptions")??[]}async function g(e){return await (0,t.Get)(`api/org/PublicPaymentOptions?token=${encodeURIComponent(e)}`,{anonymous:!0})}async function h(e){return await (0,t.Post)("api/org/PaymentOptions",e)}async function b(){return await (0,t.Get)("api/org/FeatureFlags")}async function x(e,a){return await (0,t.Post)("api/org/FeatureFlags",{featureKey:e,isEnabled:a})}async function v(e){return await (0,t.Get)(`api/org/VerifyDot/${e}`)}async function k(e,t){try{let a=await fetch(`https://api.cargoepod.com/api/Org/signup-check?email=${encodeURIComponent(e)}`,{method:"GET",headers:{"Content-Type":"application/json"},signal:t?.signal});if(!a.ok)return null;return await a.json()}catch{return null}}async function _(e){return await (0,t.Get)(`api/org/VerifyMc/${e}`)}async function w(e){return await (0,t.Get)(`api/org/SearchFmsca/${e}`)}async function T(e){return await (0,t.Get)(`api/org/Search/${e}`)}async function N(e,a){return await (0,t.Post)("api/User/InitiateDotVerification",{dotNumber:e,method:a})}async function j(e,a){return await (0,t.Post)("api/User/VerifyDotCode",{dotNumber:e,code:a})}async function C(e,a,r,o,s,i){return await (0,t.Post)("api/Org/ClaimDot",{dotNumber:e,verificationToken:a,orgId:r,orgEmail:o,orgName:s,orgPhone:i})}async function I(e){try{let a,r,o,s=await (0,t.Get)(`api/org/CarrierOk/${e}`);if(!s)return null;if(s.items&&Array.isArray(s.items)&&s.items.length>0){let e=s.items[0];if(e.telephone_number&&(r=e.telephone_number),e.docket_number&&(o=Number(e.docket_number)),e.email_address&&(a=e.email_address),!a&&e.contact_history&&Array.isArray(e.contact_history)){let t=e.contact_history.filter(e=>"email_address"===e.key);t.length>0&&(t.sort((e,t)=>{let a=e.end_date?new Date(e.end_date).getTime():0;return(t.end_date?new Date(t.end_date).getTime():0)-a}),t[0].value&&(a=t[0].value))}}if(!a||!r){let e=s.carrier||s.data||s;a||(a=e.email||e.emailAddress||e.contact_email||e.email_address),r||(r=e.phone||e.phoneNumber||e.telephone||e.contact_phone||e.phone_number),!o&&e.docket_number&&(o=Number(e.docket_number))}if(a||r||o)return{email:a,phone:r,mcNumber:o};return null}catch(e){return console.error("Error fetching CarrierOk info:",e),null}}e.s(["ClaimDot",()=>C,"DismissAutoOpenSpotsIntro",()=>p,"DismissRatingRequestsIntro",()=>u,"GetAutoOpenSpots",()=>m,"GetCarrierContactInfo",()=>I,"GetEmailPreferences",()=>i,"GetInspectionRequirements",()=>o,"GetOrg",()=>a,"GetOrgFeatureFlags",()=>b,"GetPaymentOptions",()=>y,"GetPublicPaymentOptions",()=>g,"GetRatingRequests",()=>c,"InitiateDotVerification",()=>N,"SaveAutoOpenSpots",()=>f,"SaveEmailPreferences",()=>n,"SaveInspectionReqs",()=>s,"SaveOrg",()=>r,"SavePaymentOptions",()=>h,"SaveRatingRequests",()=>d,"SearchFmsca",()=>w,"SearchVerifiedOrgs",()=>T,"SetOrgFeatureFlag",()=>x,"SignupCheck",()=>k,"VerifyDot",()=>v,"VerifyDotCode",()=>j,"VerifyMc",()=>_])},69546,e=>{"use strict";var t=e.i(13974),a=e.i(42073);async function r(e,a){return await (0,t.Post)("api/User/Update",{userLogin:e,userRoles:a})}async function o(e,a){return await (0,t.Post)("api/User/CreateOrgUser",{userLogin:e,userRoles:a})}async function s(e,a,r){return await (0,t.Post)("api/User/ResetPassword",{userLogin:e,userRoles:a,token:r})}async function i(e){return a.VALID_EMAIL.test(e)?await (0,t.Post)(`api/Email/SendResetPassword?email=${e}`):null}async function n(e){return await (0,t.Get)(`api/User/GetUsersByOrgId?orgId=${e}`)}async function l(e){return await (0,t.Get)(`api/User/GetUserById?userId=${e}`)}async function c(e,a){return await (0,t.Get)(`api/User/UserPreferences?userId=${e}`,a)}async function d(e){return await (0,t.Post)("api/User/UserPreferences",e)}async function u(e){let t=localStorage.getItem("token");return(await fetch("https://api.cargoepod.com/api/User/ChangelogVersion",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(e)})).ok}async function m(e,a){return await (0,t.Post)(`api/User/Delete?userId=${e}&orgId=${a}`)}async function f(e){return await (0,t.Get)(`api/User/GetAllDrivers?orgId=${e}`)}e.s(["CreateOrgUser",()=>o,"DeleteUser",()=>m,"GetAllDrivers",()=>f,"GetUserById",()=>l,"GetUserPreferences",()=>c,"GetUsersByOrgId",()=>n,"ResetPasswordFunction",()=>s,"SendResetPassword",()=>i,"UpdateChangelogVersion",()=>u,"UpdateUser",()=>r,"UpdateUserPreferences",()=>d])},69438,e=>{"use strict";var t=e.i(13974);
2async function a(e){return e.inviteCode="",await (0,t.Post)("api/User/Authenticate",e)}async function r(e){return await (0,t.Post)("api/User/VerifyToken",e)}async function o(e,a,r,o,s){e.inviteCode="";let i=[];void 0!==r&&i.push(`isBusiness=${r}`),void 0!==o&&i.push(`dotNumber=${o}`),void 0!==e.mcNumber&&i.push(`mcNumber=${e.mcNumber}`),s&&i.push(`dotVerificationToken=${encodeURIComponent(s)}`);let n=i.length>0?`?${i.join("&")}`:"";return await (0,t.Post)(`api/User${n}`,{userLogin:e,userRoles:a})}async function s(e,a,r,o){let s=[];void 0!==a&&s.push(`isCarrier=${a}`),void 0!==r&&s.push(`isBusiness=${r}`),o&&s.push("checkOnly=true");let i=s.length>0?`?${s.join("&")}`:"";return await (0,t.Post)(`api/User/GoogleSignIn${i}`,e)}async function i(e){try{return await (0,t.Post)(`api/User/VerifyResetToken?token=${encodeURIComponent(e)}`)}catch(e){throw e}}e.s(["AuthWithGoogle",()=>s,"AuthenticateUser",()=>a,"RegisterUser",()=>o,"VerifyResetToken",()=>i,"VerifyToken",()=>r])},34913,e=>{"use strict";var t=e.i(18050),a=e.i(71645),r=e.i(73665);let o=({type:e,isEditUser:a})=>"hover"===e?(0,t.jsx)("span",{className:"text-md absolute right-0 hidden w-64 max-w-[calc(100vw-2rem)] rounded-lg border-2 border-slate-300 bg-white p-2 text-black group-hover:block group-focus:block group-active:block dark:bg-slate-800 dark:text-slate-200 lg:bottom-8",children:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:"⢠Password must be at least 8 characters long."}),(0,t.jsx)("li",{children:"⢠Password should not include personal information like your name or username."}),(0,t.jsx)("li",{children:"⢠Password cannot include spaces."})]})}):"text"===e?(0,t.jsx)("span",{className:`absolute bottom-15 right-0 hidden w-64 max-w-[calc(100vw-2rem)] rounded-lg border-2 border-slate-300 bg-white p-2 text-sm text-black group-focus-within:block dark:bg-slate-800 dark:text-slate-200${a?"":" lg:group-focus-within:hidden"}`,children:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:"⢠Password must be at least 8 characters long."}),(0,t.jsx)("li",{className:"text-wrap",children:"⢠Password should not include personal information like your name or username."}),(0,t.jsx)("li",{children:"⢠Password cannot include spaces."})]})}):(0,t.jsx)(t.Fragment,{});var s=e.i(11152);e.s(["default",0,({handleInputChange:e,disabled:i,userLogin:n,isSignup:l,className:c,isEditUser:d,placeholder:u})=>{let[m,f]=(0,a.useState)(!1),p=()=>{f(e=>!e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("div",{className:"group",children:[(0,t.jsx)("input",{disabled:i,type:m?"text":"password",name:"password",autoComplete:l||d?"new-password":"current-password",placeholder:u||"",value:n.password,onChange:e,className:`${c}`}),l||d?(0,t.jsx)(o,{type:"text",isEditUser:!0}):null]}),!i&&(0,t.jsxs)("span",{className:`absolute right-4 ${d?"top-3":"top-4"}`,children:[m?(0,t.jsx)(r.MdOutlineVisibilityOff,{className:"h-7 w-7 cursor-pointer text-slate-300 transition hover:text-slate-400",onClick:p}):(0,t.jsx)(r.MdOutlineVisibility,{className:"h-7 w-7 cursor-pointer text-slate-300 transition hover:text-slate-400",onClick:p}),l?(0,t.jsxs)("div",{className:"group relative",children:[(0,t.jsx)(s.FaInfoCircle,{className:"absolute hidden h-8 w-8 fill-current text-slate-300 transition hover:text-slate-500 lg:-bottom-2.5 lg:left-13 lg:mb-2 lg:block"}),(0,t.jsx)(o,{type:"hover"})]}):null]})]}),l?(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{className:"mb-2.5 block font-medium text-black dark:text-white",children:"Re-type Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:m?"text":"password",value:n.confirmPassword,name:"confirmPassword",onChange:e,className:"w-full rounded-lg border border-stroke bg-transparent py-4 pl-6 pr-10 text-black outline-none focus:border-primary focus-visible:shadow-none dark:border-form-strokedark dark:bg-form-input dark:text-white dark:focus:border-primary"}),(0,t.jsx)("span",{className:"absolute right-4 top-4",children:(0,t.jsx)(r.MdLockOutline,{className:"h-7 w-7 text-slate-300"})})]})]}):null]})}],34913)},41521,20665,e=>{"use strict";e.i(47167);var t=e.i(18050),a=e.i(71645);let r="google-gsi-client-script";function o(){let e=window.location.hostname;if("localhost"===e||/^[0-9.]+$/.test(e))return"";let t=e.split(".");return t.length<2?"":"; Domain=."+t.slice(-2).join(".")}function s(e,t=7){let a=new Date;a.setDate(a.getDate()+t);let r="https:"===window.location.protocol?"; Secure":"";document.cookie=`token=${e}; expires=${a.toUTCString()}; path=/; SameSite=Lax${o()}${r}`}function i(e){let t=document.cookie.split(";").find(t=>t.trim().startsWith(`${e}=`));return t?t.split("=")[1]:null}function n(){return i("token")}function l(){document.cookie="token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;",document.cookie=`token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/${o()}`,localStorage.removeItem("token")}e.s(["default",0,({handleCredentialResponse:e,oneTap:o=!0})=>{let s=(0,a.useRef)(null),i=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let t=!1,a=()=>{let a=window.google,r=s.current;!t&&a?.accounts?.id&&r?.isConnected&&(a.accounts.id.initialize({client_id:"531435156285-klj5uqajli1911vcj36aaqah6adu1c22.apps.googleusercontent.com",callback:e,use_fedcm_for_prompt:!0}),a.accounts.id.renderButton(r,{theme:"outline",size:"large"}),o&&!i.current&&(i.current=!0,a.accounts.id.prompt()))};if(window.google?.accounts?.id)a();else{let e=document.getElementById(r);e||((e=document.createElement("script")).id=r,e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,document.body.appendChild(e)),e.addEventListener("load",a,{once:!0})}return()=>{t=!0,window.google?.accounts?.id?.cancel()}},[]),(0,t.jsx)("div",{ref:s})}],41521),e.s(["clearAuthStorage",()=>l,"getAuthCookie",()=>n,"getCookie",()=>i,"setAuthCookie",()=>s],20665)}]);
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.