@momo-webplatform/mobase 0.2.12 → 0.2.13

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,4 +1,4 @@
1
- "use strict";var en=Object.create;var kt=Object.defineProperty;var tn=Object.getOwnPropertyDescriptor;var on=Object.getOwnPropertyNames;var an=Object.getPrototypeOf,rn=Object.prototype.hasOwnProperty;var nn=(e,t)=>{for(var o in t)kt(e,o,{get:t[o],enumerable:!0})},xa=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of on(t))!rn.call(e,r)&&r!==o&&kt(e,r,{get:()=>t[r],enumerable:!(i=tn(t,r))||i.enumerable});return e};var f=(e,t,o)=>(o=e!=null?en(an(e)):{},xa(t||!e||!e.__esModule?kt(o,"default",{value:e,enumerable:!0}):o,e)),sn=e=>xa(kt({},"__esModule",{value:!0}),e);var ss={};nn(ss,{Accordion:()=>et,AccordionContent:()=>at,AccordionItem:()=>tt,AccordionTrigger:()=>ot,AlertDialog:()=>Qa,AlertDialogAction:()=>xo,AlertDialogCancel:()=>yo,AlertDialogContent:()=>go,AlertDialogDescription:()=>bo,AlertDialogFooter:()=>ho,AlertDialogHeader:()=>uo,AlertDialogOverlay:()=>Mt,AlertDialogPortal:()=>fo,AlertDialogTitle:()=>vo,AlertDialogTrigger:()=>Za,AspectRatio:()=>xt,Badge:()=>ur,Breadcrumb:()=>Jt,BreadcrumbEllipsis:()=>ro,BreadcrumbItem:()=>to,BreadcrumbLink:()=>oo,BreadcrumbList:()=>eo,BreadcrumbPage:()=>ao,BreadcrumbSeparator:()=>io,Button:()=>Le,Callout:()=>er,Card:()=>Jo,CardContent:()=>aa,CardDescription:()=>oa,CardFooter:()=>ia,CardHeader:()=>ea,CardTitle:()=>ta,Checkbox:()=>je,CheckboxIndicator:()=>St,ChoiceboxGroup:()=>fr,ChoiceboxGroupItem:()=>pr,Combobox:()=>Yi,ComboboxContent:()=>Ki,ComboboxTrigger:()=>Zi,Command:()=>Ut,CommandDialog:()=>qi,CommandEmpty:()=>sa,CommandGroup:()=>la,CommandInput:()=>ra,CommandItem:()=>ca,CommandList:()=>na,CommandSeparator:()=>ma,CommandShortcut:()=>da,Dialog:()=>Ge,DialogBody:()=>nt,DialogClose:()=>Ga,DialogContent:()=>Ee,DialogDescription:()=>po,DialogFooter:()=>mo,DialogHeader:()=>lo,DialogOverlay:()=>At,DialogPortal:()=>so,DialogQr:()=>qa,DialogTitle:()=>co,DialogTrigger:()=>ja,Footer:()=>Ui,Header:()=>Yo,HeroSection:()=>Rr,IconButton:()=>he,Indicator:()=>Wa,LightBoxContent:()=>mr,LightboxGallery:()=>cr,LightboxThumbnail:()=>sr,NavigationMenu:()=>ct,NavigationMenuContent:()=>ut,NavigationMenuItem:()=>pt,NavigationMenuLink:()=>qe,NavigationMenuList:()=>dt,NavigationMenuTrigger:()=>gt,Pagination:()=>wo,Popover:()=>Et,PopoverContent:()=>st,PopoverTrigger:()=>It,Progressbar:()=>ha,RadioGroup:()=>qo,RadioGroupItem:()=>Qo,Root:()=>Fa,SearchBar:()=>ar,Select:()=>yi,SelectContent:()=>Fo,SelectGroup:()=>Ni,SelectItem:()=>Pi,SelectLabel:()=>Wo,SelectScrollDownButton:()=>$t,SelectScrollUpButton:()=>Wt,SelectSeparator:()=>$o,SelectTrigger:()=>zo,SelectValue:()=>wi,SiteMeta:()=>Kr,Slider:()=>va,Stepper:()=>bi,Switch:()=>Go,Tabs:()=>ti,TabsContent:()=>Ro,TabsList:()=>Po,TabsTrigger:()=>Co,TextArea:()=>ri,TextButton:()=>mt,TextInput:()=>vi,ToastAction:()=>Mo,Toaster:()=>mi,Tooltip:()=>ui,TooltipArrow:()=>Bo,TooltipContent:()=>Oo,TooltipProvider:()=>gi,TooltipTrigger:()=>hi,badgeVariants:()=>fa,buttonVariants:()=>Ne,createCheckboxScope:()=>Oa,mobaseTW:()=>Zr,navigationMenuTriggerStyle:()=>ft,textButtonVariants:()=>Ho,toast:()=>Do,useToast:()=>zt});module.exports=sn(ss);var Je=f(require("react"),1),K=f(require("@radix-ui/react-accordion"),1),ka=require("lucide-react");var Ca=require("clsx"),Ra=require("tailwind-merge");var ya={heading:"V\u1EC1 ch\xFAng t\xF4i",lists:[{title:"Gi\u1EDBi thi\u1EC7u",url:"/sieu-ung-dung-momo",newTab:!1},{title:"An to\xE0n - B\u1EA3o m\u1EADt",url:"/an-toan-bao-mat",newTab:!1},{title:"\u0110i\u1EC1u kho\u1EA3n \u0111i\u1EC1u l\u1EC7",url:"/dieu-khoan-dieu-le",newTab:!1},{title:"Ch\xEDnh s\xE1ch quy\u1EC1n ri\xEAng t\u01B0",url:"/chinh-sach-quyen-rieng-tu",newTab:!1},{title:"\u0110i\u1EC1u kho\u1EA3n li\xEAn k\u1EBFt Google tr\xEAn \u1EE9ng d\u1EE5ng MoMo",url:"/google-cloud-policy",newTab:!1},{title:"Blog",url:"/blog",newTab:!1},{title:"Li\xEAn h\u1EC7",url:"/lienhe",newTab:!1},{title:"H\u1ECFi \u0111\xE1p",url:"/hoi-dap",newTab:!1}]},ge={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}},wa="https://momo.vn/",Na={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var Xe=[{Name:"Facebook",Image:"https://homepage.momocdn.net/styles/desktop/images/social/facebook.svg",Link:"https://www.facebook.com/vimomo"},{Name:"Linkedin",Image:"https://homepage.momocdn.net/styles/desktop/images/social/linkedin.svg",Link:"https://www.linkedin.com/company/momo-mservice/"},{Name:"Youtube",Image:"https://homepage.momocdn.net/styles/desktop/images/social/youtube.svg",Link:"https://www.youtube.com/channel/UCKHHW-qL2JoZqcSNm1jPlqw"}],Yt=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}],Pa=[{Name:"V\xE9 xem phim",Href:"/cinema",Image:"https://homepage.momocdn.net/fileuploads/svg/momo-file-230629144722.svg"},{Name:"B\u1EA3o hi\u1EC3m \xD4 t\xF4",Href:"/bao-hiem-o-to/vat-chat",Image:"https://homepage.momocdn.net/fileuploads/svg/momo-file-230629144844.svg"},{Name:"V\xE9 m\xE1y bay",Href:"/ve-may-bay",Image:"https://homepage.momocdn.net/fileuploads/svg/momo-file-201210145350.svg"},{Name:"Kh\xE1ch s\u1EA1n",Href:"/khach-san-theo-gio",Image:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210315154805.svg"},{Name:"V\xED nh\xE2n \xE1i",Href:"/vi-nhan-ai",Image:"https://homepage.momocdn.net/img/momo-upload-api-231214222240-638381893608141712.png"},{Name:"T\xFAi th\u1EA7n t\xE0i",Href:"/tui-than-tai",Image:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210716153611.svg"},{Name:"V\xED tr\u1EA3 sau",Href:"/vi-tra-sau",Image:"https://homepage.momocdn.net/img/momo-upload-api-230629144414-638236466540028217.png"},{Name:"Vay nhanh",Href:"/vay-nhanh",Image:"https://homepage.momocdn.net/img/momo-upload-api-230418101312-638174095928506551.png"}];var U={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}},Xt="nav_footer";function a(...e){return(0,Ra.twMerge)((0,Ca.clsx)(e))}var Ta=({link:e,query:t={}})=>{if(!e)return"";let o=new URL(e,wa||""),i=new URLSearchParams(o.search);return Object.entries(t).forEach(([r,l])=>{l&&i.append(r,l)}),o.search=i.toString(),o.toString()};var ue=require("react/jsx-runtime"),et=Je.forwardRef(({className:e,...t},o)=>(0,ue.jsx)(K.Root,{ref:o,...t}));et.displayName="AccordionRoot";var tt=Je.forwardRef(({className:e,...t},o)=>(0,ue.jsx)(K.Item,{ref:o,className:a("border-b border-gray-200",e),...t}));tt.displayName="AccordionItem";var ot=Je.forwardRef(({className:e,children:t,...o},i)=>(0,ue.jsx)(K.Header,{className:"flex",children:(0,ue.jsxs)(K.Trigger,{ref:i,className:a("flex flex-1 items-center text-left justify-between py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 text-gray-900",e),...o,children:[t,(0,ue.jsx)(ka.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200 ml-1"})]})}));ot.displayName=K.Trigger.displayName;var at=Je.forwardRef(({className:e,children:t,...o},i)=>(0,ue.jsx)(K.Content,{ref:i,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...o,children:(0,ue.jsx)("div",{className:a("pb-4 pt-0 text-gray-900 prose-sm",e),children:t})}));at.displayName=K.Content.displayName;var We=f(require("react"),1),Dt=require("@radix-ui/react-icons"),Da=require("@radix-ui/react-slot");var Y=require("react/jsx-runtime"),Jt=We.forwardRef(({className:e,...t},o)=>(0,Y.jsx)("nav",{ref:o,"aria-label":"breadcrumb",className:a("",e),...t}));Jt.displayName="Breadcrumb";var eo=We.forwardRef(({className:e,...t},o)=>(0,Y.jsx)("ol",{ref:o,className:a("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...t}));eo.displayName="BreadcrumbList";var to=We.forwardRef(({className:e,...t},o)=>(0,Y.jsx)("li",{ref:o,className:a("shrink-0 text-gray-900 hover:text-pink-500",e),...t}));to.displayName="BreadcrumbItem";var oo=We.forwardRef(({asChild:e,className:t,...o},i)=>(0,Y.jsx)(e?Da.Slot:"a",{ref:i,className:a("transition-colors hover:text-foreground",t),...o}));oo.displayName="BreadcrumbLink";var ao=We.forwardRef(({className:e,...t},o)=>(0,Y.jsx)("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page",className:a("text-sm text-gray-500",e),...t}));ao.displayName="BreadcrumbPage";var io=({children:e,className:t,...o})=>(0,Y.jsx)("li",{role:"presentation","aria-hidden":"true",className:a("text-gray-900",t),...o,children:e??(0,Y.jsx)(Dt.ChevronRightIcon,{className:"w-2 h-2"})});io.displayName="BreadcrumbSeparator";var ro=({className:e,...t})=>(0,Y.jsxs)("span",{role:"presentation","aria-hidden":"true",className:a("flex h-5 w-5 items-center justify-center",e),...t,children:[(0,Y.jsx)(Dt.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Y.jsx)("span",{className:"sr-only",children:"More"})]});ro.displayName="BreadcrumbElipssis";var Aa=f(require("react"),1),Ma=require("@radix-ui/react-slot"),La=require("class-variance-authority");var z=require("react/jsx-runtime"),ln=({className:e})=>(0,z.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,z.jsx)("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),Sa=ln;var we=require("react/jsx-runtime"),Ne=(0,La.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Le=Aa.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:i=!1,isLoading:r=!1,isDisabled:l=!1,...m},c)=>{let g=i?Ma.Slot:"button",y=a(Ne({variant:t,size:o,className:e}),{"cursor-wait":r});return(0,we.jsx)(we.Fragment,{children:i?(0,we.jsx)(g,{className:y,type:"button",disabled:l,ref:c,...m,children:m.children}):(0,we.jsxs)(g,{className:y,type:"button",disabled:l,ref:c,...m,children:[r&&(0,we.jsx)(Sa,{className:`${o==="default"||o==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),m.children]})})});Le.displayName="Button";var no=f(require("react"),1),it=f(require("@radix-ui/react-checkbox"),1),Ea=require("lucide-react"),Ia=require("@radix-ui/react-primitive"),Ha=require("@radix-ui/react-context"),_a=require("@radix-ui/react-presence");var $e=require("react/jsx-runtime"),Ba="Checkbox",[mn,Oa]=(0,Ha.createContextScope)(Ba),[ks,cn]=mn(Ba),Va="CheckboxIndicator";function dn(e){return za(e)?"indeterminate":e?"checked":"unchecked"}var St=no.forwardRef((e,t)=>{let{__scopeCheckbox:o,forceMount:i,...r}=e,l=cn(Va,o);return(0,$e.jsx)(_a.Presence,{present:i||za(l.state)||l.state===!0,children:(0,$e.jsx)(Ia.Primitive.span,{"data-state":dn(l.state),"data-disabled":l.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});function za(e){return e==="indeterminate"}St.displayName=Va;var je=no.forwardRef(({className:e,...t},o)=>(0,$e.jsx)(it.Root,{ref:o,className:a("peer h-4 w-4 shrink-0 rounded-sm border-2 disabled:bg-gray-300 border-gray-300 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-50 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-300 disabled:data-[state=checked]:text-gray-600 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white",e),...t,children:(0,$e.jsx)(it.Indicator,{className:a("flex items-center justify-center text-current"),children:(0,$e.jsx)(Ea.Check,{className:"h-3.5 w-3.5"})})}));je.displayName=it.Root.displayName;var Fa=je,Wa=St;var rt=f(require("react"),1),S=f(require("@radix-ui/react-dialog"),1);var $a=require("@heroicons/react/20/solid"),$=require("react/jsx-runtime"),Ge=S.Root,ja=S.Trigger,so=S.Portal,Ga=S.Close,At=rt.forwardRef(({className:e,...t},o)=>(0,$.jsx)(S.Overlay,{ref:o,className:a("fixed inset-0 z-50 bg-black/60 !duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));At.displayName=S.Overlay.displayName;var Ee=rt.forwardRef(({className:e,isRightCloseButton:t,size:o="md",position:i="center",height:r="auto",isFull:l=!1,children:m,...c},g)=>{let y={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] 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-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(-32px_+_100vh)] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},P={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},v={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},D=[y.base,y[i],P[o],v[r],l&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,$.jsxs)(so,{children:[(0,$.jsx)(At,{}),(0,$.jsxs)(S.Content,{ref:g,className:a(...D),...c,children:[m,(0,$.jsxs)(S.Close,{className:a("absolute md:top-4 top-2 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 text-gray-900 w-8 h-8 flex justify-center items-center rounded-full before:opacity-0 hover:before:opacity-100 before:transition-opacity before:z-[-1] before:content-[''] before:absolute before:inset-0 before:rounded-full before:select-none before:left-0 before:top-0 before:bg-gray-200 left-3 md:left-auto md:right-4",t&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[(0,$.jsx)($a.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,$.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Ee.displayName=S.Content.displayName;var lo=({className:e,...t})=>(0,$.jsx)("div",{className:a("dialog-header py-2 md:py-4 h-12 md:h-16 px-10 md:px-12 items-center justify-center flex border-b border-gray-200 w-full shrink-0",e),...t});lo.displayName="DialogHeader";var nt=({className:e,isCondensed:t=!1,...o})=>(0,$.jsx)("div",{className:a("dialog-body p-6 flex-1 overflow-y-auto",t&&"p-5",e),...o});nt.displayName="DialogBody";var mo=({className:e,isDivider:t=!0,...o})=>(0,$.jsx)("div",{className:a("dialog-footer flex sm:flex-row justify-center [&>*]:basis-1/2 [&>*]:sm:basis-auto sm:justify-end space-x-2 px-6 pb-4 shrink-0",t&&"border-gray-200 border-t py-4",e),...o});mo.displayName="DialogFooter";var co=rt.forwardRef(({className:e,...t},o)=>(0,$.jsx)(S.Title,{ref:o,className:a("text-base font-semibold line-clamp-1 max-w-full",e),...t}));co.displayName=S.Title.displayName;var po=rt.forwardRef(({className:e,...t},o)=>(0,$.jsx)(S.Description,{ref:o,className:a("text-sm text-gray-700",e),...t}));po.displayName=S.Description.displayName;var Ua=f(require("qrcode.react"),1);var p=require("react/jsx-runtime"),pn=({img:e="",children:t,isQrForAll:o})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"qrcode__scan__container",children:(0,p.jsxs)("div",{className:"qrcode__scan",children:[(0,p.jsx)("div",{className:"qrcode__gradient",children:(0,p.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,p.jsx)("div",{className:"qrcode__border",children:(0,p.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,p.jsx)("div",{className:"qrcode__image p-4",children:e?(0,p.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):t})]})}),(0,p.jsx)("div",{className:"mt-4 text-sm text-white",children:o?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),(0,p.jsx)("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",(0,p.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,p.jsx)("style",{children:`
1
+ "use strict";var tn=Object.create;var kt=Object.defineProperty;var on=Object.getOwnPropertyDescriptor;var an=Object.getOwnPropertyNames;var rn=Object.getPrototypeOf,nn=Object.prototype.hasOwnProperty;var sn=(e,t)=>{for(var o in t)kt(e,o,{get:t[o],enumerable:!0})},xa=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of an(t))!nn.call(e,r)&&r!==o&&kt(e,r,{get:()=>t[r],enumerable:!(i=on(t,r))||i.enumerable});return e};var f=(e,t,o)=>(o=e!=null?tn(rn(e)):{},xa(t||!e||!e.__esModule?kt(o,"default",{value:e,enumerable:!0}):o,e)),ln=e=>xa(kt({},"__esModule",{value:!0}),e);var ls={};sn(ls,{Accordion:()=>et,AccordionContent:()=>at,AccordionItem:()=>tt,AccordionTrigger:()=>ot,AlertDialog:()=>Qa,AlertDialogAction:()=>xo,AlertDialogCancel:()=>yo,AlertDialogContent:()=>go,AlertDialogDescription:()=>bo,AlertDialogFooter:()=>ho,AlertDialogHeader:()=>uo,AlertDialogOverlay:()=>Mt,AlertDialogPortal:()=>fo,AlertDialogTitle:()=>vo,AlertDialogTrigger:()=>Za,AspectRatio:()=>xt,Badge:()=>hr,Breadcrumb:()=>Jt,BreadcrumbEllipsis:()=>ro,BreadcrumbItem:()=>to,BreadcrumbLink:()=>oo,BreadcrumbList:()=>eo,BreadcrumbPage:()=>ao,BreadcrumbSeparator:()=>io,Button:()=>Le,Callout:()=>tr,Card:()=>Jo,CardContent:()=>aa,CardDescription:()=>oa,CardFooter:()=>ia,CardHeader:()=>ea,CardTitle:()=>ta,Checkbox:()=>je,CheckboxIndicator:()=>St,ChoiceboxGroup:()=>gr,ChoiceboxGroupItem:()=>fr,Combobox:()=>Xi,ComboboxContent:()=>Yi,ComboboxTrigger:()=>Ki,Command:()=>Ut,CommandDialog:()=>Qi,CommandEmpty:()=>sa,CommandGroup:()=>la,CommandInput:()=>ra,CommandItem:()=>ca,CommandList:()=>na,CommandSeparator:()=>ma,CommandShortcut:()=>da,Dialog:()=>Ge,DialogBody:()=>nt,DialogClose:()=>Ga,DialogContent:()=>Ee,DialogDescription:()=>po,DialogFooter:()=>mo,DialogHeader:()=>lo,DialogOverlay:()=>At,DialogPortal:()=>so,DialogQr:()=>qa,DialogTitle:()=>co,DialogTrigger:()=>ja,Footer:()=>qi,Header:()=>Yo,HeroSection:()=>Tr,IconButton:()=>he,Indicator:()=>Wa,LightBoxContent:()=>cr,LightboxGallery:()=>dr,LightboxThumbnail:()=>lr,NavigationMenu:()=>ct,NavigationMenuContent:()=>ut,NavigationMenuItem:()=>pt,NavigationMenuLink:()=>qe,NavigationMenuList:()=>dt,NavigationMenuTrigger:()=>gt,Pagination:()=>wo,Popover:()=>Et,PopoverContent:()=>st,PopoverTrigger:()=>It,Progressbar:()=>ha,RadioGroup:()=>qo,RadioGroupItem:()=>Qo,Root:()=>Fa,SearchBar:()=>ir,Select:()=>yi,SelectContent:()=>Fo,SelectGroup:()=>Ni,SelectItem:()=>Pi,SelectLabel:()=>Wo,SelectScrollDownButton:()=>$t,SelectScrollUpButton:()=>Wt,SelectSeparator:()=>$o,SelectTrigger:()=>zo,SelectValue:()=>wi,SiteMeta:()=>Yr,Slider:()=>va,Stepper:()=>bi,Switch:()=>Go,Tabs:()=>ti,TabsContent:()=>Ro,TabsList:()=>Po,TabsTrigger:()=>Co,TextArea:()=>ri,TextButton:()=>mt,TextInput:()=>vi,ToastAction:()=>Mo,Toaster:()=>mi,Tooltip:()=>ui,TooltipArrow:()=>Bo,TooltipContent:()=>Oo,TooltipProvider:()=>gi,TooltipTrigger:()=>hi,badgeVariants:()=>fa,buttonVariants:()=>Ne,createCheckboxScope:()=>Oa,mobaseTW:()=>Kr,navigationMenuTriggerStyle:()=>ft,textButtonVariants:()=>Ho,toast:()=>Do,useToast:()=>zt});module.exports=ln(ls);var Je=f(require("react"),1),K=f(require("@radix-ui/react-accordion"),1),ka=require("lucide-react");var Ca=require("clsx"),Ra=require("tailwind-merge");var ya={heading:"V\u1EC1 ch\xFAng t\xF4i",lists:[{title:"Gi\u1EDBi thi\u1EC7u",url:"/sieu-ung-dung-momo",newTab:!1},{title:"An to\xE0n - B\u1EA3o m\u1EADt",url:"/an-toan-bao-mat",newTab:!1},{title:"\u0110i\u1EC1u kho\u1EA3n \u0111i\u1EC1u l\u1EC7",url:"/dieu-khoan-dieu-le",newTab:!1},{title:"Ch\xEDnh s\xE1ch quy\u1EC1n ri\xEAng t\u01B0",url:"/chinh-sach-quyen-rieng-tu",newTab:!1},{title:"\u0110i\u1EC1u kho\u1EA3n li\xEAn k\u1EBFt Google tr\xEAn \u1EE9ng d\u1EE5ng MoMo",url:"/google-cloud-policy",newTab:!1},{title:"Blog",url:"/blog",newTab:!1},{title:"Li\xEAn h\u1EC7",url:"/lienhe",newTab:!1},{title:"H\u1ECFi \u0111\xE1p",url:"/hoi-dap",newTab:!1}]},ge={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}},wa="https://momo.vn/",Na={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var Xe=[{Name:"Facebook",Image:"https://homepage.momocdn.net/styles/desktop/images/social/facebook.svg",Link:"https://www.facebook.com/vimomo"},{Name:"Linkedin",Image:"https://homepage.momocdn.net/styles/desktop/images/social/linkedin.svg",Link:"https://www.linkedin.com/company/momo-mservice/"},{Name:"Youtube",Image:"https://homepage.momocdn.net/styles/desktop/images/social/youtube.svg",Link:"https://www.youtube.com/channel/UCKHHW-qL2JoZqcSNm1jPlqw"}],Yt=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}],Pa=[{Name:"V\xE9 xem phim",Href:"/cinema",Image:"https://homepage.momocdn.net/fileuploads/svg/momo-file-230629144722.svg"},{Name:"B\u1EA3o hi\u1EC3m \xD4 t\xF4",Href:"/bao-hiem-o-to/vat-chat",Image:"https://homepage.momocdn.net/fileuploads/svg/momo-file-230629144844.svg"},{Name:"V\xE9 m\xE1y bay",Href:"/ve-may-bay",Image:"https://homepage.momocdn.net/fileuploads/svg/momo-file-201210145350.svg"},{Name:"Kh\xE1ch s\u1EA1n",Href:"/khach-san-theo-gio",Image:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210315154805.svg"},{Name:"V\xED nh\xE2n \xE1i",Href:"/vi-nhan-ai",Image:"https://homepage.momocdn.net/img/momo-upload-api-231214222240-638381893608141712.png"},{Name:"T\xFAi th\u1EA7n t\xE0i",Href:"/tui-than-tai",Image:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210716153611.svg"},{Name:"V\xED tr\u1EA3 sau",Href:"/vi-tra-sau",Image:"https://homepage.momocdn.net/img/momo-upload-api-230629144414-638236466540028217.png"},{Name:"Vay nhanh",Href:"/vay-nhanh",Image:"https://homepage.momocdn.net/img/momo-upload-api-230418101312-638174095928506551.png"}];var U={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}},Xt="nav_footer";function a(...e){return(0,Ra.twMerge)((0,Ca.clsx)(e))}var Ta=({link:e,query:t={}})=>{if(!e)return"";let o=new URL(e,wa||""),i=new URLSearchParams(o.search);return Object.entries(t).forEach(([r,l])=>{l&&i.append(r,l)}),o.search=i.toString(),o.toString()};var ue=require("react/jsx-runtime"),et=Je.forwardRef(({className:e,...t},o)=>(0,ue.jsx)(K.Root,{ref:o,...t}));et.displayName="AccordionRoot";var tt=Je.forwardRef(({className:e,...t},o)=>(0,ue.jsx)(K.Item,{ref:o,className:a("border-b border-gray-200",e),...t}));tt.displayName="AccordionItem";var ot=Je.forwardRef(({className:e,children:t,...o},i)=>(0,ue.jsx)(K.Header,{className:"flex",children:(0,ue.jsxs)(K.Trigger,{ref:i,className:a("flex flex-1 items-center text-left justify-between py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 text-gray-900",e),...o,children:[t,(0,ue.jsx)(ka.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200 ml-1"})]})}));ot.displayName=K.Trigger.displayName;var at=Je.forwardRef(({className:e,children:t,...o},i)=>(0,ue.jsx)(K.Content,{ref:i,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...o,children:(0,ue.jsx)("div",{className:a("pb-4 pt-0 text-gray-900 prose-sm",e),children:t})}));at.displayName=K.Content.displayName;var We=f(require("react"),1),Dt=require("@radix-ui/react-icons"),Da=require("@radix-ui/react-slot");var Y=require("react/jsx-runtime"),Jt=We.forwardRef(({className:e,...t},o)=>(0,Y.jsx)("nav",{ref:o,"aria-label":"breadcrumb",className:a("",e),...t}));Jt.displayName="Breadcrumb";var eo=We.forwardRef(({className:e,...t},o)=>(0,Y.jsx)("ol",{ref:o,className:a("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...t}));eo.displayName="BreadcrumbList";var to=We.forwardRef(({className:e,...t},o)=>(0,Y.jsx)("li",{ref:o,className:a("shrink-0 text-gray-900 hover:text-pink-500",e),...t}));to.displayName="BreadcrumbItem";var oo=We.forwardRef(({asChild:e,className:t,...o},i)=>(0,Y.jsx)(e?Da.Slot:"a",{ref:i,className:a("transition-colors hover:text-foreground",t),...o}));oo.displayName="BreadcrumbLink";var ao=We.forwardRef(({className:e,...t},o)=>(0,Y.jsx)("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page",className:a("text-sm text-gray-500",e),...t}));ao.displayName="BreadcrumbPage";var io=({children:e,className:t,...o})=>(0,Y.jsx)("li",{role:"presentation","aria-hidden":"true",className:a("text-gray-900",t),...o,children:e??(0,Y.jsx)(Dt.ChevronRightIcon,{className:"w-2 h-2"})});io.displayName="BreadcrumbSeparator";var ro=({className:e,...t})=>(0,Y.jsxs)("span",{role:"presentation","aria-hidden":"true",className:a("flex h-5 w-5 items-center justify-center",e),...t,children:[(0,Y.jsx)(Dt.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Y.jsx)("span",{className:"sr-only",children:"More"})]});ro.displayName="BreadcrumbElipssis";var Aa=f(require("react"),1),Ma=require("@radix-ui/react-slot"),La=require("class-variance-authority");var z=require("react/jsx-runtime"),mn=({className:e})=>(0,z.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,z.jsx)("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),(0,z.jsx)("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),Sa=mn;var we=require("react/jsx-runtime"),Ne=(0,La.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Le=Aa.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:i=!1,isLoading:r=!1,isDisabled:l=!1,...m},c)=>{let g=i?Ma.Slot:"button",y=a(Ne({variant:t,size:o,className:e}),{"cursor-wait":r});return(0,we.jsx)(we.Fragment,{children:i?(0,we.jsx)(g,{className:y,type:"button",disabled:l,ref:c,...m,children:m.children}):(0,we.jsxs)(g,{className:y,type:"button",disabled:l,ref:c,...m,children:[r&&(0,we.jsx)(Sa,{className:`${o==="default"||o==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),m.children]})})});Le.displayName="Button";var no=f(require("react"),1),it=f(require("@radix-ui/react-checkbox"),1),Ea=require("lucide-react"),Ia=require("@radix-ui/react-primitive"),Ha=require("@radix-ui/react-context"),_a=require("@radix-ui/react-presence");var $e=require("react/jsx-runtime"),Ba="Checkbox",[cn,Oa]=(0,Ha.createContextScope)(Ba),[Ds,dn]=cn(Ba),Va="CheckboxIndicator";function pn(e){return za(e)?"indeterminate":e?"checked":"unchecked"}var St=no.forwardRef((e,t)=>{let{__scopeCheckbox:o,forceMount:i,...r}=e,l=dn(Va,o);return(0,$e.jsx)(_a.Presence,{present:i||za(l.state)||l.state===!0,children:(0,$e.jsx)(Ia.Primitive.span,{"data-state":pn(l.state),"data-disabled":l.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});function za(e){return e==="indeterminate"}St.displayName=Va;var je=no.forwardRef(({className:e,...t},o)=>(0,$e.jsx)(it.Root,{ref:o,className:a("peer h-4 w-4 shrink-0 rounded-sm border-2 disabled:bg-gray-300 border-gray-300 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-50 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-300 disabled:data-[state=checked]:text-gray-600 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white",e),...t,children:(0,$e.jsx)(it.Indicator,{className:a("flex items-center justify-center text-current"),children:(0,$e.jsx)(Ea.Check,{className:"h-3.5 w-3.5"})})}));je.displayName=it.Root.displayName;var Fa=je,Wa=St;var rt=f(require("react"),1),S=f(require("@radix-ui/react-dialog"),1);var $a=require("@heroicons/react/20/solid"),$=require("react/jsx-runtime"),Ge=S.Root,ja=S.Trigger,so=S.Portal,Ga=S.Close,At=rt.forwardRef(({className:e,...t},o)=>(0,$.jsx)(S.Overlay,{ref:o,className:a("fixed inset-0 z-50 bg-black/60 !duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));At.displayName=S.Overlay.displayName;var Ee=rt.forwardRef(({className:e,isRightCloseButton:t,size:o="md",position:i="center",height:r="auto",isFull:l=!1,children:m,...c},g)=>{let y={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] 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-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(-32px_+_100vh)] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},P={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},v={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},D=[y.base,y[i],P[o],v[r],l&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,$.jsxs)(so,{children:[(0,$.jsx)(At,{}),(0,$.jsxs)(S.Content,{ref:g,className:a(...D),...c,children:[m,(0,$.jsxs)(S.Close,{className:a("absolute md:top-4 top-2 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 text-gray-900 w-8 h-8 flex justify-center items-center rounded-full before:opacity-0 hover:before:opacity-100 before:transition-opacity before:z-[-1] before:content-[''] before:absolute before:inset-0 before:rounded-full before:select-none before:left-0 before:top-0 before:bg-gray-200 left-3 md:left-auto md:right-4",t&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[(0,$.jsx)($a.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,$.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Ee.displayName=S.Content.displayName;var lo=({className:e,...t})=>(0,$.jsx)("div",{className:a("dialog-header py-2 md:py-4 h-12 md:h-16 px-10 md:px-12 items-center justify-center flex border-b border-gray-200 w-full shrink-0",e),...t});lo.displayName="DialogHeader";var nt=({className:e,isCondensed:t=!1,...o})=>(0,$.jsx)("div",{className:a("dialog-body p-6 flex-1 overflow-y-auto",t&&"p-5",e),...o});nt.displayName="DialogBody";var mo=({className:e,isDivider:t=!0,...o})=>(0,$.jsx)("div",{className:a("dialog-footer flex sm:flex-row justify-center [&>*]:basis-1/2 [&>*]:sm:basis-auto sm:justify-end space-x-2 px-6 pb-4 shrink-0",t&&"border-gray-200 border-t py-4",e),...o});mo.displayName="DialogFooter";var co=rt.forwardRef(({className:e,...t},o)=>(0,$.jsx)(S.Title,{ref:o,className:a("text-base font-semibold line-clamp-1 max-w-full",e),...t}));co.displayName=S.Title.displayName;var po=rt.forwardRef(({className:e,...t},o)=>(0,$.jsx)(S.Description,{ref:o,className:a("text-sm text-gray-700",e),...t}));po.displayName=S.Description.displayName;var Ua=f(require("qrcode.react"),1);var p=require("react/jsx-runtime"),fn=({img:e="",children:t,isQrForAll:o})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"qrcode__scan__container",children:(0,p.jsxs)("div",{className:"qrcode__scan",children:[(0,p.jsx)("div",{className:"qrcode__gradient",children:(0,p.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,p.jsx)("div",{className:"qrcode__border",children:(0,p.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,p.jsx)("div",{className:"qrcode__image p-4",children:e?(0,p.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):t})]})}),(0,p.jsx)("div",{className:"mt-4 text-sm text-white",children:o?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),(0,p.jsx)("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",(0,p.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,p.jsx)("style",{children:`
2
2
  .qrcode__scan__container {
3
3
  padding: 15px;
4
4
  background-color: white;
@@ -67,7 +67,7 @@
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),qa=({className:e,children:t,title:o,shortTitle:i,qrImage:r,qrLink:l,logoQr:m,isQrForAll:c=!1,...g})=>(0,p.jsx)(Ge,{...g,children:(0,p.jsx)(Ee,{className:a("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",isRightCloseButton:!0,children:(0,p.jsx)(nt,{className:"p-0",children:(0,p.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,p.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:t||(0,p.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,p.jsx)("div",{className:"mt-1 text-gray-500 ",children:c?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,p.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,p.jsxs)("div",{className:"mt-1 text-gray-500 ",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",i||"Truy c\u1EADp ngay"]})]})]})]})}),(0,p.jsx)("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,p.jsxs)("div",{className:"px-5 py-10 text-center",children:[o&&(0,p.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:o}),(0,p.jsxs)("div",{className:"relative",children:[c&&(0,p.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,p.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,p.jsx)(pn,{img:r,isQrForAll:c,children:l&&(0,p.jsx)(Ua.default,{value:l,size:215,renderAs:"svg",imageSettings:{src:`${m||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});var Ie=f(require("react"),1),R=f(require("@radix-ui/react-alert-dialog"),1);var X=require("react/jsx-runtime"),Qa=R.Root,Za=R.Trigger,fo=R.Portal,Mt=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsx)(R.Overlay,{className:a("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:o}));Mt.displayName=R.Overlay.displayName;var go=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsxs)(fo,{children:[(0,X.jsx)(Mt,{}),(0,X.jsx)(R.Content,{ref:o,className:a("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 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-xl",e),...t})]}));go.displayName=R.Content.displayName;var uo=({className:e,...t})=>(0,X.jsx)("div",{className:a("flex flex-col space-y-2 text-left",e),...t});uo.displayName="AlertDialogHeader";var ho=({className:e,...t})=>(0,X.jsx)("div",{className:a("flex flex-row justify-end space-x-4",e),...t});ho.displayName="AlertDialogFooter";var vo=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsx)(R.Title,{ref:o,className:a("text-lg text-gray-900 font-semibold",e),...t}));vo.displayName=R.Title.displayName;var bo=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsx)(R.Description,{ref:o,className:a("text-sm text-muted-foreground",e),...t}));bo.displayName=R.Description.displayName;var xo=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsx)(R.Action,{ref:o,className:a(Ne({variant:"primary"}),"",e),...t}));xo.displayName=R.Action.displayName;var yo=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsx)(R.Cancel,{ref:o,className:a(Ne({variant:"secondary"}),e),...t}));yo.displayName=R.Cancel.displayName;var Ka=f(require("react"),1),Ya=require("@radix-ui/react-slot"),Xa=require("class-variance-authority");var Ja=require("react/jsx-runtime"),He=(0,Xa.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),he=Ka.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:i=!1,isDisabled:r=!1,...l},m)=>{let c=i?Ya.Slot:"button",g=a(He({variant:t,size:o,className:e}));return(0,Ja.jsx)(c,{className:g,disabled:r,ref:m,...l,children:l.children})});he.displayName="IconButton";var Lt=require("lucide-react");var I=require("react/jsx-runtime");function wo({current:e,total:t,onChange:o}){let i=r=>(0,I.jsx)("li",{children:(0,I.jsx)("button",{className:a(He({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>o(r),children:r})},r);return(0,I.jsx)("nav",{role:"navigation","aria-label":"pagination",className:a("mx-auto flex w-full justify-center"),children:(0,I.jsxs)("ul",{className:a("flex flex-row flex-wrap items-center gap-2"),children:[t>1&&(0,I.jsx)("li",{children:(0,I.jsx)("button",{className:a(He({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&o(e-1),children:(0,I.jsx)(Lt.ChevronLeft,{className:"h-4 w-4"})})}),t<=6?Array(t).fill(0).map((r,l)=>i(l+1)):(0,I.jsxs)(I.Fragment,{children:[i(1),e===1&&[i(2),i(3)],e>3&&(0,I.jsx)("li",{children:(0,I.jsx)("button",{className:a(He({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>o(e-3),children:"..."})}),e>2&&e!==1&&e!==t&&i(e-1),e>1&&e<t&&i(e),e<t-1&&e!==1&&i(e+1),e===t&&[i(t-2),i(t-1)],e<t-2&&e!==t&&(0,I.jsx)("button",{className:a(He({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>o(e+3),children:"..."}),i(t)]}),t>1&&(0,I.jsx)("li",{children:(0,I.jsx)("button",{className:a(He({variant:"secondary",size:"sm"})),disabled:e===t,onClick:()=>e<t&&o(e+1),children:(0,I.jsx)(Lt.ChevronRight,{className:"h-4 w-4"})})})]})})}var ei=f(require("react"),1),ve=f(require("@radix-ui/react-popover"),1);var No=require("react/jsx-runtime"),Et=ve.Root,It=ve.Trigger,st=ei.forwardRef(({className:e,align:t="center",sideOffset:o=4,...i},r)=>(0,No.jsx)(ve.Portal,{children:(0,No.jsx)(ve.Content,{ref:r,align:t,sideOffset:o,className:a("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 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),...i})}));st.displayName=ve.Content.displayName;var Ht=f(require("react"),1),ie=f(require("@radix-ui/react-tabs"),1);var _t=require("react/jsx-runtime"),ti=ie.Root,Po=Ht.forwardRef(({className:e,size:t="sm",isDivider:o=!1,...i},r)=>(0,_t.jsx)(ie.List,{ref:r,className:a("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${t}`,o&&"border-b border-gray-200",e),...i}));Po.displayName=ie.List.displayName;var Co=Ht.forwardRef(({className:e,...t},o)=>(0,_t.jsx)(ie.Trigger,{ref:o,className:a("inline-flex items-center justify-center whitespace-nowrap h-8 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...t}));Co.displayName=ie.Trigger.displayName;var Ro=Ht.forwardRef(({className:e,...t},o)=>(0,_t.jsx)(ie.Content,{ref:o,className:a("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...t}));Ro.displayName=ie.Content.displayName;var oi=require("react"),ai=require("@heroicons/react/24/outline"),ii=require("@heroicons/react/24/solid");var ne=require("react/jsx-runtime"),ri=(0,oi.forwardRef)(({disabled:e,isError:t,message:o,label:i,className:r,inputClassName:l,size:m,rows:c=3,...g},y)=>(0,ne.jsxs)("div",{className:a("relative",r,t&&"mobase-text-area-error"),children:[i&&(0,ne.jsx)("span",{className:a("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",m===2&&" -top-2.5 text-sm"),children:i}),(0,ne.jsx)("textarea",{disabled:e,ref:y,className:a("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",m===2&&"text-base",l),rows:c,...g}),o&&(0,ne.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[t?(0,ne.jsx)(ii.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ne.jsx)(ai.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ne.jsx)("span",{className:a("text-gray-500 ",m===2?"text-sm":"text-xs"),children:o})]}),(0,ne.jsx)("style",{children:`
70
+ `})]}),qa=({className:e,children:t,title:o,shortTitle:i,qrImage:r,qrLink:l,logoQr:m,isQrForAll:c=!1,...g})=>(0,p.jsx)(Ge,{...g,children:(0,p.jsx)(Ee,{className:a("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",isRightCloseButton:!0,children:(0,p.jsx)(nt,{className:"p-0",children:(0,p.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,p.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:t||(0,p.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,p.jsx)("div",{className:"mt-1 text-gray-500 ",children:c?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,p.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,p.jsxs)("div",{className:"mt-1 text-gray-500 ",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",i||"Truy c\u1EADp ngay"]})]})]})]})}),(0,p.jsx)("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,p.jsxs)("div",{className:"px-5 py-10 text-center",children:[o&&(0,p.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:o}),(0,p.jsxs)("div",{className:"relative",children:[c&&(0,p.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,p.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,p.jsx)(fn,{img:r,isQrForAll:c,children:l&&(0,p.jsx)(Ua.default,{value:l,size:215,renderAs:"svg",imageSettings:{src:`${m||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});var Ie=f(require("react"),1),R=f(require("@radix-ui/react-alert-dialog"),1);var X=require("react/jsx-runtime"),Qa=R.Root,Za=R.Trigger,fo=R.Portal,Mt=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsx)(R.Overlay,{className:a("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:o}));Mt.displayName=R.Overlay.displayName;var go=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsxs)(fo,{children:[(0,X.jsx)(Mt,{}),(0,X.jsx)(R.Content,{ref:o,className:a("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 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-xl",e),...t})]}));go.displayName=R.Content.displayName;var uo=({className:e,...t})=>(0,X.jsx)("div",{className:a("flex flex-col space-y-2 text-left",e),...t});uo.displayName="AlertDialogHeader";var ho=({className:e,...t})=>(0,X.jsx)("div",{className:a("flex flex-row justify-end space-x-4",e),...t});ho.displayName="AlertDialogFooter";var vo=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsx)(R.Title,{ref:o,className:a("text-lg text-gray-900 font-semibold",e),...t}));vo.displayName=R.Title.displayName;var bo=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsx)(R.Description,{ref:o,className:a("text-sm text-muted-foreground",e),...t}));bo.displayName=R.Description.displayName;var xo=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsx)(R.Action,{ref:o,className:a(Ne({variant:"primary"}),"",e),...t}));xo.displayName=R.Action.displayName;var yo=Ie.forwardRef(({className:e,...t},o)=>(0,X.jsx)(R.Cancel,{ref:o,className:a(Ne({variant:"secondary"}),e),...t}));yo.displayName=R.Cancel.displayName;var Ka=f(require("react"),1),Ya=require("@radix-ui/react-slot"),Xa=require("class-variance-authority");var Ja=require("react/jsx-runtime"),He=(0,Xa.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),he=Ka.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:i=!1,isDisabled:r=!1,...l},m)=>{let c=i?Ya.Slot:"button",g=a(He({variant:t,size:o,className:e}));return(0,Ja.jsx)(c,{className:g,disabled:r,ref:m,...l,children:l.children})});he.displayName="IconButton";var Lt=require("lucide-react");var I=require("react/jsx-runtime");function wo({current:e,total:t,onChange:o}){let i=r=>(0,I.jsx)("li",{children:(0,I.jsx)("button",{className:a(He({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>o(r),children:r})},r);return(0,I.jsx)("nav",{role:"navigation","aria-label":"pagination",className:a("mx-auto flex w-full justify-center"),children:(0,I.jsxs)("ul",{className:a("flex flex-row flex-wrap items-center gap-2"),children:[t>1&&(0,I.jsx)("li",{children:(0,I.jsx)("button",{className:a(He({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&o(e-1),children:(0,I.jsx)(Lt.ChevronLeft,{className:"h-4 w-4"})})}),t<=6?Array(t).fill(0).map((r,l)=>i(l+1)):(0,I.jsxs)(I.Fragment,{children:[i(1),e===1&&[i(2),i(3)],e>3&&(0,I.jsx)("li",{children:(0,I.jsx)("button",{className:a(He({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>o(e-3),children:"..."})}),e>2&&e!==1&&e!==t&&i(e-1),e>1&&e<t&&i(e),e<t-1&&e!==1&&i(e+1),e===t&&[i(t-2),i(t-1)],e<t-2&&e!==t&&(0,I.jsx)("button",{className:a(He({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>o(e+3),children:"..."}),i(t)]}),t>1&&(0,I.jsx)("li",{children:(0,I.jsx)("button",{className:a(He({variant:"secondary",size:"sm"})),disabled:e===t,onClick:()=>e<t&&o(e+1),children:(0,I.jsx)(Lt.ChevronRight,{className:"h-4 w-4"})})})]})})}var ei=f(require("react"),1),ve=f(require("@radix-ui/react-popover"),1);var No=require("react/jsx-runtime"),Et=ve.Root,It=ve.Trigger,st=ei.forwardRef(({className:e,align:t="center",sideOffset:o=4,...i},r)=>(0,No.jsx)(ve.Portal,{children:(0,No.jsx)(ve.Content,{ref:r,align:t,sideOffset:o,className:a("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 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),...i})}));st.displayName=ve.Content.displayName;var Ht=f(require("react"),1),ie=f(require("@radix-ui/react-tabs"),1);var _t=require("react/jsx-runtime"),ti=ie.Root,Po=Ht.forwardRef(({className:e,size:t="sm",isDivider:o=!1,...i},r)=>(0,_t.jsx)(ie.List,{ref:r,className:a("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${t}`,o&&"border-b border-gray-200",e),...i}));Po.displayName=ie.List.displayName;var Co=Ht.forwardRef(({className:e,...t},o)=>(0,_t.jsx)(ie.Trigger,{ref:o,className:a("inline-flex items-center justify-center whitespace-nowrap h-8 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...t}));Co.displayName=ie.Trigger.displayName;var Ro=Ht.forwardRef(({className:e,...t},o)=>(0,_t.jsx)(ie.Content,{ref:o,className:a("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...t}));Ro.displayName=ie.Content.displayName;var oi=require("react"),ai=require("@heroicons/react/24/outline"),ii=require("@heroicons/react/24/solid");var ne=require("react/jsx-runtime"),ri=(0,oi.forwardRef)(({disabled:e,isError:t,message:o,label:i,className:r,inputClassName:l,size:m,rows:c=3,...g},y)=>(0,ne.jsxs)("div",{className:a("relative",r,t&&"mobase-text-area-error"),children:[i&&(0,ne.jsx)("span",{className:a("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",m===2&&" -top-2.5 text-sm"),children:i}),(0,ne.jsx)("textarea",{disabled:e,ref:y,className:a("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",m===2&&"text-base",l),rows:c,...g}),o&&(0,ne.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[t?(0,ne.jsx)(ii.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ne.jsx)(ai.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ne.jsx)("span",{className:a("text-gray-500 ",m===2?"text-sm":"text-xs"),children:o})]}),(0,ne.jsx)("style",{children:`
71
71
  .mobase-text-area-box:hover {
72
72
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
73
73
  }
@@ -94,7 +94,7 @@
94
94
  color: rgb(var(--mobase-red-500) / 1);
95
95
  }
96
96
  }
97
- `})]}));var Vt=f(require("react"),1),fn=1,gn=1e6;var To=0;function un(){return To=(To+1)%Number.MAX_SAFE_INTEGER,To.toString()}var ko=new Map,ni=e=>{if(ko.has(e))return;let t=setTimeout(()=>{ko.delete(e),lt({type:"REMOVE_TOAST",toastId:e})},gn);ko.set(e,t)},hn=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,fn)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{let{toastId:o}=t;return o?ni(o):e.toasts.forEach(i=>{ni(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===o||o===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};default:return e}},Bt=[],Ot={toasts:[]};function lt(e){Ot=hn(Ot,e),Bt.forEach(t=>{t(Ot)})}function Do({...e}){let t=un(),o=r=>lt({type:"UPDATE_TOAST",toast:{...r,id:t}}),i=()=>lt({type:"DISMISS_TOAST",toastId:t});return lt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||i()}}}),{id:t,dismiss:i,update:o}}function zt(){let[e,t]=Vt.useState(Ot);return Vt.useEffect(()=>(Bt.push(t),()=>{let o=Bt.indexOf(t);o>-1&&Bt.splice(o,1)}),[e]),{...e,toast:Do,dismiss:o=>lt({type:"DISMISS_TOAST",toastId:o})}}var _e=f(require("react"),1),M=f(require("@radix-ui/react-toast"),1),si=require("class-variance-authority");var Pe=require("@heroicons/react/20/solid"),q=require("react/jsx-runtime"),li=M.Provider,So=_e.forwardRef(({className:e,...t},o)=>(0,q.jsx)(M.Viewport,{ref:o,className:a("fixed bottom-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 left-0 sm:right-0 sm:left-auto sm:top-0 sm:bottom-auto sm:flex-col md:max-w-[420px]",e),...t}));So.displayName=M.Viewport.displayName;var vn=(0,si.cva)("group pointer-events-auto relative w-full overflow-hidden rounded-md border py-4 pr-10 pl-10 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full bg-white text-gray-900 border border-gray-200 border-l-4",{variants:{variant:{sucess:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"sucess"}}),Ao=_e.forwardRef(({className:e,variant:t="sucess",children:o,...i},r)=>(0,q.jsxs)(M.Root,{ref:r,className:a(vn({variant:t}),e),...i,children:[(0,q.jsxs)("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[t==="sucess"&&(0,q.jsx)(Pe.CheckCircleIcon,{className:"w-5 h-5 text-green-500"}),t==="warning"&&(0,q.jsx)(Pe.ExclamationTriangleIcon,{className:"w-5 h-5 text-yellow-500"}),t==="error"&&(0,q.jsx)(Pe.InformationCircleIcon,{className:"w-5 h-5 text-red-500"})]}),o]}));Ao.displayName=M.Root.displayName;var Mo=_e.forwardRef(({className:e,...t},o)=>(0,q.jsx)(M.Action,{ref:o,className:a("inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-0 focus:ring-ring focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 text-blue-600 hover:underline mt-2",e),...t}));Mo.displayName=M.Action.displayName;var Lo=_e.forwardRef(({className:e,...t},o)=>(0,q.jsx)(M.Close,{ref:o,className:a("absolute right-2 top-2 rounded-md transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2 text-gray-800 w-8 h-8 flex items-center justify-center",e),"toast-close":"",...t,children:(0,q.jsx)(Pe.XMarkIcon,{className:"h-5 w-5"})}));Lo.displayName=M.Close.displayName;var Eo=_e.forwardRef(({className:e,...t},o)=>(0,q.jsx)(M.Title,{ref:o,className:a("text-base font-semibold leading-tight",e),...t}));Eo.displayName=M.Title.displayName;var Io=_e.forwardRef(({className:e,...t},o)=>(0,q.jsx)(M.Description,{ref:o,className:a("text-sm opacity-90",e),...t}));Io.displayName=M.Description.displayName;var be=require("react/jsx-runtime");function mi(){let{toasts:e}=zt();return(0,be.jsxs)(li,{children:[e.map(function({id:t,title:o,description:i,action:r,...l}){return(0,be.jsxs)(Ao,{...l,children:[(0,be.jsxs)("div",{className:"grid gap-2",children:[o&&(0,be.jsx)(Eo,{children:o}),i&&(0,be.jsx)(Io,{children:i})]}),r,(0,be.jsx)(Lo,{})]},t)}),(0,be.jsx)(So,{})]})}var ci=f(require("react"),1),di=require("@radix-ui/react-slot"),pi=require("class-variance-authority");var fi=require("react/jsx-runtime"),Ho=(0,pi.cva)("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),mt=ci.forwardRef(({className:e,variant:t="default",size:o="default",asChild:i=!1,isDisabled:r=!1,...l},m)=>{let c=i?di.Slot:"button",g=a(Ho({variant:t,size:o,className:e}));return(0,fi.jsx)(c,{className:g,disabled:r,ref:m,...l,children:l.children})});mt.displayName="TextButton";var _o=f(require("react"),1),J=f(require("@radix-ui/react-tooltip"),1);var Vo=require("react/jsx-runtime"),gi=J.Provider,ui=J.Root,hi=J.Trigger,Bo=_o.forwardRef((e,t)=>(0,Vo.jsx)(J.Arrow,{ref:t,className:a("drop-shadow-md",e.className),...e}));Bo.displayName=J.Arrow.displayName;var Oo=_o.forwardRef(({className:e,type:t="dark",sideOffset:o=4,...i},r)=>(0,Vo.jsx)(J.Content,{ref:r,sideOffset:o,className:a("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",t==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...i}));Oo.displayName=J.Content.displayName;var Ce=require("react"),Ue=require("@heroicons/react/16/solid");var Q=require("react/jsx-runtime"),vi=(0,Ce.forwardRef)(({disabled:e,isError:t,message:o,label:i,className:r,inputClassName:l,withClearButton:m,size:c,onChange:g,onFocus:y,onClickClear:P,value:v,defaultValue:D,type:B="text",...C},N)=>{let[O,H]=(0,Ce.useState)(!1),Me=(0,Ce.useRef)(null),A=E=>{E&&!O&&H(!0),!E&&O&&H(!1)},Rt=E=>{m&&A(E.target.value),g?.(E)},Ke=E=>{m&&A(E.target.value),y?.(E)},Ye=()=>{let E=Me.current?.querySelector("input");E&&(P?.(E.value),E.value="",E.focus(),H(!1))};return(0,Ce.useEffect)(()=>{A(D||v)},[v,D]),(0,Q.jsxs)("div",{className:a(r,t&&"mobase-text-input-error"),ref:Me,children:[(0,Q.jsxs)("div",{className:"relative",children:[i&&(0,Q.jsx)("span",{className:a("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",c===2&&" -top-2.5 text-sm"),children:i}),(0,Q.jsx)("input",{disabled:e,type:B,ref:N,className:a("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",c===2&&"h-12 text-base",l),onChange:Rt,onFocus:Ke,value:v,defaultValue:D,...C}),m&&O&&(0,Q.jsx)("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:Ye,children:(0,Q.jsx)(Ue.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),o&&(0,Q.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[t?(0,Q.jsx)(Ue.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Q.jsx)(Ue.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Q.jsx)("span",{className:a("text-gray-500 ",c===2?"text-sm":"text-xs"),children:o})]}),(0,Q.jsx)("style",{children:`
97
+ `})]}));var Vt=f(require("react"),1),gn=1,un=1e6;var To=0;function hn(){return To=(To+1)%Number.MAX_SAFE_INTEGER,To.toString()}var ko=new Map,ni=e=>{if(ko.has(e))return;let t=setTimeout(()=>{ko.delete(e),lt({type:"REMOVE_TOAST",toastId:e})},un);ko.set(e,t)},vn=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,gn)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{let{toastId:o}=t;return o?ni(o):e.toasts.forEach(i=>{ni(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===o||o===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};default:return e}},Bt=[],Ot={toasts:[]};function lt(e){Ot=vn(Ot,e),Bt.forEach(t=>{t(Ot)})}function Do({...e}){let t=hn(),o=r=>lt({type:"UPDATE_TOAST",toast:{...r,id:t}}),i=()=>lt({type:"DISMISS_TOAST",toastId:t});return lt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||i()}}}),{id:t,dismiss:i,update:o}}function zt(){let[e,t]=Vt.useState(Ot);return Vt.useEffect(()=>(Bt.push(t),()=>{let o=Bt.indexOf(t);o>-1&&Bt.splice(o,1)}),[e]),{...e,toast:Do,dismiss:o=>lt({type:"DISMISS_TOAST",toastId:o})}}var _e=f(require("react"),1),M=f(require("@radix-ui/react-toast"),1),si=require("class-variance-authority");var Pe=require("@heroicons/react/20/solid"),q=require("react/jsx-runtime"),li=M.Provider,So=_e.forwardRef(({className:e,...t},o)=>(0,q.jsx)(M.Viewport,{ref:o,className:a("fixed bottom-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 left-0 sm:right-0 sm:left-auto sm:top-0 sm:bottom-auto sm:flex-col md:max-w-[420px]",e),...t}));So.displayName=M.Viewport.displayName;var bn=(0,si.cva)("group pointer-events-auto relative w-full overflow-hidden rounded-md border py-4 pr-10 pl-10 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full bg-white text-gray-900 border border-gray-200 border-l-4",{variants:{variant:{sucess:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"sucess"}}),Ao=_e.forwardRef(({className:e,variant:t="sucess",children:o,...i},r)=>(0,q.jsxs)(M.Root,{ref:r,className:a(bn({variant:t}),e),...i,children:[(0,q.jsxs)("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[t==="sucess"&&(0,q.jsx)(Pe.CheckCircleIcon,{className:"w-5 h-5 text-green-500"}),t==="warning"&&(0,q.jsx)(Pe.ExclamationTriangleIcon,{className:"w-5 h-5 text-yellow-500"}),t==="error"&&(0,q.jsx)(Pe.InformationCircleIcon,{className:"w-5 h-5 text-red-500"})]}),o]}));Ao.displayName=M.Root.displayName;var Mo=_e.forwardRef(({className:e,...t},o)=>(0,q.jsx)(M.Action,{ref:o,className:a("inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-0 focus:ring-ring focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 text-blue-600 hover:underline mt-2",e),...t}));Mo.displayName=M.Action.displayName;var Lo=_e.forwardRef(({className:e,...t},o)=>(0,q.jsx)(M.Close,{ref:o,className:a("absolute right-2 top-2 rounded-md transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2 text-gray-800 w-8 h-8 flex items-center justify-center",e),"toast-close":"",...t,children:(0,q.jsx)(Pe.XMarkIcon,{className:"h-5 w-5"})}));Lo.displayName=M.Close.displayName;var Eo=_e.forwardRef(({className:e,...t},o)=>(0,q.jsx)(M.Title,{ref:o,className:a("text-base font-semibold leading-tight",e),...t}));Eo.displayName=M.Title.displayName;var Io=_e.forwardRef(({className:e,...t},o)=>(0,q.jsx)(M.Description,{ref:o,className:a("text-sm opacity-90",e),...t}));Io.displayName=M.Description.displayName;var be=require("react/jsx-runtime");function mi(){let{toasts:e}=zt();return(0,be.jsxs)(li,{children:[e.map(function({id:t,title:o,description:i,action:r,...l}){return(0,be.jsxs)(Ao,{...l,children:[(0,be.jsxs)("div",{className:"grid gap-2",children:[o&&(0,be.jsx)(Eo,{children:o}),i&&(0,be.jsx)(Io,{children:i})]}),r,(0,be.jsx)(Lo,{})]},t)}),(0,be.jsx)(So,{})]})}var ci=f(require("react"),1),di=require("@radix-ui/react-slot"),pi=require("class-variance-authority");var fi=require("react/jsx-runtime"),Ho=(0,pi.cva)("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),mt=ci.forwardRef(({className:e,variant:t="default",size:o="default",asChild:i=!1,isDisabled:r=!1,...l},m)=>{let c=i?di.Slot:"button",g=a(Ho({variant:t,size:o,className:e}));return(0,fi.jsx)(c,{className:g,disabled:r,ref:m,...l,children:l.children})});mt.displayName="TextButton";var _o=f(require("react"),1),J=f(require("@radix-ui/react-tooltip"),1);var Vo=require("react/jsx-runtime"),gi=J.Provider,ui=J.Root,hi=J.Trigger,Bo=_o.forwardRef((e,t)=>(0,Vo.jsx)(J.Arrow,{ref:t,className:a("drop-shadow-md",e.className),...e}));Bo.displayName=J.Arrow.displayName;var Oo=_o.forwardRef(({className:e,type:t="dark",sideOffset:o=4,...i},r)=>(0,Vo.jsx)(J.Content,{ref:r,sideOffset:o,className:a("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",t==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...i}));Oo.displayName=J.Content.displayName;var Ce=require("react"),Ue=require("@heroicons/react/16/solid");var Q=require("react/jsx-runtime"),vi=(0,Ce.forwardRef)(({disabled:e,isError:t,message:o,label:i,className:r,inputClassName:l,withClearButton:m,size:c,onChange:g,onFocus:y,onClickClear:P,value:v,defaultValue:D,type:B="text",...C},N)=>{let[O,H]=(0,Ce.useState)(!1),Me=(0,Ce.useRef)(null),A=E=>{E&&!O&&H(!0),!E&&O&&H(!1)},Rt=E=>{m&&A(E.target.value),g?.(E)},Ke=E=>{m&&A(E.target.value),y?.(E)},Ye=()=>{let E=Me.current?.querySelector("input");E&&(P?.(E.value),E.value="",E.focus(),H(!1))};return(0,Ce.useEffect)(()=>{A(D||v)},[v,D]),(0,Q.jsxs)("div",{className:a(r,t&&"mobase-text-input-error"),ref:Me,children:[(0,Q.jsxs)("div",{className:"relative",children:[i&&(0,Q.jsx)("span",{className:a("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",c===2&&" -top-2.5 text-sm"),children:i}),(0,Q.jsx)("input",{disabled:e,type:B,ref:N,className:a("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",c===2&&"h-12 text-base",l),onChange:Rt,onFocus:Ke,value:v,defaultValue:D,...C}),m&&O&&(0,Q.jsx)("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:Ye,children:(0,Q.jsx)(Ue.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),o&&(0,Q.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[t?(0,Q.jsx)(Ue.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Q.jsx)(Ue.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Q.jsx)("span",{className:a("text-gray-500 ",c===2?"text-sm":"text-xs"),children:o})]}),(0,Q.jsx)("style",{children:`
98
98
  .mobase-text-input-box:hover {
99
99
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
100
100
  }
@@ -117,11 +117,11 @@
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});var Ft=require("@heroicons/react/24/outline");var ee=require("react");var se=require("react/jsx-runtime"),bi=(0,ee.forwardRef)(({value:e=0,min:t=0,max:o=999,disabled:i=!1,disabledInput:r=!1,step:l=1,inputClassName:m="",stepperClassName:c="",className:g="",onChange:y=()=>{},onChangeInputStepper:P,onDecrement:v,onIncrement:D,...B},C)=>{let N=(0,ee.useRef)(null),[O,H]=(0,ee.useState)(!1),[Me,A]=(0,ee.useState)(!1),[Rt,Ke]=(0,ee.useState)(""),Ye=(0,ee.useRef)(null),E=x=>{Number(x)>=o?H(!0):H(!1),Number(x)>t?A(!1):A(!0)},Yr=()=>{if(i||O)return;let x=N?.current?.querySelector("input");if(!x)return;let G=0;G=Math.min(Number(x.value)+l,o),E(G),x.value=String(G),Ke(x.value||""),P?.(x.value),D?.(x.value)},Xr=()=>{if(i||Me)return;let x=N?.current?.querySelector("input");if(!x)return;let G=0;G=Math.max(Number(x.value)-l,0),E(G),x.value=String(G),Ke(x.value||""),P?.(x.value),v?.(x.value)},Jr=x=>{if(!x)return;let G=x?.target?.value;G?.match(/^[0-9]*$/)||(G=G.replace(/[^0-9]/g,"")),E(G);let Tt=parseInt(G,10);Number.isNaN(Tt)||Tt<t?x.target.value=String(t):Tt>=o?x.target.value=String(o):x.target.value=String(Tt),Ke(x?.target?.value||""),P?.(x.target.value),y?.(x)};return(0,ee.useEffect)(()=>{let x=N?.current?.querySelector("input");x&&E(x?.value)},[]),(0,ee.useEffect)(()=>{let x=N?.current?.querySelector("input");x&&Ye?.current&&(x.style.width=`${Ye.current.offsetWidth+10}px`)},[Rt]),(0,se.jsxs)("div",{ref:N,className:"flex items-center space-x-1",children:[(0,se.jsx)(he,{id:"btn-minus",className:a(!Me&&!i?"cursor-pointer text-pink-500":"text-gray-400 cursor-default",c),variant:"transparent",onClick:Xr,children:(0,se.jsx)(Ft.MinusCircleIcon,{className:"w-8 h-8 "})}),(0,se.jsxs)("div",{children:[(0,se.jsx)("input",{pattern:"[0-9]*",inputMode:"numeric",defaultValue:e,ref:C,min:t,max:o,onChange:x=>Jr(x),id:"numberInput",disabled:i||r,autoComplete:"off",...B,className:a("text-gray-800 min-w-7 border-gray-300 border transition-width duration-100 focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 w-7 h-7 rounded-md text-center bg-white",m)}),(0,se.jsx)("span",{ref:Ye,style:{visibility:"hidden",position:"absolute",whiteSpace:"pre"},children:Rt||" "})]}),(0,se.jsx)(he,{id:"btn-plus",className:a(!O&&!i?"cursor-pointer text-pink-500":"text-gray-400 cursor-default",c),variant:"transparent",onClick:Yr,children:(0,se.jsx)(Ft.PlusCircleIcon,{className:"w-8 h-8 "})})]})});var le=f(require("react"),1),xe=require("@heroicons/react/16/solid"),xi=require("@heroicons/react/24/outline"),h=f(require("@radix-ui/react-select"),1);var w=require("react/jsx-runtime"),yi=le.forwardRef(({className:e,children:t,label:o,message:i,size:r,isError:l,disabled:m,...c})=>(0,w.jsxs)("div",{className:a("select-mobase relative",e,m?"disabled":"",l?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[o&&(0,w.jsx)("span",{className:a("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",l&&"text-red-500"),children:o}),(0,w.jsx)(h.Root,{disabled:m,...c,children:t}),i&&(0,w.jsxs)("div",{className:a("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",l&&"text-red-500"),children:[l?(0,w.jsx)(xe.XCircleIcon,{width:16,height:16}):(0,w.jsx)(xi.QuestionMarkCircleIcon,{width:16,height:16}),(0,w.jsx)("span",{className:a(r===2?"text-sm":"text-xs"),children:i})]})]})),wi=h.Value,zo=le.forwardRef(({className:e,children:t,...o},i)=>(0,w.jsxs)(h.Trigger,{ref:i,className:a("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...o,children:[(0,w.jsx)("div",{className:"line-clamp-1 text-left",children:t}),(0,w.jsx)(h.Icon,{asChild:!0,children:(0,w.jsx)(xe.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));zo.displayName=h.Trigger.displayName;var Wt=le.forwardRef(({className:e,...t},o)=>(0,w.jsx)(h.ScrollUpButton,{ref:o,className:a("flex cursor-default items-center justify-center py-1",e),...t,children:(0,w.jsx)(xe.ChevronUpIcon,{className:"h-5 w-5"})}));Wt.displayName=h.ScrollUpButton.displayName;var $t=le.forwardRef(({className:e,...t},o)=>(0,w.jsx)(h.ScrollDownButton,{ref:o,className:a("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...t,children:(0,w.jsx)(xe.ChevronDownIcon,{className:"h-5 w-5"})}));$t.displayName=h.ScrollDownButton.displayName;var Fo=le.forwardRef(({className:e,children:t,position:o="popper",...i},r)=>(0,w.jsx)(h.Portal,{children:(0,w.jsxs)(h.Content,{ref:r,className:a("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-lg 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",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o,...i,children:[(0,w.jsx)(Wt,{}),(0,w.jsx)(h.Viewport,{className:a("p-0",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,w.jsx)($t,{})]})}));Fo.displayName=h.Content.displayName;var Ni=le.forwardRef(({className:e,children:t,...o},i)=>(0,w.jsx)(h.Group,{ref:i,className:a("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...o,children:t})),Wo=le.forwardRef(({className:e,...t},o)=>(0,w.jsx)(h.Label,{ref:o,className:a("pr-2 pl-8 py-1.5 text-sm font-semibold z-[1]",e),...t}));Wo.displayName=h.Label.displayName;var Pi=le.forwardRef(({className:e,children:t,...o},i)=>(0,w.jsxs)(h.Item,{ref:i,className:a("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,w.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,w.jsx)(h.ItemIndicator,{children:(0,w.jsx)(xe.CheckIcon,{className:"h-4 w-4"})})}),(0,w.jsx)(h.ItemText,{children:t})]})),$o=le.forwardRef(({className:e,...t},o)=>(0,w.jsx)(h.Separator,{ref:o,className:a("-mx-1 my-1 h-px bg-muted",e),...t}));$o.displayName=h.Separator.displayName;var re=f(require("react"),1),Ci=require("@heroicons/react/16/solid"),k=f(require("@radix-ui/react-navigation-menu"),1),Ri=require("class-variance-authority");var T=require("react/jsx-runtime"),Ti=re.createContext(null),bn=({value:e,children:t})=>(0,T.jsx)(Ti.Provider,{value:e,children:t}),xn=()=>{let e=re.useContext(Ti);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},ct=re.forwardRef(({className:e,children:t,alignDropdown:o="left",...i},r)=>(0,T.jsx)(bn,{value:{alignDropdown:o},children:(0,T.jsxs)(k.Root,{ref:r,className:a("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...i,children:[t,(0,T.jsx)(Di,{})]})}));ct.displayName=k.Root.displayName;var dt=re.forwardRef(({className:e,...t},o)=>(0,T.jsx)(k.List,{ref:o,className:a("group flex flex-1 list-none items-center justify-center ",e),...t}));dt.displayName=k.List.displayName;var pt=k.Item,ft=(0,Ri.cva)(Ne({variant:"transparent",size:"sm"})),gt=re.forwardRef(({className:e,children:t,...o},i)=>(0,T.jsxs)(k.Trigger,{ref:i,className:a(ft(),"group",e),...o,children:[t,(0,T.jsx)(Ci.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));gt.displayName=k.Trigger.displayName;var ut=re.forwardRef(({className:e,...t},o)=>(0,T.jsx)(k.Content,{ref:o,className:a("hidden group-data-[state=open]:block left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));ut.displayName=k.Content.displayName;var qe=k.Link,ki=re.forwardRef(({className:e,...t},o)=>{let{alignDropdown:i}=xn();return(0,T.jsx)("div",{className:a("absolute top-full flex justify-center",i==="left"&&"left-0",i==="right"&&"right-0",i==="center"&&"left-1/2 -translate-x-1/2"),children:(0,T.jsx)(k.Viewport,{className:a("origin-top-center relative mt-3.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border border-gray-200 bg-white text-gray-900 shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)] group",e),ref:o,...t})})});ki.displayName=k.Viewport.displayName;var Di=re.forwardRef(({className:e,...t},o)=>(0,T.jsxs)("div",{ref:o,children:[(0,T.jsx)(k.Indicator,{ref:o,className:a("top-full z-[1] flex h-4 items-end justify-center overflow-hidden group data-[state=visible]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=visible]:zoom-in-90",e),...t,children:(0,T.jsxs)("svg",{width:"158",height:"46",viewBox:"0 0 158 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"relative w-7 h-7 top-[9px] group-data-[state=visible]:animate-in group-data-[state=closed]:animate-out group-data-[state=closed]:zoom-out-95 group-data-[state=visible]:zoom-in-90",children:[(0,T.jsxs)("g",{"clip-path":"url(#clip0_782_2)",children:[(0,T.jsx)("path",{d:"M70.9519 9.1982L55.1105 25.0396C47.3839 32.7662 43.5206 36.6295 39.0121 39.3923C35.015 41.8418 30.6572 43.6468 26.0987 44.7412C20.9572 45.9756 15.4937 45.9756 4.56665 45.9756H153.132C142.205 45.9756 136.742 45.9756 131.6 44.7412C127.042 43.6468 122.684 41.8418 118.687 39.3923C114.178 36.6295 110.315 32.7662 102.588 25.0396L86.7468 9.1982C82.3852 4.8365 75.3136 4.8365 70.9519 9.1982Z",fill:"white"}),(0,T.jsx)("path",{d:"M153.132 40.3912C141.939 40.3912 137.253 40.3553 132.904 39.3112C128.915 38.3536 125.102 36.7741 121.605 34.6309C117.791 32.2938 114.452 29.0054 106.537 21.0909L90.6957 5.2494C84.1532 -1.293 73.5457 -1.293 67.0033 5.2495L51.1618 21.0909C43.2473 29.0054 39.9082 32.2938 36.0944 34.6309C32.5969 36.7741 28.7838 38.3536 24.7952 39.3112C20.4458 40.3553 15.7596 40.3912 4.56672 40.3912H0.668457V45.9756H4.56672C15.4938 45.9756 20.9573 45.9756 26.0988 44.7412C30.6573 43.6468 35.0151 41.8418 39.0122 39.3923C43.5207 36.6295 47.384 32.7662 55.1106 25.0396L70.952 9.1982C75.3137 4.8365 82.3853 4.8365 86.7469 9.1982L102.588 25.0396C110.315 32.7662 114.178 36.6295 118.687 39.3923C122.684 41.8418 127.042 43.6468 131.6 44.7412C136.742 45.9756 142.205 45.9756 153.132 45.9756H157.03V40.3912H153.132Z",fill:"#E5E5E5"})]}),(0,T.jsx)("defs",{children:(0,T.jsx)("clipPath",{id:"clip0_782_2",children:(0,T.jsx)("rect",{width:"158",height:"46",fill:"white",transform:"matrix(1 0 0 -1 0 46)"})})})]})}),(0,T.jsx)(k.Indicator,{...t,children:(0,T.jsx)(ki,{})})]}));Di.displayName=k.Indicator.displayName;var Si=f(require("react"),1),ht=f(require("@radix-ui/react-switch"),1);var jo=require("react/jsx-runtime"),Go=Si.forwardRef(({className:e,...t},o)=>(0,jo.jsx)(ht.Root,{className:a("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...t,ref:o,children:(0,jo.jsx)(ht.Thumb,{className:a("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Go.displayName=ht.Root.displayName;var Uo=f(require("react"),1),Re=f(require("@radix-ui/react-radio-group"),1),Ai=require("lucide-react");var Mi=require("class-variance-authority"),vt=require("react/jsx-runtime"),yn=(0,Mi.cva)("grid cursor-pointer gap-2 text-gray-900 text-sm",{variants:{orientation:{horizontal:"grid-cols-2",vertical:"grid-cols-1"}},defaultVariants:{orientation:"vertical"}}),qo=Uo.forwardRef(({disabled:e,orientation:t,className:o,...i},r)=>(0,vt.jsx)(Re.Root,{className:a("",yn({orientation:t}),o),...i,ref:r}));qo.displayName=Re.Root.displayName;var Qo=Uo.forwardRef(({className:e,...t},o)=>(0,vt.jsx)(Re.Item,{ref:o,className:a("aspect-square h-4 w-4 rounded-full border border-gray-700 disabled:bg-gray-300 disabled:data-[state=checked]:text-gray-500 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-300 data-[state=checked]:bg-pink-500 disabled:border-none data-[state=checked]:border-none text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-40",e),...t,children:(0,vt.jsx)(Re.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,vt.jsx)(Ai.Circle,{className:"h-2 w-2 fill-current text-current"})})}));Qo.displayName=Re.Item.displayName;var Wi=require("react");var Ko=f(require("next/link"),1);var me=require("react/jsx-runtime"),wn=({className:e="",icon:t="",title:o,children:i="",href:r="",newTab:l=!1})=>{let m=l?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,me.jsx)("li",{className:"",children:(0,me.jsx)(qe,{asChild:!0,children:(0,me.jsxs)("a",{className:a(" select-none space-y-1 rounded-md px-2.5 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 items-center min-h-9",e),href:r,...m,children:[t&&(0,me.jsx)("div",{className:"w-7 h-7 shrink-0",children:(0,me.jsx)("img",{src:t,loading:"lazy",className:"w-7 h-7 object-cover",alt:o})}),(0,me.jsxs)("div",{className:" ",children:[(0,me.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:o}),i&&(0,me.jsx)("p",{className:"line-clamp-1 text-xs mt-1 text-gray-500",children:i})]})]})})})},Li=wn;var Ei=f(require("next/link"),1),te=require("react/jsx-runtime"),Nn=({data:e})=>(0,te.jsx)(ct,{children:(0,te.jsx)(dt,{children:e.map(t=>{let o=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,te.jsxs)(pt,{children:[(0,te.jsx)(gt,{children:t.title}),(0,te.jsx)(ut,{children:(0,te.jsx)("ul",{className:a(t.dropDownCompact===!0?"grid gap-1 p-2.5 w-[540px] md:grid-cols-2 ":"grid w-[250px] gap-1 p-2.5 grid-cols-1"),children:t.subMenu&&t.subMenu.map(i=>(0,te.jsx)(Li,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):(0,te.jsx)(pt,{children:(0,te.jsx)(Ei.default,{href:t.url,legacyBehavior:!0,passHref:!0,children:(0,te.jsx)(qe,{className:ft(),...o,children:t.title})})},t.id)})})}),Ii=Nn;var Gt=require("react");var jt=[.24,.25,.05,1];var zi=require("react-use"),Zo=f(require("next/router"),1);var Hi=f(require("next/link"),1),ye=require("react/jsx-runtime"),Pn=({className:e="",icon:t="",title:o,children:i="",href:r="",newTab:l=!1})=>{let m=l?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ye.jsx)("li",{className:"",children:(0,ye.jsxs)(Hi.default,{className:a(" select-none py-2 flex flex-nowrap space-x-2 items-center",e),href:r,...m,children:[t&&(0,ye.jsx)("div",{className:"w-7 h-7 shrink-0",children:(0,ye.jsx)("img",{src:t,loading:"lazy",className:"w-7 h-7 object-cover",alt:o})}),(0,ye.jsxs)("div",{className:" ",children:[(0,ye.jsx)("div",{className:"text-sm text-gray-800 leading-none",children:o}),i&&(0,ye.jsx)("p",{className:"line-clamp-1 text-xs mt-1 text-gray-500",children:i})]})]})})},_i=Pn;var Bi=f(require("next/link"),1),Oi=require("framer-motion"),ce=require("react/jsx-runtime"),Cn={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:jt}},exit:{opacity:0,transition:{duration:.05}}},Rn=({data:e})=>(0,ce.jsx)(et,{type:"single",collapsible:!0,children:e.map(t=>{let o=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ce.jsx)(Oi.motion.div,{variants:Cn,children:t.hasDropdown?(0,ce.jsxs)(tt,{value:t.id,children:[(0,ce.jsx)(ot,{className:"py-3",children:t.title}),(0,ce.jsx)(at,{children:(0,ce.jsx)("ul",{className:a("grid gap-1 grid-cols-1"),children:t.subMenu&&t.subMenu.map(i=>(0,ce.jsx)(_i,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]}):(0,ce.jsx)(Bi.default,{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:t.url,...o,children:t.title})},t.id)})}),Vi=Rn;var Be=f(require("next/link"),1),de=require("framer-motion");var d=require("react/jsx-runtime"),Tn=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,kn=({data:e,className:t})=>{let[o,i]=(0,Gt.useState)(!1);(0,zi.useKey)("Escape",()=>i(!1)),(0,Gt.useEffect)(()=>{if(!o)return;let m=Tn();function c(){i(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Zo.default.events.on("routeChangeComplete",c),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"}),Zo.default.events.off("routeChangeComplete",c)}},[o]);let r={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:jt}},exit:{opacity:0,transition:{duration:.15}}};return(0,d.jsxs)("div",{className:a(t),children:[(0,d.jsxs)("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>i(!o),children:[(0,d.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,d.jsx)(de.motion.div,{animate:o?"hidden":"visible",variants:r,children:(0,d.jsx)("svg",{className:a("block w-7 h-7",o&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,d.jsx)(de.motion.div,{animate:o?"visible":"hidden",variants:r,children:(0,d.jsx)("svg",{className:a("block w-7 h-7",!o&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,d.jsx)(de.LazyMotion,{features:de.domAnimation,children:(0,d.jsx)(de.AnimatePresence,{mode:"wait",children:o&&(0,d.jsxs)(de.motion.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:a(t,"fixed block w-full max-w-full z-50 px-5 bg-white left-0 right-0 bottom-0 overflow-y-auto top-[calc(var(--header-height)+1px)] "),children:[(0,d.jsx)(Vi,{data:e}),(0,d.jsxs)("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[(0,d.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,d.jsxs)("div",{className:"flex flex-nowrap",children:[(0,d.jsx)("div",{className:"flex-initial",children:(0,d.jsx)(Be.default,{href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",legacyBehavior:!0,children:(0,d.jsx)("a",{className:"link-white",target:"_blank",children:(0,d.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})}),(0,d.jsx)("div",{className:"ml-3 flex-initial",children:(0,d.jsx)(Be.default,{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",legacyBehavior:!0,children:(0,d.jsx)("a",{className:"link-white",target:"_blank",children:(0,d.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})})]}),(0,d.jsx)("h4",{className:"mb-2 mt-5 text-tiny font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,d.jsxs)("ul",{className:"mb-2 text-tiny text-gray-500",children:[(0,d.jsxs)("li",{className:"mb-1",children:["Hotline :",(0,d.jsx)(Be.default,{href:`tel:${ge.Support.Hotline}`,legacyBehavior:!0,children:(0,d.jsx)("a",{className:"text-gray-600",children:ge.Support.Hotline_Format})})]}),(0,d.jsxs)("li",{className:"mb-1",children:["Email:",(0,d.jsx)(Be.default,{href:`mailto:${ge.Support.Email}`,legacyBehavior:!0,children:(0,d.jsx)("a",{className:"text-gray-600",children:ge.Support.Email})})]})]}),(0,d.jsx)("a",{href:"https://momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,d.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[(0,d.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,d.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,d.jsxs)("g",{children:[(0,d.jsx)("title",{children:"Asset 1"}),(0,d.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
120
+ `})]})});var Ft=require("@heroicons/react/24/outline");var ee=require("react");var se=require("react/jsx-runtime"),bi=(0,ee.forwardRef)(({value:e=0,min:t=0,max:o=999,disabled:i=!1,disabledInput:r=!1,step:l=1,inputClassName:m="",stepperClassName:c="",className:g="",onChange:y=()=>{},onChangeInputStepper:P,onDecrement:v,onIncrement:D,...B},C)=>{let N=(0,ee.useRef)(null),[O,H]=(0,ee.useState)(!1),[Me,A]=(0,ee.useState)(!1),[Rt,Ke]=(0,ee.useState)(""),Ye=(0,ee.useRef)(null),E=x=>{Number(x)>=o?H(!0):H(!1),Number(x)>t?A(!1):A(!0)},Xr=()=>{if(i||O)return;let x=N?.current?.querySelector("input");if(!x)return;let G=0;G=Math.min(Number(x.value)+l,o),E(G),x.value=String(G),Ke(x.value||""),P?.(x.value),D?.(x.value)},Jr=()=>{if(i||Me)return;let x=N?.current?.querySelector("input");if(!x)return;let G=0;G=Math.max(Number(x.value)-l,0),E(G),x.value=String(G),Ke(x.value||""),P?.(x.value),v?.(x.value)},en=x=>{if(!x)return;let G=x?.target?.value;G?.match(/^[0-9]*$/)||(G=G.replace(/[^0-9]/g,"")),E(G);let Tt=parseInt(G,10);Number.isNaN(Tt)||Tt<t?x.target.value=String(t):Tt>=o?x.target.value=String(o):x.target.value=String(Tt),Ke(x?.target?.value||""),P?.(x.target.value),y?.(x)};return(0,ee.useEffect)(()=>{let x=N?.current?.querySelector("input");x&&E(x?.value)},[]),(0,ee.useEffect)(()=>{let x=N?.current?.querySelector("input");x&&Ye?.current&&(x.style.width=`${Ye.current.offsetWidth+10}px`)},[Rt]),(0,se.jsxs)("div",{ref:N,className:"flex items-center space-x-1",children:[(0,se.jsx)(he,{id:"btn-minus",className:a(!Me&&!i?"cursor-pointer text-pink-500":"text-gray-400 cursor-default",c),variant:"transparent",onClick:Jr,children:(0,se.jsx)(Ft.MinusCircleIcon,{className:"w-8 h-8 "})}),(0,se.jsxs)("div",{children:[(0,se.jsx)("input",{pattern:"[0-9]*",inputMode:"numeric",defaultValue:e,ref:C,min:t,max:o,onChange:x=>en(x),id:"numberInput",disabled:i||r,autoComplete:"off",...B,className:a("text-gray-800 min-w-7 border-gray-300 border transition-width duration-100 focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 w-7 h-7 rounded-md text-center bg-white",m)}),(0,se.jsx)("span",{ref:Ye,style:{visibility:"hidden",position:"absolute",whiteSpace:"pre"},children:Rt||" "})]}),(0,se.jsx)(he,{id:"btn-plus",className:a(!O&&!i?"cursor-pointer text-pink-500":"text-gray-400 cursor-default",c),variant:"transparent",onClick:Xr,children:(0,se.jsx)(Ft.PlusCircleIcon,{className:"w-8 h-8 "})})]})});var le=f(require("react"),1),xe=require("@heroicons/react/16/solid"),xi=require("@heroicons/react/24/outline"),h=f(require("@radix-ui/react-select"),1);var w=require("react/jsx-runtime"),yi=le.forwardRef(({className:e,children:t,label:o,message:i,size:r,isError:l,disabled:m,...c})=>(0,w.jsxs)("div",{className:a("select-mobase relative",e,m?"disabled":"",l?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[o&&(0,w.jsx)("span",{className:a("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",l&&"text-red-500"),children:o}),(0,w.jsx)(h.Root,{disabled:m,...c,children:t}),i&&(0,w.jsxs)("div",{className:a("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",l&&"text-red-500"),children:[l?(0,w.jsx)(xe.XCircleIcon,{width:16,height:16}):(0,w.jsx)(xi.QuestionMarkCircleIcon,{width:16,height:16}),(0,w.jsx)("span",{className:a(r===2?"text-sm":"text-xs"),children:i})]})]})),wi=h.Value,zo=le.forwardRef(({className:e,children:t,...o},i)=>(0,w.jsxs)(h.Trigger,{ref:i,className:a("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...o,children:[(0,w.jsx)("div",{className:"line-clamp-1 text-left",children:t}),(0,w.jsx)(h.Icon,{asChild:!0,children:(0,w.jsx)(xe.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));zo.displayName=h.Trigger.displayName;var Wt=le.forwardRef(({className:e,...t},o)=>(0,w.jsx)(h.ScrollUpButton,{ref:o,className:a("flex cursor-default items-center justify-center py-1",e),...t,children:(0,w.jsx)(xe.ChevronUpIcon,{className:"h-5 w-5"})}));Wt.displayName=h.ScrollUpButton.displayName;var $t=le.forwardRef(({className:e,...t},o)=>(0,w.jsx)(h.ScrollDownButton,{ref:o,className:a("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...t,children:(0,w.jsx)(xe.ChevronDownIcon,{className:"h-5 w-5"})}));$t.displayName=h.ScrollDownButton.displayName;var Fo=le.forwardRef(({className:e,children:t,position:o="popper",...i},r)=>(0,w.jsx)(h.Portal,{children:(0,w.jsxs)(h.Content,{ref:r,className:a("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-lg 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",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o,...i,children:[(0,w.jsx)(Wt,{}),(0,w.jsx)(h.Viewport,{className:a("p-0",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,w.jsx)($t,{})]})}));Fo.displayName=h.Content.displayName;var Ni=le.forwardRef(({className:e,children:t,...o},i)=>(0,w.jsx)(h.Group,{ref:i,className:a("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...o,children:t})),Wo=le.forwardRef(({className:e,...t},o)=>(0,w.jsx)(h.Label,{ref:o,className:a("pr-2 pl-8 py-1.5 text-sm font-semibold z-[1]",e),...t}));Wo.displayName=h.Label.displayName;var Pi=le.forwardRef(({className:e,children:t,...o},i)=>(0,w.jsxs)(h.Item,{ref:i,className:a("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,w.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,w.jsx)(h.ItemIndicator,{children:(0,w.jsx)(xe.CheckIcon,{className:"h-4 w-4"})})}),(0,w.jsx)(h.ItemText,{children:t})]})),$o=le.forwardRef(({className:e,...t},o)=>(0,w.jsx)(h.Separator,{ref:o,className:a("-mx-1 my-1 h-px bg-muted",e),...t}));$o.displayName=h.Separator.displayName;var re=f(require("react"),1),Ci=require("@heroicons/react/16/solid"),k=f(require("@radix-ui/react-navigation-menu"),1),Ri=require("class-variance-authority");var T=require("react/jsx-runtime"),Ti=re.createContext(null),xn=({value:e,children:t})=>(0,T.jsx)(Ti.Provider,{value:e,children:t}),yn=()=>{let e=re.useContext(Ti);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},ct=re.forwardRef(({className:e,children:t,alignDropdown:o="left",...i},r)=>(0,T.jsx)(xn,{value:{alignDropdown:o},children:(0,T.jsxs)(k.Root,{ref:r,className:a("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...i,children:[t,(0,T.jsx)(Di,{})]})}));ct.displayName=k.Root.displayName;var dt=re.forwardRef(({className:e,...t},o)=>(0,T.jsx)(k.List,{ref:o,className:a("group flex flex-1 list-none items-center justify-center ",e),...t}));dt.displayName=k.List.displayName;var pt=k.Item,ft=(0,Ri.cva)(Ne({variant:"transparent",size:"sm"})),gt=re.forwardRef(({className:e,children:t,...o},i)=>(0,T.jsxs)(k.Trigger,{ref:i,className:a(ft(),"group",e),...o,children:[t,(0,T.jsx)(Ci.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));gt.displayName=k.Trigger.displayName;var ut=re.forwardRef(({className:e,...t},o)=>(0,T.jsx)(k.Content,{ref:o,className:a("hidden group-data-[state=open]:block left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));ut.displayName=k.Content.displayName;var qe=k.Link,ki=re.forwardRef(({className:e,...t},o)=>{let{alignDropdown:i}=yn();return(0,T.jsx)("div",{className:a("absolute top-full flex justify-center",i==="left"&&"left-0",i==="right"&&"right-0",i==="center"&&"left-1/2 -translate-x-1/2"),children:(0,T.jsx)(k.Viewport,{className:a("origin-top-center relative mt-3.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border border-gray-200 bg-white text-gray-900 shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)] group",e),ref:o,...t})})});ki.displayName=k.Viewport.displayName;var Di=re.forwardRef(({className:e,...t},o)=>(0,T.jsxs)("div",{ref:o,children:[(0,T.jsx)(k.Indicator,{ref:o,className:a("top-full z-[1] flex h-4 items-end justify-center overflow-hidden group data-[state=visible]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=visible]:zoom-in-90",e),...t,children:(0,T.jsxs)("svg",{width:"158",height:"46",viewBox:"0 0 158 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"relative w-7 h-7 top-[9px] group-data-[state=visible]:animate-in group-data-[state=closed]:animate-out group-data-[state=closed]:zoom-out-95 group-data-[state=visible]:zoom-in-90",children:[(0,T.jsxs)("g",{"clip-path":"url(#clip0_782_2)",children:[(0,T.jsx)("path",{d:"M70.9519 9.1982L55.1105 25.0396C47.3839 32.7662 43.5206 36.6295 39.0121 39.3923C35.015 41.8418 30.6572 43.6468 26.0987 44.7412C20.9572 45.9756 15.4937 45.9756 4.56665 45.9756H153.132C142.205 45.9756 136.742 45.9756 131.6 44.7412C127.042 43.6468 122.684 41.8418 118.687 39.3923C114.178 36.6295 110.315 32.7662 102.588 25.0396L86.7468 9.1982C82.3852 4.8365 75.3136 4.8365 70.9519 9.1982Z",fill:"white"}),(0,T.jsx)("path",{d:"M153.132 40.3912C141.939 40.3912 137.253 40.3553 132.904 39.3112C128.915 38.3536 125.102 36.7741 121.605 34.6309C117.791 32.2938 114.452 29.0054 106.537 21.0909L90.6957 5.2494C84.1532 -1.293 73.5457 -1.293 67.0033 5.2495L51.1618 21.0909C43.2473 29.0054 39.9082 32.2938 36.0944 34.6309C32.5969 36.7741 28.7838 38.3536 24.7952 39.3112C20.4458 40.3553 15.7596 40.3912 4.56672 40.3912H0.668457V45.9756H4.56672C15.4938 45.9756 20.9573 45.9756 26.0988 44.7412C30.6573 43.6468 35.0151 41.8418 39.0122 39.3923C43.5207 36.6295 47.384 32.7662 55.1106 25.0396L70.952 9.1982C75.3137 4.8365 82.3853 4.8365 86.7469 9.1982L102.588 25.0396C110.315 32.7662 114.178 36.6295 118.687 39.3923C122.684 41.8418 127.042 43.6468 131.6 44.7412C136.742 45.9756 142.205 45.9756 153.132 45.9756H157.03V40.3912H153.132Z",fill:"#E5E5E5"})]}),(0,T.jsx)("defs",{children:(0,T.jsx)("clipPath",{id:"clip0_782_2",children:(0,T.jsx)("rect",{width:"158",height:"46",fill:"white",transform:"matrix(1 0 0 -1 0 46)"})})})]})}),(0,T.jsx)(k.Indicator,{...t,children:(0,T.jsx)(ki,{})})]}));Di.displayName=k.Indicator.displayName;var Si=f(require("react"),1),ht=f(require("@radix-ui/react-switch"),1);var jo=require("react/jsx-runtime"),Go=Si.forwardRef(({className:e,...t},o)=>(0,jo.jsx)(ht.Root,{className:a("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...t,ref:o,children:(0,jo.jsx)(ht.Thumb,{className:a("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Go.displayName=ht.Root.displayName;var Uo=f(require("react"),1),Re=f(require("@radix-ui/react-radio-group"),1),Ai=require("lucide-react");var Mi=require("class-variance-authority"),vt=require("react/jsx-runtime"),wn=(0,Mi.cva)("grid cursor-pointer gap-2 text-gray-900 text-sm",{variants:{orientation:{horizontal:"grid-cols-2",vertical:"grid-cols-1"}},defaultVariants:{orientation:"vertical"}}),qo=Uo.forwardRef(({disabled:e,orientation:t,className:o,...i},r)=>(0,vt.jsx)(Re.Root,{className:a("",wn({orientation:t}),o),...i,ref:r}));qo.displayName=Re.Root.displayName;var Qo=Uo.forwardRef(({className:e,...t},o)=>(0,vt.jsx)(Re.Item,{ref:o,className:a("aspect-square h-4 w-4 rounded-full border border-gray-700 disabled:bg-gray-300 disabled:data-[state=checked]:text-gray-500 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-300 data-[state=checked]:bg-pink-500 disabled:border-none data-[state=checked]:border-none text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-40",e),...t,children:(0,vt.jsx)(Re.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,vt.jsx)(Ai.Circle,{className:"h-2 w-2 fill-current text-current"})})}));Qo.displayName=Re.Item.displayName;var $i=require("react");var Ko=f(require("next/link"),1);var Li=f(require("next/link"),1),me=require("react/jsx-runtime"),Nn=({className:e="",icon:t="",title:o,children:i="",href:r="",newTab:l=!1})=>{let m=l?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,me.jsx)("li",{className:"",children:(0,me.jsx)(qe,{asChild:!0,children:(0,me.jsxs)(Li.default,{className:a(" select-none space-y-1 rounded-md px-2.5 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 items-center min-h-9",e),href:r,...m,children:[t&&(0,me.jsx)("div",{className:"w-7 h-7 shrink-0",children:(0,me.jsx)("img",{src:t,loading:"lazy",className:"w-7 h-7 object-cover",alt:o})}),(0,me.jsxs)("div",{className:" ",children:[(0,me.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:o}),i&&(0,me.jsx)("p",{className:"line-clamp-1 text-xs mt-1 text-gray-500",children:i})]})]})})})},Ei=Nn;var Ii=f(require("next/link"),1),te=require("react/jsx-runtime"),Pn=({data:e})=>(0,te.jsx)(ct,{children:(0,te.jsx)(dt,{children:e.map(t=>{let o=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,te.jsxs)(pt,{children:[(0,te.jsx)(gt,{children:t.title}),(0,te.jsx)(ut,{children:(0,te.jsx)("ul",{className:a(t.dropDownCompact===!0?"grid gap-1 p-2.5 w-[540px] md:grid-cols-2 ":"grid w-[250px] gap-1 p-2.5 grid-cols-1"),children:t.subMenu&&t.subMenu.map(i=>(0,te.jsx)(Ei,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):(0,te.jsx)(pt,{children:(0,te.jsx)(Ii.default,{href:t.url,legacyBehavior:!0,passHref:!0,children:(0,te.jsx)(qe,{className:ft(),...o,children:t.title})})},t.id)})})}),Hi=Pn;var Gt=require("react");var jt=[.24,.25,.05,1];var Fi=require("react-use"),Zo=f(require("next/router"),1);var _i=f(require("next/link"),1),ye=require("react/jsx-runtime"),Cn=({className:e="",icon:t="",title:o,children:i="",href:r="",newTab:l=!1})=>{let m=l?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ye.jsx)("li",{className:"",children:(0,ye.jsxs)(_i.default,{className:a(" select-none py-2 flex flex-nowrap space-x-2 items-center",e),href:r,...m,children:[t&&(0,ye.jsx)("div",{className:"w-7 h-7 shrink-0",children:(0,ye.jsx)("img",{src:t,loading:"lazy",className:"w-7 h-7 object-cover",alt:o})}),(0,ye.jsxs)("div",{className:" ",children:[(0,ye.jsx)("div",{className:"text-sm text-gray-800 leading-none",children:o}),i&&(0,ye.jsx)("p",{className:"line-clamp-1 text-xs mt-1 text-gray-500",children:i})]})]})})},Bi=Cn;var Oi=f(require("next/link"),1),Vi=require("framer-motion"),ce=require("react/jsx-runtime"),Rn={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:jt}},exit:{opacity:0,transition:{duration:.05}}},Tn=({data:e})=>(0,ce.jsx)(et,{type:"single",collapsible:!0,children:e.map(t=>{let o=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ce.jsx)(Vi.motion.div,{variants:Rn,children:t.hasDropdown?(0,ce.jsxs)(tt,{value:t.id,children:[(0,ce.jsx)(ot,{className:"py-3",children:t.title}),(0,ce.jsx)(at,{children:(0,ce.jsx)("ul",{className:a("grid gap-1 grid-cols-1"),children:t.subMenu&&t.subMenu.map(i=>(0,ce.jsx)(Bi,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]}):(0,ce.jsx)(Oi.default,{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:t.url,...o,children:t.title})},t.id)})}),zi=Tn;var Be=f(require("next/link"),1),de=require("framer-motion");var d=require("react/jsx-runtime"),kn=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Dn=({data:e,className:t})=>{let[o,i]=(0,Gt.useState)(!1);(0,Fi.useKey)("Escape",()=>i(!1)),(0,Gt.useEffect)(()=>{if(!o)return;let m=kn();function c(){i(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Zo.default.events.on("routeChangeComplete",c),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"}),Zo.default.events.off("routeChangeComplete",c)}},[o]);let r={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:jt}},exit:{opacity:0,transition:{duration:.15}}};return(0,d.jsxs)("div",{className:a(t),children:[(0,d.jsxs)("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>i(!o),children:[(0,d.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,d.jsx)(de.motion.div,{animate:o?"hidden":"visible",variants:r,children:(0,d.jsx)("svg",{className:a("block w-7 h-7",o&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,d.jsx)(de.motion.div,{animate:o?"visible":"hidden",variants:r,children:(0,d.jsx)("svg",{className:a("block w-7 h-7",!o&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,d.jsx)(de.LazyMotion,{features:de.domAnimation,children:(0,d.jsx)(de.AnimatePresence,{mode:"wait",children:o&&(0,d.jsxs)(de.motion.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:a(t,"fixed block w-full max-w-full z-50 px-5 bg-white left-0 right-0 bottom-0 overflow-y-auto top-[calc(var(--header-height)+1px)] "),children:[(0,d.jsx)(zi,{data:e}),(0,d.jsxs)("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[(0,d.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,d.jsxs)("div",{className:"flex flex-nowrap",children:[(0,d.jsx)("div",{className:"flex-initial",children:(0,d.jsx)(Be.default,{href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",legacyBehavior:!0,children:(0,d.jsx)("a",{className:"link-white",target:"_blank",children:(0,d.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})}),(0,d.jsx)("div",{className:"ml-3 flex-initial",children:(0,d.jsx)(Be.default,{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",legacyBehavior:!0,children:(0,d.jsx)("a",{className:"link-white",target:"_blank",children:(0,d.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})})]}),(0,d.jsx)("h4",{className:"mb-2 mt-5 text-tiny font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,d.jsxs)("ul",{className:"mb-2 text-tiny text-gray-500",children:[(0,d.jsxs)("li",{className:"mb-1",children:["Hotline :",(0,d.jsx)(Be.default,{href:`tel:${ge.Support.Hotline}`,legacyBehavior:!0,children:(0,d.jsx)("a",{className:"text-gray-600",children:ge.Support.Hotline_Format})})]}),(0,d.jsxs)("li",{className:"mb-1",children:["Email:",(0,d.jsx)(Be.default,{href:`mailto:${ge.Support.Email}`,legacyBehavior:!0,children:(0,d.jsx)("a",{className:"text-gray-600",children:ge.Support.Email})})]})]}),(0,d.jsx)("a",{href:"https://momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,d.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[(0,d.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,d.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,d.jsxs)("g",{children:[(0,d.jsx)("title",{children:"Asset 1"}),(0,d.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
121
121
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
122
122
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,d.jsx)("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
123
123
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
124
- c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,d.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,d.jsx)("div",{className:"text-tiny font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,d.jsx)("h4",{className:"mb-2 mt-5 text-tiny font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,d.jsxs)("ul",{className:"mb-2 text-tiny text-gray-500",children:[(0,d.jsxs)("li",{className:"mb-1",children:["Hotline :",(0,d.jsx)(Be.default,{href:`tel:${ge.Business.Phome}`,legacyBehavior:!0,children:(0,d.jsx)("a",{className:"text-gray-600",children:ge.Business.Phome_Format})})]}),(0,d.jsxs)("li",{className:"mb-1",children:["Email :",(0,d.jsx)(Be.default,{href:`mailto:${ge.Business.Email}`,legacyBehavior:!0,children:(0,d.jsxs)("a",{className:"text-gray-600",children:[" ",ge.Business.Email]})})]})]}),(0,d.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,d.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[(0,d.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,d.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,d.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,d.jsx)("div",{className:"text-tiny font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},Fi=kn;var $i=f(require("html-react-parser"),1),F=require("react/jsx-runtime"),Yo=(0,Wi.memo)(({className:e,dataMenu:t,serviceInfo:o})=>{let{logo:i,name:r,url:l}=o;return(0,F.jsxs)("div",{className:a(e,"sticky top-0 z-40 w-full flex-none transition-colors duration-500 lg:z-50 border-b border-gray-900/10 "),children:[(0,F.jsx)("div",{className:a("absolute inset-0 h-full w-full bg-white/95 backdrop-blursupports-backdrop-blur:bg-white/60 ")}),(0,F.jsx)("nav",{className:a("wrapper border-b border-gray-900/10 grid grid-cols-1 items-center lg:border-0 [--header-height:64px] "),style:{minHeight:"var(--header-height)"},children:(0,F.jsxs)("div",{className:"relative flex items-center ",children:[(0,F.jsxs)(Ko.default,{href:"https://momo.vn/",title:"MoMo",className:"mr-3 flex-none w-9 h-9 overflow-hidden rounded-none hover:opacity-80",children:[(0,F.jsx)("span",{className:"sr-only",children:"MoMo home page"}),(0,F.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"})]}),o&&(0,F.jsxs)(Ko.default,{href:l,title:r,className:" relative flex space-x-1 pl-2 items-center rounded-none hover:opacity-80 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] ",children:[(0,F.jsx)("img",{src:i,className:"w-9 h-9",alt:"MoMo"}),(0,F.jsx)("div",{className:"text-sm font-semibold leading-[1.1] text-pink-500",children:r&&(0,$i.default)(r)})]}),(0,F.jsx)("div",{className:"relative hidden lg:flex items-center ml-auto",children:(0,F.jsx)(Ii,{data:t})}),(0,F.jsx)(Fi,{data:t,className:"lg:hidden ml-auto "})]})})]})});Yo.displayName="Header";var Gi=require("react");var s=require("react/jsx-runtime"),Dn=({dataMenu:e})=>{let t=e||ya;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"footer-main order-2 py-7 text-white md:order-1 text-sm",children:(0,s.jsxs)("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[(0,s.jsxs)("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[(0,s.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:t?.heading}),t?.lists?.map((o,i)=>(0,s.jsx)("div",{className:"mt-3 text-sm",children:(0,s.jsx)("a",{className:"text-white text-opacity-50 duration-300 hover:text-opacity-100",href:`${o.url}?fromType=${Xt}`,children:o.title})},i))]}),(0,s.jsxs)("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[(0,s.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"D\u1ECBch v\u1EE5 n\u1ED5i b\u1EADt"}),(0,s.jsx)("div",{className:"flex flex-wrap",children:Pa.map((o,i)=>(0,s.jsx)("div",{className:"mt-3 flex w-full text-sm",children:(0,s.jsxs)("a",{href:Ta({link:o.Href,query:{fromType:Xt}}),target:"_blank",rel:"noreferrer",className:"item-center inline-flex text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[(0,s.jsx)("span",{className:"relative aspect-1 h-5 w-5 md:-mt-0.5 md:h-6 md:w-6",children:(0,s.jsx)("img",{src:o.Image,className:"absolute inset-0"})}),(0,s.jsx)("span",{className:"block pl-2",children:o.Name})]})},i))})]}),(0,s.jsxs)("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[(0,s.jsxs)("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[(0,s.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),(0,s.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,s.jsx)("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9: "}),(0,s.jsx)("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:Na.Address})]}),(0,s.jsxs)("div",{className:"mt-1 text-sm",children:[(0,s.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,s.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Hotline}`,children:U.Support.Hotline_Format}),(0,s.jsxs)("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),(0,s.jsxs)("div",{className:"mt-1 text-sm",children:[(0,s.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,s.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${U.Support.Email}`,children:U.Support.Email})]}),(0,s.jsxs)("div",{className:"mt-1 text-sm",children:[(0,s.jsxs)("span",{className:"text-white text-opacity-50",children:["T\u1ED5ng \u0111\xE0i g\u1ECDi ra :"," "]}),(0,s.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Phone_Ext_1}`,children:U.Support.Phone_Ext_1_Format}),(0,s.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,s.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Phone_Ext_2}`,children:U.Support.Phone_Ext_2_Format}),(0,s.jsx)("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),(0,s.jsx)("div",{className:"mt-3 flex",children:(0,s.jsx)("a",{href:"https://momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,s.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[(0,s.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,s.jsx)("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("title",{children:"Asset 1"}),(0,s.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
124
+ c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,d.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,d.jsx)("div",{className:"text-tiny font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,d.jsx)("h4",{className:"mb-2 mt-5 text-tiny font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,d.jsxs)("ul",{className:"mb-2 text-tiny text-gray-500",children:[(0,d.jsxs)("li",{className:"mb-1",children:["Hotline :",(0,d.jsx)(Be.default,{href:`tel:${ge.Business.Phome}`,legacyBehavior:!0,children:(0,d.jsx)("a",{className:"text-gray-600",children:ge.Business.Phome_Format})})]}),(0,d.jsxs)("li",{className:"mb-1",children:["Email :",(0,d.jsx)(Be.default,{href:`mailto:${ge.Business.Email}`,legacyBehavior:!0,children:(0,d.jsxs)("a",{className:"text-gray-600",children:[" ",ge.Business.Email]})})]})]}),(0,d.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,d.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[(0,d.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,d.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,d.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,d.jsx)("div",{className:"text-tiny font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},Wi=Dn;var ji=f(require("html-react-parser"),1),F=require("react/jsx-runtime"),Yo=(0,$i.memo)(({className:e,dataMenu:t,serviceInfo:o})=>{let{logo:i,name:r,url:l}=o;return(0,F.jsxs)("div",{className:a(e,"sticky top-0 z-40 w-full flex-none transition-colors duration-500 lg:z-50 border-b border-gray-900/10 "),children:[(0,F.jsx)("div",{className:a("absolute inset-0 h-full w-full bg-white/95 backdrop-blursupports-backdrop-blur:bg-white/60 ")}),(0,F.jsx)("nav",{className:a("wrapper border-b border-gray-900/10 grid grid-cols-1 items-center lg:border-0 [--header-height:64px] "),style:{minHeight:"var(--header-height)"},children:(0,F.jsxs)("div",{className:"relative flex items-center ",children:[(0,F.jsxs)(Ko.default,{href:"https://momo.vn/",title:"MoMo",className:"mr-3 flex-none w-9 h-9 overflow-hidden rounded-none hover:opacity-80",children:[(0,F.jsx)("span",{className:"sr-only",children:"MoMo home page"}),(0,F.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"})]}),o&&(0,F.jsxs)(Ko.default,{href:l,title:r,className:" relative flex space-x-1 pl-2 items-center rounded-none hover:opacity-80 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] ",children:[(0,F.jsx)("img",{src:i,className:"w-9 h-9",alt:"MoMo"}),(0,F.jsx)("div",{className:"text-sm font-semibold leading-[1.1] text-pink-500",children:r&&(0,ji.default)(r)})]}),(0,F.jsx)("div",{className:"relative hidden lg:flex items-center ml-auto",children:(0,F.jsx)(Hi,{data:t})}),(0,F.jsx)(Wi,{data:t,className:"lg:hidden ml-auto "})]})})]})});Yo.displayName="Header";var Ui=require("react");var s=require("react/jsx-runtime"),Sn=({dataMenu:e})=>{let t=e||ya;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"footer-main order-2 py-7 text-white md:order-1 text-sm",children:(0,s.jsxs)("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[(0,s.jsxs)("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[(0,s.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:t?.heading}),t?.lists?.map((o,i)=>(0,s.jsx)("div",{className:"mt-3 text-sm",children:(0,s.jsx)("a",{className:"text-white text-opacity-50 duration-300 hover:text-opacity-100",href:`${o.url}?fromType=${Xt}`,children:o.title})},i))]}),(0,s.jsxs)("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[(0,s.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"D\u1ECBch v\u1EE5 n\u1ED5i b\u1EADt"}),(0,s.jsx)("div",{className:"flex flex-wrap",children:Pa.map((o,i)=>(0,s.jsx)("div",{className:"mt-3 flex w-full text-sm",children:(0,s.jsxs)("a",{href:Ta({link:o.Href,query:{fromType:Xt}}),target:"_blank",rel:"noreferrer",className:"item-center inline-flex text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[(0,s.jsx)("span",{className:"relative aspect-1 h-5 w-5 md:-mt-0.5 md:h-6 md:w-6",children:(0,s.jsx)("img",{src:o.Image,className:"absolute inset-0"})}),(0,s.jsx)("span",{className:"block pl-2",children:o.Name})]})},i))})]}),(0,s.jsxs)("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[(0,s.jsxs)("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[(0,s.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),(0,s.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,s.jsx)("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9: "}),(0,s.jsx)("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:Na.Address})]}),(0,s.jsxs)("div",{className:"mt-1 text-sm",children:[(0,s.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,s.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Hotline}`,children:U.Support.Hotline_Format}),(0,s.jsxs)("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),(0,s.jsxs)("div",{className:"mt-1 text-sm",children:[(0,s.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,s.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${U.Support.Email}`,children:U.Support.Email})]}),(0,s.jsxs)("div",{className:"mt-1 text-sm",children:[(0,s.jsxs)("span",{className:"text-white text-opacity-50",children:["T\u1ED5ng \u0111\xE0i g\u1ECDi ra :"," "]}),(0,s.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Phone_Ext_1}`,children:U.Support.Phone_Ext_1_Format}),(0,s.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,s.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Phone_Ext_2}`,children:U.Support.Phone_Ext_2_Format}),(0,s.jsx)("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),(0,s.jsx)("div",{className:"mt-3 flex",children:(0,s.jsx)("a",{href:"https://momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,s.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[(0,s.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,s.jsx)("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("title",{children:"Asset 1"}),(0,s.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
125
125
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
126
126
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,s.jsx)("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
127
127
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
@@ -129,18 +129,18 @@
129
129
  footer .button-download {
130
130
  max-width: 150px;
131
131
  }
132
- `})]})},ji=Dn;var Xo=require("react/jsx-runtime"),Ui=(0,Gi.memo)(({className:e,dataMenu:t})=>(0,Xo.jsx)("footer",{className:a("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,Xo.jsx)(ji,{dataMenu:t})}));var Oe=f(require("react"),1);var Ve=require("react/jsx-runtime"),Jo=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("div",{ref:o,className:a("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Jo.displayName="Card";var ea=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("div",{ref:o,className:a("flex flex-col space-y-1.5 p-6",e),...t}));ea.displayName="CardHeader";var ta=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("h3",{ref:o,className:a("font-semibold leading-none tracking-tight",e),...t}));ta.displayName="CardTitle";var oa=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("p",{ref:o,className:a("text-sm text-muted-foreground",e),...t}));oa.displayName="CardDescription";var aa=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("div",{ref:o,className:a("p-6 pt-0",e),...t}));aa.displayName="CardContent";var ia=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("div",{ref:o,className:a("flex items-center p-6 pt-0",e),...t}));ia.displayName="CardFooter";var oe=f(require("react"),1),W=require("cmdk");var Qe=require("@heroicons/react/16/solid"),_=require("react/jsx-runtime"),Ut=oe.forwardRef(({className:e,...t},o)=>(0,_.jsx)(W.Command,{ref:o,className:a("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...t}));Ut.displayName=W.Command.displayName;var qi=({children:e,...t})=>(0,_.jsx)(Ge,{...t,children:(0,_.jsx)(Ee,{className:"overflow-hidden p-0 shadow-lg",children:(0,_.jsx)(Ut,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),ra=oe.forwardRef(({className:e,onClickClear:t,...o},i)=>{let r=oe.useRef(null),[l,m]=oe.useState(""),c=()=>{!l||l?.length<=0||(m(""),t?.(l))};return(0,_.jsxs)("div",{ref:r,className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,_.jsx)(Qe.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,_.jsx)(W.Command.Input,{ref:i,className:a("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),value:l,onValueChange:m,...o}),(0,_.jsx)(Qe.XCircleIcon,{onClick:c,className:a("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",l?.length>0?"opacity-100":"opacity-0")})]})});ra.displayName=W.Command.Input.displayName;var na=oe.forwardRef(({className:e,...t},o)=>(0,_.jsx)(W.Command.List,{ref:o,className:a("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...t}));na.displayName=W.Command.List.displayName;var sa=oe.forwardRef((e,t)=>(0,_.jsx)(W.Command.Empty,{ref:t,className:"py-6 text-gray-900 text-center text-sm",...e}));sa.displayName=W.Command.Empty.displayName;var la=oe.forwardRef(({className:e,...t},o)=>(0,_.jsx)(W.Command.Group,{ref:o,className:a("overflow-hidden text-gray-900 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}));la.displayName=W.Command.Group.displayName;var ma=oe.forwardRef(({className:e,...t},o)=>(0,_.jsx)(W.Command.Separator,{ref:o,className:a("-mx-1 text-gray-900 h-px bg-border",e),...t}));ma.displayName=W.Command.Separator.displayName;var ca=oe.forwardRef(({className:e,children:t,isActive:o,...i},r)=>(0,_.jsxs)(W.Command.Item,{ref:r,className:a("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o?"bg-gray-100":"",e),...i,children:[(0,_.jsx)(Qe.CheckIcon,{className:a("h-4 w-4 mr-2",o?"opacity-100":"opacity-0")}),t]}));ca.displayName=W.Command.Item.displayName;var da=({className:e,...t})=>(0,_.jsx)("span",{className:a("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...t});da.displayName="CommandShortcut";var Qi=require("@heroicons/react/16/solid");var Te=require("react/jsx-runtime"),Zi=({className:e,value:t,label:o,children:i,placeholder:r})=>(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsxs)(It,{className:a("focus-visible:outline-none w-72 focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 select-mobase-button bg-white ring-0 transition-all rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),children:[t||i||r,(0,Te.jsx)(Qi.ChevronDownIcon,{className:"h-4 w-4 text-gray-700 flex-none"})]}),o&&(0,Te.jsx)("span",{className:"absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",children:o})]}),Ki=({children:e,className:t})=>(0,Te.jsx)(st,{className:a("!p-0 border-none",t),children:e}),Yi=({open:e,onOpenChange:t,children:o})=>(0,Te.jsx)(Et,{open:e,onOpenChange:t,children:o});var pa=require("class-variance-authority"),Xi=require("react");var Ji=require("@heroicons/react/24/outline");var ze=require("react/jsx-runtime"),Sn=(0,pa.cva)("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ",{variants:{typeDiv:{neutral:"bg-gray-50 border-gray-300 ",error:"bg-red-50 border-red-300",success:"bg-green-50 border-green-300",warning:"bg-yellow-50 border-yellow-300",info:"bg-blue-50 border-blue-300"},disabled:{true:"text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300"}},defaultVariants:{typeDiv:"neutral"}}),An=(0,pa.cva)("w-5 h-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),er=(0,Xi.forwardRef)(({type:e="neutral",message:t="",withAction:o=!1,onClickAction:i,className:r,disabled:l,actionClassName:m,...c},g)=>(0,ze.jsxs)("div",{ref:g,className:a("",r,Sn({typeDiv:e,disabled:l})),...c,children:[(0,ze.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ze.jsx)(Ji.InformationCircleIcon,{className:a(An({typeIcon:e,disabled:l})),width:20,height:20}),(0,ze.jsx)("div",{children:"B\u1EA1n c\u1EA7n cho ph\xE9p website s\u1EED d\u1EE5ng th\xF4ng tin v\u1ECB tr\xED \u0111\u1EC3 s\u1EED d\u1EE5ng t\xEDnh n\u0103ng n\xE0y"})]}),o&&(0,ze.jsx)(mt,{variant:"primary",onClick:()=>i?.(),className:a("",m),isDisabled:l,children:o})]}));var ke=require("react"),tr=require("@heroicons/react/20/solid"),or=require("@heroicons/react/24/outline");var pe=require("react/jsx-runtime"),ar=(0,ke.forwardRef)(({disabled:e,className:t,inputClassName:o,size:i,onChange:r,onFocus:l,onClickClear:m,value:c,defaultValue:g,type:y="text",...P},v)=>{let[D,B]=(0,ke.useState)(!1),C=(0,ke.useRef)(null),N=A=>{A&&!D&&B(!0),!A&&D&&B(!1)},O=A=>{N(A.target.value),r?.(A)},H=A=>{N(A.target.value),l?.(A)},Me=()=>{let A=C.current?.querySelector("input");A&&(m?.(A.value),A.value="",A.focus(),B(!1))};return(0,ke.useEffect)(()=>{N(g||c)},[c,g]),(0,pe.jsxs)("div",{className:a(t),ref:C,children:[(0,pe.jsxs)("div",{className:"relative flex items-center",children:[(0,pe.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,pe.jsx)(tr.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,pe.jsx)("input",{disabled:e,type:y,ref:v,className:a("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",o),onChange:O,onFocus:H,value:c,defaultValue:g,...P}),D&&(0,pe.jsx)("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:Me,children:(0,pe.jsx)(or.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,pe.jsx)("style",{children:`
132
+ `})]})},Gi=Sn;var Xo=require("react/jsx-runtime"),qi=(0,Ui.memo)(({className:e,dataMenu:t})=>(0,Xo.jsx)("footer",{className:a("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,Xo.jsx)(Gi,{dataMenu:t})}));var Oe=f(require("react"),1);var Ve=require("react/jsx-runtime"),Jo=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("div",{ref:o,className:a("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Jo.displayName="Card";var ea=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("div",{ref:o,className:a("flex flex-col space-y-1.5 p-6",e),...t}));ea.displayName="CardHeader";var ta=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("h3",{ref:o,className:a("font-semibold leading-none tracking-tight",e),...t}));ta.displayName="CardTitle";var oa=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("p",{ref:o,className:a("text-sm text-muted-foreground",e),...t}));oa.displayName="CardDescription";var aa=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("div",{ref:o,className:a("p-6 pt-0",e),...t}));aa.displayName="CardContent";var ia=Oe.forwardRef(({className:e,...t},o)=>(0,Ve.jsx)("div",{ref:o,className:a("flex items-center p-6 pt-0",e),...t}));ia.displayName="CardFooter";var oe=f(require("react"),1),W=require("cmdk");var Qe=require("@heroicons/react/16/solid"),_=require("react/jsx-runtime"),Ut=oe.forwardRef(({className:e,...t},o)=>(0,_.jsx)(W.Command,{ref:o,className:a("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...t}));Ut.displayName=W.Command.displayName;var Qi=({children:e,...t})=>(0,_.jsx)(Ge,{...t,children:(0,_.jsx)(Ee,{className:"overflow-hidden p-0 shadow-lg",children:(0,_.jsx)(Ut,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),ra=oe.forwardRef(({className:e,onClickClear:t,...o},i)=>{let r=oe.useRef(null),[l,m]=oe.useState(""),c=()=>{!l||l?.length<=0||(m(""),t?.(l))};return(0,_.jsxs)("div",{ref:r,className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,_.jsx)(Qe.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,_.jsx)(W.Command.Input,{ref:i,className:a("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),value:l,onValueChange:m,...o}),(0,_.jsx)(Qe.XCircleIcon,{onClick:c,className:a("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",l?.length>0?"opacity-100":"opacity-0")})]})});ra.displayName=W.Command.Input.displayName;var na=oe.forwardRef(({className:e,...t},o)=>(0,_.jsx)(W.Command.List,{ref:o,className:a("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...t}));na.displayName=W.Command.List.displayName;var sa=oe.forwardRef((e,t)=>(0,_.jsx)(W.Command.Empty,{ref:t,className:"py-6 text-gray-900 text-center text-sm",...e}));sa.displayName=W.Command.Empty.displayName;var la=oe.forwardRef(({className:e,...t},o)=>(0,_.jsx)(W.Command.Group,{ref:o,className:a("overflow-hidden text-gray-900 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}));la.displayName=W.Command.Group.displayName;var ma=oe.forwardRef(({className:e,...t},o)=>(0,_.jsx)(W.Command.Separator,{ref:o,className:a("-mx-1 text-gray-900 h-px bg-border",e),...t}));ma.displayName=W.Command.Separator.displayName;var ca=oe.forwardRef(({className:e,children:t,isActive:o,...i},r)=>(0,_.jsxs)(W.Command.Item,{ref:r,className:a("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o?"bg-gray-100":"",e),...i,children:[(0,_.jsx)(Qe.CheckIcon,{className:a("h-4 w-4 mr-2",o?"opacity-100":"opacity-0")}),t]}));ca.displayName=W.Command.Item.displayName;var da=({className:e,...t})=>(0,_.jsx)("span",{className:a("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...t});da.displayName="CommandShortcut";var Zi=require("@heroicons/react/16/solid");var Te=require("react/jsx-runtime"),Ki=({className:e,value:t,label:o,children:i,placeholder:r})=>(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsxs)(It,{className:a("focus-visible:outline-none w-72 focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 select-mobase-button bg-white ring-0 transition-all rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),children:[t||i||r,(0,Te.jsx)(Zi.ChevronDownIcon,{className:"h-4 w-4 text-gray-700 flex-none"})]}),o&&(0,Te.jsx)("span",{className:"absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",children:o})]}),Yi=({children:e,className:t})=>(0,Te.jsx)(st,{className:a("!p-0 border-none",t),children:e}),Xi=({open:e,onOpenChange:t,children:o})=>(0,Te.jsx)(Et,{open:e,onOpenChange:t,children:o});var pa=require("class-variance-authority"),Ji=require("react");var er=require("@heroicons/react/24/outline");var ze=require("react/jsx-runtime"),An=(0,pa.cva)("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ",{variants:{typeDiv:{neutral:"bg-gray-50 border-gray-300 ",error:"bg-red-50 border-red-300",success:"bg-green-50 border-green-300",warning:"bg-yellow-50 border-yellow-300",info:"bg-blue-50 border-blue-300"},disabled:{true:"text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300"}},defaultVariants:{typeDiv:"neutral"}}),Mn=(0,pa.cva)("w-5 h-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),tr=(0,Ji.forwardRef)(({type:e="neutral",message:t="",withAction:o=!1,onClickAction:i,className:r,disabled:l,actionClassName:m,...c},g)=>(0,ze.jsxs)("div",{ref:g,className:a("",r,An({typeDiv:e,disabled:l})),...c,children:[(0,ze.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ze.jsx)(er.InformationCircleIcon,{className:a(Mn({typeIcon:e,disabled:l})),width:20,height:20}),(0,ze.jsx)("div",{children:"B\u1EA1n c\u1EA7n cho ph\xE9p website s\u1EED d\u1EE5ng th\xF4ng tin v\u1ECB tr\xED \u0111\u1EC3 s\u1EED d\u1EE5ng t\xEDnh n\u0103ng n\xE0y"})]}),o&&(0,ze.jsx)(mt,{variant:"primary",onClick:()=>i?.(),className:a("",m),isDisabled:l,children:o})]}));var ke=require("react"),or=require("@heroicons/react/20/solid"),ar=require("@heroicons/react/24/outline");var pe=require("react/jsx-runtime"),ir=(0,ke.forwardRef)(({disabled:e,className:t,inputClassName:o,size:i,onChange:r,onFocus:l,onClickClear:m,value:c,defaultValue:g,type:y="text",...P},v)=>{let[D,B]=(0,ke.useState)(!1),C=(0,ke.useRef)(null),N=A=>{A&&!D&&B(!0),!A&&D&&B(!1)},O=A=>{N(A.target.value),r?.(A)},H=A=>{N(A.target.value),l?.(A)},Me=()=>{let A=C.current?.querySelector("input");A&&(m?.(A.value),A.value="",A.focus(),B(!1))};return(0,ke.useEffect)(()=>{N(g||c)},[c,g]),(0,pe.jsxs)("div",{className:a(t),ref:C,children:[(0,pe.jsxs)("div",{className:"relative flex items-center",children:[(0,pe.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,pe.jsx)(or.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,pe.jsx)("input",{disabled:e,type:y,ref:v,className:a("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",o),onChange:O,onFocus:H,value:c,defaultValue:g,...P}),D&&(0,pe.jsx)("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:Me,children:(0,pe.jsx)(ar.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,pe.jsx)("style",{children:`
133
133
  .mobase-text-input-box:hover {
134
134
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
135
135
  }
136
136
  .mobase-text-input-box:focus {
137
137
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
138
138
  }
139
- `})]})});var qt=require("swiper/react"),De=require("swiper"),L=f(require("@radix-ui/react-dialog"),1),Z=f(require("react"),1);var ir=require("lucide-react"),Qt=require("@heroicons/react/24/outline"),rr=f(require("lodash"),1),b=require("react/jsx-runtime"),Mn=L.Root,Ln=L.Portal,nr=Z.default.forwardRef(({className:e,...t},o)=>(0,b.jsx)(L.Overlay,{ref:o,className:a("fixed inset-0 bg-black/80 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));nr.displayName=L.Overlay.displayName;var En=({clearActiveIndex:e})=>(0,b.jsxs)(L.Close,{onClick:()=>e?.(),className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[(0,b.jsx)(ir.X,{className:"h-4 w-4 mt-0.5"}),(0,b.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]}),sr=({children:e,src:t,alt:o,className:i,classNameImage:r,onClick:l})=>{let m=()=>{l?.()};return(0,b.jsxs)(L.Trigger,{className:a("aspect-[2/3] relative overflow-hidden rounded-lg",i),onClick:m,children:[e,(0,b.jsx)("img",{src:t,alt:o,className:a("w-full h-full object-cover rounded-lg",r)})]})},lr=Z.default.forwardRef(({className:e,children:t,...o},i)=>(0,b.jsxs)(Ln,{children:[(0,b.jsx)(nr,{className:"bg-black"}),(0,b.jsxs)(L.Content,{ref:i,className:a("h-full min-w-full border-none rounded-none z-[999] fixed bg-black left-[50%] top-[50%] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border 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%] ",e),...o,children:[t,(0,b.jsx)(En,{})]})]}));lr.displayName=L.Content.displayName;var In=({className:e,...t})=>(0,b.jsx)("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});In.displayName="DialogHeader";var Hn=({className:e,...t})=>(0,b.jsx)("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Hn.displayName="DialogFooter";var _n=Z.default.forwardRef(({className:e,...t},o)=>(0,b.jsx)(L.Title,{ref:o,className:a("text-lg font-semibold leading-none tracking-tight",e),...t}));_n.displayName=L.Title.displayName;var Bn=Z.default.forwardRef(({className:e,...t},o)=>(0,b.jsx)(L.Description,{ref:o,className:a("text-sm text-muted-foreground",e),...t}));Bn.displayName=L.Description.displayName;var mr=({images:e,activeSlideIndex:t=0,withSideBar:o,subHtmlSideBar:i,classNameSubHtmSideBar:r,className:l,isPagination:m=!1})=>{let[c,g]=(0,Z.useState)(t),[y,P]=(0,Z.useState)(""),v=()=>{let C=rr.default.filter(e,(O,H)=>H===t),N=C.length>0?C[0]?.titleImage:"";P(N)};(0,Z.useEffect)(()=>{g(t),v()},[t]);let D={clickable:!0,renderBullet(C,N){let O=a("aspect-[1/1] min-w-[96px] mt-40 min-h-[76px] !rounded-lg overflow-hidden",N),H=a("w-full h-full object-cover rounded-lg");return e[C]?.url?`
139
+ `})]})});var qt=require("swiper/react"),De=require("swiper"),L=f(require("@radix-ui/react-dialog"),1),Z=f(require("react"),1);var rr=require("lucide-react"),Qt=require("@heroicons/react/24/outline"),nr=f(require("lodash"),1),b=require("react/jsx-runtime"),Ln=L.Root,En=L.Portal,sr=Z.default.forwardRef(({className:e,...t},o)=>(0,b.jsx)(L.Overlay,{ref:o,className:a("fixed inset-0 bg-black/80 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));sr.displayName=L.Overlay.displayName;var In=({clearActiveIndex:e})=>(0,b.jsxs)(L.Close,{onClick:()=>e?.(),className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[(0,b.jsx)(rr.X,{className:"h-4 w-4 mt-0.5"}),(0,b.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]}),lr=({children:e,src:t,alt:o,className:i,classNameImage:r,onClick:l})=>{let m=()=>{l?.()};return(0,b.jsxs)(L.Trigger,{className:a("aspect-[2/3] relative overflow-hidden rounded-lg",i),onClick:m,children:[e,(0,b.jsx)("img",{src:t,alt:o,className:a("w-full h-full object-cover rounded-lg",r)})]})},mr=Z.default.forwardRef(({className:e,children:t,...o},i)=>(0,b.jsxs)(En,{children:[(0,b.jsx)(sr,{className:"bg-black"}),(0,b.jsxs)(L.Content,{ref:i,className:a("h-full min-w-full border-none rounded-none z-[999] fixed bg-black left-[50%] top-[50%] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border 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%] ",e),...o,children:[t,(0,b.jsx)(In,{})]})]}));mr.displayName=L.Content.displayName;var Hn=({className:e,...t})=>(0,b.jsx)("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Hn.displayName="DialogHeader";var _n=({className:e,...t})=>(0,b.jsx)("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});_n.displayName="DialogFooter";var Bn=Z.default.forwardRef(({className:e,...t},o)=>(0,b.jsx)(L.Title,{ref:o,className:a("text-lg font-semibold leading-none tracking-tight",e),...t}));Bn.displayName=L.Title.displayName;var On=Z.default.forwardRef(({className:e,...t},o)=>(0,b.jsx)(L.Description,{ref:o,className:a("text-sm text-muted-foreground",e),...t}));On.displayName=L.Description.displayName;var cr=({images:e,activeSlideIndex:t=0,withSideBar:o,subHtmlSideBar:i,classNameSubHtmSideBar:r,className:l,isPagination:m=!1})=>{let[c,g]=(0,Z.useState)(t),[y,P]=(0,Z.useState)(""),v=()=>{let C=nr.default.filter(e,(O,H)=>H===t),N=C.length>0?C[0]?.titleImage:"";P(N)};(0,Z.useEffect)(()=>{g(t),v()},[t]);let D={clickable:!0,renderBullet(C,N){let O=a("aspect-[1/1] min-w-[96px] mt-40 min-h-[76px] !rounded-lg overflow-hidden",N),H=a("w-full h-full object-cover rounded-lg");return e[C]?.url?`
140
140
  <div class="${O} ">
141
141
  <img class="${H} " src="${e[C]?.url}" alt="Slide ${C+1}" />
142
142
  </div>
143
- `:"<div></div>"}},B=m?[De.Navigation,De.Lazy,De.Pagination]:[De.Navigation,De.Lazy];return(0,b.jsxs)(lr,{className:a("flex py-0",l),children:[(0,b.jsxs)("div",{className:"lightbox flex-1 py-6",children:[(0,b.jsx)("div",{className:"flex items-center justify-end md:justify-center mt-2 w-full",children:(0,b.jsxs)("div",{children:[c?c+1:1," / ",e?.length]})}),(0,b.jsxs)(qt.Swiper,{initialSlide:t,onSlideChange:({realIndex:C})=>{g(C),v();let N=document.querySelector(".swiper-pagination-bullet-active");N&&N.scrollIntoView({behavior:"smooth",block:"nearest"})},onDestroy:()=>{g(t),v()},slidesPerView:"auto",className:"swiper lightboxSwiper",navigation:{nextEl:".lightbox .next-lightbox",prevEl:".lightbox .prev-lightbox"},pagination:D,modules:B,lazy:{loadPrevNext:!0},children:[e.map((C,N)=>(0,b.jsxs)(qt.SwiperSlide,{children:[(0,b.jsx)("div",{className:"absolute top-28 bottom-28 left-0 right-0 min-h-0 sm:left-20 sm:right-20",children:(0,b.jsx)("img",{src:C.url,alt:"",className:"absolute h-full w-full object-contain",loading:"lazy"})}),(0,b.jsx)("div",{className:"swiper-lazy-preloader swiper-lazy-preloader-white"}),(0,b.jsx)("div",{className:"text-sm px-20 text-center text-white/80 absolute bottom-10 my-4 flex items-center justify-center w-full z-[999]",children:y})]},N)),(0,b.jsx)(he,{className:"disabled:bg-white/60 prev-lightbox button-swiper translate swiper-cate-merchant absolute inset-y-1/2 left-6 z-10 hidden h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border border-gray-300 bg-white text-white shadow-md duration-200 ease-in-out hover:bg-white/80 hover:shadow-md md:flex",children:(0,b.jsx)(Qt.ChevronLeftIcon,{className:"w-7 text-slate-900"})}),(0,b.jsx)(he,{className:"disabled:bg-white/60 next-lightbox translate swiper-cate-merchant button-swiper absolute inset-y-1/2 right-6 z-10 hidden h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border border-gray-300 bg-white text-white shadow-md duration-300 ease-in-out hover:bg-white/80 hover:shadow-md md:flex",children:(0,b.jsx)(Qt.ChevronRightIcon,{className:"w-7 text-slate-900"})})]}),(0,b.jsx)("style",{children:`
143
+ `:"<div></div>"}},B=m?[De.Navigation,De.Lazy,De.Pagination]:[De.Navigation,De.Lazy];return(0,b.jsxs)(mr,{className:a("flex py-0",l),children:[(0,b.jsxs)("div",{className:"lightbox flex-1 py-6",children:[(0,b.jsx)("div",{className:"flex items-center justify-end md:justify-center mt-2 w-full",children:(0,b.jsxs)("div",{children:[c?c+1:1," / ",e?.length]})}),(0,b.jsxs)(qt.Swiper,{initialSlide:t,onSlideChange:({realIndex:C})=>{g(C),v();let N=document.querySelector(".swiper-pagination-bullet-active");N&&N.scrollIntoView({behavior:"smooth",block:"nearest"})},onDestroy:()=>{g(t),v()},slidesPerView:"auto",className:"swiper lightboxSwiper",navigation:{nextEl:".lightbox .next-lightbox",prevEl:".lightbox .prev-lightbox"},pagination:D,modules:B,lazy:{loadPrevNext:!0},children:[e.map((C,N)=>(0,b.jsxs)(qt.SwiperSlide,{children:[(0,b.jsx)("div",{className:"absolute top-28 bottom-28 left-0 right-0 min-h-0 sm:left-20 sm:right-20",children:(0,b.jsx)("img",{src:C.url,alt:"",className:"absolute h-full w-full object-contain",loading:"lazy"})}),(0,b.jsx)("div",{className:"swiper-lazy-preloader swiper-lazy-preloader-white"}),(0,b.jsx)("div",{className:"text-sm px-20 text-center text-white/80 absolute bottom-10 my-4 flex items-center justify-center w-full z-[999]",children:y})]},N)),(0,b.jsx)(he,{className:"disabled:bg-white/60 prev-lightbox button-swiper translate swiper-cate-merchant absolute inset-y-1/2 left-6 z-10 hidden h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border border-gray-300 bg-white text-white shadow-md duration-200 ease-in-out hover:bg-white/80 hover:shadow-md md:flex",children:(0,b.jsx)(Qt.ChevronLeftIcon,{className:"w-7 text-slate-900"})}),(0,b.jsx)(he,{className:"disabled:bg-white/60 next-lightbox translate swiper-cate-merchant button-swiper absolute inset-y-1/2 right-6 z-10 hidden h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border border-gray-300 bg-white text-white shadow-md duration-300 ease-in-out hover:bg-white/80 hover:shadow-md md:flex",children:(0,b.jsx)(Qt.ChevronRightIcon,{className:"w-7 text-slate-900"})})]}),(0,b.jsx)("style",{children:`
144
144
  .lightbox {
145
145
  --lightbox-topnav: 112px;
146
146
  --lightbox-botnav: 80px;
@@ -213,7 +213,7 @@
213
213
  .swiper-pagination-bullet-active{
214
214
  border: 2px solid white;
215
215
  }
216
- `})]}),o&&(0,b.jsx)("div",{className:a("hidden md:flex overflow-y-auto bg-white text-gray-900 px-6 pb-4 pt-2 w-full max-w-sm lg:max-w-md",r),children:i})]})},cr=({children:e,className:t,open:o,onOpenChange:i})=>(0,b.jsx)("div",{className:a("lightbox-gallery ",t),children:(0,b.jsx)(Mn,{open:o,onOpenChange:i,children:Z.default.Children?.map(e,r=>{if(Z.default.isValidElement(r)){let l={},m=Object.keys(l).reduce((c,g)=>(l[g]!==void 0&&(c[g]=l[g]),c),{});return Z.default.cloneElement(r,m)}return null})})});var Ze=f(require("react"),1);var dr=require("lucide-react"),j=require("react/jsx-runtime"),pr=({title:e,description:t,value:o,type:i,name:r,checked:l,disabled:m,hiddenInput:c,classNameDescription:g,classNameTitle:y,className:P,onChange:v,children:D})=>{let[B,C]=(0,Ze.useState)(!1),N=H=>{v&&v(H?.target?.value)},O=H=>{C(H),v?.(H)};return(0,j.jsxs)("label",{className:a(" flex rounded-md cursor-pointer p-4 items-center space-x-6",l||B?"mobase-focus":"mobase-visible",m?"opacity-60 bg-gray-100":"",P),htmlFor:o,children:[!e&&!t?null:(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:a("text-gray-900 text-sm select-none font-bold",y),children:e}),(0,j.jsx)("div",{className:a("text-gray-900 select-none text-sm",g),children:t})]}),D,i==="radio"?(0,j.jsxs)("div",{className:a("relative",c?"hidden":""),children:[(0,j.jsx)("input",{"aria-checked":l,"data-state":l?"checked":"unchecked",checked:l,type:"radio",value:o,name:r,id:o,disabled:m,onChange:N,className:"custom-radio cursor-pointer aspect-square ml-auto h-4 w-4 rounded-full border border-gray-700 disabled:bg-gray-300 disabled:data-[state=checked]:text-gray-500 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-300 data-[state=checked]:bg-pink-500 disabled:border-none data-[state=checked]:border-none text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-40"}),(0,j.jsx)(dr.Circle,{className:a("h-2 w-2 absolute top-[6px] right-[4px] fill-white text-current transition-opacity",l?"opacti-100":"opacity-0",m?"fill-gray-300":"")})]}):(0,j.jsx)(je,{disabled:m,id:o,value:o,name:o,onCheckedChange:O,className:a("ml-auto",c?"hidden":"")}),(0,j.jsx)("style",{children:`
216
+ `})]}),o&&(0,b.jsx)("div",{className:a("hidden md:flex overflow-y-auto bg-white text-gray-900 px-6 pb-4 pt-2 w-full max-w-sm lg:max-w-md",r),children:i})]})},dr=({children:e,className:t,open:o,onOpenChange:i})=>(0,b.jsx)("div",{className:a("lightbox-gallery ",t),children:(0,b.jsx)(Ln,{open:o,onOpenChange:i,children:Z.default.Children?.map(e,r=>{if(Z.default.isValidElement(r)){let l={},m=Object.keys(l).reduce((c,g)=>(l[g]!==void 0&&(c[g]=l[g]),c),{});return Z.default.cloneElement(r,m)}return null})})});var Ze=f(require("react"),1);var pr=require("lucide-react"),j=require("react/jsx-runtime"),fr=({title:e,description:t,value:o,type:i,name:r,checked:l,disabled:m,hiddenInput:c,classNameDescription:g,classNameTitle:y,className:P,onChange:v,children:D})=>{let[B,C]=(0,Ze.useState)(!1),N=H=>{v&&v(H?.target?.value)},O=H=>{C(H),v?.(H)};return(0,j.jsxs)("label",{className:a(" flex rounded-md cursor-pointer p-4 items-center space-x-6",l||B?"mobase-focus":"mobase-visible",m?"opacity-60 bg-gray-100":"",P),htmlFor:o,children:[!e&&!t?null:(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:a("text-gray-900 text-sm select-none font-bold",y),children:e}),(0,j.jsx)("div",{className:a("text-gray-900 select-none text-sm",g),children:t})]}),D,i==="radio"?(0,j.jsxs)("div",{className:a("relative",c?"hidden":""),children:[(0,j.jsx)("input",{"aria-checked":l,"data-state":l?"checked":"unchecked",checked:l,type:"radio",value:o,name:r,id:o,disabled:m,onChange:N,className:"custom-radio cursor-pointer aspect-square ml-auto h-4 w-4 rounded-full border border-gray-700 disabled:bg-gray-300 disabled:data-[state=checked]:text-gray-500 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-300 data-[state=checked]:bg-pink-500 disabled:border-none data-[state=checked]:border-none text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-40"}),(0,j.jsx)(pr.Circle,{className:a("h-2 w-2 absolute top-[6px] right-[4px] fill-white text-current transition-opacity",l?"opacti-100":"opacity-0",m?"fill-gray-300":"")})]}):(0,j.jsx)(je,{disabled:m,id:o,value:o,name:o,onCheckedChange:O,className:a("ml-auto",c?"hidden":"")}),(0,j.jsx)("style",{children:`
217
217
  .custom-radio {
218
218
  appearance: none;
219
219
  border: 1px solid #ccc;
@@ -229,7 +229,7 @@
229
229
  .mobase-focus {
230
230
  box-shadow: 0px 0px 0px 2px rgb(var(--mobase-pink-500) / 1) inset;
231
231
  }
232
- `})]})},fr=({direction:e="row",label:t,type:o,value:i,children:r,disabled:l,hiddenInput:m,onChange:c,className:g,...y})=>{let P=`choicebox-group-${t?.replace(/\s+/g,"-").toLowerCase()}`;return(0,j.jsxs)("div",{...y,children:[(0,j.jsx)("label",{children:t}),(0,j.jsx)("ul",{className:a("",g,e?"flex md:flex-row md:space-y-0 md:space-x-4 flex-col space-y-4":"block"),children:Ze.default.Children?.map(r,v=>{if(Ze.default.isValidElement(v)){let D={disabled:v.props.disabled??l,type:o,name:P,checked:v.props.value===i,hiddenInput:m,className:v.props.className,classNameTitle:v.props.classNameTitle,classNameDescription:v.props.classNameDescription,onChange:c},B=Object.keys(D).reduce((C,N)=>(D[N]!==void 0&&(C[N]=D[N]),C),{});return Ze.default.cloneElement(v,B)}return null})})]})};var gr=require("class-variance-authority");var hr=require("react/jsx-runtime"),fa=(0,gr.cva)("inline-flex items-center rounded-md border border-gray-300 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-semibold",{variants:{variant:{default:"border-transparent bg-pink-500 text-white/90 shadow hover:bg-pink-500/80",secondary:"border-transparent bg-gray-200 text-gray-900 hover:bg-gray-200/80",outline:"text-gray-900",danger:"border-transparent bg-red-500 text-white/90 shadow hover:bg-red-500/80"}},defaultVariants:{variant:"default"}});function ur({className:e,variant:t,...o}){return(0,hr.jsx)("div",{className:a(fa({variant:t}),e),...o})}var vr=f(require("react"),1),bt=f(require("@radix-ui/react-progress"),1),ua=require("class-variance-authority");var ga=require("react/jsx-runtime"),On=(0,ua.cva)("h-full w-full rounded-full flex-1 transition-all",{variants:{variant:{progress:"bg-pink-500",success:"bg-green-600",disabled:"bg-gray-400",empty:"bg-gray-200"}},defaultVariants:{variant:"progress"}}),Vn=(0,ua.cva)("relative h-4 w-full overflow-hidden rounded-full bg-gray-200",{variants:{size:{small:"h-[6px]",medium:"h-2",large:"h-[10px]"}},defaultVariants:{size:"medium"}}),ha=vr.forwardRef(({className:e,value:t,variant:o="progress",size:i="medium",disabled:r=!1,...l},m)=>(0,ga.jsx)(bt.Root,{ref:m,className:a("",Vn({size:i}),e),...l,children:(0,ga.jsx)(bt.Indicator,{className:a("",On({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}})}));ha.displayName=bt.Root.displayName;var yt=f(require("react"),1);var Zt=1;var br={tagName:"DUMMY TAG",title:"Lorem ipsum, dolor sit amet consectetur adipisicing elit. ",description:"Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maxime minima amet porro.nam asperiores omnis labore doloribus excepturi?",media:{type:1,src:"https://homepage.momocdn.net/img/momo-upload-api-240522112100-638519736605993862.jpg",ratioImg:1/1}},xr=[{variant:"primary",content:"Button Primary",url:""},{variant:"transparent",content:"Button Text",url:""}],yr={type:"col",contents:[{title:"Lorem ipsum, dolor sit amet consectetur adipisicing elit",label:"",icon:""},{title:"Lorem ipsum, dolor sit amet consectetur adipisicing elit",label:"",icon:""},{title:"Lorem ipsum, dolor sit amet consectetur adipisicing elit",label:"",icon:""},{title:"Lorem ipsum, dolor sit amet consectetur adipisicing elit",label:"",icon:""}]};var Nr=require("@heroicons/react/24/outline");var wr=f(require("@radix-ui/react-aspect-ratio"),1),xt=wr.Root;var Pr=require("class-variance-authority"),ae=f(require("@radix-ui/react-dialog"),1),Cr=require("lucide-react"),n=require("react/jsx-runtime"),zn=ae.Portal,Fn=yt.default.forwardRef(({className:e,...t},o)=>(0,n.jsx)(ae.Overlay,{ref:o,className:a("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})),Wn=ae.Root,$n=()=>(0,n.jsxs)(ae.Close,{className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[(0,n.jsx)(Cr.X,{className:"h-4 w-4 mt-0.5"}),(0,n.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]}),jn=yt.default.forwardRef(({className:e,children:t,...o},i)=>(0,n.jsxs)(zn,{children:[(0,n.jsx)(Fn,{className:"bg-black"}),(0,n.jsxs)(ae.Content,{ref:i,className:a("h-full min-w-full border-none rounded-none z-[999] fixed left-[50%] top-[50%] grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border 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%] ",e),...o,children:[t,(0,n.jsx)($n,{})]})]})),Gn=(0,Pr.cva)("max-w-md space-y-1 text-gray-800 font-semibold list-inside ",{variants:{template:{col:" flex-col flex mt-5",row:"grid grid-cols-3 items-center divide-x gap-2 mt-5 ",customize:"grid grid-cols-2 md:grid-cols-4 gap-12 max-w-5xl mx-auto font-semibold items-center py-12 text-left text-sm"}},defaultVariants:{template:"col"}}),wt=({title:e,className:t})=>(0,n.jsx)("h1",{dangerouslySetInnerHTML:{__html:e||""},className:a("text-3xl md:text-4xl font-bold py-3 text-gray-900",t)}),Nt=({tagName:e,className:t})=>(0,n.jsx)("div",{className:a("text-pink-500 font-bold text-sm tracking-wider ",t),children:e}),Pt=({description:e,className:t})=>(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""},className:a("text-lg text-gray-700 pb-2",t)}),Se=({dataCtas:e,className:t})=>{let o=(r,l)=>{r.preventDefault(),r.stopPropagation(),l?.()},i=({cta:r,index:l})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Le,{onClick:m=>r?.onClickCTA?.()&&o(m,r?.onClickCTA?.()),variant:r?.variant,className:a("md:block hidden",r?.variant!=="primary"&&"text-pink-500 hidden "),children:r?.content},l),(0,n.jsx)(Le,{variant:r?.variant,className:a("md:hidden",r?.variant!=="primary"&&"text-pink-500"),children:(0,n.jsx)("a",{href:r?.url,target:"_blank",rel:"noreferrer",children:r?.content})},l)]});return(0,n.jsx)("div",{className:a("flex items-center mt-10",t,e?.length>1?"space-x-6":""),children:e?.map((r,l)=>r?.isQRCode?(0,n.jsx)(i,{cta:r,index:l},l):(0,n.jsx)(Le,{onClick:m=>{r?.url||(m.stopPropagation(),m.preventDefault())},variant:r?.variant,className:a("",r?.variant!=="primary"&&"text-pink-500"),children:(0,n.jsx)("a",{href:r?.url,target:"_blank",rel:"noreferrer",children:r?.content})},l))})},Un=({template:e,title:t,label:o,icon:i,idx:r})=>(0,n.jsx)(n.Fragment,{children:(()=>{switch(e){case"col":return(0,n.jsxs)("li",{className:"flex items-center pb-3",children:[(0,n.jsx)("div",{className:"bg-pink-100 p-1 rounded-full w-5 h-5 flex items-center justify-center",children:(0,n.jsx)(Nr.CheckIcon,{className:"w-4 h-4 text-pink-500 "})}),(0,n.jsx)("div",{className:"ml-2",children:t})]});case"row":return(0,n.jsxs)("div",{className:a("",r>0?"pl-4":""),children:[(0,n.jsx)("div",{className:"font-bold text-gray-900",children:t}),(0,n.jsx)("div",{className:"text-sm mt-1 text-gray-500",children:o})]});case"customize":return(0,n.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,n.jsx)("img",{src:i,alt:"",className:"shrink-0"}),(0,n.jsx)("div",{className:"text-gray-900 text-left",children:t})]});default:return null}})()}),Ct=({dataFeatures:e})=>(0,n.jsx)("ul",{className:a("",Gn({template:e?.type})),children:e?.contents?.map((t,o)=>(0,n.jsx)(Un,{title:t?.title,template:e?.type,label:t?.label,icon:t?.icon,idx:o},o))}),qn=({type:e=1,src:t,ratioImg:o,className:i,video:r,onClickFC:l=()=>{}})=>(0,n.jsxs)(xt,{className:a(""),ratio:o,children:[(0,n.jsx)("img",{src:t,className:a("w-full h-full object-cover md:block hidden",i,t?"":"bg-gray-200"),alt:""}),e!==Zt&&r?.codeVideo&&(0,n.jsx)("div",{className:"aspect-[16/9] realtive overflow-hidden w-full",children:(0,n.jsx)("iframe",{title:r?.titleVideo,src:`https://www.youtube.com/embed/${r?.codeVideo}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"w-full h-full object-cover md:hidden"})}),e!==Zt&&r?.codeVideo&&(0,n.jsxs)(Wn,{children:[(0,n.jsx)(ae.Trigger,{onClick:l,children:(0,n.jsx)("div",{className:"w-full hidden md:flex h-full cursor-pointer transition-transform group-hover:scale-105 top-0 absolute z-10 items-center justify-center",children:(0,n.jsx)("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,n.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,n.jsx)("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),(0,n.jsx)(jn,{className:"w-full h-full flex items-center justify-center bg-gray-900 p-0",children:(0,n.jsx)("iframe",{width:738,height:439,title:r?.titleVideo,src:`https://www.youtube.com/embed/${r?.codeVideo}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:""})})]})]}),Ae=({type:e=1,url:t="",src:o,ratioImg:i,className:r,video:l,onClickFC:m=()=>{}})=>(0,n.jsx)("div",{children:e===Zt&&!l?.codeVideo?(0,n.jsx)(xt,{className:a(""),ratio:i,children:(0,n.jsx)("img",{src:o,className:a("w-full h-full object-cover",r,o?"":"bg-gray-200"),alt:""})}):(0,n.jsx)(qn,{type:e,url:t,src:o,ratioImg:i,video:l,onClickFC:m})}),Qn=({data:e,dataCtas:t,dataFeatures:o})=>(0,n.jsxs)("div",{className:a("grid grid-cols-1 md:grid-cols-2 md:gap-16 gap-4 items-center"),children:[(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)(Nt,{tagName:e?.tagName}),(0,n.jsx)(wt,{title:e?.title}),(0,n.jsx)(Pt,{description:e?.description}),(0,n.jsx)(Ct,{dataFeatures:o}),(0,n.jsx)("div",{className:"md:block hidden",children:(0,n.jsx)(Se,{dataCtas:t})})]}),(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg,video:e?.media?.video}),(0,n.jsx)("div",{className:"block md:hidden flex items-center justify-center",children:(0,n.jsx)(Se,{dataCtas:t})})]})]}),Zn=({data:e,dataCtas:t,dataFeatures:o})=>(0,n.jsxs)("div",{className:a("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg})})}),(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)(Nt,{tagName:e?.tagName}),(0,n.jsx)(wt,{title:e?.title}),(0,n.jsx)(Pt,{description:e?.description}),(0,n.jsx)(Ct,{dataFeatures:o}),(0,n.jsx)("div",{className:"md:hidden mt-10",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg})}),(0,n.jsx)("div",{className:"w-full flex items-center justify-center md:justify-start",children:(0,n.jsx)(Se,{dataCtas:t})})]})]}),Kn=({data:e,dataCtas:t,dataFeatures:o})=>(0,n.jsxs)("div",{className:a("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)(Nt,{tagName:e?.tagName}),(0,n.jsx)(wt,{title:e?.title}),(0,n.jsx)(Pt,{description:e?.description}),(0,n.jsx)(Ct,{dataFeatures:o}),(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(Se,{dataCtas:t})})]}),(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg})}),(0,n.jsx)("div",{className:"md:hidden",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg})}),(0,n.jsx)("div",{className:"md:hidden block w-full flex items-center justify-center",children:(0,n.jsx)(Se,{dataCtas:t})})]})]}),Yn=({data:e,dataCtas:t,dataFeatures:o})=>(0,n.jsxs)("div",{className:a("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)(Nt,{tagName:e?.tagName}),(0,n.jsx)(wt,{title:e?.title}),(0,n.jsx)(Pt,{description:e?.description}),(0,n.jsx)(Ct,{dataFeatures:o}),(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(Se,{dataCtas:t})})]}),(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg,className:"relative overflow-hidden -bottom-20"})}),(0,n.jsx)("div",{className:"md:hidden",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg})}),(0,n.jsx)("div",{className:"md:hidden block w-full flex items-center justify-center",children:(0,n.jsx)(Se,{dataCtas:t})})]})]}),Xn=({data:e,dataCtas:t,dataFeatures:o})=>(0,n.jsxs)("div",{children:[(0,n.jsx)(Nt,{tagName:e?.tagName,className:"max-w-4xl mx-auto text-center text-base leading-7 text-pink-500 font-bold"}),(0,n.jsx)(wt,{title:e?.title,className:"max-w-4xl mx-auto text-center font-manrope font-bold text-2xl text-gray-900 mb-5 md:text-4xl lg:text-5xl"}),(0,n.jsx)(Pt,{description:e?.description,className:"max-w-4xl mx-auto text-center text-base md:text-lg lg:text-xl font-normal leading-7 text-gray-700"}),(0,n.jsx)(Se,{dataCtas:t,className:"w-full md:w-full inline-flex items-center justify-center text-base font-semibold text-center "}),(0,n.jsx)(Ct,{dataFeatures:o}),(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg,className:"rounded-lg"})]}),Jn=({template:e,data:t,dataCtas:o,dataFeatures:i})=>{switch(e){case 1:return(0,n.jsx)(Qn,{data:t,dataCtas:o,dataFeatures:i});case 2:return(0,n.jsx)(Zn,{data:t,dataCtas:o,dataFeatures:i});case 3:return(0,n.jsx)(Kn,{data:t,dataCtas:o,dataFeatures:i});case 4:return(0,n.jsx)(Yn,{data:t,dataCtas:o,dataFeatures:i});case 5:return(0,n.jsx)(Xn,{data:t,dataCtas:o,dataFeatures:i});default:return null}},es=({template:e,data:t,dataCtas:o,dataFeatures:i})=>(0,n.jsx)(n.Fragment,{children:Jn({template:e,data:t,dataCtas:o,dataFeatures:i})}),Rr=(0,yt.forwardRef)(({template:e=1,className:t,data:o,dataCtas:i,dataFeatures:r},l)=>(0,n.jsxs)("div",{ref:l,className:a(" bg-section-hero overflow-hidden py-20",t),children:[(0,n.jsx)("div",{className:"wrapper relative",children:(0,n.jsx)(es,{dataCtas:i||xr,template:e,data:o||br,dataFeatures:r||yr})}),(0,n.jsx)("style",{children:`
232
+ `})]})},gr=({direction:e="row",label:t,type:o,value:i,children:r,disabled:l,hiddenInput:m,onChange:c,className:g,...y})=>{let P=`choicebox-group-${t?.replace(/\s+/g,"-").toLowerCase()}`;return(0,j.jsxs)("div",{...y,children:[(0,j.jsx)("label",{children:t}),(0,j.jsx)("ul",{className:a("",g,e?"flex md:flex-row md:space-y-0 md:space-x-4 flex-col space-y-4":"block"),children:Ze.default.Children?.map(r,v=>{if(Ze.default.isValidElement(v)){let D={disabled:v.props.disabled??l,type:o,name:P,checked:v.props.value===i,hiddenInput:m,className:v.props.className,classNameTitle:v.props.classNameTitle,classNameDescription:v.props.classNameDescription,onChange:c},B=Object.keys(D).reduce((C,N)=>(D[N]!==void 0&&(C[N]=D[N]),C),{});return Ze.default.cloneElement(v,B)}return null})})]})};var ur=require("class-variance-authority");var vr=require("react/jsx-runtime"),fa=(0,ur.cva)("inline-flex items-center rounded-md border border-gray-300 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-semibold",{variants:{variant:{default:"border-transparent bg-pink-500 text-white/90 shadow hover:bg-pink-500/80",secondary:"border-transparent bg-gray-200 text-gray-900 hover:bg-gray-200/80",outline:"text-gray-900",danger:"border-transparent bg-red-500 text-white/90 shadow hover:bg-red-500/80"}},defaultVariants:{variant:"default"}});function hr({className:e,variant:t,...o}){return(0,vr.jsx)("div",{className:a(fa({variant:t}),e),...o})}var br=f(require("react"),1),bt=f(require("@radix-ui/react-progress"),1),ua=require("class-variance-authority");var ga=require("react/jsx-runtime"),Vn=(0,ua.cva)("h-full w-full rounded-full flex-1 transition-all",{variants:{variant:{progress:"bg-pink-500",success:"bg-green-600",disabled:"bg-gray-400",empty:"bg-gray-200"}},defaultVariants:{variant:"progress"}}),zn=(0,ua.cva)("relative h-4 w-full overflow-hidden rounded-full bg-gray-200",{variants:{size:{small:"h-[6px]",medium:"h-2",large:"h-[10px]"}},defaultVariants:{size:"medium"}}),ha=br.forwardRef(({className:e,value:t,variant:o="progress",size:i="medium",disabled:r=!1,...l},m)=>(0,ga.jsx)(bt.Root,{ref:m,className:a("",zn({size:i}),e),...l,children:(0,ga.jsx)(bt.Indicator,{className:a("",Vn({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}})}));ha.displayName=bt.Root.displayName;var yt=f(require("react"),1);var Zt=1;var xr={tagName:"DUMMY TAG",title:"Lorem ipsum, dolor sit amet consectetur adipisicing elit. ",description:"Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maxime minima amet porro.nam asperiores omnis labore doloribus excepturi?",media:{type:1,src:"https://homepage.momocdn.net/img/momo-upload-api-240522112100-638519736605993862.jpg",ratioImg:1/1}},yr=[{variant:"primary",content:"Button Primary",url:""},{variant:"transparent",content:"Button Text",url:""}],wr={type:"col",contents:[{title:"Lorem ipsum, dolor sit amet consectetur adipisicing elit",label:"",icon:""},{title:"Lorem ipsum, dolor sit amet consectetur adipisicing elit",label:"",icon:""},{title:"Lorem ipsum, dolor sit amet consectetur adipisicing elit",label:"",icon:""},{title:"Lorem ipsum, dolor sit amet consectetur adipisicing elit",label:"",icon:""}]};var Pr=require("@heroicons/react/24/outline");var Nr=f(require("@radix-ui/react-aspect-ratio"),1),xt=Nr.Root;var Cr=require("class-variance-authority"),ae=f(require("@radix-ui/react-dialog"),1),Rr=require("lucide-react"),n=require("react/jsx-runtime"),Fn=ae.Portal,Wn=yt.default.forwardRef(({className:e,...t},o)=>(0,n.jsx)(ae.Overlay,{ref:o,className:a("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})),$n=ae.Root,jn=()=>(0,n.jsxs)(ae.Close,{className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[(0,n.jsx)(Rr.X,{className:"h-4 w-4 mt-0.5"}),(0,n.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]}),Gn=yt.default.forwardRef(({className:e,children:t,...o},i)=>(0,n.jsxs)(Fn,{children:[(0,n.jsx)(Wn,{className:"bg-black"}),(0,n.jsxs)(ae.Content,{ref:i,className:a("h-full min-w-full border-none rounded-none z-[999] fixed left-[50%] top-[50%] grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border 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%] ",e),...o,children:[t,(0,n.jsx)(jn,{})]})]})),Un=(0,Cr.cva)("max-w-md space-y-1 text-gray-800 font-semibold list-inside ",{variants:{template:{col:" flex-col flex mt-5",row:"grid grid-cols-3 items-center divide-x gap-2 mt-5 ",customize:"grid grid-cols-2 md:grid-cols-4 gap-12 max-w-5xl mx-auto font-semibold items-center py-12 text-left text-sm"}},defaultVariants:{template:"col"}}),wt=({title:e,className:t})=>(0,n.jsx)("h1",{dangerouslySetInnerHTML:{__html:e||""},className:a("text-3xl md:text-4xl font-bold py-3 text-gray-900",t)}),Nt=({tagName:e,className:t})=>(0,n.jsx)("div",{className:a("text-pink-500 font-bold text-sm tracking-wider ",t),children:e}),Pt=({description:e,className:t})=>(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e||""},className:a("text-lg text-gray-700 pb-2",t)}),Se=({dataCtas:e,className:t})=>{let o=(r,l)=>{r.preventDefault(),r.stopPropagation(),l?.()},i=({cta:r,index:l})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Le,{onClick:m=>r?.onClickCTA?.()&&o(m,r?.onClickCTA?.()),variant:r?.variant,className:a("md:block hidden",r?.variant!=="primary"&&"text-pink-500 hidden "),children:r?.content},l),(0,n.jsx)(Le,{variant:r?.variant,className:a("md:hidden",r?.variant!=="primary"&&"text-pink-500"),children:(0,n.jsx)("a",{href:r?.url,target:"_blank",rel:"noreferrer",children:r?.content})},l)]});return(0,n.jsx)("div",{className:a("flex items-center mt-10",t,e?.length>1?"space-x-6":""),children:e?.map((r,l)=>r?.isQRCode?(0,n.jsx)(i,{cta:r,index:l},l):(0,n.jsx)(Le,{onClick:m=>{r?.url||(m.stopPropagation(),m.preventDefault())},variant:r?.variant,className:a("",r?.variant!=="primary"&&"text-pink-500"),children:(0,n.jsx)("a",{href:r?.url,target:"_blank",rel:"noreferrer",children:r?.content})},l))})},qn=({template:e,title:t,label:o,icon:i,idx:r})=>(0,n.jsx)(n.Fragment,{children:(()=>{switch(e){case"col":return(0,n.jsxs)("li",{className:"flex items-center pb-3",children:[(0,n.jsx)("div",{className:"bg-pink-100 p-1 rounded-full w-5 h-5 flex items-center justify-center",children:(0,n.jsx)(Pr.CheckIcon,{className:"w-4 h-4 text-pink-500 "})}),(0,n.jsx)("div",{className:"ml-2",children:t})]});case"row":return(0,n.jsxs)("div",{className:a("",r>0?"pl-4":""),children:[(0,n.jsx)("div",{className:"font-bold text-gray-900",children:t}),(0,n.jsx)("div",{className:"text-sm mt-1 text-gray-500",children:o})]});case"customize":return(0,n.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,n.jsx)("img",{src:i,alt:"",className:"shrink-0"}),(0,n.jsx)("div",{className:"text-gray-900 text-left",children:t})]});default:return null}})()}),Ct=({dataFeatures:e})=>(0,n.jsx)("ul",{className:a("",Un({template:e?.type})),children:e?.contents?.map((t,o)=>(0,n.jsx)(qn,{title:t?.title,template:e?.type,label:t?.label,icon:t?.icon,idx:o},o))}),Qn=({type:e=1,src:t,ratioImg:o,className:i,video:r,onClickFC:l=()=>{}})=>(0,n.jsxs)(xt,{className:a(""),ratio:o,children:[(0,n.jsx)("img",{src:t,className:a("w-full h-full object-cover md:block hidden",i,t?"":"bg-gray-200"),alt:""}),e!==Zt&&r?.codeVideo&&(0,n.jsx)("div",{className:"aspect-[16/9] realtive overflow-hidden w-full",children:(0,n.jsx)("iframe",{title:r?.titleVideo,src:`https://www.youtube.com/embed/${r?.codeVideo}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"w-full h-full object-cover md:hidden"})}),e!==Zt&&r?.codeVideo&&(0,n.jsxs)($n,{children:[(0,n.jsx)(ae.Trigger,{onClick:l,children:(0,n.jsx)("div",{className:"w-full hidden md:flex h-full cursor-pointer transition-transform group-hover:scale-105 top-0 absolute z-10 items-center justify-center",children:(0,n.jsx)("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,n.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,n.jsx)("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),(0,n.jsx)(Gn,{className:"w-full h-full flex items-center justify-center bg-gray-900 p-0",children:(0,n.jsx)("iframe",{width:738,height:439,title:r?.titleVideo,src:`https://www.youtube.com/embed/${r?.codeVideo}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:""})})]})]}),Ae=({type:e=1,url:t="",src:o,ratioImg:i,className:r,video:l,onClickFC:m=()=>{}})=>(0,n.jsx)("div",{children:e===Zt&&!l?.codeVideo?(0,n.jsx)(xt,{className:a(""),ratio:i,children:(0,n.jsx)("img",{src:o,className:a("w-full h-full object-cover",r,o?"":"bg-gray-200"),alt:""})}):(0,n.jsx)(Qn,{type:e,url:t,src:o,ratioImg:i,video:l,onClickFC:m})}),Zn=({data:e,dataCtas:t,dataFeatures:o})=>(0,n.jsxs)("div",{className:a("grid grid-cols-1 md:grid-cols-2 md:gap-16 gap-4 items-center"),children:[(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)(Nt,{tagName:e?.tagName}),(0,n.jsx)(wt,{title:e?.title}),(0,n.jsx)(Pt,{description:e?.description}),(0,n.jsx)(Ct,{dataFeatures:o}),(0,n.jsx)("div",{className:"md:block hidden",children:(0,n.jsx)(Se,{dataCtas:t})})]}),(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg,video:e?.media?.video}),(0,n.jsx)("div",{className:"block md:hidden flex items-center justify-center",children:(0,n.jsx)(Se,{dataCtas:t})})]})]}),Kn=({data:e,dataCtas:t,dataFeatures:o})=>(0,n.jsxs)("div",{className:a("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[(0,n.jsx)("div",{className:"col-span-1",children:(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg})})}),(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)(Nt,{tagName:e?.tagName}),(0,n.jsx)(wt,{title:e?.title}),(0,n.jsx)(Pt,{description:e?.description}),(0,n.jsx)(Ct,{dataFeatures:o}),(0,n.jsx)("div",{className:"md:hidden mt-10",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg})}),(0,n.jsx)("div",{className:"w-full flex items-center justify-center md:justify-start",children:(0,n.jsx)(Se,{dataCtas:t})})]})]}),Yn=({data:e,dataCtas:t,dataFeatures:o})=>(0,n.jsxs)("div",{className:a("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)(Nt,{tagName:e?.tagName}),(0,n.jsx)(wt,{title:e?.title}),(0,n.jsx)(Pt,{description:e?.description}),(0,n.jsx)(Ct,{dataFeatures:o}),(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(Se,{dataCtas:t})})]}),(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg})}),(0,n.jsx)("div",{className:"md:hidden",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg})}),(0,n.jsx)("div",{className:"md:hidden block w-full flex items-center justify-center",children:(0,n.jsx)(Se,{dataCtas:t})})]})]}),Xn=({data:e,dataCtas:t,dataFeatures:o})=>(0,n.jsxs)("div",{className:a("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)(Nt,{tagName:e?.tagName}),(0,n.jsx)(wt,{title:e?.title}),(0,n.jsx)(Pt,{description:e?.description}),(0,n.jsx)(Ct,{dataFeatures:o}),(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(Se,{dataCtas:t})})]}),(0,n.jsxs)("div",{className:"col-span-1",children:[(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg,className:"relative overflow-hidden -bottom-20"})}),(0,n.jsx)("div",{className:"md:hidden",children:(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg})}),(0,n.jsx)("div",{className:"md:hidden block w-full flex items-center justify-center",children:(0,n.jsx)(Se,{dataCtas:t})})]})]}),Jn=({data:e,dataCtas:t,dataFeatures:o})=>(0,n.jsxs)("div",{children:[(0,n.jsx)(Nt,{tagName:e?.tagName,className:"max-w-4xl mx-auto text-center text-base leading-7 text-pink-500 font-bold"}),(0,n.jsx)(wt,{title:e?.title,className:"max-w-4xl mx-auto text-center font-manrope font-bold text-2xl text-gray-900 mb-5 md:text-4xl lg:text-5xl"}),(0,n.jsx)(Pt,{description:e?.description,className:"max-w-4xl mx-auto text-center text-base md:text-lg lg:text-xl font-normal leading-7 text-gray-700"}),(0,n.jsx)(Se,{dataCtas:t,className:"w-full md:w-full inline-flex items-center justify-center text-base font-semibold text-center "}),(0,n.jsx)(Ct,{dataFeatures:o}),(0,n.jsx)(Ae,{type:e?.media?.type||1,url:e?.media?.url||"",src:e?.media?.src||"",ratioImg:e?.media?.ratioImg,className:"rounded-lg"})]}),es=({template:e,data:t,dataCtas:o,dataFeatures:i})=>{switch(e){case 1:return(0,n.jsx)(Zn,{data:t,dataCtas:o,dataFeatures:i});case 2:return(0,n.jsx)(Kn,{data:t,dataCtas:o,dataFeatures:i});case 3:return(0,n.jsx)(Yn,{data:t,dataCtas:o,dataFeatures:i});case 4:return(0,n.jsx)(Xn,{data:t,dataCtas:o,dataFeatures:i});case 5:return(0,n.jsx)(Jn,{data:t,dataCtas:o,dataFeatures:i});default:return null}},ts=({template:e,data:t,dataCtas:o,dataFeatures:i})=>(0,n.jsx)(n.Fragment,{children:es({template:e,data:t,dataCtas:o,dataFeatures:i})}),Tr=(0,yt.forwardRef)(({template:e=1,className:t,data:o,dataCtas:i,dataFeatures:r},l)=>(0,n.jsxs)("div",{ref:l,className:a(" bg-section-hero overflow-hidden py-20",t),children:[(0,n.jsx)("div",{className:"wrapper relative",children:(0,n.jsx)(ts,{dataCtas:i||yr,template:e,data:o||xr,dataFeatures:r||wr})}),(0,n.jsx)("style",{children:`
233
233
  .bg-section-hero {
234
234
  background: var(
235
235
  --gradient-pink-1,
@@ -255,7 +255,7 @@
255
255
  #fff
256
256
  );
257
257
  }
258
- `})]}));var Tr=f(require("react"),1),fe=f(require("@radix-ui/react-slider"),1);var Fe=require("react/jsx-runtime"),va=Tr.forwardRef(({className:e,...t},o)=>(0,Fe.jsxs)(fe.Root,{ref:o,className:a("relative flex w-full touch-none select-none items-center",t?.disabled&&"opacity-40",e),...t,children:[(0,Fe.jsx)(fe.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,Fe.jsx)(fe.Range,{className:"absolute h-full bg-pink-500"})}),(0,Fe.jsx)(fe.Thumb,{className:"hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"}),(0,Fe.jsx)(fe.Thumb,{className:"hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));va.displayName=fe.Root.displayName;var qr=f(require("color"),1),Qr=f(require("tailwindcss/plugin.js"),1);var V="250ms",kr={".transition-all":{"transition-property":"all","transition-timing-function":"ease","transition-duration":V},".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":V},".transition":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter","transition-timing-function":"ease","transition-duration":V},".transition-colors":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":V},".transition-opacity":{"transition-property":"opacity","transition-timing-function":"ease","transition-duration":V},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":V},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":V},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":V},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":V},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":V},".transition-shadow":{"transition-property":"box-shadow","transition-timing-function":"ease","transition-duration":V},".transition-transform":{"transition-property":"transform","transition-timing-function":"ease","transition-duration":V},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":V},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":V},".transition-transform-colors":{" transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":V},".transition-transform-colors-opacity":{" transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":V}};var Dr={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},"*":{"border-color":"rgb(var(--mobase-gray-300))"}};var Sr={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}};var Ar={...Dr,...kr,...Sr};function ts(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function os(e){return e}function Mr(e,t){t=t||{};let o=t.delimiter||".",i=t.maxDepth,r=t.transformKey||os,l={};function m(c,g,y){y=y||1,Object.keys(c).forEach(function(P){let v=c[P],D=t.safe&&Array.isArray(v),B=Object.prototype.toString.call(v),C=ts(v),N=B==="[object Object]"||B==="[object Array]",O=g?g+o+r(P):r(P);if(!D&&!C&&N&&Object.keys(v).length&&(!t.maxDepth||y<i))return m(v,O,y+1);l[O]=v})}return m(e),l}function as(e){let t={};for(let o in e){if(o.endsWith("-DEFAULT")){t[o.replace("-DEFAULT","")]=e[o];continue}t[o]=e[o]}return t}var Lr=e=>as(Mr(e,{safe:!0,delimiter:"-"}));var Kt=16,is=[.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,18],rs=[20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],Er=e=>{let t={xs:2,sm:3,md:4,lg:5.5,xl:9,"2xl":12,"3xl":20,"4xl":30,"5xl":56,"6xl":72,"7xl":96,"8xl":128,"9xl":160},o={0:"0px"};return Object.entries(t).forEach(([i,r])=>{o[i]=r?`${e*r/Kt}rem`:`${e/Kt}rem`}),is.forEach(i=>{let r=`${i}`;if(r.includes(".")){let[l,m]=r.split(".");r=`${l}_${m}`}o[r]=`${e*i/Kt}rem`}),rs.forEach(i=>{let r=`${i}`;o[r]=`${e*i/Kt}rem`}),o};var Ir={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Hr={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var _r={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Br={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Or={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Vr={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var zr={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Fr={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var Wr={white:"#ffffff",black:"#000000",blue:Ir,green:Hr,pink:_r,purple:Br,red:Or,yellow:Vr,gray:Fr,orange:zr};var ba={...Wr};var $r={"spacing-unit":4,"disabled-opacity":.5,"font-size":{xxs:"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},radius:{sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"box-shadow":{small:"0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",medium:"0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",large:"0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"}};var jr={animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out","spin-loading":"spin 1s steps(12, end) infinite","fade-in":"fade-in 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}},"fade-in":{"0%":{opacity:"0"},"100%":{opacity:"1"}}}};function Gr(e){return{xxs:[`var(--${e}-font-size-xxs)`,{lineHeight:"1rem"}],xs:[`var(--${e}-font-size-xs)`,{lineHeight:"1rem"}],sm:[`var(--${e}-font-size-sm)`,{lineHeight:"1.25rem"}],base:[`var(--${e}-font-size-base)`,{lineHeight:"1.5rem"}],lg:[`var(--${e}-font-size-lg)`,{lineHeight:"1.75rem"}],xl:[`var(--${e}-font-size-xl)`,{lineHeight:"1.75rem"}],"2xl":[`var(--${e}-font-size-2xl)`,{lineHeight:"2rem"}],"3xl":[`var(--${e}-font-size-3xl)`,{lineHeight:"2.25rem"}],"4xl":[`var(--${e}-font-size-4xl)`,{lineHeight:"2.5rem"}],"5xl":[`var(--${e}-font-size-5xl)`,{lineHeight:"3.5rem",letterSpacing:"-0.075rem"}],"6xl":[`var(--${e}-font-size-6xl)`,{lineHeight:"4.5rem",letterSpacing:"-0.09375rem"}],"7xl":[`var(--${e}-font-size-7xl)`,{lineHeight:"5rem",letterSpacing:"-0.1125rem"}],"8xl":[`var(--${e}-font-size-8xl)`,{lineHeight:"6.5rem",letterSpacing:"-0.15rem"}],"9xl":[`var(--${e}-font-size-9xl)`,{lineHeight:"8rem",letterSpacing:"-0.2rem"}]}}function Ur(e){return{sm:`var(--${e}-radius-sm)`,DEFAULT:`var(--${e}-radius-base)`,md:`var(--${e}-radius-md)`,lg:`var(--${e}-radius-lg)`,xl:`var(--${e}-radius-xl)`,"2xl":`var(--${e}-radius-2xl)`,"3xl":`var(--${e}-radius-3xl)`}}var ns=e=>{let t={utilities:{},colors:{}},o=Lr(ba),i=$r,r=":root";return t.utilities[r]={},Object.entries(o).forEach(([l,m])=>{if(m)try{let[c,g,y]=(0,qr.default)(m).rgb().array(),P=`--${e}-${l}`;t.utilities[r][P]=`${c} ${g} ${y}`,t.colors[l]=`rgb(var(${P}) / <alpha-value>)`}catch(c){console.log("error",c?.message)}}),Object.entries(i).forEach(([l,m])=>{if(!m)return;let c=`--${e}-${l}`;if(typeof m=="object")Object.entries(m).forEach(([g,y])=>{let P=`${c}-${g}`;t.utilities[r][P]=y});else if(l==="spacing-unit"){t.utilities[r][c]=m;let g=Er(Number(m));Object.entries(g).forEach(([y,P])=>{let v=`${c}-${y}`;t.utilities[r][v]=P})}else{let g=c.includes("opacity")&&typeof m=="number"?m.toString().replace(/^0\./,"."):m;t.utilities[r][c]=g}}),t},Zr=()=>{let e="mobase",t=ns(e);return(0,Qr.default)(({addBase:o,addUtilities:i,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}}}),o({":root":{"font-smooth--webkit":"antialiased"},...t?.utilities}),i({...Ar})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16"},extend:{fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"],mono:["SFMono-Regular","Consolas","Liberation Mono","Menlo","monospace"]},colors:{...ba,...t?.colors,border:"rgba(var(--border))"},boxShadow:{small:`var(--${e}-box-shadow-small)`,medium:`var(--${e}-box-shadow-medium)`,large:`var(--${e}-box-shadow-large)`},zIndex:{negative:`var(--${e}-z-index-negative)`,workbench:`var(--${e}-z-index-workbench)`,default:`var(--${e}-z-index-default)`,"workbench-header":`var(--${e}-z-index-workbench-header)`,modal:`var(--${e}-z-index-modal)`,"modal-content":`var(--${e}-z-index-modal-content)`,dropdown:`var(--${e}-z-index-dropdown)`,tooltip:`var(--${e}-z-index-tooltip)`,notification:`var(--${e}-z-index-notification)`},borderRadius:{...Ur(e)},fontSize:{...Gr(e)},...jr}}})};var u=require("react/jsx-runtime"),Kr=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("meta",{name:"abstract",content:"V\xED \u0111i\u1EC7n t\u1EED MoMo - Si\xEAu \u1EE9ng d\u1EE5ng thanh to\xE1n s\u1ED1 1 Vi\u1EC7t Nam"}),(0,u.jsx)("meta",{name:"distribution",content:"Global"}),(0,u.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,u.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,u.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,u.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,u.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,u.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,u.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,u.jsx)("meta",{name:"language",content:"vietnamese"}),(0,u.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,u.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,u.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,u.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,u.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,u.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,u.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,u.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,u.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,u.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,u.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,u.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,u.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
258
+ `})]}));var kr=f(require("react"),1),fe=f(require("@radix-ui/react-slider"),1);var Fe=require("react/jsx-runtime"),va=kr.forwardRef(({className:e,...t},o)=>(0,Fe.jsxs)(fe.Root,{ref:o,className:a("relative flex w-full touch-none select-none items-center",t?.disabled&&"opacity-40",e),...t,children:[(0,Fe.jsx)(fe.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,Fe.jsx)(fe.Range,{className:"absolute h-full bg-pink-500"})}),(0,Fe.jsx)(fe.Thumb,{className:"hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"}),(0,Fe.jsx)(fe.Thumb,{className:"hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));va.displayName=fe.Root.displayName;var Qr=f(require("color"),1),Zr=f(require("tailwindcss/plugin.js"),1);var V="250ms",Dr={".transition-all":{"transition-property":"all","transition-timing-function":"ease","transition-duration":V},".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":V},".transition":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter","transition-timing-function":"ease","transition-duration":V},".transition-colors":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":V},".transition-opacity":{"transition-property":"opacity","transition-timing-function":"ease","transition-duration":V},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":V},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":V},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":V},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":V},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":V},".transition-shadow":{"transition-property":"box-shadow","transition-timing-function":"ease","transition-duration":V},".transition-transform":{"transition-property":"transform","transition-timing-function":"ease","transition-duration":V},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":V},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":V},".transition-transform-colors":{" transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":V},".transition-transform-colors-opacity":{" transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":V}};var Sr={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},"*":{"border-color":"rgb(var(--mobase-gray-300))"}};var Ar={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}};var Mr={...Sr,...Dr,...Ar};function os(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function as(e){return e}function Lr(e,t){t=t||{};let o=t.delimiter||".",i=t.maxDepth,r=t.transformKey||as,l={};function m(c,g,y){y=y||1,Object.keys(c).forEach(function(P){let v=c[P],D=t.safe&&Array.isArray(v),B=Object.prototype.toString.call(v),C=os(v),N=B==="[object Object]"||B==="[object Array]",O=g?g+o+r(P):r(P);if(!D&&!C&&N&&Object.keys(v).length&&(!t.maxDepth||y<i))return m(v,O,y+1);l[O]=v})}return m(e),l}function is(e){let t={};for(let o in e){if(o.endsWith("-DEFAULT")){t[o.replace("-DEFAULT","")]=e[o];continue}t[o]=e[o]}return t}var Er=e=>is(Lr(e,{safe:!0,delimiter:"-"}));var Kt=16,rs=[.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,18],ns=[20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],Ir=e=>{let t={xs:2,sm:3,md:4,lg:5.5,xl:9,"2xl":12,"3xl":20,"4xl":30,"5xl":56,"6xl":72,"7xl":96,"8xl":128,"9xl":160},o={0:"0px"};return Object.entries(t).forEach(([i,r])=>{o[i]=r?`${e*r/Kt}rem`:`${e/Kt}rem`}),rs.forEach(i=>{let r=`${i}`;if(r.includes(".")){let[l,m]=r.split(".");r=`${l}_${m}`}o[r]=`${e*i/Kt}rem`}),ns.forEach(i=>{let r=`${i}`;o[r]=`${e*i/Kt}rem`}),o};var Hr={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var _r={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Br={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Or={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Vr={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var zr={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Fr={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Wr={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var $r={white:"#ffffff",black:"#000000",blue:Hr,green:_r,pink:Br,purple:Or,red:Vr,yellow:zr,gray:Wr,orange:Fr};var ba={...$r};var jr={"spacing-unit":4,"disabled-opacity":.5,"font-size":{xxs:"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},radius:{sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"box-shadow":{small:"0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",medium:"0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",large:"0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"}};var Gr={animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out","spin-loading":"spin 1s steps(12, end) infinite","fade-in":"fade-in 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}},"fade-in":{"0%":{opacity:"0"},"100%":{opacity:"1"}}}};function Ur(e){return{xxs:[`var(--${e}-font-size-xxs)`,{lineHeight:"1rem"}],xs:[`var(--${e}-font-size-xs)`,{lineHeight:"1rem"}],sm:[`var(--${e}-font-size-sm)`,{lineHeight:"1.25rem"}],base:[`var(--${e}-font-size-base)`,{lineHeight:"1.5rem"}],lg:[`var(--${e}-font-size-lg)`,{lineHeight:"1.75rem"}],xl:[`var(--${e}-font-size-xl)`,{lineHeight:"1.75rem"}],"2xl":[`var(--${e}-font-size-2xl)`,{lineHeight:"2rem"}],"3xl":[`var(--${e}-font-size-3xl)`,{lineHeight:"2.25rem"}],"4xl":[`var(--${e}-font-size-4xl)`,{lineHeight:"2.5rem"}],"5xl":[`var(--${e}-font-size-5xl)`,{lineHeight:"3.5rem",letterSpacing:"-0.075rem"}],"6xl":[`var(--${e}-font-size-6xl)`,{lineHeight:"4.5rem",letterSpacing:"-0.09375rem"}],"7xl":[`var(--${e}-font-size-7xl)`,{lineHeight:"5rem",letterSpacing:"-0.1125rem"}],"8xl":[`var(--${e}-font-size-8xl)`,{lineHeight:"6.5rem",letterSpacing:"-0.15rem"}],"9xl":[`var(--${e}-font-size-9xl)`,{lineHeight:"8rem",letterSpacing:"-0.2rem"}]}}function qr(e){return{sm:`var(--${e}-radius-sm)`,DEFAULT:`var(--${e}-radius-base)`,md:`var(--${e}-radius-md)`,lg:`var(--${e}-radius-lg)`,xl:`var(--${e}-radius-xl)`,"2xl":`var(--${e}-radius-2xl)`,"3xl":`var(--${e}-radius-3xl)`}}var ss=e=>{let t={utilities:{},colors:{}},o=Er(ba),i=jr,r=":root";return t.utilities[r]={},Object.entries(o).forEach(([l,m])=>{if(m)try{let[c,g,y]=(0,Qr.default)(m).rgb().array(),P=`--${e}-${l}`;t.utilities[r][P]=`${c} ${g} ${y}`,t.colors[l]=`rgb(var(${P}) / <alpha-value>)`}catch(c){console.log("error",c?.message)}}),Object.entries(i).forEach(([l,m])=>{if(!m)return;let c=`--${e}-${l}`;if(typeof m=="object")Object.entries(m).forEach(([g,y])=>{let P=`${c}-${g}`;t.utilities[r][P]=y});else if(l==="spacing-unit"){t.utilities[r][c]=m;let g=Ir(Number(m));Object.entries(g).forEach(([y,P])=>{let v=`${c}-${y}`;t.utilities[r][v]=P})}else{let g=c.includes("opacity")&&typeof m=="number"?m.toString().replace(/^0\./,"."):m;t.utilities[r][c]=g}}),t},Kr=()=>{let e="mobase",t=ss(e);return(0,Zr.default)(({addBase:o,addUtilities:i,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}}}),o({":root":{"font-smooth--webkit":"antialiased"},...t?.utilities}),i({...Mr})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16"},extend:{fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"],mono:["SFMono-Regular","Consolas","Liberation Mono","Menlo","monospace"]},colors:{...ba,...t?.colors,border:"rgba(var(--border))"},boxShadow:{small:`var(--${e}-box-shadow-small)`,medium:`var(--${e}-box-shadow-medium)`,large:`var(--${e}-box-shadow-large)`},zIndex:{negative:`var(--${e}-z-index-negative)`,workbench:`var(--${e}-z-index-workbench)`,default:`var(--${e}-z-index-default)`,"workbench-header":`var(--${e}-z-index-workbench-header)`,modal:`var(--${e}-z-index-modal)`,"modal-content":`var(--${e}-z-index-modal-content)`,dropdown:`var(--${e}-z-index-dropdown)`,tooltip:`var(--${e}-z-index-tooltip)`,notification:`var(--${e}-z-index-notification)`},borderRadius:{...qr(e)},fontSize:{...Ur(e)},...Gr}}})};var u=require("react/jsx-runtime"),Yr=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("meta",{name:"abstract",content:"V\xED \u0111i\u1EC7n t\u1EED MoMo - Si\xEAu \u1EE9ng d\u1EE5ng thanh to\xE1n s\u1ED1 1 Vi\u1EC7t Nam"}),(0,u.jsx)("meta",{name:"distribution",content:"Global"}),(0,u.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,u.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,u.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,u.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,u.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,u.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,u.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,u.jsx)("meta",{name:"language",content:"vietnamese"}),(0,u.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,u.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,u.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,u.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,u.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,u.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,u.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,u.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,u.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,u.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,u.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,u.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,u.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,u.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
259
259
  "@context": "https://schema.org/",
260
260
  "@type": "WebSite",
261
261
  "@id":"https://www.momo.vn/#website",