@6thbridge/hexa 0.0.76 → 0.0.77

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 CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var dn=Object.create;var rt=Object.defineProperty;var pn=Object.getOwnPropertyDescriptor;var mn=Object.getOwnPropertyNames;var un=Object.getPrototypeOf,fn=Object.prototype.hasOwnProperty;var gn=(e,t,o)=>t in e?rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var hn=(e,t)=>{for(var o in t)rt(e,o,{get:t[o],enumerable:!0})},Uo=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mn(t))!fn.call(e,a)&&a!==o&&rt(e,a,{get:()=>t[a],enumerable:!(r=pn(t,a))||r.enumerable});return e};var b=(e,t,o)=>(o=e!=null?dn(un(e)):{},Uo(t||!e||!e.__esModule?rt(o,"default",{value:e,enumerable:!0}):o,e)),vn=e=>Uo(rt({},"__esModule",{value:!0}),e);var Ko=(e,t,o)=>gn(e,typeof t!="symbol"?t+"":t,o);var jn={};hn(jn,{AmountAction:()=>$o,Banner:()=>Ir,Button:()=>se,CalendarInput:()=>eo,CopyableLabel:()=>Or,Country:()=>Tr,CurrencySymbolMap:()=>zo,DateAction:()=>Zo,DebouncedInput:()=>Wt,DevBanner:()=>_r,Dialog:()=>Mt,Drawer:()=>Jr,DrawerClose:()=>Zr,DrawerRoot:()=>$t,FilterPopover:()=>ao,FlagComponent:()=>De,FormLabel:()=>V,HasResourcePermission:()=>Ha,Input:()=>U,Loader:()=>ke,LocaleSelector:()=>aa,MultiSelect:()=>$a,MultiSelectTrigger:()=>lo,OTPInput:()=>Ar,PageDataToolbar:()=>no,Pagination:()=>qt,PasswordInput:()=>wo,PermissionsContext:()=>Tt,PermissionsProvider:()=>Va,PhoneInput:()=>ko,Popover:()=>ne,PopoverContent:()=>Y,PopoverRoot:()=>ae,PopoverTrigger:()=>X,RadioGroup:()=>kt,RadioGroupItem:()=>Dt,RichTextEditor:()=>cn,ScrollArea:()=>be,Select:()=>je,Sidebar:()=>Ca,Status:()=>xa,Table:()=>Ba,Tabs:()=>Za,TextOverflow:()=>We,Textarea:()=>No,Tooltip:()=>at,TooltipContent:()=>Et,TooltipProvider:()=>fo,TooltipRoot:()=>go,TooltipTrigger:()=>ho,buttonVariants:()=>te,cn:()=>i,useFilterStore:()=>Qe,useHasPermission:()=>so,usePermissions:()=>Oo});module.exports=vn(jn);var Yo=b(require("react")),ue=b(require("@radix-ui/react-tooltip"));var Xo=require("clsx"),jo=require("tailwind-merge");function i(...e){return(0,jo.twMerge)((0,Xo.clsx)(e))}var Le=require("react/jsx-runtime"),fo=ue.Provider,go=ue.Root,ho=ue.Trigger,Et=Yo.forwardRef(({className:e,sideOffset:t=2,...o},r)=>(0,Le.jsx)(ue.Content,{ref:r,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),...o,children:o.children}));Et.displayName=ue.Content.displayName;var at=({trigger:e,children:t,contentClassName:o,triggerClassName:r,asChild:a=!0,side:n,sideOffset:s,align:l,alignOffset:d,delayDuration:p=100,hasArrow:c=!0,arrowClassName:u,...m})=>(0,Le.jsx)(fo,{children:(0,Le.jsx)(go,{delayDuration:p,...m,children:(0,Le.jsxs)("div",{className:"flex justify-center items-center",children:[(0,Le.jsx)(ho,{asChild:a,className:r,children:e}),(0,Le.jsxs)(Et,{side:n,sideOffset:s,align:l,alignOffset:d,className:o,children:[t,c&&(0,Le.jsx)(ue.Arrow,{className:i("fill-white",u)})]})]})})});at.displayName="Tooltip";var er=b(require("react"));var qo=b(require("react")),vo=b(require("@radix-ui/react-label")),Jo=require("class-variance-authority");var Qo=require("react/jsx-runtime"),yn=(0,Jo.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),yo=qo.forwardRef(({className:e,...t},o)=>(0,Qo.jsx)(vo.Root,{ref:o,className:i(yn(),e),...t}));yo.displayName=vo.Root.displayName;var nt=require("react/jsx-runtime"),V=er.default.forwardRef(({className:e,children:t,showAsterisk:o,error:r,...a},n)=>(0,nt.jsx)(yo,{ref:n,className:i(r&&"text-red-500",e),...a,children:o?(0,nt.jsxs)("p",{children:[t,(0,nt.jsx)("span",{className:"text-red-500",children:"*"})]}):t}));V.displayName="FormLabel";var it=require("react/jsx-runtime"),ke=({size:e=16,colour:t="primary"})=>(0,it.jsxs)("svg",{className:"animate-spin",width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:[(0,it.jsx)("circle",{cx:"10",cy:"10",r:"9.25",stroke:"transparent",strokeWidth:"1.5"}),(0,it.jsx)("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"})]});var At=b(require("react")),tr=require("@radix-ui/react-slot"),or=require("class-variance-authority");var fe=require("react/jsx-runtime"),te=(0,or.cva)("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"}}),se=At.forwardRef(({className:e,variant:t="primary",size:o,asChild:r=!1,isLoading:a=!1,leftNode:n,rightNode:s,LoaderSize:l,...d},p)=>{let c=r?tr.Slot:"button",{children:u,disabled:m,...f}=d,y=At.useRef(null);return(0,fe.jsx)(c,{className:i(te({variant:t,size:o,className:e})),ref:y||p,disabled:m||a,...f,children:(0,fe.jsx)("div",{className:"flex font-medium justify-center items-center gap-2",children:a?(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)("span",{className:"mx-auto",children:(0,fe.jsx)(ke,{size:l,colour:"secondary"})})}):(0,fe.jsxs)(fe.Fragment,{children:[n,u,s]})})})});se.displayName="Button";var bo=b(require("react"));var It=require("class-variance-authority");var rr=b(require("react")),ar=require("react/jsx-runtime"),ge=rr.default.forwardRef(({className:e,children:t,error:o,...r},a)=>{let n=o??t;return n?(0,ar.jsx)("p",{ref:a,className:i("text-xs font-normal text-[#F04248]",e),...r,children:n}):null});ge.displayName="ErrorMessage";var nr=b(require("react")),ir=require("react/jsx-runtime"),he=nr.default.forwardRef(({className:e,...t},o)=>(0,ir.jsx)("div",{ref:o,className:i("text-sm text-[#8E98A8",e),...t}));he.displayName="FormDescription";var ve=require("react/jsx-runtime"),bn=(0,It.cva)("!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"}}),lr=bo.forwardRef(({className:e,status:t,type:o,...r},a)=>(0,ve.jsx)("input",{type:o,className:i(bn({status:t}),e),ref:a,...r}));lr.displayName="BaseInnerInput";var oe=(0,It.cva)("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"}}),sr=(0,It.cva)("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"}}),U=bo.forwardRef(({className:e,status:t="default",disabled:o,error:r,isLoading:a,sideNodeClassName:n,showAsterisk:s,label:l,description:d,...p},c)=>{let u=t;return r&&(u="error"),a&&(u="loading"),o&&(u="prefilled"),(0,ve.jsxs)("div",{className:"relative space-y-1 w-full",children:[l&&(0,ve.jsx)(V,{showAsterisk:s,error:r,children:l}),(0,ve.jsxs)("div",{className:i(oe({status:u}),p.leftNode?"pl-0":"",p.rightNode?"pr-0":"",e),children:[p.leftNode?(0,ve.jsx)("div",{className:i(sr({status:u,side:"left"}),n),children:p.leftNode}):null,(0,ve.jsx)(lr,{ref:c,disabled:a||o,className:i({"!pl-3":p.leftNode&&t!=="neutral","!pr-3":p.rightNode&&t!=="neutral","sentry-mask":!!p?.isContentSensitive}),...p}),p.rightNode?(0,ve.jsx)("div",{className:i(sr({status:u,side:"right"}),n),children:p.rightNode}):null]}),d&&(0,ve.jsx)(he,{className:"text-gray-400 text-sm !font-normal",children:d}),(0,ve.jsx)(ge,{error:r})]})});U.displayName="Input";var ct=require("react");var Co=require("react/jsx-runtime"),cr=()=>(0,Co.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Co.jsx)("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"})});var st=require("react/jsx-runtime"),dr=()=>(0,st.jsxs)("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,st.jsx)("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"}),(0,st.jsx)("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"})]});var lt=require("react/jsx-runtime"),pr=()=>(0,lt.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,lt.jsx)("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"}),(0,lt.jsx)("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"})]});var xo=require("react/jsx-runtime"),mr=()=>(0,xo.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,xo.jsx)("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"})});var re=require("react/jsx-runtime"),ur=[{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:"8 Characters",key:"eight-chars",RegExp:/.{8}/,validated:!1}],wo=({onValidate:e,onChange:t,disableValidation:o,...r})=>{let[a,n]=(0,ct.useState)(!1),[s,l]=(0,ct.useState)(ur),d=m=>ur.map(f=>({...f,validated:f.RegExp.test(m)})),p=m=>{let f=d(m),y=f.every(C=>C.validated);return l(f),y},c=m=>{if(t&&t(m),o)return;let f=m?.target?.value,y=p(f);e&&e(y,f)},u=(0,ct.useMemo)(()=>(0,re.jsx)("div",{className:"flex items-center gap-2",children:s?.map(m=>(0,re.jsxs)("div",{className:i("text-xs flex items-center gap-0.5",{"text-[#62C554]":m?.validated,"text-[#8E98A8]":!m?.validated}),children:[(0,re.jsx)("span",{className:"",children:m?.validated?(0,re.jsx)(cr,{}):(0,re.jsx)(mr,{})}),(0,re.jsx)("span",{className:"",children:m?.label})]},m?.key))}),[s]);return(0,re.jsx)(U,{sideNodeClassName:"!border-l-0",rightNode:a?(0,re.jsx)("button",{type:"button",onClick:()=>n(m=>!m),children:(0,re.jsx)(dr,{})}):(0,re.jsx)("button",{type:"button",onClick:()=>n(m=>!m),children:(0,re.jsx)(pr,{})}),type:a?"text":"password",onChange:c,description:!o&&u,isContentSensitive:!0,...r})};wo.displayName="PasswordInput";var fr=require("class-variance-authority");var Ge=require("react/jsx-runtime"),Mi=(0,fr.cva)("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"}}),No=({className:e,status:t="default",disabled:o,error:r,isLoading:a,showAsterisk:n,label:s,description:l,...d})=>{let p=t;return r&&(p="error"),a&&(p="loading"),o&&(p="prefilled"),(0,Ge.jsxs)("div",{className:"relative space-y-1",children:[(0,Ge.jsx)(V,{showAsterisk:n,error:r,children:s}),(0,Ge.jsx)("textarea",{className:i("min-h-[80px]",oe({status:p}),e),disabled:a||o,...d}),(0,Ge.jsx)(he,{className:"text-gray-400 text-sm !font-normal",children:l}),(0,Ge.jsx)(ge,{error:r})]})};No.displayName="Textarea";var _e=b(require("react"));var Fe=b(require("react")),K=require("cmdk"),wr=require("lucide-react");var pt=b(require("react")),A=b(require("@radix-ui/react-dialog"));var dt=require("react/jsx-runtime"),gr=()=>(0,dt.jsxs)("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:[(0,dt.jsx)("path",{d:"M18 6 6 18"}),(0,dt.jsx)("path",{d:"m6 6 12 12"})]});var T=require("react/jsx-runtime"),Cn=A.Root,xn=A.Trigger,hr=A.Portal,vr=pt.forwardRef(({className:e,...t},o)=>(0,T.jsx)(A.Overlay,{ref:o,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}));vr.displayName=A.Overlay.displayName;var Ro=pt.forwardRef(({className:e,hideCloseButton:t,children:o,...r},a)=>(0,T.jsxs)(hr,{children:[(0,T.jsx)(vr,{}),(0,T.jsxs)(A.Content,{ref:a,className:i("fixed left-[50%] top-[50%] z-50 grid w-full 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),...r,children:[o,!t&&(0,T.jsxs)(A.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:[(0,T.jsx)(gr,{}),(0,T.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ro.displayName=A.Content.displayName;var yr=({className:e,...t})=>(0,T.jsx)("div",{className:i("flex flex-col space-y-1.5 text-left",e),...t});yr.displayName="DialogHeader";var br=({className:e,...t})=>(0,T.jsx)("div",{className:i("flex flex-row justify-end sm:space-x-2",e),...t});br.displayName="DialogFooter";var Cr=pt.forwardRef(({className:e,...t},o)=>(0,T.jsx)(A.Title,{ref:o,className:i("text-xl font-semibold leading-none tracking-tight",e),...t}));Cr.displayName=A.Title.displayName;var xr=pt.forwardRef(({className:e,...t},o)=>(0,T.jsx)(A.Description,{ref:o,className:i("text-sm text-gray-500",e),...t}));xr.displayName=A.Description.displayName;var Mt=({trigger:e=void 0,children:t,open:o,onOpenChange:r,hideCloseButton:a,footer:n,title:s,description:l,contentClassName:d,headerClassName:p,titleClassName:c,descriptionClassName:u,footerClassName:m,asChild:f=!0,onOpenAutoFocus:y,onCloseAutoFocus:C,onEscapeKeyDown:h,onInteractOutside:v,onPointerDownOutside:R,...I})=>(0,T.jsxs)(Cn,{...I,open:o,onOpenChange:r,children:[(0,T.jsx)(xn,{asChild:f,children:e}),(0,T.jsx)(hr,{children:(0,T.jsxs)(Ro,{className:d,hideCloseButton:a,onOpenAutoFocus:y,onCloseAutoFocus:C,onEscapeKeyDown:h,onPointerDownOutside:R,onInteractOutside:v,children:[s||l?(0,T.jsxs)(yr,{className:p,children:[s&&(0,T.jsx)(Cr,{className:c,children:s}),l&&(0,T.jsx)(xr,{className:u,children:l})]}):(0,T.jsx)(T.Fragment,{}),t,n&&(0,T.jsx)(br,{className:m,children:n})]})})]});Mt.displayName=A.Dialog.displayName;var j=require("react/jsx-runtime"),mt=Fe.forwardRef(({className:e,...t},o)=>(0,j.jsx)(K.Command,{ref:o,className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));mt.displayName=K.Command.displayName;var ut=Fe.forwardRef(({className:e,CommandInputContainerClassName:t,loading:o,...r},a)=>(0,j.jsxs)("div",{className:i("flex items-center border-0 px-3 gap-2",t),"cmdk-input-wrapper":"",children:[o?(0,j.jsx)(ke,{size:16,colour:"secondary"}):(0,j.jsx)(wr.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,j.jsx)(K.Command.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:o,...r})]}));ut.displayName=K.Command.Input.displayName;var ft=Fe.forwardRef(({className:e,...t},o)=>(0,j.jsx)(K.Command.List,{ref:o,className:i("overflow-y-auto overflow-x-hidden",e),...t}));ft.displayName=K.Command.List.displayName;var gt=Fe.forwardRef((e,t)=>(0,j.jsx)(K.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));gt.displayName=K.Command.Empty.displayName;var ht=Fe.forwardRef(({className:e,...t},o)=>(0,j.jsx)(K.Command.Group,{ref:o,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}));ht.displayName=K.Command.Group.displayName;var wn=Fe.forwardRef(({className:e,...t},o)=>(0,j.jsx)(K.Command.Separator,{ref:o,className:i("-mx-1 h-px bg-border",e),...t}));wn.displayName=K.Command.Separator.displayName;var vt=Fe.forwardRef(({className:e,...t},o)=>(0,j.jsx)(K.Command.Item,{ref:o,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}));vt.displayName=K.Command.Item.displayName;var Nn=({className:e,...t})=>(0,j.jsx)("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Nn.displayName="CommandShortcut";var Nr=b(require("react")),ye=b(require("@radix-ui/react-popover"));var Ee=require("react/jsx-runtime"),ae=ye.Root,X=ye.Trigger,Y=Nr.forwardRef(({className:e,align:t="center",sideOffset:o=4,portal:r=!0,...a},n)=>r?(0,Ee.jsx)(ye.Portal,{children:(0,Ee.jsx)(ye.Content,{ref:n,align:t,sideOffset:o,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})}):(0,Ee.jsx)(ye.Content,{ref:n,align:t,sideOffset:o,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}));Y.displayName=ye.Content.displayName;var ne=({trigger:e,children:t,open:o,onOpenChange:r,contentClassName:a,asChild:n=!0,align:s,side:l,alignOffset:d,triggerClassName:p,sideOffset:c,onOpenAutoFocus:u,onCloseAutoFocus:m,portal:f=!0,id:y="popover",...C})=>(0,Ee.jsxs)(ae,{...C,open:o,onOpenChange:r,children:[(0,Ee.jsx)(X,{asChild:n,className:p,id:`${y}-trigger`,children:e}),(0,Ee.jsx)(Y,{alignOffset:d,sideOffset:c,side:l,align:s,className:a,onOpenAutoFocus:u,onCloseAutoFocus:m,portal:f,id:`${y}-content`,children:t})]});ne.displayName=ye.Root.displayName;var Po=b(require("react")),le=b(require("@radix-ui/react-scroll-area"));var Ae=require("react/jsx-runtime"),be=Po.forwardRef(({className:e,viewPortClassName:t,children:o,...r},a)=>(0,Ae.jsxs)(le.Root,{ref:a,className:i("relative overflow-hidden",e),...r,children:[(0,Ae.jsx)(le.Viewport,{className:i("h-full w-full rounded-[inherit]",t),children:o}),(0,Ae.jsx)(Bt,{}),(0,Ae.jsx)(le.Corner,{})]}));be.displayName=le.Root.displayName;var Bt=Po.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ae.jsx)(le.ScrollAreaScrollbar,{ref:r,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),...o,children:(0,Ae.jsx)(le.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-[#959595] transition hover:bg-[#808080]"})}));Bt.displayName=le.ScrollAreaScrollbar.displayName;var $=require("react/jsx-runtime"),Rr=({className:e,value:t,placeholder:o="",status:r,disabled:a,id:n})=>(0,$.jsx)(X,{asChild:!0,disabled:a,id:n??"searchable-trigger",children:(0,$.jsxs)("button",{disabled:a,className:i(oe({status:r}),"[&>span]:justify-start [&>span]:items-center gap-2 flex h-12 w-full items-center justify-between goup",t?"":"text-[#79818C]",e),children:[t??o??"Select options...",(0,$.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:(0,$.jsx)("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"})})]})}),Vt=({options:e=[],value:t,onChange:o,containerClassName:r,placeholder:a,disabled:n,loading:s,optionComponent:l,children:d,modal:p=!1,hideSearch:c,className:u,inputValue:m,onValueChange:f,onInputValueChange:y})=>{let[C,h]=_e.useState(!1),v=_e.useRef(null),[R,I]=_e.useState(void 0);return _e.useLayoutEffect(()=>{v.current&&I(v.current.clientWidth)},[v.current]),(0,$.jsxs)(ae,{modal:p,open:C,onOpenChange:h,children:[(0,$.jsx)("div",{className:i("w-full",u),ref:v,children:d}),(0,$.jsx)(Y,{portal:!p,className:"p-0 min-w-[200px]",style:{width:R},children:(0,$.jsxs)(mt,{className:i("relative max-h-[270px]",{"mt-2":!c}),children:[!c&&(0,$.jsx)(ut,{loading:s,placeholder:a??"Search options...",onValueChange:y,value:m,CommandInputContainerClassName:"mx-2 border rounded-md border-[#DEDEDE]"}),(0,$.jsx)(be,{viewPortClassName:"max-h-[225px]",className:i("w-full px-0 h-full overflow-y-auto",r),children:(0,$.jsxs)(ft,{children:[!c&&(0,$.jsx)(gt,{children:"No result found."}),(0,$.jsx)(ht,{className:"w-full",children:e?.map(g=>(0,$.jsx)(vt,{defaultValue:t?.label,value:g.label,disabled:n,onSelect:()=>{o(g),h(!1),f?.(g?.value)},id:g.value,children:l?l(g):g.label},g.value))})]})})]})})]})};var Lo=[{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"}],Pr=()=>{let e={};return Lo?.forEach(t=>{e[t?.internetCountryCode]=t?.countryName}),e};var yt=b(require("react")),Ot=b(require("react-phone-number-input")),kr=b(require("react-phone-number-input/flags"));var Ie=require("react/jsx-runtime"),Rn=e=>(0,Ie.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,Ie.jsx)("rect",{width:"32",height:"32",fill:"#60A5FA"})," ",(0,Ie.jsx)("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"}),(0,Ie.jsx)("rect",{x:"2",y:"28",width:"28",height:"3",fill:"#D1D5DB"}),(0,Ie.jsx)("path",{d:"M0 16H32M8 0V32M16 0V32M24 0V32",stroke:"#2563EB",strokeWidth:"0.5",vectorEffect:"non-scaling-stroke"}),(0,Ie.jsx)("path",{d:"M0 16H32",stroke:"#2563EB",strokeWidth:"1",vectorEffect:"non-scaling-stroke"})]}),Lr=Rn;var w=require("react/jsx-runtime"),ko=yt.forwardRef(({className:e,onChange:t,defaultCountry:o="NG",modal:r,showAsterisk:a,label:n,description:s,error:l,...d},p)=>{let c=u=>(0,w.jsx)(Pn,{...u,status:d.status,modal:r});return(0,w.jsxs)("div",{className:"relative space-y-1",children:[(0,w.jsx)(V,{showAsterisk:a,error:l,children:n}),(0,w.jsx)(Ot.default,{ref:p,className:i("flex sentry-mask",e),flagComponent:De,countrySelectComponent:c,inputComponent:Dr,defaultCountry:o,onChange:u=>{t&&t?.(u)},...d}),(0,w.jsx)(he,{className:"text-gray-400 text-sm !font-normal",children:s}),(0,w.jsx)(ge,{error:l})]})});ko.displayName="PhoneInput";var Dr=yt.forwardRef(({className:e,...t},o)=>(0,w.jsx)(U,{className:i("!rounded-s-none h-10",e),...t,ref:o}));Dr.displayName="InputComponent";var Pn=({disabled:e,value:t,onChange:o,options:r,status:a,modal:n})=>{let s=yt.useCallback(l=>{o(l)},[o]);return(0,w.jsxs)(ae,{modal:n,children:[(0,w.jsx)(X,{disabled:e,children:(0,w.jsxs)("div",{className:i(oe({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:[(0,w.jsx)(De,{country:t,countryName:t}),(0,w.jsx)("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:(0,w.jsx)("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"})})]})}),(0,w.jsx)(Y,{portal:!n,className:"w-[200px] md:w-[300px] p-0",children:(0,w.jsx)(mt,{children:(0,w.jsx)(ft,{children:(0,w.jsxs)(be,{className:"h-72",children:[(0,w.jsx)(ut,{placeholder:"Search country..."}),(0,w.jsx)(gt,{children:"No country found."}),(0,w.jsx)(ht,{children:r.filter(l=>l.value).map(l=>(0,w.jsxs)(vt,{className:"gap-2",onSelect:()=>s(l.value),children:[(0,w.jsx)(De,{country:l.value,countryName:l.label}),(0,w.jsx)("span",{className:"flex-1 text-sm",children:l.label}),l.value&&(0,w.jsx)("span",{className:"text-[#191919]/50 text-sm dark:text-white",children:`+${Ot.getCountryCallingCode(l.value)}`}),(0,w.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:i("ml-auto",l.value===t?"opacity-100":"opacity-0"),children:(0,w.jsx)("path",{d:"M4 8.00008L6.66353 10.6636L12 5.33655",stroke:"#959595",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"})})]},`${l.value}-${l.label}`))})]})})})})]})},De=({country:e,countryName:t,className:o})=>{let r=kr.default[e];return e==="GLOBAL"?(0,w.jsx)("span",{className:i("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",o),children:(0,w.jsx)(Lr,{className:"w-full h-[90%]"})}):(0,w.jsx)("span",{className:i("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",o),children:r&&(0,w.jsx)(r,{title:t})})};De.displayName="FlagComponent";var _=require("react/jsx-runtime"),Ln=Pr(),kn=({className:e,value:t,placeholder:o="",status:r,disabled:a})=>(0,_.jsx)(X,{asChild:!0,disabled:a,id:"country-dropdown",children:(0,_.jsxs)("button",{disabled:a,className:i(oe({status:r}),"[&>span]:justify-start [&>span]:items-center gap-2 flex w-full items-center justify-between goup",t?"":"text-[#79818C]",e),children:[t?(0,_.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,_.jsx)(De,{country:t,countryName:t,className:"ml-1 !w-6 h-5"}),(0,_.jsxs)("span",{className:"",children:[" ",Ln[t]]})]}):o??"Select options...",(0,_.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:(0,_.jsx)("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"})})]})}),Tr=({hideSearch:e=!0,showAsterisk:t,label:o,description:r,error:a,...n})=>{let s=Lo?.map(l=>({value:l?.internetCountryCode,label:l?.countryName,...l}));return(0,_.jsxs)("div",{className:"relative space-y-1",children:[(0,_.jsx)(V,{showAsterisk:t,error:a,children:o}),(0,_.jsx)(Vt,{options:s,hideSearch:e,optionComponent:l=>(0,_.jsxs)("div",{className:"w-full flex items-center gap-2",children:[(0,_.jsx)(De,{country:l?.internetCountryCode,countryName:l?.label,className:"ml-2 !w-6 !h-5"}),(0,_.jsx)("span",{className:"flex-1 text-sm",children:l?.label})]}),...n,children:(0,_.jsx)(kn,{value:n?.value?.value,status:n?.status,placeholder:n?.placeholder??" Select Country"})}),(0,_.jsx)(he,{className:"text-gray-400 text-sm !font-normal",children:r}),(0,_.jsx)(ge,{error:a})]})};var Me=require("react/jsx-runtime"),je=({showAsterisk:e,label:t,description:o,error:r,hideSearch:a=!0,status:n,...s})=>(0,Me.jsxs)("div",{className:"relative space-y-1",children:[(0,Me.jsx)(V,{showAsterisk:e,error:r,children:t}),(0,Me.jsx)(Vt,{hideSearch:a,...s,containerClassName:"h-full",children:(0,Me.jsx)(Rr,{disabled:s?.disabled,placeholder:s?.placeholder??"Select",status:n,value:s?.value?.label??s?.value?.value,className:s?.className,id:s?.id})}),(0,Me.jsx)(he,{className:"text-gray-400 text-sm !font-normal",children:o}),(0,Me.jsx)(ge,{error:r})]});var Sr=require("class-variance-authority"),Fr=require("react"),Er=b(require("react-otp-input")),Do=require("react/jsx-runtime"),Dn=(0,Sr.cva)("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",{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"}}),Ar=({numInputs:e=4,inputStyle:t,containerStyle:o,placeholder:r="-",status:a,...n})=>{let s=(0,Fr.useMemo)(()=>r||new Array(e).fill("").reduce((p,c)=>p+=c,""),[e,r]);return(0,Do.jsx)(Er.default,{numInputs:e,placeholder:s,containerStyle:i("w-full sentry-mask",o),inputStyle:i(Dn({status:a}),t,"sentry-mask"),renderInput:l=>(0,Do.jsx)("input",{...l}),...n})};var Ht=require("react"),P=require("react/jsx-runtime"),Tn=({type:e})=>e==="gray"?(0,P.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("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"?(0,P.jsx)("svg",{stroke:"#70B6F6",fill:"#70B6F6","stroke-width":"0",viewBox:"0 0 16 16",height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("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"?(0,P.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("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"?(0,P.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("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"})}):(0,P.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("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"})}),Ir=({type:e="info",title:t,description:o,open:r,showCloseButton:a,bottomNode:n,sideNode:s,onClose:l,showIcon:d=!0})=>{let[p,c]=(0,Ht.useState)(r);(0,Ht.useEffect)(()=>{c(r)},[r]);let u="",m="";switch(e){case"gray":u="#eeeef0",m="#79818c";break;case"info":u="#ebf5fd",m="#70B6F6";break;case"warning":u="#fff8df",m="#ffc700";break;case"success":u="#e0f9f0",m="#49e0aa";break;case"danger":u="#fde8e9",m="#f3777c";break;default:u="#eeeef0",m="#79818c";break}function f(){c(!1),l&&l()}return p?(0,P.jsxs)("div",{className:"w-full shadow-lg transform flex items-center rounded-md",style:{background:u||"#ebf5fd"},children:[(0,P.jsx)("div",{className:"flex-none absolute rounded-l-[2px] rounded-l-4px h-[4px] w-full top-0",style:{background:m||"#70B6F6"}}),(0,P.jsxs)("div",{className:"w-full gap-3 h-full flex flex-row justify-between px-4 md:px-4 py-3 md:py-4",children:[(0,P.jsxs)("div",{className:"flex flex-row gap-2.5 items-start w-full h-full",children:[d&&(0,P.jsx)("div",{className:"h-full flex justify-end",children:(0,P.jsx)(Tn,{type:e})}),(0,P.jsxs)("div",{className:"w-full gap-3 h-full flex flex-col md:flex-row items-start justify-between",children:[(0,P.jsxs)("div",{className:"flex-1 gap-3 h-full flex flex-col items-start justify-between",children:[(t||o)&&(0,P.jsxs)("div",{children:[t&&(0,P.jsx)("div",{className:"text-sm font-bold text-[#191919]",children:t}),o&&(0,P.jsx)("div",{className:"text-sm font-normal text-[#5D5D5D] mt-1",children:o})]}),n]}),s]})]}),a&&(0,P.jsx)("div",{className:"w-1/10 h-full flex flex-col justify-start items-center",children:(0,P.jsx)("button",{onClick:f,children:(0,P.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,P.jsx)("path",{d:"M3.3335 3.33337L12.6662 12.6661",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,P.jsx)("path",{d:"M3.33429 12.6661L12.667 3.33337",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})})]})]}):null};var Vr=require("react"),Gt=require("lucide-react"),_t=require("framer-motion");var Mr=require("react/jsx-runtime"),We=({children:e,mode:t="truncate",className:o,as:r="div",...a})=>(0,Mr.jsx)(r,{className:i({"text-ellipsis overflow-hidden whitespace-nowrap":t==="truncate","whitespace-normal break-words":t==="wrap","":t==="overflow"},o),target:a?.href?"_blank":void 0,...a,children:e});var Te=require("react/jsx-runtime"),Or=({text:e,textToCopy:t,onCopy:o,iconsPosition:r="right",clampText:a=!0,clampMode:n="truncate",isLink:s=!1,textClassName:l})=>{let[d,p]=(0,Vr.useState)(!1),c=()=>{navigator.clipboard.writeText(t??e).then(()=>{p(!0),o?.(),setTimeout(()=>p(!1),2e3)})},u=d?Gt.CheckIcon:Gt.Copy;return(0,Te.jsxs)("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:[r==="left"&&(0,Te.jsx)(Br,{Icon:u,onClick:c,copied:d}),(0,Te.jsx)(We,{as:s?"a":"span",mode:a?n:"overflow",className:i({underline:s},l),href:s?e:void 0,children:e}),r==="right"&&(0,Te.jsx)(Br,{Icon:u,onClick:c,copied:d})]})},Br=({Icon:e,onClick:t,copied:o})=>(0,Te.jsx)(_t.AnimatePresence,{mode:"wait",children:(0,Te.jsx)(_t.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},onClick:t,children:(0,Te.jsx)(e,{className:`w-5 h-5 ${o?"text-green-500":"text-gray-500 hover:text-gray-700 transition"}`})},o?"check":"copy")});var bt=require("react");var Hr=require("lucide-react"),To=require("react/jsx-runtime"),Wt=({value:e,onChange:t,debounce:o=500,addon:r,...a})=>{let[n,s]=(0,bt.useState)(e??""),l=d=>s(d.target.value);return(0,bt.useEffect)(()=>{e&&s(e)},[e]),(0,bt.useEffect)(()=>{let d=setTimeout(()=>{t(n)},o);return()=>clearTimeout(d)},[n,o,t]),(0,To.jsx)(U,{leftNode:r??(0,To.jsx)(Hr.Search,{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:l,value:n})};var So=require("react"),Gr=require("lucide-react"),W=require("react/jsx-runtime"),_r=e=>{let{environment:t,branch:o,version:r,deployTime:a,showBanner:n,onClose:s,initDefault:l,removeFromStorage:d,syncLocalStorageToState:p}=e,c=t||process.env.NEXT_PUBLIC_NODE_ENV;return c!=="staging"&&c!=="sandbox"||((0,So.useEffect)(()=>{p()},[p]),(0,So.useEffect)(()=>{let u;return(c==="staging"||c==="sandbox")&&(u=setInterval(()=>{d(),l()},5*60*1e3)),()=>{u&&clearInterval(u)}},[n,t,s,d,l,c]),!n)?null:(0,W.jsxs)("div",{className:"w-fit p-4 border shadow-md bg-white rounded-md z-[99999] absolute top-2 right-2 min-w-96",children:[(0,W.jsx)("button",{onClick:s,className:"absolute top-2 right-2",children:(0,W.jsx)(Gr.X,{})}),(0,W.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,W.jsxs)("div",{className:"flex gap-2",children:[(0,W.jsx)("span",{className:"font-medium",children:"Environment:"}),(0,W.jsx)("span",{className:"text-blue-600 capitalize",children:c})]}),(0,W.jsxs)("div",{className:"flex gap-2",children:[(0,W.jsx)("span",{className:"font-medium",children:"Branch:"}),(0,W.jsx)("span",{className:"text-green-600 capitalize",children:o||process.env.NEXT_PUBLIC_DEPLOY_BRANCH})]}),(0,W.jsxs)("div",{className:"flex gap-2",children:[(0,W.jsx)("span",{className:"font-medium",children:"Version:"}),(0,W.jsx)("span",{className:"text-purple-600",children:r||process.env.NEXT_PUBLIC_DEPLOY_VERSION})]}),(0,W.jsxs)("div",{className:"flex gap-2",children:[(0,W.jsx)("span",{className:"font-medium",children:"Deploy Time:"}),(0,W.jsx)("span",{className:"text-orange-600",children:a||process.env.NEXT_PUBLIC_DEPLOY_TIME})]})]})]})};var xt=b(require("react")),q=require("vaul"),$r=require("class-variance-authority");var Ct=require("react/jsx-runtime"),Wr=()=>(0,Ct.jsxs)("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:[(0,Ct.jsx)("path",{d:"M18 6 6 18"}),(0,Ct.jsx)("path",{d:"m6 6 12 12"})]});var zt=require("react");function zr(){let[e,t]=(0,zt.useState)({width:100,height:100});return(0,zt.useEffect)(()=>{function o(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",o),o(),()=>window.removeEventListener("resize",o)},[]),e}var k=require("react/jsx-runtime"),$t=({shouldScaleBackground:e=!0,...t})=>(0,k.jsx)(q.Drawer.Root,{direction:"right",shouldScaleBackground:e,...t});$t.displayName="Drawer";var Sn=q.Drawer.Trigger,Zr=q.Drawer.Close,Fn=q.Drawer.Portal,Ur=xt.forwardRef(({className:e,...t},o)=>(0,k.jsx)(q.Drawer.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:o}));Ur.displayName=q.Drawer.Overlay.displayName;var En=(0,$r.cva)("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"}}),Kr=xt.forwardRef(({side:e="right",hideCloseButton:t,className:o,children:r,id:a,...n},s)=>(0,k.jsxs)(Fn,{children:[(0,k.jsx)(Ur,{}),(0,k.jsxs)(q.Drawer.Content,{ref:s,className:i(En({side:e}),o),...n,children:[(0,k.jsx)("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"}),r,!t&&(0,k.jsxs)(q.Drawer.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:[(0,k.jsx)(Wr,{}),(0,k.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Kr.displayName=q.Drawer.Content.displayName;var Xr=({className:e,...t})=>(0,k.jsx)("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});Xr.displayName="DrawerHeader";var jr=({className:e,...t})=>(0,k.jsx)("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});jr.displayName="DrawerFooter";var Yr=xt.forwardRef(({className:e,...t},o)=>(0,k.jsx)(q.Drawer.Title,{ref:o,className:i("text-xl font-semibold text-[#191919] dark:text-white",e),...t}));Yr.displayName=q.Drawer.Title.displayName;var qr=xt.forwardRef(({className:e,...t},o)=>(0,k.jsx)(q.Drawer.Description,{ref:o,className:i("text-xs text-[#5d5c5c] dark:text-white",e),...t}));qr.displayName=q.Drawer.Description.displayName;var Jr=({trigger:e=void 0,children:t,open:o=void 0,onOpenChange:r=void 0,hideCloseButton:a,footer:n,title:s,description:l,contentClassName:d,headerClassName:p,titleClassName:c,descriptionClassName:u,footerClassName:m,asChild:f=!0,onOpenAutoFocus:y,drawerContentClassName:C,onCloseAutoFocus:h,id:v="drawer"})=>{let{width:R}=zr(),I=R<768?"bottom":"right";return(0,k.jsxs)($t,{open:o,onOpenChange:r,direction:I,children:[(0,k.jsx)(Sn,{className:"cursor-pointer",asChild:f,id:`${v}-open-trigger`,children:e}),(0,k.jsxs)(Kr,{className:i("flex flex-col gap-0 justify-start items-start max-h-[90vh] md:max-h-full w-full !max-w-md",d),side:I,hideCloseButton:a,onOpenAutoFocus:y,onCloseAutoFocus:h,id:`${v}-content`,children:[s||l?(0,k.jsxs)(Xr,{className:p,id:`${v}-header`,children:[s&&(0,k.jsx)(Yr,{className:c,id:`${v}-title`,children:s}),l&&(0,k.jsx)(qr,{id:`${v}-description`,className:u,children:l})]}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)("div",{className:i("flex w-full overflow-y-auto flex-col justify-start items-start p-4 flex-1 h-[30px]",C),children:t}),n&&(0,k.jsx)(jr,{className:m,children:n})]})]})};var Fo=require("react/jsx-runtime"),Qr=()=>(0,Fo.jsx)("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:(0,Fo.jsx)("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"})});var Be=require("react/jsx-runtime"),ea=e=>(0,Be.jsxs)("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:[(0,Be.jsx)("rect",{width:"60",height:"30",fill:"#00247D"}),(0,Be.jsx)("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#FFFFFF",strokeWidth:"6"}),(0,Be.jsx)("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#CF142B",strokeWidth:"4"}),(0,Be.jsx)("path",{d:"M30,0 L30,30 M0,15 L60,15",stroke:"#FFFFFF",strokeWidth:"10"}),(0,Be.jsx)("path",{d:"M30,0 L30,30 M0,15 L60,15",stroke:"#CF142B",strokeWidth:"6"})]});var Ye=require("react/jsx-runtime"),ta=e=>(0,Ye.jsxs)("svg",{viewBox:"0 0 60 40",className:"w-full max-w-md h-auto","aria-label":"Tricolore - Flag of France",...e,children:[(0,Ye.jsx)("rect",{x:"0",y:"0",width:"20",height:"40",fill:"#002395"}),(0,Ye.jsx)("rect",{x:"20",y:"0",width:"20",height:"40",fill:"#FFFFFF"}),(0,Ye.jsx)("rect",{x:"40",y:"0",width:"20",height:"40",fill:"#ED2939"})]});var wt=require("react/jsx-runtime"),oa=()=>(0,wt.jsxs)("svg",{width:"20",height:"18",viewBox:"0 0 8 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,wt.jsx)("path",{d:"M5.50257 12.9395L3.68439 14.7576L1.86621 12.9395",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,wt.jsx)("path",{d:"M5.50257 5.06055L3.68439 3.24237L1.86621 5.06055",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});var ra=require("@radix-ui/react-popover"),z=require("react/jsx-runtime"),An=[{key:"en",label:"English"},{key:"fr",label:"French"}],In=({locale:e})=>e==="fr"?(0,z.jsx)(ta,{width:10}):(0,z.jsx)(ea,{width:10}),Mn=({locale:e})=>(0,z.jsx)("div",{className:"px-2 py-1 ",children:(0,z.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,z.jsx)(In,{locale:e})," ",(0,z.jsx)("span",{className:"uppercase",children:e}),(0,z.jsx)(oa,{})]})}),aa=({locale:e="en",onChange:t,locales:o=An})=>(0,z.jsxs)(ae,{children:[(0,z.jsx)("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:(0,z.jsx)(X,{className:"!p-0 !bg-transparent ",id:"locale_select_dropdown",children:(0,z.jsx)(Mn,{locale:e})})}),(0,z.jsx)(Y,{side:"bottom",className:"p-0 max-w-max rounded-md overflow-hidden mx-auto mt-2",children:(0,z.jsx)("div",{children:o?.map(r=>(0,z.jsxs)(ra.PopoverClose,{type:"button",id:`locale_option_${r?.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===r?.key}),onClick:()=>t?.(r?.key),children:[r?.label," ",e&&e===r?.key&&(0,z.jsx)(Qr,{})]},r?.key))})})]});var ze=require("react");var Zt=require("framer-motion"),Ut=require("react"),ia=require("react-icons/hi"),sa=require("react-icons/fi"),la=require("react-icons/bs");var Ve=require("react/jsx-runtime"),Nt=({activeBusiness:e,onTriggerClick:t,iconOnly:o=!1,className:r,rightNode:a})=>(0,Ve.jsxs)("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":!o,"hover:bg-primary-accent transition-all duration-150 cursor-pointer ":!!t},r),children:[(0,Ve.jsx)("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":!o,"w-full h-10 mr-0":o}),children:e?.name?.charAt(0)||"M"}),!o&&(0,Ve.jsxs)("section",{className:"flex-1 flex justify-between items-center relative text-black w-full -space-y-1 tracking-wide",children:[(0,Ve.jsxs)("div",{className:"flex-1 min-w-0 max-w-[150px] w-full",children:[(0,Ve.jsx)(We,{as:"h2",className:"text-base capitalize font-medium",children:e?.name}),(0,Ve.jsx)(We,{as:"p",className:"text-sm text-[#A5A5A5]",onClick:void 0,children:e?.email})]}),a]})]});var ca=require("lucide-react");var Eo=require("react/jsx-runtime"),na=e=>(0,Eo.jsx)("svg",{width:"9",height:"8",viewBox:"0 0 9 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,Eo.jsx)("circle",{cx:"4.5",cy:"4",r:"4",fill:"#62C554"})});var O=require("react/jsx-runtime"),Bn={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}}},da=({activeBusiness:e,toggleAddBusinessDrawer:t,businesses:o=[],handleSwitchBusiness:r,onLogoutClick:a,onToggleSideBar:n,toggleShowBusiness:s,isMobile:l,collapseType:d})=>{let[p,c]=(0,Ut.useState)(""),u=(0,Ut.useMemo)(()=>{let v=p.toLowerCase();return(o||[]).filter(R=>R.name?.toLowerCase().startsWith(v))},[o,p]),m=d==="hidden"||l,f=v=>c(v.target.value),y=v=>{r(v||""),m&&n(!1),c("")},C=()=>{t(),s(!1),m&&n(!1),c("")},h=()=>{a?.(),s(!1),m&&n(!1),c("")};return(0,O.jsx)(Zt.AnimatePresence,{initial:!1,children:(0,O.jsx)(Zt.motion.div,{initial:"hidden",animate:"visible",exit:"exit",variants:Bn,children:(0,O.jsxs)("div",{className:"w-72 bg-white border-x border-t rounded-xl overflow-hidden p-3",style:{boxShadow:`
1
+ "use strict";var dn=Object.create;var rt=Object.defineProperty;var pn=Object.getOwnPropertyDescriptor;var mn=Object.getOwnPropertyNames;var un=Object.getPrototypeOf,fn=Object.prototype.hasOwnProperty;var gn=(e,t,o)=>t in e?rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var hn=(e,t)=>{for(var o in t)rt(e,o,{get:t[o],enumerable:!0})},Uo=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mn(t))!fn.call(e,a)&&a!==o&&rt(e,a,{get:()=>t[a],enumerable:!(r=pn(t,a))||r.enumerable});return e};var b=(e,t,o)=>(o=e!=null?dn(un(e)):{},Uo(t||!e||!e.__esModule?rt(o,"default",{value:e,enumerable:!0}):o,e)),vn=e=>Uo(rt({},"__esModule",{value:!0}),e);var Ko=(e,t,o)=>gn(e,typeof t!="symbol"?t+"":t,o);var jn={};hn(jn,{AmountAction:()=>$o,Banner:()=>Ir,Button:()=>se,CalendarInput:()=>eo,CopyableLabel:()=>Or,Country:()=>Tr,CurrencySymbolMap:()=>zo,DateAction:()=>Zo,DebouncedInput:()=>Wt,DevBanner:()=>_r,Dialog:()=>Mt,Drawer:()=>Jr,DrawerClose:()=>Zr,DrawerRoot:()=>$t,FilterPopover:()=>ao,FlagComponent:()=>De,FormLabel:()=>V,HasResourcePermission:()=>Ha,Input:()=>U,Loader:()=>ke,LocaleSelector:()=>aa,MultiSelect:()=>$a,MultiSelectTrigger:()=>lo,OTPInput:()=>Ar,PageDataToolbar:()=>no,Pagination:()=>qt,PasswordInput:()=>wo,PermissionsContext:()=>Tt,PermissionsProvider:()=>Va,PhoneInput:()=>ko,Popover:()=>ne,PopoverContent:()=>Y,PopoverRoot:()=>ae,PopoverTrigger:()=>X,RadioGroup:()=>kt,RadioGroupItem:()=>Dt,RichTextEditor:()=>cn,ScrollArea:()=>be,Select:()=>je,Sidebar:()=>Ca,Status:()=>xa,Table:()=>Ba,Tabs:()=>Za,TextOverflow:()=>We,Textarea:()=>No,Tooltip:()=>at,TooltipContent:()=>Et,TooltipProvider:()=>fo,TooltipRoot:()=>go,TooltipTrigger:()=>ho,buttonVariants:()=>te,cn:()=>i,useFilterStore:()=>Qe,useHasPermission:()=>so,usePermissions:()=>Oo});module.exports=vn(jn);var Yo=b(require("react")),ue=b(require("@radix-ui/react-tooltip"));var Xo=require("clsx"),jo=require("tailwind-merge");function i(...e){return(0,jo.twMerge)((0,Xo.clsx)(e))}var Le=require("react/jsx-runtime"),fo=ue.Provider,go=ue.Root,ho=ue.Trigger,Et=Yo.forwardRef(({className:e,sideOffset:t=2,...o},r)=>(0,Le.jsx)(ue.Content,{ref:r,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),...o,children:o.children}));Et.displayName=ue.Content.displayName;var at=({trigger:e,children:t,contentClassName:o,triggerClassName:r,asChild:a=!0,side:n,sideOffset:s,align:l,alignOffset:d,delayDuration:p=100,hasArrow:c=!0,arrowClassName:u,...m})=>(0,Le.jsx)(fo,{children:(0,Le.jsx)(go,{delayDuration:p,...m,children:(0,Le.jsxs)("div",{className:"flex justify-center items-center",children:[(0,Le.jsx)(ho,{asChild:a,className:r,children:e}),(0,Le.jsxs)(Et,{side:n,sideOffset:s,align:l,alignOffset:d,className:o,children:[t,c&&(0,Le.jsx)(ue.Arrow,{className:i("fill-white",u)})]})]})})});at.displayName="Tooltip";var er=b(require("react"));var qo=b(require("react")),vo=b(require("@radix-ui/react-label")),Jo=require("class-variance-authority");var Qo=require("react/jsx-runtime"),yn=(0,Jo.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),yo=qo.forwardRef(({className:e,...t},o)=>(0,Qo.jsx)(vo.Root,{ref:o,className:i(yn(),e),...t}));yo.displayName=vo.Root.displayName;var nt=require("react/jsx-runtime"),V=er.default.forwardRef(({className:e,children:t,showAsterisk:o,error:r,...a},n)=>(0,nt.jsx)(yo,{ref:n,className:i(r&&"text-red-500",e),...a,children:o?(0,nt.jsxs)("p",{children:[t,(0,nt.jsx)("span",{className:"text-red-500",children:"*"})]}):t}));V.displayName="FormLabel";var it=require("react/jsx-runtime"),ke=({size:e=16,colour:t="primary"})=>(0,it.jsxs)("svg",{className:"animate-spin",width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:[(0,it.jsx)("circle",{cx:"10",cy:"10",r:"9.25",stroke:"transparent",strokeWidth:"1.5"}),(0,it.jsx)("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"})]});var At=b(require("react")),tr=require("@radix-ui/react-slot"),or=require("class-variance-authority");var fe=require("react/jsx-runtime"),te=(0,or.cva)("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"}}),se=At.forwardRef(({className:e,variant:t="primary",size:o,asChild:r=!1,isLoading:a=!1,leftNode:n,rightNode:s,LoaderSize:l,...d},p)=>{let c=r?tr.Slot:"button",{children:u,disabled:m,...f}=d,y=At.useRef(null);return(0,fe.jsx)(c,{className:i(te({variant:t,size:o,className:e})),ref:y||p,disabled:m||a,...f,children:(0,fe.jsx)("div",{className:"flex font-medium justify-center items-center gap-2",children:a?(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsx)("span",{className:"mx-auto",children:(0,fe.jsx)(ke,{size:l,colour:"secondary"})})}):(0,fe.jsxs)(fe.Fragment,{children:[n,u,s]})})})});se.displayName="Button";var bo=b(require("react"));var It=require("class-variance-authority");var rr=b(require("react")),ar=require("react/jsx-runtime"),ge=rr.default.forwardRef(({className:e,children:t,error:o,...r},a)=>{let n=o??t;return n?(0,ar.jsx)("p",{ref:a,className:i("text-xs font-normal text-[#F04248]",e),...r,children:n}):null});ge.displayName="ErrorMessage";var nr=b(require("react")),ir=require("react/jsx-runtime"),he=nr.default.forwardRef(({className:e,...t},o)=>(0,ir.jsx)("div",{ref:o,className:i("text-sm text-[#8E98A8",e),...t}));he.displayName="FormDescription";var ve=require("react/jsx-runtime"),bn=(0,It.cva)("!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"}}),lr=bo.forwardRef(({className:e,status:t,type:o,...r},a)=>(0,ve.jsx)("input",{type:o,className:i(bn({status:t}),e),ref:a,...r}));lr.displayName="BaseInnerInput";var oe=(0,It.cva)("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"}}),sr=(0,It.cva)("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"}}),U=bo.forwardRef(({className:e,status:t="default",disabled:o,error:r,isLoading:a,sideNodeClassName:n,showAsterisk:s,label:l,description:d,...p},c)=>{let u=t;return r&&(u="error"),a&&(u="loading"),o&&(u="prefilled"),(0,ve.jsxs)("div",{className:"relative space-y-1 w-full",children:[l&&(0,ve.jsx)(V,{showAsterisk:s,error:r,children:l}),(0,ve.jsxs)("div",{className:i(oe({status:u}),p.leftNode?"pl-0":"",p.rightNode?"pr-0":"",e),children:[p.leftNode?(0,ve.jsx)("div",{className:i(sr({status:u,side:"left"}),n),children:p.leftNode}):null,(0,ve.jsx)(lr,{ref:c,disabled:a||o,className:i({"!pl-3":p.leftNode&&t!=="neutral","!pr-3":p.rightNode&&t!=="neutral","sentry-mask":!!p?.isContentSensitive}),...p}),p.rightNode?(0,ve.jsx)("div",{className:i(sr({status:u,side:"right"}),n),children:p.rightNode}):null]}),d&&(0,ve.jsx)(he,{className:"text-gray-400 text-sm !font-normal",children:d}),(0,ve.jsx)(ge,{error:r})]})});U.displayName="Input";var ct=require("react");var Co=require("react/jsx-runtime"),cr=()=>(0,Co.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Co.jsx)("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"})});var st=require("react/jsx-runtime"),dr=()=>(0,st.jsxs)("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,st.jsx)("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"}),(0,st.jsx)("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"})]});var lt=require("react/jsx-runtime"),pr=()=>(0,lt.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,lt.jsx)("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"}),(0,lt.jsx)("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"})]});var xo=require("react/jsx-runtime"),mr=()=>(0,xo.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,xo.jsx)("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"})});var re=require("react/jsx-runtime"),ur=[{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}],wo=({onValidate:e,onChange:t,disableValidation:o,...r})=>{let[a,n]=(0,ct.useState)(!1),[s,l]=(0,ct.useState)(ur),d=m=>ur.map(f=>({...f,validated:f.RegExp.test(m)})),p=m=>{let f=d(m),y=f.every(C=>C.validated);return l(f),y},c=m=>{if(t&&t(m),o)return;let f=m?.target?.value,y=p(f);e&&e(y,f)},u=(0,ct.useMemo)(()=>(0,re.jsx)("div",{className:"flex items-center gap-2",children:s?.map(m=>(0,re.jsxs)("div",{className:i("text-xs flex items-center gap-0.5",{"text-[#62C554]":m?.validated,"text-[#8E98A8]":!m?.validated}),children:[(0,re.jsx)("span",{className:"",children:m?.validated?(0,re.jsx)(cr,{}):(0,re.jsx)(mr,{})}),(0,re.jsx)("span",{className:"",children:m?.label})]},m?.key))}),[s]);return(0,re.jsx)(U,{sideNodeClassName:"!border-l-0",rightNode:a?(0,re.jsx)("button",{type:"button",onClick:()=>n(m=>!m),children:(0,re.jsx)(dr,{})}):(0,re.jsx)("button",{type:"button",onClick:()=>n(m=>!m),children:(0,re.jsx)(pr,{})}),type:a?"text":"password",onChange:c,description:!o&&u,isContentSensitive:!0,...r})};wo.displayName="PasswordInput";var fr=require("class-variance-authority");var Ge=require("react/jsx-runtime"),Mi=(0,fr.cva)("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"}}),No=({className:e,status:t="default",disabled:o,error:r,isLoading:a,showAsterisk:n,label:s,description:l,...d})=>{let p=t;return r&&(p="error"),a&&(p="loading"),o&&(p="prefilled"),(0,Ge.jsxs)("div",{className:"relative space-y-1",children:[(0,Ge.jsx)(V,{showAsterisk:n,error:r,children:s}),(0,Ge.jsx)("textarea",{className:i("min-h-[80px]",oe({status:p}),e),disabled:a||o,...d}),(0,Ge.jsx)(he,{className:"text-gray-400 text-sm !font-normal",children:l}),(0,Ge.jsx)(ge,{error:r})]})};No.displayName="Textarea";var _e=b(require("react"));var Fe=b(require("react")),K=require("cmdk"),wr=require("lucide-react");var pt=b(require("react")),A=b(require("@radix-ui/react-dialog"));var dt=require("react/jsx-runtime"),gr=()=>(0,dt.jsxs)("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:[(0,dt.jsx)("path",{d:"M18 6 6 18"}),(0,dt.jsx)("path",{d:"m6 6 12 12"})]});var T=require("react/jsx-runtime"),Cn=A.Root,xn=A.Trigger,hr=A.Portal,vr=pt.forwardRef(({className:e,...t},o)=>(0,T.jsx)(A.Overlay,{ref:o,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}));vr.displayName=A.Overlay.displayName;var Ro=pt.forwardRef(({className:e,hideCloseButton:t,children:o,...r},a)=>(0,T.jsxs)(hr,{children:[(0,T.jsx)(vr,{}),(0,T.jsxs)(A.Content,{ref:a,className:i("fixed left-[50%] top-[50%] z-50 grid w-full 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),...r,children:[o,!t&&(0,T.jsxs)(A.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:[(0,T.jsx)(gr,{}),(0,T.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ro.displayName=A.Content.displayName;var yr=({className:e,...t})=>(0,T.jsx)("div",{className:i("flex flex-col space-y-1.5 text-left",e),...t});yr.displayName="DialogHeader";var br=({className:e,...t})=>(0,T.jsx)("div",{className:i("flex flex-row justify-end sm:space-x-2",e),...t});br.displayName="DialogFooter";var Cr=pt.forwardRef(({className:e,...t},o)=>(0,T.jsx)(A.Title,{ref:o,className:i("text-xl font-semibold leading-none tracking-tight",e),...t}));Cr.displayName=A.Title.displayName;var xr=pt.forwardRef(({className:e,...t},o)=>(0,T.jsx)(A.Description,{ref:o,className:i("text-sm text-gray-500",e),...t}));xr.displayName=A.Description.displayName;var Mt=({trigger:e=void 0,children:t,open:o,onOpenChange:r,hideCloseButton:a,footer:n,title:s,description:l,contentClassName:d,headerClassName:p,titleClassName:c,descriptionClassName:u,footerClassName:m,asChild:f=!0,onOpenAutoFocus:y,onCloseAutoFocus:C,onEscapeKeyDown:h,onInteractOutside:v,onPointerDownOutside:R,...I})=>(0,T.jsxs)(Cn,{...I,open:o,onOpenChange:r,children:[(0,T.jsx)(xn,{asChild:f,children:e}),(0,T.jsx)(hr,{children:(0,T.jsxs)(Ro,{className:d,hideCloseButton:a,onOpenAutoFocus:y,onCloseAutoFocus:C,onEscapeKeyDown:h,onPointerDownOutside:R,onInteractOutside:v,children:[s||l?(0,T.jsxs)(yr,{className:p,children:[s&&(0,T.jsx)(Cr,{className:c,children:s}),l&&(0,T.jsx)(xr,{className:u,children:l})]}):(0,T.jsx)(T.Fragment,{}),t,n&&(0,T.jsx)(br,{className:m,children:n})]})})]});Mt.displayName=A.Dialog.displayName;var j=require("react/jsx-runtime"),mt=Fe.forwardRef(({className:e,...t},o)=>(0,j.jsx)(K.Command,{ref:o,className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));mt.displayName=K.Command.displayName;var ut=Fe.forwardRef(({className:e,CommandInputContainerClassName:t,loading:o,...r},a)=>(0,j.jsxs)("div",{className:i("flex items-center border-0 px-3 gap-2",t),"cmdk-input-wrapper":"",children:[o?(0,j.jsx)(ke,{size:16,colour:"secondary"}):(0,j.jsx)(wr.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,j.jsx)(K.Command.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:o,...r})]}));ut.displayName=K.Command.Input.displayName;var ft=Fe.forwardRef(({className:e,...t},o)=>(0,j.jsx)(K.Command.List,{ref:o,className:i("overflow-y-auto overflow-x-hidden",e),...t}));ft.displayName=K.Command.List.displayName;var gt=Fe.forwardRef((e,t)=>(0,j.jsx)(K.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));gt.displayName=K.Command.Empty.displayName;var ht=Fe.forwardRef(({className:e,...t},o)=>(0,j.jsx)(K.Command.Group,{ref:o,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}));ht.displayName=K.Command.Group.displayName;var wn=Fe.forwardRef(({className:e,...t},o)=>(0,j.jsx)(K.Command.Separator,{ref:o,className:i("-mx-1 h-px bg-border",e),...t}));wn.displayName=K.Command.Separator.displayName;var vt=Fe.forwardRef(({className:e,...t},o)=>(0,j.jsx)(K.Command.Item,{ref:o,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}));vt.displayName=K.Command.Item.displayName;var Nn=({className:e,...t})=>(0,j.jsx)("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Nn.displayName="CommandShortcut";var Nr=b(require("react")),ye=b(require("@radix-ui/react-popover"));var Ee=require("react/jsx-runtime"),ae=ye.Root,X=ye.Trigger,Y=Nr.forwardRef(({className:e,align:t="center",sideOffset:o=4,portal:r=!0,...a},n)=>r?(0,Ee.jsx)(ye.Portal,{children:(0,Ee.jsx)(ye.Content,{ref:n,align:t,sideOffset:o,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})}):(0,Ee.jsx)(ye.Content,{ref:n,align:t,sideOffset:o,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}));Y.displayName=ye.Content.displayName;var ne=({trigger:e,children:t,open:o,onOpenChange:r,contentClassName:a,asChild:n=!0,align:s,side:l,alignOffset:d,triggerClassName:p,sideOffset:c,onOpenAutoFocus:u,onCloseAutoFocus:m,portal:f=!0,id:y="popover",...C})=>(0,Ee.jsxs)(ae,{...C,open:o,onOpenChange:r,children:[(0,Ee.jsx)(X,{asChild:n,className:p,id:`${y}-trigger`,children:e}),(0,Ee.jsx)(Y,{alignOffset:d,sideOffset:c,side:l,align:s,className:a,onOpenAutoFocus:u,onCloseAutoFocus:m,portal:f,id:`${y}-content`,children:t})]});ne.displayName=ye.Root.displayName;var Po=b(require("react")),le=b(require("@radix-ui/react-scroll-area"));var Ae=require("react/jsx-runtime"),be=Po.forwardRef(({className:e,viewPortClassName:t,children:o,...r},a)=>(0,Ae.jsxs)(le.Root,{ref:a,className:i("relative overflow-hidden",e),...r,children:[(0,Ae.jsx)(le.Viewport,{className:i("h-full w-full rounded-[inherit]",t),children:o}),(0,Ae.jsx)(Bt,{}),(0,Ae.jsx)(le.Corner,{})]}));be.displayName=le.Root.displayName;var Bt=Po.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ae.jsx)(le.ScrollAreaScrollbar,{ref:r,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),...o,children:(0,Ae.jsx)(le.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-[#959595] transition hover:bg-[#808080]"})}));Bt.displayName=le.ScrollAreaScrollbar.displayName;var $=require("react/jsx-runtime"),Rr=({className:e,value:t,placeholder:o="",status:r,disabled:a,id:n})=>(0,$.jsx)(X,{asChild:!0,disabled:a,id:n??"searchable-trigger",children:(0,$.jsxs)("button",{disabled:a,className:i(oe({status:r}),"[&>span]:justify-start [&>span]:items-center gap-2 flex h-12 w-full items-center justify-between goup",t?"":"text-[#79818C]",e),children:[t??o??"Select options...",(0,$.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:(0,$.jsx)("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"})})]})}),Vt=({options:e=[],value:t,onChange:o,containerClassName:r,placeholder:a,disabled:n,loading:s,optionComponent:l,children:d,modal:p=!1,hideSearch:c,className:u,inputValue:m,onValueChange:f,onInputValueChange:y})=>{let[C,h]=_e.useState(!1),v=_e.useRef(null),[R,I]=_e.useState(void 0);return _e.useLayoutEffect(()=>{v.current&&I(v.current.clientWidth)},[v.current]),(0,$.jsxs)(ae,{modal:p,open:C,onOpenChange:h,children:[(0,$.jsx)("div",{className:i("w-full",u),ref:v,children:d}),(0,$.jsx)(Y,{portal:!p,className:"p-0 min-w-[200px]",style:{width:R},children:(0,$.jsxs)(mt,{className:i("relative max-h-[270px]",{"mt-2":!c}),children:[!c&&(0,$.jsx)(ut,{loading:s,placeholder:a??"Search options...",onValueChange:y,value:m,CommandInputContainerClassName:"mx-2 border rounded-md border-[#DEDEDE]"}),(0,$.jsx)(be,{viewPortClassName:"max-h-[225px]",className:i("w-full px-0 h-full overflow-y-auto",r),children:(0,$.jsxs)(ft,{children:[!c&&(0,$.jsx)(gt,{children:"No result found."}),(0,$.jsx)(ht,{className:"w-full",children:e?.map(g=>(0,$.jsx)(vt,{defaultValue:t?.label,value:g.label,disabled:n,onSelect:()=>{o(g),h(!1),f?.(g?.value)},id:g.value,children:l?l(g):g.label},g.value))})]})})]})})]})};var Lo=[{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"}],Pr=()=>{let e={};return Lo?.forEach(t=>{e[t?.internetCountryCode]=t?.countryName}),e};var yt=b(require("react")),Ot=b(require("react-phone-number-input")),kr=b(require("react-phone-number-input/flags"));var Ie=require("react/jsx-runtime"),Rn=e=>(0,Ie.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,Ie.jsx)("rect",{width:"32",height:"32",fill:"#60A5FA"})," ",(0,Ie.jsx)("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"}),(0,Ie.jsx)("rect",{x:"2",y:"28",width:"28",height:"3",fill:"#D1D5DB"}),(0,Ie.jsx)("path",{d:"M0 16H32M8 0V32M16 0V32M24 0V32",stroke:"#2563EB",strokeWidth:"0.5",vectorEffect:"non-scaling-stroke"}),(0,Ie.jsx)("path",{d:"M0 16H32",stroke:"#2563EB",strokeWidth:"1",vectorEffect:"non-scaling-stroke"})]}),Lr=Rn;var w=require("react/jsx-runtime"),ko=yt.forwardRef(({className:e,onChange:t,defaultCountry:o="NG",modal:r,showAsterisk:a,label:n,description:s,error:l,...d},p)=>{let c=u=>(0,w.jsx)(Pn,{...u,status:d.status,modal:r});return(0,w.jsxs)("div",{className:"relative space-y-1",children:[(0,w.jsx)(V,{showAsterisk:a,error:l,children:n}),(0,w.jsx)(Ot.default,{ref:p,className:i("flex sentry-mask",e),flagComponent:De,countrySelectComponent:c,inputComponent:Dr,defaultCountry:o,onChange:u=>{t&&t?.(u)},...d}),(0,w.jsx)(he,{className:"text-gray-400 text-sm !font-normal",children:s}),(0,w.jsx)(ge,{error:l})]})});ko.displayName="PhoneInput";var Dr=yt.forwardRef(({className:e,...t},o)=>(0,w.jsx)(U,{className:i("!rounded-s-none h-10",e),...t,ref:o}));Dr.displayName="InputComponent";var Pn=({disabled:e,value:t,onChange:o,options:r,status:a,modal:n})=>{let s=yt.useCallback(l=>{o(l)},[o]);return(0,w.jsxs)(ae,{modal:n,children:[(0,w.jsx)(X,{disabled:e,children:(0,w.jsxs)("div",{className:i(oe({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:[(0,w.jsx)(De,{country:t,countryName:t}),(0,w.jsx)("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:(0,w.jsx)("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"})})]})}),(0,w.jsx)(Y,{portal:!n,className:"w-[200px] md:w-[300px] p-0",children:(0,w.jsx)(mt,{children:(0,w.jsx)(ft,{children:(0,w.jsxs)(be,{className:"h-72",children:[(0,w.jsx)(ut,{placeholder:"Search country..."}),(0,w.jsx)(gt,{children:"No country found."}),(0,w.jsx)(ht,{children:r.filter(l=>l.value).map(l=>(0,w.jsxs)(vt,{className:"gap-2",onSelect:()=>s(l.value),children:[(0,w.jsx)(De,{country:l.value,countryName:l.label}),(0,w.jsx)("span",{className:"flex-1 text-sm",children:l.label}),l.value&&(0,w.jsx)("span",{className:"text-[#191919]/50 text-sm dark:text-white",children:`+${Ot.getCountryCallingCode(l.value)}`}),(0,w.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:i("ml-auto",l.value===t?"opacity-100":"opacity-0"),children:(0,w.jsx)("path",{d:"M4 8.00008L6.66353 10.6636L12 5.33655",stroke:"#959595",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"})})]},`${l.value}-${l.label}`))})]})})})})]})},De=({country:e,countryName:t,className:o})=>{let r=kr.default[e];return e==="GLOBAL"?(0,w.jsx)("span",{className:i("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",o),children:(0,w.jsx)(Lr,{className:"w-full h-[90%]"})}):(0,w.jsx)("span",{className:i("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",o),children:r&&(0,w.jsx)(r,{title:t})})};De.displayName="FlagComponent";var _=require("react/jsx-runtime"),Ln=Pr(),kn=({className:e,value:t,placeholder:o="",status:r,disabled:a})=>(0,_.jsx)(X,{asChild:!0,disabled:a,id:"country-dropdown",children:(0,_.jsxs)("button",{disabled:a,className:i(oe({status:r}),"[&>span]:justify-start [&>span]:items-center gap-2 flex w-full items-center justify-between goup",t?"":"text-[#79818C]",e),children:[t?(0,_.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,_.jsx)(De,{country:t,countryName:t,className:"ml-1 !w-6 h-5"}),(0,_.jsxs)("span",{className:"",children:[" ",Ln[t]]})]}):o??"Select options...",(0,_.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:(0,_.jsx)("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"})})]})}),Tr=({hideSearch:e=!0,showAsterisk:t,label:o,description:r,error:a,...n})=>{let s=Lo?.map(l=>({value:l?.internetCountryCode,label:l?.countryName,...l}));return(0,_.jsxs)("div",{className:"relative space-y-1",children:[(0,_.jsx)(V,{showAsterisk:t,error:a,children:o}),(0,_.jsx)(Vt,{options:s,hideSearch:e,optionComponent:l=>(0,_.jsxs)("div",{className:"w-full flex items-center gap-2",children:[(0,_.jsx)(De,{country:l?.internetCountryCode,countryName:l?.label,className:"ml-2 !w-6 !h-5"}),(0,_.jsx)("span",{className:"flex-1 text-sm",children:l?.label})]}),...n,children:(0,_.jsx)(kn,{value:n?.value?.value,status:n?.status,placeholder:n?.placeholder??" Select Country"})}),(0,_.jsx)(he,{className:"text-gray-400 text-sm !font-normal",children:r}),(0,_.jsx)(ge,{error:a})]})};var Me=require("react/jsx-runtime"),je=({showAsterisk:e,label:t,description:o,error:r,hideSearch:a=!0,status:n,...s})=>(0,Me.jsxs)("div",{className:"relative space-y-1",children:[(0,Me.jsx)(V,{showAsterisk:e,error:r,children:t}),(0,Me.jsx)(Vt,{hideSearch:a,...s,containerClassName:"h-full",children:(0,Me.jsx)(Rr,{disabled:s?.disabled,placeholder:s?.placeholder??"Select",status:n,value:s?.value?.label??s?.value?.value,className:s?.className,id:s?.id})}),(0,Me.jsx)(he,{className:"text-gray-400 text-sm !font-normal",children:o}),(0,Me.jsx)(ge,{error:r})]});var Sr=require("class-variance-authority"),Fr=require("react"),Er=b(require("react-otp-input")),Do=require("react/jsx-runtime"),Dn=(0,Sr.cva)("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",{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"}}),Ar=({numInputs:e=4,inputStyle:t,containerStyle:o,placeholder:r="-",status:a,...n})=>{let s=(0,Fr.useMemo)(()=>r||new Array(e).fill("").reduce((p,c)=>p+=c,""),[e,r]);return(0,Do.jsx)(Er.default,{numInputs:e,placeholder:s,containerStyle:i("w-full sentry-mask",o),inputStyle:i(Dn({status:a}),t,"sentry-mask"),renderInput:l=>(0,Do.jsx)("input",{...l}),...n})};var Ht=require("react"),P=require("react/jsx-runtime"),Tn=({type:e})=>e==="gray"?(0,P.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("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"?(0,P.jsx)("svg",{stroke:"#70B6F6",fill:"#70B6F6","stroke-width":"0",viewBox:"0 0 16 16",height:"24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("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"?(0,P.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("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"?(0,P.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("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"})}):(0,P.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("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"})}),Ir=({type:e="info",title:t,description:o,open:r,showCloseButton:a,bottomNode:n,sideNode:s,onClose:l,showIcon:d=!0})=>{let[p,c]=(0,Ht.useState)(r);(0,Ht.useEffect)(()=>{c(r)},[r]);let u="",m="";switch(e){case"gray":u="#eeeef0",m="#79818c";break;case"info":u="#ebf5fd",m="#70B6F6";break;case"warning":u="#fff8df",m="#ffc700";break;case"success":u="#e0f9f0",m="#49e0aa";break;case"danger":u="#fde8e9",m="#f3777c";break;default:u="#eeeef0",m="#79818c";break}function f(){c(!1),l&&l()}return p?(0,P.jsxs)("div",{className:"w-full shadow-lg transform flex items-center rounded-md",style:{background:u||"#ebf5fd"},children:[(0,P.jsx)("div",{className:"flex-none absolute rounded-l-[2px] rounded-l-4px h-[4px] w-full top-0",style:{background:m||"#70B6F6"}}),(0,P.jsxs)("div",{className:"w-full gap-3 h-full flex flex-row justify-between px-4 md:px-4 py-3 md:py-4",children:[(0,P.jsxs)("div",{className:"flex flex-row gap-2.5 items-start w-full h-full",children:[d&&(0,P.jsx)("div",{className:"h-full flex justify-end",children:(0,P.jsx)(Tn,{type:e})}),(0,P.jsxs)("div",{className:"w-full gap-3 h-full flex flex-col md:flex-row items-start justify-between",children:[(0,P.jsxs)("div",{className:"flex-1 gap-3 h-full flex flex-col items-start justify-between",children:[(t||o)&&(0,P.jsxs)("div",{children:[t&&(0,P.jsx)("div",{className:"text-sm font-bold text-[#191919]",children:t}),o&&(0,P.jsx)("div",{className:"text-sm font-normal text-[#5D5D5D] mt-1",children:o})]}),n]}),s]})]}),a&&(0,P.jsx)("div",{className:"w-1/10 h-full flex flex-col justify-start items-center",children:(0,P.jsx)("button",{onClick:f,children:(0,P.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,P.jsx)("path",{d:"M3.3335 3.33337L12.6662 12.6661",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,P.jsx)("path",{d:"M3.33429 12.6661L12.667 3.33337",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})})]})]}):null};var Vr=require("react"),Gt=require("lucide-react"),_t=require("framer-motion");var Mr=require("react/jsx-runtime"),We=({children:e,mode:t="truncate",className:o,as:r="div",...a})=>(0,Mr.jsx)(r,{className:i({"text-ellipsis overflow-hidden whitespace-nowrap":t==="truncate","whitespace-normal break-words":t==="wrap","":t==="overflow"},o),target:a?.href?"_blank":void 0,...a,children:e});var Te=require("react/jsx-runtime"),Or=({text:e,textToCopy:t,onCopy:o,iconsPosition:r="right",clampText:a=!0,clampMode:n="truncate",isLink:s=!1,textClassName:l})=>{let[d,p]=(0,Vr.useState)(!1),c=()=>{navigator.clipboard.writeText(t??e).then(()=>{p(!0),o?.(),setTimeout(()=>p(!1),2e3)})},u=d?Gt.CheckIcon:Gt.Copy;return(0,Te.jsxs)("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:[r==="left"&&(0,Te.jsx)(Br,{Icon:u,onClick:c,copied:d}),(0,Te.jsx)(We,{as:s?"a":"span",mode:a?n:"overflow",className:i({underline:s},l),href:s?e:void 0,children:e}),r==="right"&&(0,Te.jsx)(Br,{Icon:u,onClick:c,copied:d})]})},Br=({Icon:e,onClick:t,copied:o})=>(0,Te.jsx)(_t.AnimatePresence,{mode:"wait",children:(0,Te.jsx)(_t.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},onClick:t,children:(0,Te.jsx)(e,{className:`w-5 h-5 ${o?"text-green-500":"text-gray-500 hover:text-gray-700 transition"}`})},o?"check":"copy")});var bt=require("react");var Hr=require("lucide-react"),To=require("react/jsx-runtime"),Wt=({value:e,onChange:t,debounce:o=500,addon:r,...a})=>{let[n,s]=(0,bt.useState)(e??""),l=d=>s(d.target.value);return(0,bt.useEffect)(()=>{e&&s(e)},[e]),(0,bt.useEffect)(()=>{let d=setTimeout(()=>{t(n)},o);return()=>clearTimeout(d)},[n,o,t]),(0,To.jsx)(U,{leftNode:r??(0,To.jsx)(Hr.Search,{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:l,value:n})};var So=require("react"),Gr=require("lucide-react"),W=require("react/jsx-runtime"),_r=e=>{let{environment:t,branch:o,version:r,deployTime:a,showBanner:n,onClose:s,initDefault:l,removeFromStorage:d,syncLocalStorageToState:p}=e,c=t||process.env.NEXT_PUBLIC_NODE_ENV;return c!=="staging"&&c!=="sandbox"||((0,So.useEffect)(()=>{p()},[p]),(0,So.useEffect)(()=>{let u;return(c==="staging"||c==="sandbox")&&(u=setInterval(()=>{d(),l()},5*60*1e3)),()=>{u&&clearInterval(u)}},[n,t,s,d,l,c]),!n)?null:(0,W.jsxs)("div",{className:"w-fit p-4 border shadow-md bg-white rounded-md z-[99999] absolute top-2 right-2 min-w-96",children:[(0,W.jsx)("button",{onClick:s,className:"absolute top-2 right-2",children:(0,W.jsx)(Gr.X,{})}),(0,W.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,W.jsxs)("div",{className:"flex gap-2",children:[(0,W.jsx)("span",{className:"font-medium",children:"Environment:"}),(0,W.jsx)("span",{className:"text-blue-600 capitalize",children:c})]}),(0,W.jsxs)("div",{className:"flex gap-2",children:[(0,W.jsx)("span",{className:"font-medium",children:"Branch:"}),(0,W.jsx)("span",{className:"text-green-600 capitalize",children:o||process.env.NEXT_PUBLIC_DEPLOY_BRANCH})]}),(0,W.jsxs)("div",{className:"flex gap-2",children:[(0,W.jsx)("span",{className:"font-medium",children:"Version:"}),(0,W.jsx)("span",{className:"text-purple-600",children:r||process.env.NEXT_PUBLIC_DEPLOY_VERSION})]}),(0,W.jsxs)("div",{className:"flex gap-2",children:[(0,W.jsx)("span",{className:"font-medium",children:"Deploy Time:"}),(0,W.jsx)("span",{className:"text-orange-600",children:a||process.env.NEXT_PUBLIC_DEPLOY_TIME})]})]})]})};var xt=b(require("react")),q=require("vaul"),$r=require("class-variance-authority");var Ct=require("react/jsx-runtime"),Wr=()=>(0,Ct.jsxs)("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:[(0,Ct.jsx)("path",{d:"M18 6 6 18"}),(0,Ct.jsx)("path",{d:"m6 6 12 12"})]});var zt=require("react");function zr(){let[e,t]=(0,zt.useState)({width:100,height:100});return(0,zt.useEffect)(()=>{function o(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",o),o(),()=>window.removeEventListener("resize",o)},[]),e}var k=require("react/jsx-runtime"),$t=({shouldScaleBackground:e=!0,...t})=>(0,k.jsx)(q.Drawer.Root,{direction:"right",shouldScaleBackground:e,...t});$t.displayName="Drawer";var Sn=q.Drawer.Trigger,Zr=q.Drawer.Close,Fn=q.Drawer.Portal,Ur=xt.forwardRef(({className:e,...t},o)=>(0,k.jsx)(q.Drawer.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:o}));Ur.displayName=q.Drawer.Overlay.displayName;var En=(0,$r.cva)("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"}}),Kr=xt.forwardRef(({side:e="right",hideCloseButton:t,className:o,children:r,id:a,...n},s)=>(0,k.jsxs)(Fn,{children:[(0,k.jsx)(Ur,{}),(0,k.jsxs)(q.Drawer.Content,{ref:s,className:i(En({side:e}),o),...n,children:[(0,k.jsx)("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"}),r,!t&&(0,k.jsxs)(q.Drawer.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:[(0,k.jsx)(Wr,{}),(0,k.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Kr.displayName=q.Drawer.Content.displayName;var Xr=({className:e,...t})=>(0,k.jsx)("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});Xr.displayName="DrawerHeader";var jr=({className:e,...t})=>(0,k.jsx)("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});jr.displayName="DrawerFooter";var Yr=xt.forwardRef(({className:e,...t},o)=>(0,k.jsx)(q.Drawer.Title,{ref:o,className:i("text-xl font-semibold text-[#191919] dark:text-white",e),...t}));Yr.displayName=q.Drawer.Title.displayName;var qr=xt.forwardRef(({className:e,...t},o)=>(0,k.jsx)(q.Drawer.Description,{ref:o,className:i("text-xs text-[#5d5c5c] dark:text-white",e),...t}));qr.displayName=q.Drawer.Description.displayName;var Jr=({trigger:e=void 0,children:t,open:o=void 0,onOpenChange:r=void 0,hideCloseButton:a,footer:n,title:s,description:l,contentClassName:d,headerClassName:p,titleClassName:c,descriptionClassName:u,footerClassName:m,asChild:f=!0,onOpenAutoFocus:y,drawerContentClassName:C,onCloseAutoFocus:h,id:v="drawer"})=>{let{width:R}=zr(),I=R<768?"bottom":"right";return(0,k.jsxs)($t,{open:o,onOpenChange:r,direction:I,children:[(0,k.jsx)(Sn,{className:"cursor-pointer",asChild:f,id:`${v}-open-trigger`,children:e}),(0,k.jsxs)(Kr,{className:i("flex flex-col gap-0 justify-start items-start max-h-[90vh] md:max-h-full w-full !max-w-md",d),side:I,hideCloseButton:a,onOpenAutoFocus:y,onCloseAutoFocus:h,id:`${v}-content`,children:[s||l?(0,k.jsxs)(Xr,{className:p,id:`${v}-header`,children:[s&&(0,k.jsx)(Yr,{className:c,id:`${v}-title`,children:s}),l&&(0,k.jsx)(qr,{id:`${v}-description`,className:u,children:l})]}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)("div",{className:i("flex w-full overflow-y-auto flex-col justify-start items-start p-4 flex-1 h-[30px]",C),children:t}),n&&(0,k.jsx)(jr,{className:m,children:n})]})]})};var Fo=require("react/jsx-runtime"),Qr=()=>(0,Fo.jsx)("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:(0,Fo.jsx)("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"})});var Be=require("react/jsx-runtime"),ea=e=>(0,Be.jsxs)("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:[(0,Be.jsx)("rect",{width:"60",height:"30",fill:"#00247D"}),(0,Be.jsx)("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#FFFFFF",strokeWidth:"6"}),(0,Be.jsx)("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#CF142B",strokeWidth:"4"}),(0,Be.jsx)("path",{d:"M30,0 L30,30 M0,15 L60,15",stroke:"#FFFFFF",strokeWidth:"10"}),(0,Be.jsx)("path",{d:"M30,0 L30,30 M0,15 L60,15",stroke:"#CF142B",strokeWidth:"6"})]});var Ye=require("react/jsx-runtime"),ta=e=>(0,Ye.jsxs)("svg",{viewBox:"0 0 60 40",className:"w-full max-w-md h-auto","aria-label":"Tricolore - Flag of France",...e,children:[(0,Ye.jsx)("rect",{x:"0",y:"0",width:"20",height:"40",fill:"#002395"}),(0,Ye.jsx)("rect",{x:"20",y:"0",width:"20",height:"40",fill:"#FFFFFF"}),(0,Ye.jsx)("rect",{x:"40",y:"0",width:"20",height:"40",fill:"#ED2939"})]});var wt=require("react/jsx-runtime"),oa=()=>(0,wt.jsxs)("svg",{width:"20",height:"18",viewBox:"0 0 8 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,wt.jsx)("path",{d:"M5.50257 12.9395L3.68439 14.7576L1.86621 12.9395",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,wt.jsx)("path",{d:"M5.50257 5.06055L3.68439 3.24237L1.86621 5.06055",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});var ra=require("@radix-ui/react-popover"),z=require("react/jsx-runtime"),An=[{key:"en",label:"English"},{key:"fr",label:"French"}],In=({locale:e})=>e==="fr"?(0,z.jsx)(ta,{width:10}):(0,z.jsx)(ea,{width:10}),Mn=({locale:e})=>(0,z.jsx)("div",{className:"px-2 py-1 ",children:(0,z.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,z.jsx)(In,{locale:e})," ",(0,z.jsx)("span",{className:"uppercase",children:e}),(0,z.jsx)(oa,{})]})}),aa=({locale:e="en",onChange:t,locales:o=An})=>(0,z.jsxs)(ae,{children:[(0,z.jsx)("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:(0,z.jsx)(X,{className:"!p-0 !bg-transparent ",id:"locale_select_dropdown",children:(0,z.jsx)(Mn,{locale:e})})}),(0,z.jsx)(Y,{side:"bottom",className:"p-0 max-w-max rounded-md overflow-hidden mx-auto mt-2",children:(0,z.jsx)("div",{children:o?.map(r=>(0,z.jsxs)(ra.PopoverClose,{type:"button",id:`locale_option_${r?.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===r?.key}),onClick:()=>t?.(r?.key),children:[r?.label," ",e&&e===r?.key&&(0,z.jsx)(Qr,{})]},r?.key))})})]});var ze=require("react");var Zt=require("framer-motion"),Ut=require("react"),ia=require("react-icons/hi"),sa=require("react-icons/fi"),la=require("react-icons/bs");var Ve=require("react/jsx-runtime"),Nt=({activeBusiness:e,onTriggerClick:t,iconOnly:o=!1,className:r,rightNode:a})=>(0,Ve.jsxs)("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":!o,"hover:bg-primary-accent transition-all duration-150 cursor-pointer ":!!t},r),children:[(0,Ve.jsx)("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":!o,"w-full h-10 mr-0":o}),children:e?.name?.charAt(0)||"M"}),!o&&(0,Ve.jsxs)("section",{className:"flex-1 flex justify-between items-center relative text-black w-full -space-y-1 tracking-wide",children:[(0,Ve.jsxs)("div",{className:"flex-1 min-w-0 max-w-[150px] w-full",children:[(0,Ve.jsx)(We,{as:"h2",className:"text-base capitalize font-medium",children:e?.name}),(0,Ve.jsx)(We,{as:"p",className:"text-sm text-[#A5A5A5]",onClick:void 0,children:e?.email})]}),a]})]});var ca=require("lucide-react");var Eo=require("react/jsx-runtime"),na=e=>(0,Eo.jsx)("svg",{width:"9",height:"8",viewBox:"0 0 9 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,Eo.jsx)("circle",{cx:"4.5",cy:"4",r:"4",fill:"#62C554"})});var O=require("react/jsx-runtime"),Bn={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}}},da=({activeBusiness:e,toggleAddBusinessDrawer:t,businesses:o=[],handleSwitchBusiness:r,onLogoutClick:a,onToggleSideBar:n,toggleShowBusiness:s,isMobile:l,collapseType:d})=>{let[p,c]=(0,Ut.useState)(""),u=(0,Ut.useMemo)(()=>{let v=p.toLowerCase();return(o||[]).filter(R=>R.name?.toLowerCase().startsWith(v))},[o,p]),m=d==="hidden"||l,f=v=>c(v.target.value),y=v=>{r(v||""),m&&n(!1),c("")},C=()=>{t(),s(!1),m&&n(!1),c("")},h=()=>{a?.(),s(!1),m&&n(!1),c("")};return(0,O.jsx)(Zt.AnimatePresence,{initial:!1,children:(0,O.jsx)(Zt.motion.div,{initial:"hidden",animate:"visible",exit:"exit",variants:Bn,children:(0,O.jsxs)("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,