@6thbridge/hexa 0.0.98 → 0.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";var Wa=Object.defineProperty;var za=(e,t,r)=>t in e?Wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ct=(e,t,r)=>za(e,typeof t!="symbol"?t+"":t,r);var Nr={USD:"$",CAD:"CA$",EUR:"\u20AC",AED:"AED",AFN:"Af",ALL:"ALL",AMD:"AMD",ARS:"AR$",AUD:"AU$",AZN:"man.",BAM:"KM",BDT:"Tk",BGN:"BGN",BHD:"BD",BIF:"FBu",BND:"BN$",BOB:"Bs",BRL:"R$",BWP:"BWP",BYN:"Br",BZD:"BZ$",CDF:"CDF",CHF:"CHF",CLP:"CL$",CNY:"CN\xA5",COP:"CO$",CRC:"\u20A1",CVE:"CV$",CZK:"K\u010D",DJF:"Fdj",DKK:"Dkr",DOP:"RD$",DZD:"DA",EEK:"Ekr",EGP:"EGP",ERN:"Nfk",ETB:"Br",GBP:"\xA3",GEL:"GEL",GHS:"GH\u20B5",GNF:"FG",GTQ:"GTQ",HKD:"HK$",HNL:"HNL",HRK:"kn",HUF:"Ft",IDR:"Rp",ILS:"\u20AA",INR:"\u20B9",IQD:"IQD",IRR:"IRR",ISK:"Ikr",JMD:"J$",JOD:"JD",JPY:"\xA5",KES:"Ksh",KHR:"KHR",KMF:"CF",KRW:"\u20A9",KWD:"KD",KZT:"KZT",LBP:"L.L.",LKR:"SLRs",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MMK:"MMK",MOP:"MOP$",MUR:"MURs",MXN:"MX$",MYR:"RM",MZN:"MTn",NAD:"N$",NGN:"\u20A6",NIO:"C$",NOK:"Nkr",NPR:"NPRs",NZD:"NZ$",OMR:"OMR",PAB:"B/.",PEN:"S/.",PHP:"\u20B1",PKR:"PKRs",PLN:"z\u0142",PYG:"\u20B2",QAR:"QR",RON:"RON",RSD:"din.",RUB:"RUB",RWF:"RWF",SAR:"SR",SDG:"SDG",SEK:"Skr",SGD:"S$",SOS:"Ssh",SYP:"SY\xA3",THB:"\u0E3F",TND:"DT",TOP:"T$",TRY:"TL",TTD:"TT$",TWD:"NT$",TZS:"TSh",UAH:"\u20B4",UGX:"USh",UYU:"$U",UZS:"UZS",VEF:"Bs.F.",VND:"\u20AB",XAF:"F CFA",XOF:"CFA",YER:"YR",ZAR:"R",ZMK:"ZK",ZWL:"ZWL$"},et=class et{static getCurrencyLocaleMap(t){return{XOF:"fr",XAF:"fr"}[t]||"en"}static koboToNaira(t){return+t/100}static nairaToKobo(t){return+t*100}static getCurrencySymbol(t){return Nr[t]||t}};Ct(et,"formatAmountAndCurrency",(t,r,o)=>{let a=new Intl.NumberFormat(o?.locale||et.getCurrencyLocaleMap(t),{maximumFractionDigits:3,style:"currency",currency:t,currencyDisplay:"symbol"}).format(o?.convertToMajorCurrency?et.koboToNaira(Number(r)):Number(r)).replace(/^(\D+)/,"$1 ").replace("\u202F"," ").replace(/\s+/,""),n=Nr[t]||t;return a.replace(t,n)});var Rr=et;import _t from"dayjs";var Pr=class{static getDateLibrary(){return _t()}static formatTimestampToDate(t,r){return _t.unix(t).format(r||"ddd, MMM, YYYY | HH:mm:ss")}static formatDateToTimestamp(t){return _t(t).unix()}};var Gt=class{static capitalizeFirstWord(t){return t.charAt(0).toUpperCase()+t.slice(1)}static capitalizeEachWord(t){return t.split(" ").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}};Ct(Gt,"sanitizeString",({str:t,allowedChars:r})=>{if(!r)return t.replace(/[^a-zA-Z0-9\s]/g,"");let o=r.map(n=>["^","$",".","*","+","?","(",")","[","]","{","}","|","\\","-"].includes(n)?"\\"+n:n),a=new RegExp(`[^a-zA-Z0-9${o.join("")}]`,"g");return t.replace(a,"")});import*as kr from"react";import*as q from"@radix-ui/react-tooltip";import{clsx as $a}from"clsx";import{twMerge as Za}from"tailwind-merge";function i(...e){return Za($a(e))}import{jsx as _e,jsxs as Lr}from"react/jsx-runtime";var Dr=q.Provider,Tr=q.Root,Sr=q.Trigger,Wt=kr.forwardRef(({className:e,sideOffset:t=2,...r},o)=>_e(q.Portal,{children:_e(q.Content,{ref:o,sideOffset:t,className:i("z-50 rounded-md border border-transparent bg-gray-50 px-3 py-1.5 text-base font-semibold text-bold text-black/40 shadow-xl- animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [box-shadow:3px_4px_11px_0px_#0000001A,13px_16px_21px_0px_#00000017,29px_36px_28px_0px_#0000000D,52px_65px_33px_0px_#00000003,82px_101px_36px_0px_#00000000]",e),...r,children:r.children})}));Wt.displayName=q.Content.displayName;var wt=({trigger:e,children:t,contentClassName:r,triggerClassName:o,asChild:a=!0,side:n,sideOffset:s,align:c,alignOffset:d,delayDuration:l=100,hasArrow:m=!0,arrowClassName:f,...p})=>_e(Dr,{children:_e(Tr,{delayDuration:l,...p,children:Lr("div",{className:"flex justify-center items-center",children:[_e(Sr,{asChild:a,className:o,children:e}),Lr(Wt,{side:n,sideOffset:s,align:c,alignOffset:d,className:r,children:[t,m&&_e(q.Arrow,{className:i("fill-white",f)})]})]})})});wt.displayName="Tooltip";import Xa from"react";import*as Fr from"react";import*as zt from"@radix-ui/react-label";import{cva as Ua}from"class-variance-authority";import{jsx as ja}from"react/jsx-runtime";var Ka=Ua("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),$t=Fr.forwardRef(({className:e,...t},r)=>ja(zt.Root,{ref:r,className:i(Ka(),e),...t}));$t.displayName=zt.Root.displayName;import{jsx as Er,jsxs as Ya}from"react/jsx-runtime";var M=Xa.forwardRef(({className:e,children:t,showAsterisk:r,error:o,...a},n)=>Er($t,{ref:n,className:i(o&&"text-red-500",e),...a,children:r?Ya("p",{children:[t,Er("span",{className:"text-red-500",children:"*"})]}):t}));M.displayName="FormLabel";import{jsx as Ar,jsxs as qa}from"react/jsx-runtime";var de=({size:e=16,colour:t="primary"})=>qa("svg",{className:"animate-spin",width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:[Ar("circle",{cx:"10",cy:"10",r:"9.25",stroke:"transparent",strokeWidth:"1.5"}),Ar("path",{d:"M10 0.595792C10 0.266746 10.267 -0.00185055 10.5954 0.0177417C11.9786 0.100242 13.3318 0.469461 14.5682 1.1044C15.9816 1.83021 17.2016 2.88235 18.1273 4.17366C19.0531 5.46496 19.6578 6.95826 19.8913 8.52984C20.1249 10.1014 19.9807 11.706 19.4705 13.2108C18.9604 14.7155 18.0991 16.077 16.9579 17.1825C15.8167 18.288 14.4285 19.1056 12.9084 19.5677C11.3882 20.0298 9.77982 20.123 8.21646 19.8397C6.84883 19.5918 5.55009 19.0619 4.40196 18.2863C4.12931 18.1021 4.08072 17.7265 4.28083 17.4653C4.48094 17.2041 4.85388 17.1564 5.12801 17.3384C6.12474 18.0001 7.24768 18.4531 8.42898 18.6672C9.80606 18.9168 11.2228 18.8347 12.5618 18.4276C13.9008 18.0206 15.1236 17.3004 16.1288 16.3266C17.134 15.3528 17.8927 14.1536 18.342 12.8282C18.7914 11.5027 18.9185 10.0893 18.7127 8.70502C18.507 7.32071 17.9743 6.00535 17.1589 4.86792C16.3435 3.73048 15.2688 2.80371 14.0238 2.16439C12.9559 1.61596 11.789 1.29259 10.5954 1.21173C10.2671 1.18949 10 0.92484 10 0.595792Z",fill:t==="primary"?"#ffffff":"currentColor",className:"rounded"})]});import*as Mr from"react";import{Slot as Ja}from"@radix-ui/react-slot";import{cva as Qa}from"class-variance-authority";import{Fragment as en,jsx as Me,jsxs as tn}from"react/jsx-runtime";var J=Qa("overflow-hidden isolate inline-flex h-fit items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-background dark:ring-offset-transparent transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:!pointer-events-none",{variants:{variant:{primary:"border-primary-main bg-primary-main hover:bg-primary-main/70 disabled:bg-primary-main/70 text-white font-bold",danger:"border-red-600 bg-red-600 hover:bg-red-600/70 disabled:bg-red-600/70 text-white font-bold",neutral:"!border-0 bg-transparent text-primary-main hover:opacity-80 disabled:opacity-60",outlined:"border border-primary-main text-primary-main hover:opacity-80 disabled:opacity-60","danger-outlined":"border border-red-600 text-red-600 hover:opacity-80 disabled:opacity-60","light-outlined":"border-white text-white hover:opacity-80 disabled:opacity-60","dark-text":"border-transparent bg-transparent hover:bg-opacity-70 disabled:bg-opacity-70 text-black font-medium",light:"border-white bg-white hover:bg-opacity-70 disabled:bg-opacity-70 text-primary-main font-semibold"},size:{default:"py-[0.625rem] px-[1.5rem] text-[0.875rem] leading-[1.25rem] font-medium rounded-lg",sm:"py-[0.375rem] px-[1rem] leading-[1rem] font-normal text-sm rounded-lg",lg:"py-[0.75rem] px-[1.5rem] text-[1rem] leading-[1.5rem] font-medium rounded-lg",md:"py-[0.625rem] px-[1.5rem] text-[0.875rem] leading-[1.25rem] font-medium rounded-lg","icon-sm":"h-[1.75rem] w-[1.75rem] flex justify-center items-center font-medium rounded-lg",icon:"h-[2.5rem] w-[2.75rem] flex justify-center items-center font-medium rounded-lg","icon-lg":"h-[3rem] w-[3rem] flex justify-center items-center font-medium rounded-lg"}},defaultVariants:{variant:"primary",size:"default"}}),Q=Mr.forwardRef(({className:e,variant:t="primary",size:r,asChild:o=!1,isLoading:a=!1,leftNode:n,rightNode:s,LoaderSize:c,children:d,disabled:l,...m},f)=>Me(o?Ja:"button",{className:i(J({variant:t,size:r,className:e})),ref:f,disabled:l||a,...m,children:Me("div",{className:"flex font-medium justify-center items-center gap-2 pointer-events-none",children:a?Me("span",{className:"mx-auto",children:Me(de,{size:c,colour:"secondary"})}):tn(en,{children:[n&&Me("span",{children:n}),d&&Me("span",{children:d}),s&&Me("span",{children:s})]})})}));Q.displayName="Button";import*as Zt from"react";import{cva as Ut}from"class-variance-authority";import rn from"react";import{jsx as on}from"react/jsx-runtime";var ee=rn.forwardRef(({className:e,children:t,error:r,...o},a)=>{let n=r??t;return n?on("p",{ref:a,className:i("text-xs font-normal text-[#F04248]",e),...o,children:n}):null});ee.displayName="ErrorMessage";import an from"react";import{jsx as nn}from"react/jsx-runtime";var pe=an.forwardRef(({className:e,...t},r)=>nn("div",{ref:r,className:i("text-sm text-[#8E98A8",e),...t}));pe.displayName="FormDescription";import{jsx as Ie,jsxs as Br}from"react/jsx-runtime";var sn=Ut("!p-0 flex h-full w-full !border-transparent !bg-transparent text-base focus-visible:bg-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",{variants:{status:{default:"placeholder:text-[#C4C4C4] dark:placeholder:text-[#9299A2]",error:"placeholder:text-red-500 text-red-500",loading:"placeholder:text-[#C4C4C4] dark:placeholder:text-[#9299A2]",prefilled:"",neutral:""}},defaultVariants:{status:"default"}}),Vr=Zt.forwardRef(({className:e,status:t,type:r,...o},a)=>Ie("input",{type:r,className:i(sn({status:t}),e),ref:a,...o}));Vr.displayName="BaseInnerInput";var W=Ut("flex relative h-10 w-full rounded-[4px] dark:!bg-transparent border transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 dark:disabled:!border-[#9299A2]",{variants:{status:{default:"border-[#DEDEDE] bg-white text-[#191919] dark:!bg-transparent caret-text-primary focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:disabled:!border-[#9299A2]",error:"placeholder:text-red-500 bg-red-50 border-red-500 dark:!bg-status-error-bg-dark text-red-500 focus-within:bg-red-50 focus-within:border-red-500",loading:"",prefilled:"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]",neutral:"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]"}},defaultVariants:{status:"default"}}),Ir=Ut("top-0 flex justify-center items-center h-full min-w-[50px] max-w-[100px] dark:!bg-transparent transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 dark:disabled:!border-[#9299A2]",{variants:{side:{left:"left-0 rounded-l-[8px] border-r",right:"right-0 rounded-r-[8px] border-l"},status:{default:"border-[#DEDEDE] bg-white text-[#191919] dark:!bg-transparent caret-primary-main focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:disabled:!border-[#9299A2]",error:"placeholder:text-red-500 bg-red-50 border-red-500 dark:!bg-red-50 text-red-500 focus-within:bg-red-50 focus-within:border-red-500",loading:"",prefilled:"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]",neutral:"bg-transparent border-0 caret-[#DEDEDE] !px-0"}},defaultVariants:{status:"default",side:"left"}}),_=Zt.forwardRef(({className:e,status:t="default",disabled:r,error:o,isLoading:a,sideNodeClassName:n,showAsterisk:s,label:c,description:d,...l},m)=>{let f=t;return o&&(f="error"),a&&(f="loading"),r&&(f="prefilled"),Br("div",{className:"relative space-y-1 w-full",children:[c&&Ie(M,{showAsterisk:s,error:o,children:c}),Br("div",{className:i(W({status:f}),l.leftNode?"pl-0":"",l.rightNode?"pr-0":"",e),children:[l.leftNode?Ie("div",{className:i(Ir({status:f,side:"left"}),n),children:l.leftNode}):null,Ie(Vr,{ref:m,disabled:a||r,className:i({"!pl-3":l.leftNode&&t!=="neutral","!pr-3":l.rightNode&&t!=="neutral","sentry-mask":!!l?.isContentSensitive}),...l}),l.rightNode?Ie("div",{className:i(Ir({status:f,side:"right"}),n),children:l.rightNode}):null]}),d&&Ie(pe,{className:"text-gray-400 text-sm !font-normal",children:d}),Ie(ee,{error:o})]})});_.displayName="Input";import{useMemo as dn,useState as Ur}from"react";import{jsx as Or}from"react/jsx-runtime";var Hr=()=>Or("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Or("path",{d:"M8.89802 2.93408L9.70202 3.49808L6.21602 8.52608H5.41202L3.46802 5.80208L4.27202 5.05208L5.81402 6.49208L8.89802 2.93408Z",fill:"currentColor"})});import{jsx as _r,jsxs as ln}from"react/jsx-runtime";var Gr=()=>ln("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_r("path",{d:"M1.54639 7.26103C1.48389 7.09264 1.48389 6.90741 1.54639 6.73903C2.15517 5.26292 3.18853 4.00081 4.51547 3.1127C5.84241 2.22459 7.40317 1.75049 8.99989 1.75049C10.5966 1.75049 12.1574 2.22459 13.4843 3.1127C14.8113 4.00081 15.8446 5.26292 16.4534 6.73903C16.5159 6.90741 16.5159 7.09264 16.4534 7.26103C15.8446 8.73713 14.8113 9.99925 13.4843 10.8874C12.1574 11.7755 10.5966 12.2496 8.99989 12.2496C7.40317 12.2496 5.84241 11.7755 4.51547 10.8874C3.18853 9.99925 2.15517 8.73713 1.54639 7.26103Z",stroke:"#8E98A8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),_r("path",{d:"M9 9.25C10.2426 9.25 11.25 8.24264 11.25 7C11.25 5.75736 10.2426 4.75 9 4.75C7.75736 4.75 6.75 5.75736 6.75 7C6.75 8.24264 7.75736 9.25 9 9.25Z",stroke:"#8E98A8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});import{jsx as Wr,jsxs as cn}from"react/jsx-runtime";var zr=()=>cn("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Wr("path",{d:"M4.08759 12.69C3.26171 11.9072 2.61006 10.9591 2.17509 9.90752C2.10081 9.73454 2.0625 9.54826 2.0625 9.36001C2.0625 9.17177 2.10081 8.98549 2.17509 8.81252C2.75274 7.4073 3.72095 6.19704 4.96509 5.32502C6.14597 4.4998 7.55989 4.07405 9.00009 4.11002C10.0363 4.084 11.064 4.30239 12.0001 4.74752M13.9201 6.03752C14.7415 6.81964 15.3904 7.76486 15.8251 8.81252C15.8994 8.98549 15.9377 9.17177 15.9377 9.36001C15.9377 9.54826 15.8994 9.73454 15.8251 9.90752C15.2474 11.3127 14.2792 12.523 13.0351 13.395C11.8542 14.2202 10.4403 14.646 9.00009 14.61C7.9639 14.636 6.93616 14.4176 6.00009 13.9725",stroke:"#8E98A8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Wr("path",{d:"M6.5325 10.2375C6.42732 9.95694 6.37395 9.65962 6.375 9.36C6.375 8.66381 6.65156 7.99613 7.14384 7.50384C7.63613 7.01156 8.30381 6.735 9 6.735C9.3 6.7335 9.597 6.7875 9.8775 6.8925M11.4675 8.4825C11.5725 8.763 11.6265 9.06 11.625 9.36C11.625 10.0562 11.3484 10.7239 10.8562 11.2162C10.3639 11.7084 9.69619 11.985 9 11.985C8.70038 11.986 8.40306 11.9327 8.1225 11.8275M2.25 15L14.25 3",stroke:"#8E98A8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});import{jsx as $r}from"react/jsx-runtime";var Zr=()=>$r("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$r("path",{d:"M3.37891 8.62142L6.00041 5.99992L8.62191 8.62142M8.62191 3.37842L5.99991 5.99992L3.37891 3.37842",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});import{jsx as ue,jsxs as pn}from"react/jsx-runtime";var Kr=[{label:"Uppercase",key:"uppercase",RegExp:/[A-Z]/,validated:!1},{label:"Lowercase",key:"lowercase",RegExp:/[a-z]/,validated:!1},{label:"Number",key:"number",RegExp:/\d/,validated:!1},{label:"12 Characters",key:"twelve-chars",RegExp:/.{12}/,validated:!1}],jr=({onValidate:e,onChange:t,disableValidation:r,...o})=>{let[a,n]=Ur(!1),[s,c]=Ur(Kr),d=p=>Kr.map(u=>({...u,validated:u.RegExp.test(p)})),l=p=>{let u=d(p),h=u.every(b=>b.validated);return c(u),h},m=p=>{if(t&&t(p),r)return;let u=p?.target?.value,h=l(u);e&&e(h,u)},f=dn(()=>ue("div",{className:"flex items-center gap-2",children:s?.map(p=>pn("div",{className:i("text-xs flex items-center gap-0.5",{"text-[#62C554]":p?.validated,"text-[#8E98A8]":!p?.validated}),children:[ue("span",{className:"",children:p?.validated?ue(Hr,{}):ue(Zr,{})}),ue("span",{className:"",children:p?.label})]},p?.key))}),[s]);return ue(_,{sideNodeClassName:"!border-l-0",rightNode:a?ue("button",{type:"button",onClick:()=>n(p=>!p),children:ue(Gr,{})}):ue("button",{type:"button",onClick:()=>n(p=>!p),children:ue(zr,{})}),type:a?"text":"password",onChange:m,description:!r&&f,isContentSensitive:!0,...o})};jr.displayName="PasswordInput";import{cva as mn}from"class-variance-authority";import{jsx as Nt,jsxs as un}from"react/jsx-runtime";var V1=mn("flex relative min-h-[80px] w-full rounded-[8px] border transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",{variants:{status:{default:"border-[#D7D7D7] dark:border-[#676767] bg-white text-[#191919] dark:!bg-transparent caret-primary-main focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:border-[#9299A2] dark:disabled:!border-[#9299A2]",error:"placeholder:text-status-error-fill bg-status-error-bg border-status-error-fill dark:!bg-status-error-bg-dark text-status-error-fill focus-within:bg-status-error-bg focus-within:border-status-error-fill",loading:"placeholder:text-[#C4C4C4]",prefilled:"resize-none bg-[#F6F6F6] border-[#D7D7D7] dark:!bg-transparent caret-[#D7D7D7] focus-within:bg-[#F6F6F6] focus-within:border-[#D7D7D7] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]",neutral:""}},defaultVariants:{status:"default"}}),Xr=({className:e,status:t="default",disabled:r,error:o,isLoading:a,showAsterisk:n,label:s,description:c,...d})=>{let l=t;return o&&(l="error"),a&&(l="loading"),r&&(l="prefilled"),un("div",{className:"relative space-y-1",children:[Nt(M,{showAsterisk:n,error:o,children:s}),Nt("textarea",{className:i("min-h-[80px]",W({status:l}),e),disabled:a||r,...d}),Nt(pe,{className:"text-gray-400 text-sm !font-normal",children:c}),Nt(ee,{error:o})]})};Xr.displayName="Textarea";import*as Be from"react";import*as ke from"react";import{Command as U}from"cmdk";import{Search as yn}from"lucide-react";import*as Le from"react";import*as F from"@radix-ui/react-dialog";import{jsx as Yr,jsxs as fn}from"react/jsx-runtime";var qr=()=>fn("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-x",children:[Yr("path",{d:"M18 6 6 18"}),Yr("path",{d:"m6 6 12 12"})]});import{Fragment as hn,jsx as te,jsxs as Ge}from"react/jsx-runtime";var gn=F.Root,vn=F.Trigger,bn=F.Portal,Jr=Le.forwardRef(({className:e,...t},r)=>te(F.Overlay,{ref:r,className:i("fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Jr.displayName=F.Overlay.displayName;var Kt=Le.forwardRef(({className:e,hideCloseButton:t,children:r,...o},a)=>Ge(bn,{children:[te(Jr,{}),Ge(F.Content,{ref:a,className:i("fixed left-[50%] top-[50%] z-50 grid sm:w-full w-[95%] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-transparent bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg max-h-[95%] overflow-y-auto",e),...o,children:[r,!t&&Ge(F.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[te(qr,{}),te("span",{className:"sr-only",children:"Close"})]})]})]}));Kt.displayName=F.Content.displayName;var Qr=({className:e,...t})=>te("div",{className:i("flex flex-col space-y-1.5 text-left",e),...t});Qr.displayName="DialogHeader";var eo=({className:e,...t})=>te("div",{className:i("flex flex-row justify-end sm:space-x-2",e),...t});eo.displayName="DialogFooter";var to=Le.forwardRef(({className:e,...t},r)=>te(F.Title,{ref:r,className:i("text-xl font-semibold leading-none tracking-tight",e),...t}));to.displayName=F.Title.displayName;var ro=Le.forwardRef(({className:e,...t},r)=>te(F.Description,{ref:r,className:i("text-sm text-gray-500",e),...t}));ro.displayName=F.Description.displayName;var jt=({trigger:e=void 0,children:t,open:r,onOpenChange:o,hideCloseButton:a,footer:n,title:s,description:c,contentClassName:d,headerClassName:l,titleClassName:m,descriptionClassName:f,footerClassName:p,asChild:u=!0,onOpenAutoFocus:h,onCloseAutoFocus:b,onEscapeKeyDown:v,onInteractOutside:g,onPointerDownOutside:x,closeOnOutsideClick:C=!0,...S})=>{let R=Le.useCallback(N=>{C||N.preventDefault(),x?.(N)},[C,x]),P=Le.useCallback(N=>{C||N.preventDefault(),g?.(N)},[C,g]);return Ge(gn,{...S,...r!==void 0?{open:r,onOpenChange:o}:{},children:[te(vn,{asChild:u,children:e}),Ge(Kt,{className:d,hideCloseButton:a,onOpenAutoFocus:h,onCloseAutoFocus:b,onEscapeKeyDown:v,onPointerDownOutside:R,onInteractOutside:P,children:[s||c?Ge(Qr,{className:l,children:[s&&te(to,{className:m,children:s}),c&&te(ro,{className:f,children:c})]}):te(hn,{}),t,n&&te(eo,{className:p,children:n})]})]})};jt.displayName=F.Dialog.displayName;import{Fragment as J1,jsx as fe,jsxs as wn}from"react/jsx-runtime";var tt=ke.forwardRef(({className:e,...t},r)=>fe(U,{ref:r,className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));tt.displayName=U.displayName;var rt=ke.forwardRef(({className:e,CommandInputContainerClassName:t,loading:r,...o},a)=>wn("div",{className:i("flex items-center border-0 px-3 gap-2",t),"cmdk-input-wrapper":"",children:[r?fe(de,{size:16,colour:"secondary"}):fe(yn,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),fe(U.Input,{ref:a,className:i("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),disabled:r,...o})]}));rt.displayName=U.Input.displayName;var ot=ke.forwardRef(({className:e,...t},r)=>fe(U.List,{ref:r,className:i("overflow-y-auto overflow-x-hidden",e),...t}));ot.displayName=U.List.displayName;var at=ke.forwardRef((e,t)=>fe(U.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));at.displayName=U.Empty.displayName;var nt=ke.forwardRef(({className:e,...t},r)=>fe(U.Group,{ref:r,className:i("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));nt.displayName=U.Group.displayName;var xn=ke.forwardRef(({className:e,...t},r)=>fe(U.Separator,{ref:r,className:i("-mx-1 h-px bg-border",e),...t}));xn.displayName=U.Separator.displayName;var it=ke.forwardRef(({className:e,...t},r)=>fe(U.Item,{ref:r,className:i("relative text=[#222222] flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-primary-accent data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));it.displayName=U.Item.displayName;var Cn=({className:e,...t})=>fe("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Cn.displayName="CommandShortcut";import*as Xt from"react";import*as ae from"@radix-ui/react-popover";import{jsx as We,jsxs as Nn}from"react/jsx-runtime";var K=ae.Root,H=Xt.forwardRef((e,t)=>We(ae.Trigger,{ref:t,...e,onPointerDown:r=>{e.onPointerDown?.(r)}}));H.displayName=ae.Trigger.displayName;var z=Xt.forwardRef(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,...a},n)=>o?We(ae.Portal,{children:We(ae.Content,{ref:n,align:t,sideOffset:r,className:i("pointer-events-auto z-50 w-72 rounded-md border border-transparent bg-white p-4 text-[#191919] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),onOpenAutoFocus:a.onOpenAutoFocus,onCloseAutoFocus:a.onCloseAutoFocus,...a})}):We(ae.Content,{ref:n,align:t,sideOffset:r,className:i("pointer-events-auto z-50 w-72 rounded-md border border-transparent bg-white p-4 text-[#191919] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),onOpenAutoFocus:a.onOpenAutoFocus,onCloseAutoFocus:a.onCloseAutoFocus,...a}));z.displayName=ae.Content.displayName;var ne=({trigger:e,children:t,open:r,onOpenChange:o,contentClassName:a,asChild:n=!0,align:s,side:c,alignOffset:d,triggerClassName:l,sideOffset:m,onOpenAutoFocus:f,onCloseAutoFocus:p,portal:u=!0,id:h="popover",...b})=>Nn(K,{...b,...r!==void 0?{open:r,onOpenChange:o}:{},children:[We(H,{asChild:n,className:l,id:`${h}-trigger`,children:e}),We(z,{alignOffset:d,sideOffset:m,side:c,align:s,className:a,onOpenAutoFocus:f,onCloseAutoFocus:p,portal:u,id:`${h}-content`,children:t})]});ne.displayName=ae.Root.displayName;import*as Yt from"react";import*as ie from"@radix-ui/react-scroll-area";import{jsx as st,jsxs as Rn}from"react/jsx-runtime";var se=Yt.forwardRef(({className:e,viewPortClassName:t,children:r,...o},a)=>Rn(ie.Root,{ref:a,className:i("relative overflow-hidden",e),...o,children:[st(ie.Viewport,{className:i("h-full w-full rounded-[inherit]",t),children:r}),st(Rt,{}),st(ie.Corner,{})]}));se.displayName=ie.Root.displayName;var Rt=Yt.forwardRef(({className:e,orientation:t="vertical",...r},o)=>st(ie.ScrollAreaScrollbar,{ref:o,orientation:t,className:i("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:st(ie.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-[#959595] transition hover:bg-[#808080]"})}));Rt.displayName=ie.ScrollAreaScrollbar.displayName;import{jsx as le,jsxs as Pt}from"react/jsx-runtime";var oo=({className:e,value:t,placeholder:r="",status:o,disabled:a,id:n})=>le(H,{asChild:!0,disabled:a,id:n??"searchable-trigger",children:Pt("button",{disabled:a,className:i(W({status:o}),"[&>span]:justify-start [&>span]:items-center gap-2 flex h-12 w-full items-center justify-between goup",t?"":"text-[#79818C]",e),children:[le("span",{children:t??r??"Select options..."}),le("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:le("path",{d:"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),Lt=({options:e=[],value:t,onChange:r,containerClassName:o,placeholder:a,disabled:n,loading:s,optionComponent:c,children:d,modal:l=!1,hideSearch:m,className:f,inputValue:p,onValueChange:u,onInputValueChange:h})=>{let[b,v]=Be.useState(!1),[g,x]=Be.useState(void 0),C=Be.useRef(null),S=Be.useCallback(R=>{if(C.current&&(C.current.disconnect(),C.current=null),R){let P=()=>{x(R.getBoundingClientRect().width)};P();let N=new ResizeObserver(()=>{P()});N.observe(R),C.current=N}},[]);return Pt(K,{modal:l,open:b,onOpenChange:v,children:[le("div",{className:i("w-full",f),ref:S,children:d}),le(z,{portal:!l,className:"p-0 min-w-[200px]",style:{width:g?`${g}px`:void 0},children:Pt(tt,{className:i("relative max-h-[270px]",{"mt-2":!m}),children:[!m&&le(rt,{loading:s,placeholder:a??"Search options...",onValueChange:h,value:p,CommandInputContainerClassName:"mx-2 border rounded-md border-[#DEDEDE]"}),le(se,{viewPortClassName:"max-h-[225px]",className:i("w-full px-0 h-full overflow-y-auto",o),children:Pt(ot,{children:[!m&&le(at,{children:"No result found."}),le(nt,{className:"w-full",children:e?.map((R,P)=>le(it,{defaultValue:t?.label,value:R.label,disabled:n,onSelect:()=>{r(R),v(!1),u?.(R?.value)},id:R.value,children:c?c(R):le("span",{children:R.label})},`${R.value}-${P}`))})]})})]})})]})};var Pn=[{countryCode:"GLOBAL",countryName:"Global",currency:"Dollars",currencyCode:"USD",internetCountryCode:"GLOBAL"},{countryName:"Benin",countryCode:"+229",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"BJ"},{countryName:"Burkina Faso",countryCode:"+226",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"BF"},{countryName:"Cameroon",countryCode:"+237",currency:"Central African CFA franc",currencyCode:"XAF",currencyIcon:"Fr",internetCountryCode:"CM"},{countryName:"Chad",countryCode:"+235",currency:"Central African CFA franc",currencyCode:"XAF",currencyIcon:"Fr",internetCountryCode:"TD"},{countryName:"DR Congo",countryCode:"+243",currency:"Congolese franc",currencyCode:"CDF",currencyIcon:"FC",internetCountryCode:"CD"},{countryName:"Eswatini",countryCode:"+268",currency:"Swazi lilangeni",currencyCode:"SZL",currencyIcon:"L",internetCountryCode:"SZ"},{countryName:"Gabon",countryCode:"+241",currency:"Central African CFA franc",currencyCode:"XAF",currencyIcon:"Fr",internetCountryCode:"GA"},{countryName:"Ghana",countryCode:"+233",currency:"Ghanaian cedi",currencyCode:"GHS",currencyIcon:"\u20B5",internetCountryCode:"GH"},{countryName:"Guinea",countryCode:"+224",currency:"Guinean franc",currencyCode:"GNF",currencyIcon:"Fr",internetCountryCode:"GN"},{countryName:"Ivory Coast",countryCode:"+225",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"CI"},{countryName:"Kenya",countryCode:"+254",currency:"Kenyan shilling",currencyCode:"KES",currencyIcon:"Sh",internetCountryCode:"KE"},{countryName:"Lesotho",countryCode:"+266",currency:"Lesotho loti",currencyCode:"LSL",currencyIcon:"L",internetCountryCode:"LS"},{countryName:"Liberia",countryCode:"+231",currency:"Liberian dollar",currencyCode:"LRD",currencyIcon:"$",internetCountryCode:"LR"},{countryName:"Madagascar",countryCode:"+261",currency:"Malagasy ariary",currencyCode:"MGA",currencyIcon:"Ar",internetCountryCode:"MG"},{countryName:"Malawi",countryCode:"+265",currency:"Malawian kwacha",currencyCode:"MWK",currencyIcon:"MK",internetCountryCode:"MW"},{countryName:"Mali",countryCode:"+223",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"ML"},{countryName:"Mozambique",countryCode:"+258",currency:"Mozambican metical",currencyCode:"MZN",currencyIcon:"MT",internetCountryCode:"MZ"},{countryName:"Namibia",countryCode:"+264",currency:"Namibian dollar",currencyCode:"NAD",currencyIcon:"$",internetCountryCode:"NA"},{countryName:"Niger",countryCode:"+227",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"NE"},{countryName:"Nigeria",countryCode:"+234",currency:"Nigerian naira",currencyCode:"NGN",currencyIcon:"\u20A6",internetCountryCode:"NG"},{countryName:"Republic of the Congo",countryCode:"+242",currency:"Central African CFA franc",currencyCode:"XAF",currencyIcon:"Fr",internetCountryCode:"CG"},{countryName:"Rwanda",countryCode:"+250",currency:"Rwandan franc",currencyCode:"RWF",currencyIcon:"Fr",internetCountryCode:"RW"},{countryName:"Senegal",countryCode:"+221",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"SN"},{countryName:"Seychelles",countryCode:"+248",currency:"Seychellois rupee",currencyCode:"SCR",currencyIcon:"\u20A8",internetCountryCode:"SC"},{countryName:"South Africa",countryCode:"+27",currency:"South African rand",currencyCode:"ZAR",currencyIcon:"R",internetCountryCode:"ZA"},{countryName:"South Sudan",countryCode:"+211",currency:"South Sudanese pound",currencyCode:"SSP",currencyIcon:"\xA3",internetCountryCode:"SS"},{countryName:"Tanzania",countryCode:"+255",currency:"Tanzanian shilling",currencyCode:"TZS",currencyIcon:"Sh",internetCountryCode:"TZ"},{countryName:"Togo",countryCode:"+228",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"TG"},{countryName:"Uganda",countryCode:"+256",currency:"Ugandan shilling",currencyCode:"UGX",currencyIcon:"Sh",internetCountryCode:"UG"},{countryName:"Zambia",countryCode:"+260",currency:"Zambian kwacha",currencyCode:"ZMW",currencyIcon:"ZK",internetCountryCode:"ZM"}],ao=e=>{if(!e)return Pn?.map(r=>({value:r?.internetCountryCode,label:r?.countryName,...r}));if(!e?.length)return[];let t=new Set;return e.reduce((r,o)=>(t.has(o.value)||(t.add(o.value),r.push(o)),r),[])};import*as dt from"react";import*as kt from"react-phone-number-input";import Dn from"react-phone-number-input/flags";import{jsx as lt,jsxs as kn}from"react/jsx-runtime";var Ln=e=>kn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[lt("rect",{width:"32",height:"32",fill:"#60A5FA"})," ",lt("path",{d:"M3 10L7 8L10 9L13 8L16 10L19 9L22 11L25 10L28 12V15L26 17L28 19L27 22L29 24L27 26L24 25L21 26L18 24L15 25L12 23L9 24L6 22L4 23L2 21V18L4 16L3 13L5 11L3 10Z",fill:"#34D399"}),lt("rect",{x:"2",y:"28",width:"28",height:"3",fill:"#D1D5DB"}),lt("path",{d:"M0 16H32M8 0V32M16 0V32M24 0V32",stroke:"#2563EB",strokeWidth:"0.5",vectorEffect:"non-scaling-stroke"}),lt("path",{d:"M0 16H32",stroke:"#2563EB",strokeWidth:"1",vectorEffect:"non-scaling-stroke"})]}),no=Ln;import{jsx as D,jsxs as ct}from"react/jsx-runtime";var io=dt.forwardRef(({className:e,onChange:t,defaultCountry:r="NG",disableCountrySelect:o=!1,modal:a,showAsterisk:n,label:s,description:c,error:d,countryOptions:l,...m},f)=>{let p=u=>D(Tn,{...u,status:m.status,modal:a,options:l||u?.options});return ct("div",{className:"relative space-y-1",children:[D(M,{showAsterisk:n,error:d,children:s}),D(kt.default,{ref:f,className:i("flex sentry-mask",e),flagComponent:De,countrySelectComponent:u=>D(p,{...u,disabled:u?.disabled||o}),inputComponent:so,defaultCountry:r,onChange:u=>{t&&t?.(u)},...m}),D(pe,{className:"text-gray-400 text-sm !font-normal",children:c}),D(ee,{error:d})]})});io.displayName="PhoneInput";var so=dt.forwardRef(({className:e,...t},r)=>D(_,{className:i("!rounded-s-none h-10",e),...t,ref:r}));so.displayName="InputComponent";var Tn=({disabled:e,value:t,onChange:r,options:o,status:a,modal:n})=>{let s=dt.useCallback(c=>{r(c)},[r]);return ct(K,{modal:n,children:[D(H,{disabled:e,children:ct("div",{className:i(W({status:a}),"transition justify-center items-center disabled:text-base-500 flex gap-3 h-10 rounded-e-none border-e-0 pl-2 pr-2"),children:[D(De,{country:t,countryName:t}),D("svg",{className:i("mr-0.5 h-4 w-4 opacity-50",e?"hidden":"opacity-100"),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:D("path",{d:"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825",stroke:"#959595",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),D(z,{portal:!n,className:"w-[200px] md:w-[300px] p-0",children:D(tt,{children:D(ot,{children:ct(se,{className:"h-72",children:[D(rt,{placeholder:"Search country..."}),D(at,{children:"No country found."}),D(nt,{children:o.filter(c=>c.value).map(c=>ct(it,{className:"gap-2",onSelect:()=>s(c.value),children:[D(De,{country:c.value,countryName:c.label}),D("span",{className:"flex-1 text-sm",children:c.label}),c.value&&D("span",{className:"text-[#191919]/50 text-sm dark:text-white",children:`+${kt.getCountryCallingCode(c.value)}`}),D("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:i("ml-auto",c.value===t?"opacity-100":"opacity-0"),children:D("path",{d:"M4 8.00008L6.66353 10.6636L12 5.33655",stroke:"#959595",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"})})]},`${c.value}-${c.label}`))})]})})})})]})},De=({country:e,countryName:t,className:r})=>{let o=Dn[e];return e==="GLOBAL"?D("span",{className:i("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:D(no,{className:"w-full h-[90%]"})}):D("span",{className:i("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:o&&D(o,{title:t})})};De.displayName="FlagComponent";import{jsx as $,jsxs as pt}from"react/jsx-runtime";var Sn=({className:e,value:t,placeholder:r="",status:o,disabled:a})=>$(H,{asChild:!0,disabled:a,id:"country-dropdown",children:pt("button",{disabled:a,className:i(W({status:o}),"[&>span]:justify-start [&>span]:items-center gap-2 flex w-full items-center justify-between goup",t?"":"text-[#79818C]",e),children:[t?pt("div",{className:"flex gap-2 items-center",children:[$(De,{country:t?.value,countryName:t?.value,className:"ml-1 !w-6 h-5"}),$("span",{className:"",children:t?.label}),"-",$("span",{className:"",children:t?.value})]}):$("span",{children:r??"Select options..."}),$("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:$("path",{d:"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),Fn=({hideSearch:e=!0,showAsterisk:t,label:r,description:o,error:a,countryOptions:n=void 0,...s})=>{let c=ao(n),d=c?.find(l=>(l?.value||l?.internetCountryCode)===s?.value?.value);return pt("div",{className:"relative space-y-1",children:[$(M,{showAsterisk:t,error:a,children:r}),$(Lt,{options:c,hideSearch:e,optionComponent:l=>pt("div",{className:"w-full flex items-center gap-2",children:[$(De,{country:l?.internetCountryCode||l?.value,countryName:l?.label,className:"ml-2 !w-6 !h-5"}),pt("div",{className:"flex-1 flex items-center gap-2",children:[$("span",{className:"flex text-sm",children:l?.label}),"-",$("span",{className:"text-sm",children:l?.internetCountryCode})]})]}),...s,children:$(Sn,{value:d,status:s?.status,placeholder:s?.placeholder??" Select Country"})}),$(pe,{className:"text-gray-400 text-sm !font-normal",children:o}),$(ee,{error:a})]})};import{jsx as mt,jsxs as En}from"react/jsx-runtime";var Te=({showAsterisk:e,label:t,description:r,error:o,hideSearch:a=!1,status:n,...s})=>En("div",{className:"relative space-y-1",children:[mt(M,{showAsterisk:e,error:o,children:t}),mt(Lt,{hideSearch:a,...s,containerClassName:"h-full",children:mt(oo,{disabled:s?.disabled,placeholder:s?.placeholder??"Select",status:n,value:s?.value?.label??s?.value?.value,className:s?.className,id:s?.id})}),mt(pe,{className:"text-gray-400 text-sm !font-normal",children:r}),mt(ee,{error:o})]});import{cva as An}from"class-variance-authority";import{useMemo as Mn}from"react";import In from"react-otp-input";import{jsx as lo}from"react/jsx-runtime";var Bn=An("transition cursor-default placeholder:text-black dark:placeholder:text-white rounded-lg !h-14 !w-14 border aspect-square text-base font-semibold tracking-normal outline-none placeholder:text-sm placeholder:font-normal text-black focus:bg-white flex-shrink-0",{variants:{status:{default:"border-gray-300 dark:border-[#d4d4d4] focus:border-gray-400 focus-visible:!ring-offset-gray-200 focus:ring-offset-gray-200 !ring-gray-200 !focus-visible:ring-1 bg-white dark:!bg-transparent dark:focus-visible:!ring-0 dark:focus-within:!bg-transparent dark:text-white dark:focus-within:border-[#9299A2] dark:border-[#676767] dark:disabled:!border-[#9299A2]",error:"placeholder:text-red-600 bg-red-50 border-red-600 text-red-600 focus-within:bg-red-50 focus-within:border-red-600",loading:"placeholder:text-[#C4C4C4]"}},defaultVariants:{status:"default"}}),Vn=({numInputs:e=4,inputStyle:t,containerStyle:r,placeholder:o="-",status:a,inputMode:n="numeric",inputType:s="number",...c})=>{let d=Mn(()=>o||new Array(e).fill("").reduce((f,p)=>f+=p,""),[e,o]);return lo(In,{numInputs:e,placeholder:d,containerStyle:i("w-fit sentry-mask flex justify-between",r),inputStyle:i(Bn({status:a}),t,"sentry-mask"),renderInput:l=>lo("input",{...l,inputMode:n,type:s}),inputType:s,...c})};import*as ge from"@radix-ui/react-accordion";import{ChevronDown as On}from"lucide-react";import{jsx as ut,jsxs as co}from"react/jsx-runtime";function Hn({items:e,type:t="single",defaultValue:r,onChange:o,className:a}){return ut(ge.Root,{...t==="single"?{type:"single",collapsible:!0,defaultValue:r,onValueChange:o}:{type:"multiple",defaultValue:r,onValueChange:o},className:i("w-full flex flex-col gap-2.5",a),children:e.map(s=>co(ge.Item,{value:s.key,className:"border border-gray-300 rounded-md overflow-hidden",children:[ut(ge.Header,{className:"flex",children:co(ge.Trigger,{className:"group flex flex-1 items-center justify-between px-4 py-3 text-sm font-medium text-gray-800 hover:bg-gray-200/50 transition-all data-[state=open]:bg-gray-200/50",children:[s.title,ut(On,{className:"h-4 w-4 shrink-0 text-gray-500 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})}),ut(ge.Content,{className:"overflow-hidden data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up",children:ut("div",{className:"px-4 py-3 border-t border-gray-300",children:s.content})})]},s.key))})}import{useState as _n,useEffect as Gn}from"react";import{jsx as I,jsxs as Ve}from"react/jsx-runtime";var Wn=({type:e})=>e==="gray"?I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I("path",{d:"M10 0C4.49 0 0 4.49 0 10C0 15.51 4.49 20 10 20C15.51 20 20 15.51 20 10C20 4.49 15.51 0 10 0ZM14.78 7.7L9.11 13.37C8.97 13.51 8.78 13.59 8.58 13.59C8.38 13.59 8.19 13.51 8.05 13.37L5.22 10.54C4.93 10.25 4.93 9.77 5.22 9.48C5.51 9.19 5.99 9.19 6.28 9.48L8.58 11.78L13.72 6.64C14.01 6.35 14.49 6.35 14.78 6.64C15.07 6.93 15.07 7.4 14.78 7.7Z",fill:"#79818C"})}):e==="info"?I("svg",{stroke:"#70B6F6",fill:"#70B6F6",strokeWidth:"0",viewBox:"0 0 16 16",height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:I("path",{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2"})}):e==="warning"?I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I("path",{d:"M9.99984 1.66663C5.40817 1.66663 1.6665 5.40829 1.6665 9.99996C1.6665 14.5916 5.40817 18.3333 9.99984 18.3333C14.5915 18.3333 18.3332 14.5916 18.3332 9.99996C18.3332 5.40829 14.5915 1.66663 9.99984 1.66663ZM9.37484 6.66663C9.37484 6.32496 9.65817 6.04163 9.99984 6.04163C10.3415 6.04163 10.6248 6.32496 10.6248 6.66663V10.8333C10.6248 11.175 10.3415 11.4583 9.99984 11.4583C9.65817 11.4583 9.37484 11.175 9.37484 10.8333V6.66663ZM10.7665 13.65C10.7248 13.7583 10.6665 13.8416 10.5915 13.925C10.5082 14 10.4165 14.0583 10.3165 14.1C10.2165 14.1416 10.1082 14.1666 9.99984 14.1666C9.8915 14.1666 9.78317 14.1416 9.68317 14.1C9.58317 14.0583 9.4915 14 9.40817 13.925C9.33317 13.8416 9.27484 13.7583 9.23317 13.65C9.1915 13.55 9.1665 13.4416 9.1665 13.3333C9.1665 13.225 9.1915 13.1166 9.23317 13.0166C9.27484 12.9166 9.33317 12.825 9.40817 12.7416C9.4915 12.6666 9.58317 12.6083 9.68317 12.5666C9.88317 12.4833 10.1165 12.4833 10.3165 12.5666C10.4165 12.6083 10.5082 12.6666 10.5915 12.7416C10.6665 12.825 10.7248 12.9166 10.7665 13.0166C10.8082 13.1166 10.8332 13.225 10.8332 13.3333C10.8332 13.4416 10.8082 13.55 10.7665 13.65Z",fill:"#FFC700"})}):e==="success"?I("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I("path",{d:"M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z",fill:"#00D488"})}):I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I("path",{d:"M9.99984 1.66663C5.40817 1.66663 1.6665 5.40829 1.6665 9.99996C1.6665 14.5916 5.40817 18.3333 9.99984 18.3333C14.5915 18.3333 18.3332 14.5916 18.3332 9.99996C18.3332 5.40829 14.5915 1.66663 9.99984 1.66663ZM9.37484 6.66663C9.37484 6.32496 9.65817 6.04163 9.99984 6.04163C10.3415 6.04163 10.6248 6.32496 10.6248 6.66663V10.8333C10.6248 11.175 10.3415 11.4583 9.99984 11.4583C9.65817 11.4583 9.37484 11.175 9.37484 10.8333V6.66663ZM10.7665 13.65C10.7248 13.7583 10.6665 13.8416 10.5915 13.925C10.5082 14 10.4165 14.0583 10.3165 14.1C10.2165 14.1416 10.1082 14.1666 9.99984 14.1666C9.8915 14.1666 9.78317 14.1416 9.68317 14.1C9.58317 14.0583 9.4915 14 9.40817 13.925C9.33317 13.8416 9.27484 13.7583 9.23317 13.65C9.1915 13.55 9.1665 13.4416 9.1665 13.3333C9.1665 13.225 9.1915 13.1166 9.23317 13.0166C9.27484 12.9166 9.33317 12.825 9.40817 12.7416C9.4915 12.6666 9.58317 12.6083 9.68317 12.5666C9.88317 12.4833 10.1165 12.4833 10.3165 12.5666C10.4165 12.6083 10.5082 12.6666 10.5915 12.7416C10.6665 12.825 10.7248 12.9166 10.7665 13.0166C10.8082 13.1166 10.8332 13.225 10.8332 13.3333C10.8332 13.4416 10.8082 13.55 10.7665 13.65Z",fill:"#F04248"})}),zn=({type:e="info",title:t,description:r,open:o,showCloseButton:a,bottomNode:n,sideNode:s,onClose:c,showIcon:d=!0})=>{let[l,m]=_n(o);Gn(()=>{m(o)},[o]);let f="",p="";switch(e){case"gray":f="#eeeef0",p="#79818c";break;case"info":f="#ebf5fd",p="#70B6F6";break;case"warning":f="#fff8df",p="#ffc700";break;case"success":f="#e0f9f0",p="#49e0aa";break;case"danger":f="#fde8e9",p="#f3777c";break;default:f="#eeeef0",p="#79818c";break}function u(){m(!1),c&&c()}return l?Ve("div",{className:"w-full shadow-lg transform flex items-center rounded-md",style:{background:f||"#ebf5fd"},children:[I("div",{className:"flex-none absolute rounded-l-[2px] rounded-l-4px h-[4px] w-full top-0",style:{background:p||"#70B6F6"}}),Ve("div",{className:"w-full gap-3 h-full flex flex-row justify-between px-4 md:px-4 py-3 md:py-4",children:[Ve("div",{className:"flex flex-row gap-2.5 items-start w-full h-full",children:[d&&I("div",{className:"h-full flex justify-end",children:I(Wn,{type:e})}),Ve("div",{className:"w-full gap-3 h-full flex flex-col md:flex-row items-start justify-between",children:[Ve("div",{className:"flex-1 gap-3 h-full flex flex-col items-start justify-between",children:[(t||r)&&Ve("div",{children:[t&&I("div",{className:"text-sm font-bold text-[#191919]",children:t}),r&&I("div",{className:"text-sm font-normal text-[#5D5D5D] mt-1",children:r})]}),n]}),s]})]}),a&&I("div",{className:"w-1/10 h-full flex flex-col justify-start items-center",children:I("button",{onClick:u,children:Ve("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I("path",{d:"M3.3335 3.33337L12.6662 12.6661",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),I("path",{d:"M3.33429 12.6661L12.667 3.33337",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})})]})]}):null};import{useState as Zn}from"react";import{Copy as Un,CheckIcon as Kn}from"lucide-react";import{motion as jn,AnimatePresence as Xn}from"framer-motion";import{jsx as $n}from"react/jsx-runtime";var ze=({children:e,mode:t="truncate",className:r,as:o="div",...a})=>$n(o,{className:i({"text-ellipsis overflow-hidden whitespace-nowrap":t==="truncate","whitespace-normal break-words":t==="wrap","":t==="overflow"},r),target:a?.href?"_blank":void 0,...a,children:e});import{jsx as $e,jsxs as qn}from"react/jsx-runtime";var Yn=({text:e,textToCopy:t,onCopy:r,iconsPosition:o="right",clampText:a=!0,clampMode:n="truncate",isLink:s=!1,textClassName:c})=>{let[d,l]=Zn(!1),m=()=>{navigator.clipboard.writeText(t??e).then(()=>{l(!0),r?.(),setTimeout(()=>l(!1),2e3)})},f=d?Kn:Un;return qn("div",{className:"flex items-center space-x-2 cursor-pointer text-[#717171] bg-gray-100 w-fit max-w-full rounded-md p-1 px-2",children:[o==="left"&&$e(po,{Icon:f,onClick:m,copied:d}),$e(ze,{as:s?"a":"span",mode:a?n:"overflow",className:i({underline:s},c),href:s?e:void 0,children:e}),o==="right"&&$e(po,{Icon:f,onClick:m,copied:d})]})},po=({Icon:e,onClick:t,copied:r})=>$e(Xn,{mode:"wait",children:$e(jn.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},onClick:t,children:$e(e,{className:`w-5 h-5 ${r?"text-green-500":"text-gray-500 hover:text-gray-700 transition"}`})},r?"check":"copy")});import{useEffect as mo,useState as Jn}from"react";import{Search as Qn}from"lucide-react";import{jsx as uo}from"react/jsx-runtime";var qt=({value:e,onChange:t,debounce:r=500,addon:o,...a})=>{let[n,s]=Jn(e??""),c=d=>s(d.target.value);return mo(()=>{e&&s(e)},[e]),mo(()=>{let d=setTimeout(()=>{t(n)},r);return()=>clearTimeout(d)},[n,r,t]),uo(_,{leftNode:o??uo(Qn,{className:" w-4 h-4 text-gray-400"}),sideNodeClassName:"bg-transparent !pr-0 !w-4 border-0 !min-w-[40px]",...a,className:i("!pl-0 py-1 border-[.5px] border-[#E9EBF8] rounded-xl text-sm w-full h-8 focus:outline-none focus:placeholder:hidden focus:!ring-2 !focus:ring-primary-main bg-[#F5F8FF] focus-within:!bg-transparent placeholder:text-xs",a?.className),onChange:c,value:n})};import{useEffect as fo}from"react";import{X as ei}from"lucide-react";import{jsx as ve,jsxs as Ze}from"react/jsx-runtime";var ti=e=>{let{environment:t,branch:r,version:o,deployTime:a,showBanner:n,onClose:s,initDefault:c,removeFromStorage:d,syncLocalStorageToState:l}=e,m=t||process.env.NEXT_PUBLIC_NODE_ENV;return m!=="staging"&&m!=="sandbox"||(fo(()=>{l()},[l]),fo(()=>{let f;return(m==="staging"||m==="sandbox")&&(f=setInterval(()=>{d(),c()},300*1e3)),()=>{f&&clearInterval(f)}},[n,t,s,d,c,m]),!n)?null:Ze("div",{className:"w-fit p-4 border shadow-md bg-white rounded-md z-[99999] absolute top-2 right-2 min-w-96",children:[ve("button",{onClick:s,className:"absolute top-2 right-2",children:ve(ei,{})}),Ze("div",{className:"space-y-2 text-sm",children:[Ze("div",{className:"flex gap-2",children:[ve("span",{className:"font-medium",children:"Environment:"}),ve("span",{className:"text-blue-600 capitalize",children:m})]}),Ze("div",{className:"flex gap-2",children:[ve("span",{className:"font-medium",children:"Branch:"}),ve("span",{className:"text-green-600 capitalize",children:r||process.env.NEXT_PUBLIC_DEPLOY_BRANCH})]}),Ze("div",{className:"flex gap-2",children:[ve("span",{className:"font-medium",children:"Version:"}),ve("span",{className:"text-purple-600",children:o||process.env.NEXT_PUBLIC_DEPLOY_VERSION})]}),Ze("div",{className:"flex gap-2",children:[ve("span",{className:"font-medium",children:"Deploy Time:"}),ve("span",{className:"text-orange-600",children:a||process.env.NEXT_PUBLIC_DEPLOY_TIME})]})]})]})};import*as ft from"react";import{Drawer as re}from"vaul";import{cva as ni}from"class-variance-authority";import{jsx as go,jsxs as ri}from"react/jsx-runtime";var vo=()=>ri("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-x",children:[go("path",{d:"M18 6 6 18"}),go("path",{d:"m6 6 12 12"})]});import{useState as oi,useEffect as ai}from"react";function bo(){let[e,t]=oi({width:100,height:100});return ai(()=>{function r(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",r),r(),()=>window.removeEventListener("resize",r)},[]),e}import{Fragment as pi,jsx as G,jsxs as Ue}from"react/jsx-runtime";var Jt=({shouldScaleBackground:e=!1,...t})=>G(re.Root,{direction:"right",shouldScaleBackground:e,...t});Jt.displayName="Drawer";var ii=re.Trigger,si=re.Close,li=re.Portal,ho=ft.forwardRef(({className:e,...t},r)=>G(re.Overlay,{className:i("fixed inset-0 z-40 bg-black/75 !m-0 !p-0 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));ho.displayName=re.Overlay.displayName;var ci=ni("fixed focus-visible:outline-0 z-50 gap-4 bg-white shadow-lg dark:bg-[#2B2B2B] dark:text-white transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 dark:border-none !select-text",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top rounded-b-lg",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom rounded-t-lg",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-[512px] ",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-[512px]"}},defaultVariants:{side:"right"}}),yo=ft.forwardRef(({side:e="right",hideCloseButton:t,className:r,children:o,id:a,...n},s)=>Ue(li,{children:[G(ho,{}),Ue(re.Content,{ref:s,className:i(ci({side:e}),r),...n,children:[G("button",{className:"bg-gray-300 block md:!hidden mx-auto mt-4 md:!mt-0 h-1.5 w-[80px] rounded-full opacity-70 transition-opacity hover:opacity-100 relative"}),o,!t&&Ue(re.Close,{id:`${a}-close-button`,className:"absolute right-2 top-3 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[G(vo,{}),G("span",{className:"sr-only",children:"Close"})]})]})]}));yo.displayName=re.Content.displayName;var xo=({className:e,...t})=>G("div",{className:i("text-lg flex flex-col border-b border-b-gray-200 space-y-1 text-left w-full p-3",e),...t});xo.displayName="DrawerHeader";var Co=({className:e,...t})=>G("div",{className:i("flex flex-col-reverse sm:flex-row m-auto right-0 left-0 p-3 sm:space-x-2 border-t border-t-[#EDEDED] dark:border-t-[#242424] w-full",e),...t});Co.displayName="DrawerFooter";var wo=ft.forwardRef(({className:e,...t},r)=>G(re.Title,{ref:r,className:i("text-xl font-semibold text-[#191919] dark:text-white",e),...t}));wo.displayName=re.Title.displayName;var No=ft.forwardRef(({className:e,...t},r)=>G(re.Description,{ref:r,className:i("text-xs text-[#5d5c5c] dark:text-white",e),...t}));No.displayName=re.Description.displayName;var di=({trigger:e=void 0,children:t,open:r=void 0,onOpenChange:o=void 0,hideCloseButton:a,footer:n,title:s,description:c,contentClassName:d,headerClassName:l,titleClassName:m,descriptionClassName:f,footerClassName:p,asChild:u=!0,onOpenAutoFocus:h,drawerContentClassName:b,onCloseAutoFocus:v,id:g="drawer",modal:x=!0})=>{let{width:C}=bo(),R=C<768?"bottom":"right";return Ue(Jt,{modal:x,...r!==void 0?{open:r,onOpenChange:o}:{},direction:R,children:[G(ii,{className:"cursor-pointer",asChild:u,id:`${g}-open-trigger`,children:e}),Ue(yo,{className:i("flex flex-col gap-0 justify-start items-start md:max-h-full w-full !max-w-md max-md:!max-w-full max-md:!rounded-none",d),side:"right",hideCloseButton:a,onOpenAutoFocus:h,onCloseAutoFocus:v,id:`${g}-content`,children:[s||c?Ue(xo,{className:l,id:`${g}-header`,children:[s&&G(wo,{className:m,id:`${g}-title`,children:s}),c&&G(No,{id:`${g}-description`,className:f,children:c})]}):G(pi,{}),G("div",{"data-vaul-no-drag":!0,className:i("flex w-full overflow-y-auto overscroll-auto flex-col justify-start items-start p-4 flex-1 min-h-0",b),children:t}),n&&G(Co,{className:p,children:n})]})]})};import{jsx as Ro}from"react/jsx-runtime";var Po=()=>Ro("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",className:"h-5 w-5",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:Ro("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})});import{jsx as gt,jsxs as mi}from"react/jsx-runtime";var Lo=e=>mi("svg",{viewBox:"0 0 60 30",className:"w-full max-w-md h-auto","aria-label":"Union Jack - Flag of the United Kingdom",...e,children:[gt("rect",{width:"60",height:"30",fill:"#00247D"}),gt("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#FFFFFF",strokeWidth:"6"}),gt("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#CF142B",strokeWidth:"4"}),gt("path",{d:"M30,0 L30,30 M0,15 L60,15",stroke:"#FFFFFF",strokeWidth:"10"}),gt("path",{d:"M30,0 L30,30 M0,15 L60,15",stroke:"#CF142B",strokeWidth:"6"})]});import{jsx as Qt,jsxs as ui}from"react/jsx-runtime";var ko=e=>ui("svg",{viewBox:"0 0 60 40",className:"w-full max-w-md h-auto","aria-label":"Tricolore - Flag of France",...e,children:[Qt("rect",{x:"0",y:"0",width:"20",height:"40",fill:"#002395"}),Qt("rect",{x:"20",y:"0",width:"20",height:"40",fill:"#FFFFFF"}),Qt("rect",{x:"40",y:"0",width:"20",height:"40",fill:"#ED2939"})]});import{jsx as Do,jsxs as fi}from"react/jsx-runtime";var To=()=>fi("svg",{width:"20",height:"18",viewBox:"0 0 8 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Do("path",{d:"M5.50257 12.9395L3.68439 14.7576L1.86621 12.9395",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),Do("path",{d:"M5.50257 5.06055L3.68439 3.24237L1.86621 5.06055",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});import{PopoverClose as gi}from"@radix-ui/react-popover";import{jsx as oe,jsxs as er}from"react/jsx-runtime";var vi=[{key:"en",label:"English"},{key:"fr",label:"French"}],bi=({locale:e})=>e==="fr"?oe(ko,{width:10}):oe(Lo,{width:10}),hi=({locale:e})=>oe("div",{className:"px-2 py-1 ",children:er("div",{className:"flex items-center gap-2.5",children:[oe(bi,{locale:e})," ",oe("span",{className:"uppercase",children:e}),oe(To,{})]})}),yi=({locale:e="en",onChange:t,locales:r=vi})=>er(K,{children:[oe("div",{className:"flex items-center gap-2 px-2 py-1 rounded-lg shadow border-[0.5px] border-gray-50/50 text-current bg-white/10 ",children:oe(H,{className:"!p-0 !bg-transparent ",id:"locale_select_dropdown",children:oe(hi,{locale:e})})}),oe(z,{side:"bottom",className:"p-0 max-w-max rounded-md overflow-hidden mx-auto mt-2",children:oe("div",{children:r?.map(o=>er(gi,{type:"button",id:`locale_option_${o?.key}`,className:i("flex items-center gap-3 px-3 py-1 text-sm hover:bg-blue-50 w-full transition-all",{"bg-blue-100":e&&e===o?.key}),onClick:()=>t?.(o?.key),children:[oe("span",{children:o?.label})," ",e&&e===o?.key&&oe(Po,{})]},o?.key))})})]});import{X as Ui}from"lucide-react";import{useMemo as Uo,useRef as Ki,useState as ji}from"react";import{AnimatePresence as xi,motion as Ci}from"framer-motion";import{useMemo as wi,useState as Ni}from"react";import{HiCheck as Ri}from"react-icons/hi";import{FiLogOut as Pi}from"react-icons/fi";import{BsPlus as Li}from"react-icons/bs";import{jsx as tr,jsxs as rr}from"react/jsx-runtime";var vt=({activeBusiness:e,onTriggerClick:t,iconOnly:r=!1,className:o,rightNode:a})=>rr("div",{id:"sidemenu_business_bar",role:"button",onClick:t||void 0,className:i("relative flex w-full items-center rounded-lg text-black bg-white",{"border-[.5px] border-[#E9EBF8] py-1 px-2":!r,"hover:bg-primary-accent transition-all duration-150 cursor-pointer ":!!t},o),children:[tr("section",{className:i("flex items-center justify-center bg-[#E9EBF8] text-primary-main rounded-md mr-3 text-xl font-medium",{"w-10 h-10":!r,"w-full h-10 mr-0":r}),children:e?.name?.charAt(0)||"M"}),!r&&rr("section",{className:"flex-1 flex justify-between items-center relative text-black w-full -space-y-1 tracking-wide",children:[rr("div",{className:"flex-1 min-w-0 max-w-[150px] w-full",children:[tr(ze,{as:"h2",className:"text-base capitalize font-medium",children:e?.name}),tr(ze,{as:"p",className:"text-sm text-[#A5A5A5]",onClick:void 0,children:e?.email})]}),a]})]});import{ChevronUp as ki}from"lucide-react";import{jsx as So}from"react/jsx-runtime";var Fo=e=>So("svg",{width:"9",height:"8",viewBox:"0 0 9 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:So("circle",{cx:"4.5",cy:"4",r:"4",fill:"#62C554"})});import{jsx as j,jsxs as or}from"react/jsx-runtime";var Di={hidden:{y:"-12px",opacity:0},visible:{y:"0",opacity:1,transition:{type:"spring",damping:25,stiffness:500}},exit:{y:"-12px",opacity:0,transition:{type:"spring",damping:25,stiffness:500}}},Eo=({activeBusiness:e,toggleAddBusinessDrawer:t,businesses:r=[],handleSwitchBusiness:o,onLogoutClick:a,onToggleSideBar:n,toggleShowBusiness:s,isMobile:c,collapseType:d})=>{let[l,m]=Ni(""),f=wi(()=>{let g=l.toLowerCase();return(r||[]).filter(x=>x.name?.toLowerCase().startsWith(g))},[r,l]),p=d==="hidden"||c,u=g=>m(g.target.value),h=g=>{o(g||""),p&&n(!1),m("")},b=()=>{t(),s(!1),p&&n(!1),m("")},v=()=>{a?.(),s(!1),p&&n(!1),m("")};return j(xi,{initial:!1,children:j(Ci.div,{initial:"hidden",animate:"visible",exit:"exit",variants:Di,children:or("div",{className:"w-72 bg-white border-x border-t rounded-xl overflow-hidden p-3",style:{boxShadow:`
|
|
1
|
+
"use client";var Wa=Object.defineProperty;var za=(e,t,r)=>t in e?Wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ct=(e,t,r)=>za(e,typeof t!="symbol"?t+"":t,r);var Nr={USD:"$",CAD:"CA$",EUR:"\u20AC",AED:"AED",AFN:"Af",ALL:"ALL",AMD:"AMD",ARS:"AR$",AUD:"AU$",AZN:"man.",BAM:"KM",BDT:"Tk",BGN:"BGN",BHD:"BD",BIF:"FBu",BND:"BN$",BOB:"Bs",BRL:"R$",BWP:"BWP",BYN:"Br",BZD:"BZ$",CDF:"CDF",CHF:"CHF",CLP:"CL$",CNY:"CN\xA5",COP:"CO$",CRC:"\u20A1",CVE:"CV$",CZK:"K\u010D",DJF:"Fdj",DKK:"Dkr",DOP:"RD$",DZD:"DA",EEK:"Ekr",EGP:"EGP",ERN:"Nfk",ETB:"Br",GBP:"\xA3",GEL:"GEL",GHS:"GH\u20B5",GNF:"FG",GTQ:"GTQ",HKD:"HK$",HNL:"HNL",HRK:"kn",HUF:"Ft",IDR:"Rp",ILS:"\u20AA",INR:"\u20B9",IQD:"IQD",IRR:"IRR",ISK:"Ikr",JMD:"J$",JOD:"JD",JPY:"\xA5",KES:"Ksh",KHR:"KHR",KMF:"CF",KRW:"\u20A9",KWD:"KD",KZT:"KZT",LBP:"L.L.",LKR:"SLRs",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MMK:"MMK",MOP:"MOP$",MUR:"MURs",MXN:"MX$",MYR:"RM",MZN:"MTn",NAD:"N$",NGN:"\u20A6",NIO:"C$",NOK:"Nkr",NPR:"NPRs",NZD:"NZ$",OMR:"OMR",PAB:"B/.",PEN:"S/.",PHP:"\u20B1",PKR:"PKRs",PLN:"z\u0142",PYG:"\u20B2",QAR:"QR",RON:"RON",RSD:"din.",RUB:"RUB",RWF:"RWF",SAR:"SR",SDG:"SDG",SEK:"Skr",SGD:"S$",SOS:"Ssh",SYP:"SY\xA3",THB:"\u0E3F",TND:"DT",TOP:"T$",TRY:"TL",TTD:"TT$",TWD:"NT$",TZS:"TSh",UAH:"\u20B4",UGX:"USh",UYU:"$U",UZS:"UZS",VEF:"Bs.F.",VND:"\u20AB",XAF:"F CFA",XOF:"CFA",YER:"YR",ZAR:"R",ZMK:"ZK",ZWL:"ZWL$"},et=class et{static getCurrencyLocaleMap(t){return{XOF:"fr",XAF:"fr"}[t]||"en"}static koboToNaira(t){return+t/100}static nairaToKobo(t){return+t*100}static getCurrencySymbol(t){return Nr[t]||t}};Ct(et,"formatAmountAndCurrency",(t,r,o)=>{let a=new Intl.NumberFormat(o?.locale||et.getCurrencyLocaleMap(t),{maximumFractionDigits:3,style:"currency",currency:t,currencyDisplay:"symbol"}).format(o?.convertToMajorCurrency?et.koboToNaira(Number(r)):Number(r)).replace(/^(\D+)/,"$1 ").replace("\u202F"," ").replace(/\s+/,""),n=Nr[t]||t;return a.replace(t,n)});var Rr=et;import _t from"dayjs";var Pr=class{static getDateLibrary(){return _t()}static formatTimestampToDate(t,r){return _t.unix(t).format(r||"ddd, MMM, YYYY | HH:mm:ss")}static formatDateToTimestamp(t){return _t(t).unix()}};var Gt=class{static capitalizeFirstWord(t){return t.charAt(0).toUpperCase()+t.slice(1)}static capitalizeEachWord(t){return t.split(" ").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}};Ct(Gt,"sanitizeString",({str:t,allowedChars:r})=>{if(!r)return t.replace(/[^a-zA-Z0-9\s]/g,"");let o=r.map(n=>["^","$",".","*","+","?","(",")","[","]","{","}","|","\\","-"].includes(n)?"\\"+n:n),a=new RegExp(`[^a-zA-Z0-9${o.join("")}]`,"g");return t.replace(a,"")});import*as kr from"react";import*as q from"@radix-ui/react-tooltip";import{clsx as $a}from"clsx";import{twMerge as Za}from"tailwind-merge";function i(...e){return Za($a(e))}import{jsx as _e,jsxs as Lr}from"react/jsx-runtime";var Dr=q.Provider,Tr=q.Root,Sr=q.Trigger,Wt=kr.forwardRef(({className:e,sideOffset:t=2,...r},o)=>_e(q.Portal,{children:_e(q.Content,{ref:o,sideOffset:t,className:i("z-50 rounded-md border border-transparent bg-gray-50 px-3 py-1.5 text-base font-semibold text-bold text-black/40 shadow-xl- animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [box-shadow:3px_4px_11px_0px_#0000001A,13px_16px_21px_0px_#00000017,29px_36px_28px_0px_#0000000D,52px_65px_33px_0px_#00000003,82px_101px_36px_0px_#00000000]",e),...r,children:r.children})}));Wt.displayName=q.Content.displayName;var wt=({trigger:e,children:t,contentClassName:r,triggerClassName:o,asChild:a=!0,side:n,sideOffset:s,align:c,alignOffset:d,delayDuration:l=100,hasArrow:m=!0,arrowClassName:f,...p})=>_e(Dr,{children:_e(Tr,{delayDuration:l,...p,children:Lr("div",{className:"flex justify-center items-center",children:[_e(Sr,{asChild:a,className:o,children:e}),Lr(Wt,{side:n,sideOffset:s,align:c,alignOffset:d,className:r,children:[t,m&&_e(q.Arrow,{className:i("fill-white",f)})]})]})})});wt.displayName="Tooltip";import Xa from"react";import*as Fr from"react";import*as zt from"@radix-ui/react-label";import{cva as Ua}from"class-variance-authority";import{jsx as ja}from"react/jsx-runtime";var Ka=Ua("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),$t=Fr.forwardRef(({className:e,...t},r)=>ja(zt.Root,{ref:r,className:i(Ka(),e),...t}));$t.displayName=zt.Root.displayName;import{jsx as Er,jsxs as Ya}from"react/jsx-runtime";var M=Xa.forwardRef(({className:e,children:t,showAsterisk:r,error:o,...a},n)=>Er($t,{ref:n,className:i(o&&"text-red-500",e),...a,children:r?Ya("p",{children:[t,Er("span",{className:"text-red-500",children:"*"})]}):t}));M.displayName="FormLabel";import{jsx as Ar,jsxs as qa}from"react/jsx-runtime";var de=({size:e=16,colour:t="primary"})=>qa("svg",{className:"animate-spin",width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:[Ar("circle",{cx:"10",cy:"10",r:"9.25",stroke:"transparent",strokeWidth:"1.5"}),Ar("path",{d:"M10 0.595792C10 0.266746 10.267 -0.00185055 10.5954 0.0177417C11.9786 0.100242 13.3318 0.469461 14.5682 1.1044C15.9816 1.83021 17.2016 2.88235 18.1273 4.17366C19.0531 5.46496 19.6578 6.95826 19.8913 8.52984C20.1249 10.1014 19.9807 11.706 19.4705 13.2108C18.9604 14.7155 18.0991 16.077 16.9579 17.1825C15.8167 18.288 14.4285 19.1056 12.9084 19.5677C11.3882 20.0298 9.77982 20.123 8.21646 19.8397C6.84883 19.5918 5.55009 19.0619 4.40196 18.2863C4.12931 18.1021 4.08072 17.7265 4.28083 17.4653C4.48094 17.2041 4.85388 17.1564 5.12801 17.3384C6.12474 18.0001 7.24768 18.4531 8.42898 18.6672C9.80606 18.9168 11.2228 18.8347 12.5618 18.4276C13.9008 18.0206 15.1236 17.3004 16.1288 16.3266C17.134 15.3528 17.8927 14.1536 18.342 12.8282C18.7914 11.5027 18.9185 10.0893 18.7127 8.70502C18.507 7.32071 17.9743 6.00535 17.1589 4.86792C16.3435 3.73048 15.2688 2.80371 14.0238 2.16439C12.9559 1.61596 11.789 1.29259 10.5954 1.21173C10.2671 1.18949 10 0.92484 10 0.595792Z",fill:t==="primary"?"#ffffff":"currentColor",className:"rounded"})]});import*as Mr from"react";import{Slot as Ja}from"@radix-ui/react-slot";import{cva as Qa}from"class-variance-authority";import{Fragment as en,jsx as Me,jsxs as tn}from"react/jsx-runtime";var J=Qa("overflow-hidden isolate inline-flex h-fit items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-background dark:ring-offset-transparent transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:!pointer-events-none",{variants:{variant:{primary:"border-primary-main bg-primary-main hover:bg-primary-main/70 disabled:bg-primary-main/70 text-white font-bold",danger:"border-red-600 bg-red-600 hover:bg-red-600/70 disabled:bg-red-600/70 text-white font-bold",neutral:"!border-0 bg-transparent text-primary-main hover:opacity-80 disabled:opacity-60",outlined:"border border-primary-main text-primary-main hover:opacity-80 disabled:opacity-60","danger-outlined":"border border-red-600 text-red-600 hover:opacity-80 disabled:opacity-60","light-outlined":"border-white text-white hover:opacity-80 disabled:opacity-60","dark-text":"border-transparent bg-transparent hover:bg-opacity-70 disabled:bg-opacity-70 text-black font-medium",light:"border-white bg-white hover:bg-opacity-70 disabled:bg-opacity-70 text-primary-main font-semibold"},size:{default:"py-[0.625rem] px-[1.5rem] text-[0.875rem] leading-[1.25rem] font-medium rounded-lg",sm:"py-[0.375rem] px-[1rem] leading-[1rem] font-normal text-sm rounded-lg",lg:"py-[0.75rem] px-[1.5rem] text-[1rem] leading-[1.5rem] font-medium rounded-lg",md:"py-[0.625rem] px-[1.5rem] text-[0.875rem] leading-[1.25rem] font-medium rounded-lg","icon-sm":"h-[1.75rem] w-[1.75rem] flex justify-center items-center font-medium rounded-lg",icon:"h-[2.5rem] w-[2.75rem] flex justify-center items-center font-medium rounded-lg","icon-lg":"h-[3rem] w-[3rem] flex justify-center items-center font-medium rounded-lg"}},defaultVariants:{variant:"primary",size:"default"}}),Q=Mr.forwardRef(({className:e,variant:t="primary",size:r,asChild:o=!1,isLoading:a=!1,leftNode:n,rightNode:s,LoaderSize:c,children:d,disabled:l,...m},f)=>Me(o?Ja:"button",{className:i(J({variant:t,size:r,className:e})),ref:f,disabled:l||a,...m,children:Me("div",{className:"flex font-medium justify-center items-center gap-2 pointer-events-none",children:a?Me("span",{className:"mx-auto",children:Me(de,{size:c,colour:"secondary"})}):tn(en,{children:[n&&Me("span",{children:n}),d&&Me("span",{children:d}),s&&Me("span",{children:s})]})})}));Q.displayName="Button";import*as Zt from"react";import{cva as Ut}from"class-variance-authority";import rn from"react";import{jsx as on}from"react/jsx-runtime";var ee=rn.forwardRef(({className:e,children:t,error:r,...o},a)=>{let n=r??t;return n?on("p",{ref:a,className:i("text-xs font-normal text-[#F04248]",e),...o,children:n}):null});ee.displayName="ErrorMessage";import an from"react";import{jsx as nn}from"react/jsx-runtime";var pe=an.forwardRef(({className:e,...t},r)=>nn("div",{ref:r,className:i("text-sm text-[#8E98A8",e),...t}));pe.displayName="FormDescription";import{jsx as Ie,jsxs as Br}from"react/jsx-runtime";var sn=Ut("!p-0 flex h-full w-full !border-transparent !bg-transparent text-base focus-visible:bg-transparent focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",{variants:{status:{default:"placeholder:text-[#C4C4C4] dark:placeholder:text-[#9299A2]",error:"placeholder:text-red-500 text-red-500",loading:"placeholder:text-[#C4C4C4] dark:placeholder:text-[#9299A2]",prefilled:"",neutral:""}},defaultVariants:{status:"default"}}),Vr=Zt.forwardRef(({className:e,status:t,type:r,...o},a)=>Ie("input",{type:r,className:i(sn({status:t}),e),ref:a,...o}));Vr.displayName="BaseInnerInput";var W=Ut("flex relative h-10 w-full rounded-[4px] dark:!bg-transparent border transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 dark:disabled:!border-[#9299A2]",{variants:{status:{default:"border-[#DEDEDE] bg-white text-[#191919] dark:!bg-transparent caret-text-primary focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:disabled:!border-[#9299A2]",error:"placeholder:text-red-500 bg-red-50 border-red-500 dark:!bg-status-error-bg-dark text-red-500 focus-within:bg-red-50 focus-within:border-red-500",loading:"",prefilled:"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]",neutral:"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]"}},defaultVariants:{status:"default"}}),Ir=Ut("top-0 flex justify-center items-center h-full min-w-[50px] max-w-[100px] dark:!bg-transparent transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50 dark:disabled:!border-[#9299A2]",{variants:{side:{left:"left-0 rounded-l-[8px] border-r",right:"right-0 rounded-r-[8px] border-l"},status:{default:"border-[#DEDEDE] bg-white text-[#191919] dark:!bg-transparent caret-primary-main focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:disabled:!border-[#9299A2]",error:"placeholder:text-red-500 bg-red-50 border-red-500 dark:!bg-red-50 text-red-500 focus-within:bg-red-50 focus-within:border-red-500",loading:"",prefilled:"bg-[#F6F6F6] border-[#DEDEDE] dark:!bg-transparent caret-[#DEDEDE] focus-within:bg-[#F6F6F6] focus-within:border-[#DEDEDE] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]",neutral:"bg-transparent border-0 caret-[#DEDEDE] !px-0"}},defaultVariants:{status:"default",side:"left"}}),_=Zt.forwardRef(({className:e,status:t="default",disabled:r,error:o,isLoading:a,sideNodeClassName:n,showAsterisk:s,label:c,description:d,...l},m)=>{let f=t;return o&&(f="error"),a&&(f="loading"),r&&(f="prefilled"),Br("div",{className:"relative space-y-1 w-full",children:[c&&Ie(M,{showAsterisk:s,error:o,children:c}),Br("div",{className:i(W({status:f}),l.leftNode?"pl-0":"",l.rightNode?"pr-0":"",e),children:[l.leftNode?Ie("div",{className:i(Ir({status:f,side:"left"}),n),children:l.leftNode}):null,Ie(Vr,{ref:m,disabled:a||r,className:i({"!pl-3":l.leftNode&&t!=="neutral","!pr-3":l.rightNode&&t!=="neutral","sentry-mask":!!l?.isContentSensitive}),...l}),l.rightNode?Ie("div",{className:i(Ir({status:f,side:"right"}),n),children:l.rightNode}):null]}),d&&Ie(pe,{className:"text-gray-400 text-sm !font-normal",children:d}),Ie(ee,{error:o})]})});_.displayName="Input";import{useMemo as dn,useState as Ur}from"react";import{jsx as Or}from"react/jsx-runtime";var Hr=()=>Or("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Or("path",{d:"M8.89802 2.93408L9.70202 3.49808L6.21602 8.52608H5.41202L3.46802 5.80208L4.27202 5.05208L5.81402 6.49208L8.89802 2.93408Z",fill:"currentColor"})});import{jsx as _r,jsxs as ln}from"react/jsx-runtime";var Gr=()=>ln("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_r("path",{d:"M1.54639 7.26103C1.48389 7.09264 1.48389 6.90741 1.54639 6.73903C2.15517 5.26292 3.18853 4.00081 4.51547 3.1127C5.84241 2.22459 7.40317 1.75049 8.99989 1.75049C10.5966 1.75049 12.1574 2.22459 13.4843 3.1127C14.8113 4.00081 15.8446 5.26292 16.4534 6.73903C16.5159 6.90741 16.5159 7.09264 16.4534 7.26103C15.8446 8.73713 14.8113 9.99925 13.4843 10.8874C12.1574 11.7755 10.5966 12.2496 8.99989 12.2496C7.40317 12.2496 5.84241 11.7755 4.51547 10.8874C3.18853 9.99925 2.15517 8.73713 1.54639 7.26103Z",stroke:"#8E98A8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),_r("path",{d:"M9 9.25C10.2426 9.25 11.25 8.24264 11.25 7C11.25 5.75736 10.2426 4.75 9 4.75C7.75736 4.75 6.75 5.75736 6.75 7C6.75 8.24264 7.75736 9.25 9 9.25Z",stroke:"#8E98A8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});import{jsx as Wr,jsxs as cn}from"react/jsx-runtime";var zr=()=>cn("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Wr("path",{d:"M4.08759 12.69C3.26171 11.9072 2.61006 10.9591 2.17509 9.90752C2.10081 9.73454 2.0625 9.54826 2.0625 9.36001C2.0625 9.17177 2.10081 8.98549 2.17509 8.81252C2.75274 7.4073 3.72095 6.19704 4.96509 5.32502C6.14597 4.4998 7.55989 4.07405 9.00009 4.11002C10.0363 4.084 11.064 4.30239 12.0001 4.74752M13.9201 6.03752C14.7415 6.81964 15.3904 7.76486 15.8251 8.81252C15.8994 8.98549 15.9377 9.17177 15.9377 9.36001C15.9377 9.54826 15.8994 9.73454 15.8251 9.90752C15.2474 11.3127 14.2792 12.523 13.0351 13.395C11.8542 14.2202 10.4403 14.646 9.00009 14.61C7.9639 14.636 6.93616 14.4176 6.00009 13.9725",stroke:"#8E98A8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Wr("path",{d:"M6.5325 10.2375C6.42732 9.95694 6.37395 9.65962 6.375 9.36C6.375 8.66381 6.65156 7.99613 7.14384 7.50384C7.63613 7.01156 8.30381 6.735 9 6.735C9.3 6.7335 9.597 6.7875 9.8775 6.8925M11.4675 8.4825C11.5725 8.763 11.6265 9.06 11.625 9.36C11.625 10.0562 11.3484 10.7239 10.8562 11.2162C10.3639 11.7084 9.69619 11.985 9 11.985C8.70038 11.986 8.40306 11.9327 8.1225 11.8275M2.25 15L14.25 3",stroke:"#8E98A8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});import{jsx as $r}from"react/jsx-runtime";var Zr=()=>$r("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$r("path",{d:"M3.37891 8.62142L6.00041 5.99992L8.62191 8.62142M8.62191 3.37842L5.99991 5.99992L3.37891 3.37842",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});import{jsx as ue,jsxs as pn}from"react/jsx-runtime";var Kr=[{label:"Uppercase",key:"uppercase",RegExp:/[A-Z]/,validated:!1},{label:"Lowercase",key:"lowercase",RegExp:/[a-z]/,validated:!1},{label:"Number",key:"number",RegExp:/\d/,validated:!1},{label:"12 Characters",key:"twelve-chars",RegExp:/.{12}/,validated:!1}],jr=({onValidate:e,onChange:t,disableValidation:r,...o})=>{let[a,n]=Ur(!1),[s,c]=Ur(Kr),d=p=>Kr.map(u=>({...u,validated:u.RegExp.test(p)})),l=p=>{let u=d(p),h=u.every(b=>b.validated);return c(u),h},m=p=>{if(t&&t(p),r)return;let u=p?.target?.value,h=l(u);e&&e(h,u)},f=dn(()=>ue("div",{className:"flex items-center gap-2",children:s?.map(p=>pn("div",{className:i("text-xs flex items-center gap-0.5",{"text-[#62C554]":p?.validated,"text-[#8E98A8]":!p?.validated}),children:[ue("span",{className:"",children:p?.validated?ue(Hr,{}):ue(Zr,{})}),ue("span",{className:"",children:p?.label})]},p?.key))}),[s]);return ue(_,{sideNodeClassName:"!border-l-0",rightNode:a?ue("button",{type:"button",onClick:()=>n(p=>!p),children:ue(Gr,{})}):ue("button",{type:"button",onClick:()=>n(p=>!p),children:ue(zr,{})}),type:a?"text":"password",onChange:m,description:!r&&f,isContentSensitive:!0,...o})};jr.displayName="PasswordInput";import{cva as mn}from"class-variance-authority";import{jsx as Nt,jsxs as un}from"react/jsx-runtime";var V1=mn("flex relative min-h-[80px] w-full rounded-[8px] border transition px-3 py-2 text-base placeholder:text-[#79818C] focus-within:outline-0 focus-within:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",{variants:{status:{default:"border-[#D7D7D7] dark:border-[#676767] bg-white text-[#191919] dark:!bg-transparent caret-primary-main focus-within:bg-white dark:focus-within:!bg-transparent dark:text-white focus-within:border-primary-main dark:focus-within:border-[#9299A2] dark:border-[#9299A2] dark:disabled:!border-[#9299A2]",error:"placeholder:text-status-error-fill bg-status-error-bg border-status-error-fill dark:!bg-status-error-bg-dark text-status-error-fill focus-within:bg-status-error-bg focus-within:border-status-error-fill",loading:"placeholder:text-[#C4C4C4]",prefilled:"resize-none bg-[#F6F6F6] border-[#D7D7D7] dark:!bg-transparent caret-[#D7D7D7] focus-within:bg-[#F6F6F6] focus-within:border-[#D7D7D7] dark:!border-[#9299A2] dark:focus-within:border-[#9299A2]",neutral:""}},defaultVariants:{status:"default"}}),Xr=({className:e,status:t="default",disabled:r,error:o,isLoading:a,showAsterisk:n,label:s,description:c,...d})=>{let l=t;return o&&(l="error"),a&&(l="loading"),r&&(l="prefilled"),un("div",{className:"relative space-y-1",children:[Nt(M,{showAsterisk:n,error:o,children:s}),Nt("textarea",{className:i("min-h-[80px]",W({status:l}),e),disabled:a||r,...d}),Nt(pe,{className:"text-gray-400 text-sm !font-normal",children:c}),Nt(ee,{error:o})]})};Xr.displayName="Textarea";import*as Be from"react";import*as ke from"react";import{Command as U}from"cmdk";import{Search as yn}from"lucide-react";import*as F from"@radix-ui/react-dialog";import*as Le from"react";import{jsx as Yr,jsxs as fn}from"react/jsx-runtime";var qr=()=>fn("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-x",children:[Yr("path",{d:"M18 6 6 18"}),Yr("path",{d:"m6 6 12 12"})]});import{Fragment as hn,jsx as te,jsxs as Ge}from"react/jsx-runtime";var gn=F.Root,vn=F.Trigger,bn=F.Portal,Jr=Le.forwardRef(({className:e,...t},r)=>te(F.Overlay,{ref:r,className:i("fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Jr.displayName=F.Overlay.displayName;var Kt=Le.forwardRef(({className:e,hideCloseButton:t,children:r,...o},a)=>Ge(bn,{children:[te(Jr,{}),Ge(F.Content,{ref:a,className:i("fixed left-[50%] top-[50%] z-50 grid sm:w-full w-[95%] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-transparent bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg max-h-[95%] overflow-y-auto",e),...o,children:[r,!t&&Ge(F.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground z-20",children:[te(qr,{}),te("span",{className:"sr-only",children:"Close"})]})]})]}));Kt.displayName=F.Content.displayName;var Qr=({className:e,...t})=>te("div",{className:i("flex flex-col space-y-1.5 text-left",e),...t});Qr.displayName="DialogHeader";var eo=({className:e,...t})=>te("div",{className:i("flex flex-row justify-end sm:space-x-2",e),...t});eo.displayName="DialogFooter";var to=Le.forwardRef(({className:e,...t},r)=>te(F.Title,{ref:r,className:i("text-xl font-semibold leading-none tracking-tight",e),...t}));to.displayName=F.Title.displayName;var ro=Le.forwardRef(({className:e,...t},r)=>te(F.Description,{ref:r,className:i("text-sm text-gray-500",e),...t}));ro.displayName=F.Description.displayName;var jt=({trigger:e=void 0,children:t,open:r,onOpenChange:o,hideCloseButton:a,footer:n,title:s,description:c,contentClassName:d,headerClassName:l,titleClassName:m,descriptionClassName:f,footerClassName:p,asChild:u=!0,onOpenAutoFocus:h,onCloseAutoFocus:b,onEscapeKeyDown:v,onInteractOutside:g,onPointerDownOutside:x,closeOnOutsideClick:C=!0,...S})=>{let R=Le.useCallback(N=>{C||N.preventDefault(),x?.(N)},[C,x]),P=Le.useCallback(N=>{C||N.preventDefault(),g?.(N)},[C,g]);return Ge(gn,{...S,...r!==void 0?{open:r,onOpenChange:o}:{},children:[te(vn,{asChild:u,children:e}),Ge(Kt,{className:d,hideCloseButton:a,onOpenAutoFocus:h,onCloseAutoFocus:b,onEscapeKeyDown:v,onPointerDownOutside:R,onInteractOutside:P,children:[s||c?Ge(Qr,{className:l,children:[s&&te(to,{className:m,children:s}),c&&te(ro,{className:f,children:c})]}):te(hn,{}),t,n&&te(eo,{className:p,children:n})]})]})};jt.displayName=F.Dialog.displayName;import{Fragment as J1,jsx as fe,jsxs as wn}from"react/jsx-runtime";var tt=ke.forwardRef(({className:e,...t},r)=>fe(U,{ref:r,className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));tt.displayName=U.displayName;var rt=ke.forwardRef(({className:e,CommandInputContainerClassName:t,loading:r,...o},a)=>wn("div",{className:i("flex items-center border-0 px-3 gap-2",t),"cmdk-input-wrapper":"",children:[r?fe(de,{size:16,colour:"secondary"}):fe(yn,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),fe(U.Input,{ref:a,className:i("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),disabled:r,...o})]}));rt.displayName=U.Input.displayName;var ot=ke.forwardRef(({className:e,...t},r)=>fe(U.List,{ref:r,className:i("overflow-y-auto overflow-x-hidden",e),...t}));ot.displayName=U.List.displayName;var at=ke.forwardRef((e,t)=>fe(U.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));at.displayName=U.Empty.displayName;var nt=ke.forwardRef(({className:e,...t},r)=>fe(U.Group,{ref:r,className:i("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));nt.displayName=U.Group.displayName;var xn=ke.forwardRef(({className:e,...t},r)=>fe(U.Separator,{ref:r,className:i("-mx-1 h-px bg-border",e),...t}));xn.displayName=U.Separator.displayName;var it=ke.forwardRef(({className:e,...t},r)=>fe(U.Item,{ref:r,className:i("relative text=[#222222] flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-primary-accent data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));it.displayName=U.Item.displayName;var Cn=({className:e,...t})=>fe("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Cn.displayName="CommandShortcut";import*as Xt from"react";import*as ae from"@radix-ui/react-popover";import{jsx as We,jsxs as Nn}from"react/jsx-runtime";var K=ae.Root,H=Xt.forwardRef((e,t)=>We(ae.Trigger,{ref:t,...e,onPointerDown:r=>{e.onPointerDown?.(r)}}));H.displayName=ae.Trigger.displayName;var z=Xt.forwardRef(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,...a},n)=>o?We(ae.Portal,{children:We(ae.Content,{ref:n,align:t,sideOffset:r,className:i("pointer-events-auto z-50 w-72 rounded-md border border-transparent bg-white p-4 text-[#191919] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),onOpenAutoFocus:a.onOpenAutoFocus,onCloseAutoFocus:a.onCloseAutoFocus,...a})}):We(ae.Content,{ref:n,align:t,sideOffset:r,className:i("pointer-events-auto z-50 w-72 rounded-md border border-transparent bg-white p-4 text-[#191919] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),onOpenAutoFocus:a.onOpenAutoFocus,onCloseAutoFocus:a.onCloseAutoFocus,...a}));z.displayName=ae.Content.displayName;var ne=({trigger:e,children:t,open:r,onOpenChange:o,contentClassName:a,asChild:n=!0,align:s,side:c,alignOffset:d,triggerClassName:l,sideOffset:m,onOpenAutoFocus:f,onCloseAutoFocus:p,portal:u=!0,id:h="popover",...b})=>Nn(K,{...b,...r!==void 0?{open:r,onOpenChange:o}:{},children:[We(H,{asChild:n,className:l,id:`${h}-trigger`,children:e}),We(z,{alignOffset:d,sideOffset:m,side:c,align:s,className:a,onOpenAutoFocus:f,onCloseAutoFocus:p,portal:u,id:`${h}-content`,children:t})]});ne.displayName=ae.Root.displayName;import*as Yt from"react";import*as ie from"@radix-ui/react-scroll-area";import{jsx as st,jsxs as Rn}from"react/jsx-runtime";var se=Yt.forwardRef(({className:e,viewPortClassName:t,children:r,...o},a)=>Rn(ie.Root,{ref:a,className:i("relative overflow-hidden",e),...o,children:[st(ie.Viewport,{className:i("h-full w-full rounded-[inherit]",t),children:r}),st(Rt,{}),st(ie.Corner,{})]}));se.displayName=ie.Root.displayName;var Rt=Yt.forwardRef(({className:e,orientation:t="vertical",...r},o)=>st(ie.ScrollAreaScrollbar,{ref:o,orientation:t,className:i("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:st(ie.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-[#959595] transition hover:bg-[#808080]"})}));Rt.displayName=ie.ScrollAreaScrollbar.displayName;import{jsx as le,jsxs as Pt}from"react/jsx-runtime";var oo=({className:e,value:t,placeholder:r="",status:o,disabled:a,id:n})=>le(H,{asChild:!0,disabled:a,id:n??"searchable-trigger",children:Pt("button",{disabled:a,className:i(W({status:o}),"[&>span]:justify-start [&>span]:items-center gap-2 flex h-12 w-full items-center justify-between goup",t?"":"text-[#79818C]",e),children:[le("span",{children:t??r??"Select options..."}),le("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:le("path",{d:"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),Lt=({options:e=[],value:t,onChange:r,containerClassName:o,placeholder:a,disabled:n,loading:s,optionComponent:c,children:d,modal:l=!1,hideSearch:m,className:f,inputValue:p,onValueChange:u,onInputValueChange:h})=>{let[b,v]=Be.useState(!1),[g,x]=Be.useState(void 0),C=Be.useRef(null),S=Be.useCallback(R=>{if(C.current&&(C.current.disconnect(),C.current=null),R){let P=()=>{x(R.getBoundingClientRect().width)};P();let N=new ResizeObserver(()=>{P()});N.observe(R),C.current=N}},[]);return Pt(K,{modal:l,open:b,onOpenChange:v,children:[le("div",{className:i("w-full",f),ref:S,children:d}),le(z,{portal:!l,className:"p-0 min-w-[200px]",style:{width:g?`${g}px`:void 0},children:Pt(tt,{className:i("relative max-h-[270px]",{"mt-2":!m}),children:[!m&&le(rt,{loading:s,placeholder:a??"Search options...",onValueChange:h,value:p,CommandInputContainerClassName:"mx-2 border rounded-md border-[#DEDEDE]"}),le(se,{viewPortClassName:"max-h-[225px]",className:i("w-full px-0 h-full overflow-y-auto",o),children:Pt(ot,{children:[!m&&le(at,{children:"No result found."}),le(nt,{className:"w-full",children:e?.map((R,P)=>le(it,{defaultValue:t?.label,value:R.label,disabled:n,onSelect:()=>{r(R),v(!1),u?.(R?.value)},id:R.value,children:c?c(R):le("span",{children:R.label})},`${R.value}-${P}`))})]})})]})})]})};var Pn=[{countryCode:"GLOBAL",countryName:"Global",currency:"Dollars",currencyCode:"USD",internetCountryCode:"GLOBAL"},{countryName:"Benin",countryCode:"+229",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"BJ"},{countryName:"Burkina Faso",countryCode:"+226",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"BF"},{countryName:"Cameroon",countryCode:"+237",currency:"Central African CFA franc",currencyCode:"XAF",currencyIcon:"Fr",internetCountryCode:"CM"},{countryName:"Chad",countryCode:"+235",currency:"Central African CFA franc",currencyCode:"XAF",currencyIcon:"Fr",internetCountryCode:"TD"},{countryName:"DR Congo",countryCode:"+243",currency:"Congolese franc",currencyCode:"CDF",currencyIcon:"FC",internetCountryCode:"CD"},{countryName:"Eswatini",countryCode:"+268",currency:"Swazi lilangeni",currencyCode:"SZL",currencyIcon:"L",internetCountryCode:"SZ"},{countryName:"Gabon",countryCode:"+241",currency:"Central African CFA franc",currencyCode:"XAF",currencyIcon:"Fr",internetCountryCode:"GA"},{countryName:"Ghana",countryCode:"+233",currency:"Ghanaian cedi",currencyCode:"GHS",currencyIcon:"\u20B5",internetCountryCode:"GH"},{countryName:"Guinea",countryCode:"+224",currency:"Guinean franc",currencyCode:"GNF",currencyIcon:"Fr",internetCountryCode:"GN"},{countryName:"Ivory Coast",countryCode:"+225",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"CI"},{countryName:"Kenya",countryCode:"+254",currency:"Kenyan shilling",currencyCode:"KES",currencyIcon:"Sh",internetCountryCode:"KE"},{countryName:"Lesotho",countryCode:"+266",currency:"Lesotho loti",currencyCode:"LSL",currencyIcon:"L",internetCountryCode:"LS"},{countryName:"Liberia",countryCode:"+231",currency:"Liberian dollar",currencyCode:"LRD",currencyIcon:"$",internetCountryCode:"LR"},{countryName:"Madagascar",countryCode:"+261",currency:"Malagasy ariary",currencyCode:"MGA",currencyIcon:"Ar",internetCountryCode:"MG"},{countryName:"Malawi",countryCode:"+265",currency:"Malawian kwacha",currencyCode:"MWK",currencyIcon:"MK",internetCountryCode:"MW"},{countryName:"Mali",countryCode:"+223",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"ML"},{countryName:"Mozambique",countryCode:"+258",currency:"Mozambican metical",currencyCode:"MZN",currencyIcon:"MT",internetCountryCode:"MZ"},{countryName:"Namibia",countryCode:"+264",currency:"Namibian dollar",currencyCode:"NAD",currencyIcon:"$",internetCountryCode:"NA"},{countryName:"Niger",countryCode:"+227",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"NE"},{countryName:"Nigeria",countryCode:"+234",currency:"Nigerian naira",currencyCode:"NGN",currencyIcon:"\u20A6",internetCountryCode:"NG"},{countryName:"Republic of the Congo",countryCode:"+242",currency:"Central African CFA franc",currencyCode:"XAF",currencyIcon:"Fr",internetCountryCode:"CG"},{countryName:"Rwanda",countryCode:"+250",currency:"Rwandan franc",currencyCode:"RWF",currencyIcon:"Fr",internetCountryCode:"RW"},{countryName:"Senegal",countryCode:"+221",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"SN"},{countryName:"Seychelles",countryCode:"+248",currency:"Seychellois rupee",currencyCode:"SCR",currencyIcon:"\u20A8",internetCountryCode:"SC"},{countryName:"South Africa",countryCode:"+27",currency:"South African rand",currencyCode:"ZAR",currencyIcon:"R",internetCountryCode:"ZA"},{countryName:"South Sudan",countryCode:"+211",currency:"South Sudanese pound",currencyCode:"SSP",currencyIcon:"\xA3",internetCountryCode:"SS"},{countryName:"Tanzania",countryCode:"+255",currency:"Tanzanian shilling",currencyCode:"TZS",currencyIcon:"Sh",internetCountryCode:"TZ"},{countryName:"Togo",countryCode:"+228",currency:"West African CFA franc",currencyCode:"XOF",currencyIcon:"Fr",internetCountryCode:"TG"},{countryName:"Uganda",countryCode:"+256",currency:"Ugandan shilling",currencyCode:"UGX",currencyIcon:"Sh",internetCountryCode:"UG"},{countryName:"Zambia",countryCode:"+260",currency:"Zambian kwacha",currencyCode:"ZMW",currencyIcon:"ZK",internetCountryCode:"ZM"}],ao=e=>{if(!e)return Pn?.map(r=>({value:r?.internetCountryCode,label:r?.countryName,...r}));if(!e?.length)return[];let t=new Set;return e.reduce((r,o)=>(t.has(o.value)||(t.add(o.value),r.push(o)),r),[])};import*as dt from"react";import*as kt from"react-phone-number-input";import Dn from"react-phone-number-input/flags";import{jsx as lt,jsxs as kn}from"react/jsx-runtime";var Ln=e=>kn("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[lt("rect",{width:"32",height:"32",fill:"#60A5FA"})," ",lt("path",{d:"M3 10L7 8L10 9L13 8L16 10L19 9L22 11L25 10L28 12V15L26 17L28 19L27 22L29 24L27 26L24 25L21 26L18 24L15 25L12 23L9 24L6 22L4 23L2 21V18L4 16L3 13L5 11L3 10Z",fill:"#34D399"}),lt("rect",{x:"2",y:"28",width:"28",height:"3",fill:"#D1D5DB"}),lt("path",{d:"M0 16H32M8 0V32M16 0V32M24 0V32",stroke:"#2563EB",strokeWidth:"0.5",vectorEffect:"non-scaling-stroke"}),lt("path",{d:"M0 16H32",stroke:"#2563EB",strokeWidth:"1",vectorEffect:"non-scaling-stroke"})]}),no=Ln;import{jsx as D,jsxs as ct}from"react/jsx-runtime";var io=dt.forwardRef(({className:e,onChange:t,defaultCountry:r="NG",disableCountrySelect:o=!1,modal:a,showAsterisk:n,label:s,description:c,error:d,countryOptions:l,...m},f)=>{let p=u=>D(Tn,{...u,status:m.status,modal:a,options:l||u?.options});return ct("div",{className:"relative space-y-1",children:[D(M,{showAsterisk:n,error:d,children:s}),D(kt.default,{ref:f,className:i("flex sentry-mask",e),flagComponent:De,countrySelectComponent:u=>D(p,{...u,disabled:u?.disabled||o}),inputComponent:so,defaultCountry:r,onChange:u=>{t&&t?.(u)},...m}),D(pe,{className:"text-gray-400 text-sm !font-normal",children:c}),D(ee,{error:d})]})});io.displayName="PhoneInput";var so=dt.forwardRef(({className:e,...t},r)=>D(_,{className:i("!rounded-s-none h-10",e),...t,ref:r}));so.displayName="InputComponent";var Tn=({disabled:e,value:t,onChange:r,options:o,status:a,modal:n})=>{let s=dt.useCallback(c=>{r(c)},[r]);return ct(K,{modal:n,children:[D(H,{disabled:e,children:ct("div",{className:i(W({status:a}),"transition justify-center items-center disabled:text-base-500 flex gap-3 h-10 rounded-e-none border-e-0 pl-2 pr-2"),children:[D(De,{country:t,countryName:t}),D("svg",{className:i("mr-0.5 h-4 w-4 opacity-50",e?"hidden":"opacity-100"),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:D("path",{d:"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825",stroke:"#959595",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),D(z,{portal:!n,className:"w-[200px] md:w-[300px] p-0",children:D(tt,{children:D(ot,{children:ct(se,{className:"h-72",children:[D(rt,{placeholder:"Search country..."}),D(at,{children:"No country found."}),D(nt,{children:o.filter(c=>c.value).map(c=>ct(it,{className:"gap-2",onSelect:()=>s(c.value),children:[D(De,{country:c.value,countryName:c.label}),D("span",{className:"flex-1 text-sm",children:c.label}),c.value&&D("span",{className:"text-[#191919]/50 text-sm dark:text-white",children:`+${kt.getCountryCallingCode(c.value)}`}),D("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:i("ml-auto",c.value===t?"opacity-100":"opacity-0"),children:D("path",{d:"M4 8.00008L6.66353 10.6636L12 5.33655",stroke:"#959595",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"})})]},`${c.value}-${c.label}`))})]})})})})]})},De=({country:e,countryName:t,className:r})=>{let o=Dn[e];return e==="GLOBAL"?D("span",{className:i("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:D(no,{className:"w-full h-[90%]"})}):D("span",{className:i("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:o&&D(o,{title:t})})};De.displayName="FlagComponent";import{jsx as $,jsxs as pt}from"react/jsx-runtime";var Sn=({className:e,value:t,placeholder:r="",status:o,disabled:a})=>$(H,{asChild:!0,disabled:a,id:"country-dropdown",children:pt("button",{disabled:a,className:i(W({status:o}),"[&>span]:justify-start [&>span]:items-center gap-2 flex w-full items-center justify-between goup",t?"":"text-[#79818C]",e),children:[t?pt("div",{className:"flex gap-2 items-center",children:[$(De,{country:t?.value,countryName:t?.value,className:"ml-1 !w-6 h-5"}),$("span",{className:"",children:t?.label}),"-",$("span",{className:"",children:t?.value})]}):$("span",{children:r??"Select options..."}),$("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:$("path",{d:"M16.5999 7.45825L11.1666 12.8916C10.5249 13.5333 9.4749 13.5333 8.83324 12.8916L3.3999 7.45825",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),Fn=({hideSearch:e=!0,showAsterisk:t,label:r,description:o,error:a,countryOptions:n=void 0,...s})=>{let c=ao(n),d=c?.find(l=>(l?.value||l?.internetCountryCode)===s?.value?.value);return pt("div",{className:"relative space-y-1",children:[$(M,{showAsterisk:t,error:a,children:r}),$(Lt,{options:c,hideSearch:e,optionComponent:l=>pt("div",{className:"w-full flex items-center gap-2",children:[$(De,{country:l?.internetCountryCode||l?.value,countryName:l?.label,className:"ml-2 !w-6 !h-5"}),pt("div",{className:"flex-1 flex items-center gap-2",children:[$("span",{className:"flex text-sm",children:l?.label}),"-",$("span",{className:"text-sm",children:l?.internetCountryCode})]})]}),...s,children:$(Sn,{value:d,status:s?.status,placeholder:s?.placeholder??" Select Country"})}),$(pe,{className:"text-gray-400 text-sm !font-normal",children:o}),$(ee,{error:a})]})};import{jsx as mt,jsxs as En}from"react/jsx-runtime";var Te=({showAsterisk:e,label:t,description:r,error:o,hideSearch:a=!1,status:n,...s})=>En("div",{className:"relative space-y-1",children:[mt(M,{showAsterisk:e,error:o,children:t}),mt(Lt,{hideSearch:a,...s,containerClassName:"h-full",children:mt(oo,{disabled:s?.disabled,placeholder:s?.placeholder??"Select",status:n,value:s?.value?.label??s?.value?.value,className:s?.className,id:s?.id})}),mt(pe,{className:"text-gray-400 text-sm !font-normal",children:r}),mt(ee,{error:o})]});import{cva as An}from"class-variance-authority";import{useMemo as Mn}from"react";import In from"react-otp-input";import{jsx as lo}from"react/jsx-runtime";var Bn=An("transition cursor-default placeholder:text-black dark:placeholder:text-white rounded-lg !h-14 !w-14 border aspect-square text-base font-semibold tracking-normal outline-none placeholder:text-sm placeholder:font-normal text-black focus:bg-white flex-shrink-0",{variants:{status:{default:"border-gray-300 dark:border-[#d4d4d4] focus:border-gray-400 focus-visible:!ring-offset-gray-200 focus:ring-offset-gray-200 !ring-gray-200 !focus-visible:ring-1 bg-white dark:!bg-transparent dark:focus-visible:!ring-0 dark:focus-within:!bg-transparent dark:text-white dark:focus-within:border-[#9299A2] dark:border-[#676767] dark:disabled:!border-[#9299A2]",error:"placeholder:text-red-600 bg-red-50 border-red-600 text-red-600 focus-within:bg-red-50 focus-within:border-red-600",loading:"placeholder:text-[#C4C4C4]"}},defaultVariants:{status:"default"}}),Vn=({numInputs:e=4,inputStyle:t,containerStyle:r,placeholder:o="-",status:a,inputMode:n="numeric",inputType:s="number",...c})=>{let d=Mn(()=>o||new Array(e).fill("").reduce((f,p)=>f+=p,""),[e,o]);return lo(In,{numInputs:e,placeholder:d,containerStyle:i("w-fit sentry-mask flex justify-between",r),inputStyle:i(Bn({status:a}),t,"sentry-mask"),renderInput:l=>lo("input",{...l,inputMode:n,type:s}),inputType:s,...c})};import*as ge from"@radix-ui/react-accordion";import{ChevronDown as On}from"lucide-react";import{jsx as ut,jsxs as co}from"react/jsx-runtime";function Hn({items:e,type:t="single",defaultValue:r,onChange:o,className:a}){return ut(ge.Root,{...t==="single"?{type:"single",collapsible:!0,defaultValue:r,onValueChange:o}:{type:"multiple",defaultValue:r,onValueChange:o},className:i("w-full flex flex-col gap-2.5",a),children:e.map(s=>co(ge.Item,{value:s.key,className:"border border-gray-300 rounded-md overflow-hidden",children:[ut(ge.Header,{className:"flex",children:co(ge.Trigger,{className:"group flex flex-1 items-center justify-between px-4 py-3 text-sm font-medium text-gray-800 hover:bg-gray-200/50 transition-all data-[state=open]:bg-gray-200/50",children:[s.title,ut(On,{className:"h-4 w-4 shrink-0 text-gray-500 transition-transform duration-200 group-data-[state=open]:rotate-180"})]})}),ut(ge.Content,{className:"overflow-hidden data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up",children:ut("div",{className:"px-4 py-3 border-t border-gray-300",children:s.content})})]},s.key))})}import{useState as _n,useEffect as Gn}from"react";import{jsx as I,jsxs as Ve}from"react/jsx-runtime";var Wn=({type:e})=>e==="gray"?I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I("path",{d:"M10 0C4.49 0 0 4.49 0 10C0 15.51 4.49 20 10 20C15.51 20 20 15.51 20 10C20 4.49 15.51 0 10 0ZM14.78 7.7L9.11 13.37C8.97 13.51 8.78 13.59 8.58 13.59C8.38 13.59 8.19 13.51 8.05 13.37L5.22 10.54C4.93 10.25 4.93 9.77 5.22 9.48C5.51 9.19 5.99 9.19 6.28 9.48L8.58 11.78L13.72 6.64C14.01 6.35 14.49 6.35 14.78 6.64C15.07 6.93 15.07 7.4 14.78 7.7Z",fill:"#79818C"})}):e==="info"?I("svg",{stroke:"#70B6F6",fill:"#70B6F6",strokeWidth:"0",viewBox:"0 0 16 16",height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:I("path",{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2"})}):e==="warning"?I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I("path",{d:"M9.99984 1.66663C5.40817 1.66663 1.6665 5.40829 1.6665 9.99996C1.6665 14.5916 5.40817 18.3333 9.99984 18.3333C14.5915 18.3333 18.3332 14.5916 18.3332 9.99996C18.3332 5.40829 14.5915 1.66663 9.99984 1.66663ZM9.37484 6.66663C9.37484 6.32496 9.65817 6.04163 9.99984 6.04163C10.3415 6.04163 10.6248 6.32496 10.6248 6.66663V10.8333C10.6248 11.175 10.3415 11.4583 9.99984 11.4583C9.65817 11.4583 9.37484 11.175 9.37484 10.8333V6.66663ZM10.7665 13.65C10.7248 13.7583 10.6665 13.8416 10.5915 13.925C10.5082 14 10.4165 14.0583 10.3165 14.1C10.2165 14.1416 10.1082 14.1666 9.99984 14.1666C9.8915 14.1666 9.78317 14.1416 9.68317 14.1C9.58317 14.0583 9.4915 14 9.40817 13.925C9.33317 13.8416 9.27484 13.7583 9.23317 13.65C9.1915 13.55 9.1665 13.4416 9.1665 13.3333C9.1665 13.225 9.1915 13.1166 9.23317 13.0166C9.27484 12.9166 9.33317 12.825 9.40817 12.7416C9.4915 12.6666 9.58317 12.6083 9.68317 12.5666C9.88317 12.4833 10.1165 12.4833 10.3165 12.5666C10.4165 12.6083 10.5082 12.6666 10.5915 12.7416C10.6665 12.825 10.7248 12.9166 10.7665 13.0166C10.8082 13.1166 10.8332 13.225 10.8332 13.3333C10.8332 13.4416 10.8082 13.55 10.7665 13.65Z",fill:"#FFC700"})}):e==="success"?I("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I("path",{d:"M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z",fill:"#00D488"})}):I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:I("path",{d:"M9.99984 1.66663C5.40817 1.66663 1.6665 5.40829 1.6665 9.99996C1.6665 14.5916 5.40817 18.3333 9.99984 18.3333C14.5915 18.3333 18.3332 14.5916 18.3332 9.99996C18.3332 5.40829 14.5915 1.66663 9.99984 1.66663ZM9.37484 6.66663C9.37484 6.32496 9.65817 6.04163 9.99984 6.04163C10.3415 6.04163 10.6248 6.32496 10.6248 6.66663V10.8333C10.6248 11.175 10.3415 11.4583 9.99984 11.4583C9.65817 11.4583 9.37484 11.175 9.37484 10.8333V6.66663ZM10.7665 13.65C10.7248 13.7583 10.6665 13.8416 10.5915 13.925C10.5082 14 10.4165 14.0583 10.3165 14.1C10.2165 14.1416 10.1082 14.1666 9.99984 14.1666C9.8915 14.1666 9.78317 14.1416 9.68317 14.1C9.58317 14.0583 9.4915 14 9.40817 13.925C9.33317 13.8416 9.27484 13.7583 9.23317 13.65C9.1915 13.55 9.1665 13.4416 9.1665 13.3333C9.1665 13.225 9.1915 13.1166 9.23317 13.0166C9.27484 12.9166 9.33317 12.825 9.40817 12.7416C9.4915 12.6666 9.58317 12.6083 9.68317 12.5666C9.88317 12.4833 10.1165 12.4833 10.3165 12.5666C10.4165 12.6083 10.5082 12.6666 10.5915 12.7416C10.6665 12.825 10.7248 12.9166 10.7665 13.0166C10.8082 13.1166 10.8332 13.225 10.8332 13.3333C10.8332 13.4416 10.8082 13.55 10.7665 13.65Z",fill:"#F04248"})}),zn=({type:e="info",title:t,description:r,open:o,showCloseButton:a,bottomNode:n,sideNode:s,onClose:c,showIcon:d=!0})=>{let[l,m]=_n(o);Gn(()=>{m(o)},[o]);let f="",p="";switch(e){case"gray":f="#eeeef0",p="#79818c";break;case"info":f="#ebf5fd",p="#70B6F6";break;case"warning":f="#fff8df",p="#ffc700";break;case"success":f="#e0f9f0",p="#49e0aa";break;case"danger":f="#fde8e9",p="#f3777c";break;default:f="#eeeef0",p="#79818c";break}function u(){m(!1),c&&c()}return l?Ve("div",{className:"w-full shadow-lg transform flex items-center rounded-md",style:{background:f||"#ebf5fd"},children:[I("div",{className:"flex-none absolute rounded-l-[2px] rounded-l-4px h-[4px] w-full top-0",style:{background:p||"#70B6F6"}}),Ve("div",{className:"w-full gap-3 h-full flex flex-row justify-between px-4 md:px-4 py-3 md:py-4",children:[Ve("div",{className:"flex flex-row gap-2.5 items-start w-full h-full",children:[d&&I("div",{className:"h-full flex justify-end",children:I(Wn,{type:e})}),Ve("div",{className:"w-full gap-3 h-full flex flex-col md:flex-row items-start justify-between",children:[Ve("div",{className:"flex-1 gap-3 h-full flex flex-col items-start justify-between",children:[(t||r)&&Ve("div",{children:[t&&I("div",{className:"text-sm font-bold text-[#191919]",children:t}),r&&I("div",{className:"text-sm font-normal text-[#5D5D5D] mt-1",children:r})]}),n]}),s]})]}),a&&I("div",{className:"w-1/10 h-full flex flex-col justify-start items-center",children:I("button",{onClick:u,children:Ve("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I("path",{d:"M3.3335 3.33337L12.6662 12.6661",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),I("path",{d:"M3.33429 12.6661L12.667 3.33337",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})})]})]}):null};import{useState as Zn}from"react";import{Copy as Un,CheckIcon as Kn}from"lucide-react";import{motion as jn,AnimatePresence as Xn}from"framer-motion";import{jsx as $n}from"react/jsx-runtime";var ze=({children:e,mode:t="truncate",className:r,as:o="div",...a})=>$n(o,{className:i({"text-ellipsis overflow-hidden whitespace-nowrap":t==="truncate","whitespace-normal break-words":t==="wrap","":t==="overflow"},r),target:a?.href?"_blank":void 0,...a,children:e});import{jsx as $e,jsxs as qn}from"react/jsx-runtime";var Yn=({text:e,textToCopy:t,onCopy:r,iconsPosition:o="right",clampText:a=!0,clampMode:n="truncate",isLink:s=!1,textClassName:c})=>{let[d,l]=Zn(!1),m=()=>{navigator.clipboard.writeText(t??e).then(()=>{l(!0),r?.(),setTimeout(()=>l(!1),2e3)})},f=d?Kn:Un;return qn("div",{className:"flex items-center space-x-2 cursor-pointer text-[#717171] bg-gray-100 w-fit max-w-full rounded-md p-1 px-2",children:[o==="left"&&$e(po,{Icon:f,onClick:m,copied:d}),$e(ze,{as:s?"a":"span",mode:a?n:"overflow",className:i({underline:s},c),href:s?e:void 0,children:e}),o==="right"&&$e(po,{Icon:f,onClick:m,copied:d})]})},po=({Icon:e,onClick:t,copied:r})=>$e(Xn,{mode:"wait",children:$e(jn.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},onClick:t,children:$e(e,{className:`w-5 h-5 ${r?"text-green-500":"text-gray-500 hover:text-gray-700 transition"}`})},r?"check":"copy")});import{useEffect as mo,useState as Jn}from"react";import{Search as Qn}from"lucide-react";import{jsx as uo}from"react/jsx-runtime";var qt=({value:e,onChange:t,debounce:r=500,addon:o,...a})=>{let[n,s]=Jn(e??""),c=d=>s(d.target.value);return mo(()=>{e&&s(e)},[e]),mo(()=>{let d=setTimeout(()=>{t(n)},r);return()=>clearTimeout(d)},[n,r,t]),uo(_,{leftNode:o??uo(Qn,{className:" w-4 h-4 text-gray-400"}),sideNodeClassName:"bg-transparent !pr-0 !w-4 border-0 !min-w-[40px]",...a,className:i("!pl-0 py-1 border-[.5px] border-[#E9EBF8] rounded-xl text-sm w-full h-8 focus:outline-none focus:placeholder:hidden focus:!ring-2 !focus:ring-primary-main bg-[#F5F8FF] focus-within:!bg-transparent placeholder:text-xs",a?.className),onChange:c,value:n})};import{useEffect as fo}from"react";import{X as ei}from"lucide-react";import{jsx as ve,jsxs as Ze}from"react/jsx-runtime";var ti=e=>{let{environment:t,branch:r,version:o,deployTime:a,showBanner:n,onClose:s,initDefault:c,removeFromStorage:d,syncLocalStorageToState:l}=e,m=t||process.env.NEXT_PUBLIC_NODE_ENV;return m!=="staging"&&m!=="sandbox"||(fo(()=>{l()},[l]),fo(()=>{let f;return(m==="staging"||m==="sandbox")&&(f=setInterval(()=>{d(),c()},300*1e3)),()=>{f&&clearInterval(f)}},[n,t,s,d,c,m]),!n)?null:Ze("div",{className:"w-fit p-4 border shadow-md bg-white rounded-md z-[99999] absolute top-2 right-2 min-w-96",children:[ve("button",{onClick:s,className:"absolute top-2 right-2",children:ve(ei,{})}),Ze("div",{className:"space-y-2 text-sm",children:[Ze("div",{className:"flex gap-2",children:[ve("span",{className:"font-medium",children:"Environment:"}),ve("span",{className:"text-blue-600 capitalize",children:m})]}),Ze("div",{className:"flex gap-2",children:[ve("span",{className:"font-medium",children:"Branch:"}),ve("span",{className:"text-green-600 capitalize",children:r||process.env.NEXT_PUBLIC_DEPLOY_BRANCH})]}),Ze("div",{className:"flex gap-2",children:[ve("span",{className:"font-medium",children:"Version:"}),ve("span",{className:"text-purple-600",children:o||process.env.NEXT_PUBLIC_DEPLOY_VERSION})]}),Ze("div",{className:"flex gap-2",children:[ve("span",{className:"font-medium",children:"Deploy Time:"}),ve("span",{className:"text-orange-600",children:a||process.env.NEXT_PUBLIC_DEPLOY_TIME})]})]})]})};import*as ft from"react";import{Drawer as re}from"vaul";import{cva as ni}from"class-variance-authority";import{jsx as go,jsxs as ri}from"react/jsx-runtime";var vo=()=>ri("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-x",children:[go("path",{d:"M18 6 6 18"}),go("path",{d:"m6 6 12 12"})]});import{useState as oi,useEffect as ai}from"react";function bo(){let[e,t]=oi({width:100,height:100});return ai(()=>{function r(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",r),r(),()=>window.removeEventListener("resize",r)},[]),e}import{Fragment as pi,jsx as G,jsxs as Ue}from"react/jsx-runtime";var Jt=({shouldScaleBackground:e=!1,...t})=>G(re.Root,{direction:"right",shouldScaleBackground:e,...t});Jt.displayName="Drawer";var ii=re.Trigger,si=re.Close,li=re.Portal,ho=ft.forwardRef(({className:e,...t},r)=>G(re.Overlay,{className:i("fixed inset-0 z-40 bg-black/75 !m-0 !p-0 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));ho.displayName=re.Overlay.displayName;var ci=ni("fixed focus-visible:outline-0 z-50 gap-4 bg-white shadow-lg dark:bg-[#2B2B2B] dark:text-white transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 dark:border-none !select-text",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top rounded-b-lg",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom rounded-t-lg",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-[512px] ",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-[512px]"}},defaultVariants:{side:"right"}}),yo=ft.forwardRef(({side:e="right",hideCloseButton:t,className:r,children:o,id:a,...n},s)=>Ue(li,{children:[G(ho,{}),Ue(re.Content,{ref:s,className:i(ci({side:e}),r),...n,children:[G("button",{className:"bg-gray-300 block md:!hidden mx-auto mt-4 md:!mt-0 h-1.5 w-[80px] rounded-full opacity-70 transition-opacity hover:opacity-100 relative"}),o,!t&&Ue(re.Close,{id:`${a}-close-button`,className:"absolute right-2 top-3 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[G(vo,{}),G("span",{className:"sr-only",children:"Close"})]})]})]}));yo.displayName=re.Content.displayName;var xo=({className:e,...t})=>G("div",{className:i("text-lg flex flex-col border-b border-b-gray-200 space-y-1 text-left w-full p-3",e),...t});xo.displayName="DrawerHeader";var Co=({className:e,...t})=>G("div",{className:i("flex flex-col-reverse sm:flex-row m-auto right-0 left-0 p-3 sm:space-x-2 border-t border-t-[#EDEDED] dark:border-t-[#242424] w-full",e),...t});Co.displayName="DrawerFooter";var wo=ft.forwardRef(({className:e,...t},r)=>G(re.Title,{ref:r,className:i("text-xl font-semibold text-[#191919] dark:text-white",e),...t}));wo.displayName=re.Title.displayName;var No=ft.forwardRef(({className:e,...t},r)=>G(re.Description,{ref:r,className:i("text-xs text-[#5d5c5c] dark:text-white",e),...t}));No.displayName=re.Description.displayName;var di=({trigger:e=void 0,children:t,open:r=void 0,onOpenChange:o=void 0,hideCloseButton:a,footer:n,title:s,description:c,contentClassName:d,headerClassName:l,titleClassName:m,descriptionClassName:f,footerClassName:p,asChild:u=!0,onOpenAutoFocus:h,drawerContentClassName:b,onCloseAutoFocus:v,id:g="drawer",modal:x=!0})=>{let{width:C}=bo(),R=C<768?"bottom":"right";return Ue(Jt,{modal:x,...r!==void 0?{open:r,onOpenChange:o}:{},direction:R,children:[G(ii,{className:"cursor-pointer",asChild:u,id:`${g}-open-trigger`,children:e}),Ue(yo,{className:i("flex flex-col gap-0 justify-start items-start md:max-h-full w-full !max-w-md max-md:!max-w-full max-md:!rounded-none",d),side:"right",hideCloseButton:a,onOpenAutoFocus:h,onCloseAutoFocus:v,id:`${g}-content`,children:[s||c?Ue(xo,{className:l,id:`${g}-header`,children:[s&&G(wo,{className:m,id:`${g}-title`,children:s}),c&&G(No,{id:`${g}-description`,className:f,children:c})]}):G(pi,{}),G("div",{"data-vaul-no-drag":!0,className:i("flex w-full overflow-y-auto overscroll-auto flex-col justify-start items-start p-4 flex-1 min-h-0",b),children:t}),n&&G(Co,{className:p,children:n})]})]})};import{jsx as Ro}from"react/jsx-runtime";var Po=()=>Ro("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",className:"h-5 w-5",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:Ro("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})});import{jsx as gt,jsxs as mi}from"react/jsx-runtime";var Lo=e=>mi("svg",{viewBox:"0 0 60 30",className:"w-full max-w-md h-auto","aria-label":"Union Jack - Flag of the United Kingdom",...e,children:[gt("rect",{width:"60",height:"30",fill:"#00247D"}),gt("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#FFFFFF",strokeWidth:"6"}),gt("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#CF142B",strokeWidth:"4"}),gt("path",{d:"M30,0 L30,30 M0,15 L60,15",stroke:"#FFFFFF",strokeWidth:"10"}),gt("path",{d:"M30,0 L30,30 M0,15 L60,15",stroke:"#CF142B",strokeWidth:"6"})]});import{jsx as Qt,jsxs as ui}from"react/jsx-runtime";var ko=e=>ui("svg",{viewBox:"0 0 60 40",className:"w-full max-w-md h-auto","aria-label":"Tricolore - Flag of France",...e,children:[Qt("rect",{x:"0",y:"0",width:"20",height:"40",fill:"#002395"}),Qt("rect",{x:"20",y:"0",width:"20",height:"40",fill:"#FFFFFF"}),Qt("rect",{x:"40",y:"0",width:"20",height:"40",fill:"#ED2939"})]});import{jsx as Do,jsxs as fi}from"react/jsx-runtime";var To=()=>fi("svg",{width:"20",height:"18",viewBox:"0 0 8 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Do("path",{d:"M5.50257 12.9395L3.68439 14.7576L1.86621 12.9395",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),Do("path",{d:"M5.50257 5.06055L3.68439 3.24237L1.86621 5.06055",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});import{PopoverClose as gi}from"@radix-ui/react-popover";import{jsx as oe,jsxs as er}from"react/jsx-runtime";var vi=[{key:"en",label:"English"},{key:"fr",label:"French"}],bi=({locale:e})=>e==="fr"?oe(ko,{width:10}):oe(Lo,{width:10}),hi=({locale:e})=>oe("div",{className:"px-2 py-1 ",children:er("div",{className:"flex items-center gap-2.5",children:[oe(bi,{locale:e})," ",oe("span",{className:"uppercase",children:e}),oe(To,{})]})}),yi=({locale:e="en",onChange:t,locales:r=vi})=>er(K,{children:[oe("div",{className:"flex items-center gap-2 px-2 py-1 rounded-lg shadow border-[0.5px] border-gray-50/50 text-current bg-white/10 ",children:oe(H,{className:"!p-0 !bg-transparent ",id:"locale_select_dropdown",children:oe(hi,{locale:e})})}),oe(z,{side:"bottom",className:"p-0 max-w-max rounded-md overflow-hidden mx-auto mt-2",children:oe("div",{children:r?.map(o=>er(gi,{type:"button",id:`locale_option_${o?.key}`,className:i("flex items-center gap-3 px-3 py-1 text-sm hover:bg-blue-50 w-full transition-all",{"bg-blue-100":e&&e===o?.key}),onClick:()=>t?.(o?.key),children:[oe("span",{children:o?.label})," ",e&&e===o?.key&&oe(Po,{})]},o?.key))})})]});import{X as Ui}from"lucide-react";import{useMemo as Uo,useRef as Ki,useState as ji}from"react";import{AnimatePresence as xi,motion as Ci}from"framer-motion";import{useMemo as wi,useState as Ni}from"react";import{HiCheck as Ri}from"react-icons/hi";import{FiLogOut as Pi}from"react-icons/fi";import{BsPlus as Li}from"react-icons/bs";import{jsx as tr,jsxs as rr}from"react/jsx-runtime";var vt=({activeBusiness:e,onTriggerClick:t,iconOnly:r=!1,className:o,rightNode:a})=>rr("div",{id:"sidemenu_business_bar",role:"button",onClick:t||void 0,className:i("relative flex w-full items-center rounded-lg text-black bg-white",{"border-[.5px] border-[#E9EBF8] py-1 px-2":!r,"hover:bg-primary-accent transition-all duration-150 cursor-pointer ":!!t},o),children:[tr("section",{className:i("flex items-center justify-center bg-[#E9EBF8] text-primary-main rounded-md mr-3 text-xl font-medium",{"w-10 h-10":!r,"w-full h-10 mr-0":r}),children:e?.name?.charAt(0)||"M"}),!r&&rr("section",{className:"flex-1 flex justify-between items-center relative text-black w-full -space-y-1 tracking-wide",children:[rr("div",{className:"flex-1 min-w-0 max-w-[150px] w-full",children:[tr(ze,{as:"h2",className:"text-base capitalize font-medium",children:e?.name}),tr(ze,{as:"p",className:"text-sm text-[#A5A5A5]",onClick:void 0,children:e?.email})]}),a]})]});import{ChevronUp as ki}from"lucide-react";import{jsx as So}from"react/jsx-runtime";var Fo=e=>So("svg",{width:"9",height:"8",viewBox:"0 0 9 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:So("circle",{cx:"4.5",cy:"4",r:"4",fill:"#62C554"})});import{jsx as j,jsxs as or}from"react/jsx-runtime";var Di={hidden:{y:"-12px",opacity:0},visible:{y:"0",opacity:1,transition:{type:"spring",damping:25,stiffness:500}},exit:{y:"-12px",opacity:0,transition:{type:"spring",damping:25,stiffness:500}}},Eo=({activeBusiness:e,toggleAddBusinessDrawer:t,businesses:r=[],handleSwitchBusiness:o,onLogoutClick:a,onToggleSideBar:n,toggleShowBusiness:s,isMobile:c,collapseType:d})=>{let[l,m]=Ni(""),f=wi(()=>{let g=l.toLowerCase();return(r||[]).filter(x=>x.name?.toLowerCase().startsWith(g))},[r,l]),p=d==="hidden"||c,u=g=>m(g.target.value),h=g=>{o(g||""),p&&n(!1),m("")},b=()=>{t(),s(!1),p&&n(!1),m("")},v=()=>{a?.(),s(!1),p&&n(!1),m("")};return j(xi,{initial:!1,children:j(Ci.div,{initial:"hidden",animate:"visible",exit:"exit",variants:Di,children:or("div",{className:"w-72 bg-white border-x border-t rounded-xl overflow-hidden p-3",style:{boxShadow:`
|
|
2
2
|
3px 4px 11px 0px #0000001A,
|
|
3
3
|
13px 16px 21px 0px #00000017,
|
|
4
4
|
29px 36px 28px 0px #0000000D,
|