@6thbridge/hexa 0.0.7 → 0.0.9

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,7 +1,7 @@
1
1
 
2
2
   WARN  Issue while reading "/Users/joachim/.nvm/versions/node/v20.17.0/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read
3
3
 
4
- > @6thbridge/hexa@0.0.1 build /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
4
+ > @6thbridge/hexa@0.0.8 build /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
5
5
  > tsup src/index.ts --format=esm,cjs --dts --clean --minify --sourcemap && pnpm run build:style
6
6
 
7
7
  CLI Building entry: src/index.ts
@@ -11,25 +11,22 @@
11
11
  CLI Cleaning output folder
12
12
  ESM Build start
13
13
  CJS Build start
14
- ESM dist/index.mjs 134.00 B
15
- ESM dist/index.mjs.map 260.00 B
16
- ESM ⚡️ Build success in 40ms
17
- CJS dist/index.js 615.00 B
18
- CJS dist/index.js.map 431.00 B
19
- CJS ⚡️ Build success in 40ms
14
+ CJS dist/index.js 37.04 KB
15
+ CJS dist/index.js.map 101.61 KB
16
+ CJS ⚡️ Build success in 45ms
17
+ ESM dist/index.mjs 35.19 KB
18
+ ESM dist/index.mjs.map 101.78 KB
19
+ ESM ⚡️ Build success in 46ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 482ms
22
- DTS dist/index.d.mts 136.00 B
23
- DTS dist/index.d.ts 136.00 B
21
+ DTS ⚡️ Build success in 1477ms
22
+ DTS dist/index.d.mts 7.95 KB
23
+ DTS dist/index.d.ts 7.95 KB
24
24
   WARN  Issue while reading "/Users/joachim/.nvm/versions/node/v20.17.0/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read
25
25
 
26
- > @6thbridge/hexa@0.0.1 build:style /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
26
+ > @6thbridge/hexa@0.0.8 build:style /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
27
27
  > tailwindcss -i ./src/styles/input.css -o ./dist/output.css
28
28
 
29
29
  
30
30
  Rebuilding...
31
- 
32
- warn - No utility classes were detected in your source files. If this is unexpected, double-check the `content` option in your Tailwind CSS configuration.
33
- warn - https://tailwindcss.com/docs/content-configuration
34
31
  
35
- Done in 78ms.
32
+ Done in 135ms.
@@ -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.7 lint /Users/joachim/Documents/dev/payfusion/payfusion-component-library/packages/6thbridge-hexa
3
+ > @6thbridge/hexa@0.0.9 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
@@ -7,6 +7,7 @@ import { VariantProps } from 'class-variance-authority';
7
7
  import * as RPNInput from 'react-phone-number-input';
8
8
  import { OTPInputProps as OTPInputProps$1 } from 'react-otp-input';
9
9
  import * as DialogPrimitive from '@radix-ui/react-dialog';
10
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
10
11
 
11
12
  declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
12
13
  showAsterisk?: boolean;
@@ -187,4 +188,26 @@ declare const Dialog: {
187
188
  displayName: string | undefined;
188
189
  };
189
190
 
190
- export { Button, Country, Dialog, FlagComponent, FormLabel, Input, Loader, OTPInput, PasswordInput, PhoneInput, Select, Textarea };
191
+ declare const PopoverRoot: React$1.FC<PopoverPrimitive.PopoverProps>;
192
+ declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
193
+ declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
194
+ portal?: boolean;
195
+ } & React$1.RefAttributes<HTMLDivElement>>;
196
+ type PopoverPropsType = {
197
+ trigger: React$1.ReactNode;
198
+ children: React$1.ReactNode;
199
+ contentClassName?: string;
200
+ asChild?: boolean;
201
+ align?: PopoverPrimitive.PopoverContentProps["align"];
202
+ side?: PopoverPrimitive.PopoverContentProps["side"];
203
+ alignOffset?: number | undefined;
204
+ sideOffset?: number | undefined;
205
+ onOpenAutoFocus?: (e: Event) => void;
206
+ onCloseAutoFocus?: (e: Event) => void;
207
+ };
208
+ declare const Popover: {
209
+ ({ trigger, children, open, onOpenChange, contentClassName, asChild, align, side, alignOffset, sideOffset, onOpenAutoFocus, onCloseAutoFocus, ...props }: React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> & PopoverPropsType): react_jsx_runtime.JSX.Element;
210
+ displayName: string | undefined;
211
+ };
212
+
213
+ export { Button, Country, Dialog, FlagComponent, FormLabel, Input, Loader, OTPInput, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, Select, Textarea };
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import { VariantProps } from 'class-variance-authority';
7
7
  import * as RPNInput from 'react-phone-number-input';
8
8
  import { OTPInputProps as OTPInputProps$1 } from 'react-otp-input';
9
9
  import * as DialogPrimitive from '@radix-ui/react-dialog';
10
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
10
11
 
