@momo-webplatform/mobase 0.2.69 → 0.2.71

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 sc=Object.create;var ca=Object.defineProperty;var lc=Object.getOwnPropertyDescriptor;var mc=Object.getOwnPropertyNames;var cc=Object.getPrototypeOf,dc=Object.prototype.hasOwnProperty;var pc=(e,o)=>{for(var t in o)ca(e,t,{get:o[t],enumerable:!0})},un=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of mc(o))!dc.call(e,i)&&i!==t&&ca(e,i,{get:()=>o[i],enumerable:!(a=lc(o,i))||a.enumerable});return e};var u=(e,o,t)=>(t=e!=null?sc(cc(e)):{},un(o||!e||!e.__esModule?ca(t,"default",{value:e,enumerable:!0}):t,e)),fc=e=>un(ca({},"__esModule",{value:!0}),e);var mp={};pc(mp,{Accordion:()=>zt,AccordionContent:()=>Vt,AccordionItem:()=>_t,AccordionTrigger:()=>Bt,ActionButton:()=>Ee,AlertDialog:()=>os,AlertDialogAction:()=>Wi,AlertDialogCancel:()=>$i,AlertDialogContent:()=>zi,AlertDialogDescription:()=>Oi,AlertDialogFooter:()=>Bi,AlertDialogHeader:()=>_i,AlertDialogOverlay:()=>za,AlertDialogPortal:()=>Fi,AlertDialogTitle:()=>Vi,AlertDialogTrigger:()=>as,AspectRatio:()=>ee,Badge:()=>ll,BlogSection:()=>Wn,Breadcrumb:()=>hi,BreadcrumbEllipsis:()=>Ri,BreadcrumbItem:()=>wi,BreadcrumbLink:()=>Ni,BreadcrumbList:()=>yi,BreadcrumbPage:()=>Pi,BreadcrumbSeparator:()=>Ci,Button:()=>ke,CTASection:()=>Pm,Calendar:()=>$o,Callout:()=>ko,Card:()=>br,CardContent:()=>wr,CardDescription:()=>yr,CardFooter:()=>Nr,CardHeader:()=>xr,CardTitle:()=>hr,Carousel:()=>Fe,CarouselContent:()=>ze,CarouselDots:()=>Si,CarouselItem:()=>_e,CarouselNext:()=>oo,CarouselPrevious:()=>to,Checkbox:()=>Wo,ChoiceboxGroup:()=>aa,ChoiceboxGroupItem:()=>ia,ChoiceboxMultiItem:()=>Ir,Combobox:()=>Us,ComboboxContent:()=>js,ComboboxTrigger:()=>Gs,Command:()=>qa,CommandDialog:()=>Ws,CommandEmpty:()=>Rr,CommandGroup:()=>Tr,CommandInput:()=>Pr,CommandItem:()=>Sr,CommandList:()=>Cr,CommandSeparator:()=>kr,CommandShortcut:()=>Dr,Comment:()=>Nl,DatePicker:()=>qn,DateSelect:()=>ts,Dialog:()=>at,DialogBody:()=>Nt,DialogClose:()=>fa,DialogContent:()=>Qe,DialogDescription:()=>xi,DialogFooter:()=>bi,DialogHeader:()=>zo,DialogOverlay:()=>ga,DialogPortal:()=>vi,DialogQr:()=>Wt,DialogTitle:()=>_o,DialogTrigger:()=>pa,DropdownMenu:()=>_l,DropdownMenuCheckboxItem:()=>qr,DropdownMenuContent:()=>Qr,DropdownMenuGroup:()=>Vl,DropdownMenuItem:()=>Xr,DropdownMenuLabel:()=>Zr,DropdownMenuPortal:()=>Ol,DropdownMenuRadioGroup:()=>$l,DropdownMenuRadioItem:()=>Yr,DropdownMenuSeparator:()=>Kr,DropdownMenuShortcut:()=>Jr,DropdownMenuSub:()=>Wl,DropdownMenuSubContent:()=>Ur,DropdownMenuSubTrigger:()=>jr,DropdownMenuTrigger:()=>Bl,FAQSection:()=>xm,FeatureSection:()=>dm,Footer:()=>Os,Form:()=>El,FormControl:()=>Wr,FormDescription:()=>$r,FormField:()=>Fl,FormItem:()=>Vr,FormLabel:()=>Or,FormMessage:()=>Gr,GuideSection:()=>ms,HeaderNavigation:()=>ur,Heading:()=>ba,HeadingGroup:()=>ha,HeadingSub:()=>xa,HeadingTagline:()=>va,HeroSection:()=>Kl,HorizontalContent:()=>nt,HorizontalNext:()=>lt,HorizontalPrevious:()=>st,HorizontalScroll:()=>rt,HowItWorksSection:()=>jl,IconButton:()=>me,LightBoxGalleryContent:()=>Za,LightboxGallery:()=>Ya,LightboxThumbnail:()=>ol,MetricsSection:()=>Cm,NavigationMenu:()=>qo,NavigationMenuContent:()=>ea,NavigationMenuItem:()=>Zo,NavigationMenuLink:()=>Ro,NavigationMenuList:()=>Yo,NavigationMenuTrigger:()=>Jo,NewsSection:()=>wm,Pagination:()=>Xi,Payment:()=>pn,PaymentInvoice:()=>Tm,PaymentMethods:()=>Dm,PaymentResult:()=>zm,PaymentResultContent:()=>Lm,PaymentResultFooter:()=>Im,Popover:()=>ho,PopoverContent:()=>ao,PopoverTrigger:()=>yo,ProgressSteps:()=>Dl,ProgressStepsItem:()=>Sl,ProgressStepsItemTrigger:()=>kl,Progressbar:()=>Hr,RadioGroup:()=>pr,RadioGroupItem:()=>fr,ReadMoreLite:()=>Ka,SearchBar:()=>Zs,Select:()=>wo,SelectContent:()=>ro,SelectGroup:()=>Po,SelectItem:()=>St,SelectLabel:()=>Li,SelectScrollDownButton:()=>Ha,SelectScrollUpButton:()=>Ea,SelectSeparator:()=>Ei,SelectTrigger:()=>io,SelectValue:()=>No,SiteMeta:()=>rc,Skeleton:()=>na,Slider:()=>Fr,SocialProofSection:()=>em,Spinner:()=>pl,Stepper:()=>lr,Switch:()=>cr,Tabs:()=>mt,TabsContent:()=>Ze,TabsList:()=>qe,TabsTrigger:()=>Ye,TestimonialSection:()=>vm,TextArea:()=>fs,TextButton:()=>ue,TextInput:()=>ws,ToastAction:()=>er,Toaster:()=>bs,Tooltip:()=>hs,TooltipArrow:()=>rr,TooltipContent:()=>nr,TooltipProvider:()=>xs,TooltipTrigger:()=>ys,Topbar:()=>_m,badgeVariants:()=>Ar,buttonVariants:()=>Ue,mobaseTW:()=>ic,navigationMenuTriggerStyle:()=>Ko,textButtonVariants:()=>ki,toast:()=>Zi,useFormField:()=>Mo,useToast:()=>$a});module.exports=fc(mp);var Ho=u(require("react"),1),yn=require("@heroicons/react/20/solid"),Le=u(require("@radix-ui/react-accordion"),1);var gc=u(require("react"),1),bn=require("tailwind-merge");var yt={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"}};var vn={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 Eo=[{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"}],ui=[{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"}];var he={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",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};var xn=require("@artsy/fresnel");function r(...e){return(0,bn.twMerge)(e)}var hn=(0,xn.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),pp=hn.createMediaStyle(),{Media:go,MediaContextProvider:da}=hn;var wt=require("react/jsx-runtime"),zt=Ho.forwardRef(({className:e,...o},t)=>(0,wt.jsx)(Le.Root,{ref:t,...o}));zt.displayName="AccordionRoot";var _t=Ho.forwardRef(({className:e,...o},t)=>(0,wt.jsx)(Le.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));_t.displayName="AccordionItem";var Bt=Ho.forwardRef(({className:e,children:o,...t},a)=>(0,wt.jsx)(Le.Header,{className:"flex",children:(0,wt.jsxs)(Le.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,(0,wt.jsx)(yn.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));Bt.displayName=Le.Trigger.displayName;var Vt=Ho.forwardRef(({className:e,children:o,...t},a)=>(0,wt.jsx)(Le.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:(0,wt.jsx)("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));Vt.displayName=Le.Content.displayName;var wn=u(require("react"),1),Nn=require("@radix-ui/react-slot"),Pn=require("class-variance-authority");var ye=require("react/jsx-runtime"),uc=({className:e})=>(0,ye.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,ye.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,ye.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,ye.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,ye.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,ye.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,ye.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,ye.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,ye.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,ye.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,ye.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,ye.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,ye.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"})]}),uo=uc;var Ot=require("react/jsx-runtime"),Ue=(0,Pn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold 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"}}),ke=wn.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},m)=>{let c=a?Nn.Slot:"button",g=r(Ue({variant:o,size:t,className:e}),{"cursor-wait":i});return(0,Ot.jsx)(Ot.Fragment,{children:a?(0,Ot.jsx)(c,{className:g,type:"button",disabled:n,ref:m,...s,children:s.children}):(0,Ot.jsxs)(c,{className:g,type:"button",disabled:n,ref:m,...s,children:[i&&(0,Ot.jsx)(uo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});ke.displayName="Button";var Fo=u(require("react"),1),Cn=require("@heroicons/react/16/solid"),J=u(require("@radix-ui/react-dialog"),1);var Ne=require("react/jsx-runtime"),at=J.Root,pa=J.Trigger,vi=J.Portal,fa=J.Close,ga=Fo.forwardRef(({className:e,...o},t)=>(0,Ne.jsx)(J.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));ga.displayName=J.Overlay.displayName;var Qe=Fo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:m,...c},g)=>{let p={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(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] 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"},f={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},v={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},D=[p.base,p[i],f[a],v[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,Ne.jsxs)(vi,{children:[(0,Ne.jsx)(ga,{}),(0,Ne.jsxs)(J.Content,{ref:g,className:r(...D),...c,children:[m,!t&&(0,Ne.jsxs)(J.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[(0,Ne.jsx)(Cn.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Ne.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Qe.displayName=J.Content.displayName;var zo=({className:e,...o})=>(0,Ne.jsx)("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});zo.displayName="DialogHeader";var Nt=({className:e,isCondensed:o=!1,...t})=>(0,Ne.jsx)("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Nt.displayName="DialogBody";var bi=({className:e,isDivider:o=!0,...t})=>(0,Ne.jsx)("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});bi.displayName="DialogFooter";var _o=Fo.forwardRef(({className:e,...o},t)=>(0,Ne.jsx)(J.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));_o.displayName=J.Title.displayName;var xi=Fo.forwardRef(({className:e,...o},t)=>(0,Ne.jsx)(J.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));xi.displayName=J.Description.displayName;var Rn=require("qrcode.react"),x=require("react/jsx-runtime"),vc=({img:e="",children:o,isQrForAll:t})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"qrcode__scan__container",children:(0,x.jsxs)("div",{className:"qrcode__scan",children:[(0,x.jsx)("div",{className:"qrcode__gradient",children:(0,x.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,x.jsx)("div",{className:"qrcode__border",children:(0,x.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,x.jsx)("div",{className:"qrcode__image p-4",children:e?(0,x.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),(0,x.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,x.jsxs)(x.Fragment,{children:[(0,x.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,x.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,x.jsxs)(x.Fragment,{children:[(0,x.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,x.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,x.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,x.jsx)("style",{children:`
1
+ "use strict";var lc=Object.create;var ca=Object.defineProperty;var mc=Object.getOwnPropertyDescriptor;var cc=Object.getOwnPropertyNames;var dc=Object.getPrototypeOf,pc=Object.prototype.hasOwnProperty;var fc=(e,o)=>{for(var t in o)ca(e,t,{get:o[t],enumerable:!0})},vn=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of cc(o))!pc.call(e,i)&&i!==t&&ca(e,i,{get:()=>o[i],enumerable:!(a=mc(o,i))||a.enumerable});return e};var u=(e,o,t)=>(t=e!=null?lc(dc(e)):{},vn(o||!e||!e.__esModule?ca(t,"default",{value:e,enumerable:!0}):t,e)),gc=e=>vn(ca({},"__esModule",{value:!0}),e);var cp={};fc(cp,{Accordion:()=>zt,AccordionContent:()=>Vt,AccordionItem:()=>_t,AccordionTrigger:()=>Bt,ActionButton:()=>Ee,AlertDialog:()=>as,AlertDialogAction:()=>$i,AlertDialogCancel:()=>Gi,AlertDialogContent:()=>_i,AlertDialogDescription:()=>Wi,AlertDialogFooter:()=>Vi,AlertDialogHeader:()=>Bi,AlertDialogOverlay:()=>za,AlertDialogPortal:()=>zi,AlertDialogTitle:()=>Oi,AlertDialogTrigger:()=>is,AspectRatio:()=>te,Badge:()=>ml,BlogSection:()=>$n,Breadcrumb:()=>yi,BreadcrumbEllipsis:()=>Ti,BreadcrumbItem:()=>Ni,BreadcrumbLink:()=>Pi,BreadcrumbList:()=>wi,BreadcrumbPage:()=>Ci,BreadcrumbSeparator:()=>Ri,Button:()=>ke,CTASection:()=>Cm,Calendar:()=>$o,Callout:()=>So,Card:()=>xr,CardContent:()=>Nr,CardDescription:()=>wr,CardFooter:()=>Pr,CardHeader:()=>hr,CardTitle:()=>yr,Carousel:()=>Fe,CarouselContent:()=>ze,CarouselDots:()=>Di,CarouselItem:()=>_e,CarouselNext:()=>oo,CarouselPrevious:()=>to,Checkbox:()=>Wo,ChoiceboxGroup:()=>aa,ChoiceboxGroupItem:()=>ia,ChoiceboxMultiItem:()=>Ar,Combobox:()=>Qs,ComboboxContent:()=>Us,ComboboxTrigger:()=>js,Command:()=>qa,CommandDialog:()=>$s,CommandEmpty:()=>Tr,CommandGroup:()=>kr,CommandInput:()=>Cr,CommandItem:()=>Dr,CommandList:()=>Rr,CommandSeparator:()=>Sr,CommandShortcut:()=>Mr,Comment:()=>Pl,DatePicker:()=>Yn,DateSelect:()=>os,Dialog:()=>at,DialogBody:()=>Nt,DialogClose:()=>fa,DialogContent:()=>Qe,DialogDescription:()=>hi,DialogFooter:()=>xi,DialogHeader:()=>zo,DialogOverlay:()=>ga,DialogPortal:()=>bi,DialogQr:()=>Wt,DialogTitle:()=>_o,DialogTrigger:()=>pa,DropdownMenu:()=>Bl,DropdownMenuCheckboxItem:()=>Yr,DropdownMenuContent:()=>Xr,DropdownMenuGroup:()=>Ol,DropdownMenuItem:()=>qr,DropdownMenuLabel:()=>Kr,DropdownMenuPortal:()=>Wl,DropdownMenuRadioGroup:()=>Gl,DropdownMenuRadioItem:()=>Zr,DropdownMenuSeparator:()=>Jr,DropdownMenuShortcut:()=>en,DropdownMenuSub:()=>$l,DropdownMenuSubContent:()=>Qr,DropdownMenuSubTrigger:()=>Ur,DropdownMenuTrigger:()=>Vl,FAQSection:()=>hm,FeatureSection:()=>pm,Footer:()=>Ws,Form:()=>Hl,FormControl:()=>$r,FormDescription:()=>Gr,FormField:()=>zl,FormItem:()=>Or,FormLabel:()=>Wr,FormMessage:()=>jr,GuideSection:()=>cs,HeaderNavigation:()=>vr,Heading:()=>ba,HeadingGroup:()=>ha,HeadingSub:()=>xa,HeadingTagline:()=>va,HeroSection:()=>Jl,HorizontalContent:()=>nt,HorizontalNext:()=>lt,HorizontalPrevious:()=>st,HorizontalScroll:()=>rt,HowItWorksSection:()=>Ul,IconButton:()=>me,LightBoxGalleryContent:()=>Za,LightboxGallery:()=>Ya,LightboxThumbnail:()=>al,MetricsSection:()=>Rm,NavigationMenu:()=>qo,NavigationMenuContent:()=>ea,NavigationMenuItem:()=>Zo,NavigationMenuLink:()=>To,NavigationMenuList:()=>Yo,NavigationMenuTrigger:()=>Jo,NewsSection:()=>Nm,Pagination:()=>qi,Payment:()=>fn,PaymentInvoice:()=>km,PaymentMethods:()=>Mm,PaymentResult:()=>_m,PaymentResultContent:()=>Em,PaymentResultFooter:()=>Am,Popover:()=>yo,PopoverContent:()=>ao,PopoverTrigger:()=>wo,ProgressSteps:()=>Ml,ProgressStepsItem:()=>Dl,ProgressStepsItemTrigger:()=>Sl,Progressbar:()=>Fr,RadioGroup:()=>fr,RadioGroupItem:()=>gr,ReadMoreLite:()=>Ka,SearchBar:()=>Ks,Select:()=>No,SelectContent:()=>ro,SelectGroup:()=>Co,SelectItem:()=>St,SelectLabel:()=>Ei,SelectScrollDownButton:()=>Ha,SelectScrollUpButton:()=>Ea,SelectSeparator:()=>Hi,SelectTrigger:()=>io,SelectValue:()=>Po,SiteMeta:()=>nc,Skeleton:()=>na,Slider:()=>zr,SocialProofSection:()=>tm,Spinner:()=>fl,Stepper:()=>mr,Switch:()=>dr,Tabs:()=>mt,TabsContent:()=>Ze,TabsList:()=>qe,TabsTrigger:()=>Ye,TestimonialSection:()=>bm,TextArea:()=>gs,TextButton:()=>ue,TextInput:()=>Ns,ToastAction:()=>tr,Toaster:()=>xs,Tooltip:()=>ys,TooltipArrow:()=>nr,TooltipContent:()=>sr,TooltipProvider:()=>hs,TooltipTrigger:()=>ws,Topbar:()=>Bm,badgeVariants:()=>Lr,buttonVariants:()=>Ue,mobaseTW:()=>rc,navigationMenuTriggerStyle:()=>Ko,textButtonVariants:()=>Si,toast:()=>Ki,useFormField:()=>Io,useToast:()=>$a});module.exports=gc(cp);var Ho=u(require("react"),1),wn=require("@heroicons/react/20/solid"),Le=u(require("@radix-ui/react-accordion"),1);var uc=u(require("react"),1),xn=require("tailwind-merge");var yt={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"}};var bn={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 Eo=[{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"}],vi=[{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"}];var xe={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",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};var hn=require("@artsy/fresnel");function r(...e){return(0,xn.twMerge)(e)}var yn=(0,hn.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),fp=yn.createMediaStyle(),{Media:uo,MediaContextProvider:da}=yn;var wt=require("react/jsx-runtime"),zt=Ho.forwardRef(({className:e,...o},t)=>(0,wt.jsx)(Le.Root,{ref:t,...o}));zt.displayName="AccordionRoot";var _t=Ho.forwardRef(({className:e,...o},t)=>(0,wt.jsx)(Le.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));_t.displayName="AccordionItem";var Bt=Ho.forwardRef(({className:e,children:o,...t},a)=>(0,wt.jsx)(Le.Header,{className:"flex",children:(0,wt.jsxs)(Le.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,(0,wt.jsx)(wn.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));Bt.displayName=Le.Trigger.displayName;var Vt=Ho.forwardRef(({className:e,children:o,...t},a)=>(0,wt.jsx)(Le.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:(0,wt.jsx)("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));Vt.displayName=Le.Content.displayName;var Nn=u(require("react"),1),Pn=require("@radix-ui/react-slot"),Cn=require("class-variance-authority");var he=require("react/jsx-runtime"),vc=({className:e})=>(0,he.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,he.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,he.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,he.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,he.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,he.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,he.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,he.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,he.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,he.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,he.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,he.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,he.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"})]}),vo=vc;var Ot=require("react/jsx-runtime"),Ue=(0,Cn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold 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"}}),ke=Nn.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},m)=>{let c=a?Pn.Slot:"button",f=r(Ue({variant:o,size:t,className:e}),{"cursor-wait":i});return(0,Ot.jsx)(Ot.Fragment,{children:a?(0,Ot.jsx)(c,{className:f,type:"button",disabled:n,ref:m,...s,children:s.children}):(0,Ot.jsxs)(c,{className:f,type:"button",disabled:n,ref:m,...s,children:[i&&(0,Ot.jsx)(vo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});ke.displayName="Button";var Fo=u(require("react"),1),Rn=require("@heroicons/react/16/solid"),ee=u(require("@radix-ui/react-dialog"),1);var we=require("react/jsx-runtime"),at=ee.Root,pa=ee.Trigger,bi=ee.Portal,fa=ee.Close,ga=Fo.forwardRef(({className:e,...o},t)=>(0,we.jsx)(ee.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));ga.displayName=ee.Overlay.displayName;var Qe=Fo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:m,...c},f)=>{let p={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(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] 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"},g={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},v={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},R=[p.base,p[i],g[a],v[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,we.jsxs)(bi,{children:[(0,we.jsx)(ga,{}),(0,we.jsxs)(ee.Content,{ref:f,className:r(...R),...c,children:[m,!t&&(0,we.jsxs)(ee.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[(0,we.jsx)(Rn.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,we.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Qe.displayName=ee.Content.displayName;var zo=({className:e,...o})=>(0,we.jsx)("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});zo.displayName="DialogHeader";var Nt=({className:e,isCondensed:o=!1,...t})=>(0,we.jsx)("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Nt.displayName="DialogBody";var xi=({className:e,isDivider:o=!0,...t})=>(0,we.jsx)("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});xi.displayName="DialogFooter";var _o=Fo.forwardRef(({className:e,...o},t)=>(0,we.jsx)(ee.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));_o.displayName=ee.Title.displayName;var hi=Fo.forwardRef(({className:e,...o},t)=>(0,we.jsx)(ee.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));hi.displayName=ee.Description.displayName;var Tn=require("qrcode.react"),x=require("react/jsx-runtime"),bc=({img:e="",children:o,isQrForAll:t})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"qrcode__scan__container",children:(0,x.jsxs)("div",{className:"qrcode__scan",children:[(0,x.jsx)("div",{className:"qrcode__gradient",children:(0,x.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,x.jsx)("div",{className:"qrcode__border",children:(0,x.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,x.jsx)("div",{className:"qrcode__image p-4",children:e?(0,x.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),(0,x.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,x.jsxs)(x.Fragment,{children:[(0,x.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,x.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,x.jsxs)(x.Fragment,{children:[(0,x.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,x.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,x.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,x.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
- `})]}),Wt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:m=!1,...c})=>(0,x.jsx)(at,{...c,children:(0,x.jsx)(Qe,{className:r("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",positionRightCloseBtn:!0,children:(0,x.jsx)(Nt,{className:"p-0",children:(0,x.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,x.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||(0,x.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,x.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,x.jsx)("div",{className:"flex-none",children:(0,x.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,x.jsxs)("div",{className:"flex-1 pl-4",children:[(0,x.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,x.jsx)("div",{className:"mt-1 text-gray-500 ",children:m?"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,x.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,x.jsx)("div",{className:"flex-none",children:(0,x.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,x.jsxs)("div",{className:"flex-1 pl-4",children:[(0,x.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,x.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,x.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,x.jsx)("div",{className:"flex-none",children:(0,x.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,x.jsxs)("div",{className:"flex-1 pl-4",children:[(0,x.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,x.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"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),(0,x.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,x.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,x.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,x.jsxs)("div",{className:"relative",children:[m&&(0,x.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,x.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,x.jsx)(vc,{img:i,isQrForAll:m,children:n&&(0,x.jsx)(Rn.QRCodeSVG,{value:n,size:215,imageSettings:{src:`${s||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});var Sn=require("react");var vo=require("react"),Tn=u(require("ua-parser-js"),1),bc=()=>(0,Tn.default)().device.type==="mobile",xc=typeof window<"u"?vo.useLayoutEffect:vo.useEffect,kn=()=>{let[e,o]=(0,vo.useState)(!1);return xc(()=>{o(bc())},[]),e};var Pt=require("react/jsx-runtime"),Ee=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[m,c]=(0,Sn.useState)(!1),g=kn(),p=!!a?.qrLink,f=()=>{let oe=p?a?.qrLink:e;return typeof oe=="string"?oe.trim():""},v=()=>{let oe=f();!oe&&typeof e!="function"||(typeof e=="function"?e():window.open(oe,o?"_blank":"_self"))},D=(oe,ae=0)=>{let U=document.querySelector(oe);if(!U)return;let xe=U.getBoundingClientRect().top+window.scrollY-ae;window.scrollTo({top:xe,behavior:"smooth"})},E=()=>{typeof e=="string"&&e.startsWith("#")?D(e,t):v()},O=()=>(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)(ke,{...s,className:i,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Pt.jsx)(Wt,{...a,open:m,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?g?a?.isQrForAll?O():(0,Pt.jsx)(ke,{...s,className:i,onClick:v,"data-name":"button-action-with-qr",children:n}):O():(0,Pt.jsx)(ke,{...s,onClick:E,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var bo=u(require("react"),1),ua=require("@radix-ui/react-icons"),Dn=require("@radix-ui/react-slot");var He=require("react/jsx-runtime"),hi=bo.forwardRef(({className:e,...o},t)=>(0,He.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));hi.displayName="Breadcrumb";var yi=bo.forwardRef(({className:e,...o},t)=>(0,He.jsx)("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));yi.displayName="BreadcrumbList";var wi=bo.forwardRef(({className:e,...o},t)=>(0,He.jsx)("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));wi.displayName="BreadcrumbItem";var Ni=bo.forwardRef(({asChild:e,className:o,...t},a)=>(0,He.jsx)(e?Dn.Slot:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Ni.displayName="BreadcrumbLink";var Pi=bo.forwardRef(({className:e,...o},t)=>(0,He.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Pi.displayName="BreadcrumbPage";var Ci=({children:e,className:o,...t})=>(0,He.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??(0,He.jsx)(ua.ChevronRightIcon,{className:"w-2 h-2"})});Ci.displayName="BreadcrumbSeparator";var Ri=({className:e,...o})=>(0,He.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,He.jsx)(ua.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,He.jsx)("span",{className:"sr-only",children:"More"})]});Ri.displayName="BreadcrumbElipssis";var ya=u(require("html-react-parser"),1);var Bo=require("react");var xo=require("react/jsx-runtime"),Ti=(0,Bo.createContext)({align:"center"}),va=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return(0,xo.jsx)("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},ba=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,m={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:g}=(0,Bo.useContext)(Ti);return(0,xo.jsx)(s,{className:r("max-w-4xl font-bold",g==="center"?"mx-auto":g==="right"?"ml-auto":"",m[t],c[o],a&&"truncate",i),children:n})},xa=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},m={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:g}=(0,Bo.useContext)(Ti);return(0,xo.jsx)("div",{className:r(g==="center"?"mx-auto max-w-2xl":g==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],m[o],c[t],a&&"truncate",i),children:n})},ha=({className:e,align:o="center",children:t})=>(0,xo.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,xo.jsx)(Ti.Provider,{value:{align:o},children:t})});var it=require("react/jsx-runtime"),Y=({idSection:e,className:o,background:t,children:a})=>(0,it.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,it.jsx)("div",{className:"wrapper relative",children:a})}),y=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:m})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",g=n==="pink"?"pink":n==="white"?"white":"regular",p=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,it.jsxs)(ha,{align:e,className:m,children:[o&&(0,it.jsx)(va,{color:c,children:o}),t&&(0,it.jsx)(ba,{tagHeading:i,color:g,size:s,children:(0,ya.default)(t)}),a&&(0,it.jsx)(xa,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,ya.default)(a)})]})},R=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,it.jsx)("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{let{btnName:s,...m}=i;return(0,it.jsx)(Ee,{...m,className:r(o&&"w-full md:w-auto",i?.className),children:(0,ya.default)(s)},n)})});var Ra=u(require("react"),1),_n=require("@heroicons/react/20/solid"),Bn=u(require("html-react-parser"),1);var Ce=require("react"),wa=require("lucide-react");var Mn=u(require("react"),1),In=require("@radix-ui/react-slot"),An=require("class-variance-authority");var Ln=require("react/jsx-runtime"),eo=(0,An.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"}}),me=Mn.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?In.Slot:"button",c=r(eo({variant:o,size:t,className:e}));return(0,Ln.jsx)(m,{className:c,disabled:i,ref:s,...n,children:n.children})});me.displayName="IconButton";var Pe=require("react/jsx-runtime"),Na=(0,Ce.createContext)(void 0),rt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=(0,Ce.useRef)(null),[n,s]=(0,Ce.useState)({left:!1,right:!1}),m=(0,Ce.useCallback)(()=>{let g=i.current;if(g){let{scrollLeft:p,scrollWidth:f,clientWidth:v}=g;s({left:p>0,right:Math.ceil(p+v)<f})}},[]);(0,Ce.useEffect)(()=>{let g=i.current;if(g)return m(),window.addEventListener("resize",m),g.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),g.removeEventListener("scroll",m)}},[m]);let c=g=>{let p=i.current;if(p){let{scrollLeft:f,clientWidth:v,scrollWidth:D}=p,E=v*.7*(g==="left"?-1:1),O=f+E;O<0?O=0:O>D-v&&(O=D-v),p.scrollTo({left:O,behavior:"smooth"})}};return(0,Pe.jsx)(Na.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Pe.jsxs)("div",{className:r("relative w-full",t),children:[e&&(0,Pe.jsxs)(Pe.Fragment,{children:[n.left&&(0,Pe.jsx)("div",{className:"pointer-events-none absolute left-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&(0,Pe.jsx)("div",{className:"pointer-events-none absolute right-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},nt=({className:e,children:o})=>{let t=(0,Ce.useContext)(Na);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Pe.jsx)("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},st=({className:e,children:o,...t})=>{let a=(0,Ce.useContext)(Na);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Pe.jsx)(me,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Pe.jsx)(wa.ChevronLeft,{className:"h-4 w-4"})}):null},lt=({className:e,children:o,...t})=>{let a=(0,Ce.useContext)(Na);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Pe.jsx)(me,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Pe.jsx)(wa.ChevronRight,{className:"h-4 w-4"})}):null};var Pa=u(require("react"),1),Xe=u(require("@radix-ui/react-tabs"),1);var Ca=require("react/jsx-runtime"),mt=Xe.Root,qe=Pa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>(0,Ca.jsx)(Xe.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));qe.displayName=Xe.List.displayName;var Ye=Pa.forwardRef(({className:e,...o},t)=>(0,Ca.jsx)(Xe.Trigger,{ref:t,className:r("inline-flex items-center justify-center whitespace-nowrap py-3 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-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));Ye.displayName=Xe.Trigger.displayName;var Ze=Pa.forwardRef(({className:e,...o},t)=>(0,Ca.jsx)(Xe.Content,{ref:t,className:r("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),...o}));Ze.displayName=Xe.Content.displayName;var En=u(require("react"),1),Hn=require("@radix-ui/react-slot"),Fn=require("class-variance-authority");var zn=require("react/jsx-runtime"),ki=(0,Fn.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"}}),ue=En.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?Hn.Slot:"button",c=r(ki({variant:o,size:t,className:e}));return(0,zn.jsx)(m,{className:c,disabled:i,ref:s,...n,children:n.children})});ue.displayName="TextButton";var P=require("react/jsx-runtime"),hc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,P.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,P.jsxs)("picture",{children:[(0,P.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,P.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,P.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,P.jsx)(ue,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),(0,P.jsx)("div",{className:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,P.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ue,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,P.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,P.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Ta=(0,Ra.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,f,v)=>{p?.preventDefault(),p?.stopPropagation(),a?a(f):window.open(v,"_blank")},g=(p,f)=>(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",p?.blogList?.length<3?"md:justify-center":""),children:p?.blogList?.map((v,D)=>(0,P.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,P.jsx)("div",{onClick:E=>c(E,v?.id,v?.url),className:r("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,P.jsx)(hc,{blog:v})},v?.id)},D))}),p?.isShowBtn&&(0,P.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,P.jsxs)(Ee,{action:i?()=>i?.(f):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[(0,Bn.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,P.jsx)(uo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):i&&!p?.btnUrl&&(0,P.jsx)(_n.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},p?.title||f);return(0,P.jsxs)(Ra.default.Fragment,{children:[e&&(0,P.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?(0,P.jsxs)(mt,{defaultValue:t[0]?.title,children:[(0,P.jsxs)(rt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,P.jsx)(nt,{className:"mb-6 text-center",children:(0,P.jsx)(qe,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((p,f)=>(0,P.jsx)(Ye,{value:p.title,children:p.title},p.title+f))})}),(0,P.jsx)(st,{}),(0,P.jsx)(lt,{})]}),t.map((p,f)=>(0,P.jsx)(Ze,{value:p.title,children:g(p,f)},p.title+f))]}):t?.length===1&&t[0]&&g(t[0],0)]})});var Ct=u(require("react"),1),Sa=require("@heroicons/react/20/solid"),Di=u(require("html-react-parser"),1);var $=u(require("react"),1),ka=require("@heroicons/react/20/solid"),Vn=u(require("embla-carousel-react"),1);var ce=require("react/jsx-runtime"),On=$.createContext(null);function Vo(){let e=$.useContext(On);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Fe=$.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},m)=>{let[c,g]=(0,Vn.default)({...o,axis:e==="horizontal"?"x":"y"},a),[p,f]=$.useState(!1),[v,D]=$.useState(!1),E=$.useCallback(ae=>{ae&&(f(ae.canScrollPrev()),D(ae.canScrollNext()))},[]),O=$.useCallback(()=>{g?.scrollPrev()},[g]),W=$.useCallback(()=>{g?.scrollNext()},[g]),oe=$.useCallback(ae=>{ae.key==="ArrowLeft"?(ae.preventDefault(),O()):ae.key==="ArrowRight"&&(ae.preventDefault(),W())},[O,W]);return $.useEffect(()=>{!g||!t||t(g)},[g,t]),$.useEffect(()=>{if(g)return E(g),g.on("reInit",E),g.on("select",E),()=>{g?.off("select",E)}},[g,E]),(0,ce.jsx)(On.Provider,{value:{carouselRef:c,api:g,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:O,scrollNext:W,canScrollPrev:p,canScrollNext:v},children:(0,ce.jsx)("div",{ref:m,onKeyDownCapture:oe,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Fe.displayName="Carousel";var ze=$.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=Vo();return(0,ce.jsx)("div",{ref:i,className:r(o,"overflow-hidden"),children:(0,ce.jsx)("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ze.displayName="CarouselContent";var _e=$.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Vo();return(0,ce.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});_e.displayName="CarouselItem";var to=$.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:m}=Vo();return(0,ce.jsxs)(me,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!m,onClick:s,...a,children:[(0,ce.jsx)(ka.ChevronLeftIcon,{className:"w-6 h-6"}),(0,ce.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});to.displayName="CarouselPrevious";var oo=$.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:m}=Vo();return(0,ce.jsxs)(me,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!m,onClick:s,...a,children:[(0,ce.jsx)(ka.ChevronRightIcon,{className:"w-6 h-6"}),(0,ce.jsx)("span",{className:"sr-only",children:"Next slide"})]})});oo.displayName="CarouselNext";var Si=$.forwardRef((e,o)=>{let{api:t}=Vo(),[,a]=$.useState(!1),i=$.useCallback(()=>a(m=>!m),[]);$.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?(0,ce.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(m,c)=>(0,ce.jsx)(me,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${c===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${c+1}`,onClick:()=>t?.scrollTo(c)},c))}):(0,ce.jsx)(ce.Fragment,{})});Si.displayName="CarouselDots";var w=require("react/jsx-runtime"),yc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,w.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,w.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,w.jsx)("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&(0,w.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Di.default)(e?.description??"")}),(0,w.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(ue,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,w.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,w.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},wc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:m,btnUrl:c="#",isNewTab:g,classNameItem:p}=e??{};return(0,Ct.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Fe,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,w.jsx)(ze,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>(0,w.jsx)(_e,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,w.jsx)("div",{onClick:v=>i(v,f?.id,f?.url),className:r("group cursor-pointer",p),children:(0,w.jsx)(yc,{blog:f})},f?.id)},f?.id))})}),s&&(0,w.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,w.jsxs)(Ee,{action:c&&c,newTab:g,variant:"outline",children:[(0,Di.default)(m||"Xem th\xEAm")," "]})})]})},Nc=({carouselRef:e})=>(0,w.jsxs)(me,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,w.jsx)(Sa.ChevronLeftIcon,{className:"h-6 w-6"}),(0,w.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),Pc=({carouselRef:e})=>(0,w.jsxs)(me,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,w.jsx)(Sa.ChevronRightIcon,{className:"h-6 w-6"}),(0,w.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Mi=(0,Ct.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(g,p,f)=>{g?.preventDefault(),g?.stopPropagation(),t?t(p):window.open(f,"_blank")},[n,s]=(0,Ct.useState)(null),[,m]=(0,Ct.useState)(0),c=()=>n?(0,w.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,w.jsx)(Nc,{carouselRef:n}),(0,w.jsx)(Pc,{carouselRef:n})]}):(0,w.jsx)(w.Fragment,{});return(0,w.jsxs)(Ct.default.Fragment,{children:[(0,w.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,w.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),(0,w.jsx)(c,{})]}),(0,w.jsx)(wc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:m,handleOnClickItem:i})]})});var Rt=require("react/jsx-runtime"),Cc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Rt.jsx)(Ta,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return(0,Rt.jsx)(Mi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Rt.jsx)(Ta,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Rc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Rt.jsx)(Rt.Fragment,{children:Cc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Wn=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,Rt.jsx)(Y,{className:r("overflow-hidden",a),background:i,children:(0,Rt.jsx)(Rc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:m})});var Ma=u(require("react"),1),Ia=require("date-fns/locale"),Aa=require("lucide-react"),jn=u(require("lunisolar"),1),Un=require("react-day-picker");var $n=u(require("react"),1),Oo=u(require("@radix-ui/react-checkbox"),1),Gn=require("@heroicons/react/16/solid"),Ii=require("class-variance-authority");var Da=require("react/jsx-runtime"),Tc=(0,Ii.cva)("peer shrink-0 rounded 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:bg-gray-100 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-400 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),kc=(0,Ii.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Wo=$n.forwardRef(({className:e,size:o,...t},a)=>(0,Da.jsx)(Oo.Root,{ref:a,className:r(Tc({size:o}),e),...t,children:(0,Da.jsx)(Oo.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Da.jsx)(Gn.CheckIcon,{className:r(kc({size:o}))})})}));Wo.displayName=Oo.Root.displayName;var fe=require("react/jsx-runtime"),Sc=({date:e,cusContent:o})=>{let t=null;return t=(0,jn.default)(e).lunar,(0,fe.jsxs)(fe.Fragment,{children:[o?o(e):e.getDate(),t&&(0,fe.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Dc={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let o=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][o]}};function Mc({isShow:e,setIsShow:o,lang:t}){let a=Ma.useId();return(0,fe.jsx)("div",{className:"w-full p-3 pt-0",children:(0,fe.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,fe.jsx)(Wo,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),(0,fe.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Ic=e=>e.getDay()===0||e.getDay()===6;function $o({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[m,c]=Ma.useState(!0);return(0,fe.jsx)(Un.DayPicker,{locale:i==="vi"?Ia.vi:Ia.enUS,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(Ue({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(Ue({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&m&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Ic},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,fe.jsx)(Aa.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,fe.jsx)(Aa.ChevronRight,{className:"h-6 w-6"}),DayContent:g=>(0,fe.jsx)(Sc,{date:g.date,cusContent:n}),Months:({children:g})=>(0,fe.jsxs)("div",{className:"w-full",children:[(0,fe.jsx)("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:g}),a&&(0,fe.jsx)(Mc,{isShow:m,setIsShow:c,lang:i})]})},formatters:i==="vi"?Dc:{},...s})}$o.displayName="Calendar";var La=require("@heroicons/react/16/solid"),Go=require("date-fns"),Xn=require("lucide-react");var Qn=u(require("react"),1),Tt=u(require("@radix-ui/react-popover"),1);var Ai=require("react/jsx-runtime"),ho=Tt.Root,yo=Tt.Trigger,ao=Qn.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>(0,Ai.jsx)(Tt.Portal,{children:(0,Ai.jsx)(Tt.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small 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),...a})}));ao.displayName=Tt.Content.displayName;var X=require("react/jsx-runtime"),qn=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:m,popoverProps:c,calendarProps:g,popoverContentProps:p})=>{let f=g?.selected||null;return(0,X.jsxs)("div",{children:[(0,X.jsxs)(ho,{...c,children:[(0,X.jsx)(yo,{asChild:!0,children:(0,X.jsxs)(ke,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!f||!(f instanceof Date)&&typeof f=="object"&&(!("from"in f)||!f.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...m,children:[(0,X.jsx)("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?(0,Go.format)(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?(0,X.jsx)(X.Fragment,{children:f.from?f.to?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)("span",{className:"date-from",children:(0,Go.format)(f.from,s)})," ",(0,X.jsx)("span",{className:"date-separator",children:"-"}),(0,X.jsx)("span",{className:"date-to",children:(0,Go.format)(f.to,s)})]}):(0,Go.format)(f.from,s):o}):o}),e&&(0,X.jsx)("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),(0,X.jsx)(Xn.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,X.jsx)(ao,{className:"w-auto border-none !p-0",...p,children:(0,X.jsx)($o,{...g,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&(0,X.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?(0,X.jsx)(La.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,X.jsx)(La.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,X.jsx)("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var jo=require("react"),Fa=require("@heroicons/react/16/solid"),es=require("date-fns");var ct=u(require("react"),1),kt=require("@heroicons/react/16/solid"),Yn=require("@heroicons/react/24/outline"),T=u(require("@radix-ui/react-select"),1);var H=require("react/jsx-runtime"),wo=ct.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...m},c)=>(0,H.jsxs)("div",{ref:c,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&(0,H.jsx)("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),(0,H.jsx)(T.Root,{disabled:s,...m,children:o}),a&&(0,H.jsxs)("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?(0,H.jsx)(kt.XCircleIcon,{width:16,height:16}):(0,H.jsx)(Yn.QuestionMarkCircleIcon,{width:16,height:16}),(0,H.jsx)("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),No=T.Value,io=ct.forwardRef(({className:e,children:o,...t},a)=>(0,H.jsxs)(T.Trigger,{ref:a,className:r("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),...t,children:[(0,H.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,H.jsx)(T.Icon,{asChild:!0,children:(0,H.jsx)(kt.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));io.displayName=T.Trigger.displayName;var Ea=ct.forwardRef(({className:e,...o},t)=>(0,H.jsx)(T.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:(0,H.jsx)(kt.ChevronUpIcon,{className:"h-5 w-5"})}));Ea.displayName=T.ScrollUpButton.displayName;var Ha=ct.forwardRef(({className:e,...o},t)=>(0,H.jsx)(T.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:(0,H.jsx)(kt.ChevronDownIcon,{className:"h-5 w-5"})}));Ha.displayName=T.ScrollDownButton.displayName;var ro=ct.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>(0,H.jsx)(T.Portal,{children:(0,H.jsxs)(T.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="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:t,...a,children:[(0,H.jsx)(Ea,{}),(0,H.jsx)(T.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,H.jsx)(Ha,{})]})}));ro.displayName=T.Content.displayName;var Po=ct.forwardRef(({className:e,children:o,...t},a)=>(0,H.jsx)(T.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Li=ct.forwardRef(({className:e,...o},t)=>(0,H.jsx)(T.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Li.displayName=T.Label.displayName;var St=ct.forwardRef(({className:e,children:o,...t},a)=>(0,H.jsxs)(T.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[(0,H.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,H.jsx)(T.ItemIndicator,{children:(0,H.jsx)(kt.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,H.jsx)(T.ItemText,{children:o})]})),Ei=ct.forwardRef(({className:e,...o},t)=>(0,H.jsx)(T.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));Ei.displayName=T.Separator.displayName;var Zn=["Th\xE1ng 01","Th\xE1ng 02","Th\xE1ng 03","Th\xE1ng 04","Th\xE1ng 05","Th\xE1ng 06","Th\xE1ng 07","Th\xE1ng 08","Th\xE1ng 09","Th\xE1ng 10","Th\xE1ng 11","Th\xE1ng 12"],Kn=["January","February","March","April","May","June","July","August","September","October","November","December"],Hi=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},Jn=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,m)=>n-m)};var L=require("react/jsx-runtime"),ts=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:m="dd/MM/yyyy",lang:c="vi",fromYear:g=1900,toYear:p=new Date().getFullYear()})=>{let[f,v]=(0,jo.useState)(o??null),D=Math.min(g,p),E=Math.max(g,p),O=m==="MM/yyyy",W=(M,xe)=>{if(xe===0){v(void 0),t?.(void 0);return}let Ao=f?.getFullYear()||new Date().getFullYear(),pe=f?.getMonth()??0,Lo=f?.getDate()??1;M==="month"&&xe!==null&&(pe=xe-1),M==="year"&&xe!==null&&(Ao=xe),O?Lo=1:M==="day"&&xe!==null&&(Lo=xe);let nc=Hi(Ao,pe+1).daysInMonth;Lo>nc&&(Lo=1);let gi=new Date(Ao,pe,Lo);(0,es.isValid)(gi)&&(v(gi),t?.(gi))},[oe,ae]=(0,jo.useState)(!1),U=M=>{ae(M)};return(0,jo.useEffect)(()=>{v(o??null)},[o]),(0,L.jsxs)("div",{className:r("relative",s&&"cursor-no-drop"),children:[(0,L.jsxs)("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",oe&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",f?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,L.jsx)("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,L.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!O&&(0,L.jsxs)(wo,{value:f?f.getDate().toString().padStart(2,"0"):"",onValueChange:M=>W("day",parseInt(M,10)),onOpenChange:U,className:"w-[30%]",children:[(0,L.jsx)(io,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,L.jsx)(No,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,L.jsx)(ro,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,L.jsxs)(Po,{children:[(0,L.jsx)(St,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Hi(f?.getFullYear()||new Date().getFullYear(),(f?.getMonth()??0)+1).daysInMonth},(M,xe)=>(xe+1).toString().padStart(2,"0")).map(M=>(0,L.jsx)(St,{value:M,children:M},M))]})})]}),(0,L.jsxs)(wo,{value:f?(f.getMonth()+1).toString():"",onValueChange:M=>W("month",parseInt(M,10)),onOpenChange:U,className:r(O?"w-1/2":"w-2/5"),children:[(0,L.jsx)(io,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,L.jsx)(No,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,L.jsx)(ro,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,L.jsxs)(Po,{children:[(0,L.jsx)(St,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(M,xe)=>xe+1).map(M=>(0,L.jsx)(St,{value:M.toString(),children:c==="vi"?Zn[M-1]:Kn[M-1]},M))]})})]}),(0,L.jsxs)(wo,{value:f?f.getFullYear().toString():"",onValueChange:M=>W("year",parseInt(M,10)),onOpenChange:U,className:r(O?"w-1/2":"w-[30%]"),children:[(0,L.jsx)(io,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,L.jsx)(No,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,L.jsx)(ro,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,L.jsxs)(Po,{children:[(0,L.jsx)(St,{value:"0",className:"text-gray-500",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Jn(D,E).map(M=>(0,L.jsx)(St,{value:M.toString(),children:M},M))]})})]})]})]}),i&&(0,L.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,L.jsx)(Fa.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,L.jsx)(Fa.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,L.jsx)("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};var no=u(require("react"),1),Q=u(require("@radix-ui/react-alert-dialog"),1);var Be=require("react/jsx-runtime"),os=Q.Root,as=Q.Trigger,Fi=Q.Portal,za=no.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(Q.Overlay,{className:r("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),...o,ref:t}));za.displayName=Q.Overlay.displayName;var zi=no.forwardRef(({className:e,...o},t)=>(0,Be.jsxs)(Fi,{children:[(0,Be.jsx)(za,{}),(0,Be.jsx)(Q.Content,{ref:t,className:r("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),...o})]}));zi.displayName=Q.Content.displayName;var _i=({className:e,...o})=>(0,Be.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...o});_i.displayName="AlertDialogHeader";var Bi=({className:e,...o})=>(0,Be.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...o});Bi.displayName="AlertDialogFooter";var Vi=no.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(Q.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));Vi.displayName=Q.Title.displayName;var Oi=no.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(Q.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Oi.displayName=Q.Description.displayName;var Wi=no.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(Q.Action,{ref:t,className:r(Ue({variant:"primary"}),"",e),...o}));Wi.displayName=Q.Action.displayName;var $i=no.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(Q.Cancel,{ref:t,className:r(Ue({variant:"secondary"}),e),...o}));$i.displayName=Q.Cancel.displayName;var _a=require("react");var Uo=require("react"),rs=require("framer-motion"),Gi=u(require("html-react-parser"),1);var is=u(require("@radix-ui/react-aspect-ratio"),1),ee=is.Root;var _=require("react/jsx-runtime"),Ac=({guideGroup:e,mockup:o})=>{let[t,a]=(0,Uo.useState)(),[i,n]=(0,Uo.useState)(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return(0,Uo.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,_.jsx)(_.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,_.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,_.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,_.jsxs)("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,_.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,_.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,_.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,_.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,_.jsxs)(Fe,{setApi:a,children:[(0,_.jsx)(ze,{className:"ml-0",children:e?.stepList.map((m,c)=>(0,_.jsx)(_e,{className:"pl-0",children:(0,_.jsx)(ee,{ratio:o==="small"?540/960:540/1168,children:(0,_.jsx)("img",{src:m.image,className:"size-full object-contain",alt:m.title})})},c))}),(0,_.jsx)(to,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,_.jsx)(oo,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,_.jsx)("div",{className:"flex flex-auto py-4 pl-12",children:(0,_.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((m,c)=>(0,_.jsxs)("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",c+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[(0,_.jsx)("div",{className:r("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),(0,_.jsx)("div",{className:r(" text-sm font-medium",c+1===i?"text-pink-500":"text-gray-900"),children:(0,Gi.default)(m.title)}),m.content&&(0,_.jsx)(rs.motion.div,{initial:"closed",animate:c+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,_.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,Gi.default)(m.content)})})]},c))})})]})})},ji=Ac;var Dt=require("react"),Ui=require("@heroicons/react/20/solid"),ns=u(require("embla-carousel-autoplay"),1),Qo=u(require("html-react-parser"),1);var b=require("react/jsx-runtime"),Lc=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=(0,Dt.useState)(0),[s,m]=(0,Dt.useState)();return(0,Dt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,b.jsx)(at,{open:e,onOpenChange:o,children:(0,b.jsxs)(Qe,{position:"bottom",height:"full",children:[(0,b.jsx)(zo,{children:(0,b.jsx)(_o,{className:"line-clamp-1",children:t?.title})}),(0,b.jsxs)(Nt,{className:"grid overflow-hidden p-0 ",children:[(0,b.jsx)(Fe,{setApi:m,className:" grid overflow-hidden",children:(0,b.jsx)(ze,{className:"ml-0 h-full",children:t.stepList.map((c,g)=>(0,b.jsx)(_e,{className:"h-full w-full pl-0",children:(0,b.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,b.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,b.jsx)("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:(0,b.jsxs)("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,b.jsx)("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,b.jsx)(ee,{ratio:a==="small"?540/960:540/1168,children:(0,b.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,b.jsxs)("div",{className:"p-5 pb-12",children:[(0,b.jsx)("div",{className:"font-semibold",children:(0,Qo.default)(c.title)}),c?.content&&(0,b.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,Qo.default)(c.content)})]})]})},g))})}),(0,b.jsx)("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((c,g)=>(0,b.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${g+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(g)},g))})]})]})})},Ec=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=(0,Dt.useState)(!1),[n,s]=(0,Dt.useState)(null),m=(0,Dt.useRef)((0,ns.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=g=>{s(e?.[g]||null),i(!0)};return e?.length===0?null:(0,b.jsxs)(b.Fragment,{children:[e?.length>1?(0,b.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((g,p)=>(0,b.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(p),children:[(0,b.jsx)("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:(0,b.jsx)(ee,{ratio:1,children:(0,b.jsx)("img",{src:g.avatar,className:"object-cover",alt:g.title})})}),(0,b.jsxs)("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",p+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[(0,b.jsxs)("div",{className:"py-2",children:[t&&(0,b.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,b.jsx)("div",{className:"font-semibold",children:(0,Qo.default)(g.title)}),g?.description&&(0,b.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,Qo.default)(g.description)})]}),(0,b.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,b.jsx)(Ui.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,b.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,b.jsx)("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:(0,b.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,b.jsxs)("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,b.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,b.jsx)(Fe,{plugins:[m.current],children:(0,b.jsx)(ze,{className:"ml-0",children:e[0]?.stepList.map((g,p)=>(0,b.jsx)(_e,{className:"pl-0",onClick:()=>c(0),children:(0,b.jsx)(ee,{ratio:o==="small"?540/960:540/1168,children:(0,b.jsx)("img",{src:g.image,className:"size-full object-contain",alt:g.title})})},p))})})})]})})}),(0,b.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,b.jsxs)(ue,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,b.jsx)(Ui.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,b.jsx)(Lc,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},ss=Ec;var G=require("react/jsx-runtime"),ls=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return(0,G.jsx)("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:(0,G.jsx)("path",{d:t.d,fill:"currentColor"})})},Qi=(0,_a.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:m,className:c}=o||{},[g,p]=(0,_a.useState)(t?.[0]?.title||"");return(0,G.jsxs)(G.Fragment,{children:[e&&(0,G.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&(0,G.jsxs)(da,{children:[(0,G.jsx)(go,{lessThan:"md",children:(0,G.jsx)(ss,{dataGuide:t,mockup:i,isStep:n})}),(0,G.jsx)(go,{greaterThan:"sm",children:t?.length>1?(0,G.jsxs)(mt,{defaultValue:t[0]?.title,onValueChange:f=>p(f),children:[(0,G.jsxs)(rt,{showGradientOverlay:s,gradientOverlayColor:m,className:c,children:[(0,G.jsx)(nt,{className:"mb-6 text-center",children:(0,G.jsx)(qe,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,v)=>{let D=v===t.length-1,E=g===f?.title||"";return(0,G.jsxs)(Ye,{value:f.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",E&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&v!==0&&(0,G.jsx)(ls,{direction:"left",className:r("right-full top-0",E?"text-pink-500":"text-pink-100")}),f.title,n&&!D&&(0,G.jsx)(ls,{direction:"right",className:r("left-full top-0",E?"text-pink-500":"text-pink-100")})]},f.title+v)})})}),(0,G.jsx)(st,{}),(0,G.jsx)(lt,{})]}),t.map((f,v)=>(0,G.jsx)(Ze,{value:f.title,children:(0,G.jsx)(ji,{guideGroup:f,mockup:i})},f.title+v))]}):t?.length===1&&t[0]&&(0,G.jsx)(ji,{guideGroup:t[0],mockup:i})})]}),a&&(0,G.jsx)(R,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var $t=require("react/jsx-runtime"),Hc=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return(0,$t.jsx)(Qi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return(0,$t.jsx)(Qi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},Fc=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>(0,$t.jsx)($t.Fragment,{children:Hc({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),ms=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:i,background:n,template:s=1,mockup:m="default",isStep:c=!1})=>(0,$t.jsx)(Y,{className:r(i),background:n,children:(0,$t.jsx)(Fc,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:m,isStep:c})});var Ba=require("lucide-react");var de=require("react/jsx-runtime");function Xi({current:e,total:o,onChange:t}){let a=i=>(0,de.jsx)("li",{children:(0,de.jsx)("button",{className:r(eo({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return(0,de.jsx)("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:(0,de.jsxs)("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,de.jsx)("li",{children:(0,de.jsx)("button",{className:r(eo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,de.jsx)(Ba.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):(0,de.jsxs)(de.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,de.jsx)("li",{children:(0,de.jsx)("button",{className:r(eo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&(0,de.jsx)("button",{className:r(eo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,de.jsx)("li",{children:(0,de.jsx)("button",{className:r(eo({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,de.jsx)(Ba.ChevronRight,{className:"h-4 w-4"})})})]})})}var cs=require("react"),ds=require("@heroicons/react/24/outline"),ps=require("@heroicons/react/24/solid");var dt=require("react/jsx-runtime"),fs=(0,cs.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:m=3,...c},g)=>(0,dt.jsxs)("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&(0,dt.jsx)("span",{className:r("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,dt.jsx)("textarea",{disabled:e,ref:g,className:r("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",s===2&&"text-base",n),rows:m,...c}),t&&(0,dt.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?(0,dt.jsx)(ps.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,dt.jsx)(ds.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,dt.jsx)("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,dt.jsx)("style",{children:`
70
+ `})]}),Wt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:m=!1,...c})=>(0,x.jsx)(at,{...c,children:(0,x.jsx)(Qe,{className:r("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",positionRightCloseBtn:!0,children:(0,x.jsx)(Nt,{className:"p-0",children:(0,x.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,x.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||(0,x.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,x.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,x.jsx)("div",{className:"flex-none",children:(0,x.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,x.jsxs)("div",{className:"flex-1 pl-4",children:[(0,x.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,x.jsx)("div",{className:"mt-1 text-gray-500 ",children:m?"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,x.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,x.jsx)("div",{className:"flex-none",children:(0,x.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,x.jsxs)("div",{className:"flex-1 pl-4",children:[(0,x.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,x.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,x.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,x.jsx)("div",{className:"flex-none",children:(0,x.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,x.jsxs)("div",{className:"flex-1 pl-4",children:[(0,x.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,x.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"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),(0,x.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,x.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,x.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,x.jsxs)("div",{className:"relative",children:[m&&(0,x.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,x.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,x.jsx)(bc,{img:i,isQrForAll:m,children:n&&(0,x.jsx)(Tn.QRCodeSVG,{value:n,size:215,imageSettings:{src:`${s||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});var Dn=require("react");var bo=require("react"),kn=u(require("ua-parser-js"),1),xc=()=>(0,kn.default)().device.type==="mobile",hc=typeof window<"u"?bo.useLayoutEffect:bo.useEffect,Sn=()=>{let[e,o]=(0,bo.useState)(!1);return hc(()=>{o(xc())},[]),e};var Pt=require("react/jsx-runtime"),Ee=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[m,c]=(0,Dn.useState)(!1),f=Sn(),p=!!a?.qrLink,g=()=>{let q=p?a?.qrLink:e;return typeof q=="string"?q.trim():""},v=()=>{let q=g();!q&&typeof e!="function"||(typeof e=="function"?e():window.open(q,o?"_blank":"_self"))},R=(q,ae=0)=>{let Y=document.querySelector(q);if(!Y)return;let k=Y.getBoundingClientRect().top+window.scrollY-ae;window.scrollTo({top:k,behavior:"smooth"})},E=()=>{typeof e=="string"&&e.startsWith("#")?R(e,t):v()},U=()=>(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)(ke,{...s,className:i,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Pt.jsx)(Wt,{...a,open:m,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?f?a?.isQrForAll?U():(0,Pt.jsx)(ke,{...s,className:i,onClick:v,"data-name":"button-action-with-qr",children:n}):U():(0,Pt.jsx)(ke,{...s,onClick:E,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var xo=u(require("react"),1),ua=require("@radix-ui/react-icons"),Mn=require("@radix-ui/react-slot");var He=require("react/jsx-runtime"),yi=xo.forwardRef(({className:e,...o},t)=>(0,He.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));yi.displayName="Breadcrumb";var wi=xo.forwardRef(({className:e,...o},t)=>(0,He.jsx)("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));wi.displayName="BreadcrumbList";var Ni=xo.forwardRef(({className:e,...o},t)=>(0,He.jsx)("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Ni.displayName="BreadcrumbItem";var Pi=xo.forwardRef(({asChild:e,className:o,...t},a)=>(0,He.jsx)(e?Mn.Slot:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Pi.displayName="BreadcrumbLink";var Ci=xo.forwardRef(({className:e,...o},t)=>(0,He.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Ci.displayName="BreadcrumbPage";var Ri=({children:e,className:o,...t})=>(0,He.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??(0,He.jsx)(ua.ChevronRightIcon,{className:"w-2 h-2"})});Ri.displayName="BreadcrumbSeparator";var Ti=({className:e,...o})=>(0,He.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,He.jsx)(ua.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,He.jsx)("span",{className:"sr-only",children:"More"})]});Ti.displayName="BreadcrumbElipssis";var ya=u(require("html-react-parser"),1);var Bo=require("react");var ho=require("react/jsx-runtime"),ki=(0,Bo.createContext)({align:"center"}),va=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return(0,ho.jsx)("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},ba=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,m={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:f}=(0,Bo.useContext)(ki);return(0,ho.jsx)(s,{className:r("max-w-4xl font-bold",f==="center"?"mx-auto":f==="right"?"ml-auto":"",m[t],c[o],a&&"truncate",i),children:n})},xa=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},m={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:f}=(0,Bo.useContext)(ki);return(0,ho.jsx)("div",{className:r(f==="center"?"mx-auto max-w-2xl":f==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],m[o],c[t],a&&"truncate",i),children:n})},ha=({className:e,align:o="center",children:t})=>(0,ho.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,ho.jsx)(ki.Provider,{value:{align:o},children:t})});var it=require("react/jsx-runtime"),Z=({idSection:e,className:o,background:t,children:a})=>(0,it.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,it.jsx)("div",{className:"wrapper relative",children:a})}),y=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:m})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",f=n==="pink"?"pink":n==="white"?"white":"regular",p=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,it.jsxs)(ha,{align:e,className:m,children:[o&&(0,it.jsx)(va,{color:c,children:o}),t&&(0,it.jsx)(ba,{tagHeading:i,color:f,size:s,children:(0,ya.default)(t)}),a&&(0,it.jsx)(xa,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,ya.default)(a)})]})},T=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,it.jsx)("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{if(!i)return null;let{btnName:s,...m}=i;return(0,it.jsx)(Ee,{...m,className:r(o&&"w-full md:w-auto",i?.className),children:(0,ya.default)(s)},n)})});var Ra=u(require("react"),1),Bn=require("@heroicons/react/20/solid"),Vn=u(require("html-react-parser"),1);var Pe=require("react"),wa=require("lucide-react");var In=u(require("react"),1),An=require("@radix-ui/react-slot"),Ln=require("class-variance-authority");var En=require("react/jsx-runtime"),eo=(0,Ln.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"}}),me=In.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?An.Slot:"button",c=r(eo({variant:o,size:t,className:e}));return(0,En.jsx)(m,{className:c,disabled:i,ref:s,...n,children:n.children})});me.displayName="IconButton";var Ne=require("react/jsx-runtime"),Na=(0,Pe.createContext)(void 0),rt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=(0,Pe.useRef)(null),[n,s]=(0,Pe.useState)({left:!1,right:!1}),m=(0,Pe.useCallback)(()=>{let f=i.current;if(f){let{scrollLeft:p,scrollWidth:g,clientWidth:v}=f;s({left:p>0,right:Math.ceil(p+v)<g})}},[]);(0,Pe.useEffect)(()=>{let f=i.current;if(f)return m(),window.addEventListener("resize",m),f.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),f.removeEventListener("scroll",m)}},[m]);let c=f=>{let p=i.current;if(p){let{scrollLeft:g,clientWidth:v,scrollWidth:R}=p,E=v*.7*(f==="left"?-1:1),U=g+E;U<0?U=0:U>R-v&&(U=R-v),p.scrollTo({left:U,behavior:"smooth"})}};return(0,Ne.jsx)(Na.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Ne.jsxs)("div",{className:r("relative w-full",t),children:[e&&(0,Ne.jsxs)(Ne.Fragment,{children:[n.left&&(0,Ne.jsx)("div",{className:"pointer-events-none absolute left-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&(0,Ne.jsx)("div",{className:"pointer-events-none absolute right-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},nt=({className:e,children:o})=>{let t=(0,Pe.useContext)(Na);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Ne.jsx)("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},st=({className:e,children:o,...t})=>{let a=(0,Pe.useContext)(Na);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Ne.jsx)(me,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Ne.jsx)(wa.ChevronLeft,{className:"h-4 w-4"})}):null},lt=({className:e,children:o,...t})=>{let a=(0,Pe.useContext)(Na);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Ne.jsx)(me,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Ne.jsx)(wa.ChevronRight,{className:"h-4 w-4"})}):null};var Pa=u(require("react"),1),Xe=u(require("@radix-ui/react-tabs"),1);var Ca=require("react/jsx-runtime"),mt=Xe.Root,qe=Pa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>(0,Ca.jsx)(Xe.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));qe.displayName=Xe.List.displayName;var Ye=Pa.forwardRef(({className:e,...o},t)=>(0,Ca.jsx)(Xe.Trigger,{ref:t,className:r("inline-flex items-center justify-center whitespace-nowrap py-3 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-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));Ye.displayName=Xe.Trigger.displayName;var Ze=Pa.forwardRef(({className:e,...o},t)=>(0,Ca.jsx)(Xe.Content,{ref:t,className:r("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),...o}));Ze.displayName=Xe.Content.displayName;var Hn=u(require("react"),1),Fn=require("@radix-ui/react-slot"),zn=require("class-variance-authority");var _n=require("react/jsx-runtime"),Si=(0,zn.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"}}),ue=Hn.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?Fn.Slot:"button",c=r(Si({variant:o,size:t,className:e}));return(0,_n.jsx)(m,{className:c,disabled:i,ref:s,...n,children:n.children})});ue.displayName="TextButton";var P=require("react/jsx-runtime"),yc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,P.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,P.jsxs)("picture",{children:[(0,P.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,P.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,P.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,P.jsx)(ue,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),(0,P.jsx)("div",{className:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,P.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ue,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,P.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,P.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Ta=(0,Ra.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,g,v)=>{p?.preventDefault(),p?.stopPropagation(),a?a(g):window.open(v,"_blank")},f=(p,g)=>(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",p?.blogList?.length<3?"md:justify-center":""),children:p?.blogList?.map((v,R)=>(0,P.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,P.jsx)("div",{onClick:E=>c(E,v?.id,v?.url),className:r("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,P.jsx)(yc,{blog:v})},v?.id)},R))}),p?.isShowBtn&&(0,P.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,P.jsxs)(Ee,{action:i?()=>i?.(g):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[(0,Vn.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,P.jsx)(vo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):i&&!p?.btnUrl&&(0,P.jsx)(Bn.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},p?.title||g);return(0,P.jsxs)(Ra.default.Fragment,{children:[e&&(0,P.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?(0,P.jsxs)(mt,{defaultValue:t[0]?.title,children:[(0,P.jsxs)(rt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,P.jsx)(nt,{className:"mb-6 text-center",children:(0,P.jsx)(qe,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((p,g)=>(0,P.jsx)(Ye,{value:p.title,children:p.title},p.title+g))})}),(0,P.jsx)(st,{}),(0,P.jsx)(lt,{})]}),t.map((p,g)=>(0,P.jsx)(Ze,{value:p.title,children:f(p,g)},p.title+g))]}):t?.length===1&&t[0]&&f(t[0],0)]})});var Ct=u(require("react"),1),Sa=require("@heroicons/react/20/solid"),Mi=u(require("html-react-parser"),1);var W=u(require("react"),1),ka=require("@heroicons/react/20/solid"),On=u(require("embla-carousel-react"),1);var ce=require("react/jsx-runtime"),Wn=W.createContext(null);function Vo(){let e=W.useContext(Wn);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Fe=W.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},m)=>{let[c,f]=(0,On.default)({...o,axis:e==="horizontal"?"x":"y"},a),[p,g]=W.useState(!1),[v,R]=W.useState(!1),E=W.useCallback(ae=>{ae&&(g(ae.canScrollPrev()),R(ae.canScrollNext()))},[]),U=W.useCallback(()=>{f?.scrollPrev()},[f]),V=W.useCallback(()=>{f?.scrollNext()},[f]),q=W.useCallback(ae=>{ae.key==="ArrowLeft"?(ae.preventDefault(),U()):ae.key==="ArrowRight"&&(ae.preventDefault(),V())},[U,V]);return W.useEffect(()=>{!f||!t||t(f)},[f,t]),W.useEffect(()=>{if(f)return E(f),f.on("reInit",E),f.on("select",E),()=>{f?.off("select",E)}},[f,E]),(0,ce.jsx)(Wn.Provider,{value:{carouselRef:c,api:f,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:U,scrollNext:V,canScrollPrev:p,canScrollNext:v},children:(0,ce.jsx)("div",{ref:m,onKeyDownCapture:q,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Fe.displayName="Carousel";var ze=W.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=Vo();return(0,ce.jsx)("div",{ref:i,className:r(o,"overflow-hidden"),children:(0,ce.jsx)("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ze.displayName="CarouselContent";var _e=W.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Vo();return(0,ce.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});_e.displayName="CarouselItem";var to=W.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:m}=Vo();return(0,ce.jsxs)(me,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!m,onClick:s,...a,children:[(0,ce.jsx)(ka.ChevronLeftIcon,{className:"w-6 h-6"}),(0,ce.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});to.displayName="CarouselPrevious";var oo=W.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:m}=Vo();return(0,ce.jsxs)(me,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!m,onClick:s,...a,children:[(0,ce.jsx)(ka.ChevronRightIcon,{className:"w-6 h-6"}),(0,ce.jsx)("span",{className:"sr-only",children:"Next slide"})]})});oo.displayName="CarouselNext";var Di=W.forwardRef((e,o)=>{let{api:t}=Vo(),[,a]=W.useState(!1),i=W.useCallback(()=>a(m=>!m),[]);W.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?(0,ce.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(m,c)=>(0,ce.jsx)(me,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${c===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${c+1}`,onClick:()=>t?.scrollTo(c)},c))}):(0,ce.jsx)(ce.Fragment,{})});Di.displayName="CarouselDots";var w=require("react/jsx-runtime"),wc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,w.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,w.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,w.jsx)("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&(0,w.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Mi.default)(e?.description??"")}),(0,w.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(ue,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,w.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,w.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Nc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:m,btnUrl:c="#",isNewTab:f,classNameItem:p}=e??{};return(0,Ct.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Fe,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,w.jsx)(ze,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(g=>(0,w.jsx)(_e,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,w.jsx)("div",{onClick:v=>i(v,g?.id,g?.url),className:r("group cursor-pointer",p),children:(0,w.jsx)(wc,{blog:g})},g?.id)},g?.id))})}),s&&(0,w.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,w.jsxs)(Ee,{action:c&&c,newTab:f,variant:"outline",children:[(0,Mi.default)(m||"Xem th\xEAm")," "]})})]})},Pc=({carouselRef:e})=>(0,w.jsxs)(me,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,w.jsx)(Sa.ChevronLeftIcon,{className:"h-6 w-6"}),(0,w.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),Cc=({carouselRef:e})=>(0,w.jsxs)(me,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,w.jsx)(Sa.ChevronRightIcon,{className:"h-6 w-6"}),(0,w.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Ii=(0,Ct.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(f,p,g)=>{f?.preventDefault(),f?.stopPropagation(),t?t(p):window.open(g,"_blank")},[n,s]=(0,Ct.useState)(null),[,m]=(0,Ct.useState)(0),c=()=>n?(0,w.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,w.jsx)(Pc,{carouselRef:n}),(0,w.jsx)(Cc,{carouselRef:n})]}):(0,w.jsx)(w.Fragment,{});return(0,w.jsxs)(Ct.default.Fragment,{children:[(0,w.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,w.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),(0,w.jsx)(c,{})]}),(0,w.jsx)(Nc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:m,handleOnClickItem:i})]})});var Rt=require("react/jsx-runtime"),Rc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Rt.jsx)(Ta,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return(0,Rt.jsx)(Ii,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Rt.jsx)(Ta,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Tc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Rt.jsx)(Rt.Fragment,{children:Rc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),$n=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,Rt.jsx)(Z,{className:r("overflow-hidden",a),background:i,children:(0,Rt.jsx)(Tc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:m})});var Ma=u(require("react"),1),Ia=require("date-fns/locale"),Aa=require("lucide-react"),Un=u(require("lunisolar"),1),Qn=require("react-day-picker");var Gn=u(require("react"),1),Oo=u(require("@radix-ui/react-checkbox"),1),jn=require("@heroicons/react/16/solid"),Ai=require("class-variance-authority");var Da=require("react/jsx-runtime"),kc=(0,Ai.cva)("peer shrink-0 rounded 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:bg-gray-100 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-400 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Sc=(0,Ai.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Wo=Gn.forwardRef(({className:e,size:o,...t},a)=>(0,Da.jsx)(Oo.Root,{ref:a,className:r(kc({size:o}),e),...t,children:(0,Da.jsx)(Oo.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Da.jsx)(jn.CheckIcon,{className:r(Sc({size:o}))})})}));Wo.displayName=Oo.Root.displayName;var fe=require("react/jsx-runtime"),Dc=({date:e,cusContent:o})=>{let t=null;return t=(0,Un.default)(e).lunar,(0,fe.jsxs)(fe.Fragment,{children:[o?o(e):e.getDate(),t&&(0,fe.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Mc={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let o=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][o]}};function Ic({isShow:e,setIsShow:o,lang:t}){let a=Ma.useId();return(0,fe.jsx)("div",{className:"w-full p-3 pt-0",children:(0,fe.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,fe.jsx)(Wo,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),(0,fe.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Ac=e=>e.getDay()===0||e.getDay()===6;function $o({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[m,c]=Ma.useState(!0);return(0,fe.jsx)(Qn.DayPicker,{locale:i==="vi"?Ia.vi:Ia.enUS,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(Ue({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(Ue({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&m&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Ac},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,fe.jsx)(Aa.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,fe.jsx)(Aa.ChevronRight,{className:"h-6 w-6"}),DayContent:f=>(0,fe.jsx)(Dc,{date:f.date,cusContent:n}),Months:({children:f})=>(0,fe.jsxs)("div",{className:"w-full",children:[(0,fe.jsx)("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:f}),a&&(0,fe.jsx)(Ic,{isShow:m,setIsShow:c,lang:i})]})},formatters:i==="vi"?Mc:{},...s})}$o.displayName="Calendar";var La=require("@heroicons/react/16/solid"),Go=require("date-fns"),qn=require("lucide-react");var Xn=u(require("react"),1),Tt=u(require("@radix-ui/react-popover"),1);var Li=require("react/jsx-runtime"),yo=Tt.Root,wo=Tt.Trigger,ao=Xn.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>(0,Li.jsx)(Tt.Portal,{children:(0,Li.jsx)(Tt.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small 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),...a})}));ao.displayName=Tt.Content.displayName;var Q=require("react/jsx-runtime"),Yn=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:m,popoverProps:c,calendarProps:f,popoverContentProps:p})=>{let g=f?.selected||null;return(0,Q.jsxs)("div",{children:[(0,Q.jsxs)(yo,{...c,children:[(0,Q.jsx)(wo,{asChild:!0,children:(0,Q.jsxs)(ke,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!g||!(g instanceof Date)&&typeof g=="object"&&(!("from"in g)||!g.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...m,children:[(0,Q.jsx)("div",{className:"line-clamp-1 flex-1",children:g instanceof Date?(0,Go.format)(g,s):g&&typeof g=="object"&&"from"in g&&"to"in g?(0,Q.jsx)(Q.Fragment,{children:g.from?g.to?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)("span",{className:"date-from",children:(0,Go.format)(g.from,s)})," ",(0,Q.jsx)("span",{className:"date-separator",children:"-"}),(0,Q.jsx)("span",{className:"date-to",children:(0,Go.format)(g.to,s)})]}):(0,Go.format)(g.from,s):o}):o}),e&&(0,Q.jsx)("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),(0,Q.jsx)(qn.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,Q.jsx)(ao,{className:"w-auto border-none !p-0",...p,children:(0,Q.jsx)($o,{...f,defaultMonth:g&&typeof g=="object"&&"from"in g?g.from:g instanceof Date?g:void 0})})]}),a&&(0,Q.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?(0,Q.jsx)(La.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Q.jsx)(La.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Q.jsx)("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var jo=require("react"),Fa=require("@heroicons/react/16/solid"),ts=require("date-fns");var ct=u(require("react"),1),kt=require("@heroicons/react/16/solid"),Zn=require("@heroicons/react/24/outline"),S=u(require("@radix-ui/react-select"),1);var H=require("react/jsx-runtime"),No=ct.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...m},c)=>(0,H.jsxs)("div",{ref:c,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&(0,H.jsx)("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),(0,H.jsx)(S.Root,{disabled:s,...m,children:o}),a&&(0,H.jsxs)("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?(0,H.jsx)(kt.XCircleIcon,{width:16,height:16}):(0,H.jsx)(Zn.QuestionMarkCircleIcon,{width:16,height:16}),(0,H.jsx)("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Po=S.Value,io=ct.forwardRef(({className:e,children:o,...t},a)=>(0,H.jsxs)(S.Trigger,{ref:a,className:r("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),...t,children:[(0,H.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,H.jsx)(S.Icon,{asChild:!0,children:(0,H.jsx)(kt.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));io.displayName=S.Trigger.displayName;var Ea=ct.forwardRef(({className:e,...o},t)=>(0,H.jsx)(S.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:(0,H.jsx)(kt.ChevronUpIcon,{className:"h-5 w-5"})}));Ea.displayName=S.ScrollUpButton.displayName;var Ha=ct.forwardRef(({className:e,...o},t)=>(0,H.jsx)(S.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:(0,H.jsx)(kt.ChevronDownIcon,{className:"h-5 w-5"})}));Ha.displayName=S.ScrollDownButton.displayName;var ro=ct.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>(0,H.jsx)(S.Portal,{children:(0,H.jsxs)(S.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="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:t,...a,children:[(0,H.jsx)(Ea,{}),(0,H.jsx)(S.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,H.jsx)(Ha,{})]})}));ro.displayName=S.Content.displayName;var Co=ct.forwardRef(({className:e,children:o,...t},a)=>(0,H.jsx)(S.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Ei=ct.forwardRef(({className:e,...o},t)=>(0,H.jsx)(S.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Ei.displayName=S.Label.displayName;var St=ct.forwardRef(({className:e,children:o,...t},a)=>(0,H.jsxs)(S.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[(0,H.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,H.jsx)(S.ItemIndicator,{children:(0,H.jsx)(kt.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,H.jsx)(S.ItemText,{children:o})]})),Hi=ct.forwardRef(({className:e,...o},t)=>(0,H.jsx)(S.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));Hi.displayName=S.Separator.displayName;var Kn=["Th\xE1ng 01","Th\xE1ng 02","Th\xE1ng 03","Th\xE1ng 04","Th\xE1ng 05","Th\xE1ng 06","Th\xE1ng 07","Th\xE1ng 08","Th\xE1ng 09","Th\xE1ng 10","Th\xE1ng 11","Th\xE1ng 12"],Jn=["January","February","March","April","May","June","July","August","September","October","November","December"],Fi=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},es=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,m)=>n-m)};var L=require("react/jsx-runtime"),os=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:m="dd/MM/yyyy",lang:c="vi",fromYear:f=1900,toYear:p=new Date().getFullYear(),disableUnselect:g=!1})=>{let[v,R]=(0,jo.useState)(o??null),E=Math.min(f,p),U=Math.max(f,p),V=m==="MM/yyyy",q=(k,Te)=>{if(Te===0){R(void 0),t?.(void 0);return}let pe=v?.getFullYear()||new Date().getFullYear(),gi=v?.getMonth()??0,Lo=v?.getDate()??1;k==="month"&&Te!==null&&(gi=Te-1),k==="year"&&Te!==null&&(pe=Te),V?Lo=1:k==="day"&&Te!==null&&(Lo=Te);let sc=Fi(pe,gi+1).daysInMonth;Lo>sc&&(Lo=1);let ui=new Date(pe,gi,Lo);(0,ts.isValid)(ui)&&(R(ui),t?.(ui))},[ae,Y]=(0,jo.useState)(!1),go=k=>{Y(k)};return(0,jo.useEffect)(()=>{R(o??null)},[o]),(0,L.jsxs)("div",{className:r("relative",s&&"cursor-no-drop"),children:[(0,L.jsxs)("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",ae&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",v?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,L.jsx)("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,L.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!V&&(0,L.jsxs)(No,{value:v?v.getDate().toString().padStart(2,"0"):"",onValueChange:k=>q("day",parseInt(k,10)),onOpenChange:go,className:"w-[30%]",children:[(0,L.jsx)(io,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,L.jsx)(Po,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,L.jsx)(ro,{onCloseAutoFocus:k=>k.preventDefault(),children:(0,L.jsxs)(Co,{children:[!g&&(0,L.jsx)(St,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Fi(v?.getFullYear()||new Date().getFullYear(),(v?.getMonth()??0)+1).daysInMonth},(k,Te)=>(Te+1).toString().padStart(2,"0")).map(k=>(0,L.jsx)(St,{value:k,children:k},k))]})})]}),(0,L.jsxs)(No,{value:v?(v.getMonth()+1).toString():"",onValueChange:k=>q("month",parseInt(k,10)),onOpenChange:go,className:r(V?"w-1/2":"w-2/5"),children:[(0,L.jsx)(io,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,L.jsx)(Po,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,L.jsx)(ro,{onCloseAutoFocus:k=>k.preventDefault(),children:(0,L.jsxs)(Co,{children:[!g&&(0,L.jsx)(St,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(k,Te)=>Te+1).map(k=>(0,L.jsx)(St,{value:k.toString(),children:c==="vi"?Kn[k-1]:Jn[k-1]},k))]})})]}),(0,L.jsxs)(No,{value:v?v.getFullYear().toString():"",onValueChange:k=>q("year",parseInt(k,10)),onOpenChange:go,className:r(V?"w-1/2":"w-[30%]"),children:[(0,L.jsx)(io,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,L.jsx)(Po,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,L.jsx)(ro,{onCloseAutoFocus:k=>k.preventDefault(),children:(0,L.jsxs)(Co,{children:[!g&&(0,L.jsx)(St,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),es(E,U).map(k=>(0,L.jsx)(St,{value:k.toString(),children:k},k))]})})]})]})]}),i&&(0,L.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,L.jsx)(Fa.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,L.jsx)(Fa.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,L.jsx)("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};var no=u(require("react"),1),j=u(require("@radix-ui/react-alert-dialog"),1);var Be=require("react/jsx-runtime"),as=j.Root,is=j.Trigger,zi=j.Portal,za=no.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(j.Overlay,{className:r("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),...o,ref:t}));za.displayName=j.Overlay.displayName;var _i=no.forwardRef(({className:e,...o},t)=>(0,Be.jsxs)(zi,{children:[(0,Be.jsx)(za,{}),(0,Be.jsx)(j.Content,{ref:t,className:r("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),...o})]}));_i.displayName=j.Content.displayName;var Bi=({className:e,...o})=>(0,Be.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...o});Bi.displayName="AlertDialogHeader";var Vi=({className:e,...o})=>(0,Be.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...o});Vi.displayName="AlertDialogFooter";var Oi=no.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(j.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));Oi.displayName=j.Title.displayName;var Wi=no.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(j.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Wi.displayName=j.Description.displayName;var $i=no.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(j.Action,{ref:t,className:r(Ue({variant:"primary"}),"",e),...o}));$i.displayName=j.Action.displayName;var Gi=no.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(j.Cancel,{ref:t,className:r(Ue({variant:"secondary"}),e),...o}));Gi.displayName=j.Cancel.displayName;var _a=require("react");var Uo=require("react"),ns=require("framer-motion"),ji=u(require("html-react-parser"),1);var rs=u(require("@radix-ui/react-aspect-ratio"),1),te=rs.Root;var _=require("react/jsx-runtime"),Lc=({guideGroup:e,mockup:o})=>{let[t,a]=(0,Uo.useState)(),[i,n]=(0,Uo.useState)(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return(0,Uo.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,_.jsx)(_.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,_.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,_.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,_.jsxs)("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,_.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,_.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,_.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,_.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,_.jsxs)(Fe,{setApi:a,children:[(0,_.jsx)(ze,{className:"ml-0",children:e?.stepList.map((m,c)=>(0,_.jsx)(_e,{className:"pl-0",children:(0,_.jsx)(te,{ratio:o==="small"?540/960:540/1168,children:(0,_.jsx)("img",{src:m.image,className:"size-full object-contain",alt:m.title})})},c))}),(0,_.jsx)(to,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,_.jsx)(oo,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,_.jsx)("div",{className:"flex flex-auto py-4 pl-12",children:(0,_.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((m,c)=>(0,_.jsxs)("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",c+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[(0,_.jsx)("div",{className:r("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),(0,_.jsx)("div",{className:r(" text-sm font-medium",c+1===i?"text-pink-500":"text-gray-900"),children:(0,ji.default)(m.title)}),m.content&&(0,_.jsx)(ns.motion.div,{initial:"closed",animate:c+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,_.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,ji.default)(m.content)})})]},c))})})]})})},Ui=Lc;var Dt=require("react"),Qi=require("@heroicons/react/20/solid"),ss=u(require("embla-carousel-autoplay"),1),Qo=u(require("html-react-parser"),1);var b=require("react/jsx-runtime"),Ec=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=(0,Dt.useState)(0),[s,m]=(0,Dt.useState)();return(0,Dt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,b.jsx)(at,{open:e,onOpenChange:o,children:(0,b.jsxs)(Qe,{position:"bottom",height:"full",children:[(0,b.jsx)(zo,{children:(0,b.jsx)(_o,{className:"line-clamp-1",children:t?.title})}),(0,b.jsxs)(Nt,{className:"grid overflow-hidden p-0 ",children:[(0,b.jsx)(Fe,{setApi:m,className:" grid overflow-hidden",children:(0,b.jsx)(ze,{className:"ml-0 h-full",children:t.stepList.map((c,f)=>(0,b.jsx)(_e,{className:"h-full w-full pl-0",children:(0,b.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,b.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,b.jsx)("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:(0,b.jsxs)("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,b.jsx)("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,b.jsx)(te,{ratio:a==="small"?540/960:540/1168,children:(0,b.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,b.jsxs)("div",{className:"p-5 pb-12",children:[(0,b.jsx)("div",{className:"font-semibold",children:(0,Qo.default)(c.title)}),c?.content&&(0,b.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,Qo.default)(c.content)})]})]})},f))})}),(0,b.jsx)("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((c,f)=>(0,b.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${f+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(f)},f))})]})]})})},Hc=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=(0,Dt.useState)(!1),[n,s]=(0,Dt.useState)(null),m=(0,Dt.useRef)((0,ss.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=f=>{s(e?.[f]||null),i(!0)};return e?.length===0?null:(0,b.jsxs)(b.Fragment,{children:[e?.length>1?(0,b.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((f,p)=>(0,b.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(p),children:[(0,b.jsx)("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:(0,b.jsx)(te,{ratio:1,children:(0,b.jsx)("img",{src:f.avatar,className:"object-cover",alt:f.title})})}),(0,b.jsxs)("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",p+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[(0,b.jsxs)("div",{className:"py-2",children:[t&&(0,b.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,b.jsx)("div",{className:"font-semibold",children:(0,Qo.default)(f.title)}),f?.description&&(0,b.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,Qo.default)(f.description)})]}),(0,b.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,b.jsx)(Qi.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,b.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,b.jsx)("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:(0,b.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,b.jsxs)("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,b.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,b.jsx)(Fe,{plugins:[m.current],children:(0,b.jsx)(ze,{className:"ml-0",children:e[0]?.stepList.map((f,p)=>(0,b.jsx)(_e,{className:"pl-0",onClick:()=>c(0),children:(0,b.jsx)(te,{ratio:o==="small"?540/960:540/1168,children:(0,b.jsx)("img",{src:f.image,className:"size-full object-contain",alt:f.title})})},p))})})})]})})}),(0,b.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,b.jsxs)(ue,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,b.jsx)(Qi.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,b.jsx)(Ec,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},ls=Hc;var $=require("react/jsx-runtime"),ms=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return(0,$.jsx)("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:(0,$.jsx)("path",{d:t.d,fill:"currentColor"})})},Xi=(0,_a.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:m,className:c}=o||{},[f,p]=(0,_a.useState)(t?.[0]?.title||"");return(0,$.jsxs)($.Fragment,{children:[e&&(0,$.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&(0,$.jsxs)(da,{children:[(0,$.jsx)(uo,{lessThan:"md",children:(0,$.jsx)(ls,{dataGuide:t,mockup:i,isStep:n})}),(0,$.jsx)(uo,{greaterThan:"sm",children:t?.length>1?(0,$.jsxs)(mt,{defaultValue:t[0]?.title,onValueChange:g=>p(g),children:[(0,$.jsxs)(rt,{showGradientOverlay:s,gradientOverlayColor:m,className:c,children:[(0,$.jsx)(nt,{className:"mb-6 text-center",children:(0,$.jsx)(qe,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((g,v)=>{let R=v===t.length-1,E=f===g?.title||"";return(0,$.jsxs)(Ye,{value:g.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",E&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&v!==0&&(0,$.jsx)(ms,{direction:"left",className:r("right-full top-0",E?"text-pink-500":"text-pink-100")}),g.title,n&&!R&&(0,$.jsx)(ms,{direction:"right",className:r("left-full top-0",E?"text-pink-500":"text-pink-100")})]},g.title+v)})})}),(0,$.jsx)(st,{}),(0,$.jsx)(lt,{})]}),t.map((g,v)=>(0,$.jsx)(Ze,{value:g.title,children:(0,$.jsx)(Ui,{guideGroup:g,mockup:i})},g.title+v))]}):t?.length===1&&t[0]&&(0,$.jsx)(Ui,{guideGroup:t[0],mockup:i})})]}),a&&(0,$.jsx)(T,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var $t=require("react/jsx-runtime"),Fc=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return(0,$t.jsx)(Xi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return(0,$t.jsx)(Xi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},zc=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>(0,$t.jsx)($t.Fragment,{children:Fc({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),cs=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:i,background:n,template:s=1,mockup:m="default",isStep:c=!1})=>(0,$t.jsx)(Z,{className:r(i),background:n,children:(0,$t.jsx)(zc,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:m,isStep:c})});var Ba=require("lucide-react");var de=require("react/jsx-runtime");function qi({current:e,total:o,onChange:t}){let a=i=>(0,de.jsx)("li",{children:(0,de.jsx)("button",{className:r(eo({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return(0,de.jsx)("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:(0,de.jsxs)("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,de.jsx)("li",{children:(0,de.jsx)("button",{className:r(eo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,de.jsx)(Ba.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):(0,de.jsxs)(de.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,de.jsx)("li",{children:(0,de.jsx)("button",{className:r(eo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&(0,de.jsx)("button",{className:r(eo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,de.jsx)("li",{children:(0,de.jsx)("button",{className:r(eo({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,de.jsx)(Ba.ChevronRight,{className:"h-4 w-4"})})})]})})}var ds=require("react"),ps=require("@heroicons/react/24/outline"),fs=require("@heroicons/react/24/solid");var dt=require("react/jsx-runtime"),gs=(0,ds.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:m=3,...c},f)=>(0,dt.jsxs)("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&(0,dt.jsx)("span",{className:r("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,dt.jsx)("textarea",{disabled:e,ref:f,className:r("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",s===2&&"text-base",n),rows:m,...c}),t&&(0,dt.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?(0,dt.jsx)(fs.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,dt.jsx)(ps.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,dt.jsx)("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,dt.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 Wa=u(require("react"),1),zc=1,_c=1e6;var qi=0;function Bc(){return qi=(qi+1)%Number.MAX_SAFE_INTEGER,qi.toString()}var Yi=new Map,gs=e=>{if(Yi.has(e))return;let o=setTimeout(()=>{Yi.delete(e),Xo({type:"REMOVE_TOAST",toastId:e})},_c);Yi.set(e,o)},Vc=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,zc)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===o.toast.id?{...t,...o.toast}:t)};case"DISMISS_TOAST":{let{toastId:t}=o;return t?gs(t):e.toasts.forEach(a=>{gs(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===t||t===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return o.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(t=>t.id!==o.toastId)};default:return e}},Va=[],Oa={toasts:[]};function Xo(e){Oa=Vc(Oa,e),Va.forEach(o=>{o(Oa)})}function Zi({...e}){let o=Bc(),t=i=>Xo({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>Xo({type:"DISMISS_TOAST",toastId:o});return Xo({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function $a(){let[e,o]=Wa.useState(Oa);return Wa.useEffect(()=>(Va.push(o),()=>{let t=Va.indexOf(o);t>-1&&Va.splice(t,1)}),[e]),{...e,toast:Zi,dismiss:t=>Xo({type:"DISMISS_TOAST",toastId:t})}}var so=u(require("react"),1),ie=u(require("@radix-ui/react-toast"),1),us=require("class-variance-authority");var Gt=require("@heroicons/react/20/solid"),Se=require("react/jsx-runtime"),vs=ie.Provider,Ki=so.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(ie.Viewport,{ref:t,className:r("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),...o}));Ki.displayName=ie.Viewport.displayName;var Oc=(0,us.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"}}),Ji=so.forwardRef(({className:e,variant:o="sucess",children:t,...a},i)=>(0,Se.jsxs)(ie.Root,{ref:i,className:r(Oc({variant:o}),e),...a,children:[(0,Se.jsxs)("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[o==="sucess"&&(0,Se.jsx)(Gt.CheckCircleIcon,{className:"w-5 h-5 text-green-500"}),o==="warning"&&(0,Se.jsx)(Gt.ExclamationTriangleIcon,{className:"w-5 h-5 text-yellow-500"}),o==="error"&&(0,Se.jsx)(Gt.InformationCircleIcon,{className:"w-5 h-5 text-red-500"})]}),t]}));Ji.displayName=ie.Root.displayName;var er=so.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(ie.Action,{ref:t,className:r("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),...o}));er.displayName=ie.Action.displayName;var tr=so.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(ie.Close,{ref:t,className:r("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":"",...o,children:(0,Se.jsx)(Gt.XMarkIcon,{className:"h-5 w-5"})}));tr.displayName=ie.Close.displayName;var or=so.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(ie.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));or.displayName=ie.Title.displayName;var ar=so.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(ie.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));ar.displayName=ie.Description.displayName;var Mt=require("react/jsx-runtime");function bs(){let{toasts:e}=$a();return(0,Mt.jsxs)(vs,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return(0,Mt.jsxs)(Ji,{...n,children:[(0,Mt.jsxs)("div",{className:"grid gap-2",children:[t&&(0,Mt.jsx)(or,{children:t}),a&&(0,Mt.jsx)(ar,{children:a})]}),i,(0,Mt.jsx)(tr,{})]},o)}),(0,Mt.jsx)(Ki,{})]})}var ir=u(require("react"),1),Ve=u(require("@radix-ui/react-tooltip"),1);var sr=require("react/jsx-runtime"),xs=Ve.Provider,hs=Ve.Root,ys=Ve.Trigger,rr=ir.forwardRef((e,o)=>(0,sr.jsx)(Ve.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));rr.displayName=Ve.Arrow.displayName;var nr=ir.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>(0,sr.jsx)(Ve.Content,{ref:i,sideOffset:t,className:r("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",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));nr.displayName=Ve.Content.displayName;var jt=require("react"),Co=require("@heroicons/react/16/solid");var De=require("react/jsx-runtime"),ws=(0,jt.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:m,onChange:c,onFocus:g,onClickClear:p,value:f,defaultValue:v,type:D="text",...E},O)=>{let[W,oe]=(0,jt.useState)(!1),ae=(0,jt.useRef)(null),U=pe=>{pe&&!W&&oe(!0),!pe&&W&&oe(!1)},M=pe=>{s&&U(pe.target.value),c?.(pe)},xe=pe=>{s&&U(pe.target.value),g?.(pe)},Ao=()=>{let pe=ae.current?.querySelector("input");pe&&(p?.(pe.value),pe.value="",pe.focus(),oe(!1))};return(0,jt.useEffect)(()=>{U(v||f)},[f,v]),(0,De.jsxs)("div",{className:r(i,o&&"mobase-text-input-error"),ref:ae,children:[(0,De.jsxs)("div",{className:"relative",children:[a&&(0,De.jsx)("span",{className:r("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",m===2&&" -top-2.5 text-sm"),children:a}),(0,De.jsx)("input",{disabled:e,type:D,ref:O,className:r("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",m===2&&"h-12 text-base",n),onChange:M,onFocus:xe,value:f,defaultValue:v,...E}),s&&W&&(0,De.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:Ao,children:(0,De.jsx)(Co.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,De.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?(0,De.jsx)(Co.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,De.jsx)(Co.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,De.jsx)("span",{className:r("text-gray-500 ",m===2?"text-sm":"text-xs"),children:t})]}),(0,De.jsx)("style",{children:`
97
+ `})]}));var Wa=u(require("react"),1),_c=1,Bc=1e6;var Yi=0;function Vc(){return Yi=(Yi+1)%Number.MAX_SAFE_INTEGER,Yi.toString()}var Zi=new Map,us=e=>{if(Zi.has(e))return;let o=setTimeout(()=>{Zi.delete(e),Xo({type:"REMOVE_TOAST",toastId:e})},Bc);Zi.set(e,o)},Oc=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,_c)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===o.toast.id?{...t,...o.toast}:t)};case"DISMISS_TOAST":{let{toastId:t}=o;return t?us(t):e.toasts.forEach(a=>{us(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===t||t===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return o.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(t=>t.id!==o.toastId)};default:return e}},Va=[],Oa={toasts:[]};function Xo(e){Oa=Oc(Oa,e),Va.forEach(o=>{o(Oa)})}function Ki({...e}){let o=Vc(),t=i=>Xo({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>Xo({type:"DISMISS_TOAST",toastId:o});return Xo({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function $a(){let[e,o]=Wa.useState(Oa);return Wa.useEffect(()=>(Va.push(o),()=>{let t=Va.indexOf(o);t>-1&&Va.splice(t,1)}),[e]),{...e,toast:Ki,dismiss:t=>Xo({type:"DISMISS_TOAST",toastId:t})}}var so=u(require("react"),1),Gt=require("@heroicons/react/20/solid"),ie=u(require("@radix-ui/react-toast"),1),vs=require("class-variance-authority");var Se=require("react/jsx-runtime"),bs=ie.Provider,Ji=so.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(ie.Viewport,{ref:t,className:r("fixed bottom-0 left-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));Ji.displayName=ie.Viewport.displayName;var Wc=(0,vs.cva)("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 group pointer-events-auto relative w-full overflow-hidden rounded-md border border border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 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",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),er=so.forwardRef(({className:e,variant:o="success",children:t,...a},i)=>(0,Se.jsxs)(ie.Root,{ref:i,className:r(Wc({variant:o}),e),...a,children:[(0,Se.jsxs)("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&(0,Se.jsx)(Gt.CheckCircleIcon,{className:"h-5 w-5 text-green-500"}),o==="warning"&&(0,Se.jsx)(Gt.ExclamationTriangleIcon,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&(0,Se.jsx)(Gt.InformationCircleIcon,{className:"h-5 w-5 text-red-500"})]}),t]}));er.displayName=ie.Root.displayName;var tr=so.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(ie.Action,{ref:t,className:r("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));tr.displayName=ie.Action.displayName;var or=so.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(ie.Close,{ref:t,className:r("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:(0,Se.jsx)(Gt.XMarkIcon,{className:"h-5 w-5"})}));or.displayName=ie.Close.displayName;var ar=so.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(ie.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));ar.displayName=ie.Title.displayName;var ir=so.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(ie.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));ir.displayName=ie.Description.displayName;var Mt=require("react/jsx-runtime");function xs(){let{toasts:e}=$a();return(0,Mt.jsxs)(bs,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return(0,Mt.jsxs)(er,{...n,children:[(0,Mt.jsxs)("div",{className:"grid gap-2",children:[t&&(0,Mt.jsx)(ar,{children:t}),a&&(0,Mt.jsx)(ir,{children:a})]}),i,(0,Mt.jsx)(or,{})]},o)}),(0,Mt.jsx)(Ji,{})]})}var rr=u(require("react"),1),Ve=u(require("@radix-ui/react-tooltip"),1);var lr=require("react/jsx-runtime"),hs=Ve.Provider,ys=Ve.Root,ws=Ve.Trigger,nr=rr.forwardRef((e,o)=>(0,lr.jsx)(Ve.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));nr.displayName=Ve.Arrow.displayName;var sr=rr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>(0,lr.jsx)(Ve.Content,{ref:i,sideOffset:t,className:r("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",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));sr.displayName=Ve.Content.displayName;var jt=require("react"),Ro=require("@heroicons/react/16/solid");var De=require("react/jsx-runtime"),Ns=(0,jt.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:m,onChange:c,onFocus:f,onClickClear:p,value:g,defaultValue:v,type:R="text",...E},U)=>{let[V,q]=(0,jt.useState)(!1),ae=(0,jt.useRef)(null),Y=pe=>{pe&&!V&&q(!0),!pe&&V&&q(!1)},go=pe=>{s&&Y(pe.target.value),c?.(pe)},k=pe=>{s&&Y(pe.target.value),f?.(pe)},Te=()=>{let pe=ae.current?.querySelector("input");pe&&(p?.(pe.value),pe.value="",pe.focus(),q(!1))};return(0,jt.useEffect)(()=>{Y(v||g)},[g,v]),(0,De.jsxs)("div",{className:r(i,o&&"mobase-text-input-error"),ref:ae,children:[(0,De.jsxs)("div",{className:"relative",children:[a&&(0,De.jsx)("span",{className:r("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",m===2&&" -top-2.5 text-sm"),children:a}),(0,De.jsx)("input",{disabled:e,type:R,ref:U,className:r("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",m===2&&"h-12 text-base",n),onChange:go,onFocus:k,value:g,defaultValue:v,...E}),s&&V&&(0,De.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:Te,children:(0,De.jsx)(Ro.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,De.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?(0,De.jsx)(Ro.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,De.jsx)(Ro.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,De.jsx)("span",{className:r("text-gray-500 ",m===2?"text-sm":"text-xs"),children:t})]}),(0,De.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,26 +117,26 @@
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});var Ga=require("@heroicons/react/24/outline");var ja=require("react");var pt=require("react/jsx-runtime"),lr=(0,ja.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:m,disabled:c=!1,...g},p)=>{let[f,v]=(0,ja.useState)(i),D=()=>{let W=Math.min(f+a,t);v(W),n?.(W),m?.(W)},E=()=>{let W=Math.max(f-a,o);v(W),n?.(W),s?.(W)},O=W=>{let oe=parseFloat(W.target.value);if(!isNaN(oe)){let ae=Math.max(Math.min(oe,t),o);v(ae),n?.(ae)}};return(0,pt.jsxs)("div",{ref:p,className:r("flex items-center ",e),children:[(0,pt.jsxs)(me,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:E,disabled:c||f<=o,children:[(0,pt.jsx)(Ga.MinusCircleIcon,{className:"w-7 h-7 "}),(0,pt.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,pt.jsx)("input",{type:"number",value:f,onChange:O,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:c,...g}),(0,pt.jsxs)(me,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:D,disabled:c||f>=t,children:[(0,pt.jsx)(Ga.PlusCircleIcon,{className:"w-7 h-7 "}),(0,pt.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});lr.displayName="Stepper";var Ke=u(require("react"),1),Z=u(require("@radix-ui/react-navigation-menu"),1),Ns=require("class-variance-authority"),Ps=require("@heroicons/react/16/solid");var Me=require("react/jsx-runtime"),Cs=Ke.createContext(null),Wc=({value:e,children:o})=>(0,Me.jsx)(Cs.Provider,{value:e,children:o}),$c=()=>{let e=Ke.useContext(Cs);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},qo=Ke.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>(0,Me.jsx)(Wc,{value:{alignDropdown:t},children:(0,Me.jsx)(Z.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));qo.displayName=Z.Root.displayName;var Yo=Ke.forwardRef(({className:e,...o},t)=>(0,Me.jsx)(Z.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Yo.displayName=Z.List.displayName;var Zo=Z.Item,Ko=(0,Ns.cva)(Ue({variant:"transparent",size:"sm"})),Jo=Ke.forwardRef(({className:e,children:o,...t},a)=>(0,Me.jsxs)(Z.Trigger,{ref:a,className:r(Ko(),"group px-2",e),...t,children:[o," ",(0,Me.jsx)(Ps.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Jo.displayName=Z.Trigger.displayName;var ea=Ke.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=$c();return(0,Me.jsx)(Z.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});ea.displayName=Z.Content.displayName;var Ro=Z.Link,Gc=Ke.forwardRef(({className:e,...o},t)=>(0,Me.jsx)("div",{className:r("absolute left-0 top-full flex justify-center"),children:(0,Me.jsx)(Z.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg 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)]",e),ref:t,...o})}));Gc.displayName=Z.Viewport.displayName;var jc=Ke.forwardRef(({className:e,...o},t)=>(0,Me.jsx)(Z.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:(0,Me.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));jc.displayName=Z.Indicator.displayName;var Rs=u(require("react"),1),ta=u(require("@radix-ui/react-switch"),1);var mr=require("react/jsx-runtime"),cr=Rs.forwardRef(({className:e,...o},t)=>(0,mr.jsx)(ta.Root,{className:r("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),...o,ref:t,children:(0,mr.jsx)(ta.Thumb,{className:r("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")})}));cr.displayName=ta.Root.displayName;var lo=u(require("react"),1),Ut=u(require("@radix-ui/react-radio-group"),1),Ts=require("lucide-react"),dr=require("class-variance-authority");var To=require("react/jsx-runtime"),Uc=(0,dr.cva)("aspect-square rounded-full border-2 border-gray-300 disabled:bg-gray-100 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-400 data-[state=checked]:bg-pink-500 data-[state=checked]:border-none ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default peer",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Qc=(0,dr.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),ks=lo.createContext({size:"medium"});function Xc(){let e=lo.useContext(ks);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var pr=lo.forwardRef(({className:e,size:o,...t},a)=>(0,To.jsx)(ks.Provider,{value:{size:o},children:(0,To.jsx)(Ut.Root,{className:r("grid gap-2",e),...t,ref:a})}));pr.displayName=Ut.Root.displayName;var fr=lo.forwardRef(({className:e,...o},t)=>{let a=Xc(),{size:i}=a??{};return(0,To.jsx)(Ut.Item,{ref:t,className:r(Uc({size:i}),e),...o,children:(0,To.jsx)(Ut.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,To.jsx)(Ts.Circle,{className:r(Qc({size:i}))})})})});fr.displayName=Ut.Item.displayName;var Hs=require("react"),Fs=require("@heroicons/react/16/solid"),zs=u(require("html-react-parser"),1);var Qa=require("react"),gr=u(require("next/router"),1),gt=require("framer-motion"),Is=require("react-use");var Ua=[.24,.25,.05,1];var It=require("react/jsx-runtime"),qc=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,It.jsx)("li",{className:"min-h-8",children:(0,It.jsxs)("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&(0,It.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,It.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,It.jsxs)("div",{className:" ",children:[(0,It.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,It.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ss=qc;var Ds=require("framer-motion"),ft=require("react/jsx-runtime"),Yc={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Ua}},exit:{opacity:0,transition:{duration:.05}}},Zc=({data:e})=>(0,ft.jsx)(zt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ft.jsx)(Ds.motion.div,{variants:Yc,children:o.hasDropdown?(0,ft.jsxs)(_t,{value:o.id,children:[(0,ft.jsx)(Bt,{className:"py-3",children:o.title}),(0,ft.jsx)(Vt,{children:(0,ft.jsx)("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>(0,ft.jsx)(Ss,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,ft.jsx)("a",{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:o.url,...t,children:o.title})},o.id)})}),Ms=Zc;var h=require("react/jsx-runtime"),Kc=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Jc=({data:e,className:o})=>{let[t,a]=(0,Qa.useState)(!1);(0,Is.useKey)("Escape",()=>a(!1)),(0,Qa.useEffect)(()=>{if(!t)return;let s=Kc();function m(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",gr.default.events.on("routeChangeComplete",m),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),gr.default.events.off("routeChangeComplete",m)}},[t]);let i={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Ua}},exit:{opacity:0,transition:{duration:.15}}};return(0,h.jsxs)("div",{className:r(o),children:[(0,h.jsxs)("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,h.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,h.jsx)(gt.motion.div,{animate:t?"hidden":"visible",variants:i,children:(0,h.jsx)("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,h.jsx)(gt.motion.div,{animate:t?"visible":"hidden",variants:i,children:(0,h.jsx)("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,h.jsx)(gt.LazyMotion,{features:gt.domAnimation,children:(0,h.jsx)(gt.AnimatePresence,{mode:"wait",children:t&&(0,h.jsxs)(gt.motion.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[(0,h.jsx)(Ms,{data:e}),(0,h.jsxs)("div",{className:"animate-fade-in py-4 text-sm delay-300 duration-500",children:[(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,h.jsxs)("div",{className:"flex flex-nowrap",children:[(0,h.jsx)("div",{className:"flex-initial",children:(0,h.jsx)("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,h.jsx)("div",{className:"ml-3 flex-initial",children:(0,h.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{href:`tel:${yt.Support.Hotline}`,className:"text-gray-600",children:yt.Support.Hotline_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsx)("a",{href:`mailto:${yt.Support.Email}`,className:"text-gray-600",children:yt.Support.Email})]})]}),(0,h.jsx)("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,h.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,h.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,h.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,h.jsxs)("g",{children:[(0,h.jsx)("title",{children:"Asset 1"}),(0,h.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 Ga=require("@heroicons/react/24/outline");var ja=require("react");var pt=require("react/jsx-runtime"),mr=(0,ja.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:m,disabled:c=!1,...f},p)=>{let[g,v]=(0,ja.useState)(i),R=()=>{let V=Math.min(g+a,t);v(V),n?.(V),m?.(V)},E=()=>{let V=Math.max(g-a,o);v(V),n?.(V),s?.(V)},U=V=>{let q=parseFloat(V.target.value);if(!isNaN(q)){let ae=Math.max(Math.min(q,t),o);v(ae),n?.(ae)}};return(0,pt.jsxs)("div",{ref:p,className:r("flex items-center ",e),children:[(0,pt.jsxs)(me,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:E,disabled:c||g<=o,children:[(0,pt.jsx)(Ga.MinusCircleIcon,{className:"w-7 h-7 "}),(0,pt.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,pt.jsx)("input",{type:"number",value:g,onChange:U,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:c,...f}),(0,pt.jsxs)(me,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:R,disabled:c||g>=t,children:[(0,pt.jsx)(Ga.PlusCircleIcon,{className:"w-7 h-7 "}),(0,pt.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});mr.displayName="Stepper";var Ke=u(require("react"),1),K=u(require("@radix-ui/react-navigation-menu"),1),Ps=require("class-variance-authority"),Cs=require("@heroicons/react/16/solid");var Me=require("react/jsx-runtime"),Rs=Ke.createContext(null),$c=({value:e,children:o})=>(0,Me.jsx)(Rs.Provider,{value:e,children:o}),Gc=()=>{let e=Ke.useContext(Rs);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},qo=Ke.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>(0,Me.jsx)($c,{value:{alignDropdown:t},children:(0,Me.jsx)(K.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));qo.displayName=K.Root.displayName;var Yo=Ke.forwardRef(({className:e,...o},t)=>(0,Me.jsx)(K.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Yo.displayName=K.List.displayName;var Zo=K.Item,Ko=(0,Ps.cva)(Ue({variant:"transparent",size:"sm"})),Jo=Ke.forwardRef(({className:e,children:o,...t},a)=>(0,Me.jsxs)(K.Trigger,{ref:a,className:r(Ko(),"group px-2",e),...t,children:[o," ",(0,Me.jsx)(Cs.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Jo.displayName=K.Trigger.displayName;var ea=Ke.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Gc();return(0,Me.jsx)(K.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});ea.displayName=K.Content.displayName;var To=K.Link,jc=Ke.forwardRef(({className:e,...o},t)=>(0,Me.jsx)("div",{className:r("absolute left-0 top-full flex justify-center"),children:(0,Me.jsx)(K.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg 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)]",e),ref:t,...o})}));jc.displayName=K.Viewport.displayName;var Uc=Ke.forwardRef(({className:e,...o},t)=>(0,Me.jsx)(K.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:(0,Me.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Uc.displayName=K.Indicator.displayName;var Ts=u(require("react"),1),ta=u(require("@radix-ui/react-switch"),1);var cr=require("react/jsx-runtime"),dr=Ts.forwardRef(({className:e,...o},t)=>(0,cr.jsx)(ta.Root,{className:r("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),...o,ref:t,children:(0,cr.jsx)(ta.Thumb,{className:r("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")})}));dr.displayName=ta.Root.displayName;var lo=u(require("react"),1),Ut=u(require("@radix-ui/react-radio-group"),1),ks=require("lucide-react"),pr=require("class-variance-authority");var ko=require("react/jsx-runtime"),Qc=(0,pr.cva)("aspect-square rounded-full border-2 border-gray-300 disabled:bg-gray-100 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-400 data-[state=checked]:bg-pink-500 data-[state=checked]:border-none ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default peer",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Xc=(0,pr.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Ss=lo.createContext({size:"medium"});function qc(){let e=lo.useContext(Ss);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var fr=lo.forwardRef(({className:e,size:o,...t},a)=>(0,ko.jsx)(Ss.Provider,{value:{size:o},children:(0,ko.jsx)(Ut.Root,{className:r("grid gap-2",e),...t,ref:a})}));fr.displayName=Ut.Root.displayName;var gr=lo.forwardRef(({className:e,...o},t)=>{let a=qc(),{size:i}=a??{};return(0,ko.jsx)(Ut.Item,{ref:t,className:r(Qc({size:i}),e),...o,children:(0,ko.jsx)(Ut.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,ko.jsx)(ks.Circle,{className:r(Xc({size:i}))})})})});gr.displayName=Ut.Item.displayName;var Fs=require("react"),zs=require("@heroicons/react/16/solid"),_s=u(require("html-react-parser"),1);var Qa=require("react"),ur=u(require("next/router"),1),gt=require("framer-motion"),As=require("react-use");var Ua=[.24,.25,.05,1];var It=require("react/jsx-runtime"),Yc=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,It.jsx)("li",{className:"min-h-8",children:(0,It.jsxs)("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&(0,It.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,It.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,It.jsxs)("div",{className:" ",children:[(0,It.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,It.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ds=Yc;var Ms=require("framer-motion"),ft=require("react/jsx-runtime"),Zc={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Ua}},exit:{opacity:0,transition:{duration:.05}}},Kc=({data:e})=>(0,ft.jsx)(zt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ft.jsx)(Ms.motion.div,{variants:Zc,children:o.hasDropdown?(0,ft.jsxs)(_t,{value:o.id,children:[(0,ft.jsx)(Bt,{className:"py-3",children:o.title}),(0,ft.jsx)(Vt,{children:(0,ft.jsx)("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>(0,ft.jsx)(Ds,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,ft.jsx)("a",{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:o.url,...t,children:o.title})},o.id)})}),Is=Kc;var h=require("react/jsx-runtime"),Jc=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,ed=({data:e,className:o})=>{let[t,a]=(0,Qa.useState)(!1);(0,As.useKey)("Escape",()=>a(!1)),(0,Qa.useEffect)(()=>{if(!t)return;let s=Jc();function m(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",ur.default.events.on("routeChangeComplete",m),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),ur.default.events.off("routeChangeComplete",m)}},[t]);let i={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Ua}},exit:{opacity:0,transition:{duration:.15}}};return(0,h.jsxs)("div",{className:r(o),children:[(0,h.jsxs)("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,h.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,h.jsx)(gt.motion.div,{animate:t?"hidden":"visible",variants:i,children:(0,h.jsx)("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,h.jsx)(gt.motion.div,{animate:t?"visible":"hidden",variants:i,children:(0,h.jsx)("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,h.jsx)(gt.LazyMotion,{features:gt.domAnimation,children:(0,h.jsx)(gt.AnimatePresence,{mode:"wait",children:t&&(0,h.jsxs)(gt.motion.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[(0,h.jsx)(Is,{data:e}),(0,h.jsxs)("div",{className:"animate-fade-in py-4 text-sm delay-300 duration-500",children:[(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,h.jsxs)("div",{className:"flex flex-nowrap",children:[(0,h.jsx)("div",{className:"flex-initial",children:(0,h.jsx)("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,h.jsx)("div",{className:"ml-3 flex-initial",children:(0,h.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{href:`tel:${yt.Support.Hotline}`,className:"text-gray-600",children:yt.Support.Hotline_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsx)("a",{href:`mailto:${yt.Support.Email}`,className:"text-gray-600",children:yt.Support.Email})]})]}),(0,h.jsx)("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,h.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,h.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,h.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,h.jsxs)("g",{children:[(0,h.jsx)("title",{children:"Asset 1"}),(0,h.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,h.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,h.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,h.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{className:"text-gray-600",href:`tel:${yt.Business.Phome}`,children:yt.Business.Phome_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsxs)("a",{href:`mailto:${yt.Business.Email}`,className:"text-gray-600",children:[" ",yt.Business.Email]})]})]}),(0,h.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,h.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,h.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,h.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,h.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},As=Jc;var ut=require("react/jsx-runtime"),ed=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ut.jsx)("li",{className:"",children:(0,ut.jsx)(Ro,{asChild:!0,children:(0,ut.jsxs)("a",{className:r(" select-none space-y-1 rounded-md px-2 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 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&(0,ut.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,ut.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,ut.jsxs)("div",{className:" ",children:[(0,ut.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,ut.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Ls=ed;var Je=require("react/jsx-runtime"),td=({data:e,alignDropdown:o})=>(0,Je.jsx)(qo,{alignDropdown:o,children:(0,Je.jsx)(Yo,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,Je.jsxs)(Zo,{className:"relative",children:[(0,Je.jsx)(Jo,{children:t.title}),(0,Je.jsx)(ea,{children:(0,Je.jsx)("ul",{className:r("grid w-[300px] grid-cols-1 p-2",t.dropDownCompact===!1&&"w-[230px]",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>(0,Je.jsx)(Ls,{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,Je.jsx)(Zo,{className:"relative",children:(0,Je.jsx)(Ro,{href:t.url,className:Ko(),...a,children:t.title})},t.id)})})}),Es=td;var re=require("react/jsx-runtime"),ur=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left"})=>{let{logo:m,name:c,url:g}=t||{},[p,f]=(0,Hs.useState)(!1);return(0,re.jsxs)("div",{className:r(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[(0,re.jsx)("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,re.jsx)("nav",{className:r("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0 "),style:{minHeight:"var(--header-height-mobase)"},children:(0,re.jsxs)("div",{className:"relative flex items-center ",children:[(0,re.jsxs)("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[(0,re.jsx)("span",{className:"sr-only",children:"MoMo home page"}),(0,re.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&(0,re.jsxs)("a",{href:g,title:c,className:" relative flex flex-none items-center space-x-1 rounded-none pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] hover:opacity-80 ",children:[(0,re.jsx)("img",{src:m,className:"h-9 w-9",alt:"MoMo"}),(0,re.jsx)("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&(0,zs.default)(c)})]}),(0,re.jsx)("div",{className:r("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!i&&!a&&" lg:ml-auto xl:ml-auto"),children:(0,re.jsx)(Es,{data:o,alignDropdown:s})}),(0,re.jsxs)("div",{className:r("ml-auto flex flex-nowrap items-center space-x-3",!i&&!a&&" lg:ml-0"),children:[i&&i,a&&(0,re.jsxs)("div",{className:" hidden sm:flex",children:[(0,re.jsxs)(ke,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>f(!0),children:[" ",(0,re.jsx)(Fs.ArrowDownTrayIcon,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),(0,re.jsx)(Wt,{open:p,onOpenChange:()=>f(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),(0,re.jsx)(As,{data:o,className:"lg:hidden "})]})]})})]})};ur.displayName="HeaderNavigation";var Bs=require("react");var d=require("react/jsx-runtime"),_s=({item:e})=>(0,d.jsx)("div",{className:"mt-3 flex w-full text-sm",children:(0,d.jsxs)("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&(0,d.jsx)("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:(0,d.jsx)("img",{src:e.icon,className:"absolute inset-0"})}),(0,d.jsx)("span",{className:"block ",children:e.title})]})}),od=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=(0,Bs.useState)(null);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:(0,d.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,d.jsxs)("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[(0,d.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((i,n)=>(0,d.jsx)(_s,{item:i},n))]}),(0,d.jsxs)("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[(0,d.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),(0,d.jsx)("div",{className:"flex flex-wrap",children:o?.lists?.map((i,n)=>(0,d.jsx)(_s,{item:i},n))})]}),(0,d.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,d.jsxs)("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[(0,d.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,d.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),(0,d.jsx)("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:vn.Address})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${he.Support.Hotline}`,children:he.Support.Hotline_Format}),(0,d.jsxs)("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${he.Support.Email}`,children:he.Support.Email})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${he.Support.Phone_Ext_1}`,children:he.Support.Phone_Ext_1_Format}),(0,d.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${he.Support.Phone_Ext_2}`,children:he.Support.Phone_Ext_2_Format}),(0,d.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${he.Support.Phone_Ext_3}`,children:he.Support.Phone_Ext_3_Format}),(0,d.jsx)("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),(0,d.jsx)("div",{className:"mt-3 flex",children:(0,d.jsx)("a",{href:"https://www.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 block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",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-gray-100 ",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
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,h.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,h.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{className:"text-gray-600",href:`tel:${yt.Business.Phome}`,children:yt.Business.Phome_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsxs)("a",{href:`mailto:${yt.Business.Email}`,className:"text-gray-600",children:[" ",yt.Business.Email]})]})]}),(0,h.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,h.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,h.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,h.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,h.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},Ls=ed;var ut=require("react/jsx-runtime"),td=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ut.jsx)("li",{className:"",children:(0,ut.jsx)(To,{asChild:!0,children:(0,ut.jsxs)("a",{className:r(" select-none space-y-1 rounded-md px-2 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 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&(0,ut.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,ut.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,ut.jsxs)("div",{className:" ",children:[(0,ut.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,ut.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Es=td;var Je=require("react/jsx-runtime"),od=({data:e,alignDropdown:o})=>(0,Je.jsx)(qo,{alignDropdown:o,children:(0,Je.jsx)(Yo,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,Je.jsxs)(Zo,{className:"relative",children:[(0,Je.jsx)(Jo,{children:t.title}),(0,Je.jsx)(ea,{children:(0,Je.jsx)("ul",{className:r("grid w-[300px] grid-cols-1 p-2",t.dropDownCompact===!1&&"w-[230px]",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>(0,Je.jsx)(Es,{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,Je.jsx)(Zo,{className:"relative",children:(0,Je.jsx)(To,{href:t.url,className:Ko(),...a,children:t.title})},t.id)})})}),Hs=od;var re=require("react/jsx-runtime"),vr=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left"})=>{let{logo:m,name:c,url:f}=t||{},[p,g]=(0,Fs.useState)(!1);return(0,re.jsxs)("div",{className:r(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[(0,re.jsx)("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,re.jsx)("nav",{className:r("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0 "),style:{minHeight:"var(--header-height-mobase)"},children:(0,re.jsxs)("div",{className:"relative flex items-center ",children:[(0,re.jsxs)("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[(0,re.jsx)("span",{className:"sr-only",children:"MoMo home page"}),(0,re.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&(0,re.jsxs)("a",{href:f,title:c,className:" relative flex flex-none items-center space-x-1 rounded-none pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] hover:opacity-80 ",children:[(0,re.jsx)("img",{src:m,className:"h-9 w-9",alt:"MoMo"}),(0,re.jsx)("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&(0,_s.default)(c)})]}),(0,re.jsx)("div",{className:r("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!i&&!a&&" lg:ml-auto xl:ml-auto"),children:(0,re.jsx)(Hs,{data:o,alignDropdown:s})}),(0,re.jsxs)("div",{className:r("ml-auto flex flex-nowrap items-center space-x-3",!i&&!a&&" lg:ml-0"),children:[i&&i,a&&(0,re.jsxs)("div",{className:" hidden sm:flex",children:[(0,re.jsxs)(ke,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",(0,re.jsx)(zs.ArrowDownTrayIcon,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),(0,re.jsx)(Wt,{open:p,onOpenChange:()=>g(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),(0,re.jsx)(Ls,{data:o,className:"lg:hidden "})]})]})})]})};vr.displayName="HeaderNavigation";var Vs=require("react");var d=require("react/jsx-runtime"),Bs=({item:e})=>(0,d.jsx)("div",{className:"mt-3 flex w-full text-sm",children:(0,d.jsxs)("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&(0,d.jsx)("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:(0,d.jsx)("img",{src:e.icon,className:"absolute inset-0"})}),(0,d.jsx)("span",{className:"block ",children:e.title})]})}),ad=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=(0,Vs.useState)(null);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:(0,d.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,d.jsxs)("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[(0,d.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((i,n)=>(0,d.jsx)(Bs,{item:i},n))]}),(0,d.jsxs)("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[(0,d.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),(0,d.jsx)("div",{className:"flex flex-wrap",children:o?.lists?.map((i,n)=>(0,d.jsx)(Bs,{item:i},n))})]}),(0,d.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,d.jsxs)("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[(0,d.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,d.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),(0,d.jsx)("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:bn.Address})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${xe.Support.Hotline}`,children:xe.Support.Hotline_Format}),(0,d.jsxs)("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${xe.Support.Email}`,children:xe.Support.Email})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${xe.Support.Phone_Ext_1}`,children:xe.Support.Phone_Ext_1_Format}),(0,d.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${xe.Support.Phone_Ext_2}`,children:xe.Support.Phone_Ext_2_Format}),(0,d.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${xe.Support.Phone_Ext_3}`,children:xe.Support.Phone_Ext_3_Format}),(0,d.jsx)("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),(0,d.jsx)("div",{className:"mt-3 flex",children:(0,d.jsx)("a",{href:"https://www.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 block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",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-gray-100 ",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
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,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
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
128
- 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-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,d.jsx)("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),(0,d.jsxs)("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[(0,d.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,d.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${he.Business.Phome}`,children:he.Business.Phome_Format})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${he.Business.Email}`,children:he.Business.Email})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Website : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),(0,d.jsx)("div",{className:"mt-3 flex",children:(0,d.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,d.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[(0,d.jsx)("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:(0,d.jsxs)("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[(0,d.jsx)("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),(0,d.jsx)("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,d.jsx)("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),(0,d.jsxs)("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[(0,d.jsxs)("div",{className:"h-auto",children:[(0,d.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),(0,d.jsx)("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:(0,d.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Eo&&Eo.map((i,n)=>(0,d.jsx)("li",{className:"inline-block",children:(0,d.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:(0,d.jsx)("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),(0,d.jsxs)("div",{className:"h-auto",children:[(0,d.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[(0,d.jsx)("div",{className:"relative hidden h-24 w-24 grow-0 overflow-hidden rounded-sm bg-white md:block lg:h-20 lg:w-20",children:(0,d.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),(0,d.jsx)("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:ui&&ui.map((i,n)=>(0,d.jsxs)("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[(0,d.jsx)(ke,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),(0,d.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),(0,d.jsx)(Wt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),(0,d.jsx)("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:(0,d.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Eo&&Eo.map((i,n)=>(0,d.jsx)("li",{children:(0,d.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:(0,d.jsx)("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),(0,d.jsxs)("div",{className:"hidden h-auto md:block",children:[(0,d.jsx)("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),(0,d.jsxs)("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[(0,d.jsxs)("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),(0,d.jsx)("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:(0,d.jsx)("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),(0,d.jsx)("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:(0,d.jsxs)("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[(0,d.jsxs)("div",{className:" relative ",children:[(0,d.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:" absolute left-0 top-0 mt-0.5 block h-9 w-9",alt:"MoMo"}),(0,d.jsxs)("div",{className:" md:pl-12",children:[(0,d.jsx)("div",{className:"mb-1 h-10 pl-12 text-sm text-white text-opacity-80 md:h-auto md:pl-0 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),(0,d.jsx)("div",{className:"text-sm text-white text-opacity-50 lg:leading-normal",children:"Tr\u1EE5 s\u1EDF ch\xEDnh: T\u1EA7ng 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 \u0111\u01B0\u1EDDng Ho\xE0ng V\u0103n Th\xE1i, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),(0,d.jsxs)("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",(0,d.jsx)("strong",{children:"MoMo"})]}),(0,d.jsxs)("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),(0,d.jsxs)("div",{className:"text-sm text-white text-opacity-50",children:[(0,d.jsxs)("div",{children:["D\u1ECBch v\u1EE5 trung gian thanh to\xE1n do Ng\xE2n h\xE0ng Nh\xE0 n\u01B0\u1EDBc c\u1EA5p ph\xE9p \u0111\u01B0\u1EE3c cung \u1EE9ng th\xF4ng qua\xA0",(0,d.jsx)("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),(0,d.jsxs)("ul",{className:" mt-0.5 ",children:[(0,d.jsx)("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),(0,d.jsx)("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),(0,d.jsx)("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),(0,d.jsxs)("div",{className:" flex items-center justify-between md:hidden",children:[(0,d.jsxs)("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),(0,d.jsx)("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:(0,d.jsx)("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),(0,d.jsx)("style",{children:`
128
+ 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-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,d.jsx)("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),(0,d.jsxs)("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[(0,d.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,d.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${xe.Business.Phome}`,children:xe.Business.Phome_Format})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${xe.Business.Email}`,children:xe.Business.Email})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Website : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),(0,d.jsx)("div",{className:"mt-3 flex",children:(0,d.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,d.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[(0,d.jsx)("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:(0,d.jsxs)("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[(0,d.jsx)("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),(0,d.jsx)("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,d.jsx)("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),(0,d.jsxs)("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[(0,d.jsxs)("div",{className:"h-auto",children:[(0,d.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),(0,d.jsx)("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:(0,d.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Eo&&Eo.map((i,n)=>(0,d.jsx)("li",{className:"inline-block",children:(0,d.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:(0,d.jsx)("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),(0,d.jsxs)("div",{className:"h-auto",children:[(0,d.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[(0,d.jsx)("div",{className:"relative hidden h-24 w-24 grow-0 overflow-hidden rounded-sm bg-white md:block lg:h-20 lg:w-20",children:(0,d.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),(0,d.jsx)("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:vi&&vi.map((i,n)=>(0,d.jsxs)("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[(0,d.jsx)(ke,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),(0,d.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),(0,d.jsx)(Wt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),(0,d.jsx)("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:(0,d.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Eo&&Eo.map((i,n)=>(0,d.jsx)("li",{children:(0,d.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:(0,d.jsx)("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),(0,d.jsxs)("div",{className:"hidden h-auto md:block",children:[(0,d.jsx)("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),(0,d.jsxs)("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[(0,d.jsxs)("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),(0,d.jsx)("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:(0,d.jsx)("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),(0,d.jsx)("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:(0,d.jsxs)("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[(0,d.jsxs)("div",{className:" relative ",children:[(0,d.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:" absolute left-0 top-0 mt-0.5 block h-9 w-9",alt:"MoMo"}),(0,d.jsxs)("div",{className:" md:pl-12",children:[(0,d.jsx)("div",{className:"mb-1 h-10 pl-12 text-sm text-white text-opacity-80 md:h-auto md:pl-0 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),(0,d.jsx)("div",{className:"text-sm text-white text-opacity-50 lg:leading-normal",children:"Tr\u1EE5 s\u1EDF ch\xEDnh: T\u1EA7ng 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 \u0111\u01B0\u1EDDng Ho\xE0ng V\u0103n Th\xE1i, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),(0,d.jsxs)("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",(0,d.jsx)("strong",{children:"MoMo"})]}),(0,d.jsxs)("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),(0,d.jsxs)("div",{className:"text-sm text-white text-opacity-50",children:[(0,d.jsxs)("div",{children:["D\u1ECBch v\u1EE5 trung gian thanh to\xE1n do Ng\xE2n h\xE0ng Nh\xE0 n\u01B0\u1EDBc c\u1EA5p ph\xE9p \u0111\u01B0\u1EE3c cung \u1EE9ng th\xF4ng qua\xA0",(0,d.jsx)("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),(0,d.jsxs)("ul",{className:" mt-0.5 ",children:[(0,d.jsx)("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),(0,d.jsx)("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),(0,d.jsx)("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),(0,d.jsxs)("div",{className:" flex items-center justify-between md:hidden",children:[(0,d.jsxs)("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),(0,d.jsx)("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:(0,d.jsx)("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),(0,d.jsx)("style",{children:`
129
129
  footer .button-download {
130
130
  max-width: 150px;
131
131
  }
132
- `})]})},Vs=od;var vr=require("react/jsx-runtime"),Os=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,vr.jsx)("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,vr.jsx)(Vs,{primaryMenu:o,secondaryMenu:t})});var mo=u(require("react"),1);var co=require("react/jsx-runtime"),br=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));br.displayName="Card";var xr=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));xr.displayName="CardHeader";var hr=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));hr.displayName="CardTitle";var yr=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));yr.displayName="CardDescription";var wr=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("div",{ref:t,className:r("p-6 pt-0",e),...o}));wr.displayName="CardContent";var Nr=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));Nr.displayName="CardFooter";var Oe=u(require("react"),1),we=require("cmdk");var Xa=require("@heroicons/react/16/solid"),ve=require("react/jsx-runtime"),qa=Oe.forwardRef(({className:e,...o},t)=>(0,ve.jsx)(we.Command,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));qa.displayName=we.Command.displayName;var Ws=({children:e,...o})=>(0,ve.jsx)(at,{...o,children:(0,ve.jsx)(Qe,{className:"overflow-hidden p-0 shadow-lg",children:(0,ve.jsx)(qa,{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})})}),Pr=Oe.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=Oe.useRef(null),[s,m]=Oe.useState(""),c=()=>{!s||s?.length<=0||(m(""),o?.(s))};return(0,ve.jsxs)("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[(0,ve.jsx)(Xa.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,ve.jsx)(we.Command.Input,{ref:i,className:r("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",t),value:s,onValueChange:m,...a}),(0,ve.jsx)(Xa.XCircleIcon,{onClick:c,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Pr.displayName=we.Command.Input.displayName;var Cr=Oe.forwardRef(({className:e,...o},t)=>(0,ve.jsx)(we.Command.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Cr.displayName=we.Command.List.displayName;var Rr=Oe.forwardRef((e,o)=>(0,ve.jsx)(we.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Rr.displayName=we.Command.Empty.displayName;var Tr=Oe.forwardRef(({className:e,...o},t)=>(0,ve.jsx)(we.Command.Group,{ref:t,className:r("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),...o}));Tr.displayName=we.Command.Group.displayName;var kr=Oe.forwardRef(({className:e,...o},t)=>(0,ve.jsx)(we.Command.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));kr.displayName=we.Command.Separator.displayName;var Sr=Oe.forwardRef(({className:e,children:o,...t},a)=>(0,ve.jsx)(we.Command.Item,{ref:a,className:r("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",e),...t,children:o}));Sr.displayName=we.Command.Item.displayName;var Dr=({className:e,...o})=>(0,ve.jsx)("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Dr.displayName="CommandShortcut";var $s=require("@heroicons/react/16/solid");var Qt=require("react/jsx-runtime"),Gs=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>(0,Qt.jsxs)("div",{className:"relative",children:[(0,Qt.jsxs)(yo,{className:r("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||i,(0,Qt.jsx)($s.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&(0,Qt.jsx)("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),js=({children:e,className:o,...t})=>(0,Qt.jsx)(ao,{className:r("border-none !p-0",o),...t,children:e}),Us=({open:e,onOpenChange:o,children:t,...a})=>(0,Qt.jsx)(ho,{open:e,onOpenChange:o,...a,children:t});var Mr=require("class-variance-authority"),Qs=require("react");var Xs=require("@heroicons/react/24/outline");var po=require("react/jsx-runtime"),ad=(0,Mr.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"}}),id=(0,Mr.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"}}),ko=(0,Qs.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:m,...c},g)=>(0,po.jsxs)("div",{ref:g,className:r("",i,ad({typeDiv:e,disabled:n})),...c,children:[(0,po.jsxs)("div",{className:"flex items-center space-x-2",children:[m||(0,po.jsx)(Xs.InformationCircleIcon,{className:r(id({typeIcon:e,disabled:n})),width:20,height:20}),o&&(0,po.jsx)("div",{children:o})]}),t&&(0,po.jsx)(ue,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));var Xt=require("react"),qs=require("@heroicons/react/20/solid"),Ys=require("@heroicons/react/24/outline");var vt=require("react/jsx-runtime"),Zs=(0,Xt.forwardRef)(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:m,defaultValue:c,type:g="text",...p},f)=>{let[v,D]=(0,Xt.useState)(!1),E=(0,Xt.useRef)(null),O=U=>{U&&!v&&D(!0),!U&&v&&D(!1)},W=U=>{O(U.target.value),i?.(U)},oe=U=>{O(U.target.value),n?.(U)},ae=()=>{let U=E.current?.querySelector("input");U&&(s?.(U.value),U.value="",U.focus(),D(!1))};return(0,Xt.useEffect)(()=>{O(c||m)},[m,c]),(0,vt.jsxs)("div",{className:r(o),ref:E,children:[(0,vt.jsxs)("div",{className:"relative flex items-center",children:[(0,vt.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,vt.jsx)(qs.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,vt.jsx)("input",{disabled:e,type:g,ref:f,className:r("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",t),onChange:W,onFocus:oe,value:m,defaultValue:c,...p}),v&&(0,vt.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:ae,children:(0,vt.jsx)(Ys.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,vt.jsx)("style",{children:`
132
+ `})]})},Os=ad;var br=require("react/jsx-runtime"),Ws=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,br.jsx)("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,br.jsx)(Os,{primaryMenu:o,secondaryMenu:t})});var mo=u(require("react"),1);var co=require("react/jsx-runtime"),xr=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));xr.displayName="Card";var hr=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));hr.displayName="CardHeader";var yr=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));yr.displayName="CardTitle";var wr=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));wr.displayName="CardDescription";var Nr=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("div",{ref:t,className:r("p-6 pt-0",e),...o}));Nr.displayName="CardContent";var Pr=mo.forwardRef(({className:e,...o},t)=>(0,co.jsx)("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));Pr.displayName="CardFooter";var Oe=u(require("react"),1),ye=require("cmdk");var Xa=require("@heroicons/react/16/solid"),ve=require("react/jsx-runtime"),qa=Oe.forwardRef(({className:e,...o},t)=>(0,ve.jsx)(ye.Command,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));qa.displayName=ye.Command.displayName;var $s=({children:e,...o})=>(0,ve.jsx)(at,{...o,children:(0,ve.jsx)(Qe,{className:"overflow-hidden p-0 shadow-lg",children:(0,ve.jsx)(qa,{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})})}),Cr=Oe.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=Oe.useRef(null),[s,m]=Oe.useState(""),c=()=>{!s||s?.length<=0||(m(""),o?.(s))};return(0,ve.jsxs)("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[(0,ve.jsx)(Xa.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,ve.jsx)(ye.Command.Input,{ref:i,className:r("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",t),value:s,onValueChange:m,...a}),(0,ve.jsx)(Xa.XCircleIcon,{onClick:c,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Cr.displayName=ye.Command.Input.displayName;var Rr=Oe.forwardRef(({className:e,...o},t)=>(0,ve.jsx)(ye.Command.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Rr.displayName=ye.Command.List.displayName;var Tr=Oe.forwardRef((e,o)=>(0,ve.jsx)(ye.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Tr.displayName=ye.Command.Empty.displayName;var kr=Oe.forwardRef(({className:e,...o},t)=>(0,ve.jsx)(ye.Command.Group,{ref:t,className:r("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),...o}));kr.displayName=ye.Command.Group.displayName;var Sr=Oe.forwardRef(({className:e,...o},t)=>(0,ve.jsx)(ye.Command.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));Sr.displayName=ye.Command.Separator.displayName;var Dr=Oe.forwardRef(({className:e,children:o,...t},a)=>(0,ve.jsx)(ye.Command.Item,{ref:a,className:r("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",e),...t,children:o}));Dr.displayName=ye.Command.Item.displayName;var Mr=({className:e,...o})=>(0,ve.jsx)("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Mr.displayName="CommandShortcut";var Gs=require("@heroicons/react/16/solid");var Qt=require("react/jsx-runtime"),js=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>(0,Qt.jsxs)("div",{className:"relative",children:[(0,Qt.jsxs)(wo,{className:r("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||i,(0,Qt.jsx)(Gs.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&(0,Qt.jsx)("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Us=({children:e,className:o,...t})=>(0,Qt.jsx)(ao,{className:r("border-none !p-0",o),...t,children:e}),Qs=({open:e,onOpenChange:o,children:t,...a})=>(0,Qt.jsx)(yo,{open:e,onOpenChange:o,...a,children:t});var Ir=require("class-variance-authority"),Xs=require("react");var qs=require("@heroicons/react/24/outline");var po=require("react/jsx-runtime"),id=(0,Ir.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"}}),rd=(0,Ir.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"}}),So=(0,Xs.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:m,...c},f)=>(0,po.jsxs)("div",{ref:f,className:r("",i,id({typeDiv:e,disabled:n})),...c,children:[(0,po.jsxs)("div",{className:"flex items-center space-x-2",children:[m||(0,po.jsx)(qs.InformationCircleIcon,{className:r(rd({typeIcon:e,disabled:n})),width:20,height:20}),o&&(0,po.jsx)("div",{children:o})]}),t&&(0,po.jsx)(ue,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));var Xt=require("react"),Ys=require("@heroicons/react/20/solid"),Zs=require("@heroicons/react/24/outline");var vt=require("react/jsx-runtime"),Ks=(0,Xt.forwardRef)(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:m,defaultValue:c,type:f="text",...p},g)=>{let[v,R]=(0,Xt.useState)(!1),E=(0,Xt.useRef)(null),U=Y=>{Y&&!v&&R(!0),!Y&&v&&R(!1)},V=Y=>{U(Y.target.value),i?.(Y)},q=Y=>{U(Y.target.value),n?.(Y)},ae=()=>{let Y=E.current?.querySelector("input");Y&&(s?.(Y.value),Y.value="",Y.focus(),R(!1))};return(0,Xt.useEffect)(()=>{U(c||m)},[m,c]),(0,vt.jsxs)("div",{className:r(o),ref:E,children:[(0,vt.jsxs)("div",{className:"relative flex items-center",children:[(0,vt.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,vt.jsx)(Ys.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,vt.jsx)("input",{disabled:e,type:f,ref:g,className:r("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",t),onChange:V,onFocus:q,value:m,defaultValue:c,...p}),v&&(0,vt.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:ae,children:(0,vt.jsx)(Zs.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,vt.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 Ie=u(require("@radix-ui/react-dialog"),1),We=u(require("react"),1);var Ks=require("lucide-react"),Js=u(require("lodash"),1);var B=require("react/jsx-runtime"),el=We.default.createContext(void 0);function tl(){let e=(0,We.useContext)(el);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Ya=({children:e,open:o,onOpenChange:t,className:a})=>(0,B.jsx)(el.Provider,{value:{open:o,onOpenChange:t},children:(0,B.jsx)(Ie.Root,{open:o,onOpenChange:t,children:(0,B.jsx)("div",{className:r("lightbox-gallery",a),children:e})})}),ol=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:m}=tl(),c=()=>{n?.(),m&&m(!0)};return(0,B.jsxs)(Ie.Trigger,{className:r("",a),onClick:c,children:[e,(0,B.jsx)(ee,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,B.jsx)("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},al=We.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=tl(),n=()=>{i&&i(!1)};return(0,B.jsxs)(Ie.Portal,{children:[(0,B.jsx)(Ie.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,B.jsxs)(Ie.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,(0,B.jsxs)(Ie.Close,{onClick:n,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)(Ks.X,{className:"h-4 w-4 mt-0.5"}),(0,B.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});al.displayName=Ie.Content.displayName;var Za=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=(0,We.useState)(""),[m,c]=(0,We.useState)(),[g,p]=(0,We.useState)(0);(0,We.useEffect)(()=>{m&&(p(m.selectedScrollSnap()+1),m.on("select",()=>{p(m.selectedScrollSnap()+1)}))},[m]);let f=v=>{let D=Js.default.filter(e,(O,W)=>W===(v>0?v-1:v)),E=D.length>0?D[0]?.titleImage:"";s(E)};return(0,We.useEffect)(()=>{f(g)},[g]),(0,B.jsxs)(al,{className:"flex py-0",children:[(0,B.jsxs)("div",{className:" flex-1 relative",children:[(0,B.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[g||1," / ",e?.length]}),(0,B.jsxs)(Fe,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[(0,B.jsx)(ze,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((v,D)=>(0,B.jsx)(_e,{className:"pl-6 md:pl-4",children:(0,B.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,B.jsx)("div",{className:"flex-1 relative",children:(0,B.jsx)("img",{src:v.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,B.jsx)("div",{className:"flex-0",children:(0,B.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,B.jsx)("div",{className:"line-clamp-3",children:n})})})]})},D))}),(0,B.jsx)(to,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,B.jsx)(oo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&(0,B.jsx)("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};var qt=u(require("react"),1),il=require("@heroicons/react/16/solid"),oa=u(require("@radix-ui/react-checkbox"),1),Yt=u(require("@radix-ui/react-radio-group"),1),rl=require("lucide-react");var Re=require("react/jsx-runtime"),nl=qt.createContext({hideIndicator:!1});function rd(){let e=qt.useContext(nl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var aa=qt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,Re.jsx)(nl.Provider,{value:{hideIndicator:o},children:(0,Re.jsx)(Yt.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));aa.displayName=Yt.Root.displayName;var ia=qt.forwardRef(({className:e,children:o,...t},a)=>{let i=rd(),{hideIndicator:n}=i??{};return(0,Re.jsxs)(Yt.Item,{ref:a,className:r("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[(0,Re.jsx)("div",{className:"min-w-0 flex-1",children:o}),!n&&(0,Re.jsx)("div",{className:r("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:(0,Re.jsx)(Yt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:(0,Re.jsx)(rl.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});ia.displayName=Yt.Item.displayName;var Ir=qt.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>(0,Re.jsxs)(oa.Root,{ref:i,className:r("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[(0,Re.jsx)("div",{className:"min-w-0 flex-1",children:o}),!t&&(0,Re.jsx)("div",{className:"ring-offset-background h-4 w-4 shrink-0 rounded border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-300 group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:(0,Re.jsx)(oa.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Re.jsx)(il.CheckIcon,{className:"h-4 w-4"})})})]}));Ir.displayName=oa.Root.displayName;var sl=require("class-variance-authority");var ml=require("react/jsx-runtime"),Ar=(0,sl.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 ll({className:e,variant:o,...t}){return(0,ml.jsx)("div",{className:r(Ar({variant:o}),e),...t})}var cl=u(require("react"),1),ra=u(require("@radix-ui/react-progress"),1),Er=require("class-variance-authority");var Lr=require("react/jsx-runtime"),nd=(0,Er.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"}}),sd=(0,Er.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"}}),Hr=cl.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>(0,Lr.jsx)(ra.Root,{ref:s,className:r("",sd({size:a}),e),...n,children:(0,Lr.jsx)(ra.Indicator,{className:r("",nd({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Hr.displayName=ra.Root.displayName;var dl=require("react/jsx-runtime");function na({className:e,...o}){return(0,dl.jsx)("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}var Ae=require("react/jsx-runtime");function pl({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return(0,Ae.jsx)("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return(0,Ae.jsxs)("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((m,c)=>(0,Ae.jsx)("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),(0,Ae.jsx)("style",{children:`
139
+ `})]})});var Ie=u(require("@radix-ui/react-dialog"),1),We=u(require("react"),1);var Js=require("lucide-react"),el=u(require("lodash"),1);var B=require("react/jsx-runtime"),tl=We.default.createContext(void 0);function ol(){let e=(0,We.useContext)(tl);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Ya=({children:e,open:o,onOpenChange:t,className:a})=>(0,B.jsx)(tl.Provider,{value:{open:o,onOpenChange:t},children:(0,B.jsx)(Ie.Root,{open:o,onOpenChange:t,children:(0,B.jsx)("div",{className:r("lightbox-gallery",a),children:e})})}),al=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:m}=ol(),c=()=>{n?.(),m&&m(!0)};return(0,B.jsxs)(Ie.Trigger,{className:r("",a),onClick:c,children:[e,(0,B.jsx)(te,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,B.jsx)("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},il=We.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=ol(),n=()=>{i&&i(!1)};return(0,B.jsxs)(Ie.Portal,{children:[(0,B.jsx)(Ie.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,B.jsxs)(Ie.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,(0,B.jsxs)(Ie.Close,{onClick:n,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)(Js.X,{className:"h-4 w-4 mt-0.5"}),(0,B.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});il.displayName=Ie.Content.displayName;var Za=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=(0,We.useState)(""),[m,c]=(0,We.useState)(),[f,p]=(0,We.useState)(0);(0,We.useEffect)(()=>{m&&(p(m.selectedScrollSnap()+1),m.on("select",()=>{p(m.selectedScrollSnap()+1)}))},[m]);let g=v=>{let R=el.default.filter(e,(U,V)=>V===(v>0?v-1:v)),E=R.length>0?R[0]?.titleImage:"";s(E)};return(0,We.useEffect)(()=>{g(f)},[f]),(0,B.jsxs)(il,{className:"flex py-0",children:[(0,B.jsxs)("div",{className:" flex-1 relative",children:[(0,B.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[f||1," / ",e?.length]}),(0,B.jsxs)(Fe,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[(0,B.jsx)(ze,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((v,R)=>(0,B.jsx)(_e,{className:"pl-6 md:pl-4",children:(0,B.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,B.jsx)("div",{className:"flex-1 relative",children:(0,B.jsx)("img",{src:v.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,B.jsx)("div",{className:"flex-0",children:(0,B.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,B.jsx)("div",{className:"line-clamp-3",children:n})})})]})},R))}),(0,B.jsx)(to,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,B.jsx)(oo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&(0,B.jsx)("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};var qt=u(require("react"),1),rl=require("@heroicons/react/16/solid"),oa=u(require("@radix-ui/react-checkbox"),1),Yt=u(require("@radix-ui/react-radio-group"),1),nl=require("lucide-react");var Ce=require("react/jsx-runtime"),sl=qt.createContext({hideIndicator:!1});function nd(){let e=qt.useContext(sl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var aa=qt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,Ce.jsx)(sl.Provider,{value:{hideIndicator:o},children:(0,Ce.jsx)(Yt.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));aa.displayName=Yt.Root.displayName;var ia=qt.forwardRef(({className:e,children:o,...t},a)=>{let i=nd(),{hideIndicator:n}=i??{};return(0,Ce.jsxs)(Yt.Item,{ref:a,className:r("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[(0,Ce.jsx)("div",{className:"min-w-0 flex-1",children:o}),!n&&(0,Ce.jsx)("div",{className:r("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:(0,Ce.jsx)(Yt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:(0,Ce.jsx)(nl.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});ia.displayName=Yt.Item.displayName;var Ar=qt.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>(0,Ce.jsxs)(oa.Root,{ref:i,className:r("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[(0,Ce.jsx)("div",{className:"min-w-0 flex-1",children:o}),!t&&(0,Ce.jsx)("div",{className:"ring-offset-background h-4 w-4 shrink-0 rounded border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-300 group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:(0,Ce.jsx)(oa.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Ce.jsx)(rl.CheckIcon,{className:"h-4 w-4"})})})]}));Ar.displayName=oa.Root.displayName;var ll=require("class-variance-authority");var cl=require("react/jsx-runtime"),Lr=(0,ll.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 ml({className:e,variant:o,...t}){return(0,cl.jsx)("div",{className:r(Lr({variant:o}),e),...t})}var dl=u(require("react"),1),ra=u(require("@radix-ui/react-progress"),1),Hr=require("class-variance-authority");var Er=require("react/jsx-runtime"),sd=(0,Hr.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"}}),ld=(0,Hr.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"}}),Fr=dl.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>(0,Er.jsx)(ra.Root,{ref:s,className:r("",ld({size:a}),e),...n,children:(0,Er.jsx)(ra.Indicator,{className:r("",sd({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Fr.displayName=ra.Root.displayName;var pl=require("react/jsx-runtime");function na({className:e,...o}){return(0,pl.jsx)("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}var Ae=require("react/jsx-runtime");function fl({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return(0,Ae.jsx)("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return(0,Ae.jsxs)("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((m,c)=>(0,Ae.jsx)("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),(0,Ae.jsx)("style",{children:`
140
140
  .spinner_dots span {
141
141
  animation-name: spinner-dots;
142
142
  animation-duration: 1.4s;
@@ -243,7 +243,7 @@
243
243
  opacity: 0.15;
244
244
  }
245
245
  }
246
- `})]})}})()})}var fl=u(require("react"),1),bt=u(require("@radix-ui/react-slider"),1);var et=require("react/jsx-runtime"),Fr=fl.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>(0,et.jsxs)(bt.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,et.jsx)(bt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,et.jsx)(bt.Range,{className:"absolute h-full bg-pink-500"})}),(0,et.jsx)(bt.Thumb,{className:"group relative",children:(0,et.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&(0,et.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),(0,et.jsx)(bt.Thumb,{className:"group relative",children:(0,et.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&(0,et.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));Fr.displayName=bt.Root.displayName;var wl=require("react");var ne=require("react/jsx-runtime"),ld=({author:e=""})=>(0,ne.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),md=({author:e,avatar:o})=>(0,ne.jsx)("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?(0,ne.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,ne.jsx)(ld,{author:e})});function cd({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return(0,ne.jsx)(ne.Fragment,{children:(0,ne.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,ne.jsx)(md,{avatar:e,author:o}),(0,ne.jsxs)("div",{className:"flex flex-col",children:[o&&(0,ne.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,ne.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,ne.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,ne.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ne.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,ne.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&(0,ne.jsx)("div",{className:"absolute right-1 top-0",children:(0,ne.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var gl=cd;var _r=require("react");var ul=require("@heroicons/react/20/solid"),So=require("react/jsx-runtime"),dd={1:"K\xE9n ng\u01B0\u1EDDi m\xEA",2:"K\xE9n ng\u01B0\u1EDDi m\xEA",3:"Ch\u01B0a \u01B0ng l\u1EAFm",4:"Ch\u01B0a \u01B0ng l\u1EAFm",5:"T\u1EA1m \u1ED5n",6:"T\u1EA1m \u1ED5n",7:"\u0110\xE1ng xem",8:"\u0110\xE1ng xem",9:"C\u1EF1c ph\u1EA9m!",10:"C\u1EF1c ph\u1EA9m!"},pd={1:"Kh\xF4ng h\xE0i l\xF2ng",2:"Ch\u01B0a \u01B0ng l\u1EAFm",3:"T\u1EA1m \u1ED5n",4:"H\xE0i l\xF2ng",5:"R\u1EA5t h\xE0i l\xF2ng"};function fd({point:e,max:o,className:t}){let a=o>5?dd[e||10]:pd[e||5];return(0,So.jsxs)("div",{className:r("flex items-center space-x-1",t),children:[(0,So.jsx)(ul.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,So.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,So.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var vl=fd;var bl=require("react"),zr=u(require("html-react-parser"),1);var Ja=require("react/jsx-runtime"),Ka=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,m]=(0,bl.useState)(!0),c=()=>{m(!s)},g=(p,f,v=" ")=>p.length<=f?p:p.substring(0,p.lastIndexOf(v,f));return(0,Ja.jsxs)("div",{className:r(n),children:[s?(0,zr.default)(g(e,o)):(0,zr.default)(e),e.length>o&&(0,Ja.jsx)("span",{onClick:c,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};var tt=require("react/jsx-runtime");function gd({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,m]=(0,_r.useState)(0),[c,g]=(0,_r.useState)(!1),p=f=>{g(!0),m(f)};return(0,tt.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&(0,tt.jsx)(vl,{className:"mb-0.5",point:i.point,max:i.max}),e&&(0,tt.jsx)(Ka,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,tt.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(f=>(0,tt.jsx)("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:f}))}),o?.length>0&&(0,tt.jsxs)(Ya,{open:c,onOpenChange:g,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((f,v)=>(0,tt.jsx)(ee,{onClick:()=>p(v),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,tt.jsx)("img",{src:f.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},v)),(0,tt.jsx)(Za,{activeSlideIndex:s,images:o?.map((f,v)=>({url:f.url,titleImage:f.titleImage,idx:v})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var xl=gd;var yl=require("react/jsx-runtime");function ud({actions:e=[]}){return(0,yl.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var hl=ud;var fo=require("react/jsx-runtime"),Nl=(0,wl.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:m=[],statusMessage:c,isReply:g,children:p,commentSideBar:f,isOutStanding:v,limitContent:D=260},E)=>(0,fo.jsxs)("div",{ref:E,className:r("",g?"ml-4 py-4":"py-5"),children:[(0,fo.jsx)(gl,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:v}),(0,fo.jsx)(xl,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:f,limitContent:D}),m&&m?.filter(Boolean)?.length>0&&(0,fo.jsx)(hl,{actions:m.filter(Boolean)}),p&&(0,fo.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:p})]}));var Zt=u(require("react"),1),Pl=require("class-variance-authority");var Cl=require("@heroicons/react/16/solid"),Rl=require("lucide-react"),se=require("react/jsx-runtime"),vd=(0,Pl.cva)("flex items-center shrink-0 justify-center rounded-full shrink-0",{variants:{state:{active:"bg-pink-500 text-white shadow-[0_0px_0px_3px_rgb(255,255,255),0_0px_0px_4px_rgb(var(--mobase-pink-500))]",disabled:"bg-gray-400 text-gray-200",default:"text-gray-500 bg-white shadow-[inset_0px_0px_0px_1px_rgb(var(--mobase-gray-300))]",completed:"bg-pink-300 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),Tl=Zt.createContext("default");function bd(){let e=Zt.useContext(Tl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var xd=Zt.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?(0,se.jsx)(Rl.XIcon,{className:s}):(0,se.jsxs)("div",{children:[e==="iconStep"&&(0,se.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,se.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,se.jsx)(Cl.CheckIcon,{className:s}):(0,se.jsx)("div",{children:t}))]})}),kl=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Zt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,se.jsx)("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Sl=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:m,fristStep:c,icon:g,isError:p,onValueChangeStep:f,...v})=>{let D=bd();return(0,se.jsxs)("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[(0,se.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,se.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),(0,se.jsx)("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",vd({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",i),...v,children:(0,se.jsx)(xd,{type:D,icon:g,stepNumber:e,size:t,isError:p,state:o})}),(0,se.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,se.jsxs)("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&(0,se.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,se.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Dl=({children:e,className:o,type:t="numberStep",...a})=>(0,se.jsx)(Tl.Provider,{value:t,children:(0,se.jsx)("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});var Te=u(require("react"),1),Ll=require("@radix-ui/react-slot"),Do=require("react-hook-form");var Ml=u(require("react"),1),Br=u(require("@radix-ui/react-label"),1),Il=require("class-variance-authority");var Al=require("react/jsx-runtime"),hd=(0,Il.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ei=Ml.forwardRef(({className:e,...o},t)=>(0,Al.jsx)(Br.Root,{ref:t,className:r(hd(),e),...o}));ei.displayName=Br.Root.displayName;var At=require("react/jsx-runtime"),El=Do.FormProvider,Hl=Te.createContext({}),Fl=({...e})=>(0,At.jsx)(Hl.Provider,{value:{name:e.name},children:(0,At.jsx)(Do.Controller,{...e})}),Mo=()=>{let e=Te.useContext(Hl),o=Te.useContext(zl),{getFieldState:t,formState:a}=(0,Do.useFormContext)(),i=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},zl=Te.createContext({}),Vr=Te.forwardRef(({className:e,...o},t)=>{let a=Te.useId();return(0,At.jsx)(zl.Provider,{value:{id:a},children:(0,At.jsx)("div",{ref:t,className:r("space-y-2",e),...o})})});Vr.displayName="FormItem";var Or=Te.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=Mo();return(0,At.jsx)(ei,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});Or.displayName="FormLabel";var Wr=Te.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=Mo();return(0,At.jsx)(Ll.Slot,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});Wr.displayName="FormControl";var $r=Te.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=Mo();return(0,At.jsx)("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});$r.displayName="FormDescription";var Gr=Te.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=Mo(),s=i?String(i?.message):o;return s?(0,At.jsx)("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});Gr.displayName="FormMessage";var Lt=u(require("react"),1),N=u(require("@radix-ui/react-dropdown-menu"),1),ti=require("lucide-react");var K=require("react/jsx-runtime"),_l=N.Root,Bl=N.Trigger,Vl=N.Group,Ol=N.Portal,Wl=N.Sub,$l=N.RadioGroup,jr=Lt.forwardRef(({className:e,inset:o,children:t,...a},i)=>(0,K.jsxs)(N.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,(0,K.jsx)(ti.ChevronRight,{className:"ml-auto"})]}));jr.displayName=N.SubTrigger.displayName;var Ur=Lt.forwardRef(({className:e,...o},t)=>(0,K.jsx)(N.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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 ring-0",e),...o}));Ur.displayName=N.SubContent.displayName;var Qr=Lt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,K.jsx)(N.Portal,{children:(0,K.jsx)(N.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small 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),...t})}));Qr.displayName=N.Content.displayName;var Xr=Lt.forwardRef(({className:e,inset:o,...t},a)=>(0,K.jsx)(N.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));Xr.displayName=N.Item.displayName;var qr=Lt.forwardRef(({className:e,children:o,checked:t,...a},i)=>(0,K.jsxs)(N.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[(0,K.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,K.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,K.jsx)(N.ItemIndicator,{children:(0,K.jsx)("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:(0,K.jsx)(ti.Check,{size:16,strokeWidth:3})})})]}),o]}));qr.displayName=N.CheckboxItem.displayName;var Yr=Lt.forwardRef(({className:e,children:o,...t},a)=>(0,K.jsxs)(N.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[(0,K.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,K.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,K.jsx)(N.ItemIndicator,{children:(0,K.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));Yr.displayName=N.RadioItem.displayName;var Zr=Lt.forwardRef(({className:e,inset:o,...t},a)=>(0,K.jsx)(N.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Zr.displayName=N.Label.displayName;var Kr=Lt.forwardRef(({className:e,...o},t)=>(0,K.jsx)(N.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));Kr.displayName=N.Separator.displayName;var Jr=({className:e,...o})=>(0,K.jsx)("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});Jr.displayName="DropdownMenuShortcut";var sa=u(require("html-react-parser"),1);var I=require("react/jsx-runtime"),Gl=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,I.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>(0,I.jsx)("div",{className:"basis-full px-3.5 md:basis-1/3",children:(0,I.jsxs)("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[(0,I.jsx)("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),(0,I.jsxs)("div",{className:"mt-6 w-full",children:[(0,I.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,sa.default)(a.title)}),a?.description&&(0,I.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,sa.default)(a.description)})]})]})},i))}),t&&(0,I.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),yd=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,I.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>(0,I.jsxs)("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[(0,I.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,I.jsx)("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&(0,I.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,I.jsx)(ee,{ratio:1,children:(0,I.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,I.jsxs)("div",{className:"mt-6 w-full",children:[(0,I.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,sa.default)(a.title)}),a?.description&&(0,I.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,sa.default)(a.description)})]})]},i))}),t&&(0,I.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),wd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,I.jsx)(Gl,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,I.jsx)(yd,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,I.jsx)(Gl,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Nd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,I.jsx)(I.Fragment,{children:wd({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),jl=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>(0,I.jsx)(Y,{className:t,idSection:a,background:o,children:(0,I.jsx)(Nd,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});var Ul=require("class-variance-authority"),en=u(require("html-react-parser"),1),tn=require("lucide-react");var q=require("react/jsx-runtime"),Pd=(0,Ul.cva)("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-1 gap-y-3 ",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),Cd=({template:e,name:o,image:t,isFeatures:a})=>(0,q.jsx)(q.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?(0,q.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,q.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,q.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:(0,q.jsx)(tn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,q.jsx)("div",{className:"ml-2 leading-tight",children:(0,en.default)(o)})]})});case 3:return(0,q.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,q.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,q.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,q.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:(0,q.jsx)(tn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,q.jsx)("div",{className:"my-auto ml-2 leading-tight md:my-0",children:(0,en.default)(o)})]});default:return null}})()}),oi=({dataFeatures:e,template:o=1})=>(0,q.jsx)(q.Fragment,{children:(e?.length??0)>0&&(0,q.jsx)("ul",{className:r("",Pd({template:o})),children:e?.map((t,a)=>(0,q.jsx)(Cd,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var Ql=require("lucide-react");var V=require("react/jsx-runtime"),Xl=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,Rd=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>(0,V.jsxs)(da,{children:[(0,V.jsx)(go,{greaterThan:"sm",children:(0,V.jsxs)(ee,{className:r(""),ratio:Xl(o),children:[(0,V.jsx)("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,V.jsxs)(at,{children:[(0,V.jsx)(pa,{onClick:i,children:(0,V.jsx)("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:(0,V.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,V.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,V.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,V.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,V.jsx)(Qe,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:(0,V.jsxs)(Nt,{className:"relative bg-transparent p-4 text-center",children:[(0,V.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,V.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?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:"h-full w-full"})}),(0,V.jsx)(fa,{asChild:!0,children:(0,V.jsx)(me,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,V.jsx)(Ql.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,V.jsx)(go,{lessThan:"md",children:(0,V.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,V.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?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:"h-full w-full object-cover md:hidden"})})})]}),ai=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>(0,V.jsx)("div",{className:a,children:n?(0,V.jsx)(Rd,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,V.jsx)(ee,{ratio:Xl(t),children:(0,V.jsx)("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});var ql=u(require("html-react-parser"),1);var ot=require("react/jsx-runtime"),Td=({value:e,suffix:o,unit:t,description:a,idx:i})=>(0,ot.jsxs)("div",{className:r(""),children:[e&&(0,ot.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,ot.jsxs)("span",{children:[o," ",t]})]}),a&&(0,ot.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,ql.default)(a)})]}),ii=({dataStats:e})=>(0,ot.jsx)(ot.Fragment,{children:(e?.length??0)>0&&(0,ot.jsx)("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>(0,ot.jsx)(Td,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var F=require("react/jsx-runtime"),on=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,F.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,F.jsxs)("div",{className:"col-span-1 ",children:[(0,F.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),(0,F.jsx)(oi,{dataFeatures:t,template:a}),o&&(0,F.jsx)(R,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,F.jsx)(ii,{dataStats:i})]}),(0,F.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,F.jsx)(ai,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Yl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,F.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,F.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,F.jsx)(ai,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,F.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,F.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),(0,F.jsx)(oi,{dataFeatures:t,template:a}),o&&(0,F.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,F.jsx)(R,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,F.jsx)(ii,{dataStats:i})]})]}),Zl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&(0,F.jsx)(R,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),(0,F.jsx)(oi,{dataFeatures:t,template:a}),(0,F.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,F.jsx)(ii,{dataStats:i})}),s||(0,F.jsx)(F.Fragment,{children:n?.src&&(0,F.jsx)(ai,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var xt=require("react/jsx-runtime"),kd=`var(
246
+ `})]})}})()})}var gl=u(require("react"),1),bt=u(require("@radix-ui/react-slider"),1);var et=require("react/jsx-runtime"),zr=gl.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>(0,et.jsxs)(bt.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,et.jsx)(bt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,et.jsx)(bt.Range,{className:"absolute h-full bg-pink-500"})}),(0,et.jsx)(bt.Thumb,{className:"group relative",children:(0,et.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&(0,et.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),(0,et.jsx)(bt.Thumb,{className:"group relative",children:(0,et.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&(0,et.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));zr.displayName=bt.Root.displayName;var Nl=require("react");var ne=require("react/jsx-runtime"),md=({author:e=""})=>(0,ne.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),cd=({author:e,avatar:o})=>(0,ne.jsx)("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?(0,ne.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,ne.jsx)(md,{author:e})});function dd({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return(0,ne.jsx)(ne.Fragment,{children:(0,ne.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,ne.jsx)(cd,{avatar:e,author:o}),(0,ne.jsxs)("div",{className:"flex flex-col",children:[o&&(0,ne.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,ne.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,ne.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,ne.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ne.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,ne.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&(0,ne.jsx)("div",{className:"absolute right-1 top-0",children:(0,ne.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var ul=dd;var Br=require("react");var vl=require("@heroicons/react/20/solid"),Do=require("react/jsx-runtime"),pd={1:"K\xE9n ng\u01B0\u1EDDi m\xEA",2:"K\xE9n ng\u01B0\u1EDDi m\xEA",3:"Ch\u01B0a \u01B0ng l\u1EAFm",4:"Ch\u01B0a \u01B0ng l\u1EAFm",5:"T\u1EA1m \u1ED5n",6:"T\u1EA1m \u1ED5n",7:"\u0110\xE1ng xem",8:"\u0110\xE1ng xem",9:"C\u1EF1c ph\u1EA9m!",10:"C\u1EF1c ph\u1EA9m!"},fd={1:"Kh\xF4ng h\xE0i l\xF2ng",2:"Ch\u01B0a \u01B0ng l\u1EAFm",3:"T\u1EA1m \u1ED5n",4:"H\xE0i l\xF2ng",5:"R\u1EA5t h\xE0i l\xF2ng"};function gd({point:e,max:o,className:t}){let a=o>5?pd[e||10]:fd[e||5];return(0,Do.jsxs)("div",{className:r("flex items-center space-x-1",t),children:[(0,Do.jsx)(vl.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,Do.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,Do.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var bl=gd;var xl=require("react"),_r=u(require("html-react-parser"),1);var Ja=require("react/jsx-runtime"),Ka=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,m]=(0,xl.useState)(!0),c=()=>{m(!s)},f=(p,g,v=" ")=>p.length<=g?p:p.substring(0,p.lastIndexOf(v,g));return(0,Ja.jsxs)("div",{className:r(n),children:[s?(0,_r.default)(f(e,o)):(0,_r.default)(e),e.length>o&&(0,Ja.jsx)("span",{onClick:c,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};var tt=require("react/jsx-runtime");function ud({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,m]=(0,Br.useState)(0),[c,f]=(0,Br.useState)(!1),p=g=>{f(!0),m(g)};return(0,tt.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&(0,tt.jsx)(bl,{className:"mb-0.5",point:i.point,max:i.max}),e&&(0,tt.jsx)(Ka,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,tt.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>(0,tt.jsx)("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:g}))}),o?.length>0&&(0,tt.jsxs)(Ya,{open:c,onOpenChange:f,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((g,v)=>(0,tt.jsx)(te,{onClick:()=>p(v),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,tt.jsx)("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},v)),(0,tt.jsx)(Za,{activeSlideIndex:s,images:o?.map((g,v)=>({url:g.url,titleImage:g.titleImage,idx:v})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var hl=ud;var wl=require("react/jsx-runtime");function vd({actions:e=[]}){return(0,wl.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var yl=vd;var fo=require("react/jsx-runtime"),Pl=(0,Nl.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:m=[],statusMessage:c,isReply:f,children:p,commentSideBar:g,isOutStanding:v,limitContent:R=260},E)=>(0,fo.jsxs)("div",{ref:E,className:r("",f?"ml-4 py-4":"py-5"),children:[(0,fo.jsx)(ul,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:v}),(0,fo.jsx)(hl,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:R}),m&&m?.filter(Boolean)?.length>0&&(0,fo.jsx)(yl,{actions:m.filter(Boolean)}),p&&(0,fo.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:p})]}));var Zt=u(require("react"),1),Cl=require("class-variance-authority");var Rl=require("@heroicons/react/16/solid"),Tl=require("lucide-react"),se=require("react/jsx-runtime"),bd=(0,Cl.cva)("flex items-center shrink-0 justify-center rounded-full shrink-0",{variants:{state:{active:"bg-pink-500 text-white shadow-[0_0px_0px_3px_rgb(255,255,255),0_0px_0px_4px_rgb(var(--mobase-pink-500))]",disabled:"bg-gray-400 text-gray-200",default:"text-gray-500 bg-white shadow-[inset_0px_0px_0px_1px_rgb(var(--mobase-gray-300))]",completed:"bg-pink-300 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),kl=Zt.createContext("default");function xd(){let e=Zt.useContext(kl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var hd=Zt.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?(0,se.jsx)(Tl.XIcon,{className:s}):(0,se.jsxs)("div",{children:[e==="iconStep"&&(0,se.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,se.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,se.jsx)(Rl.CheckIcon,{className:s}):(0,se.jsx)("div",{children:t}))]})}),Sl=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Zt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,se.jsx)("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Dl=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:m,fristStep:c,icon:f,isError:p,onValueChangeStep:g,...v})=>{let R=xd();return(0,se.jsxs)("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[(0,se.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,se.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),(0,se.jsx)("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",bd({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",i),...v,children:(0,se.jsx)(hd,{type:R,icon:f,stepNumber:e,size:t,isError:p,state:o})}),(0,se.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,se.jsxs)("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&(0,se.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,se.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Ml=({children:e,className:o,type:t="numberStep",...a})=>(0,se.jsx)(kl.Provider,{value:t,children:(0,se.jsx)("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});var Re=u(require("react"),1),El=require("@radix-ui/react-slot"),Mo=require("react-hook-form");var Il=u(require("react"),1),Vr=u(require("@radix-ui/react-label"),1),Al=require("class-variance-authority");var Ll=require("react/jsx-runtime"),yd=(0,Al.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ei=Il.forwardRef(({className:e,...o},t)=>(0,Ll.jsx)(Vr.Root,{ref:t,className:r(yd(),e),...o}));ei.displayName=Vr.Root.displayName;var At=require("react/jsx-runtime"),Hl=Mo.FormProvider,Fl=Re.createContext({}),zl=({...e})=>(0,At.jsx)(Fl.Provider,{value:{name:e.name},children:(0,At.jsx)(Mo.Controller,{...e})}),Io=()=>{let e=Re.useContext(Fl),o=Re.useContext(_l),{getFieldState:t,formState:a}=(0,Mo.useFormContext)(),i=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},_l=Re.createContext({}),Or=Re.forwardRef(({className:e,...o},t)=>{let a=Re.useId();return(0,At.jsx)(_l.Provider,{value:{id:a},children:(0,At.jsx)("div",{ref:t,className:r("space-y-2",e),...o})})});Or.displayName="FormItem";var Wr=Re.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=Io();return(0,At.jsx)(ei,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});Wr.displayName="FormLabel";var $r=Re.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=Io();return(0,At.jsx)(El.Slot,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});$r.displayName="FormControl";var Gr=Re.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=Io();return(0,At.jsx)("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});Gr.displayName="FormDescription";var jr=Re.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=Io(),s=i?String(i?.message):o;return s?(0,At.jsx)("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});jr.displayName="FormMessage";var Lt=u(require("react"),1),N=u(require("@radix-ui/react-dropdown-menu"),1),ti=require("lucide-react");var J=require("react/jsx-runtime"),Bl=N.Root,Vl=N.Trigger,Ol=N.Group,Wl=N.Portal,$l=N.Sub,Gl=N.RadioGroup,Ur=Lt.forwardRef(({className:e,inset:o,children:t,...a},i)=>(0,J.jsxs)(N.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,(0,J.jsx)(ti.ChevronRight,{className:"ml-auto"})]}));Ur.displayName=N.SubTrigger.displayName;var Qr=Lt.forwardRef(({className:e,...o},t)=>(0,J.jsx)(N.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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 ring-0",e),...o}));Qr.displayName=N.SubContent.displayName;var Xr=Lt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,J.jsx)(N.Portal,{children:(0,J.jsx)(N.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small 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),...t})}));Xr.displayName=N.Content.displayName;var qr=Lt.forwardRef(({className:e,inset:o,...t},a)=>(0,J.jsx)(N.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));qr.displayName=N.Item.displayName;var Yr=Lt.forwardRef(({className:e,children:o,checked:t,...a},i)=>(0,J.jsxs)(N.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[(0,J.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,J.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,J.jsx)(N.ItemIndicator,{children:(0,J.jsx)("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:(0,J.jsx)(ti.Check,{size:16,strokeWidth:3})})})]}),o]}));Yr.displayName=N.CheckboxItem.displayName;var Zr=Lt.forwardRef(({className:e,children:o,...t},a)=>(0,J.jsxs)(N.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[(0,J.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,J.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,J.jsx)(N.ItemIndicator,{children:(0,J.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));Zr.displayName=N.RadioItem.displayName;var Kr=Lt.forwardRef(({className:e,inset:o,...t},a)=>(0,J.jsx)(N.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Kr.displayName=N.Label.displayName;var Jr=Lt.forwardRef(({className:e,...o},t)=>(0,J.jsx)(N.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));Jr.displayName=N.Separator.displayName;var en=({className:e,...o})=>(0,J.jsx)("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});en.displayName="DropdownMenuShortcut";var sa=u(require("html-react-parser"),1);var I=require("react/jsx-runtime"),jl=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,I.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>(0,I.jsx)("div",{className:"basis-full px-3.5 md:basis-1/3",children:(0,I.jsxs)("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[(0,I.jsx)("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),(0,I.jsxs)("div",{className:"mt-6 w-full",children:[(0,I.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,sa.default)(a.title)}),a?.description&&(0,I.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,sa.default)(a.description)})]})]})},i))}),t&&(0,I.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),wd=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,I.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>(0,I.jsxs)("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[(0,I.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,I.jsx)("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&(0,I.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,I.jsx)(te,{ratio:1,children:(0,I.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,I.jsxs)("div",{className:"mt-6 w-full",children:[(0,I.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,sa.default)(a.title)}),a?.description&&(0,I.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,sa.default)(a.description)})]})]},i))}),t&&(0,I.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Nd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,I.jsx)(jl,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,I.jsx)(wd,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,I.jsx)(jl,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Pd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,I.jsx)(I.Fragment,{children:Nd({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Ul=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>(0,I.jsx)(Z,{className:t,idSection:a,background:o,children:(0,I.jsx)(Pd,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});var Ql=require("class-variance-authority"),tn=u(require("html-react-parser"),1),on=require("lucide-react");var X=require("react/jsx-runtime"),Cd=(0,Ql.cva)("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-1 gap-y-3 ",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),Rd=({template:e,name:o,image:t,isFeatures:a})=>(0,X.jsx)(X.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,X.jsx)(X.Fragment,{children:(0,X.jsxs)("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?(0,X.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,X.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,X.jsx)("div",{className:"mt-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-pink-100",children:(0,X.jsx)(on.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,X.jsx)("div",{className:"ml-2 ",children:(0,tn.default)(o)})]})});case 3:return(0,X.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,X.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,X.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,X.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:(0,X.jsx)(on.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,X.jsx)("div",{className:"my-auto ml-2 md:my-0",children:(0,tn.default)(o)})]});default:return null}})()}),oi=({dataFeatures:e,template:o=1})=>(0,X.jsx)(X.Fragment,{children:(e?.length??0)>0&&(0,X.jsx)("ul",{className:r("",Cd({template:o})),children:e?.map((t,a)=>(0,X.jsx)(Rd,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var Xl=require("lucide-react");var O=require("react/jsx-runtime"),ql=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,Td=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>(0,O.jsxs)(da,{children:[(0,O.jsx)(uo,{greaterThan:"sm",children:(0,O.jsxs)(te,{className:r(""),ratio:ql(o),children:[(0,O.jsx)("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,O.jsxs)(at,{children:[(0,O.jsx)(pa,{onClick:i,children:(0,O.jsx)("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:(0,O.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,O.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,O.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,O.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,O.jsx)(Qe,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:(0,O.jsxs)(Nt,{className:"relative bg-transparent p-4 text-center",children:[(0,O.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,O.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?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:"h-full w-full"})}),(0,O.jsx)(fa,{asChild:!0,children:(0,O.jsx)(me,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,O.jsx)(Xl.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,O.jsx)(uo,{lessThan:"md",children:(0,O.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,O.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?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:"h-full w-full object-cover md:hidden"})})})]}),ai=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>(0,O.jsx)("div",{className:a,children:n?(0,O.jsx)(Td,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,O.jsx)(te,{ratio:ql(t),children:(0,O.jsx)("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});var Yl=u(require("html-react-parser"),1);var ot=require("react/jsx-runtime"),kd=({value:e,suffix:o,unit:t,description:a,idx:i})=>(0,ot.jsxs)("div",{className:r(""),children:[e&&(0,ot.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,ot.jsxs)("span",{children:[o," ",t]})]}),a&&(0,ot.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,Yl.default)(a)})]}),ii=({dataStats:e})=>(0,ot.jsx)(ot.Fragment,{children:(e?.length??0)>0&&(0,ot.jsx)("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>(0,ot.jsx)(kd,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var F=require("react/jsx-runtime"),an=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,F.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,F.jsxs)("div",{className:"col-span-1 ",children:[(0,F.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),(0,F.jsx)(oi,{dataFeatures:t,template:a}),o&&(0,F.jsx)(T,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,F.jsx)(ii,{dataStats:i})]}),(0,F.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,F.jsx)(ai,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Zl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,F.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,F.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,F.jsx)(ai,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,F.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,F.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),(0,F.jsx)(oi,{dataFeatures:t,template:a}),o&&(0,F.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,F.jsx)(T,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,F.jsx)(ii,{dataStats:i})]})]}),Kl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&(0,F.jsx)(T,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),(0,F.jsx)(oi,{dataFeatures:t,template:a}),(0,F.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,F.jsx)(ii,{dataStats:i})}),s||(0,F.jsx)(F.Fragment,{children:n?.src&&(0,F.jsx)(ai,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var xt=require("react/jsx-runtime"),Sd=`var(
247
247
  --gradient-pink-1,
248
248
  linear-gradient(
249
249
  38deg,
@@ -265,11 +265,11 @@
265
265
  rgba(255, 255, 255, 0) 80%
266
266
  ),
267
267
  #fff
268
- )`,Sd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,xt.jsx)(on,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return(0,xt.jsx)(Yl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return(0,xt.jsx)(Zl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return(0,xt.jsx)(on,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},Dd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,xt.jsx)(xt.Fragment,{children:Sd({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),Kl=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:m,background:c,advancedComponent:g=null})=>(0,xt.jsx)(Y,{className:r(m),background:c??kd,idSection:o,children:(0,xt.jsx)(Dd,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:g})});var A=require("react/jsx-runtime"),Jl=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return(0,A.jsxs)(A.Fragment,{children:[e&&(0,A.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,m)=>(0,A.jsx)("div",{className:r("flex items-center justify-center md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:(0,A.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?(0,A.jsx)("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:(0,A.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):(0,A.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},m))}),t&&(0,A.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Md=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>(0,A.jsxs)(A.Fragment,{children:[e&&(0,A.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:r("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((i,n)=>(0,A.jsx)("div",{className:r("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:i?.url?(0,A.jsx)("a",{href:i?.url,title:i?.name,target:i?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:(0,A.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,A.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):(0,A.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:(0,A.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,A.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&(0,A.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Id=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return(0,A.jsx)(Jl,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return(0,A.jsx)(Md,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return(0,A.jsx)(Jl,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},Ad=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>(0,A.jsx)(A.Fragment,{children:Id({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),em=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m="20px",isScrollSnap:c})=>(0,A.jsx)(Y,{className:t,idSection:a,background:o,children:(0,A.jsx)(Ad,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m,isScrollSnap:c})});var tm=require("@heroicons/react/16/solid"),te=u(require("html-react-parser"),1);var l=require("react/jsx-runtime"),Et=({btnLink:e,btnName:o,newTab:t})=>(0,l.jsx)(ue,{variant:"primary",asChild:!0,children:(0,l.jsxs)("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",(0,l.jsx)(tm.ChevronRightIcon,{className:"h-4 w-4"})]})}),an=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col text-center",children:[(0,l.jsx)("div",{className:"mx-auto h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,te.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,te.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),om=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,te.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,te.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,l.jsx)("style",{children:`
268
+ )`,Dd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,xt.jsx)(an,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return(0,xt.jsx)(Zl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return(0,xt.jsx)(Kl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return(0,xt.jsx)(an,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},Md=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,xt.jsx)(xt.Fragment,{children:Dd({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),Jl=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:m,background:c,advancedComponent:f=null})=>(0,xt.jsx)(Z,{className:r(m),background:c??Sd,idSection:o,children:(0,xt.jsx)(Md,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:f})});var A=require("react/jsx-runtime"),em=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return(0,A.jsxs)(A.Fragment,{children:[e&&(0,A.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,m)=>(0,A.jsx)("div",{className:r("flex items-center justify-center md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:(0,A.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?(0,A.jsx)("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:(0,A.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):(0,A.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},m))}),t&&(0,A.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Id=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>(0,A.jsxs)(A.Fragment,{children:[e&&(0,A.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:r("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((i,n)=>(0,A.jsx)("div",{className:r("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:i?.url?(0,A.jsx)("a",{href:i?.url,title:i?.name,target:i?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:(0,A.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,A.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):(0,A.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:(0,A.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,A.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&(0,A.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ad=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return(0,A.jsx)(em,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return(0,A.jsx)(Id,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return(0,A.jsx)(em,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},Ld=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>(0,A.jsx)(A.Fragment,{children:Ad({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),tm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m="20px",isScrollSnap:c})=>(0,A.jsx)(Z,{className:t,idSection:a,background:o,children:(0,A.jsx)(Ld,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m,isScrollSnap:c})});var om=require("@heroicons/react/16/solid"),oe=u(require("html-react-parser"),1);var l=require("react/jsx-runtime"),Et=({btnLink:e,btnName:o,newTab:t})=>(0,l.jsx)(ue,{variant:"primary",asChild:!0,children:(0,l.jsxs)("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",(0,l.jsx)(om.ChevronRightIcon,{className:"h-4 w-4"})]})}),rn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&(0,l.jsx)("div",{className:"mx-auto h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),am=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,l.jsx)("style",{children:`
269
269
  .list-features-2 .feature-item {
270
270
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
271
271
  }
272
- `})]}),am=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 w-full flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,te.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,te.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),im=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[(0,l.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&(0,l.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,l.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,te.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,te.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),rm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,te.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,te.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),nm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full",children:[(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,te.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,te.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),sm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},m=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,c=n[a]??-1,g=(p,f)=>{let v=p?.btnLink?"a":"div",D=p?.btnLink?{href:p.btnLink,target:p?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:p?.btnName}:{};return(0,l.jsx)("div",{className:r("basis-1/2 px-2 lg:px-5",m,f===c&&"md:break-after-row",p?.btnLink&&"group cursor-pointer"),children:(0,l.jsxs)(v,{...D,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[(0,l.jsx)("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:(0,l.jsx)("img",{src:p?.image,alt:p?.name,className:"h-full w-full object-contain",loading:"lazy"})}),(0,l.jsxs)("div",{className:"w-full flex-1 text-center",children:[p?.name&&(0,l.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:(0,te.default)(p.name)}),p?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,te.default)(p.description)})]})]})},f)};return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((p,f)=>g(p,f))}),t&&(0,l.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},lm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[(0,l.jsxs)("div",{className:"flex w-full flex-1 flex-col p-5",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,te.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,te.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),(0,l.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&(0,l.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),mm=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[(0,l.jsx)("div",{className:"flex items-center lg:col-span-6",children:(0,l.jsxs)("div",{className:"w-full",children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[(0,l.jsx)("div",{className:"h-10 w-10",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,te.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,te.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&(0,l.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&(0,l.jsx)("div",{className:"flex items-center lg:col-span-4",children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-md",children:(0,l.jsx)(ee,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),cm=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,l.jsx)("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,l.jsxs)("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>(0,l.jsxs)("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,te.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-gray-500",children:(0,te.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&(0,l.jsxs)("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[(0,l.jsx)("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),(0,l.jsx)("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:(0,l.jsx)("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&(0,l.jsx)(R,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});var ge=require("react/jsx-runtime"),Ld=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return(0,ge.jsx)(an,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,ge.jsx)(om,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,ge.jsx)(am,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,ge.jsx)(im,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,ge.jsx)(rm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,ge.jsx)(nm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,ge.jsx)(sm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,ge.jsx)(lm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,ge.jsx)(mm,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return(0,ge.jsx)(cm,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return(0,ge.jsx)(an,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Ed=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>(0,ge.jsx)(ge.Fragment,{children:Ld({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),dm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})=>(0,ge.jsx)(Y,{className:t,idSection:a,background:o,children:(0,ge.jsx)(Ed,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})});var gm=require("@heroicons/react/24/solid"),ri=u(require("html-react-parser"),1),um=u(require("lodash"),1);var k=require("react/jsx-runtime"),Hd=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},Fd=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],zd=(e,o)=>o[e%o.length],_d=({avatar:e="",name:o="",index:t=0})=>{if(um.default.isEmpty(e)){let a=Hd({name:o})??"",i=zd(t,Fd);return(0,k.jsx)("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",i),children:a})}return(0,k.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,k.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},pm=({testimonial:e,isHiddenOnMobile:o=!1,index:t=0,itemCount:a})=>(0,k.jsx)("div",{className:r("testimonial-item shrink-0 grow basis-10/12 snap-center px-3 first:pl-5 sm:px-0 md:basis-0 md:first:pl-0",o?"hidden sm:block":"",t+1===a?"pr-5":""),children:(0,k.jsx)("div",{className:"relative h-full rounded-xl border border-gray-50 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:(0,k.jsxs)("div",{className:"testimonial-item-width",children:[(0,k.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,k.jsx)(_d,{avatar:e.avatar,name:e.name,index:t}),(0,k.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,k.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,k.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,ri.default)(e.position)})]})]}),(0,k.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,k.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,ri.default)(e.shortTitle)}),e?.description&&(0,k.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,ri.default)(e.description)})]}),(0,k.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[(0,k.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&(0,k.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>(0,k.jsx)(gm.StarIcon,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),fm=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&(0,k.jsx)("div",{className:r("testimonials-mobase scroll-hidden relative -mx-5 -my-2 overflow-x-scroll py-2 sm:mx-0 md:overflow-hidden",i&&"run-animation"),children:(0,k.jsxs)("div",{className:"testimonials-slider flex snap-x snap-mandatory flex-row overflow-hidden overflow-x-auto pb-3 sm:snap-none sm:space-x-6 sm:overflow-visible sm:pb-0 sm:pl-6 sm:pr-0",children:[o?.map((n,s)=>(0,k.jsx)(pm,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&o?.map((n,s)=>(0,k.jsx)(pm,{testimonial:n,isHiddenOnMobile:!0,index:s},`duplicate-${s}`))]})}),t&&(0,k.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),i&&(0,k.jsx)("style",{children:`
272
+ `})]}),im=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 w-full flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),rm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[(0,l.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&(0,l.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,l.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),nm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),sm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full",children:[a?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),lm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},m=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,c=n[a]??-1,f=(p,g)=>{let v=p?.btnLink?"a":"div",R=p?.btnLink?{href:p.btnLink,target:p?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:p?.btnName}:{};return(0,l.jsx)("div",{className:r("basis-1/2 px-2 lg:px-5",m,g===c&&"md:break-after-row",p?.btnLink&&"group cursor-pointer"),children:(0,l.jsxs)(v,{...R,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[p?.image&&(0,l.jsx)("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:(0,l.jsx)("img",{src:p?.image,alt:p?.name,className:"h-full w-full object-contain",loading:"lazy"})}),(0,l.jsxs)("div",{className:"w-full flex-1 text-center",children:[p?.name&&(0,l.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:(0,oe.default)(p.name)}),p?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,oe.default)(p.description)})]})]})},g)};return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((p,g)=>f(p,g))}),t&&(0,l.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},mm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[(0,l.jsxs)("div",{className:"flex w-full flex-1 flex-col p-5",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&(0,l.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&(0,l.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),cm=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[(0,l.jsx)("div",{className:"flex items-center lg:col-span-6",children:(0,l.jsxs)("div",{className:"w-full",children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[i?.image&&(0,l.jsx)("div",{className:"h-10 w-10",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&(0,l.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&(0,l.jsx)("div",{className:"flex items-center lg:col-span-4",children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-md",children:(0,l.jsx)(te,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),dm=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,l.jsx)("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,l.jsxs)("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>(0,l.jsxs)("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[i?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-gray-500",children:(0,oe.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Et,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&(0,l.jsxs)("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[(0,l.jsx)("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),(0,l.jsx)("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:(0,l.jsx)("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&(0,l.jsx)(T,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});var ge=require("react/jsx-runtime"),Ed=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return(0,ge.jsx)(rn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,ge.jsx)(am,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,ge.jsx)(im,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,ge.jsx)(rm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,ge.jsx)(nm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,ge.jsx)(sm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,ge.jsx)(lm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,ge.jsx)(mm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,ge.jsx)(cm,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return(0,ge.jsx)(dm,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return(0,ge.jsx)(rn,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Hd=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>(0,ge.jsx)(ge.Fragment,{children:Ed({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),pm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})=>(0,ge.jsx)(Z,{className:t,idSection:a,background:o,children:(0,ge.jsx)(Hd,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})});var um=require("@heroicons/react/24/solid"),ri=u(require("html-react-parser"),1),vm=u(require("lodash"),1);var D=require("react/jsx-runtime"),Fd=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},zd=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],_d=(e,o)=>o[e%o.length],Bd=({avatar:e="",name:o="",index:t=0})=>{if(vm.default.isEmpty(e)){let a=Fd({name:o})??"",i=_d(t,zd);return(0,D.jsx)("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",i),children:a})}return(0,D.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,D.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},fm=({testimonial:e,isHiddenOnMobile:o=!1,index:t=0,itemCount:a})=>(0,D.jsx)("div",{className:r("testimonial-item shrink-0 grow basis-10/12 snap-center px-3 first:pl-5 sm:px-0 md:basis-0 md:first:pl-0",o?"hidden sm:block":"",t+1===a?"pr-5":""),children:(0,D.jsx)("div",{className:"relative h-full rounded-xl border border-gray-50 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:(0,D.jsxs)("div",{className:"testimonial-item-width",children:[(0,D.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,D.jsx)(Bd,{avatar:e.avatar,name:e.name,index:t}),(0,D.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,D.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,D.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,ri.default)(e.position)})]})]}),(0,D.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,D.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,ri.default)(e.shortTitle)}),e?.description&&(0,D.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,ri.default)(e.description)})]}),(0,D.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[(0,D.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),(e?.rating??0)>0&&(0,D.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>(0,D.jsx)(um.StarIcon,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),gm=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return(0,D.jsxs)(D.Fragment,{children:[e&&(0,D.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&(0,D.jsx)("div",{className:r("testimonials-mobase scroll-hidden relative -mx-5 -my-2 overflow-x-scroll py-2 sm:mx-0 md:overflow-hidden",i&&"run-animation"),children:(0,D.jsxs)("div",{className:"testimonials-slider flex snap-x snap-mandatory flex-row overflow-hidden overflow-x-auto pb-3 sm:snap-none sm:space-x-6 sm:overflow-visible sm:pb-0 sm:pl-6 sm:pr-0",children:[o?.map((n,s)=>(0,D.jsx)(fm,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&o?.map((n,s)=>(0,D.jsx)(fm,{testimonial:n,isHiddenOnMobile:!0,index:s},`duplicate-${s}`))]})}),t&&(0,D.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),i&&(0,D.jsx)("style",{children:`
273
273
  @media screen and (min-width: 640px) {
274
274
  .testimonials-mobase.run-animation {
275
275
  --items-count: ${a};
@@ -293,7 +293,7 @@
293
293
  transform: translateX(calc(${a===4?"-476px":"-386px"} * var(--items-count)));
294
294
  }
295
295
  }
296
- `})]})},Bd=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,k.jsx)(fm,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,k.jsx)(fm,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Vd=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,k.jsx)(k.Fragment,{children:Bd({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),vm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>(0,k.jsx)(Y,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${t||""}`,idSection:a,background:o,children:(0,k.jsx)(Vd,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});var rn=u(require("html-react-parser"),1);var z=require("react/jsx-runtime"),nn=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>(0,z.jsx)(zt,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>(0,z.jsxs)(_t,{value:n.title,className:"last:border-none",children:[(0,z.jsx)(Bt,{className:"md:text-lg",children:n.title}),(0,z.jsx)(Vt,{className:"prose max-w-none",children:(0,rn.default)(n.description)})]},s))});return(0,z.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,z.jsx)("div",{className:"relative",children:(0,z.jsxs)("div",{className:"md:sticky md:top-14",children:[o&&(0,z.jsx)(y,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&(0,z.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&(0,z.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,z.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},bm=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},m=c=>(0,z.jsx)(zt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((g,p)=>(0,z.jsxs)(_t,{value:g.title,className:"last:border-none",children:[(0,z.jsx)(Bt,{className:"md:text-lg",children:g.title}),(0,z.jsx)(Vt,{className:"prose max-w-none",children:(0,rn.default)(g.description)})]},p))});return(0,z.jsxs)(z.Fragment,{children:[o&&(0,z.jsx)(y,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&(0,z.jsxs)(mt,{defaultValue:e[0]?.title,children:[(0,z.jsxs)(rt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[(0,z.jsx)(nt,{className:"mb-3 text-center",children:(0,z.jsx)(qe,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,g)=>(0,z.jsx)(Ye,{value:c.title,children:c.title},c.title+g))})}),(0,z.jsx)(st,{}),(0,z.jsx)(lt,{})]}),e.map((c,g)=>(0,z.jsx)(Ze,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:m(c)},c.title+g))]}),t&&(0,z.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};var Ht=require("react/jsx-runtime"),Od=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return(0,Ht.jsx)(nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return(0,Ht.jsx)(bm,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return(0,Ht.jsx)(nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Wd=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>(0,Ht.jsx)(Ht.Fragment,{children:Od({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),xm=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:m=1})=>(0,Ht.jsx)(Y,{className:t,idSection:i,background:a,children:(0,Ht.jsx)(Wd,{dataHeading:e,dataFAQ:o,template:m,dataHorizontalScroll:s,dataButtons:n})});var ni=u(require("react"),1),hm=require("@heroicons/react/20/solid"),ym=u(require("html-react-parser"),1);var S=require("react/jsx-runtime"),$d=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,S.jsxs)("picture",{children:[(0,S.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,S.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,S.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,S.jsx)("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),(0,S.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(ue,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&(0,S.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,S.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},sn=(0,ni.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,f,v)=>{p?.preventDefault(),p?.stopPropagation(),a?a(f):window.open(v,"_blank")},g=(p,f)=>(0,S.jsxs)("div",{children:[(0,S.jsx)("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",p?.newsList?.length<4?"md:justify-center":""),children:p?.newsList?.map((v,D)=>(0,S.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,S.jsx)("div",{onClick:E=>c(E,v?.id,v?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",p?.classNameItem),children:(0,S.jsx)($d,{news:v})},v?.id)},D))}),p?.isShowBtn&&(0,S.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,S.jsxs)(Ee,{action:p?.btnUrl||i&&(()=>i?.(f)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[(0,ym.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,S.jsx)(uo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,S.jsx)(hm.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||f);return(0,S.jsxs)(ni.default.Fragment,{children:[e&&(0,S.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?(0,S.jsxs)(mt,{defaultValue:t[0]?.title,children:[(0,S.jsxs)(rt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,S.jsx)(nt,{className:"mb-6 text-center",children:(0,S.jsx)(qe,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,f)=>(0,S.jsx)(Ye,{value:p.title,children:p.title},p.title+f))})}),(0,S.jsx)(st,{}),(0,S.jsx)(lt,{})]}),t.map((p,f)=>(0,S.jsx)(Ze,{value:p.title,children:g(p,f)},p.title+f))]}):t?.length===1&&t[0]&&g(t[0],0)]})});var Kt=require("react/jsx-runtime"),Gd=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Kt.jsx)(sn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Kt.jsx)(sn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},jd=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Kt.jsx)(Kt.Fragment,{children:Gd({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),wm=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,Kt.jsx)(Y,{className:r(a),background:i,children:(0,Kt.jsx)(jd,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:m})});var le=require("react/jsx-runtime"),Nm=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,le.jsxs)("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:o?.background},children:[e&&(0,le.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&(0,le.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Ud=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,le.jsxs)("div",{className:"grid gap-6 grid-cols-1 md:grid-cols-2 rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 pb-0 md:px-10 bg-pink-700 md:pb-0 md:pt-0",style:o?.background?{background:o.background}:{},children:[(0,le.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,le.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&(0,le.jsx)(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,le.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,le.jsx)(ee,{ratio:4/3,children:(0,le.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Qd=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return(0,le.jsx)(Nm,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return(0,le.jsx)(Ud,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return(0,le.jsx)(Nm,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},Xd=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>(0,le.jsx)(le.Fragment,{children:Qd({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),Pm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})=>(0,le.jsx)(Y,{className:t,idSection:a,background:o,children:(0,le.jsx)(Xd,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})});var ln=u(require("react"),1),si=u(require("html-react-parser"),1);var $e=require("react/jsx-runtime"),qd=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,$e.jsxs)("div",{className:" text-center",children:[(0,$e.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,si.default)(t??"")}),(0,$e.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,si.default)(o??"")}),a&&(0,$e.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,si.default)(a??"")})]})},li=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,$e.jsxs)(ln.default.Fragment,{children:[t&&(0,$e.jsx)(y,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&(0,$e.jsx)("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,i)=>(0,$e.jsx)(ln.default.Fragment,{children:(0,$e.jsx)(qd,{metric:a})},i))}),o&&(0,$e.jsx)(R,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var mn=u(require("react"),1),mi=u(require("html-react-parser"),1);var Ge=require("react/jsx-runtime"),Yd=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ge.jsxs)("div",{className:" text-center md:text-left",children:[(0,Ge.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:(0,mi.default)(t??"")}),(0,Ge.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,mi.default)(o??"")}),a&&(0,Ge.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,mi.default)(a??"")})]})},cn=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ge.jsxs)(mn.default.Fragment,{children:[t&&(0,Ge.jsx)(y,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&(0,Ge.jsx)("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,i)=>(0,Ge.jsx)(mn.default.Fragment,{children:(0,Ge.jsx)(Yd,{metric:a})},i))}),o&&(0,Ge.jsx)(R,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Ft=require("react/jsx-runtime"),Zd=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,Ft.jsx)(li,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,Ft.jsx)(cn,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,Ft.jsx)(li,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Kd=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,Ft.jsx)(Ft.Fragment,{children:Zd({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Cm=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:i,template:n})=>(0,Ft.jsx)(Y,{className:r(i),background:a,children:(0,Ft.jsx)(Kd,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});var Rm=require("react"),la=require("react/jsx-runtime"),Tm=(0,Rm.forwardRef)(({className:e,title:o,children:t},a)=>(0,la.jsxs)("div",{className:e,ref:a,children:[(0,la.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,la.jsx)("div",{style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-241105114139-638664036992710012.png)",backgroundSize:"30%",backgroundPosition:"53% 25%"},className:"mt-4 grid grid-cols-1 gap-4 rounded-lg border bg-no-repeat p-3 text-gray-800",children:t})]}));var Sm=require("react");var je=require("react/jsx-runtime"),Jd=()=>(0,je.jsx)("div",{className:"p-3 border rounded-lg",children:(0,je.jsxs)("div",{className:"flex items-center gap-3",children:[(0,je.jsx)(na,{className:"rounded-md h-9 w-9 "}),(0,je.jsx)("div",{className:"flex-1",children:(0,je.jsx)(na,{className:"w-48 h-5 "})}),(0,je.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function ep(){return(0,je.jsx)(je.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,je.jsx)(Jd,{},o))})}var km=ep;var be=require("react/jsx-runtime"),tp=({paymentMethod:e})=>(0,be.jsx)(ia,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,be.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,be.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,be.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,be.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,be.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,be.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Dm=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=(0,Sm.useCallback)(s=>a?.(s),[a]);return(0,be.jsxs)(be.Fragment,{children:[e&&(0,be.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,be.jsx)(km,{}):(0,be.jsx)(aa,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,be.jsx)(tp,{paymentMethod:s},s.id))})]})};var dn=require("react");var fn=require("react/jsx-runtime"),op=(0,dn.forwardRef)(({children:e,className:o},t)=>(0,fn.jsx)("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),pn=(0,dn.forwardRef)(({children:e,className:o,...t},a)=>(0,fn.jsx)(op,{ref:a,className:o,...t,children:e}));pn.displayName="Payment";var Mm=require("react");var ma=require("react/jsx-runtime"),Im=(0,Mm.forwardRef)(({className:e,children:o},t)=>(0,ma.jsxs)("div",{className:r("",e),ref:t,children:[(0,ma.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,ma.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var Am=require("react");var Em=require("react/jsx-runtime"),Lm=(0,Am.forwardRef)(({className:e,children:o},t)=>(0,Em.jsx)("div",{className:r("pb-5",e),ref:t,children:o}));var Fm=require("react");var ci=require("@heroicons/react/20/solid");var j=require("react/jsx-runtime"),ap=({iconPaymentResult:e,message:o="",title:t=""})=>(0,j.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,j.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,j.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,j.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,j.jsx)(ko,{message:o,type:"success",icon:(0,j.jsx)(ci.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),ip=({iconPaymentResult:e,message:o="",title:t=""})=>(0,j.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,j.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,j.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,j.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,j.jsx)(ko,{message:o,type:"error",icon:(0,j.jsx)(ci.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),rp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,j.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,j.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,j.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,j.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,j.jsx)(ko,{message:o,type:"neutral"})]}),Hm=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,j.jsx)(ap,{status:e,title:o,message:t,iconPaymentResult:a||(0,j.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,j.jsx)(ip,{status:e,title:o,message:t,iconPaymentResult:a||(0,j.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,j.jsx)(rp,{status:e,title:o,message:t,iconPaymentResult:a||(0,j.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var di=require("react/jsx-runtime"),zm=(0,Fm.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>(0,di.jsxs)("div",{ref:s,className:r("rounded-lg p-4",e),children:[(0,di.jsx)(Hm,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));var fi=require("react");var Io=require("react/jsx-runtime"),pi=({content:e})=>(0,Io.jsxs)("picture",{children:[(0,Io.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,Io.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,Io.jsx)(Ee,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var Jt=require("react/jsx-runtime"),np=({template:e,content:o})=>{switch(e){case 1:return(0,Jt.jsx)(pi,{content:o});default:return(0,Jt.jsx)(pi,{content:o})}},_m=(0,fi.forwardRef)(({template:e,content:o},t)=>((0,fi.useEffect)(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),(0,Jt.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,Jt.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,Jt.jsx)("div",{className:"content",children:np({template:e,content:o})})}),(0,Jt.jsx)("style",{children:`
296
+ `})]})},Vd=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,D.jsx)(gm,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,D.jsx)(gm,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Od=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,D.jsx)(D.Fragment,{children:Vd({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),bm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>(0,D.jsx)(Z,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${t||""}`,idSection:a,background:o,children:(0,D.jsx)(Od,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});var nn=u(require("html-react-parser"),1);var z=require("react/jsx-runtime"),sn=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>(0,z.jsx)(zt,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>(0,z.jsxs)(_t,{value:n.title,className:"last:border-none",children:[(0,z.jsx)(Bt,{className:"md:text-lg",children:n.title}),(0,z.jsx)(Vt,{className:"prose max-w-none",children:(0,nn.default)(n.description)})]},s))});return(0,z.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,z.jsx)("div",{className:"relative",children:(0,z.jsxs)("div",{className:"md:sticky md:top-14",children:[o&&(0,z.jsx)(y,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&(0,z.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&(0,z.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,z.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},xm=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},m=c=>(0,z.jsx)(zt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((f,p)=>(0,z.jsxs)(_t,{value:f.title,className:"last:border-none",children:[(0,z.jsx)(Bt,{className:"md:text-lg",children:f.title}),(0,z.jsx)(Vt,{className:"prose max-w-none",children:(0,nn.default)(f.description)})]},p))});return(0,z.jsxs)(z.Fragment,{children:[o&&(0,z.jsx)(y,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&(0,z.jsxs)(mt,{defaultValue:e[0]?.title,children:[(0,z.jsxs)(rt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[(0,z.jsx)(nt,{className:"mb-3 text-center",children:(0,z.jsx)(qe,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,f)=>(0,z.jsx)(Ye,{value:c.title,children:c.title},c.title+f))})}),(0,z.jsx)(st,{}),(0,z.jsx)(lt,{})]}),e.map((c,f)=>(0,z.jsx)(Ze,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:m(c)},c.title+f))]}),t&&(0,z.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};var Ht=require("react/jsx-runtime"),Wd=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return(0,Ht.jsx)(sn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return(0,Ht.jsx)(xm,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return(0,Ht.jsx)(sn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},$d=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>(0,Ht.jsx)(Ht.Fragment,{children:Wd({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),hm=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:m=1})=>(0,Ht.jsx)(Z,{className:t,idSection:i,background:a,children:(0,Ht.jsx)($d,{dataHeading:e,dataFAQ:o,template:m,dataHorizontalScroll:s,dataButtons:n})});var ni=u(require("react"),1),ym=require("@heroicons/react/20/solid"),wm=u(require("html-react-parser"),1);var M=require("react/jsx-runtime"),Gd=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,M.jsxs)("picture",{children:[(0,M.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,M.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,M.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,M.jsx)("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),(0,M.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(ue,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&(0,M.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,M.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},ln=(0,ni.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,g,v)=>{p?.preventDefault(),p?.stopPropagation(),a?a(g):window.open(v,"_blank")},f=(p,g)=>(0,M.jsxs)("div",{children:[(0,M.jsx)("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",p?.newsList?.length<4?"md:justify-center":""),children:p?.newsList?.map((v,R)=>(0,M.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,M.jsx)("div",{onClick:E=>c(E,v?.id,v?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",p?.classNameItem),children:(0,M.jsx)(Gd,{news:v})},v?.id)},R))}),p?.isShowBtn&&(0,M.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,M.jsxs)(Ee,{action:p?.btnUrl||i&&(()=>i?.(g)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[(0,wm.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,M.jsx)(vo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,M.jsx)(ym.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||g);return(0,M.jsxs)(ni.default.Fragment,{children:[e&&(0,M.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?(0,M.jsxs)(mt,{defaultValue:t[0]?.title,children:[(0,M.jsxs)(rt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,M.jsx)(nt,{className:"mb-6 text-center",children:(0,M.jsx)(qe,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,g)=>(0,M.jsx)(Ye,{value:p.title,children:p.title},p.title+g))})}),(0,M.jsx)(st,{}),(0,M.jsx)(lt,{})]}),t.map((p,g)=>(0,M.jsx)(Ze,{value:p.title,children:f(p,g)},p.title+g))]}):t?.length===1&&t[0]&&f(t[0],0)]})});var Kt=require("react/jsx-runtime"),jd=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Kt.jsx)(ln,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Kt.jsx)(ln,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Ud=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Kt.jsx)(Kt.Fragment,{children:jd({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),Nm=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,Kt.jsx)(Z,{className:r(a),background:i,children:(0,Kt.jsx)(Ud,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:m})});var le=require("react/jsx-runtime"),Pm=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,le.jsxs)("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:o?.background},children:[e&&(0,le.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&(0,le.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Qd=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,le.jsxs)("div",{className:"grid gap-6 grid-cols-1 md:grid-cols-2 rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 pb-0 md:px-10 bg-pink-700 md:pb-0 md:pt-0",style:o?.background?{background:o.background}:{},children:[(0,le.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,le.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&(0,le.jsx)(T,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,le.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,le.jsx)(te,{ratio:4/3,children:(0,le.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Xd=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return(0,le.jsx)(Pm,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return(0,le.jsx)(Qd,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return(0,le.jsx)(Pm,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},qd=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>(0,le.jsx)(le.Fragment,{children:Xd({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),Cm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})=>(0,le.jsx)(Z,{className:t,idSection:a,background:o,children:(0,le.jsx)(qd,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})});var mn=u(require("react"),1),si=u(require("html-react-parser"),1);var $e=require("react/jsx-runtime"),Yd=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,$e.jsxs)("div",{className:" text-center",children:[(0,$e.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,si.default)(t??"")}),(0,$e.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,si.default)(o??"")}),a&&(0,$e.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,si.default)(a??"")})]})},li=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,$e.jsxs)(mn.default.Fragment,{children:[t&&(0,$e.jsx)(y,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&(0,$e.jsx)("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,i)=>(0,$e.jsx)(mn.default.Fragment,{children:(0,$e.jsx)(Yd,{metric:a})},i))}),o&&(0,$e.jsx)(T,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var cn=u(require("react"),1),mi=u(require("html-react-parser"),1);var Ge=require("react/jsx-runtime"),Zd=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ge.jsxs)("div",{className:" text-center md:text-left",children:[(0,Ge.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:(0,mi.default)(t??"")}),(0,Ge.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,mi.default)(o??"")}),a&&(0,Ge.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,mi.default)(a??"")})]})},dn=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ge.jsxs)(cn.default.Fragment,{children:[t&&(0,Ge.jsx)(y,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&(0,Ge.jsx)("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,i)=>(0,Ge.jsx)(cn.default.Fragment,{children:(0,Ge.jsx)(Zd,{metric:a})},i))}),o&&(0,Ge.jsx)(T,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Ft=require("react/jsx-runtime"),Kd=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,Ft.jsx)(li,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,Ft.jsx)(dn,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,Ft.jsx)(li,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Jd=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,Ft.jsx)(Ft.Fragment,{children:Kd({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Rm=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:i,template:n})=>(0,Ft.jsx)(Z,{className:r(i),background:a,children:(0,Ft.jsx)(Jd,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});var Tm=require("react"),la=require("react/jsx-runtime"),km=(0,Tm.forwardRef)(({className:e,title:o,children:t},a)=>(0,la.jsxs)("div",{className:e,ref:a,children:[(0,la.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,la.jsx)("div",{style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-241105114139-638664036992710012.png)",backgroundSize:"30%",backgroundPosition:"53% 25%"},className:"mt-4 grid grid-cols-1 gap-4 rounded-lg border bg-no-repeat p-3 text-gray-800",children:t})]}));var Dm=require("react");var je=require("react/jsx-runtime"),ep=()=>(0,je.jsx)("div",{className:"p-3 border rounded-lg",children:(0,je.jsxs)("div",{className:"flex items-center gap-3",children:[(0,je.jsx)(na,{className:"rounded-md h-9 w-9 "}),(0,je.jsx)("div",{className:"flex-1",children:(0,je.jsx)(na,{className:"w-48 h-5 "})}),(0,je.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function tp(){return(0,je.jsx)(je.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,je.jsx)(ep,{},o))})}var Sm=tp;var be=require("react/jsx-runtime"),op=({paymentMethod:e})=>(0,be.jsx)(ia,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,be.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,be.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,be.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,be.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,be.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,be.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Mm=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=(0,Dm.useCallback)(s=>a?.(s),[a]);return(0,be.jsxs)(be.Fragment,{children:[e&&(0,be.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,be.jsx)(Sm,{}):(0,be.jsx)(aa,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,be.jsx)(op,{paymentMethod:s},s.id))})]})};var pn=require("react");var gn=require("react/jsx-runtime"),ap=(0,pn.forwardRef)(({children:e,className:o},t)=>(0,gn.jsx)("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),fn=(0,pn.forwardRef)(({children:e,className:o,...t},a)=>(0,gn.jsx)(ap,{ref:a,className:o,...t,children:e}));fn.displayName="Payment";var Im=require("react");var ma=require("react/jsx-runtime"),Am=(0,Im.forwardRef)(({className:e,children:o},t)=>(0,ma.jsxs)("div",{className:r("",e),ref:t,children:[(0,ma.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,ma.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var Lm=require("react");var Hm=require("react/jsx-runtime"),Em=(0,Lm.forwardRef)(({className:e,children:o},t)=>(0,Hm.jsx)("div",{className:r("pb-5",e),ref:t,children:o}));var zm=require("react");var ci=require("@heroicons/react/20/solid");var G=require("react/jsx-runtime"),ip=({iconPaymentResult:e,message:o="",title:t=""})=>(0,G.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,G.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,G.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,G.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,G.jsx)(So,{message:o,type:"success",icon:(0,G.jsx)(ci.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),rp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,G.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,G.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,G.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,G.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,G.jsx)(So,{message:o,type:"error",icon:(0,G.jsx)(ci.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),np=({iconPaymentResult:e,message:o="",title:t=""})=>(0,G.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,G.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,G.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,G.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,G.jsx)(So,{message:o,type:"neutral"})]}),Fm=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,G.jsx)(ip,{status:e,title:o,message:t,iconPaymentResult:a||(0,G.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,G.jsx)(rp,{status:e,title:o,message:t,iconPaymentResult:a||(0,G.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,G.jsx)(np,{status:e,title:o,message:t,iconPaymentResult:a||(0,G.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var di=require("react/jsx-runtime"),_m=(0,zm.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>(0,di.jsxs)("div",{ref:s,className:r("rounded-lg p-4",e),children:[(0,di.jsx)(Fm,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));var fi=require("react");var Ao=require("react/jsx-runtime"),pi=({content:e})=>(0,Ao.jsxs)("picture",{children:[(0,Ao.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,Ao.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,Ao.jsx)(Ee,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var Jt=require("react/jsx-runtime"),sp=({template:e,content:o})=>{switch(e){case 1:return(0,Jt.jsx)(pi,{content:o});default:return(0,Jt.jsx)(pi,{content:o})}},Bm=(0,fi.forwardRef)(({template:e,content:o},t)=>((0,fi.useEffect)(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),(0,Jt.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,Jt.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,Jt.jsx)("div",{className:"content",children:sp({template:e,content:o})})}),(0,Jt.jsx)("style",{children:`
297
297
  .container-topbar .content {
298
298
  width: 100%;
299
299
  aspect-ratio: 1088/50;
@@ -311,7 +311,7 @@
311
311
  aspect-ratio: 720/88;
312
312
  }
313
313
  }
314
- `})]})));var oc=u(require("color"),1),ac=u(require("tailwindcss/plugin.js"),1);var Bm={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"}}}};var Vm={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Om={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Wm={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var $m={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Gm={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var jm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Um={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Qm={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Xm={white:"#ffffff",black:"#000000",blue:Vm,green:Om,pink:Wm,purple:$m,red:Gm,yellow:jm,gray:Qm,orange:Um};var gn={...Xm};var qm={"disabled-opacity":.5,"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)"},radius:{none:"0px",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"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"},"line-height":{xxs:"1rem",xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"1","6xl":"1","7xl":"1","8xl":"1","9xl":"1"}};var ht="250ms",Ym={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ht},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ht},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ht},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ht},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ht},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ht},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":ht},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":ht},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ht},".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":ht}};var Zm={".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"}};var Km={".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 Jm={...Zm,...Ym,...Km};var ec=require("flat");function sp(e){let o={};for(let t in e){if(t.endsWith("-DEFAULT")){o[t.replace("-DEFAULT","")]=e[t];continue}o[t]=e[t]}return o}var tc=e=>sp((0,ec.flatten)(e,{safe:!0,delimiter:"-"}));var lp=e=>{let o={utilities:{},colors:{}},t=tc(gn),a=qm,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[m,c,g]=(0,oc.default)(s).rgb().array(),p=`--${e}-${n}`;o.utilities[i][p]=`${m} ${c} ${g}`,o.colors[n]=`rgb(var(${p}) / <alpha-value>)`}catch(m){console.log("error",m?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let m=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,g])=>{let p=`${m}-${c}`;o.utilities[i][p]=g});else{let c=m.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][m]=c}}),o},ic=()=>{let e="mobase",o=lp(e);return(0,ac.default)(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Jm})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},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:{...gn,...o?.colors,border:"rgba(var(--border))"},boxShadow:{small:`var(--${e}-box-shadow-small)`,medium:`var(--${e}-box-shadow-medium)`,large:`var(--${e}-box-shadow-large)`},borderRadius:{none:`var(--${e}-radius-none)`,sm:`var(--${e}-radius-sm)`,DEFAULT:`var(--${e}-radius-default)`,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)`,full:`var(--${e}-radius-full)`},fontSize:{xxs:[`var(--${e}-font-size-xxs)`,`var(--${e}-line-height-xxs)`],xs:[`var(--${e}-font-size-xs)`,`var(--${e}-line-height-xs)`],sm:[`var(--${e}-font-size-sm)`,`var(--${e}-line-height-sm)`],base:[`var(--${e}-font-size-base)`,`var(--${e}-line-height-base)`],lg:[`var(--${e}-font-size-lg)`,`var(--${e}-line-height-lg)`],xl:[`var(--${e}-font-size-xl)`,`var(--${e}-line-height-xl)`],"2xl":[`var(--${e}-font-size-2xl)`,`var(--${e}-line-height-2xl)`],"3xl":[`var(--${e}-font-size-3xl)`,`var(--${e}-line-height-3xl)`],"4xl":[`var(--${e}-font-size-4xl)`,`var(--${e}-line-height-4xl)`],"5xl":[`var(--${e}-font-size-5xl)`,`var(--${e}-line-height-5xl)`],"6xl":[`var(--${e}-font-size-6xl)`,`var(--${e}-line-height-6xl)`],"7xl":[`var(--${e}-font-size-7xl)`,`var(--${e}-line-height-7xl)`],"8xl":[`var(--${e}-font-size-8xl)`,`var(--${e}-line-height-8xl)`],"9xl":[`var(--${e}-font-size-9xl)`,`var(--${e}-line-height-9xl)`]},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)`},...Bm}}})};var C=require("react/jsx-runtime"),rc=(0,C.jsxs)(C.Fragment,{children:[(0,C.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,C.jsx)("meta",{name:"distribution",content:"Global"}),(0,C.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,C.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,C.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,C.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,C.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,C.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,C.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,C.jsx)("meta",{name:"language",content:"vietnamese"}),(0,C.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,C.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,C.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,C.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,C.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,C.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,C.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,C.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,C.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,C.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,C.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,C.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,C.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
314
+ `})]})));var ac=u(require("color"),1),ic=u(require("tailwindcss/plugin.js"),1);var Vm={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"}}}};var Om={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Wm={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var $m={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Gm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var jm={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Um={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Qm={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Xm={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var qm={white:"#ffffff",black:"#000000",blue:Om,green:Wm,pink:$m,purple:Gm,red:jm,yellow:Um,gray:Xm,orange:Qm};var un={...qm};var Ym={"disabled-opacity":.5,"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)"},radius:{none:"0px",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"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"},"line-height":{xxs:"1rem",xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"1","6xl":"1","7xl":"1","8xl":"1","9xl":"1"}};var ht="250ms",Zm={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ht},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ht},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ht},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ht},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ht},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ht},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":ht},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":ht},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ht},".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":ht}};var Km={".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"}};var Jm={".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 ec={...Km,...Zm,...Jm};var tc=require("flat");function lp(e){let o={};for(let t in e){if(t.endsWith("-DEFAULT")){o[t.replace("-DEFAULT","")]=e[t];continue}o[t]=e[t]}return o}var oc=e=>lp((0,tc.flatten)(e,{safe:!0,delimiter:"-"}));var mp=e=>{let o={utilities:{},colors:{}},t=oc(un),a=Ym,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[m,c,f]=(0,ac.default)(s).rgb().array(),p=`--${e}-${n}`;o.utilities[i][p]=`${m} ${c} ${f}`,o.colors[n]=`rgb(var(${p}) / <alpha-value>)`}catch(m){console.log("error",m?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let m=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,f])=>{let p=`${m}-${c}`;o.utilities[i][p]=f});else{let c=m.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][m]=c}}),o},rc=()=>{let e="mobase",o=mp(e);return(0,ic.default)(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...ec})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},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:{...un,...o?.colors,border:"rgba(var(--border))"},boxShadow:{small:`var(--${e}-box-shadow-small)`,medium:`var(--${e}-box-shadow-medium)`,large:`var(--${e}-box-shadow-large)`},borderRadius:{none:`var(--${e}-radius-none)`,sm:`var(--${e}-radius-sm)`,DEFAULT:`var(--${e}-radius-default)`,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)`,full:`var(--${e}-radius-full)`},fontSize:{xxs:[`var(--${e}-font-size-xxs)`,`var(--${e}-line-height-xxs)`],xs:[`var(--${e}-font-size-xs)`,`var(--${e}-line-height-xs)`],sm:[`var(--${e}-font-size-sm)`,`var(--${e}-line-height-sm)`],base:[`var(--${e}-font-size-base)`,`var(--${e}-line-height-base)`],lg:[`var(--${e}-font-size-lg)`,`var(--${e}-line-height-lg)`],xl:[`var(--${e}-font-size-xl)`,`var(--${e}-line-height-xl)`],"2xl":[`var(--${e}-font-size-2xl)`,`var(--${e}-line-height-2xl)`],"3xl":[`var(--${e}-font-size-3xl)`,`var(--${e}-line-height-3xl)`],"4xl":[`var(--${e}-font-size-4xl)`,`var(--${e}-line-height-4xl)`],"5xl":[`var(--${e}-font-size-5xl)`,`var(--${e}-line-height-5xl)`],"6xl":[`var(--${e}-font-size-6xl)`,`var(--${e}-line-height-6xl)`],"7xl":[`var(--${e}-font-size-7xl)`,`var(--${e}-line-height-7xl)`],"8xl":[`var(--${e}-font-size-8xl)`,`var(--${e}-line-height-8xl)`],"9xl":[`var(--${e}-font-size-9xl)`,`var(--${e}-line-height-9xl)`]},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)`},...Vm}}})};var C=require("react/jsx-runtime"),nc=(0,C.jsxs)(C.Fragment,{children:[(0,C.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,C.jsx)("meta",{name:"distribution",content:"Global"}),(0,C.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,C.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,C.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,C.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,C.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,C.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,C.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,C.jsx)("meta",{name:"language",content:"vietnamese"}),(0,C.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,C.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,C.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,C.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,C.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,C.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,C.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,C.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,C.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,C.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,C.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,C.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,C.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,C.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
315
315
  "@context": "https://schema.org/",
316
316
  "@type": "WebSite",
317
317
  "@id":"https://www.momo.vn/#website",