@6thbridge/hexa 0.0.40 → 0.0.42

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.
@@ -1,5 +1,5 @@
1
1
   WARN  Issue while reading "/Users/joachim/.nvm/versions/node/v20.17.0/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read
2
2
 
3
- > @6thbridge/hexa@0.0.40 lint /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
3
+ > @6thbridge/hexa@0.0.42 lint /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
4
4
  > eslint . --max-warnings 0
5
5
 
package/dist/index.d.mts CHANGED
@@ -9,7 +9,7 @@ import * as DialogPrimitive from '@radix-ui/react-dialog';
9
9
  import { OTPInputProps as OTPInputProps$1 } from 'react-otp-input';
10
10
  import * as PopoverPrimitive from '@radix-ui/react-popover';
11
11
  import { RowData, Row, Table as Table$1 } from '@tanstack/react-table';
12
- import * as dayjs from 'dayjs';
12
+ import dayjs from 'dayjs';
13
13
  import { ClassValue } from 'clsx';
14
14
 
15
15
  declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
@@ -212,9 +212,11 @@ declare const Popover: {
212
212
 
213
213
  interface CopyableLabelProps {
214
214
  text: string;
215
+ textToCopy?: string;
215
216
  onCopy?: () => void;
216
217
  iconsPosition?: "left" | "right";
217
218
  clampText?: boolean;
219
+ textClassName?: string;
218
220
  }
219
221
  declare const CopyableLabel: React.FC<CopyableLabelProps>;
220
222
 
@@ -301,6 +303,16 @@ interface BannerProps extends BannerTypes {
301
303
  }
302
304
  declare const Banner: ({ type, title, description, open, showCloseButton, bottomNode, sideNode, onClose, showIcon, }: BannerProps) => react_jsx_runtime.JSX.Element | null;
303
305
 
306
+ type LocaleOption = {
307
+ key: string;
308
+ label: string;
309
+ };
310
+ declare const LocaleSelector: ({ locale, onChange, locales, }: {
311
+ locale?: string;
312
+ onChange?: (locale: string) => void;
313
+ locales?: LocaleOption[];
314
+ }) => react_jsx_runtime.JSX.Element;
315
+
304
316
  declare const CurrencySymbolMap: Record<string, string>;
305
317
  interface FormatCurrencyOptions {
306
318
  convertToMajorCurrency?: boolean;
@@ -322,4 +334,4 @@ declare class DateAction {
322
334
 
323
335
  declare function cn(...inputs: ClassValue[]): string;
324
336
 
325
- export { AmountAction, Banner, Button, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, FlagComponent, FormLabel, type FormatCurrencyOptions, Input, Loader, OTPInput, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, Select, Status, Table, type TablePaginationProps, Textarea, buttonVariants, cn };
337
+ export { AmountAction, Banner, Button, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, FlagComponent, FormLabel, type FormatCurrencyOptions, Input, Loader, LocaleSelector, OTPInput, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, Select, Status, Table, type TablePaginationProps, Textarea, buttonVariants, cn };
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ import * as DialogPrimitive from '@radix-ui/react-dialog';
9
9
  import { OTPInputProps as OTPInputProps$1 } from 'react-otp-input';
10
10
  import * as PopoverPrimitive from '@radix-ui/react-popover';
11
11
  import { RowData, Row, Table as Table$1 } from '@tanstack/react-table';
12
- import * as dayjs from 'dayjs';
12
+ import dayjs from 'dayjs';
13
13
  import { ClassValue } from 'clsx';
14
14
 
15
15
  declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
@@ -212,9 +212,11 @@ declare const Popover: {
212
212
 
213
213
  interface CopyableLabelProps {
214
214
  text: string;
215
+ textToCopy?: string;
215
216
  onCopy?: () => void;
216
217
  iconsPosition?: "left" | "right";
217
218
  clampText?: boolean;
219
+ textClassName?: string;
218
220
  }
219
221
  declare const CopyableLabel: React.FC<CopyableLabelProps>;
220
222
 
@@ -301,6 +303,16 @@ interface BannerProps extends BannerTypes {
301
303
  }
302
304
  declare const Banner: ({ type, title, description, open, showCloseButton, bottomNode, sideNode, onClose, showIcon, }: BannerProps) => react_jsx_runtime.JSX.Element | null;
303
305
 
306
+ type LocaleOption = {
307
+ key: string;
308
+ label: string;
309
+ };
310
+ declare const LocaleSelector: ({ locale, onChange, locales, }: {
311
+ locale?: string;
312
+ onChange?: (locale: string) => void;
313
+ locales?: LocaleOption[];
314
+ }) => react_jsx_runtime.JSX.Element;
315
+
304
316
  declare const CurrencySymbolMap: Record<string, string>;
305
317
  interface FormatCurrencyOptions {
306
318
  convertToMajorCurrency?: boolean;
@@ -322,4 +334,4 @@ declare class DateAction {
322
334
 
323
335
  declare function cn(...inputs: ClassValue[]): string;
324
336
 
325
- export { AmountAction, Banner, Button, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, FlagComponent, FormLabel, type FormatCurrencyOptions, Input, Loader, OTPInput, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, Select, Status, Table, type TablePaginationProps, Textarea, buttonVariants, cn };
337
+ export { AmountAction, Banner, Button, CopyableLabel, Country, CurrencySymbolMap, DateAction, DebouncedInput, DevBanner, Dialog, FlagComponent, FormLabel, type FormatCurrencyOptions, Input, Loader, LocaleSelector, OTPInput, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, Select, Status, Table, type TablePaginationProps, Textarea, buttonVariants, cn };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var ar=Object.create;var oe=Object.defineProperty;var nr=Object.getOwnPropertyDescriptor;var ir=Object.getOwnPropertyNames;var sr=Object.getPrototypeOf,lr=Object.prototype.hasOwnProperty;var cr=(t,e,r)=>e in t?oe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var dr=(t,e)=>{for(var r in e)oe(t,r,{get:e[r],enumerable:!0})},ot=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ir(e))!lr.call(t,o)&&o!==r&&oe(t,o,{get:()=>e[o],enumerable:!(i=nr(e,o))||i.enumerable});return t};var v=(t,e,r)=>(r=t!=null?ar(sr(t)):{},ot(e||!t||!t.__esModule?oe(r,"default",{value:t,enumerable:!0}):r,t)),pr=t=>ot(oe({},"__esModule",{value:!0}),t);var at=(t,e,r)=>cr(t,typeof e!="symbol"?e+"":e,r);var Rr={};dr(Rr,{AmountAction:()=>tt,Banner:()=>or,Button:()=>j,CopyableLabel:()=>Xt,Country:()=>Gt,CurrencySymbolMap:()=>et,DateAction:()=>rt,DebouncedInput:()=>Ie,DevBanner:()=>rr,Dialog:()=>De,FlagComponent:()=>W,FormLabel:()=>k,Input:()=>H,Loader:()=>re,OTPInput:()=>_t,PasswordInput:()=>Ke,PhoneInput:()=>Ye,Popover:()=>be,PopoverContent:()=>_,PopoverRoot:()=>Q,PopoverTrigger:()=>G,Select:()=>Wt,Status:()=>jt,Table:()=>er,Textarea:()=>_e,buttonVariants:()=>ie,cn:()=>n});module.exports=pr(Rr);var dt=v(require("react"));var st=v(require("react")),He=v(require("@radix-ui/react-label")),lt=require("class-variance-authority");var nt=require("clsx"),it=require("tailwind-merge");function n(...t){return(0,it.twMerge)((0,nt.clsx)(t))}var ct=require("react/jsx-runtime"),mr=(0,lt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ge=st.forwardRef(({className:t,...e},r)=>(0,ct.jsx)(He.Root,{ref:r,className:n(mr(),t),...e}));Ge.displayName=He.Root.displayName;var ae=require("react/jsx-runtime"),k=dt.default.forwardRef(({className:t,children:e,showAsterisk:r,error:i,...o},a)=>(0,ae.jsx)(Ge,{ref:a,className:n(i&&"text-red-500",t),...o,children:r?(0,ae.jsxs)("p",{children:[e,(0,ae.jsx)("span",{className:"text-red-500",children:"*"})]}):e}));k.displayName="FormLabel";var ne=require("react/jsx-runtime"),re=({size:t=16,colour:e="primary"})=>(0,ne.jsxs)("svg",{className:"animate-spin",width:t,height:t,viewBox:"0 0 20 20",fill:"none",children:[(0,ne.jsx)("circle",{cx:"10",cy:"10",r:"9.25",stroke:"transparent",strokeWidth:"1.5"}),(0,ne.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:e==="primary"?"#ffffff":"currentColor",className:"rounded"})]});var Pe=v(require("react")),pt=require("@radix-ui/react-slot"),mt=require("class-variance-authority");var E=require("react/jsx-runtime"),ie=(0,mt.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:"h-12 py-1 px-5 items-center","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"}}),j=Pe.forwardRef(({className:t,variant:e="primary",size:r,asChild:i=!1,isLoading:o=!1,leftNode:a,rightNode:l,LoaderSize:s,...d},c)=>{let m=i?pt.Slot:"button",{children:u,disabled:p,...h}=d,D=Pe.useRef(null);return(0,E.jsx)(m,{className:n(ie({variant:e,size:r,className:t})),ref:D||c,disabled:p||o,...h,children:(0,E.jsx)("div",{className:"flex font-medium justify-center items-center gap-2",children:o?(0,E.jsx)(E.Fragment,{children:(0,E.jsx)("span",{className:"mx-auto",children:(0,E.jsx)(re,{size:s,colour:"secondary"})})}):(0,E.jsxs)(E.Fragment,{children:[a,u,l]})})})});j.displayName="Button";var We=v(require("react"));var Re=require("class-variance-authority");var ut=v(require("react")),ft=require("react/jsx-runtime"),F=ut.default.forwardRef(({className:t,children:e,error:r,...i},o)=>{let a=r??e;return a?(0,ft.jsx)("p",{ref:o,className:n("text-xs font-normal text-[#F04248]",t),...i,children:a}):null});F.displayName="ErrorMessage";var gt=v(require("react")),yt=require("react/jsx-runtime"),A=gt.default.forwardRef(({className:t,...e},r)=>(0,yt.jsx)("div",{ref:r,className:n("text-sm text-[#8E98A8",t),...e}));A.displayName="FormDescription";var M=require("react/jsx-runtime"),ur=(0,Re.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"}}),bt=We.forwardRef(({className:t,status:e,type:r,...i},o)=>(0,M.jsx)("input",{type:r,className:n(ur({status:e}),t),ref:o,...i}));bt.displayName="BaseInnerInput";var O=(0,Re.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"}}),Ct=(0,Re.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"}}),H=We.forwardRef(({className:t,status:e="default",disabled:r,error:i,isLoading:o,sideNodeClassName:a,showAsterisk:l,label:s,description:d,...c},m)=>{let u=e;return i&&(u="error"),o&&(u="loading"),r&&(u="prefilled"),(0,M.jsxs)("div",{className:"relative space-y-1 w-full",children:[s&&(0,M.jsx)(k,{showAsterisk:l,error:i,children:s}),(0,M.jsxs)("div",{className:n(O({status:u}),c.leftNode?"pl-0":"",c.rightNode?"pr-0":"",t),children:[c.leftNode?(0,M.jsx)("div",{className:n(Ct({status:u,side:"left"}),a),children:c.leftNode}):null,(0,M.jsx)(bt,{ref:m,disabled:o||r,className:n({"!pl-3":c.leftNode&&e!=="neutral","!pr-3":c.rightNode&&e!=="neutral"}),...c}),c.rightNode?(0,M.jsx)("div",{className:n(Ct({status:u,side:"right"}),a),children:c.rightNode}):null]}),d&&(0,M.jsx)(A,{className:"text-gray-400 text-sm !font-normal",children:d}),(0,M.jsx)(F,{error:i})]})});H.displayName="Input";var ce=require("react");var se=require("react/jsx-runtime"),ht=()=>(0,se.jsxs)("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,se.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,se.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 le=require("react/jsx-runtime"),vt=()=>(0,le.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,le.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,le.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 Ze=require("react/jsx-runtime"),xt=()=>(0,Ze.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Ze.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 ze=require("react/jsx-runtime"),Nt=()=>(0,ze.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ze.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 L=require("react/jsx-runtime"),wt=[{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}],Ke=({onValidate:t,onChange:e,disableValidation:r,...i})=>{let[o,a]=(0,ce.useState)(!1),[l,s]=(0,ce.useState)(wt),d=p=>wt.map(h=>({...h,validated:h.RegExp.test(p)})),c=p=>{let h=d(p),D=h.every(I=>I.validated);return s(h),D},m=p=>{if(e&&e(p),r)return;let h=p?.target?.value,D=c(h);t&&t(D,h)},u=(0,ce.useMemo)(()=>(0,L.jsx)("div",{className:"flex items-center gap-2",children:l?.map(p=>(0,L.jsxs)("div",{className:n("text-xs flex items-center gap-0.5",{"text-[#62C554]":p?.validated,"text-[#8E98A8]":!p?.validated}),children:[(0,L.jsx)("span",{className:"",children:p?.validated?(0,L.jsx)(xt,{}):(0,L.jsx)(Nt,{})}),(0,L.jsx)("span",{className:"",children:p?.label})]},p?.key))}),[l]);return(0,L.jsx)(H,{sideNodeClassName:"!border-l-0",rightNode:o?(0,L.jsx)("button",{type:"button",onClick:()=>a(p=>!p),children:(0,L.jsx)(ht,{})}):(0,L.jsx)("button",{type:"button",onClick:()=>a(p=>!p),children:(0,L.jsx)(vt,{})}),type:o?"text":"password",onChange:m,description:!r&&u,...i})};Ke.displayName="PasswordInput";var Pt=require("class-variance-authority");var J=require("react/jsx-runtime"),co=(0,Pt.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"}}),_e=({className:t,status:e="default",disabled:r,error:i,isLoading:o,showAsterisk:a,label:l,description:s,...d})=>{let c=e;return i&&(c="error"),o&&(c="loading"),r&&(c="prefilled"),(0,J.jsxs)("div",{className:"relative space-y-1",children:[(0,J.jsx)(k,{showAsterisk:a,error:i,children:l}),(0,J.jsx)("textarea",{className:n("min-h-[80px]",O({status:c}),t),disabled:o||r,...d}),(0,J.jsx)(A,{className:"text-gray-400 text-sm !font-normal",children:s}),(0,J.jsx)(F,{error:i})]})};_e.displayName="Textarea";var q=v(require("react"));var z=v(require("react")),P=require("cmdk"),Et=require("lucide-react");var pe=v(require("react")),b=v(require("@radix-ui/react-dialog"));var de=require("react/jsx-runtime"),Rt=()=>(0,de.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,de.jsx)("path",{d:"M18 6 6 18"}),(0,de.jsx)("path",{d:"m6 6 12 12"})]});var C=require("react/jsx-runtime"),fr=b.Root,gr=b.Trigger,Dt=b.Portal,kt=pe.forwardRef(({className:t,...e},r)=>(0,C.jsx)(b.Overlay,{ref:r,className:n("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",t),...e}));kt.displayName=b.Overlay.displayName;var $e=pe.forwardRef(({className:t,hideCloseButton:e,children:r,...i},o)=>(0,C.jsxs)(Dt,{children:[(0,C.jsx)(kt,{}),(0,C.jsxs)(b.Content,{ref:o,className:n("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",t),...i,children:[r,!e&&(0,C.jsxs)(b.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,C.jsx)(Rt,{}),(0,C.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));$e.displayName=b.Content.displayName;var Lt=({className:t,...e})=>(0,C.jsx)("div",{className:n("flex flex-col space-y-1.5 text-left",t),...e});Lt.displayName="DialogHeader";var St=({className:t,...e})=>(0,C.jsx)("div",{className:n("flex flex-row justify-end sm:space-x-2",t),...e});St.displayName="DialogFooter";var Tt=pe.forwardRef(({className:t,...e},r)=>(0,C.jsx)(b.Title,{ref:r,className:n("text-xl font-semibold leading-none tracking-tight",t),...e}));Tt.displayName=b.Title.displayName;var It=pe.forwardRef(({className:t,...e},r)=>(0,C.jsx)(b.Description,{ref:r,className:n("text-sm text-gray-500",t),...e}));It.displayName=b.Description.displayName;var De=({trigger:t=void 0,children:e,open:r,onOpenChange:i,hideCloseButton:o,footer:a,title:l,description:s,contentClassName:d,headerClassName:c,titleClassName:m,descriptionClassName:u,footerClassName:p,asChild:h=!0,onOpenAutoFocus:D,onCloseAutoFocus:I,onEscapeKeyDown:we,onInteractOutside:ee,onPointerDownOutside:Be,...Oe})=>(0,C.jsxs)(fr,{...Oe,open:r,onOpenChange:i,children:[(0,C.jsx)(gr,{asChild:h,children:t}),(0,C.jsx)(Dt,{children:(0,C.jsxs)($e,{className:d,hideCloseButton:o,onOpenAutoFocus:D,onCloseAutoFocus:I,onEscapeKeyDown:we,onPointerDownOutside:Be,onInteractOutside:ee,children:[l||s?(0,C.jsxs)(Lt,{className:c,children:[l&&(0,C.jsx)(Tt,{className:m,children:l}),s&&(0,C.jsx)(It,{className:u,children:s})]}):(0,C.jsx)(C.Fragment,{}),e,a&&(0,C.jsx)(St,{className:p,children:a})]})})]});De.displayName=b.Dialog.displayName;var R=require("react/jsx-runtime"),me=z.forwardRef(({className:t,...e},r)=>(0,R.jsx)(P.Command,{ref:r,className:n("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...e}));me.displayName=P.Command.displayName;var ue=z.forwardRef(({className:t,CommandInputContainerClassName:e,loading:r,...i},o)=>(0,R.jsxs)("div",{className:n("flex items-center border-0 px-3 gap-2",e),"cmdk-input-wrapper":"",children:[r?(0,R.jsx)(re,{size:16,colour:"secondary"}):(0,R.jsx)(Et.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,R.jsx)(P.Command.Input,{ref:o,className:n("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",t),disabled:r,...i})]}));ue.displayName=P.Command.Input.displayName;var fe=z.forwardRef(({className:t,...e},r)=>(0,R.jsx)(P.Command.List,{ref:r,className:n("overflow-y-auto overflow-x-hidden",t),...e}));fe.displayName=P.Command.List.displayName;var ge=z.forwardRef((t,e)=>(0,R.jsx)(P.Command.Empty,{ref:e,className:"py-6 text-center text-sm",...t}));ge.displayName=P.Command.Empty.displayName;var ye=z.forwardRef(({className:t,...e},r)=>(0,R.jsx)(P.Command.Group,{ref:r,className:n("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",t),...e}));ye.displayName=P.Command.Group.displayName;var yr=z.forwardRef(({className:t,...e},r)=>(0,R.jsx)(P.Command.Separator,{ref:r,className:n("-mx-1 h-px bg-border",t),...e}));yr.displayName=P.Command.Separator.displayName;var Ce=z.forwardRef(({className:t,...e},r)=>(0,R.jsx)(P.Command.Item,{ref:r,className:n("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",t),...e}));Ce.displayName=P.Command.Item.displayName;var Cr=({className:t,...e})=>(0,R.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",t),...e});Cr.displayName="CommandShortcut";var Ft=v(require("react")),V=v(require("@radix-ui/react-popover"));var K=require("react/jsx-runtime"),Q=V.Root,G=V.Trigger,_=Ft.forwardRef(({className:t,align:e="center",sideOffset:r=4,portal:i=!0,...o},a)=>i?(0,K.jsx)(V.Portal,{children:(0,K.jsx)(V.Content,{ref:a,align:e,sideOffset:r,className:n("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",t),onOpenAutoFocus:o.onOpenAutoFocus,onCloseAutoFocus:o.onCloseAutoFocus,...o})}):(0,K.jsx)(V.Content,{ref:a,align:e,sideOffset:r,className:n("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",t),onOpenAutoFocus:o.onOpenAutoFocus,onCloseAutoFocus:o.onCloseAutoFocus,...o}));_.displayName=V.Content.displayName;var be=({trigger:t,children:e,open:r,onOpenChange:i,contentClassName:o,asChild:a=!0,align:l,side:s,alignOffset:d,triggerClassName:c,sideOffset:m,onOpenAutoFocus:u,onCloseAutoFocus:p,portal:h=!0,...D})=>(0,K.jsxs)(Q,{...D,open:r,onOpenChange:i,children:[(0,K.jsx)(G,{asChild:a,className:c,children:t}),(0,K.jsx)(_,{alignOffset:d,sideOffset:m,side:s,align:l,className:o,onOpenAutoFocus:u,onCloseAutoFocus:p,portal:h,children:e})]});be.displayName=V.Root.displayName;var Ue=v(require("react")),S=v(require("@radix-ui/react-scroll-area"));var $=require("react/jsx-runtime"),he=Ue.forwardRef(({className:t,viewPortClassName:e,children:r,...i},o)=>(0,$.jsxs)(S.Root,{ref:o,className:n("relative overflow-hidden",t),...i,children:[(0,$.jsx)(S.Viewport,{className:n("h-full w-full rounded-[inherit]",e),children:r}),(0,$.jsx)(At,{}),(0,$.jsx)(S.Corner,{})]}));he.displayName=S.Root.displayName;var At=Ue.forwardRef(({className:t,orientation:e="vertical",...r},i)=>(0,$.jsx)(S.ScrollAreaScrollbar,{ref:i,orientation:e,className:n("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...r,children:(0,$.jsx)(S.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-[#959595] transition hover:bg-[#808080]"})}));At.displayName=S.ScrollAreaScrollbar.displayName;var w=require("react/jsx-runtime"),Mt=({className:t,value:e,placeholder:r="",status:i,disabled:o})=>(0,w.jsx)(G,{asChild:!0,disabled:o,children:(0,w.jsxs)("button",{disabled:o,className:n(O({status:i}),"[&>span]:justify-start [&>span]:items-center gap-2 flex h-12 w-full items-center justify-between goup",e?"":"text-[#79818C]",t),children:[e??r??"Select options...",(0,w.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",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:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),ke=({options:t=[],value:e,onChange:r,containerClassName:i,placeholder:o,disabled:a,loading:l,optionComponent:s,children:d,modal:c=!1,hideSearch:m,className:u,inputValue:p,onValueChange:h,onInputValueChange:D})=>{let[I,we]=q.useState(!1),ee=q.useRef(null),[Be,Oe]=q.useState(void 0);return q.useLayoutEffect(()=>{ee.current&&Oe(ee.current.clientWidth)},[ee.current]),(0,w.jsxs)(Q,{modal:c,open:I,onOpenChange:we,children:[(0,w.jsx)("div",{className:n("w-full",u),ref:ee,children:d}),(0,w.jsx)(_,{portal:!c,className:"p-0 min-w-[200px]",style:{width:Be},children:(0,w.jsxs)(me,{className:n("relative max-h-[270px]",{"mt-2":!m}),children:[!m&&(0,w.jsx)(ue,{loading:l,placeholder:o??"Search options...",onValueChange:D,value:p,CommandInputContainerClassName:"mx-2 border rounded-md border-[#DEDEDE]"}),(0,w.jsx)(he,{viewPortClassName:"max-h-[225px]",className:n("w-full px-0 h-full overflow-y-auto",i),children:(0,w.jsxs)(fe,{children:[!m&&(0,w.jsx)(ge,{children:"No result found."}),(0,w.jsx)(ye,{className:"w-full",children:t?.map(te=>(0,w.jsx)(Ce,{defaultValue:e?.label,value:te.label,disabled:a,onSelect:()=>{r(te),we(!1),h?.(te?.value)},children:s?s(te):te.label},te.value))})]})})]})})]})};var Xe=[{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"}],Vt=()=>{let t={};return Xe?.forEach(e=>{t[e?.internetCountryCode]=e?.countryName}),t};var ve=v(require("react")),Le=v(require("react-phone-number-input")),Ot=v(require("react-phone-number-input/flags"));var U=require("react/jsx-runtime"),br=t=>(0,U.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...t,children:[(0,U.jsx)("rect",{width:"32",height:"32",fill:"#60A5FA"})," ",(0,U.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,U.jsx)("rect",{x:"2",y:"28",width:"28",height:"3",fill:"#D1D5DB"}),(0,U.jsx)("path",{d:"M0 16H32M8 0V32M16 0V32M24 0V32",stroke:"#2563EB",strokeWidth:"0.5",vectorEffect:"non-scaling-stroke"}),(0,U.jsx)("path",{d:"M0 16H32",stroke:"#2563EB",strokeWidth:"1",vectorEffect:"non-scaling-stroke"})]}),Bt=br;var f=require("react/jsx-runtime"),Ye=ve.forwardRef(({className:t,onChange:e,defaultCountry:r="NG",modal:i,showAsterisk:o,label:a,description:l,error:s,...d},c)=>{let m=u=>(0,f.jsx)(hr,{...u,status:d.status,modal:i});return(0,f.jsxs)("div",{className:"relative space-y-1",children:[(0,f.jsx)(k,{showAsterisk:o,error:s,children:a}),(0,f.jsx)(Le.default,{ref:c,className:n("flex",t),flagComponent:W,countrySelectComponent:m,inputComponent:Ht,defaultCountry:r,onChange:u=>{e&&e?.(u)},...d}),(0,f.jsx)(A,{className:"text-gray-400 text-sm !font-normal",children:l}),(0,f.jsx)(F,{error:s})]})});Ye.displayName="PhoneInput";var Ht=ve.forwardRef(({className:t,...e},r)=>(0,f.jsx)(H,{className:n("!rounded-s-none h-10",t),...e,ref:r}));Ht.displayName="InputComponent";var hr=({disabled:t,value:e,onChange:r,options:i,status:o,modal:a})=>{let l=ve.useCallback(s=>{r(s)},[r]);return(0,f.jsxs)(Q,{modal:a,children:[(0,f.jsx)(G,{disabled:t,children:(0,f.jsxs)("div",{className:n(O({status:o}),"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,f.jsx)(W,{country:e,countryName:e}),(0,f.jsx)("svg",{className:n("mr-0.5 h-4 w-4 opacity-50",t?"hidden":"opacity-100"),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,f.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,f.jsx)(_,{portal:!a,className:"w-[200px] md:w-[300px] p-0",children:(0,f.jsx)(me,{children:(0,f.jsx)(fe,{children:(0,f.jsxs)(he,{className:"h-72",children:[(0,f.jsx)(ue,{placeholder:"Search country..."}),(0,f.jsx)(ge,{children:"No country found."}),(0,f.jsx)(ye,{children:i.filter(s=>s.value).map(s=>(0,f.jsxs)(Ce,{className:"gap-2",onSelect:()=>l(s.value),children:[(0,f.jsx)(W,{country:s.value,countryName:s.label}),(0,f.jsx)("span",{className:"flex-1 text-sm",children:s.label}),s.value&&(0,f.jsx)("span",{className:"text-[#191919]/50 text-sm dark:text-white",children:`+${Le.getCountryCallingCode(s.value)}`}),(0,f.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:n("ml-auto",s.value===e?"opacity-100":"opacity-0"),children:(0,f.jsx)("path",{d:"M4 8.00008L6.66353 10.6636L12 5.33655",stroke:"#959595",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"})})]},`${s.value}-${s.label}`))})]})})})})]})},W=({country:t,countryName:e,className:r})=>{let i=Ot.default[t];return t==="GLOBAL"?(0,f.jsx)("span",{className:n("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:(0,f.jsx)(Bt,{className:"w-full h-[90%]"})}):(0,f.jsx)("span",{className:n("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:i&&(0,f.jsx)(i,{title:e})})};W.displayName="FlagComponent";var x=require("react/jsx-runtime"),vr=Vt(),xr=({className:t,value:e,placeholder:r="",status:i,disabled:o})=>(0,x.jsx)(G,{asChild:!0,disabled:o,children:(0,x.jsxs)("button",{disabled:o,className:n(O({status:i}),"[&>span]:justify-start [&>span]:items-center gap-2 flex w-full items-center justify-between goup",e?"":"text-[#79818C]",t),children:[e?(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(W,{country:e,countryName:e,className:"ml-1 !w-6 h-5"}),(0,x.jsxs)("span",{className:"",children:[" ",vr[e]]})]}):r??"Select options...",(0,x.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:(0,x.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"})})]})}),Gt=({hideSearch:t=!0,showAsterisk:e,label:r,description:i,error:o,...a})=>{let l=Xe?.map(s=>({value:s?.internetCountryCode,label:s?.countryName,...s}));return(0,x.jsxs)("div",{className:"relative space-y-1",children:[(0,x.jsx)(k,{showAsterisk:e,error:o,children:r}),(0,x.jsx)(ke,{options:l,hideSearch:t,optionComponent:s=>(0,x.jsxs)("div",{className:"w-full flex items-center gap-2",children:[(0,x.jsx)(W,{country:s?.internetCountryCode,countryName:s?.label,className:"ml-2 !w-6 !h-5"}),(0,x.jsx)("span",{className:"flex-1 text-sm",children:s?.label})]}),...a,children:(0,x.jsx)(xr,{value:a?.value?.value,status:a?.status,placeholder:a?.placeholder??" Select Country"})}),(0,x.jsx)(A,{className:"text-gray-400 text-sm !font-normal",children:i}),(0,x.jsx)(F,{error:o})]})};var X=require("react/jsx-runtime"),Wt=({showAsterisk:t,label:e,description:r,error:i,hideSearch:o=!0,status:a,...l})=>(0,X.jsxs)("div",{className:"relative space-y-1",children:[(0,X.jsx)(k,{showAsterisk:t,error:i,children:e}),(0,X.jsx)(ke,{hideSearch:o,...l,containerClassName:"h-full",children:(0,X.jsx)(Mt,{disabled:l?.disabled,placeholder:"Select or search email",status:a,value:l?.value?.label??l?.value?.value})}),(0,X.jsx)(A,{className:"text-gray-400 text-sm !font-normal",children:r}),(0,X.jsx)(F,{error:i})]});var Zt=v(require("react-otp-input"));var zt=require("class-variance-authority"),Kt=require("react"),je=require("react/jsx-runtime"),Nr=(0,zt.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"}}),_t=({numInputs:t=4,inputStyle:e,containerStyle:r,placeholder:i="-",status:o,...a})=>{let l=(0,Kt.useMemo)(()=>i||new Array(t).fill("").reduce((c,m)=>c+=m,""),[t,i]);return(0,je.jsx)(Zt.default,{numInputs:t,placeholder:l,containerStyle:n("w-full",r),inputStyle:n(Nr({status:o}),e),renderInput:s=>(0,je.jsx)("input",{...s}),...a})};var Ut=require("react"),Se=require("lucide-react"),Te=require("framer-motion"),Z=require("react/jsx-runtime"),Xt=({text:t,onCopy:e,iconsPosition:r="right",clampText:i=!0})=>{let[o,a]=(0,Ut.useState)(!1),l=()=>{navigator.clipboard.writeText(t).then(()=>{a(!0),e?.(),setTimeout(()=>a(!1),2e3)})},s=o?Se.CheckIcon:Se.Copy;return(0,Z.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,Z.jsx)($t,{Icon:s,onClick:l,copied:o}),(0,Z.jsx)("span",{className:`${i?"truncate max-w-[100px]":""}`,children:t}),r==="right"&&(0,Z.jsx)($t,{Icon:s,onClick:l,copied:o})]})},$t=({Icon:t,onClick:e,copied:r})=>(0,Z.jsx)(Te.AnimatePresence,{mode:"wait",children:(0,Z.jsx)(Te.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},onClick:e,children:(0,Z.jsx)(t,{className:`w-5 h-5 ${r?"text-green-500":"text-gray-500 hover:text-gray-700 transition"}`})},r?"check":"copy")});var xe=require("react");var Yt=require("lucide-react"),Je=require("react/jsx-runtime"),Ie=({value:t,onChange:e,debounce:r=500,addon:i,...o})=>{let[a,l]=(0,xe.useState)(t??""),s=d=>l(d.target.value);return(0,xe.useEffect)(()=>{t&&l(t)},[t]),(0,xe.useEffect)(()=>{let d=setTimeout(()=>{e(a)},r);return()=>clearTimeout(d)},[a,r,e]),(0,Je.jsx)(H,{leftNode:i??(0,Je.jsx)(Yt.Search,{className:" w-4 h-4 text-gray-400"}),sideNodeClassName:"bg-transparent !pr-0 !w-4 border-0 !min-w-[40px]",...o,className:n("!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",o?.className),onChange:s,value:a})};var Ee=require("react/jsx-runtime"),jt=({status:t,variant:e,className:r})=>(0,Ee.jsx)("div",{children:(0,Ee.jsx)("div",{className:n("order-first max-w-max flex-none rounded-full px-2 py-1 text-xs font-medium ring-1 ring-inset ring-current sm:order-none text-[14px] capitalize",{"bg-green-500/20 text-green-500":e==="success"},{"bg-gray-500/20 text-white":e==="abandoned"},{"bg-red-500/20 text-red-500":e==="failed"},{"bg-yellow-500/20 text-yellow-500":e==="pending"},r),children:(0,Ee.jsx)("p",{children:t.replace("-"," ")})})});var Y=require("lucide-react");var Ae=require("lucide-react");var Fe=require("react/jsx-runtime"),wr=({page:t,currentPage:e,onClick:r})=>typeof t=="string"?(0,Fe.jsx)("span",{className:"px-3 py-1 sm:px-4 sm:py-2 text-xs sm:text-sm font-semibold text-gray-500",children:t}):(0,Fe.jsx)("button",{onClick:r,className:`p-1 w-8 h-8 text-xs sm:text-sm rounded-full ${t===e?"bg-primary-main text-white":"text-[#717171] hover:bg-primary-main/10"}`,children:t}),Jt=({totalPages:t,currentPage:e,handlePageClick:r})=>{let o=()=>{let d=Math.floor(1.5),c=Math.max(1,e-d),m=Math.min(t,c+3-1);return m>t&&(c=Math.max(1,t-3+1),m=t),{start:c,end:m}},{start:a,end:l}=o(),s=[];return a>1&&s.push(1),a>2&&s.push("..."),s.push(...Array.from({length:l-a+1},(d,c)=>a+c)),l<t-1&&s.push("..."),l<t&&s.push(t),s.map((d,c)=>(0,Fe.jsx)(wr,{page:d,currentPage:e,onClick:typeof d=="number"?()=>r(d):void 0},c))};var B=require("react/jsx-runtime"),Qt=({currentPage:t=1,totalPages:e=1,onPageChange:r,itemsPerPage:i=0,totalItems:o=0})=>{let a=d=>{d>=1&&d<=e&&r?.(d)},l=i===0?1:i*(t-1)+1,s=t===e?o:Math.min(l+i-1,o);return(0,B.jsxs)("div",{className:"flex items-center justify-between border-t border-gray-200 px-4 py-3 sm:px-6 w-full flex-wrap gap-y-10 sm:gap-y-0",children:[o&&(0,B.jsx)("section",{className:"text-[#717171] text-[12px]",children:(0,B.jsxs)("p",{className:"",children:["Showing ",l," - ",s," of ",o]})}),(0,B.jsx)("div",{className:"flex items-center justify-center sm:justify-end ",children:(0,B.jsxs)("nav",{className:" inline-flex gap-x-1 sm:gap-x-[10px] items-center",children:[(0,B.jsx)("button",{onClick:()=>a(t-1),disabled:t===1,className:"text-xs text-[#222222] hover:bg-primary-main/10 disabled:text-[#D9D9D9] disabled:cursor-not-allowed sm:flex hidden",children:(0,B.jsx)(Ae.ChevronLeftIcon,{className:"size-5"})}),Jt({currentPage:t,totalPages:e,handlePageClick:a}),(0,B.jsx)("button",{onClick:()=>a(t+1),disabled:t===e,className:"text-xs text-[#222222] hover:bg-primary-main/10 disabled:text-[#D9D9D9] disabled:cursor-not-allowed sm:flex hidden",children:(0,B.jsx)(Ae.ChevronRightIcon,{className:"size-5"})})]})})]})};var Qe=require("@tanstack/react-table");var T=require("react/jsx-runtime"),qt=({table:t,isMobile:e,onRowClick:r,id:i})=>(0,T.jsx)("div",{className:n("relative w-full rounded-b border-0",{}),children:(0,T.jsxs)("table",{id:i??"table",className:"w-full overflow-x-scroll",children:[(0,T.jsx)("thead",{children:t.getHeaderGroups().map(o=>(0,T.jsx)("tr",{className:n(" rounded text-[#717171] border-b- bg-[#FCFCFC]",{}),children:o.headers.map(a=>(0,T.jsx)("th",{className:"relative py-3 text-base whitespace-nowrap pl-2.5 text-left font-normal capitalize",colSpan:a.colSpan,style:{width:a.getSize()},children:a.isPlaceholder?null:(0,T.jsx)("div",{className:n("flex items-center",{"cursor-pointer select-none":a.column.getCanSort()}),onClick:a.column.getToggleSortingHandler(),children:a.isPlaceholder?null:(0,Qe.flexRender)(a.column.columnDef.header,a.getContext())})},a.id))},o.id))}),(0,T.jsx)("tbody",{className:" pl-2.5",children:t?.getFilteredRowModel().rows.map(o=>(0,T.jsx)("tr",{className:n("first-letter border-b border-zinc-100",{"hover:bg-gray-50":!e},{"hover:bg-gray-50 hover:cursor-pointer":r}),onClick:()=>r?r(o):{},children:o.getVisibleCells().map(a=>(0,T.jsx)("td",{className:n("",{}),children:(0,T.jsx)("div",{className:n("",{"w-max p-4 pl-2.5 text-black text-sm":!0}),children:(0,Qe.flexRender)(a.column.columnDef.cell,a.getContext())})},a.id))},o.id))})]})});var g=require("react/jsx-runtime"),er=({table:t,isMobile:e=!1,onRowClick:r,id:i,onRefetch:o,isRefetching:a,FilterMenu:l,ExtraNode:s,onExport:d,search:c={enabled:!1,debounceRate:700},download:m={enabled:!1,buttonId:"download_button",buttonText:"Export"},isLoading:u,pagination:p})=>{let h=()=>{try{o?.()}catch(I){console.error("Error while refetching data",I)}},D=I=>{c?.onSearch?.(I)};return(0,g.jsxs)("div",{className:n("relative w-full rounded-b border-0 overflow-x-auto"),children:[(o||c?.enabled||l||s||d)&&(0,g.jsxs)("div",{className:"sticky top-0 z-10 w-full flex flex-col sm:flex-row justify-between items-start sm:items-center bg-white p-2 gap-2",children:[(0,g.jsx)("div",{className:"flex flex-1 flex-col sm:flex-row items-center gap-2 justify-start",children:(0,g.jsxs)("div",{className:" w-full flex gap-x-3",children:[c?.enabled&&(0,g.jsx)("section",{className:"sm:w-56",children:(0,g.jsx)(Ie,{type:"text",placeholder:"Enter search here...",className:"h-9",onChange:D,debounce:c?.debounceRate})}),(0,g.jsxs)("div",{className:" flex gap-2",children:[o&&(0,g.jsx)(j,{onClick:h,title:"Refetch Data",disabled:a,variant:"outlined",className:"!border-[#DEDEDE] !text-gray-800 !px-[10px] !py-[8px] ",size:"sm",children:(0,g.jsx)(Y.RotateCw,{className:n("w-4 h-4",{"animate-spin":a}),size:5})}),l&&(0,g.jsx)(be,{trigger:(0,g.jsx)("button",{title:"Filter",className:n("!border-[#DEDEDE] !text-gray-800 !px-[10px] !py-[8px]",ie({variant:"outlined",size:"sm"})),children:(0,g.jsx)(Y.ListFilter,{className:"w-4 h-4",size:5})}),children:l})]})]})}),(0,g.jsx)("div",{className:"flex items-start flex-col gap-2 justify-center",children:(0,g.jsx)("section",{className:"flex flex-col-reverse sm:flex-row gap-2",children:(0,g.jsxs)("div",{className:"flex gap-2",children:[s&&s,d&&(0,g.jsx)(j,{variant:"primary",onClick:d,size:"sm",children:"Export"}),m?.enabled&&(0,g.jsx)(j,{variant:"primary",leftNode:(0,g.jsx)(Y.Download,{className:n("w-4 h-4",{"animate-spin":a}),size:5}),onClick:m?.onDownload,id:m.buttonId,size:"sm",children:m?.buttonText})]})})})]}),(0,g.jsx)("main",{className:"w-full overflow-x-auto mt-5",children:u?(0,g.jsxs)("div",{className:"py-10 flex flex-col justify-center w-full items-center space-x-2",children:[(0,g.jsx)(Y.Loader,{size:20,className:"animate-spin"}),(0,g.jsx)("p",{className:"mt-3 text-center text-gray-600 text-sm opacity-70 animate-pulse",children:"Loading..."})]}):t.getRowModel().rows.length<1?(0,g.jsx)("div",{className:"py-10 flex flex-col justify-center w-full items-center",children:(0,g.jsx)("p",{className:"text-center text-gray-600 text-sm opacity-70",children:"No data available"})}):(0,g.jsx)("div",{className:"flex flex-col gap-2",children:(0,g.jsx)(qt,{table:t,isMobile:e,onRowClick:r,id:i})})}),!u&&p?.enabled&&t.getRowModel().rows.length>0&&(0,g.jsx)(Qt,{...p,currentPage:p?.currentPage??1,totalPages:p?.totalPages??Math.ceil((p?.totalItems??0)/Math.max(p?.itemsPerPage??1,1))??1,onPageChange:I=>p?.onPageChange?.(I)})]})};var qe=require("react"),tr=require("lucide-react"),N=require("react/jsx-runtime"),rr=t=>{let{environment:e,branch:r,version:i,deployTime:o,showBanner:a,onClose:l,initDefault:s,removeFromStorage:d,syncLocalStorageToState:c}=t,m=e||process.env.NEXT_PUBLIC_NODE_ENV;return m!=="staging"&&m!=="sandbox"||((0,qe.useEffect)(()=>{c()},[c]),(0,qe.useEffect)(()=>{let u;return(m==="staging"||m==="sandbox")&&(u=setInterval(()=>{d(),s()},5*60*1e3)),()=>{u&&clearInterval(u)}},[a,e,l,d,s,m]),!a)?null:(0,N.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,N.jsx)("button",{onClick:l,className:"absolute top-2 right-2",children:(0,N.jsx)(tr.X,{})}),(0,N.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,N.jsxs)("div",{className:"flex gap-2",children:[(0,N.jsx)("span",{className:"font-medium",children:"Environment:"}),(0,N.jsx)("span",{className:"text-blue-600 capitalize",children:m})]}),(0,N.jsxs)("div",{className:"flex gap-2",children:[(0,N.jsx)("span",{className:"font-medium",children:"Branch:"}),(0,N.jsx)("span",{className:"text-green-600 capitalize",children:r||process.env.NEXT_PUBLIC_DEPLOY_BRANCH})]}),(0,N.jsxs)("div",{className:"flex gap-2",children:[(0,N.jsx)("span",{className:"font-medium",children:"Version:"}),(0,N.jsx)("span",{className:"text-purple-600",children:i||process.env.NEXT_PUBLIC_DEPLOY_VERSION})]}),(0,N.jsxs)("div",{className:"flex gap-2",children:[(0,N.jsx)("span",{className:"font-medium",children:"Deploy Time:"}),(0,N.jsx)("span",{className:"text-orange-600",children:o||process.env.NEXT_PUBLIC_DEPLOY_TIME})]})]})]})};var Me=require("react"),y=require("react/jsx-runtime"),Pr=({type:t})=>t==="gray"?(0,y.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.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"})}):t==="info"?(0,y.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,y.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"})}):t==="warning"?(0,y.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.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"})}):t==="success"?(0,y.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.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,y.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.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"})}),or=({type:t="info",title:e,description:r,open:i,showCloseButton:o,bottomNode:a,sideNode:l,onClose:s,showIcon:d=!0})=>{let[c,m]=(0,Me.useState)(i);(0,Me.useEffect)(()=>{m(i)},[i]);let u="",p="";switch(t){case"gray":u="#eeeef0",p="#79818c";break;case"info":u="#ebf5fd",p="#70B6F6";break;case"warning":u="#fff8df",p="#ffc700";break;case"success":u="#e0f9f0",p="#49e0aa";break;case"danger":u="#fde8e9",p="#f3777c";break;default:u="#eeeef0",p="#79818c";break}function h(){m(!1),s&&s()}return c?(0,y.jsxs)("div",{className:"w-full shadow-lg transform flex items-center rounded-md",style:{background:u||"#ebf5fd"},children:[(0,y.jsx)("div",{className:"flex-none absolute rounded-l-[2px] rounded-l-4px h-[4px] w-full top-0",style:{background:p||"#70B6F6"}}),(0,y.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,y.jsxs)("div",{className:"flex flex-row gap-2.5 items-start w-full h-full",children:[d&&(0,y.jsx)("div",{className:"h-full flex justify-end",children:(0,y.jsx)(Pr,{type:t})}),(0,y.jsxs)("div",{className:"w-full gap-3 h-full flex flex-col md:flex-row items-start justify-between",children:[(0,y.jsxs)("div",{className:"flex-1 gap-3 h-full flex flex-col items-start justify-between",children:[(e||r)&&(0,y.jsxs)("div",{children:[e&&(0,y.jsx)("div",{className:"text-sm font-bold text-[#191919]",children:e}),r&&(0,y.jsx)("div",{className:"text-sm font-normal text-[#5D5D5D] mt-1",children:r})]}),a]}),l]})]}),o&&(0,y.jsx)("div",{className:"w-1/10 h-full flex flex-col justify-start items-center",children:(0,y.jsx)("button",{onClick:h,children:(0,y.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsx)("path",{d:"M3.3335 3.33337L12.6662 12.6661",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,y.jsx)("path",{d:"M3.33429 12.6661L12.667 3.33337",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})})]})]}):null};var et={USD:"$",CAD:"CA$",EUR:"\u20AC",AED:"AED",AFN:"Af",ALL:"ALL",AMD:"AMD",ARS:"AR$",AUD:"AU$",AZN:"man.",BAM:"KM",BDT:"Tk",BGN:"BGN",BHD:"BD",BIF:"FBu",BND:"BN$",BOB:"Bs",BRL:"R$",BWP:"BWP",BYN:"Br",BZD:"BZ$",CDF:"CDF",CHF:"CHF",CLP:"CL$",CNY:"CN\xA5",COP:"CO$",CRC:"\u20A1",CVE:"CV$",CZK:"K\u010D",DJF:"Fdj",DKK:"Dkr",DOP:"RD$",DZD:"DA",EEK:"Ekr",EGP:"EGP",ERN:"Nfk",ETB:"Br",GBP:"\xA3",GEL:"GEL",GHS:"GH\u20B5",GNF:"FG",GTQ:"GTQ",HKD:"HK$",HNL:"HNL",HRK:"kn",HUF:"Ft",IDR:"Rp",ILS:"\u20AA",INR:"\u20B9",IQD:"IQD",IRR:"IRR",ISK:"Ikr",JMD:"J$",JOD:"JD",JPY:"\xA5",KES:"Ksh",KHR:"KHR",KMF:"CF",KRW:"\u20A9",KWD:"KD",KZT:"KZT",LBP:"L.L.",LKR:"SLRs",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MMK:"MMK",MOP:"MOP$",MUR:"MURs",MXN:"MX$",MYR:"RM",MZN:"MTn",NAD:"N$",NGN:"\u20A6",NIO:"C$",NOK:"Nkr",NPR:"NPRs",NZD:"NZ$",OMR:"OMR",PAB:"B/.",PEN:"S/.",PHP:"\u20B1",PKR:"PKRs",PLN:"z\u0142",PYG:"\u20B2",QAR:"QR",RON:"RON",RSD:"din.",RUB:"RUB",RWF:"RWF",SAR:"SR",SDG:"SDG",SEK:"Skr",SGD:"S$",SOS:"Ssh",SYP:"SY\xA3",THB:"\u0E3F",TND:"DT",TOP:"T$",TRY:"TL",TTD:"TT$",TWD:"NT$",TZS:"TSh",UAH:"\u20B4",UGX:"USh",UYU:"$U",UZS:"UZS",VEF:"Bs.F.",VND:"\u20AB",XAF:"F CFA",XOF:"CFA",YER:"YR",ZAR:"R",ZMK:"ZK",ZWL:"ZWL$"},Ne=class Ne{static getCurrencyLocaleMap(e){return{XOF:"fr",XAF:"fr"}[e]||"en"}static koboToNaira(e){return+e/100}static nairaToKobo(e){return+e*100}static getCurrencySymbol(e){return et[e]||e}};at(Ne,"formatAmountAndCurrency",(e,r,i)=>{let o=new Intl.NumberFormat(i?.locale||Ne.getCurrencyLocaleMap(e),{maximumFractionDigits:3,style:"currency",currency:e,currencyDisplay:"symbol"}).format(i?.convertToMajorCurrency?Ne.koboToNaira(Number(r)):Number(r)).replace(/^(\D+)/,"$1 ").replace("\u202F"," ").replace(/\s+/,""),a=et[e]||e;return o.replace(e,a)});var tt=Ne;var Ve=v(require("dayjs")),rt=class{static getDateLibrary(){return Ve()}static formatTimestampToDate(e,r){return Ve.unix(e).format(r||"ddd, MMM, YYYY | HH:mm:ss")}static formatDateToTimestamp(e){return Ve(e).unix()}};0&&(module.exports={AmountAction,Banner,Button,CopyableLabel,Country,CurrencySymbolMap,DateAction,DebouncedInput,DevBanner,Dialog,FlagComponent,FormLabel,Input,Loader,OTPInput,PasswordInput,PhoneInput,Popover,PopoverContent,PopoverRoot,PopoverTrigger,Select,Status,Table,Textarea,buttonVariants,cn});
1
+ "use strict";var gr=Object.create;var ie=Object.defineProperty;var yr=Object.getOwnPropertyDescriptor;var Cr=Object.getOwnPropertyNames;var br=Object.getPrototypeOf,hr=Object.prototype.hasOwnProperty;var vr=(e,t,r)=>t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xr=(e,t)=>{for(var r in t)ie(e,r,{get:t[r],enumerable:!0})},lt=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Cr(t))!hr.call(e,o)&&o!==r&&ie(e,o,{get:()=>t[o],enumerable:!(a=yr(t,o))||a.enumerable});return e};var v=(e,t,r)=>(r=e!=null?gr(br(e)):{},lt(t||!e||!e.__esModule?ie(r,"default",{value:e,enumerable:!0}):r,e)),Nr=e=>lt(ie({},"__esModule",{value:!0}),e);var ct=(e,t,r)=>vr(e,typeof t!="symbol"?t+"":t,r);var Gr={};xr(Gr,{AmountAction:()=>it,Banner:()=>lr,Button:()=>q,CopyableLabel:()=>qt,Country:()=>_t,CurrencySymbolMap:()=>nt,DateAction:()=>st,DebouncedInput:()=>Ae,DevBanner:()=>sr,Dialog:()=>Fe,FlagComponent:()=>K,FormLabel:()=>L,Input:()=>Z,Loader:()=>ae,LocaleSelector:()=>fr,OTPInput:()=>jt,PasswordInput:()=>Xe,PhoneInput:()=>qe,Popover:()=>xe,PopoverContent:()=>H,PopoverRoot:()=>z,PopoverTrigger:()=>O,Select:()=>$t,Status:()=>tr,Table:()=>nr,Textarea:()=>Ye,buttonVariants:()=>ce,cn:()=>n});module.exports=Nr(Gr);var gt=v(require("react"));var mt=v(require("react")),ze=v(require("@radix-ui/react-label")),ut=require("class-variance-authority");var dt=require("clsx"),pt=require("tailwind-merge");function n(...e){return(0,pt.twMerge)((0,dt.clsx)(e))}var ft=require("react/jsx-runtime"),wr=(0,ut.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ke=mt.forwardRef(({className:e,...t},r)=>(0,ft.jsx)(ze.Root,{ref:r,className:n(wr(),e),...t}));Ke.displayName=ze.Root.displayName;var se=require("react/jsx-runtime"),L=gt.default.forwardRef(({className:e,children:t,showAsterisk:r,error:a,...o},i)=>(0,se.jsx)(Ke,{ref:i,className:n(a&&"text-red-500",e),...o,children:r?(0,se.jsxs)("p",{children:[t,(0,se.jsx)("span",{className:"text-red-500",children:"*"})]}):t}));L.displayName="FormLabel";var le=require("react/jsx-runtime"),ae=({size:e=16,colour:t="primary"})=>(0,le.jsxs)("svg",{className:"animate-spin",width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:[(0,le.jsx)("circle",{cx:"10",cy:"10",r:"9.25",stroke:"transparent",strokeWidth:"1.5"}),(0,le.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 Le=v(require("react")),yt=require("@radix-ui/react-slot"),Ct=require("class-variance-authority");var I=require("react/jsx-runtime"),ce=(0,Ct.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"}}),q=Le.forwardRef(({className:e,variant:t="primary",size:r,asChild:a=!1,isLoading:o=!1,leftNode:i,rightNode:l,LoaderSize:s,...d},c)=>{let m=a?yt.Slot:"button",{children:u,disabled:p,...h}=d,k=Le.useRef(null);return(0,I.jsx)(m,{className:n(ce({variant:t,size:r,className:e})),ref:k||c,disabled:p||o,...h,children:(0,I.jsx)("div",{className:"flex font-medium justify-center items-center gap-2",children:o?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("span",{className:"mx-auto",children:(0,I.jsx)(ae,{size:s,colour:"secondary"})})}):(0,I.jsxs)(I.Fragment,{children:[i,u,l]})})})});q.displayName="Button";var _e=v(require("react"));var Se=require("class-variance-authority");var bt=v(require("react")),ht=require("react/jsx-runtime"),M=bt.default.forwardRef(({className:e,children:t,error:r,...a},o)=>{let i=r??t;return i?(0,ht.jsx)("p",{ref:o,className:n("text-xs font-normal text-[#F04248]",e),...a,children:i}):null});M.displayName="ErrorMessage";var vt=v(require("react")),xt=require("react/jsx-runtime"),A=vt.default.forwardRef(({className:e,...t},r)=>(0,xt.jsx)("div",{ref:r,className:n("text-sm text-[#8E98A8",e),...t}));A.displayName="FormDescription";var V=require("react/jsx-runtime"),Pr=(0,Se.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"}}),wt=_e.forwardRef(({className:e,status:t,type:r,...a},o)=>(0,V.jsx)("input",{type:r,className:n(Pr({status:t}),e),ref:o,...a}));wt.displayName="BaseInnerInput";var W=(0,Se.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"}}),Nt=(0,Se.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"}}),Z=_e.forwardRef(({className:e,status:t="default",disabled:r,error:a,isLoading:o,sideNodeClassName:i,showAsterisk:l,label:s,description:d,...c},m)=>{let u=t;return a&&(u="error"),o&&(u="loading"),r&&(u="prefilled"),(0,V.jsxs)("div",{className:"relative space-y-1 w-full",children:[s&&(0,V.jsx)(L,{showAsterisk:l,error:a,children:s}),(0,V.jsxs)("div",{className:n(W({status:u}),c.leftNode?"pl-0":"",c.rightNode?"pr-0":"",e),children:[c.leftNode?(0,V.jsx)("div",{className:n(Nt({status:u,side:"left"}),i),children:c.leftNode}):null,(0,V.jsx)(wt,{ref:m,disabled:o||r,className:n({"!pl-3":c.leftNode&&t!=="neutral","!pr-3":c.rightNode&&t!=="neutral"}),...c}),c.rightNode?(0,V.jsx)("div",{className:n(Nt({status:u,side:"right"}),i),children:c.rightNode}):null]}),d&&(0,V.jsx)(A,{className:"text-gray-400 text-sm !font-normal",children:d}),(0,V.jsx)(M,{error:a})]})});Z.displayName="Input";var me=require("react");var de=require("react/jsx-runtime"),Pt=()=>(0,de.jsxs)("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,de.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,de.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 pe=require("react/jsx-runtime"),Rt=()=>(0,pe.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,pe.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,pe.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 $e=require("react/jsx-runtime"),Dt=()=>(0,$e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,$e.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 Ue=require("react/jsx-runtime"),kt=()=>(0,Ue.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Ue.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 S=require("react/jsx-runtime"),Lt=[{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}],Xe=({onValidate:e,onChange:t,disableValidation:r,...a})=>{let[o,i]=(0,me.useState)(!1),[l,s]=(0,me.useState)(Lt),d=p=>Lt.map(h=>({...h,validated:h.RegExp.test(p)})),c=p=>{let h=d(p),k=h.every(E=>E.validated);return s(h),k},m=p=>{if(t&&t(p),r)return;let h=p?.target?.value,k=c(h);e&&e(k,h)},u=(0,me.useMemo)(()=>(0,S.jsx)("div",{className:"flex items-center gap-2",children:l?.map(p=>(0,S.jsxs)("div",{className:n("text-xs flex items-center gap-0.5",{"text-[#62C554]":p?.validated,"text-[#8E98A8]":!p?.validated}),children:[(0,S.jsx)("span",{className:"",children:p?.validated?(0,S.jsx)(Dt,{}):(0,S.jsx)(kt,{})}),(0,S.jsx)("span",{className:"",children:p?.label})]},p?.key))}),[l]);return(0,S.jsx)(Z,{sideNodeClassName:"!border-l-0",rightNode:o?(0,S.jsx)("button",{type:"button",onClick:()=>i(p=>!p),children:(0,S.jsx)(Pt,{})}):(0,S.jsx)("button",{type:"button",onClick:()=>i(p=>!p),children:(0,S.jsx)(Rt,{})}),type:o?"text":"password",onChange:m,description:!r&&u,...a})};Xe.displayName="PasswordInput";var St=require("class-variance-authority");var ee=require("react/jsx-runtime"),Po=(0,St.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"}}),Ye=({className:e,status:t="default",disabled:r,error:a,isLoading:o,showAsterisk:i,label:l,description:s,...d})=>{let c=t;return a&&(c="error"),o&&(c="loading"),r&&(c="prefilled"),(0,ee.jsxs)("div",{className:"relative space-y-1",children:[(0,ee.jsx)(L,{showAsterisk:i,error:a,children:l}),(0,ee.jsx)("textarea",{className:n("min-h-[80px]",W({status:c}),e),disabled:o||r,...d}),(0,ee.jsx)(A,{className:"text-gray-400 text-sm !font-normal",children:s}),(0,ee.jsx)(M,{error:a})]})};Ye.displayName="Textarea";var te=v(require("react"));var $=v(require("react")),R=require("cmdk"),Bt=require("lucide-react");var fe=v(require("react")),b=v(require("@radix-ui/react-dialog"));var ue=require("react/jsx-runtime"),Ft=()=>(0,ue.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,ue.jsx)("path",{d:"M18 6 6 18"}),(0,ue.jsx)("path",{d:"m6 6 12 12"})]});var C=require("react/jsx-runtime"),Rr=b.Root,Dr=b.Trigger,Tt=b.Portal,Et=fe.forwardRef(({className:e,...t},r)=>(0,C.jsx)(b.Overlay,{ref:r,className:n("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}));Et.displayName=b.Overlay.displayName;var je=fe.forwardRef(({className:e,hideCloseButton:t,children:r,...a},o)=>(0,C.jsxs)(Tt,{children:[(0,C.jsx)(Et,{}),(0,C.jsxs)(b.Content,{ref:o,className:n("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",e),...a,children:[r,!t&&(0,C.jsxs)(b.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,C.jsx)(Ft,{}),(0,C.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));je.displayName=b.Content.displayName;var It=({className:e,...t})=>(0,C.jsx)("div",{className:n("flex flex-col space-y-1.5 text-left",e),...t});It.displayName="DialogHeader";var Mt=({className:e,...t})=>(0,C.jsx)("div",{className:n("flex flex-row justify-end sm:space-x-2",e),...t});Mt.displayName="DialogFooter";var At=fe.forwardRef(({className:e,...t},r)=>(0,C.jsx)(b.Title,{ref:r,className:n("text-xl font-semibold leading-none tracking-tight",e),...t}));At.displayName=b.Title.displayName;var Vt=fe.forwardRef(({className:e,...t},r)=>(0,C.jsx)(b.Description,{ref:r,className:n("text-sm text-gray-500",e),...t}));Vt.displayName=b.Description.displayName;var Fe=({trigger:e=void 0,children:t,open:r,onOpenChange:a,hideCloseButton:o,footer:i,title:l,description:s,contentClassName:d,headerClassName:c,titleClassName:m,descriptionClassName:u,footerClassName:p,asChild:h=!0,onOpenAutoFocus:k,onCloseAutoFocus:E,onEscapeKeyDown:ke,onInteractOutside:re,onPointerDownOutside:We,...Ze})=>(0,C.jsxs)(Rr,{...Ze,open:r,onOpenChange:a,children:[(0,C.jsx)(Dr,{asChild:h,children:e}),(0,C.jsx)(Tt,{children:(0,C.jsxs)(je,{className:d,hideCloseButton:o,onOpenAutoFocus:k,onCloseAutoFocus:E,onEscapeKeyDown:ke,onPointerDownOutside:We,onInteractOutside:re,children:[l||s?(0,C.jsxs)(It,{className:c,children:[l&&(0,C.jsx)(At,{className:m,children:l}),s&&(0,C.jsx)(Vt,{className:u,children:s})]}):(0,C.jsx)(C.Fragment,{}),t,i&&(0,C.jsx)(Mt,{className:p,children:i})]})})]});Fe.displayName=b.Dialog.displayName;var D=require("react/jsx-runtime"),ge=$.forwardRef(({className:e,...t},r)=>(0,D.jsx)(R.Command,{ref:r,className:n("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));ge.displayName=R.Command.displayName;var ye=$.forwardRef(({className:e,CommandInputContainerClassName:t,loading:r,...a},o)=>(0,D.jsxs)("div",{className:n("flex items-center border-0 px-3 gap-2",t),"cmdk-input-wrapper":"",children:[r?(0,D.jsx)(ae,{size:16,colour:"secondary"}):(0,D.jsx)(Bt.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,D.jsx)(R.Command.Input,{ref:o,className:n("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),disabled:r,...a})]}));ye.displayName=R.Command.Input.displayName;var Ce=$.forwardRef(({className:e,...t},r)=>(0,D.jsx)(R.Command.List,{ref:r,className:n("overflow-y-auto overflow-x-hidden",e),...t}));Ce.displayName=R.Command.List.displayName;var be=$.forwardRef((e,t)=>(0,D.jsx)(R.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));be.displayName=R.Command.Empty.displayName;var he=$.forwardRef(({className:e,...t},r)=>(0,D.jsx)(R.Command.Group,{ref:r,className:n("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}));he.displayName=R.Command.Group.displayName;var kr=$.forwardRef(({className:e,...t},r)=>(0,D.jsx)(R.Command.Separator,{ref:r,className:n("-mx-1 h-px bg-border",e),...t}));kr.displayName=R.Command.Separator.displayName;var ve=$.forwardRef(({className:e,...t},r)=>(0,D.jsx)(R.Command.Item,{ref:r,className:n("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}));ve.displayName=R.Command.Item.displayName;var Lr=({className:e,...t})=>(0,D.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Lr.displayName="CommandShortcut";var Ot=v(require("react")),B=v(require("@radix-ui/react-popover"));var U=require("react/jsx-runtime"),z=B.Root,O=B.Trigger,H=Ot.forwardRef(({className:e,align:t="center",sideOffset:r=4,portal:a=!0,...o},i)=>a?(0,U.jsx)(B.Portal,{children:(0,U.jsx)(B.Content,{ref:i,align:t,sideOffset:r,className:n("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:o.onOpenAutoFocus,onCloseAutoFocus:o.onCloseAutoFocus,...o})}):(0,U.jsx)(B.Content,{ref:i,align:t,sideOffset:r,className:n("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:o.onOpenAutoFocus,onCloseAutoFocus:o.onCloseAutoFocus,...o}));H.displayName=B.Content.displayName;var xe=({trigger:e,children:t,open:r,onOpenChange:a,contentClassName:o,asChild:i=!0,align:l,side:s,alignOffset:d,triggerClassName:c,sideOffset:m,onOpenAutoFocus:u,onCloseAutoFocus:p,portal:h=!0,...k})=>(0,U.jsxs)(z,{...k,open:r,onOpenChange:a,children:[(0,U.jsx)(O,{asChild:i,className:c,children:e}),(0,U.jsx)(H,{alignOffset:d,sideOffset:m,side:s,align:l,className:o,onOpenAutoFocus:u,onCloseAutoFocus:p,portal:h,children:t})]});xe.displayName=B.Root.displayName;var Je=v(require("react")),F=v(require("@radix-ui/react-scroll-area"));var X=require("react/jsx-runtime"),Ne=Je.forwardRef(({className:e,viewPortClassName:t,children:r,...a},o)=>(0,X.jsxs)(F.Root,{ref:o,className:n("relative overflow-hidden",e),...a,children:[(0,X.jsx)(F.Viewport,{className:n("h-full w-full rounded-[inherit]",t),children:r}),(0,X.jsx)(Gt,{}),(0,X.jsx)(F.Corner,{})]}));Ne.displayName=F.Root.displayName;var Gt=Je.forwardRef(({className:e,orientation:t="vertical",...r},a)=>(0,X.jsx)(F.ScrollAreaScrollbar,{ref:a,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,X.jsx)(F.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-[#959595] transition hover:bg-[#808080]"})}));Gt.displayName=F.ScrollAreaScrollbar.displayName;var P=require("react/jsx-runtime"),Ht=({className:e,value:t,placeholder:r="",status:a,disabled:o})=>(0,P.jsx)(O,{asChild:!0,disabled:o,children:(0,P.jsxs)("button",{disabled:o,className:n(W({status:a}),"[&>span]:justify-start [&>span]:items-center gap-2 flex h-12 w-full items-center justify-between goup",t?"":"text-[#79818C]",e),children:[t??r??"Select options...",(0,P.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:(0,P.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"})})]})}),Te=({options:e=[],value:t,onChange:r,containerClassName:a,placeholder:o,disabled:i,loading:l,optionComponent:s,children:d,modal:c=!1,hideSearch:m,className:u,inputValue:p,onValueChange:h,onInputValueChange:k})=>{let[E,ke]=te.useState(!1),re=te.useRef(null),[We,Ze]=te.useState(void 0);return te.useLayoutEffect(()=>{re.current&&Ze(re.current.clientWidth)},[re.current]),(0,P.jsxs)(z,{modal:c,open:E,onOpenChange:ke,children:[(0,P.jsx)("div",{className:n("w-full",u),ref:re,children:d}),(0,P.jsx)(H,{portal:!c,className:"p-0 min-w-[200px]",style:{width:We},children:(0,P.jsxs)(ge,{className:n("relative max-h-[270px]",{"mt-2":!m}),children:[!m&&(0,P.jsx)(ye,{loading:l,placeholder:o??"Search options...",onValueChange:k,value:p,CommandInputContainerClassName:"mx-2 border rounded-md border-[#DEDEDE]"}),(0,P.jsx)(Ne,{viewPortClassName:"max-h-[225px]",className:n("w-full px-0 h-full overflow-y-auto",a),children:(0,P.jsxs)(Ce,{children:[!m&&(0,P.jsx)(be,{children:"No result found."}),(0,P.jsx)(he,{className:"w-full",children:e?.map(oe=>(0,P.jsx)(ve,{defaultValue:t?.label,value:oe.label,disabled:i,onSelect:()=>{r(oe),ke(!1),h?.(oe?.value)},children:s?s(oe):oe.label},oe.value))})]})})]})})]})};var Qe=[{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"}],Wt=()=>{let e={};return Qe?.forEach(t=>{e[t?.internetCountryCode]=t?.countryName}),e};var we=v(require("react")),Ee=v(require("react-phone-number-input")),zt=v(require("react-phone-number-input/flags"));var Y=require("react/jsx-runtime"),Sr=e=>(0,Y.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,Y.jsx)("rect",{width:"32",height:"32",fill:"#60A5FA"})," ",(0,Y.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,Y.jsx)("rect",{x:"2",y:"28",width:"28",height:"3",fill:"#D1D5DB"}),(0,Y.jsx)("path",{d:"M0 16H32M8 0V32M16 0V32M24 0V32",stroke:"#2563EB",strokeWidth:"0.5",vectorEffect:"non-scaling-stroke"}),(0,Y.jsx)("path",{d:"M0 16H32",stroke:"#2563EB",strokeWidth:"1",vectorEffect:"non-scaling-stroke"})]}),Zt=Sr;var f=require("react/jsx-runtime"),qe=we.forwardRef(({className:e,onChange:t,defaultCountry:r="NG",modal:a,showAsterisk:o,label:i,description:l,error:s,...d},c)=>{let m=u=>(0,f.jsx)(Fr,{...u,status:d.status,modal:a});return(0,f.jsxs)("div",{className:"relative space-y-1",children:[(0,f.jsx)(L,{showAsterisk:o,error:s,children:i}),(0,f.jsx)(Ee.default,{ref:c,className:n("flex",e),flagComponent:K,countrySelectComponent:m,inputComponent:Kt,defaultCountry:r,onChange:u=>{t&&t?.(u)},...d}),(0,f.jsx)(A,{className:"text-gray-400 text-sm !font-normal",children:l}),(0,f.jsx)(M,{error:s})]})});qe.displayName="PhoneInput";var Kt=we.forwardRef(({className:e,...t},r)=>(0,f.jsx)(Z,{className:n("!rounded-s-none h-10",e),...t,ref:r}));Kt.displayName="InputComponent";var Fr=({disabled:e,value:t,onChange:r,options:a,status:o,modal:i})=>{let l=we.useCallback(s=>{r(s)},[r]);return(0,f.jsxs)(z,{modal:i,children:[(0,f.jsx)(O,{disabled:e,children:(0,f.jsxs)("div",{className:n(W({status:o}),"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,f.jsx)(K,{country:t,countryName:t}),(0,f.jsx)("svg",{className:n("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,f.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,f.jsx)(H,{portal:!i,className:"w-[200px] md:w-[300px] p-0",children:(0,f.jsx)(ge,{children:(0,f.jsx)(Ce,{children:(0,f.jsxs)(Ne,{className:"h-72",children:[(0,f.jsx)(ye,{placeholder:"Search country..."}),(0,f.jsx)(be,{children:"No country found."}),(0,f.jsx)(he,{children:a.filter(s=>s.value).map(s=>(0,f.jsxs)(ve,{className:"gap-2",onSelect:()=>l(s.value),children:[(0,f.jsx)(K,{country:s.value,countryName:s.label}),(0,f.jsx)("span",{className:"flex-1 text-sm",children:s.label}),s.value&&(0,f.jsx)("span",{className:"text-[#191919]/50 text-sm dark:text-white",children:`+${Ee.getCountryCallingCode(s.value)}`}),(0,f.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:n("ml-auto",s.value===t?"opacity-100":"opacity-0"),children:(0,f.jsx)("path",{d:"M4 8.00008L6.66353 10.6636L12 5.33655",stroke:"#959595",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"})})]},`${s.value}-${s.label}`))})]})})})})]})},K=({country:e,countryName:t,className:r})=>{let a=zt.default[e];return e==="GLOBAL"?(0,f.jsx)("span",{className:n("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:(0,f.jsx)(Zt,{className:"w-full h-[90%]"})}):(0,f.jsx)("span",{className:n("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:a&&(0,f.jsx)(a,{title:t})})};K.displayName="FlagComponent";var x=require("react/jsx-runtime"),Tr=Wt(),Er=({className:e,value:t,placeholder:r="",status:a,disabled:o})=>(0,x.jsx)(O,{asChild:!0,disabled:o,children:(0,x.jsxs)("button",{disabled:o,className:n(W({status:a}),"[&>span]:justify-start [&>span]:items-center gap-2 flex w-full items-center justify-between goup",t?"":"text-[#79818C]",e),children:[t?(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(K,{country:t,countryName:t,className:"ml-1 !w-6 h-5"}),(0,x.jsxs)("span",{className:"",children:[" ",Tr[t]]})]}):r??"Select options...",(0,x.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:(0,x.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"})})]})}),_t=({hideSearch:e=!0,showAsterisk:t,label:r,description:a,error:o,...i})=>{let l=Qe?.map(s=>({value:s?.internetCountryCode,label:s?.countryName,...s}));return(0,x.jsxs)("div",{className:"relative space-y-1",children:[(0,x.jsx)(L,{showAsterisk:t,error:o,children:r}),(0,x.jsx)(Te,{options:l,hideSearch:e,optionComponent:s=>(0,x.jsxs)("div",{className:"w-full flex items-center gap-2",children:[(0,x.jsx)(K,{country:s?.internetCountryCode,countryName:s?.label,className:"ml-2 !w-6 !h-5"}),(0,x.jsx)("span",{className:"flex-1 text-sm",children:s?.label})]}),...i,children:(0,x.jsx)(Er,{value:i?.value?.value,status:i?.status,placeholder:i?.placeholder??" Select Country"})}),(0,x.jsx)(A,{className:"text-gray-400 text-sm !font-normal",children:a}),(0,x.jsx)(M,{error:o})]})};var j=require("react/jsx-runtime"),$t=({showAsterisk:e,label:t,description:r,error:a,hideSearch:o=!0,status:i,...l})=>(0,j.jsxs)("div",{className:"relative space-y-1",children:[(0,j.jsx)(L,{showAsterisk:e,error:a,children:t}),(0,j.jsx)(Te,{hideSearch:o,...l,containerClassName:"h-full",children:(0,j.jsx)(Ht,{disabled:l?.disabled,placeholder:"Select or search email",status:i,value:l?.value?.label??l?.value?.value})}),(0,j.jsx)(A,{className:"text-gray-400 text-sm !font-normal",children:r}),(0,j.jsx)(M,{error:a})]});var Ut=v(require("react-otp-input"));var Xt=require("class-variance-authority"),Yt=require("react"),et=require("react/jsx-runtime"),Ir=(0,Xt.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"}}),jt=({numInputs:e=4,inputStyle:t,containerStyle:r,placeholder:a="-",status:o,...i})=>{let l=(0,Yt.useMemo)(()=>a||new Array(e).fill("").reduce((c,m)=>c+=m,""),[e,a]);return(0,et.jsx)(Ut.default,{numInputs:e,placeholder:l,containerStyle:n("w-full",r),inputStyle:n(Ir({status:o}),t),renderInput:s=>(0,et.jsx)("input",{...s}),...i})};var Qt=require("react"),Ie=require("lucide-react"),Me=require("framer-motion");var _=require("react/jsx-runtime"),qt=({text:e,textToCopy:t,onCopy:r,iconsPosition:a="right",clampText:o=!0,textClassName:i})=>{let[l,s]=(0,Qt.useState)(!1),d=()=>{navigator.clipboard.writeText(t??e).then(()=>{s(!0),r?.(),setTimeout(()=>s(!1),2e3)})},c=l?Ie.CheckIcon:Ie.Copy;return(0,_.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:[a==="left"&&(0,_.jsx)(Jt,{Icon:c,onClick:d,copied:l}),(0,_.jsx)("span",{className:n({"truncate max-w-[100px]":o},i),children:e}),a==="right"&&(0,_.jsx)(Jt,{Icon:c,onClick:d,copied:l})]})},Jt=({Icon:e,onClick:t,copied:r})=>(0,_.jsx)(Me.AnimatePresence,{mode:"wait",children:(0,_.jsx)(Me.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},onClick:t,children:(0,_.jsx)(e,{className:`w-5 h-5 ${r?"text-green-500":"text-gray-500 hover:text-gray-700 transition"}`})},r?"check":"copy")});var Pe=require("react");var er=require("lucide-react"),tt=require("react/jsx-runtime"),Ae=({value:e,onChange:t,debounce:r=500,addon:a,...o})=>{let[i,l]=(0,Pe.useState)(e??""),s=d=>l(d.target.value);return(0,Pe.useEffect)(()=>{e&&l(e)},[e]),(0,Pe.useEffect)(()=>{let d=setTimeout(()=>{t(i)},r);return()=>clearTimeout(d)},[i,r,t]),(0,tt.jsx)(Z,{leftNode:a??(0,tt.jsx)(er.Search,{className:" w-4 h-4 text-gray-400"}),sideNodeClassName:"bg-transparent !pr-0 !w-4 border-0 !min-w-[40px]",...o,className:n("!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",o?.className),onChange:s,value:i})};var Ve=require("react/jsx-runtime"),tr=({status:e,variant:t,className:r})=>(0,Ve.jsx)("div",{children:(0,Ve.jsx)("div",{className:n("order-first max-w-max flex-none rounded-full px-2 py-1 text-xs font-medium ring-1 ring-inset ring-current sm:order-none text-[14px] capitalize",{"bg-green-500/20 text-green-500":t==="success"},{"bg-gray-500/20 text-white":t==="abandoned"},{"bg-red-500/20 text-red-500":t==="failed"},{"bg-yellow-500/20 text-yellow-500":t==="pending"},r),children:(0,Ve.jsx)("p",{children:e.replace("-"," ")})})});var J=require("lucide-react");var Oe=require("lucide-react");var Be=require("react/jsx-runtime"),Mr=({page:e,currentPage:t,onClick:r})=>typeof e=="string"?(0,Be.jsx)("span",{className:"px-3 py-1 sm:px-4 sm:py-2 text-xs sm:text-sm font-semibold text-gray-500",children:e}):(0,Be.jsx)("button",{onClick:r,className:`p-1 w-8 h-8 text-xs sm:text-sm rounded-full ${e===t?"bg-primary-main text-white":"text-[#717171] hover:bg-primary-main/10"}`,children:e}),rr=({totalPages:e,currentPage:t,handlePageClick:r})=>{let o=()=>{let d=Math.floor(1.5),c=Math.max(1,t-d),m=Math.min(e,c+3-1);return m>e&&(c=Math.max(1,e-3+1),m=e),{start:c,end:m}},{start:i,end:l}=o(),s=[];return i>1&&s.push(1),i>2&&s.push("..."),s.push(...Array.from({length:l-i+1},(d,c)=>i+c)),l<e-1&&s.push("..."),l<e&&s.push(e),s.map((d,c)=>(0,Be.jsx)(Mr,{page:d,currentPage:t,onClick:typeof d=="number"?()=>r(d):void 0},c))};var G=require("react/jsx-runtime"),or=({currentPage:e=1,totalPages:t=1,onPageChange:r,itemsPerPage:a=0,totalItems:o=0})=>{let i=d=>{d>=1&&d<=t&&r?.(d)},l=a===0?1:a*(e-1)+1,s=e===t?o:Math.min(l+a-1,o);return(0,G.jsxs)("div",{className:"flex items-center justify-between border-t border-gray-200 px-4 py-3 sm:px-6 w-full flex-wrap gap-y-10 sm:gap-y-0",children:[o&&(0,G.jsx)("section",{className:"text-[#717171] text-[12px]",children:(0,G.jsxs)("p",{className:"",children:["Showing ",l," - ",s," of ",o]})}),(0,G.jsx)("div",{className:"flex items-center justify-center sm:justify-end ",children:(0,G.jsxs)("nav",{className:" inline-flex gap-x-1 sm:gap-x-[10px] items-center",children:[(0,G.jsx)("button",{onClick:()=>i(e-1),disabled:e===1,className:"text-xs text-[#222222] hover:bg-primary-main/10 disabled:text-[#D9D9D9] disabled:cursor-not-allowed sm:flex hidden",children:(0,G.jsx)(Oe.ChevronLeftIcon,{className:"size-5"})}),rr({currentPage:e,totalPages:t,handlePageClick:i}),(0,G.jsx)("button",{onClick:()=>i(e+1),disabled:e===t,className:"text-xs text-[#222222] hover:bg-primary-main/10 disabled:text-[#D9D9D9] disabled:cursor-not-allowed sm:flex hidden",children:(0,G.jsx)(Oe.ChevronRightIcon,{className:"size-5"})})]})})]})};var rt=require("@tanstack/react-table");var T=require("react/jsx-runtime"),ar=({table:e,isMobile:t,onRowClick:r,id:a})=>(0,T.jsx)("div",{className:n("relative w-full rounded-b border-0",{}),children:(0,T.jsxs)("table",{id:a??"table",className:"w-full overflow-x-scroll",children:[(0,T.jsx)("thead",{children:e.getHeaderGroups().map(o=>(0,T.jsx)("tr",{className:n(" rounded text-[#717171] border-b- bg-[#FCFCFC]",{}),children:o.headers.map(i=>(0,T.jsx)("th",{className:"relative py-3 text-base whitespace-nowrap pl-2.5 text-left font-normal capitalize",colSpan:i.colSpan,style:{width:i.getSize()},children:i.isPlaceholder?null:(0,T.jsx)("div",{className:n("flex items-center",{"cursor-pointer select-none":i.column.getCanSort()}),onClick:i.column.getToggleSortingHandler(),children:i.isPlaceholder?null:(0,rt.flexRender)(i.column.columnDef.header,i.getContext())})},i.id))},o.id))}),(0,T.jsx)("tbody",{className:" pl-2.5",children:e?.getFilteredRowModel().rows.map(o=>(0,T.jsx)("tr",{className:n("first-letter border-b border-zinc-100",{"hover:bg-gray-50":!t},{"hover:bg-gray-50 hover:cursor-pointer":r}),onClick:()=>r?r(o):{},children:o.getVisibleCells().map(i=>(0,T.jsx)("td",{className:n("",{}),children:(0,T.jsx)("div",{className:n("",{"w-max p-4 pl-2.5 text-black text-sm":!0}),children:(0,rt.flexRender)(i.column.columnDef.cell,i.getContext())})},i.id))},o.id))})]})});var g=require("react/jsx-runtime"),nr=({table:e,isMobile:t=!1,onRowClick:r,id:a,onRefetch:o,isRefetching:i,FilterMenu:l,ExtraNode:s,onExport:d,search:c={enabled:!1,debounceRate:700},download:m={enabled:!1,buttonId:"download_button",buttonText:"Export"},isLoading:u,pagination:p})=>{let h=()=>{try{o?.()}catch(E){console.error("Error while refetching data",E)}},k=E=>{c?.onSearch?.(E)};return(0,g.jsxs)("div",{className:n("relative w-full rounded-b border-0 overflow-x-auto"),children:[(o||c?.enabled||l||s||d)&&(0,g.jsxs)("div",{className:"sticky top-0 z-10 w-full flex flex-col sm:flex-row justify-between items-start sm:items-center bg-white p-2 gap-2",children:[(0,g.jsx)("div",{className:"flex flex-1 flex-col sm:flex-row items-center gap-2 justify-start",children:(0,g.jsxs)("div",{className:" w-full flex gap-x-3",children:[c?.enabled&&(0,g.jsx)("section",{className:"sm:w-56",children:(0,g.jsx)(Ae,{type:"text",placeholder:"Enter search here...",className:"h-9",onChange:k,debounce:c?.debounceRate})}),(0,g.jsxs)("div",{className:" flex gap-2",children:[o&&(0,g.jsx)(q,{onClick:h,title:"Refetch Data",disabled:i,variant:"outlined",className:"!border-[#DEDEDE] !text-gray-800 !px-[10px] !py-[8px] ",size:"sm",children:(0,g.jsx)(J.RotateCw,{className:n("w-4 h-4",{"animate-spin":i}),size:5})}),l&&(0,g.jsx)(xe,{trigger:(0,g.jsx)("button",{title:"Filter",className:n("!border-[#DEDEDE] !text-gray-800 !px-[10px] !py-[8px]",ce({variant:"outlined",size:"sm"})),children:(0,g.jsx)(J.ListFilter,{className:"w-4 h-4",size:5})}),children:l})]})]})}),(0,g.jsx)("div",{className:"flex items-start flex-col gap-2 justify-center",children:(0,g.jsx)("section",{className:"flex flex-col-reverse sm:flex-row gap-2",children:(0,g.jsxs)("div",{className:"flex gap-2",children:[s&&s,d&&(0,g.jsx)(q,{variant:"primary",onClick:d,size:"sm",children:"Export"}),m?.enabled&&(0,g.jsx)(q,{variant:"primary",leftNode:(0,g.jsx)(J.Download,{className:n("w-4 h-4",{"animate-spin":i}),size:5}),onClick:m?.onDownload,id:m.buttonId,size:"sm",children:m?.buttonText})]})})})]}),(0,g.jsx)("main",{className:"w-full overflow-x-auto mt-5",children:u?(0,g.jsxs)("div",{className:"py-10 flex flex-col justify-center w-full items-center space-x-2",children:[(0,g.jsx)(J.Loader,{size:20,className:"animate-spin"}),(0,g.jsx)("p",{className:"mt-3 text-center text-gray-600 text-sm opacity-70 animate-pulse",children:"Loading..."})]}):e.getRowModel().rows.length<1?(0,g.jsx)("div",{className:"py-10 flex flex-col justify-center w-full items-center",children:(0,g.jsx)("p",{className:"text-center text-gray-600 text-sm opacity-70",children:"No data available"})}):(0,g.jsx)("div",{className:"flex flex-col gap-2",children:(0,g.jsx)(ar,{table:e,isMobile:t,onRowClick:r,id:a})})}),!u&&p?.enabled&&e.getRowModel().rows.length>0&&(0,g.jsx)(or,{...p,currentPage:p?.currentPage??1,totalPages:p?.totalPages??Math.ceil((p?.totalItems??0)/Math.max(p?.itemsPerPage??1,1))??1,onPageChange:E=>p?.onPageChange?.(E)})]})};var ot=require("react"),ir=require("lucide-react"),N=require("react/jsx-runtime"),sr=e=>{let{environment:t,branch:r,version:a,deployTime:o,showBanner:i,onClose:l,initDefault:s,removeFromStorage:d,syncLocalStorageToState:c}=e,m=t||process.env.NEXT_PUBLIC_NODE_ENV;return m!=="staging"&&m!=="sandbox"||((0,ot.useEffect)(()=>{c()},[c]),(0,ot.useEffect)(()=>{let u;return(m==="staging"||m==="sandbox")&&(u=setInterval(()=>{d(),s()},5*60*1e3)),()=>{u&&clearInterval(u)}},[i,t,l,d,s,m]),!i)?null:(0,N.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,N.jsx)("button",{onClick:l,className:"absolute top-2 right-2",children:(0,N.jsx)(ir.X,{})}),(0,N.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,N.jsxs)("div",{className:"flex gap-2",children:[(0,N.jsx)("span",{className:"font-medium",children:"Environment:"}),(0,N.jsx)("span",{className:"text-blue-600 capitalize",children:m})]}),(0,N.jsxs)("div",{className:"flex gap-2",children:[(0,N.jsx)("span",{className:"font-medium",children:"Branch:"}),(0,N.jsx)("span",{className:"text-green-600 capitalize",children:r||process.env.NEXT_PUBLIC_DEPLOY_BRANCH})]}),(0,N.jsxs)("div",{className:"flex gap-2",children:[(0,N.jsx)("span",{className:"font-medium",children:"Version:"}),(0,N.jsx)("span",{className:"text-purple-600",children:a||process.env.NEXT_PUBLIC_DEPLOY_VERSION})]}),(0,N.jsxs)("div",{className:"flex gap-2",children:[(0,N.jsx)("span",{className:"font-medium",children:"Deploy Time:"}),(0,N.jsx)("span",{className:"text-orange-600",children:o||process.env.NEXT_PUBLIC_DEPLOY_TIME})]})]})]})};var Ge=require("react"),y=require("react/jsx-runtime"),Ar=({type:e})=>e==="gray"?(0,y.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.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,y.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,y.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,y.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.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,y.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.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,y.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.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"})}),lr=({type:e="info",title:t,description:r,open:a,showCloseButton:o,bottomNode:i,sideNode:l,onClose:s,showIcon:d=!0})=>{let[c,m]=(0,Ge.useState)(a);(0,Ge.useEffect)(()=>{m(a)},[a]);let u="",p="";switch(e){case"gray":u="#eeeef0",p="#79818c";break;case"info":u="#ebf5fd",p="#70B6F6";break;case"warning":u="#fff8df",p="#ffc700";break;case"success":u="#e0f9f0",p="#49e0aa";break;case"danger":u="#fde8e9",p="#f3777c";break;default:u="#eeeef0",p="#79818c";break}function h(){m(!1),s&&s()}return c?(0,y.jsxs)("div",{className:"w-full shadow-lg transform flex items-center rounded-md",style:{background:u||"#ebf5fd"},children:[(0,y.jsx)("div",{className:"flex-none absolute rounded-l-[2px] rounded-l-4px h-[4px] w-full top-0",style:{background:p||"#70B6F6"}}),(0,y.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,y.jsxs)("div",{className:"flex flex-row gap-2.5 items-start w-full h-full",children:[d&&(0,y.jsx)("div",{className:"h-full flex justify-end",children:(0,y.jsx)(Ar,{type:e})}),(0,y.jsxs)("div",{className:"w-full gap-3 h-full flex flex-col md:flex-row items-start justify-between",children:[(0,y.jsxs)("div",{className:"flex-1 gap-3 h-full flex flex-col items-start justify-between",children:[(t||r)&&(0,y.jsxs)("div",{children:[t&&(0,y.jsx)("div",{className:"text-sm font-bold text-[#191919]",children:t}),r&&(0,y.jsx)("div",{className:"text-sm font-normal text-[#5D5D5D] mt-1",children:r})]}),i]}),l]})]}),o&&(0,y.jsx)("div",{className:"w-1/10 h-full flex flex-col justify-start items-center",children:(0,y.jsx)("button",{onClick:h,children:(0,y.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsx)("path",{d:"M3.3335 3.33337L12.6662 12.6661",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,y.jsx)("path",{d:"M3.33429 12.6661L12.667 3.33337",stroke:"#191919",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})})]})]}):null};var at=require("react/jsx-runtime"),cr=()=>(0,at.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,at.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 Q=require("react/jsx-runtime"),dr=e=>(0,Q.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,Q.jsx)("rect",{width:"60",height:"30",fill:"#00247D"}),(0,Q.jsx)("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#FFFFFF",strokeWidth:"6"}),(0,Q.jsx)("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#CF142B",strokeWidth:"4"}),(0,Q.jsx)("path",{d:"M30,0 L30,30 M0,15 L60,15",stroke:"#FFFFFF",strokeWidth:"10"}),(0,Q.jsx)("path",{d:"M30,0 L30,30 M0,15 L60,15",stroke:"#CF142B",strokeWidth:"6"})]});var ne=require("react/jsx-runtime"),pr=e=>(0,ne.jsxs)("svg",{viewBox:"0 0 60 40",className:"w-full max-w-md h-auto","aria-label":"Tricolore - Flag of France",...e,children:[(0,ne.jsx)("rect",{x:"0",y:"0",width:"20",height:"40",fill:"#002395"}),(0,ne.jsx)("rect",{x:"20",y:"0",width:"20",height:"40",fill:"#FFFFFF"}),(0,ne.jsx)("rect",{x:"40",y:"0",width:"20",height:"40",fill:"#ED2939"})]});var Re=require("react/jsx-runtime"),mr=()=>(0,Re.jsxs)("svg",{width:"20",height:"18",viewBox:"0 0 8 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Re.jsx)("path",{d:"M5.50257 12.9395L3.68439 14.7576L1.86621 12.9395",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Re.jsx)("path",{d:"M5.50257 5.06055L3.68439 3.24237L1.86621 5.06055",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});var ur=require("@radix-ui/react-popover"),w=require("react/jsx-runtime"),Vr=[{key:"en",label:"English"},{key:"fr",label:"French"}],Br=({locale:e})=>e==="fr"?(0,w.jsx)(pr,{width:10}):(0,w.jsx)(dr,{width:10}),Or=({locale:e})=>(0,w.jsx)("div",{className:"px-2 py-1 ",children:(0,w.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,w.jsx)(Br,{locale:e})," ",(0,w.jsx)("span",{className:"uppercase",children:e}),(0,w.jsx)(mr,{})]})}),fr=({locale:e="en",onChange:t,locales:r=Vr})=>(0,w.jsxs)(z,{children:[(0,w.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,w.jsx)(O,{className:"!p-0 !bg-transparent ",children:(0,w.jsx)(Or,{locale:e})})}),(0,w.jsx)(H,{side:"bottom",className:"p-0 max-w-max rounded-md overflow-hidden mx-auto mt-2",children:(0,w.jsx)("div",{children:r?.map(a=>(0,w.jsxs)(ur.PopoverClose,{type:"button",className:n("flex items-center gap-3 px-3 py-1 text-sm hover:bg-blue-50 w-full transition-all",{"bg-blue-100":e&&e===a?.key}),onClick:()=>t?.(a?.key),children:[a?.label," ",e&&e===a?.key&&(0,w.jsx)(cr,{})]},a?.key))})})]});var nt={USD:"$",CAD:"CA$",EUR:"\u20AC",AED:"AED",AFN:"Af",ALL:"ALL",AMD:"AMD",ARS:"AR$",AUD:"AU$",AZN:"man.",BAM:"KM",BDT:"Tk",BGN:"BGN",BHD:"BD",BIF:"FBu",BND:"BN$",BOB:"Bs",BRL:"R$",BWP:"BWP",BYN:"Br",BZD:"BZ$",CDF:"CDF",CHF:"CHF",CLP:"CL$",CNY:"CN\xA5",COP:"CO$",CRC:"\u20A1",CVE:"CV$",CZK:"K\u010D",DJF:"Fdj",DKK:"Dkr",DOP:"RD$",DZD:"DA",EEK:"Ekr",EGP:"EGP",ERN:"Nfk",ETB:"Br",GBP:"\xA3",GEL:"GEL",GHS:"GH\u20B5",GNF:"FG",GTQ:"GTQ",HKD:"HK$",HNL:"HNL",HRK:"kn",HUF:"Ft",IDR:"Rp",ILS:"\u20AA",INR:"\u20B9",IQD:"IQD",IRR:"IRR",ISK:"Ikr",JMD:"J$",JOD:"JD",JPY:"\xA5",KES:"Ksh",KHR:"KHR",KMF:"CF",KRW:"\u20A9",KWD:"KD",KZT:"KZT",LBP:"L.L.",LKR:"SLRs",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"MDL",MGA:"MGA",MKD:"MKD",MMK:"MMK",MOP:"MOP$",MUR:"MURs",MXN:"MX$",MYR:"RM",MZN:"MTn",NAD:"N$",NGN:"\u20A6",NIO:"C$",NOK:"Nkr",NPR:"NPRs",NZD:"NZ$",OMR:"OMR",PAB:"B/.",PEN:"S/.",PHP:"\u20B1",PKR:"PKRs",PLN:"z\u0142",PYG:"\u20B2",QAR:"QR",RON:"RON",RSD:"din.",RUB:"RUB",RWF:"RWF",SAR:"SR",SDG:"SDG",SEK:"Skr",SGD:"S$",SOS:"Ssh",SYP:"SY\xA3",THB:"\u0E3F",TND:"DT",TOP:"T$",TRY:"TL",TTD:"TT$",TWD:"NT$",TZS:"TSh",UAH:"\u20B4",UGX:"USh",UYU:"$U",UZS:"UZS",VEF:"Bs.F.",VND:"\u20AB",XAF:"F CFA",XOF:"CFA",YER:"YR",ZAR:"R",ZMK:"ZK",ZWL:"ZWL$"},De=class De{static getCurrencyLocaleMap(t){return{XOF:"fr",XAF:"fr"}[t]||"en"}static koboToNaira(t){return+t/100}static nairaToKobo(t){return+t*100}static getCurrencySymbol(t){return nt[t]||t}};ct(De,"formatAmountAndCurrency",(t,r,a)=>{let o=new Intl.NumberFormat(a?.locale||De.getCurrencyLocaleMap(t),{maximumFractionDigits:3,style:"currency",currency:t,currencyDisplay:"symbol"}).format(a?.convertToMajorCurrency?De.koboToNaira(Number(r)):Number(r)).replace(/^(\D+)/,"$1 ").replace("\u202F"," ").replace(/\s+/,""),i=nt[t]||t;return o.replace(t,i)});var it=De;var He=v(require("dayjs")),st=class{static getDateLibrary(){return(0,He.default)()}static formatTimestampToDate(t,r){return He.default.unix(t).format(r||"ddd, MMM, YYYY | HH:mm:ss")}static formatDateToTimestamp(t){return(0,He.default)(t).unix()}};0&&(module.exports={AmountAction,Banner,Button,CopyableLabel,Country,CurrencySymbolMap,DateAction,DebouncedInput,DevBanner,Dialog,FlagComponent,FormLabel,Input,Loader,LocaleSelector,OTPInput,PasswordInput,PhoneInput,Popover,PopoverContent,PopoverRoot,PopoverTrigger,Select,Status,Table,Textarea,buttonVariants,cn});
2
2
  //# sourceMappingURL=index.js.map