11
12
  declare const FormLabel: React__default.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React__default.RefAttributes<HTMLLabelElement>, "ref"> & {
12
13
  showAsterisk?: boolean;
@@ -187,4 +188,26 @@ declare const Dialog: {
187
188
  displayName: string | undefined;
188
189
  };
189
190
 
190
- export { Button, Country, Dialog, FlagComponent, FormLabel, Input, Loader, OTPInput, PasswordInput, PhoneInput, Select, Textarea };
191
+ declare const PopoverRoot: React$1.FC<PopoverPrimitive.PopoverProps>;
192
+ declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
193
+ declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
194
+ portal?: boolean;
195
+ } & React$1.RefAttributes<HTMLDivElement>>;
196
+ type PopoverPropsType = {
197
+ trigger: React$1.ReactNode;
198
+ children: React$1.ReactNode;
199
+ contentClassName?: string;
200
+ asChild?: boolean;
201
+ align?: PopoverPrimitive.PopoverContentProps["align"];
202
+ side?: PopoverPrimitive.PopoverContentProps["side"];
203
+ alignOffset?: number | undefined;
204
+ sideOffset?: number | undefined;
205
+ onOpenAutoFocus?: (e: Event) => void;
206
+ onCloseAutoFocus?: (e: Event) => void;
207
+ };
208
+ declare const Popover: {
209
+ ({ trigger, children, open, onOpenChange, contentClassName, asChild, align, side, alignOffset, sideOffset, onOpenAutoFocus, onCloseAutoFocus, ...props }: React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> & PopoverPropsType): react_jsx_runtime.JSX.Element;
210
+ displayName: string | undefined;
211
+ };
212
+
213
+ export { Button, Country, Dialog, FlagComponent, FormLabel, Input, Loader, OTPInput, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverRoot, PopoverTrigger, Select, Textarea };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var Pt=Object.create;var de=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var xt=Object.getOwnPropertyNames;var wt=Object.getPrototypeOf,Rt=Object.prototype.hasOwnProperty;var kt=(e,t)=>{for(var r in t)de(e,r,{get:t[r],enumerable:!0})},Ie=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of xt(t))!Rt.call(e,n)&&n!==r&&de(e,n,{get:()=>t[n],enumerable:!(a=Nt(t,n))||a.enumerable});return e};var y=(e,t,r)=>(r=e!=null?Pt(wt(e)):{},Ie(t||!e||!e.__esModule?de(r,"default",{value:e,enumerable:!0}):r,e)),Dt=e=>Ie(de({},"__esModule",{value:!0}),e);var Bt={};kt(Bt,{Button:()=>he,Country:()=>gt,Dialog:()=>pe,FlagComponent:()=>F,FormLabel:()=>x,Input:()=>$,Loader:()=>Z,OTPInput:()=>vt,PasswordInput:()=>xe,PhoneInput:()=>Le,Select:()=>dt,Textarea:()=>we});module.exports=Dt(Bt);var Ve=y(require("react"));var Ee=y(require("react")),ge=y(require("@radix-ui/react-label")),Te=require("class-variance-authority");var Ae=require("clsx"),Fe=require("tailwind-merge");function o(...e){return(0,Fe.twMerge)((0,Ae.clsx)(e))}var Me=require("react/jsx-runtime"),Lt=(0,Te.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ce=Ee.forwardRef(({className:e,...t},r)=>(0,Me.jsx)(ge.Root,{ref:r,className:o(Lt(),e),...t}));Ce.displayName=ge.Root.displayName;var K=require("react/jsx-runtime"),x=Ve.default.forwardRef(({className:e,children:t,showAsterisk:r,error:a,...n},l)=>(0,K.jsx)(Ce,{ref:l,className:o(a&&"text-red-500",e),...n,children:r?(0,K.jsxs)("p",{children:[t,(0,K.jsx)("span",{className:"text-red-500",children:"*"})]}):t}));x.displayName="FormLabel";var U=require("react/jsx-runtime"),Z=({size:e=16,colour:t="primary"})=>(0,U.jsxs)("svg",{className:"animate-spin",width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:[(0,U.jsx)("circle",{cx:"10",cy:"10",r:"9.25",stroke:"transparent",strokeWidth:"1.5"}),(0,U.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 Oe=y(require("react")),We=require("@radix-ui/react-slot"),He=require("class-variance-authority");var k=require("react/jsx-runtime"),St=(0,He.cva)("overflow-hidden isolate relative 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] text-[0.75rem] leading-[1rem] font-medium 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"}}),he=({className:e,variant:t="primary",size:r,asChild:a=!1,isLoading:n=!1,leftNode:l,rightNode:c,LoaderSize:i,ref:C,...u})=>{let s=a?We.Slot:"button",{children:p,disabled:N,...v}=u,W=Oe.useRef(null);return(0,k.jsx)(s,{className:o(St({variant:t,size:r,className:e})),ref:W||C,disabled:N||n,...v,children:(0,k.jsx)("div",{className:"flex font-medium justify-center items-center gap-2",children:n?(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("span",{className:"mx-auto",children:(0,k.jsx)(Z,{size:i,colour:"secondary"})})}):(0,k.jsxs)(k.Fragment,{children:[l,p,c]})})})};he.displayName="Button";var ce=require("class-variance-authority");var Be=y(require("react")),Ge=require("react/jsx-runtime"),D=Be.default.forwardRef(({className:e,children:t,error:r,...a},n)=>{let l=r??t;return l?(0,Ge.jsx)("p",{ref:n,className:o("text-xs font-normal text-[#F04248]",e),...a,children:l}):null});D.displayName="ErrorMessage";var _e=y(require("react")),ze=require("react/jsx-runtime"),L=_e.default.forwardRef(({className:e,...t},r)=>(0,ze.jsx)("p",{ref:r,className:o("text-sm text-[#8E98A8",e),...t}));L.displayName="FormDescription";var S=require("react/jsx-runtime"),be=(0,ce.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:""}},defaultVariants:{status:"default"}}),Xe=({className:e,status:t,type:r,ref:a,...n})=>(0,S.jsx)("input",{type:r,className:o(be({status:t}),e),ref:a,...n});Xe.displayName="BaseInnerInput";var A=(0,ce.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]"}},defaultVariants:{status:"default"}}),Ze=(0,ce.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] 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: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]"}},defaultVariants:{status:"default",side:"left"}}),$=({className:e,status:t="default",disabled:r,error:a,isLoading:n,sideNodeClassName:l,showAsterisk:c,label:i,description:C,ref:u,...s})=>{let p=t;return a&&(p="error"),n&&(p="loading"),r&&(p="prefilled"),(0,S.jsxs)("div",{className:"relative space-y-1 w-full",children:[(0,S.jsx)(x,{showAsterisk:c,error:a,children:i}),(0,S.jsxs)("div",{className:o(A({status:p}),s.leftNode||s.rightNode?"p-0":"",e),children:[s.leftNode?(0,S.jsx)("div",{className:o(Ze({status:p,side:"left"}),l),children:s.leftNode}):null,(0,S.jsx)(Xe,{ref:u,disabled:n||r,className:s.leftNode||s.rightNode?"!px-3 !py-2":"",...s}),s.rightNode?(0,S.jsx)("div",{className:o(Ze({status:p,side:"right"}),l),children:s.rightNode}):null]}),(0,S.jsx)(L,{className:"text-gray-400 text-sm !font-normal",children:C}),(0,S.jsx)(D,{error:a})]})};$.displayName="Input";var Ne=require("react");var q=require("react/jsx-runtime"),Ke=()=>(0,q.jsxs)("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,q.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,q.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 j=require("react/jsx-runtime"),Ue=()=>(0,j.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,j.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,j.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 ve=require("react/jsx-runtime"),$e=()=>(0,ve.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ve.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 Pe=require("react/jsx-runtime"),qe=()=>(0,Pe.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pe.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 w=require("react/jsx-runtime"),je=[{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,...r})=>{let[a,n]=(0,Ne.useState)(!1),[l,c]=(0,Ne.useState)(je),i=s=>je.map(p=>({...p,validated:p.RegExp.test(s)})),C=s=>{let p=i(s),N=p.every(v=>v.validated);return c(p),N};return(0,w.jsx)($,{sideNodeClassName:"!border-l-0",rightNode:a?(0,w.jsx)("button",{type:"button",onClick:()=>n(s=>!s),children:(0,w.jsx)(Ke,{})}):(0,w.jsx)("button",{type:"button",onClick:()=>n(s=>!s),children:(0,w.jsx)(Ue,{})}),type:a?"text":"password",onChange:s=>{t&&t(s);let p=s?.target?.value,N=C(p);e&&e(N,p)},description:(0,w.jsx)("div",{className:"flex items-center gap-2",children:l?.map(s=>(0,w.jsxs)("div",{className:o("text-xs flex items-center gap-0.5",{"text-[#62C554]":s?.validated,"text-[#8E98A8]":!s?.validated}),children:[(0,w.jsx)("span",{className:"",children:s?.validated?(0,w.jsx)($e,{}):(0,w.jsx)(qe,{})}),(0,w.jsx)("span",{className:"",children:s?.label})]},s?.key))}),...r})};xe.displayName="PasswordInput";var Je=require("class-variance-authority");var H=require("react/jsx-runtime"),wr=(0,Je.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]"}},defaultVariants:{status:"default"}}),we=({className:e,status:t="default",disabled:r,error:a,isLoading:n,showAsterisk:l,label:c,description:i,...C})=>{let u=t;return a&&(u="error"),n&&(u="loading"),r&&(u="prefilled"),(0,H.jsxs)("div",{className:"relative space-y-1",children:[(0,H.jsx)(x,{showAsterisk:l,error:a,children:c}),(0,H.jsx)("textarea",{className:o("min-h-[80px]",A({status:u}),e),disabled:n||r,...C}),(0,H.jsx)(L,{className:"text-gray-400 text-sm !font-normal",children:i}),(0,H.jsx)(D,{error:a})]})};we.displayName="Textarea";var G=y(require("react"));var E=y(require("react")),b=require("cmdk"),nt=require("lucide-react");var Q=y(require("react")),f=y(require("@radix-ui/react-dialog"));var J=require("react/jsx-runtime"),Qe=()=>(0,J.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,J.jsx)("path",{d:"M18 6 6 18"}),(0,J.jsx)("path",{d:"m6 6 12 12"})]});var m=require("react/jsx-runtime"),It=f.Root,At=f.Trigger,Ye=f.Portal,et=Q.forwardRef(({className:e,...t},r)=>(0,m.jsx)(f.Overlay,{ref:r,className:o("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=f.Overlay.displayName;var Re=Q.forwardRef(({className:e,hideCloseButton:t,children:r,...a},n)=>(0,m.jsxs)(Ye,{children:[(0,m.jsx)(et,{}),(0,m.jsxs)(f.Content,{ref:n,className:o("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,m.jsxs)(f.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,m.jsx)(Qe,{}),(0,m.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Re.displayName=f.Content.displayName;var tt=({className:e,...t})=>(0,m.jsx)("div",{className:o("flex flex-col space-y-1.5 text-left",e),...t});tt.displayName="DialogHeader";var rt=({className:e,...t})=>(0,m.jsx)("div",{className:o("flex flex-row justify-end sm:space-x-2",e),...t});rt.displayName="DialogFooter";var ot=Q.forwardRef(({className:e,...t},r)=>(0,m.jsx)(f.Title,{ref:r,className:o("text-xl font-semibold leading-none tracking-tight",e),...t}));ot.displayName=f.Title.displayName;var at=Q.forwardRef(({className:e,...t},r)=>(0,m.jsx)(f.Description,{ref:r,className:o("text-sm text-gray-500",e),...t}));at.displayName=f.Description.displayName;var pe=({trigger:e=void 0,children:t,open:r,onOpenChange:a,hideCloseButton:n,footer:l,title:c,description:i,contentClassName:C,headerClassName:u,titleClassName:s,descriptionClassName:p,footerClassName:N,asChild:v=!0,onOpenAutoFocus:W,onCloseAutoFocus:ue,onEscapeKeyDown:le,onInteractOutside:_,onPointerDownOutside:fe,...ye})=>(0,m.jsxs)(It,{...ye,open:r,onOpenChange:a,children:[(0,m.jsx)(At,{asChild:v,children:e}),(0,m.jsx)(Ye,{children:(0,m.jsxs)(Re,{className:C,hideCloseButton:n,onOpenAutoFocus:W,onCloseAutoFocus:ue,onEscapeKeyDown:le,onPointerDownOutside:fe,onInteractOutside:_,children:[c||i?(0,m.jsxs)(tt,{className:u,children:[c&&(0,m.jsx)(ot,{className:s,children:c}),i&&(0,m.jsx)(at,{className:p,children:i})]}):(0,m.jsx)(m.Fragment,{}),t,l&&(0,m.jsx)(rt,{className:N,children:l})]})})]});pe.displayName=f.Dialog.displayName;var P=require("react/jsx-runtime"),Y=E.forwardRef(({className:e,...t},r)=>(0,P.jsx)(b.Command,{ref:r,className:o("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Y.displayName=b.Command.displayName;var ee=E.forwardRef(({className:e,CommandInputContainerClassName:t,loading:r,...a},n)=>(0,P.jsxs)("div",{className:o("flex items-center border-0 px-3 gap-2",t),"cmdk-input-wrapper":"",children:[r?(0,P.jsx)(Z,{size:16,colour:"secondary"}):(0,P.jsx)(nt.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,P.jsx)(b.Command.Input,{ref:n,className:o("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})]}));ee.displayName=b.Command.Input.displayName;var te=E.forwardRef(({className:e,...t},r)=>(0,P.jsx)(b.Command.List,{ref:r,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));te.displayName=b.Command.List.displayName;var re=E.forwardRef((e,t)=>(0,P.jsx)(b.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));re.displayName=b.Command.Empty.displayName;var oe=E.forwardRef(({className:e,...t},r)=>(0,P.jsx)(b.Command.Group,{ref:r,className:o("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}));oe.displayName=b.Command.Group.displayName;var Ft=E.forwardRef(({className:e,...t},r)=>(0,P.jsx)(b.Command.Separator,{ref:r,className:o("-mx-1 h-px bg-border",e),...t}));Ft.displayName=b.Command.Separator.displayName;var ae=E.forwardRef(({className:e,...t},r)=>(0,P.jsx)(b.Command.Item,{ref:r,className:o("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}));ae.displayName=b.Command.Item.displayName;var Et=({className:e,...t})=>(0,P.jsx)("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Et.displayName="CommandShortcut";var it=y(require("react")),I=y(require("@radix-ui/react-popover"));var T=require("react/jsx-runtime"),ne=I.Root,B=I.Trigger,X=it.forwardRef(({className:e,align:t="center",sideOffset:r=4,portal:a=!0,...n},l)=>a?(0,T.jsx)(I.Portal,{children:(0,T.jsx)(I.Content,{ref:l,align:t,sideOffset:r,className:o("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:n.onOpenAutoFocus,onCloseAutoFocus:n.onCloseAutoFocus,...n})}):(0,T.jsx)(I.Content,{ref:l,align:t,sideOffset:r,className:o("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:n.onOpenAutoFocus,onCloseAutoFocus:n.onCloseAutoFocus,...n}));X.displayName=I.Content.displayName;var Tt=({trigger:e,children:t,open:r,onOpenChange:a,contentClassName:n,asChild:l=!0,align:c,side:i,alignOffset:C,sideOffset:u,onOpenAutoFocus:s,onCloseAutoFocus:p,...N})=>(0,T.jsxs)(ne,{...N,open:r,onOpenChange:a,children:[(0,T.jsx)(B,{asChild:l,children:e}),(0,T.jsx)(X,{alignOffset:C,sideOffset:u,side:i,align:c,className:n,onOpenAutoFocus:s,onCloseAutoFocus:p,children:t})]});Tt.displayName=I.Root.displayName;var ke=y(require("react")),R=y(require("@radix-ui/react-scroll-area"));var M=require("react/jsx-runtime"),ie=ke.forwardRef(({className:e,children:t,...r},a)=>(0,M.jsxs)(R.Root,{ref:a,className:o("relative overflow-hidden",e),...r,children:[(0,M.jsx)(R.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,M.jsx)(st,{}),(0,M.jsx)(R.Corner,{})]}));ie.displayName=R.Root.displayName;var st=ke.forwardRef(({className:e,orientation:t="vertical",...r},a)=>(0,M.jsx)(R.ScrollAreaScrollbar,{ref:a,orientation:t,className:o("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,M.jsx)(R.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));st.displayName=R.ScrollAreaScrollbar.displayName;var h=require("react/jsx-runtime"),lt=({className:e,value:t,placeholder:r="",status:a,disabled:n})=>(0,h.jsx)(B,{asChild:!0,disabled:n,children:(0,h.jsxs)("button",{disabled:n,className:o(A({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,h.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:(0,h.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"})})]})}),me=({options:e=[],value:t,onChange:r,containerClassName:a,placeholder:n,disabled:l,loading:c,optionComponent:i,children:C,modal:u=!1,hideSearch:s,className:p,inputValue:N,onValueChange:v,onInputValueChange:W})=>{let[ue,le]=G.useState(!1),_=G.useRef(null),[fe,ye]=G.useState(void 0);return G.useLayoutEffect(()=>{_.current&&ye(_.current.clientWidth)},[_.current]),(0,h.jsxs)(ne,{modal:u,open:ue,onOpenChange:le,children:[(0,h.jsx)("div",{className:o("w-full",p),ref:_,children:C}),(0,h.jsx)(X,{portal:!u,className:"p-0 min-w-[200px]",style:{width:fe},children:(0,h.jsxs)(Y,{className:"max-h-[270px] relative",children:[!s&&(0,h.jsx)(ee,{loading:c,placeholder:n??"Search options...",onValueChange:W,value:N,CommandInputContainerClassName:"mx-3 border rounded-md border-[#DEDEDE]"}),(0,h.jsx)(ie,{className:o("w-full px-0 h-full overflow-y-auto",a),children:(0,h.jsxs)(te,{children:[!s&&(0,h.jsx)(re,{children:"No result found."}),(0,h.jsx)(oe,{className:"w-full",children:e?.map(z=>(0,h.jsx)(ae,{defaultValue:t?.label,value:z.label,disabled:l,onSelect:()=>{r(z),le(!1),v?.(z?.value)},children:i?i(z):z.label},z.value))})]})})]})})]})};var V=require("react/jsx-runtime"),dt=({showAsterisk:e,label:t,description:r,error:a,hideSearch:n=!0,status:l,...c})=>(0,V.jsxs)("div",{className:"relative space-y-1",children:[(0,V.jsx)(x,{showAsterisk:e,error:a,children:t}),(0,V.jsx)(me,{hideSearch:n,...c,containerClassName:"max-h-[700px] h-full",children:(0,V.jsx)(lt,{disabled:c?.disabled,placeholder:"Select or search email",status:l,value:c?.value?.label??c?.value?.value})}),(0,V.jsx)(L,{className:"text-gray-400 text-sm !font-normal",children:r}),(0,V.jsx)(D,{error:a})]});var De=[{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"}],ct=()=>{let e={};return De?.forEach(t=>{e[t?.internetCountryCode]=t?.countryName}),e};var se=y(require("react")),mt=y(require("react-phone-number-input")),ut=y(require("react-phone-number-input")),ft=y(require("react-phone-number-input/flags"));var O=require("react/jsx-runtime"),Mt=e=>(0,O.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,O.jsx)("rect",{width:"32",height:"32",fill:"#60A5FA"})," ",(0,O.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,O.jsx)("rect",{x:"2",y:"28",width:"28",height:"3",fill:"#D1D5DB"}),(0,O.jsx)("path",{d:"M0 16H32M8 0V32M16 0V32M24 0V32",stroke:"#2563EB",strokeWidth:"0.5",vectorEffect:"non-scaling-stroke"}),(0,O.jsx)("path",{d:"M0 16H32",stroke:"#2563EB",strokeWidth:"1",vectorEffect:"non-scaling-stroke"})]}),pt=Mt;var d=require("react/jsx-runtime"),Le=se.forwardRef(({className:e,onChange:t,value:r,modal:a,showAsterisk:n,label:l,description:c,error:i,defaultCountry:C="NG",...u},s)=>{let p=v=>(0,d.jsx)(Vt,{...v,status:u.status,modal:a,onChange:W=>v.onChange(W)}),N=r;return(0,d.jsxs)("div",{className:"relative space-y-1",children:[(0,d.jsx)(x,{showAsterisk:n,error:i,children:l}),(0,d.jsx)(ut.default,{ref:s,className:o("flex",e),flagComponent:F,countrySelectComponent:p,focusInputOnCountrySelection:!0,countryCallingCodeEditable:!0,enableLongNumber:!0,addInternationalOption:!0,international:!0,inputComponent:yt,defaultCountry:C,containerComponent:({children:v})=>(0,d.jsx)("div",{className:o(A({status:u?.status}),"p-0 gap-1"),children:v}),...u,onChange:v=>{t&&t(v)},value:N}),(0,d.jsx)(L,{className:"text-gray-400 text-sm !font-normal",children:c}),(0,d.jsx)(D,{error:i})]})});Le.displayName="PhoneInput";var yt=se.forwardRef(({className:e,...t},r)=>(0,d.jsx)("input",{className:o(be({status:t?.status})," h-full !-mt-0 border-0 rounded-l-none !flex-1 !block !w-full",e),...t,ref:r}));yt.displayName="InputComponent";var Vt=({disabled:e,value:t,onChange:r,options:a,status:n,modal:l})=>{let c=se.useCallback(i=>{console.log(i),r(i)},[r]);return(0,d.jsxs)(ne,{modal:l,children:[(0,d.jsx)(B,{disabled:e,children:(0,d.jsxs)("div",{className:o(A({status:n}),"!border-0 transition justify-center items-center disabled:text-base-500 flex gap-3 h-full rounded-e-none pl-2 pr-2"),children:[(0,d.jsx)(F,{country:t,countryName:t}),(0,d.jsx)("svg",{className:o("-mr-2 h-4 w-4 opacity-50",e?"hidden":"opacity-100"),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,d.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,d.jsx)(X,{portal:!l,className:"w-[200px] md:w-[300px] p-0",children:(0,d.jsx)(Y,{children:(0,d.jsx)(te,{children:(0,d.jsxs)(ie,{className:"h-72",children:[(0,d.jsx)(ee,{placeholder:"Search country..."}),(0,d.jsx)(re,{children:"No country found."}),(0,d.jsx)(oe,{children:a.filter(i=>i.value).map(i=>(0,d.jsxs)(ae,{className:"gap-2",onSelect:()=>c(i.value),children:[(0,d.jsx)(F,{country:i.value,countryName:i.label}),(0,d.jsx)("span",{className:"flex-1 text-sm",children:i.label}),i.value&&(0,d.jsx)("span",{className:"text-[#191919]/50 text-sm dark:text-white",children:`+${mt.getCountryCallingCode(i.value)}`}),(0,d.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:o("ml-auto",i.value===t?"opacity-100":"opacity-0"),children:(0,d.jsx)("path",{d:"M4 8.00008L6.66353 10.6636L12 5.33655",stroke:"#959595",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"})})]},`${i.value}-${i.label}`))})]})})})})]})},F=({country:e,countryName:t,className:r})=>{let a=ft.default[e];return e==="GLOBAL"?(0,d.jsx)("span",{className:o("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:(0,d.jsx)(pt,{className:"w-full h-[90%]"})}):(0,d.jsx)("span",{className:o("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:a&&(0,d.jsx)(a,{title:t})})};F.displayName="FlagComponent";var g=require("react/jsx-runtime"),Ot=ct(),Wt=({className:e,value:t,placeholder:r="",status:a,disabled:n})=>(0,g.jsx)(B,{asChild:!0,disabled:n,children:(0,g.jsxs)("button",{disabled:n,className:o(A({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,g.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,g.jsx)(F,{country:t,countryName:t,className:"ml-1 !w-6 h-5"}),(0,g.jsxs)("span",{className:"",children:[" ",Ot[t]]})]}):r??"Select options...",(0,g.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:(0,g.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:e=!0,showAsterisk:t,label:r,description:a,error:n,...l})=>{let c=De?.map(i=>({value:i?.internetCountryCode,label:i?.countryName,...i}));return(0,g.jsxs)("div",{className:"relative space-y-1",children:[(0,g.jsx)(x,{showAsterisk:t,error:n,children:r}),(0,g.jsx)(me,{options:c,hideSearch:e,optionComponent:i=>(0,g.jsxs)("div",{className:"w-full flex items-center gap-2",children:[(0,g.jsx)(F,{country:i?.internetCountryCode,countryName:i?.label,className:"ml-2 !w-6 !h-5"}),(0,g.jsx)("span",{className:"flex-1 text-sm",children:i?.label})]}),...l,children:(0,g.jsx)(Wt,{value:l?.value?.value,status:l?.status,placeholder:l?.placeholder??" Select Country"})}),(0,g.jsx)(L,{className:"text-gray-400 text-sm !font-normal",children:a}),(0,g.jsx)(D,{error:n})]})};var Ct=y(require("react-otp-input"));var ht=require("class-variance-authority"),bt=require("react"),Se=require("react/jsx-runtime"),Ht=(0,ht.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"}}),vt=({numInputs:e=4,inputStyle:t,containerStyle:r,placeholder:a="-",status:n,...l})=>{let c=(0,bt.useMemo)(()=>a||new Array(e).fill("").reduce((u,s)=>u+=s,""),[e,a]);return(0,Se.jsx)(Ct.default,{numInputs:e,placeholder:c,containerStyle:o("w-full",r),inputStyle:o(Ht({status:n}),t),renderInput:i=>(0,Se.jsx)("input",{...i}),...l})};0&&(module.exports={Button,Country,Dialog,FlagComponent,FormLabel,Input,Loader,OTPInput,PasswordInput,PhoneInput,Select,Textarea});
1
+ "use strict";var Nt=Object.create;var ce=Object.defineProperty;var xt=Object.getOwnPropertyDescriptor;var Rt=Object.getOwnPropertyNames;var wt=Object.getPrototypeOf,kt=Object.prototype.hasOwnProperty;var Dt=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},Ae=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Rt(t))!kt.call(e,n)&&n!==r&&ce(e,n,{get:()=>t[n],enumerable:!(a=xt(t,n))||a.enumerable});return e};var y=(e,t,r)=>(r=e!=null?Nt(wt(e)):{},Ae(t||!e||!e.__esModule?ce(r,"default",{value:e,enumerable:!0}):r,e)),Lt=e=>Ae(ce({},"__esModule",{value:!0}),e);var Bt={};Dt(Bt,{Button:()=>be,Country:()=>Ct,Dialog:()=>me,FlagComponent:()=>T,FormLabel:()=>x,Input:()=>q,Loader:()=>K,OTPInput:()=>Pt,PasswordInput:()=>xe,PhoneInput:()=>Se,Popover:()=>ke,PopoverContent:()=>O,PopoverRoot:()=>_,PopoverTrigger:()=>E,Select:()=>ct,Textarea:()=>Re});module.exports=Lt(Bt);var Oe=y(require("react"));var Te=y(require("react")),Ce=y(require("@radix-ui/react-label")),Me=require("class-variance-authority");var Fe=require("clsx"),Ee=require("tailwind-merge");function o(...e){return(0,Ee.twMerge)((0,Fe.clsx)(e))}var Ve=require("react/jsx-runtime"),St=(0,Me.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),he=Te.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(Ce.Root,{ref:r,className:o(St(),e),...t}));he.displayName=Ce.Root.displayName;var U=require("react/jsx-runtime"),x=Oe.default.forwardRef(({className:e,children:t,showAsterisk:r,error:a,...n},s)=>(0,U.jsx)(he,{ref:s,className:o(a&&"text-red-500",e),...n,children:r?(0,U.jsxs)("p",{children:[t,(0,U.jsx)("span",{className:"text-red-500",children:"*"})]}):t}));x.displayName="FormLabel";var $=require("react/jsx-runtime"),K=({size:e=16,colour:t="primary"})=>(0,$.jsxs)("svg",{className:"animate-spin",width:e,height:e,viewBox:"0 0 20 20",fill:"none",children:[(0,$.jsx)("circle",{cx:"10",cy:"10",r:"9.25",stroke:"transparent",strokeWidth:"1.5"}),(0,$.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 We=y(require("react")),He=require("@radix-ui/react-slot"),Be=require("class-variance-authority");var k=require("react/jsx-runtime"),It=(0,Be.cva)("overflow-hidden isolate relative 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] text-[0.75rem] leading-[1rem] font-medium 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"}}),be=({className:e,variant:t="primary",size:r,asChild:a=!1,isLoading:n=!1,leftNode:s,rightNode:c,LoaderSize:i,ref:h,...u})=>{let p=a?He.Slot:"button",{children:l,disabled:g,...b}=u,F=We.useRef(null);return(0,k.jsx)(p,{className:o(It({variant:t,size:r,className:e})),ref:F||h,disabled:g||n,...b,children:(0,k.jsx)("div",{className:"flex font-medium justify-center items-center gap-2",children:n?(0,k.jsx)(k.Fragment,{children:(0,k.jsx)("span",{className:"mx-auto",children:(0,k.jsx)(K,{size:i,colour:"secondary"})})}):(0,k.jsxs)(k.Fragment,{children:[s,l,c]})})})};be.displayName="Button";var pe=require("class-variance-authority");var Ge=y(require("react")),_e=require("react/jsx-runtime"),D=Ge.default.forwardRef(({className:e,children:t,error:r,...a},n)=>{let s=r??t;return s?(0,_e.jsx)("p",{ref:n,className:o("text-xs font-normal text-[#F04248]",e),...a,children:s}):null});D.displayName="ErrorMessage";var ze=y(require("react")),Ze=require("react/jsx-runtime"),L=ze.default.forwardRef(({className:e,...t},r)=>(0,Ze.jsx)("div",{ref:r,className:o("text-sm text-[#8E98A8",e),...t}));L.displayName="FormDescription";var S=require("react/jsx-runtime"),ve=(0,pe.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:""}},defaultVariants:{status:"default"}}),Ke=({className:e,status:t,type:r,ref:a,...n})=>(0,S.jsx)("input",{type:r,className:o(ve({status:t}),e),ref:a,...n});Ke.displayName="BaseInnerInput";var A=(0,pe.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]"}},defaultVariants:{status:"default"}}),Xe=(0,pe.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] 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: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]"}},defaultVariants:{status:"default",side:"left"}}),q=({className:e,status:t="default",disabled:r,error:a,isLoading:n,sideNodeClassName:s,showAsterisk:c,label:i,description:h,ref:u,...p})=>{let l=t;return a&&(l="error"),n&&(l="loading"),r&&(l="prefilled"),(0,S.jsxs)("div",{className:"relative space-y-1 w-full",children:[(0,S.jsx)(x,{showAsterisk:c,error:a,children:i}),(0,S.jsxs)("div",{className:o(A({status:l}),p.leftNode||p.rightNode?"p-0":"",e),children:[p.leftNode?(0,S.jsx)("div",{className:o(Xe({status:l,side:"left"}),s),children:p.leftNode}):null,(0,S.jsx)(Ke,{ref:u,disabled:n||r,className:p.leftNode||p.rightNode?"!px-3 !py-2":"",...p}),p.rightNode?(0,S.jsx)("div",{className:o(Xe({status:l,side:"right"}),s),children:p.rightNode}):null]}),h&&(0,S.jsx)(L,{className:"text-gray-400 text-sm !font-normal",children:h}),(0,S.jsx)(D,{error:a})]})};q.displayName="Input";var Q=require("react");var j=require("react/jsx-runtime"),Ue=()=>(0,j.jsxs)("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,j.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,j.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 J=require("react/jsx-runtime"),$e=()=>(0,J.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,J.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,J.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 Pe=require("react/jsx-runtime"),qe=()=>(0,Pe.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Pe.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 Ne=require("react/jsx-runtime"),je=()=>(0,Ne.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Ne.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 R=require("react/jsx-runtime"),Je=[{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,...r})=>{let[a,n]=(0,Q.useState)(!1),[s,c]=(0,Q.useState)(Je),i=l=>Je.map(g=>({...g,validated:g.RegExp.test(l)})),h=l=>{let g=i(l),b=g.every(F=>F.validated);return c(g),b},u=l=>{t&&t(l);let g=l?.target?.value,b=h(g);e&&e(b,g)},p=(0,Q.useMemo)(()=>(0,R.jsx)("div",{className:"flex items-center gap-2",children:s?.map(l=>(0,R.jsxs)("div",{className:o("text-xs flex items-center gap-0.5",{"text-[#62C554]":l?.validated,"text-[#8E98A8]":!l?.validated}),children:[(0,R.jsx)("span",{className:"",children:l?.validated?(0,R.jsx)(qe,{}):(0,R.jsx)(je,{})}),(0,R.jsx)("span",{className:"",children:l?.label})]},l?.key))}),[s]);return(0,R.jsx)(q,{sideNodeClassName:"!border-l-0",rightNode:a?(0,R.jsx)("button",{type:"button",onClick:()=>n(l=>!l),children:(0,R.jsx)(Ue,{})}):(0,R.jsx)("button",{type:"button",onClick:()=>n(l=>!l),children:(0,R.jsx)($e,{})}),type:a?"text":"password",onChange:u,description:p,...r})};xe.displayName="PasswordInput";var Qe=require("class-variance-authority");var G=require("react/jsx-runtime"),Rr=(0,Qe.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]"}},defaultVariants:{status:"default"}}),Re=({className:e,status:t="default",disabled:r,error:a,isLoading:n,showAsterisk:s,label:c,description:i,...h})=>{let u=t;return a&&(u="error"),n&&(u="loading"),r&&(u="prefilled"),(0,G.jsxs)("div",{className:"relative space-y-1",children:[(0,G.jsx)(x,{showAsterisk:s,error:a,children:c}),(0,G.jsx)("textarea",{className:o("min-h-[80px]",A({status:u}),e),disabled:n||r,...h}),(0,G.jsx)(L,{className:"text-gray-400 text-sm !font-normal",children:i}),(0,G.jsx)(D,{error:a})]})};Re.displayName="Textarea";var z=y(require("react"));var M=y(require("react")),P=require("cmdk"),it=require("lucide-react");var ee=y(require("react")),f=y(require("@radix-ui/react-dialog"));var Y=require("react/jsx-runtime"),Ye=()=>(0,Y.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,Y.jsx)("path",{d:"M18 6 6 18"}),(0,Y.jsx)("path",{d:"m6 6 12 12"})]});var m=require("react/jsx-runtime"),At=f.Root,Ft=f.Trigger,et=f.Portal,tt=ee.forwardRef(({className:e,...t},r)=>(0,m.jsx)(f.Overlay,{ref:r,className:o("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}));tt.displayName=f.Overlay.displayName;var we=ee.forwardRef(({className:e,hideCloseButton:t,children:r,...a},n)=>(0,m.jsxs)(et,{children:[(0,m.jsx)(tt,{}),(0,m.jsxs)(f.Content,{ref:n,className:o("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,m.jsxs)(f.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,m.jsx)(Ye,{}),(0,m.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));we.displayName=f.Content.displayName;var rt=({className:e,...t})=>(0,m.jsx)("div",{className:o("flex flex-col space-y-1.5 text-left",e),...t});rt.displayName="DialogHeader";var ot=({className:e,...t})=>(0,m.jsx)("div",{className:o("flex flex-row justify-end sm:space-x-2",e),...t});ot.displayName="DialogFooter";var at=ee.forwardRef(({className:e,...t},r)=>(0,m.jsx)(f.Title,{ref:r,className:o("text-xl font-semibold leading-none tracking-tight",e),...t}));at.displayName=f.Title.displayName;var nt=ee.forwardRef(({className:e,...t},r)=>(0,m.jsx)(f.Description,{ref:r,className:o("text-sm text-gray-500",e),...t}));nt.displayName=f.Description.displayName;var me=({trigger:e=void 0,children:t,open:r,onOpenChange:a,hideCloseButton:n,footer:s,title:c,description:i,contentClassName:h,headerClassName:u,titleClassName:p,descriptionClassName:l,footerClassName:g,asChild:b=!0,onOpenAutoFocus:F,onCloseAutoFocus:fe,onEscapeKeyDown:de,onInteractOutside:Z,onPointerDownOutside:ye,...ge})=>(0,m.jsxs)(At,{...ge,open:r,onOpenChange:a,children:[(0,m.jsx)(Ft,{asChild:b,children:e}),(0,m.jsx)(et,{children:(0,m.jsxs)(we,{className:h,hideCloseButton:n,onOpenAutoFocus:F,onCloseAutoFocus:fe,onEscapeKeyDown:de,onPointerDownOutside:ye,onInteractOutside:Z,children:[c||i?(0,m.jsxs)(rt,{className:u,children:[c&&(0,m.jsx)(at,{className:p,children:c}),i&&(0,m.jsx)(nt,{className:l,children:i})]}):(0,m.jsx)(m.Fragment,{}),t,s&&(0,m.jsx)(ot,{className:g,children:s})]})})]});me.displayName=f.Dialog.displayName;var N=require("react/jsx-runtime"),te=M.forwardRef(({className:e,...t},r)=>(0,N.jsx)(P.Command,{ref:r,className:o("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));te.displayName=P.Command.displayName;var re=M.forwardRef(({className:e,CommandInputContainerClassName:t,loading:r,...a},n)=>(0,N.jsxs)("div",{className:o("flex items-center border-0 px-3 gap-2",t),"cmdk-input-wrapper":"",children:[r?(0,N.jsx)(K,{size:16,colour:"secondary"}):(0,N.jsx)(it.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,N.jsx)(P.Command.Input,{ref:n,className:o("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})]}));re.displayName=P.Command.Input.displayName;var oe=M.forwardRef(({className:e,...t},r)=>(0,N.jsx)(P.Command.List,{ref:r,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));oe.displayName=P.Command.List.displayName;var ae=M.forwardRef((e,t)=>(0,N.jsx)(P.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ae.displayName=P.Command.Empty.displayName;var ne=M.forwardRef(({className:e,...t},r)=>(0,N.jsx)(P.Command.Group,{ref:r,className:o("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}));ne.displayName=P.Command.Group.displayName;var Et=M.forwardRef(({className:e,...t},r)=>(0,N.jsx)(P.Command.Separator,{ref:r,className:o("-mx-1 h-px bg-border",e),...t}));Et.displayName=P.Command.Separator.displayName;var ie=M.forwardRef(({className:e,...t},r)=>(0,N.jsx)(P.Command.Item,{ref:r,className:o("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}));ie.displayName=P.Command.Item.displayName;var Tt=({className:e,...t})=>(0,N.jsx)("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Tt.displayName="CommandShortcut";var st=y(require("react")),I=y(require("@radix-ui/react-popover"));var V=require("react/jsx-runtime"),_=I.Root,E=I.Trigger,O=st.forwardRef(({className:e,align:t="center",sideOffset:r=4,portal:a=!0,...n},s)=>a?(0,V.jsx)(I.Portal,{children:(0,V.jsx)(I.Content,{ref:s,align:t,sideOffset:r,className:o("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:n.onOpenAutoFocus,onCloseAutoFocus:n.onCloseAutoFocus,...n})}):(0,V.jsx)(I.Content,{ref:s,align:t,sideOffset:r,className:o("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:n.onOpenAutoFocus,onCloseAutoFocus:n.onCloseAutoFocus,...n}));O.displayName=I.Content.displayName;var ke=({trigger:e,children:t,open:r,onOpenChange:a,contentClassName:n,asChild:s=!0,align:c,side:i,alignOffset:h,sideOffset:u,onOpenAutoFocus:p,onCloseAutoFocus:l,...g})=>(0,V.jsxs)(_,{...g,open:r,onOpenChange:a,children:[(0,V.jsx)(E,{asChild:s,children:e}),(0,V.jsx)(O,{alignOffset:h,sideOffset:u,side:i,align:c,className:n,onOpenAutoFocus:p,onCloseAutoFocus:l,children:t})]});ke.displayName=I.Root.displayName;var De=y(require("react")),w=y(require("@radix-ui/react-scroll-area"));var W=require("react/jsx-runtime"),se=De.forwardRef(({className:e,children:t,...r},a)=>(0,W.jsxs)(w.Root,{ref:a,className:o("relative overflow-hidden",e),...r,children:[(0,W.jsx)(w.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,W.jsx)(lt,{}),(0,W.jsx)(w.Corner,{})]}));se.displayName=w.Root.displayName;var lt=De.forwardRef(({className:e,orientation:t="vertical",...r},a)=>(0,W.jsx)(w.ScrollAreaScrollbar,{ref:a,orientation:t,className:o("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,W.jsx)(w.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));lt.displayName=w.ScrollAreaScrollbar.displayName;var v=require("react/jsx-runtime"),dt=({className:e,value:t,placeholder:r="",status:a,disabled:n})=>(0,v.jsx)(E,{asChild:!0,disabled:n,children:(0,v.jsxs)("button",{disabled:n,className:o(A({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,v.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:(0,v.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"})})]})}),ue=({options:e=[],value:t,onChange:r,containerClassName:a,placeholder:n,disabled:s,loading:c,optionComponent:i,children:h,modal:u=!1,hideSearch:p,className:l,inputValue:g,onValueChange:b,onInputValueChange:F})=>{let[fe,de]=z.useState(!1),Z=z.useRef(null),[ye,ge]=z.useState(void 0);return z.useLayoutEffect(()=>{Z.current&&ge(Z.current.clientWidth)},[Z.current]),(0,v.jsxs)(_,{modal:u,open:fe,onOpenChange:de,children:[(0,v.jsx)("div",{className:o("w-full",l),ref:Z,children:h}),(0,v.jsx)(O,{portal:!u,className:"p-0 min-w-[200px]",style:{width:ye},children:(0,v.jsxs)(te,{className:"max-h-[270px] relative",children:[!p&&(0,v.jsx)(re,{loading:c,placeholder:n??"Search options...",onValueChange:F,value:g,CommandInputContainerClassName:"mx-3 border rounded-md border-[#DEDEDE]"}),(0,v.jsx)(se,{className:o("w-full px-0 h-full overflow-y-auto",a),children:(0,v.jsxs)(oe,{children:[!p&&(0,v.jsx)(ae,{children:"No result found."}),(0,v.jsx)(ne,{className:"w-full",children:e?.map(X=>(0,v.jsx)(ie,{defaultValue:t?.label,value:X.label,disabled:s,onSelect:()=>{r(X),de(!1),b?.(X?.value)},children:i?i(X):X.label},X.value))})]})})]})})]})};var H=require("react/jsx-runtime"),ct=({showAsterisk:e,label:t,description:r,error:a,hideSearch:n=!0,status:s,...c})=>(0,H.jsxs)("div",{className:"relative space-y-1",children:[(0,H.jsx)(x,{showAsterisk:e,error:a,children:t}),(0,H.jsx)(ue,{hideSearch:n,...c,containerClassName:"max-h-[700px] h-full",children:(0,H.jsx)(dt,{disabled:c?.disabled,placeholder:"Select or search email",status:s,value:c?.value?.label??c?.value?.value})}),(0,H.jsx)(L,{className:"text-gray-400 text-sm !font-normal",children:r}),(0,H.jsx)(D,{error:a})]});var Le=[{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"}],pt=()=>{let e={};return Le?.forEach(t=>{e[t?.internetCountryCode]=t?.countryName}),e};var le=y(require("react")),ut=y(require("react-phone-number-input")),ft=y(require("react-phone-number-input")),yt=y(require("react-phone-number-input/flags"));var B=require("react/jsx-runtime"),Mt=e=>(0,B.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,B.jsx)("rect",{width:"32",height:"32",fill:"#60A5FA"})," ",(0,B.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,B.jsx)("rect",{x:"2",y:"28",width:"28",height:"3",fill:"#D1D5DB"}),(0,B.jsx)("path",{d:"M0 16H32M8 0V32M16 0V32M24 0V32",stroke:"#2563EB",strokeWidth:"0.5",vectorEffect:"non-scaling-stroke"}),(0,B.jsx)("path",{d:"M0 16H32",stroke:"#2563EB",strokeWidth:"1",vectorEffect:"non-scaling-stroke"})]}),mt=Mt;var d=require("react/jsx-runtime"),Se=le.forwardRef(({className:e,onChange:t,value:r,modal:a,showAsterisk:n,label:s,description:c,error:i,defaultCountry:h="NG",...u},p)=>{let l=b=>(0,d.jsx)(Vt,{...b,status:u.status,modal:a,onChange:F=>b.onChange(F)}),g=r;return(0,d.jsxs)("div",{className:"relative space-y-1",children:[(0,d.jsx)(x,{showAsterisk:n,error:i,children:s}),(0,d.jsx)(ft.default,{ref:p,className:o("flex",e),flagComponent:T,countrySelectComponent:l,focusInputOnCountrySelection:!0,countryCallingCodeEditable:!0,enableLongNumber:!0,addInternationalOption:!0,international:!0,inputComponent:gt,defaultCountry:h,containerComponent:({children:b})=>(0,d.jsx)("div",{className:o(A({status:u?.status}),"p-0 gap-1"),children:b}),...u,onChange:b=>{t&&t(b)},value:g}),(0,d.jsx)(L,{className:"text-gray-400 text-sm !font-normal",children:c}),(0,d.jsx)(D,{error:i})]})});Se.displayName="PhoneInput";var gt=le.forwardRef(({className:e,...t},r)=>(0,d.jsx)("input",{className:o(ve({status:t?.status})," h-full !-mt-0 border-0 rounded-l-none !flex-1 !block !w-full",e),...t,ref:r}));gt.displayName="InputComponent";var Vt=({disabled:e,value:t,onChange:r,options:a,status:n,modal:s})=>{let c=le.useCallback(i=>{console.log(i),r(i)},[r]);return(0,d.jsxs)(_,{modal:s,children:[(0,d.jsx)(E,{disabled:e,children:(0,d.jsxs)("div",{className:o(A({status:n}),"!border-0 transition justify-center items-center disabled:text-base-500 flex gap-3 h-full rounded-e-none pl-2 pr-2"),children:[(0,d.jsx)(T,{country:t,countryName:t}),(0,d.jsx)("svg",{className:o("-mr-2 h-4 w-4 opacity-50",e?"hidden":"opacity-100"),width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,d.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,d.jsx)(O,{portal:!s,className:"w-[200px] md:w-[300px] p-0",children:(0,d.jsx)(te,{children:(0,d.jsx)(oe,{children:(0,d.jsxs)(se,{className:"h-72",children:[(0,d.jsx)(re,{placeholder:"Search country..."}),(0,d.jsx)(ae,{children:"No country found."}),(0,d.jsx)(ne,{children:a.filter(i=>i.value).map(i=>(0,d.jsxs)(ie,{className:"gap-2",onSelect:()=>c(i.value),children:[(0,d.jsx)(T,{country:i.value,countryName:i.label}),(0,d.jsx)("span",{className:"flex-1 text-sm",children:i.label}),i.value&&(0,d.jsx)("span",{className:"text-[#191919]/50 text-sm dark:text-white",children:`+${ut.getCountryCallingCode(i.value)}`}),(0,d.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:o("ml-auto",i.value===t?"opacity-100":"opacity-0"),children:(0,d.jsx)("path",{d:"M4 8.00008L6.66353 10.6636L12 5.33655",stroke:"#959595",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"})})]},`${i.value}-${i.label}`))})]})})})})]})},T=({country:e,countryName:t,className:r})=>{let a=yt.default[e];return e==="GLOBAL"?(0,d.jsx)("span",{className:o("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:(0,d.jsx)(mt,{className:"w-full h-[90%]"})}):(0,d.jsx)("span",{className:o("bg-white/20 flex h-4 w-6 overflow-hidden rounded-sm",r),children:a&&(0,d.jsx)(a,{title:t})})};T.displayName="FlagComponent";var C=require("react/jsx-runtime"),Ot=pt(),Wt=({className:e,value:t,placeholder:r="",status:a,disabled:n})=>(0,C.jsx)(E,{asChild:!0,disabled:n,children:(0,C.jsxs)("button",{disabled:n,className:o(A({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,C.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,C.jsx)(T,{country:t,countryName:t,className:"ml-1 !w-6 h-5"}),(0,C.jsxs)("span",{className:"",children:[" ",Ot[t]]})]}):r??"Select options...",(0,C.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:" data-[state=open]:goup-rotate-180",children:(0,C.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"})})]})}),Ct=({hideSearch:e=!0,showAsterisk:t,label:r,description:a,error:n,...s})=>{let c=Le?.map(i=>({value:i?.internetCountryCode,label:i?.countryName,...i}));return(0,C.jsxs)("div",{className:"relative space-y-1",children:[(0,C.jsx)(x,{showAsterisk:t,error:n,children:r}),(0,C.jsx)(ue,{options:c,hideSearch:e,optionComponent:i=>(0,C.jsxs)("div",{className:"w-full flex items-center gap-2",children:[(0,C.jsx)(T,{country:i?.internetCountryCode,countryName:i?.label,className:"ml-2 !w-6 !h-5"}),(0,C.jsx)("span",{className:"flex-1 text-sm",children:i?.label})]}),...s,children:(0,C.jsx)(Wt,{value:s?.value?.value,status:s?.status,placeholder:s?.placeholder??" Select Country"})}),(0,C.jsx)(L,{className:"text-gray-400 text-sm !font-normal",children:a}),(0,C.jsx)(D,{error:n})]})};var ht=y(require("react-otp-input"));var bt=require("class-variance-authority"),vt=require("react"),Ie=require("react/jsx-runtime"),Ht=(0,bt.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"}}),Pt=({numInputs:e=4,inputStyle:t,containerStyle:r,placeholder:a="-",status:n,...s})=>{let c=(0,vt.useMemo)(()=>a||new Array(e).fill("").reduce((u,p)=>u+=p,""),[e,a]);return(0,Ie.jsx)(ht.default,{numInputs:e,placeholder:c,containerStyle:o("w-full",r),inputStyle:o(Ht({status:n}),t),renderInput:i=>(0,Ie.jsx)("input",{...i}),...s})};0&&(module.exports={Button,Country,Dialog,FlagComponent,FormLabel,Input,Loader,OTPInput,PasswordInput,PhoneInput,Popover,PopoverContent,PopoverRoot,PopoverTrigger,Select,Textarea});
2
2
  //# sourceMappingURL=index.js.map