@momo-webplatform/mobase 1.0.3 → 1.0.4

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 Uc=Object.create;var Aa=Object.defineProperty;var qc=Object.getOwnPropertyDescriptor;var Xc=Object.getOwnPropertyNames;var Yc=Object.getPrototypeOf,Zc=Object.prototype.hasOwnProperty;var Kc=(e,o)=>{for(var t in o)Aa(e,t,{get:o[t],enumerable:!0})},$n=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of Xc(o))!Zc.call(e,i)&&i!==t&&Aa(e,i,{get:()=>o[i],enumerable:!(a=qc(o,i))||a.enumerable});return e};var h=(e,o,t)=>(t=e!=null?Uc(Yc(e)):{},$n(o||!e||!e.__esModule?Aa(t,"default",{value:e,enumerable:!0}):t,e)),Jc=e=>$n(Aa({},"__esModule",{value:!0}),e);var of={};Kc(of,{Accordion:()=>ut,AccordionContent:()=>xt,AccordionItem:()=>vt,AccordionTrigger:()=>ht,ActionButton:()=>je,AlertDialog:()=>Is,AlertDialogAction:()=>mr,AlertDialogCancel:()=>cr,AlertDialogContent:()=>ir,AlertDialogDescription:()=>lr,AlertDialogFooter:()=>nr,AlertDialogHeader:()=>rr,AlertDialogOverlay:()=>oi,AlertDialogPortal:()=>ar,AlertDialogTitle:()=>sr,AlertDialogTrigger:()=>As,AspectRatio:()=>q,Badge:()=>Hl,BlogSection:()=>hs,Breadcrumb:()=>Wi,BreadcrumbEllipsis:()=>qi,BreadcrumbItem:()=>$i,BreadcrumbLink:()=>ji,BreadcrumbList:()=>Gi,BreadcrumbPage:()=>Qi,BreadcrumbSeparator:()=>Ui,Button:()=>Ee,ButtonsBlock:()=>C,CTASection:()=>Jm,Calendar:()=>ca,Callout:()=>Xo,Card:()=>Hr,CardContent:()=>Or,CardDescription:()=>Br,CardFooter:()=>Vr,CardHeader:()=>_r,CardTitle:()=>Fr,Carousel:()=>Pe,CarouselContent:()=>Ce,CarouselDots:()=>wo,CarouselItem:()=>ye,CarouselNext:()=>yo,CarouselPrevious:()=>bo,Checkbox:()=>ma,ChoiceboxGroup:()=>Ca,ChoiceboxGroupItem:()=>ka,ChoiceboxMultiItem:()=>Yr,Combobox:()=>yl,ComboboxContent:()=>bl,ComboboxTrigger:()=>xl,Command:()=>fi,CommandDialog:()=>vl,CommandEmpty:()=>$r,CommandGroup:()=>jr,CommandInput:()=>Wr,CommandItem:()=>Ur,CommandList:()=>Gr,CommandSeparator:()=>Qr,CommandShortcut:()=>qr,Comment:()=>Xl,DatePicker:()=>Cs,DateSelect:()=>Ms,Dialog:()=>$e,DialogBody:()=>ot,DialogClose:()=>La,DialogContent:()=>He,DialogDescription:()=>Vi,DialogFooter:()=>Oi,DialogHeader:()=>vo,DialogOverlay:()=>za,DialogPortal:()=>Bi,DialogQr:()=>eo,DialogTitle:()=>ho,DialogTrigger:()=>Ho,Drawer:()=>Mn,DrawerBody:()=>_n,DrawerClose:()=>hc,DrawerContent:()=>An,DrawerDescription:()=>Hn,DrawerFooter:()=>zn,DrawerHeader:()=>Ln,DrawerOverlay:()=>zi,DrawerPortal:()=>In,DrawerTitle:()=>En,DrawerTrigger:()=>vc,DropdownMenu:()=>am,DropdownMenuCheckboxItem:()=>ln,DropdownMenuContent:()=>nn,DropdownMenuGroup:()=>rm,DropdownMenuItem:()=>sn,DropdownMenuLabel:()=>cn,DropdownMenuPortal:()=>nm,DropdownMenuRadioGroup:()=>lm,DropdownMenuRadioItem:()=>mn,DropdownMenuSeparator:()=>dn,DropdownMenuShortcut:()=>pn,DropdownMenuSub:()=>sm,DropdownMenuSubContent:()=>rn,DropdownMenuSubTrigger:()=>an,DropdownMenuTrigger:()=>im,FAQSection:()=>Xm,FeatureSection:()=>Fm,Footer:()=>ul,GuideSection:()=>Fs,HeaderNavigation:()=>zr,Heading:()=>_a,HeadingBlock:()=>N,HeadingGroup:()=>Ba,HeadingSub:()=>Fa,HeadingTagline:()=>Ha,HeroSection:()=>xm,HorizontalContent:()=>wt,HorizontalNext:()=>Pt,HorizontalPrevious:()=>Nt,HorizontalScroll:()=>yt,HowItWorksSection:()=>pm,IconButton:()=>ge,InputOTP:()=>Fn,InputOTPGroup:()=>Bn,InputOTPSeparator:()=>Vn,InputOTPSlot:()=>On,LightBoxGalleryContent:()=>ui,LightboxGallery:()=>gi,LightboxThumbnail:()=>Ml,MetricsSection:()=>ec,NavigationMenu:()=>ua,NavigationMenuContent:()=>ya,NavigationMenuItem:()=>ha,NavigationMenuLink:()=>Uo,NavigationMenuList:()=>va,NavigationMenuTrigger:()=>ba,NewsSection:()=>Zm,Pagination:()=>gr,Payment:()=>Sn,PaymentGuide:()=>Hi,PaymentGuideDialog:()=>_i,PaymentInvoice:()=>oc,PaymentMethods:()=>rc,PaymentResult:()=>fc,PaymentResultContent:()=>mc,PaymentResultFooter:()=>sc,Popover:()=>Vo,PopoverContent:()=>No,PopoverTrigger:()=>Wo,ProgressSteps:()=>om,ProgressStepsItem:()=>tm,ProgressStepsItemTrigger:()=>em,Progressbar:()=>en,QRPayment:()=>Cc,RadioGroup:()=>Ar,RadioGroupItem:()=>Lr,ReadMoreLite:()=>hi,SearchBar:()=>kl,SectionBlock:()=>J,Select:()=>Go,SelectContent:()=>Co,SelectGroup:()=>jo,SelectItem:()=>jt,SelectLabel:()=>er,SelectScrollDownButton:()=>ei,SelectScrollUpButton:()=>Ja,SelectSeparator:()=>tr,SelectTrigger:()=>Po,SelectValue:()=>$o,SiteMeta:()=>jc,Skeleton:()=>Ta,Slider:()=>tn,SocialProofSection:()=>km,Spinner:()=>vi,Stepper:()=>Sr,Switch:()=>Mr,Tabs:()=>Ct,TabsContent:()=>nt,TabsList:()=>it,TabsTrigger:()=>rt,TestimonialSection:()=>Um,TextArea:()=>Ws,TextButton:()=>Ne,TextInput:()=>Ys,ToastAction:()=>yr,Toaster:()=>Qs,Tooltip:()=>qs,TooltipArrow:()=>kr,TooltipContent:()=>Rr,TooltipProvider:()=>Us,TooltipTrigger:()=>Xs,Topbar:()=>gc,badgeVariants:()=>Zr,buttonVariants:()=>tt,mobaseTW:()=>$c,navigationMenuTriggerStyle:()=>xa,textButtonVariants:()=>Yi,toast:()=>hr,useToast:()=>li});module.exports=Jc(of);var ia=h(require("react"),1),Zn=require("@heroicons/react/20/solid"),Ge=h(require("@radix-ui/react-accordion"),1);var Qn=h(require("react"),1),Un=require("@artsy/fresnel"),qn=h(require("html-react-parser"),1),Xn=require("tailwind-merge");var Ft={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 jn={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 aa=[{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"}],Fi=[{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 Te={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"}};function r(...e){return(0,Xn.twMerge)(e)}var Yn=(0,Un.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),nf=Yn.createMediaStyle(),{Media:gt,MediaContextProvider:zo}=Yn,v=e=>e?Qn.isValidElement(e)||typeof e=="object"&&"$typeof"in e?e:typeof e=="string"?(0,qn.default)(e):e:null;var Bt=require("react/jsx-runtime"),ut=ia.forwardRef(({className:e,...o},t)=>(0,Bt.jsx)(Ge.Root,{ref:t,...o}));ut.displayName="AccordionRoot";var vt=ia.forwardRef(({className:e,...o},t)=>(0,Bt.jsx)(Ge.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));vt.displayName="AccordionItem";var ht=ia.forwardRef(({className:e,children:o,...t},a)=>(0,Bt.jsx)(Ge.Header,{className:"flex",children:(0,Bt.jsxs)(Ge.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,Bt.jsx)(Zn.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));ht.displayName=Ge.Trigger.displayName;var xt=ia.forwardRef(({className:e,children:o,...t},a)=>(0,Bt.jsx)(Ge.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,Bt.jsx)("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));xt.displayName=Ge.Content.displayName;var Kn=h(require("react"),1),Jn=require("@radix-ui/react-slot"),es=require("class-variance-authority");var Se=require("react/jsx-runtime"),ed=({className:e})=>(0,Se.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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"})]}),Eo=ed;var Jt=require("react/jsx-runtime"),tt=(0,es.cva)("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white 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:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Ee=Kn.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},m)=>{let c=a?Jn.Slot:"button",d=r(tt({variant:o,size:t,className:e}),{"cursor-wait":i});return(0,Jt.jsx)(Jt.Fragment,{children:a?(0,Jt.jsx)(c,{className:d,type:"button",disabled:n,ref:m,...s,children:s.children}):(0,Jt.jsxs)(c,{className:d,type:"button",disabled:n,ref:m,...s,children:[i&&(0,Jt.jsx)(Eo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Ee.displayName="Button";var os=require("qrcode.react");var ra=h(require("react"),1),ts=require("@heroicons/react/16/solid"),le=h(require("@radix-ui/react-dialog"),1);var Ie=require("react/jsx-runtime"),$e=le.Root,Ho=le.Trigger,Bi=le.Portal,La=le.Close,za=ra.forwardRef(({className:e,...o},t)=>(0,Ie.jsx)(le.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}));za.displayName=le.Overlay.displayName;var He=ra.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:m,...c},d)=>{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]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},y=[p.base,p[i],g[a],u[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,Ie.jsxs)(Bi,{children:[(0,Ie.jsx)(za,{}),(0,Ie.jsxs)(le.Content,{ref:d,className:r(...y),...c,children:[m,!t&&(0,Ie.jsxs)(le.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,Ie.jsx)(ts.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Ie.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});He.displayName=le.Content.displayName;var vo=({className:e,...o})=>(0,Ie.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});vo.displayName="DialogHeader";var ot=({className:e,isCondensed:o=!1,...t})=>(0,Ie.jsx)("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});ot.displayName="DialogBody";var Oi=({className:e,isDivider:o=!0,...t})=>(0,Ie.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});Oi.displayName="DialogFooter";var ho=ra.forwardRef(({className:e,...o},t)=>(0,Ie.jsx)(le.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));ho.displayName=le.Title.displayName;var Vi=ra.forwardRef(({className:e,...o},t)=>(0,Ie.jsx)(le.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));Vi.displayName=le.Description.displayName;var w=require("react/jsx-runtime"),td=({img:e="",children:o,isQrForAll:t})=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"qrcode__scan__container",children:(0,w.jsxs)("div",{className:"qrcode__scan",children:[(0,w.jsx)("div",{className:"qrcode__gradient",children:(0,w.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,w.jsx)("div",{className:"qrcode__border",children:(0,w.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,w.jsx)("div",{className:"p-4 qrcode__image",children:e?(0,w.jsx)("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),(0,w.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,w.jsxs)(w.Fragment,{children:[(0,w.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,w.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,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,w.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,w.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,w.jsx)("style",{children:`
1
+ "use strict";var Uc=Object.create;var Aa=Object.defineProperty;var qc=Object.getOwnPropertyDescriptor;var Xc=Object.getOwnPropertyNames;var Yc=Object.getPrototypeOf,Zc=Object.prototype.hasOwnProperty;var Kc=(e,o)=>{for(var t in o)Aa(e,t,{get:o[t],enumerable:!0})},$n=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of Xc(o))!Zc.call(e,i)&&i!==t&&Aa(e,i,{get:()=>o[i],enumerable:!(a=qc(o,i))||a.enumerable});return e};var h=(e,o,t)=>(t=e!=null?Uc(Yc(e)):{},$n(o||!e||!e.__esModule?Aa(t,"default",{value:e,enumerable:!0}):t,e)),Jc=e=>$n(Aa({},"__esModule",{value:!0}),e);var of={};Kc(of,{Accordion:()=>gt,AccordionContent:()=>xt,AccordionItem:()=>vt,AccordionTrigger:()=>ht,ActionButton:()=>je,AlertDialog:()=>Is,AlertDialogAction:()=>mr,AlertDialogCancel:()=>cr,AlertDialogContent:()=>ir,AlertDialogDescription:()=>lr,AlertDialogFooter:()=>nr,AlertDialogHeader:()=>rr,AlertDialogOverlay:()=>oi,AlertDialogPortal:()=>ar,AlertDialogTitle:()=>sr,AlertDialogTrigger:()=>As,AspectRatio:()=>q,Badge:()=>Hl,BlogSection:()=>hs,Breadcrumb:()=>Wi,BreadcrumbEllipsis:()=>qi,BreadcrumbItem:()=>$i,BreadcrumbLink:()=>ji,BreadcrumbList:()=>Gi,BreadcrumbPage:()=>Qi,BreadcrumbSeparator:()=>Ui,Button:()=>Ee,ButtonsBlock:()=>C,CTASection:()=>Jm,Calendar:()=>ca,Callout:()=>Xo,Card:()=>Hr,CardContent:()=>Or,CardDescription:()=>Br,CardFooter:()=>Vr,CardHeader:()=>_r,CardTitle:()=>Fr,Carousel:()=>Pe,CarouselContent:()=>Ce,CarouselDots:()=>wo,CarouselItem:()=>ye,CarouselNext:()=>yo,CarouselPrevious:()=>bo,Checkbox:()=>ma,ChoiceboxGroup:()=>Ca,ChoiceboxGroupItem:()=>ka,ChoiceboxMultiItem:()=>Yr,Combobox:()=>yl,ComboboxContent:()=>bl,ComboboxTrigger:()=>xl,Command:()=>fi,CommandDialog:()=>vl,CommandEmpty:()=>$r,CommandGroup:()=>jr,CommandInput:()=>Wr,CommandItem:()=>Ur,CommandList:()=>Gr,CommandSeparator:()=>Qr,CommandShortcut:()=>qr,Comment:()=>Xl,DatePicker:()=>Cs,DateSelect:()=>Ms,Dialog:()=>$e,DialogBody:()=>ot,DialogClose:()=>La,DialogContent:()=>He,DialogDescription:()=>Vi,DialogFooter:()=>Oi,DialogHeader:()=>vo,DialogOverlay:()=>za,DialogPortal:()=>Bi,DialogQr:()=>eo,DialogTitle:()=>ho,DialogTrigger:()=>Ho,Drawer:()=>Mn,DrawerBody:()=>_n,DrawerClose:()=>hc,DrawerContent:()=>An,DrawerDescription:()=>Hn,DrawerFooter:()=>zn,DrawerHeader:()=>Ln,DrawerOverlay:()=>zi,DrawerPortal:()=>In,DrawerTitle:()=>En,DrawerTrigger:()=>vc,DropdownMenu:()=>am,DropdownMenuCheckboxItem:()=>ln,DropdownMenuContent:()=>nn,DropdownMenuGroup:()=>rm,DropdownMenuItem:()=>sn,DropdownMenuLabel:()=>cn,DropdownMenuPortal:()=>nm,DropdownMenuRadioGroup:()=>lm,DropdownMenuRadioItem:()=>mn,DropdownMenuSeparator:()=>dn,DropdownMenuShortcut:()=>pn,DropdownMenuSub:()=>sm,DropdownMenuSubContent:()=>rn,DropdownMenuSubTrigger:()=>an,DropdownMenuTrigger:()=>im,FAQSection:()=>Xm,FeatureSection:()=>Fm,Footer:()=>gl,GuideSection:()=>Fs,HeaderNavigation:()=>zr,Heading:()=>_a,HeadingBlock:()=>N,HeadingGroup:()=>Ba,HeadingSub:()=>Fa,HeadingTagline:()=>Ha,HeroSection:()=>xm,HorizontalContent:()=>wt,HorizontalNext:()=>Pt,HorizontalPrevious:()=>Nt,HorizontalScroll:()=>yt,HowItWorksSection:()=>pm,IconButton:()=>ue,InputOTP:()=>Fn,InputOTPGroup:()=>Bn,InputOTPSeparator:()=>Vn,InputOTPSlot:()=>On,LightBoxGalleryContent:()=>gi,LightboxGallery:()=>ui,LightboxThumbnail:()=>Ml,MetricsSection:()=>ec,NavigationMenu:()=>ga,NavigationMenuContent:()=>ya,NavigationMenuItem:()=>ha,NavigationMenuLink:()=>Uo,NavigationMenuList:()=>va,NavigationMenuTrigger:()=>ba,NewsSection:()=>Zm,Pagination:()=>ur,Payment:()=>Sn,PaymentGuide:()=>Hi,PaymentGuideDialog:()=>_i,PaymentInvoice:()=>oc,PaymentMethods:()=>rc,PaymentResult:()=>fc,PaymentResultContent:()=>mc,PaymentResultFooter:()=>sc,Popover:()=>Vo,PopoverContent:()=>No,PopoverTrigger:()=>Wo,ProgressSteps:()=>om,ProgressStepsItem:()=>tm,ProgressStepsItemTrigger:()=>em,Progressbar:()=>en,QRPayment:()=>Cc,RadioGroup:()=>Ar,RadioGroupItem:()=>Lr,ReadMoreLite:()=>hi,SearchBar:()=>kl,SectionBlock:()=>J,Select:()=>Go,SelectContent:()=>Co,SelectGroup:()=>jo,SelectItem:()=>jt,SelectLabel:()=>er,SelectScrollDownButton:()=>ei,SelectScrollUpButton:()=>Ja,SelectSeparator:()=>tr,SelectTrigger:()=>Po,SelectValue:()=>$o,SiteMeta:()=>jc,Skeleton:()=>Ta,Slider:()=>tn,SocialProofSection:()=>km,Spinner:()=>vi,Stepper:()=>Sr,Switch:()=>Mr,Tabs:()=>Ct,TabsContent:()=>nt,TabsList:()=>it,TabsTrigger:()=>rt,TestimonialSection:()=>Um,TextArea:()=>Ws,TextButton:()=>Ne,TextInput:()=>Ys,ToastAction:()=>yr,Toaster:()=>Qs,Tooltip:()=>qs,TooltipArrow:()=>kr,TooltipContent:()=>Rr,TooltipProvider:()=>Us,TooltipTrigger:()=>Xs,Topbar:()=>uc,badgeVariants:()=>Zr,buttonVariants:()=>tt,mobaseTW:()=>$c,navigationMenuTriggerStyle:()=>xa,textButtonVariants:()=>Yi,toast:()=>hr,useToast:()=>li});module.exports=Jc(of);var ia=h(require("react"),1),Zn=require("@heroicons/react/20/solid"),Ge=h(require("@radix-ui/react-accordion"),1);var Qn=h(require("react"),1),Un=require("@artsy/fresnel"),qn=h(require("html-react-parser"),1),Xn=require("tailwind-merge");var Ft={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 jn={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 aa=[{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"}],Fi=[{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 Te={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"}};function r(...e){return(0,Xn.twMerge)(e)}var Yn=(0,Un.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),nf=Yn.createMediaStyle(),{Media:ut,MediaContextProvider:zo}=Yn,v=e=>e?Qn.isValidElement(e)||typeof e=="object"&&"$typeof"in e?e:typeof e=="string"?(0,qn.default)(e):e:null;var Bt=require("react/jsx-runtime"),gt=ia.forwardRef(({className:e,...o},t)=>(0,Bt.jsx)(Ge.Root,{ref:t,...o}));gt.displayName="AccordionRoot";var vt=ia.forwardRef(({className:e,...o},t)=>(0,Bt.jsx)(Ge.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));vt.displayName="AccordionItem";var ht=ia.forwardRef(({className:e,children:o,...t},a)=>(0,Bt.jsx)(Ge.Header,{className:"flex",children:(0,Bt.jsxs)(Ge.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,Bt.jsx)(Zn.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));ht.displayName=Ge.Trigger.displayName;var xt=ia.forwardRef(({className:e,children:o,...t},a)=>(0,Bt.jsx)(Ge.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,Bt.jsx)("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));xt.displayName=Ge.Content.displayName;var Kn=h(require("react"),1),Jn=require("@radix-ui/react-slot"),es=require("class-variance-authority");var Se=require("react/jsx-runtime"),ed=({className:e})=>(0,Se.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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,Se.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"})]}),Eo=ed;var Jt=require("react/jsx-runtime"),tt=(0,es.cva)("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white 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:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Ee=Kn.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let c=a?Jn.Slot:"button",d=r(tt({variant:o,size:t,className:e}),{"cursor-wait":i});return(0,Jt.jsx)(Jt.Fragment,{children:a?(0,Jt.jsx)(c,{className:d,type:"button",disabled:n,ref:l,...s,children:s.children}):(0,Jt.jsxs)(c,{className:d,type:"button",disabled:n,ref:l,...s,children:[i&&(0,Jt.jsx)(Eo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Ee.displayName="Button";var os=require("qrcode.react");var ra=h(require("react"),1),ts=require("@heroicons/react/16/solid"),le=h(require("@radix-ui/react-dialog"),1);var Ie=require("react/jsx-runtime"),$e=le.Root,Ho=le.Trigger,Bi=le.Portal,La=le.Close,za=ra.forwardRef(({className:e,...o},t)=>(0,Ie.jsx)(le.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}));za.displayName=le.Overlay.displayName;var He=ra.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...c},d)=>{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"},u={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},g={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},y=[p.base,p[i],u[a],g[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,Ie.jsxs)(Bi,{children:[(0,Ie.jsx)(za,{}),(0,Ie.jsxs)(le.Content,{ref:d,className:r(...y),...c,children:[l,!t&&(0,Ie.jsxs)(le.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,Ie.jsx)(ts.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Ie.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});He.displayName=le.Content.displayName;var vo=({className:e,...o})=>(0,Ie.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});vo.displayName="DialogHeader";var ot=({className:e,isCondensed:o=!1,...t})=>(0,Ie.jsx)("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});ot.displayName="DialogBody";var Oi=({className:e,isDivider:o=!0,...t})=>(0,Ie.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});Oi.displayName="DialogFooter";var ho=ra.forwardRef(({className:e,...o},t)=>(0,Ie.jsx)(le.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));ho.displayName=le.Title.displayName;var Vi=ra.forwardRef(({className:e,...o},t)=>(0,Ie.jsx)(le.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));Vi.displayName=le.Description.displayName;var w=require("react/jsx-runtime"),td=({img:e="",children:o,isQrForAll:t})=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"qrcode__scan__container",children:(0,w.jsxs)("div",{className:"qrcode__scan",children:[(0,w.jsx)("div",{className:"qrcode__gradient",children:(0,w.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,w.jsx)("div",{className:"qrcode__border",children:(0,w.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,w.jsx)("div",{className:"p-4 qrcode__image",children:e?(0,w.jsx)("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),(0,w.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,w.jsxs)(w.Fragment,{children:[(0,w.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,w.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,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,w.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,w.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,w.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
- `})]}),eo=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:m=!1,...c})=>(0,w.jsx)($e,{...c,children:(0,w.jsx)(He,{className:r("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:(0,w.jsx)(ot,{className:"p-0",children:(0,w.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,w.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,w.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,w.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,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,w.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,w.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,w.jsx)("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",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,w.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,w.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,w.jsxs)("div",{className:"relative",children:[m&&(0,w.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,w.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,w.jsx)(td,{img:i,isQrForAll:m,children:n&&(0,w.jsx)(os.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 is=require("react");var _o=require("react"),as=h(require("ua-parser-js"),1),od=()=>(0,as.default)().device.type==="mobile",ad=typeof window<"u"?_o.useLayoutEffect:_o.useEffect,Fo=()=>{let[e,o]=(0,_o.useState)(!1);return ad(()=>{o(od())},[]),e};var Ot=require("react/jsx-runtime"),je=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[m,c]=(0,is.useState)(!1),d=Fo(),p=!!a?.qrLink,g=()=>{let X=p?a?.qrLink:e;return typeof X=="string"?X.trim():""},u=()=>{let X=g();!X&&typeof e!="function"||(typeof e=="function"?e():window.open(X,o?"_blank":"_self"))},y=(X,oe=0)=>{let U=document.querySelector(X);if(!U)return;let M=U.getBoundingClientRect().top+window.scrollY-oe;window.scrollTo({top:M,behavior:"smooth"})},I=()=>{typeof e=="string"&&e.startsWith("#")?y(e,t):u()},D=()=>(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Ee,{...s,className:i,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Ot.jsx)(eo,{...a,open:m,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?D():(0,Ot.jsx)(Ee,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):D():(0,Ot.jsx)(Ee,{...s,onClick:I,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var Bo=h(require("react"),1),Ea=require("@radix-ui/react-icons"),rs=require("@radix-ui/react-slot");var Qe=require("react/jsx-runtime"),Wi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Wi.displayName="Breadcrumb";var Gi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.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}));Gi.displayName="BreadcrumbList";var $i=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));$i.displayName="BreadcrumbItem";var ji=Bo.forwardRef(({asChild:e,className:o,...t},a)=>(0,Qe.jsx)(e?rs.Slot:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));ji.displayName="BreadcrumbLink";var Qi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Qi.displayName="BreadcrumbPage";var Ui=({children:e,className:o,...t})=>(0,Qe.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??(0,Qe.jsx)(Ea.ChevronRightIcon,{className:"w-2 h-2"})});Ui.displayName="BreadcrumbSeparator";var qi=({className:e,...o})=>(0,Qe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Qe.jsx)(Ea.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Qe.jsx)("span",{className:"sr-only",children:"More"})]});qi.displayName="BreadcrumbElipssis";var na=require("react");var Oo=require("react/jsx-runtime"),Xi=(0,na.createContext)({align:"center"}),Ha=({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,Oo.jsx)("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},_a=({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:d}=(0,na.useContext)(Xi);return(0,Oo.jsx)(s,{className:r("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",m[t],c[o],a&&"truncate",i),children:n})},Fa=({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:d}=(0,na.useContext)(Xi);return(0,Oo.jsx)("div",{className:r(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],m[o],c[t],a&&"truncate",i),children:n})},Ba=({className:e,align:o="center",children:t})=>(0,Oo.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Oo.jsx)(Xi.Provider,{value:{align:o},children:t})});var bt=require("react/jsx-runtime"),J=({idSection:e,className:o,background:t,children:a})=>(0,bt.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,bt.jsx)("div",{className:"wrapper relative",children:a})}),N=({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",d=n==="pink"?"pink":n==="white"?"white":"regular",p=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,bt.jsxs)(Ba,{align:e,className:m,children:[o&&(0,bt.jsx)(Ha,{color:c,children:o}),t&&(0,bt.jsx)(_a,{tagHeading:i,color:d,size:s,children:v(t)}),a&&(0,bt.jsx)(Fa,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:v(a)})]})},C=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,bt.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,bt.jsx)(je,{...m,className:r(o&&"w-full md:w-auto",i?.className),children:v(s)},n)})});var $a=h(require("react"),1),gs=require("@heroicons/react/20/solid");var Le=require("react"),Oa=require("lucide-react");var ns=h(require("react"),1),ss=require("@radix-ui/react-slot"),ls=require("class-variance-authority");var ms=require("react/jsx-runtime"),xo=(0,ls.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"}}),ge=ns.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?ss.Slot:"button",c=r(xo({variant:o,size:t,className:e}));return(0,ms.jsx)(m,{className:c,disabled:i,ref:s,...n,children:n.children})});ge.displayName="IconButton";var Ae=require("react/jsx-runtime"),Va=(0,Le.createContext)(void 0),yt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=(0,Le.useRef)(null),[n,s]=(0,Le.useState)({left:!1,right:!1}),m=(0,Le.useCallback)(()=>{let d=i.current;if(d){let{scrollLeft:p,scrollWidth:g,clientWidth:u}=d;s({left:p>0,right:Math.ceil(p+u)<g})}},[]);(0,Le.useEffect)(()=>{let d=i.current;if(d)return m(),window.addEventListener("resize",m),d.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),d.removeEventListener("scroll",m)}},[m]);let c=d=>{let p=i.current;if(p){let{scrollLeft:g,clientWidth:u,scrollWidth:y}=p,I=u*.7*(d==="left"?-1:1),D=g+I;D<0?D=0:D>y-u&&(D=y-u),p.scrollTo({left:D,behavior:"smooth"})}};return(0,Ae.jsx)(Va.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Ae.jsxs)("div",{className:r("relative w-full",t),children:[e&&(0,Ae.jsxs)(Ae.Fragment,{children:[n.left&&(0,Ae.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,Ae.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]})})},wt=({className:e,children:o})=>{let t=(0,Le.useContext)(Va);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Ae.jsx)("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},Nt=({className:e,children:o,...t})=>{let a=(0,Le.useContext)(Va);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Ae.jsx)(ge,{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,Ae.jsx)(Oa.ChevronLeft,{className:"h-4 w-4"})}):null},Pt=({className:e,children:o,...t})=>{let a=(0,Le.useContext)(Va);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Ae.jsx)(ge,{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,Ae.jsx)(Oa.ChevronRight,{className:"h-4 w-4"})}):null};var Wa=h(require("react"),1),at=h(require("@radix-ui/react-tabs"),1);var Ga=require("react/jsx-runtime"),Ct=at.Root,it=Wa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>(0,Ga.jsx)(at.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}));it.displayName=at.List.displayName;var rt=Wa.forwardRef(({className:e,...o},t)=>(0,Ga.jsx)(at.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}));rt.displayName=at.Trigger.displayName;var nt=Wa.forwardRef(({className:e,...o},t)=>(0,Ga.jsx)(at.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}));nt.displayName=at.Content.displayName;var cs=h(require("react"),1),ds=require("@radix-ui/react-slot"),ps=require("class-variance-authority");var fs=require("react/jsx-runtime"),Yi=(0,ps.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"}}),Ne=cs.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?ds.Slot:"button",c=r(Yi({variant:o,size:t,className:e}));return(0,fs.jsx)(m,{className:c,disabled:i,ref:s,...n,children:n.children})});Ne.displayName="TextButton";var A=require("react/jsx-runtime"),id=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"flex-none basis-1/2 pr-3 md:basis-full md:pr-0",children:(0,A.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,A.jsxs)("picture",{children:[(0,A.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,A.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,A.jsxs)("div",{className:"basis-1/2 overflow-hidden md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,A.jsx)(Ne,{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,A.jsx)("div",{className:"line-clamp-3 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,A.jsxs)("div",{className:"mt-2 flex items-center md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Ne,{variant:"default",className:"shink-0 hidden justify-start whitespace-normal text-left text-xs md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,A.jsx)("span",{className:"hidden flex-none leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,A.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},ja=(0,$a.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,g,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(g):window.open(u,"_blank")},d=(p,g)=>(0,A.jsxs)("div",{children:[(0,A.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((u,y)=>(0,A.jsx)("div",{className:"min-w-0 basis-full px-3 md:basis-1/2 lg:basis-1/3",children:(0,A.jsx)("div",{onClick:I=>c(I,u?.id,u?.url),className:r("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,A.jsx)(id,{blog:u})},u?.id)},y))}),p?.isShowBtn&&(0,A.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,A.jsxs)(je,{action:i?()=>i?.(g):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[v(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,A.jsx)(Eo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,A.jsx)(gs.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||g);return(0,A.jsxs)($a.default.Fragment,{children:[e&&(0,A.jsx)(N,{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,A.jsxs)(Ct,{defaultValue:t[0]?.title,children:[(0,A.jsxs)(yt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,A.jsx)(wt,{className:"mb-6 text-center",children:(0,A.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,g)=>(0,A.jsx)(rt,{value:p.title,children:p.title},p.title+g))})}),(0,A.jsx)(Nt,{}),(0,A.jsx)(Pt,{})]}),t.map((p,g)=>(0,A.jsx)(nt,{value:p.title,children:d(p,g)},p.title+g))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Vt=h(require("react"),1),Ua=require("@heroicons/react/20/solid");var Y=h(require("react"),1),Qa=require("@heroicons/react/20/solid"),us=h(require("embla-carousel-react"),1);var ue=require("react/jsx-runtime"),vs=Y.createContext(null);function sa(){let e=Y.useContext(vs);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Pe=Y.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},m)=>{let[c,d]=(0,us.default)({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[p,g]=Y.useState(!1),[u,y]=Y.useState(!1),I=Y.useCallback(oe=>{oe&&(g(oe.canScrollPrev()),y(oe.canScrollNext()))},[]),D=Y.useCallback(()=>{d?.scrollPrev()},[d]),z=Y.useCallback(()=>{d?.scrollNext()},[d]),X=Y.useCallback(oe=>{oe.key==="ArrowLeft"?(oe.preventDefault(),D()):oe.key==="ArrowRight"&&(oe.preventDefault(),z())},[D,z]);return Y.useEffect(()=>{!d||!t||t(d)},[d,t]),Y.useEffect(()=>{if(d)return I(d),d.on("reInit",I),d.on("select",I),()=>{d?.off("select",I)}},[d,I]),(0,ue.jsx)(vs.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:z,canScrollPrev:p,canScrollNext:u},children:(0,ue.jsx)("div",{ref:m,onKeyDownCapture:X,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Pe.displayName="Carousel";var Ce=Y.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=sa();return(0,ue.jsx)("div",{ref:i,className:r("overflow-hidden",o),children:(0,ue.jsx)("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Ce.displayName="CarouselContent";var ye=Y.forwardRef(({className:e,...o},t)=>{let{orientation:a}=sa();return(0,ue.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})});ye.displayName="CarouselItem";var bo=Y.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:m}=sa();return(0,ue.jsxs)(ge,{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,ue.jsx)(Qa.ChevronLeftIcon,{className:"h-6 w-6"}),(0,ue.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});bo.displayName="CarouselPrevious";var yo=Y.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:m}=sa();return(0,ue.jsxs)(ge,{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,ue.jsx)(Qa.ChevronRightIcon,{className:"h-6 w-6"}),(0,ue.jsx)("span",{className:"sr-only",children:"Next slide"})]})});yo.displayName="CarouselNext";var wo=Y.forwardRef((e,o)=>{let{api:t}=sa(),[,a]=Y.useState(!1),i=Y.useCallback(()=>a(m=>!m),[]);Y.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,ue.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(m,c)=>(0,ue.jsx)(ge,{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,ue.jsx)(ue.Fragment,{})});wo.displayName="CarouselDots";var R=require("react/jsx-runtime"),rd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,R.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,R.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,R.jsx)("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight",children:e?.title}),e?.description&&(0,R.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:v(e?.description??"")}),(0,R.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Ne,{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,R.jsx)("span",{className:"flex-none leading-none text-gray-300",children:"\xB7"})]}),e?.totalViews&&(0,R.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},nd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:m,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,Vt.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Pe,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,R.jsx)(Ce,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(g=>(0,R.jsx)(ye,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,R.jsx)("div",{onClick:u=>i(u,g?.id,g?.url),className:r("group cursor-pointer",p),children:(0,R.jsx)(rd,{blog:g})},g?.id)},g?.id))})}),s&&(0,R.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10",children:(0,R.jsxs)(je,{action:c&&c,newTab:d,variant:"outline",children:[v(m||"Xem th\xEAm")," "]})})]})},sd=({carouselRef:e})=>(0,R.jsxs)(ge,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,R.jsx)(Ua.ChevronLeftIcon,{className:"h-6 w-6"}),(0,R.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),ld=({carouselRef:e})=>(0,R.jsxs)(ge,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,R.jsx)(Ua.ChevronRightIcon,{className:"h-6 w-6"}),(0,R.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Zi=(0,Vt.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(g,"_blank")},[n,s]=(0,Vt.useState)(null),[,m]=(0,Vt.useState)(0),c=()=>n?(0,R.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,R.jsx)(sd,{carouselRef:n}),(0,R.jsx)(ld,{carouselRef:n})]}):(0,R.jsx)(R.Fragment,{});return(0,R.jsxs)(Vt.default.Fragment,{children:[(0,R.jsxs)("div",{className:"flex items-center justify-between",children:[e&&(0,R.jsx)(N,{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,R.jsx)(c,{})]}),(0,R.jsx)(nd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:m,handleOnClickItem:i})]})});var Wt=require("react/jsx-runtime"),md=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Wt.jsx)(ja,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return(0,Wt.jsx)(Zi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Wt.jsx)(ja,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},cd=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Wt.jsx)(Wt.Fragment,{children:md({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),hs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:m,onClickLoadMore:c})=>(0,Wt.jsx)(J,{className:r("overflow-hidden",i),idSection:a,background:n,children:(0,Wt.jsx)(cd,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:m,onClickLoadMore:c})});var Xa=h(require("react"),1),Ya=require("date-fns/locale"),Za=require("lucide-react"),ys=h(require("lunisolar"),1),ws=require("react-day-picker");var xs=h(require("react"),1),la=h(require("@radix-ui/react-checkbox"),1),bs=require("@heroicons/react/16/solid"),Ki=require("class-variance-authority");var qa=require("react/jsx-runtime"),dd=(0,Ki.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"}}),pd=(0,Ki.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),ma=xs.forwardRef(({className:e,size:o,...t},a)=>(0,qa.jsx)(la.Root,{ref:a,className:r(dd({size:o}),e),...t,children:(0,qa.jsx)(la.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,qa.jsx)(bs.CheckIcon,{className:r(pd({size:o}))})})}));ma.displayName=la.Root.displayName;var we=require("react/jsx-runtime"),fd=({date:e,cusContent:o})=>{let t=null;return t=(0,ys.default)(e).lunar,(0,we.jsxs)(we.Fragment,{children:[o?o(e):e.getDate(),t&&(0,we.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},gd={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 ud({isShow:e,setIsShow:o,lang:t}){let a=Xa.useId();return(0,we.jsx)("div",{className:"w-full p-3 pt-0",children:(0,we.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,we.jsx)(ma,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),(0,we.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] 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 vd=e=>e.getDay()===0||e.getDay()===6;function ca({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[m,c]=Xa.useState(!0);return(0,we.jsx)(ws.DayPicker,{locale:i==="vi"?Ya.vi:Ya.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(tt({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(tt({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:vd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,we.jsx)(Za.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,we.jsx)(Za.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,we.jsx)(fd,{date:d.date,cusContent:n}),Months:({children:d})=>(0,we.jsxs)("div",{className:"w-full",children:[(0,we.jsx)("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,we.jsx)(ud,{isShow:m,setIsShow:c,lang:i})]})},formatters:i==="vi"?gd:{},...s})}ca.displayName="Calendar";var Ka=require("@heroicons/react/16/solid"),da=require("date-fns"),Ps=require("lucide-react");var Ns=h(require("react"),1),Gt=h(require("@radix-ui/react-popover"),1);var Ji=require("react/jsx-runtime"),Vo=Gt.Root,Wo=Gt.Trigger,No=Ns.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>(0,Ji.jsx)(Gt.Portal,{children:(0,Ji.jsx)(Gt.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})}));No.displayName=Gt.Content.displayName;var ae=require("react/jsx-runtime"),Cs=({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:d,popoverContentProps:p})=>{let g=d?.selected||null;return(0,ae.jsxs)("div",{children:[(0,ae.jsxs)(Vo,{...c,children:[(0,ae.jsx)(Wo,{asChild:!0,children:(0,ae.jsxs)(Ee,{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,ae.jsx)("div",{className:"line-clamp-1 flex-1",children:g instanceof Date?(0,da.format)(g,s):g&&typeof g=="object"&&"from"in g&&"to"in g?(0,ae.jsx)(ae.Fragment,{children:g.from?g.to?(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)("span",{className:"date-from",children:(0,da.format)(g.from,s)})," ",(0,ae.jsx)("span",{className:"date-separator",children:"-"}),(0,ae.jsx)("span",{className:"date-to",children:(0,da.format)(g.to,s)})]}):(0,da.format)(g.from,s):o}):o}),e&&(0,ae.jsx)("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),(0,ae.jsx)(Ps.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,ae.jsx)(No,{className:"w-auto border-none !p-0",...p,children:(0,ae.jsx)(ca,{...d,defaultMonth:g&&typeof g=="object"&&"from"in g?g.from:g instanceof Date?g:void 0})})]}),a&&(0,ae.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?(0,ae.jsx)(Ka.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ae.jsx)(Ka.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ae.jsx)("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var pa=require("react"),ti=require("@heroicons/react/16/solid"),Ds=require("date-fns");var kt=h(require("react"),1),$t=require("@heroicons/react/16/solid"),ks=require("@heroicons/react/24/outline"),E=h(require("@radix-ui/react-select"),1);var V=require("react/jsx-runtime"),Go=kt.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...m},c)=>(0,V.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,V.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,V.jsx)(E.Root,{disabled:s,...m,children:o}),a&&(0,V.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,V.jsx)($t.XCircleIcon,{width:16,height:16}):(0,V.jsx)(ks.QuestionMarkCircleIcon,{width:16,height:16}),(0,V.jsx)("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),$o=E.Value,Po=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(E.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,V.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,V.jsx)(E.Icon,{asChild:!0,children:(0,V.jsx)($t.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Po.displayName=E.Trigger.displayName;var Ja=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:(0,V.jsx)($t.ChevronUpIcon,{className:"h-5 w-5"})}));Ja.displayName=E.ScrollUpButton.displayName;var ei=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.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,V.jsx)($t.ChevronDownIcon,{className:"h-5 w-5"})}));ei.displayName=E.ScrollDownButton.displayName;var Co=kt.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>(0,V.jsx)(E.Portal,{children:(0,V.jsxs)(E.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,V.jsx)(Ja,{}),(0,V.jsx)(E.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,V.jsx)(ei,{})]})}));Co.displayName=E.Content.displayName;var jo=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsx)(E.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),er=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));er.displayName=E.Label.displayName;var jt=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(E.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,V.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,V.jsx)(E.ItemIndicator,{children:(0,V.jsx)($t.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,V.jsx)(E.ItemText,{children:o})]})),tr=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));tr.displayName=E.Separator.displayName;var Rs=["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"],Ts=["January","February","March","April","May","June","July","August","September","October","November","December"],or=(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}},Ss=(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 B=require("react/jsx-runtime"),Ms=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:m="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:g=!1})=>{let[u,y]=(0,pa.useState)(o??null),I=Math.min(d,p),D=Math.max(d,p),z=m==="MM/yyyy",X=(M,be)=>{if(be===0){y(void 0),t?.(void 0);return}let re=u?.getFullYear()||new Date().getFullYear(),Ia=u?.getMonth()??0,uo=u?.getDate()??1;M==="month"&&be!==null&&(Ia=be-1),M==="year"&&be!==null&&(re=be),z?uo=1:M==="day"&&be!==null&&(uo=be);let Gn=or(re,Ia+1).daysInMonth;uo>Gn&&(uo=1);let oa=new Date(re,Ia,uo);(0,Ds.isValid)(oa)&&(y(oa),t?.(oa))},[oe,U]=(0,pa.useState)(!1),go=M=>{U(M)};return(0,pa.useEffect)(()=>{y(o??null)},[o]),(0,B.jsxs)("div",{className:r("relative",s&&"cursor-no-drop"),children:[(0,B.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",u?"":"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,B.jsx)("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,B.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!z&&(0,B.jsxs)(Go,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:M=>X("day",parseInt(M,10)),onOpenChange:go,className:"w-[30%]",children:[(0,B.jsx)(Po,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!g&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:or(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(M,be)=>(be+1).toString().padStart(2,"0")).map(M=>(0,B.jsx)(jt,{value:M,children:M},M))]})})]}),(0,B.jsxs)(Go,{value:u?(u.getMonth()+1).toString():"",onValueChange:M=>X("month",parseInt(M,10)),onOpenChange:go,className:r(z?"w-1/2":"w-2/5"),children:[(0,B.jsx)(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!g&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(M,be)=>be+1).map(M=>(0,B.jsx)(jt,{value:M.toString(),children:c==="vi"?Rs[M-1]:Ts[M-1]},M))]})})]}),(0,B.jsxs)(Go,{value:u?u.getFullYear().toString():"",onValueChange:M=>X("year",parseInt(M,10)),onOpenChange:go,className:r(z?"w-1/2":"w-[30%]"),children:[(0,B.jsx)(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!g&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Ss(I,D).map(M=>(0,B.jsx)(jt,{value:M.toString(),children:M},M))]})})]})]})]}),i&&(0,B.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,B.jsx)(ti.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,B.jsx)(ti.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,B.jsx)("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};var ko=h(require("react"),1),ee=h(require("@radix-ui/react-alert-dialog"),1);var Ue=require("react/jsx-runtime"),Is=ee.Root,As=ee.Trigger,ar=ee.Portal,oi=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.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}));oi.displayName=ee.Overlay.displayName;var ir=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsxs)(ar,{children:[(0,Ue.jsx)(oi,{}),(0,Ue.jsx)(ee.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})]}));ir.displayName=ee.Content.displayName;var rr=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...o});rr.displayName="AlertDialogHeader";var nr=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...o});nr.displayName="AlertDialogFooter";var sr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));sr.displayName=ee.Title.displayName;var lr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));lr.displayName=ee.Description.displayName;var mr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Action,{ref:t,className:r(tt({variant:"primary"}),"",e),...o}));mr.displayName=ee.Action.displayName;var cr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Cancel,{ref:t,className:r(tt({variant:"secondary"}),e),...o}));cr.displayName=ee.Cancel.displayName;var ai=require("react");var fa=require("react"),zs=require("motion/react");var Ls=h(require("@radix-ui/react-aspect-ratio"),1),q=Ls.Root;var $=require("react/jsx-runtime"),hd=({guideGroup:e,mockup:o})=>{let[t,a]=(0,fa.useState)(),[i,n]=(0,fa.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,fa.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)(Pe,{setApi:a,children:[(0,$.jsx)(Ce,{className:"ml-0",children:e?.stepList.map((m,c)=>(0,$.jsx)(ye,{className:"pl-0",children:(0,$.jsx)(q,{ratio:o==="small"?540/960:540/1168,children:m?.image&&(0,$.jsx)("img",{src:m.image,className:"size-full object-contain",alt:m.title})})},c))}),(0,$.jsx)(bo,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,$.jsx)(yo,{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 pl-12 pt-4",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:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 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 z-10 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:v(m.title)}),m.content&&(0,$.jsx)(zs.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:v(m.content)})})]},c))})})]})})},dr=hd;var Qt=require("react"),pr=require("@heroicons/react/20/solid"),Es=h(require("embla-carousel-autoplay"),1);var x=require("react/jsx-runtime"),xd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=(0,Qt.useState)(0),[s,m]=(0,Qt.useState)();return(0,Qt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,x.jsx)($e,{open:e,onOpenChange:o,children:(0,x.jsxs)(He,{position:"bottom",height:"full",children:[(0,x.jsx)(vo,{children:(0,x.jsx)(ho,{className:"line-clamp-1",children:t?.title})}),(0,x.jsxs)(ot,{className:"grid overflow-hidden p-0",children:[(0,x.jsx)(Pe,{setApi:m,className:"grid overflow-hidden",children:(0,x.jsx)(Ce,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,x.jsx)(ye,{className:"h-full w-full pl-0",children:(0,x.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,x.jsx)("div",{className:"relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,x.jsx)("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:(0,x.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,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.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,x.jsx)(q,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,x.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,x.jsxs)("div",{className:"p-5 pb-12",children:[(0,x.jsx)("div",{className:"font-semibold",children:v(c.title)}),c?.content&&(0,x.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:v(c.content)})]})]})},d))})}),(0,x.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,d)=>(0,x.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},bd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=(0,Qt.useState)(!1),[n,s]=(0,Qt.useState)(null),m=(0,Qt.useRef)((0,Es.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),i(!0)};return e?.length===0?null:(0,x.jsxs)(x.Fragment,{children:[e?.length>1?(0,x.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,p)=>(0,x.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5",onClick:()=>c(p),children:[(0,x.jsx)("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,x.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:d.title})}),(0,x.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,x.jsxs)("div",{className:"py-2",children:[t&&(0,x.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,x.jsx)("div",{className:"font-semibold",children:v(d.title)}),d?.description&&(0,x.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:v(d.description)})]}),(0,x.jsx)("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,x.jsx)(pr.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,x.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,x.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,x.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,x.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,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,x.jsx)(Pe,{plugins:[m.current],children:(0,x.jsx)(Ce,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,x.jsx)(ye,{className:"pl-0",onClick:()=>c(0),children:(0,x.jsx)(q,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,x.jsx)("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},p))})})})]})})}),(0,x.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,x.jsxs)(Ne,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,x.jsx)(pr.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,x.jsx)(xd,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},Hs=bd;var Z=require("react/jsx-runtime"),_s=({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,Z.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,Z.jsx)("path",{d:t.d,fill:"currentColor"})})},fr=(0,ai.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:m,className:c}=o||{},[d,p]=(0,ai.useState)(t?.[0]?.title||"");return(0,Z.jsxs)(Z.Fragment,{children:[e&&(0,Z.jsx)(N,{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,Z.jsxs)(zo,{children:[(0,Z.jsx)(gt,{lessThan:"md",children:(0,Z.jsx)(Hs,{dataGuide:t,mockup:i,isStep:n})}),(0,Z.jsx)(gt,{greaterThan:"sm",children:t?.length>1?(0,Z.jsxs)(Ct,{defaultValue:t[0]?.title,onValueChange:g=>p(g),children:[(0,Z.jsxs)(yt,{showGradientOverlay:s,gradientOverlayColor:m,className:c,children:[(0,Z.jsx)(wt,{className:"mb-6 text-center",children:(0,Z.jsx)(it,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((g,u)=>{let y=u===t.length-1,I=d===g?.title||"";return(0,Z.jsxs)(rt,{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":"",I&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&(0,Z.jsx)(_s,{direction:"left",className:r("right-full top-0",I?"text-pink-500":"text-pink-100")}),g.title,n&&!y&&(0,Z.jsx)(_s,{direction:"right",className:r("left-full top-0",I?"text-pink-500":"text-pink-100")})]},g.title+u)})})}),(0,Z.jsx)(Nt,{}),(0,Z.jsx)(Pt,{})]}),t.map((g,u)=>(0,Z.jsx)(nt,{value:g.title,children:(0,Z.jsx)(dr,{guideGroup:g,mockup:i})},g.title+u))]}):t?.length===1&&t[0]&&(0,Z.jsx)(dr,{guideGroup:t[0],mockup:i})})]}),a&&(0,Z.jsx)(C,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var to=require("react/jsx-runtime"),yd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return(0,to.jsx)(fr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return(0,to.jsx)(fr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},wd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>(0,to.jsx)(to.Fragment,{children:yd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),Fs=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,className:n,background:s,template:m=1,mockup:c="default",isStep:d=!1})=>(0,to.jsx)(J,{className:r(n),background:s,idSection:e,children:(0,to.jsx)(wd,{dataHeading:o,template:m,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:c,isStep:d})});var ii=require("lucide-react");var ve=require("react/jsx-runtime");function gr({current:e,total:o,onChange:t}){let a=i=>(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(xo({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return(0,ve.jsx)("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:(0,ve.jsxs)("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(xo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ve.jsx)(ii.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):(0,ve.jsxs)(ve.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(xo({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,ve.jsx)("button",{className:r(xo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(xo({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ve.jsx)(ii.ChevronRight,{className:"h-4 w-4"})})})]})})}var Bs=require("react"),Os=require("@heroicons/react/24/outline"),Vs=require("@heroicons/react/24/solid");var Rt=require("react/jsx-runtime"),Ws=(0,Bs.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:m=3,...c},d)=>(0,Rt.jsxs)("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&(0,Rt.jsx)("span",{className:r("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,Rt.jsx)("textarea",{disabled:e,ref:d,className:r("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:m,...c}),t&&(0,Rt.jsxs)("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?(0,Rt.jsx)(Vs.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Rt.jsx)(Os.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Rt.jsx)("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,Rt.jsx)("style",{children:`
70
+ `})]}),eo=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...c})=>(0,w.jsx)($e,{...c,children:(0,w.jsx)(He,{className:r("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:(0,w.jsx)(ot,{className:"p-0",children:(0,w.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,w.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,w.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,w.jsx)("div",{className:"mt-1 text-gray-500",children:l?"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,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,w.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,w.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,w.jsx)("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",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,w.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,w.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,w.jsxs)("div",{className:"relative",children:[l&&(0,w.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,w.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,w.jsx)(td,{img:i,isQrForAll:l,children:n&&(0,w.jsx)(os.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 is=require("react");var _o=require("react"),as=h(require("ua-parser-js"),1),od=()=>(0,as.default)().device.type==="mobile",ad=typeof window<"u"?_o.useLayoutEffect:_o.useEffect,Fo=()=>{let[e,o]=(0,_o.useState)(!1);return ad(()=>{o(od())},[]),e};var Ot=require("react/jsx-runtime"),je=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,c]=(0,is.useState)(!1),d=Fo(),p=!!a?.qrLink,u=()=>{let X=p?a?.qrLink:e;return typeof X=="string"?X.trim():""},g=()=>{let X=u();!X&&typeof e!="function"||(typeof e=="function"?e():window.open(X,o?"_blank":"_self"))},y=(X,oe=0)=>{let U=document.querySelector(X);if(!U)return;let M=U.getBoundingClientRect().top+window.scrollY-oe;window.scrollTo({top:M,behavior:"smooth"})},I=()=>{typeof e=="string"&&e.startsWith("#")?y(e,t):g()},D=()=>(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Ee,{...s,className:i,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Ot.jsx)(eo,{...a,open:l,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?D():(0,Ot.jsx)(Ee,{...s,className:i,onClick:g,"data-name":"button-action-with-qr",children:n}):D():(0,Ot.jsx)(Ee,{...s,onClick:I,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var Bo=h(require("react"),1),Ea=require("@radix-ui/react-icons"),rs=require("@radix-ui/react-slot");var Qe=require("react/jsx-runtime"),Wi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Wi.displayName="Breadcrumb";var Gi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.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}));Gi.displayName="BreadcrumbList";var $i=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));$i.displayName="BreadcrumbItem";var ji=Bo.forwardRef(({asChild:e,className:o,...t},a)=>(0,Qe.jsx)(e?rs.Slot:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));ji.displayName="BreadcrumbLink";var Qi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Qi.displayName="BreadcrumbPage";var Ui=({children:e,className:o,...t})=>(0,Qe.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??(0,Qe.jsx)(Ea.ChevronRightIcon,{className:"w-2 h-2"})});Ui.displayName="BreadcrumbSeparator";var qi=({className:e,...o})=>(0,Qe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Qe.jsx)(Ea.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Qe.jsx)("span",{className:"sr-only",children:"More"})]});qi.displayName="BreadcrumbElipssis";var na=require("react");var Oo=require("react/jsx-runtime"),Xi=(0,na.createContext)({align:"center"}),Ha=({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,Oo.jsx)("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},_a=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={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:d}=(0,na.useContext)(Xi);return(0,Oo.jsx)(s,{className:r("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",l[t],c[o],a&&"truncate",i),children:n})},Fa=({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"},l={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:d}=(0,na.useContext)(Xi);return(0,Oo.jsx)("div",{className:r(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],c[t],a&&"truncate",i),children:n})},Ba=({className:e,align:o="center",children:t})=>(0,Oo.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Oo.jsx)(Xi.Provider,{value:{align:o},children:t})});var bt=require("react/jsx-runtime"),J=({idSection:e,className:o,background:t,children:a})=>(0,bt.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,bt.jsx)("div",{className:"wrapper relative",children:a})}),N=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",p=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,bt.jsxs)(Ba,{align:e,className:l,children:[o&&(0,bt.jsx)(Ha,{color:c,children:o}),t&&(0,bt.jsx)(_a,{tagHeading:i,color:d,size:s,children:v(t)}),a&&(0,bt.jsx)(Fa,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:v(a)})]})},C=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,bt.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,...l}=i;return(0,bt.jsx)(je,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:v(s)},n)})});var $a=h(require("react"),1),us=require("@heroicons/react/20/solid");var Le=require("react"),Oa=require("lucide-react");var ns=h(require("react"),1),ss=require("@radix-ui/react-slot"),ls=require("class-variance-authority");var ms=require("react/jsx-runtime"),xo=(0,ls.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"}}),ue=ns.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?ss.Slot:"button",c=r(xo({variant:o,size:t,className:e}));return(0,ms.jsx)(l,{className:c,disabled:i,ref:s,...n,children:n.children})});ue.displayName="IconButton";var Ae=require("react/jsx-runtime"),Va=(0,Le.createContext)(void 0),yt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=(0,Le.useRef)(null),[n,s]=(0,Le.useState)({left:!1,right:!1}),l=(0,Le.useCallback)(()=>{let d=i.current;if(d){let{scrollLeft:p,scrollWidth:u,clientWidth:g}=d;s({left:p>0,right:Math.ceil(p+g)<u})}},[]);(0,Le.useEffect)(()=>{let d=i.current;if(d)return l(),window.addEventListener("resize",l),d.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),d.removeEventListener("scroll",l)}},[l]);let c=d=>{let p=i.current;if(p){let{scrollLeft:u,clientWidth:g,scrollWidth:y}=p,I=g*.7*(d==="left"?-1:1),D=u+I;D<0?D=0:D>y-g&&(D=y-g),p.scrollTo({left:D,behavior:"smooth"})}};return(0,Ae.jsx)(Va.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Ae.jsxs)("div",{className:r("relative w-full",t),children:[e&&(0,Ae.jsxs)(Ae.Fragment,{children:[n.left&&(0,Ae.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,Ae.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]})})},wt=({className:e,children:o})=>{let t=(0,Le.useContext)(Va);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Ae.jsx)("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},Nt=({className:e,children:o,...t})=>{let a=(0,Le.useContext)(Va);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Ae.jsx)(ue,{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,Ae.jsx)(Oa.ChevronLeft,{className:"h-4 w-4"})}):null},Pt=({className:e,children:o,...t})=>{let a=(0,Le.useContext)(Va);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Ae.jsx)(ue,{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,Ae.jsx)(Oa.ChevronRight,{className:"h-4 w-4"})}):null};var Wa=h(require("react"),1),at=h(require("@radix-ui/react-tabs"),1);var Ga=require("react/jsx-runtime"),Ct=at.Root,it=Wa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>(0,Ga.jsx)(at.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}));it.displayName=at.List.displayName;var rt=Wa.forwardRef(({className:e,...o},t)=>(0,Ga.jsx)(at.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}));rt.displayName=at.Trigger.displayName;var nt=Wa.forwardRef(({className:e,...o},t)=>(0,Ga.jsx)(at.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}));nt.displayName=at.Content.displayName;var cs=h(require("react"),1),ds=require("@radix-ui/react-slot"),ps=require("class-variance-authority");var fs=require("react/jsx-runtime"),Yi=(0,ps.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"}}),Ne=cs.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?ds.Slot:"button",c=r(Yi({variant:o,size:t,className:e}));return(0,fs.jsx)(l,{className:c,disabled:i,ref:s,...n,children:n.children})});Ne.displayName="TextButton";var A=require("react/jsx-runtime"),id=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"flex-none basis-1/2 pr-3 md:basis-full md:pr-0",children:(0,A.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,A.jsxs)("picture",{children:[(0,A.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,A.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,A.jsxs)("div",{className:"basis-1/2 overflow-hidden md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,A.jsx)(Ne,{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,A.jsx)("div",{className:"line-clamp-3 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,A.jsxs)("div",{className:"mt-2 flex items-center md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Ne,{variant:"default",className:"shink-0 hidden justify-start whitespace-normal text-left text-xs md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,A.jsx)("span",{className:"hidden flex-none leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,A.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},ja=(0,$a.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,u,g)=>{p?.preventDefault(),p?.stopPropagation(),a?a(u):window.open(g,"_blank")},d=(p,u)=>(0,A.jsxs)("div",{children:[(0,A.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((g,y)=>(0,A.jsx)("div",{className:"min-w-0 basis-full px-3 md:basis-1/2 lg:basis-1/3",children:(0,A.jsx)("div",{onClick:I=>c(I,g?.id,g?.url),className:r("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,A.jsx)(id,{blog:g})},g?.id)},y))}),p?.isShowBtn&&(0,A.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,A.jsxs)(je,{action:i?()=>i?.(u):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[v(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,A.jsx)(Eo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,A.jsx)(us.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||u);return(0,A.jsxs)($a.default.Fragment,{children:[e&&(0,A.jsx)(N,{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,A.jsxs)(Ct,{defaultValue:t[0]?.title,children:[(0,A.jsxs)(yt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,A.jsx)(wt,{className:"mb-6 text-center",children:(0,A.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,u)=>(0,A.jsx)(rt,{value:p.title,children:p.title},p.title+u))})}),(0,A.jsx)(Nt,{}),(0,A.jsx)(Pt,{})]}),t.map((p,u)=>(0,A.jsx)(nt,{value:p.title,children:d(p,u)},p.title+u))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Vt=h(require("react"),1),Ua=require("@heroicons/react/20/solid");var Y=h(require("react"),1),Qa=require("@heroicons/react/20/solid"),gs=h(require("embla-carousel-react"),1);var ge=require("react/jsx-runtime"),vs=Y.createContext(null);function sa(){let e=Y.useContext(vs);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Pe=Y.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[c,d]=(0,gs.default)({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[p,u]=Y.useState(!1),[g,y]=Y.useState(!1),I=Y.useCallback(oe=>{oe&&(u(oe.canScrollPrev()),y(oe.canScrollNext()))},[]),D=Y.useCallback(()=>{d?.scrollPrev()},[d]),z=Y.useCallback(()=>{d?.scrollNext()},[d]),X=Y.useCallback(oe=>{oe.key==="ArrowLeft"?(oe.preventDefault(),D()):oe.key==="ArrowRight"&&(oe.preventDefault(),z())},[D,z]);return Y.useEffect(()=>{!d||!t||t(d)},[d,t]),Y.useEffect(()=>{if(d)return I(d),d.on("reInit",I),d.on("select",I),()=>{d?.off("select",I)}},[d,I]),(0,ge.jsx)(vs.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:z,canScrollPrev:p,canScrollNext:g},children:(0,ge.jsx)("div",{ref:l,onKeyDownCapture:X,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Pe.displayName="Carousel";var Ce=Y.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=sa();return(0,ge.jsx)("div",{ref:i,className:r("overflow-hidden",o),children:(0,ge.jsx)("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Ce.displayName="CarouselContent";var ye=Y.forwardRef(({className:e,...o},t)=>{let{orientation:a}=sa();return(0,ge.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})});ye.displayName="CarouselItem";var bo=Y.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=sa();return(0,ge.jsxs)(ue,{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:!l,onClick:s,...a,children:[(0,ge.jsx)(Qa.ChevronLeftIcon,{className:"h-6 w-6"}),(0,ge.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});bo.displayName="CarouselPrevious";var yo=Y.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=sa();return(0,ge.jsxs)(ue,{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:!l,onClick:s,...a,children:[(0,ge.jsx)(Qa.ChevronRightIcon,{className:"h-6 w-6"}),(0,ge.jsx)("span",{className:"sr-only",children:"Next slide"})]})});yo.displayName="CarouselNext";var wo=Y.forwardRef((e,o)=>{let{api:t}=sa(),[,a]=Y.useState(!1),i=Y.useCallback(()=>a(l=>!l),[]);Y.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,ge.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,c)=>(0,ge.jsx)(ue,{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,ge.jsx)(ge.Fragment,{})});wo.displayName="CarouselDots";var R=require("react/jsx-runtime"),rd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,R.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,R.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,R.jsx)("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight",children:e?.title}),e?.description&&(0,R.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:v(e?.description??"")}),(0,R.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Ne,{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,R.jsx)("span",{className:"flex-none leading-none text-gray-300",children:"\xB7"})]}),e?.totalViews&&(0,R.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},nd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,Vt.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Pe,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,R.jsx)(Ce,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(u=>(0,R.jsx)(ye,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,R.jsx)("div",{onClick:g=>i(g,u?.id,u?.url),className:r("group cursor-pointer",p),children:(0,R.jsx)(rd,{blog:u})},u?.id)},u?.id))})}),s&&(0,R.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10",children:(0,R.jsxs)(je,{action:c&&c,newTab:d,variant:"outline",children:[v(l||"Xem th\xEAm")," "]})})]})},sd=({carouselRef:e})=>(0,R.jsxs)(ue,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,R.jsx)(Ua.ChevronLeftIcon,{className:"h-6 w-6"}),(0,R.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),ld=({carouselRef:e})=>(0,R.jsxs)(ue,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,R.jsx)(Ua.ChevronRightIcon,{className:"h-6 w-6"}),(0,R.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Zi=(0,Vt.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(d,p,u)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(u,"_blank")},[n,s]=(0,Vt.useState)(null),[,l]=(0,Vt.useState)(0),c=()=>n?(0,R.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,R.jsx)(sd,{carouselRef:n}),(0,R.jsx)(ld,{carouselRef:n})]}):(0,R.jsx)(R.Fragment,{});return(0,R.jsxs)(Vt.default.Fragment,{children:[(0,R.jsxs)("div",{className:"flex items-center justify-between",children:[e&&(0,R.jsx)(N,{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,R.jsx)(c,{})]}),(0,R.jsx)(nd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});var Wt=require("react/jsx-runtime"),md=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Wt.jsx)(ja,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return(0,Wt.jsx)(Zi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Wt.jsx)(ja,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},cd=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Wt.jsx)(Wt.Fragment,{children:md({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),hs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,Wt.jsx)(J,{className:r("overflow-hidden",i),idSection:a,background:n,children:(0,Wt.jsx)(cd,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:c})});var Xa=h(require("react"),1),Ya=require("date-fns/locale"),Za=require("lucide-react"),ys=h(require("lunisolar"),1),ws=require("react-day-picker");var xs=h(require("react"),1),la=h(require("@radix-ui/react-checkbox"),1),bs=require("@heroicons/react/16/solid"),Ki=require("class-variance-authority");var qa=require("react/jsx-runtime"),dd=(0,Ki.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"}}),pd=(0,Ki.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),ma=xs.forwardRef(({className:e,size:o,...t},a)=>(0,qa.jsx)(la.Root,{ref:a,className:r(dd({size:o}),e),...t,children:(0,qa.jsx)(la.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,qa.jsx)(bs.CheckIcon,{className:r(pd({size:o}))})})}));ma.displayName=la.Root.displayName;var we=require("react/jsx-runtime"),fd=({date:e,cusContent:o})=>{let t=null;return t=(0,ys.default)(e).lunar,(0,we.jsxs)(we.Fragment,{children:[o?o(e):e.getDate(),t&&(0,we.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},ud={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 gd({isShow:e,setIsShow:o,lang:t}){let a=Xa.useId();return(0,we.jsx)("div",{className:"w-full p-3 pt-0",children:(0,we.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,we.jsx)(ma,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),(0,we.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] 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 vd=e=>e.getDay()===0||e.getDay()===6;function ca({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,c]=Xa.useState(!0);return(0,we.jsx)(ws.DayPicker,{locale:i==="vi"?Ya.vi:Ya.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(tt({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(tt({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&&l&&"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:vd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,we.jsx)(Za.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,we.jsx)(Za.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,we.jsx)(fd,{date:d.date,cusContent:n}),Months:({children:d})=>(0,we.jsxs)("div",{className:"w-full",children:[(0,we.jsx)("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,we.jsx)(gd,{isShow:l,setIsShow:c,lang:i})]})},formatters:i==="vi"?ud:{},...s})}ca.displayName="Calendar";var Ka=require("@heroicons/react/16/solid"),da=require("date-fns"),Ps=require("lucide-react");var Ns=h(require("react"),1),Gt=h(require("@radix-ui/react-popover"),1);var Ji=require("react/jsx-runtime"),Vo=Gt.Root,Wo=Gt.Trigger,No=Ns.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>(0,Ji.jsx)(Gt.Portal,{children:(0,Ji.jsx)(Gt.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})}));No.displayName=Gt.Content.displayName;var ae=require("react/jsx-runtime"),Cs=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:c,calendarProps:d,popoverContentProps:p})=>{let u=d?.selected||null;return(0,ae.jsxs)("div",{children:[(0,ae.jsxs)(Vo,{...c,children:[(0,ae.jsx)(Wo,{asChild:!0,children:(0,ae.jsxs)(Ee,{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",(!u||!(u instanceof Date)&&typeof u=="object"&&(!("from"in u)||!u.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[(0,ae.jsx)("div",{className:"line-clamp-1 flex-1",children:u instanceof Date?(0,da.format)(u,s):u&&typeof u=="object"&&"from"in u&&"to"in u?(0,ae.jsx)(ae.Fragment,{children:u.from?u.to?(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)("span",{className:"date-from",children:(0,da.format)(u.from,s)})," ",(0,ae.jsx)("span",{className:"date-separator",children:"-"}),(0,ae.jsx)("span",{className:"date-to",children:(0,da.format)(u.to,s)})]}):(0,da.format)(u.from,s):o}):o}),e&&(0,ae.jsx)("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),(0,ae.jsx)(Ps.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,ae.jsx)(No,{className:"w-auto border-none !p-0",...p,children:(0,ae.jsx)(ca,{...d,defaultMonth:u&&typeof u=="object"&&"from"in u?u.from:u instanceof Date?u:void 0})})]}),a&&(0,ae.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?(0,ae.jsx)(Ka.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ae.jsx)(Ka.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ae.jsx)("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var pa=require("react"),ti=require("@heroicons/react/16/solid"),Ds=require("date-fns");var kt=h(require("react"),1),$t=require("@heroicons/react/16/solid"),ks=require("@heroicons/react/24/outline"),E=h(require("@radix-ui/react-select"),1);var V=require("react/jsx-runtime"),Go=kt.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},c)=>(0,V.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,V.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,V.jsx)(E.Root,{disabled:s,...l,children:o}),a&&(0,V.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,V.jsx)($t.XCircleIcon,{width:16,height:16}):(0,V.jsx)(ks.QuestionMarkCircleIcon,{width:16,height:16}),(0,V.jsx)("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),$o=E.Value,Po=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(E.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,V.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,V.jsx)(E.Icon,{asChild:!0,children:(0,V.jsx)($t.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Po.displayName=E.Trigger.displayName;var Ja=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:(0,V.jsx)($t.ChevronUpIcon,{className:"h-5 w-5"})}));Ja.displayName=E.ScrollUpButton.displayName;var ei=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.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,V.jsx)($t.ChevronDownIcon,{className:"h-5 w-5"})}));ei.displayName=E.ScrollDownButton.displayName;var Co=kt.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>(0,V.jsx)(E.Portal,{children:(0,V.jsxs)(E.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,V.jsx)(Ja,{}),(0,V.jsx)(E.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,V.jsx)(ei,{})]})}));Co.displayName=E.Content.displayName;var jo=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsx)(E.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),er=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));er.displayName=E.Label.displayName;var jt=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(E.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,V.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,V.jsx)(E.ItemIndicator,{children:(0,V.jsx)($t.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,V.jsx)(E.ItemText,{children:o})]})),tr=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));tr.displayName=E.Separator.displayName;var Rs=["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"],Ts=["January","February","March","April","May","June","July","August","September","October","November","December"],or=(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}},Ss=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,l)=>n-l)};var B=require("react/jsx-runtime"),Ms=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:u=!1})=>{let[g,y]=(0,pa.useState)(o??null),I=Math.min(d,p),D=Math.max(d,p),z=l==="MM/yyyy",X=(M,be)=>{if(be===0){y(void 0),t?.(void 0);return}let re=g?.getFullYear()||new Date().getFullYear(),Ia=g?.getMonth()??0,go=g?.getDate()??1;M==="month"&&be!==null&&(Ia=be-1),M==="year"&&be!==null&&(re=be),z?go=1:M==="day"&&be!==null&&(go=be);let Gn=or(re,Ia+1).daysInMonth;go>Gn&&(go=1);let oa=new Date(re,Ia,go);(0,Ds.isValid)(oa)&&(y(oa),t?.(oa))},[oe,U]=(0,pa.useState)(!1),uo=M=>{U(M)};return(0,pa.useEffect)(()=>{y(o??null)},[o]),(0,B.jsxs)("div",{className:r("relative",s&&"cursor-no-drop"),children:[(0,B.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",g?"":"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,B.jsx)("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,B.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!z&&(0,B.jsxs)(Go,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:M=>X("day",parseInt(M,10)),onOpenChange:uo,className:"w-[30%]",children:[(0,B.jsx)(Po,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!u&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:or(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(M,be)=>(be+1).toString().padStart(2,"0")).map(M=>(0,B.jsx)(jt,{value:M,children:M},M))]})})]}),(0,B.jsxs)(Go,{value:g?(g.getMonth()+1).toString():"",onValueChange:M=>X("month",parseInt(M,10)),onOpenChange:uo,className:r(z?"w-1/2":"w-2/5"),children:[(0,B.jsx)(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!u&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(M,be)=>be+1).map(M=>(0,B.jsx)(jt,{value:M.toString(),children:c==="vi"?Rs[M-1]:Ts[M-1]},M))]})})]}),(0,B.jsxs)(Go,{value:g?g.getFullYear().toString():"",onValueChange:M=>X("year",parseInt(M,10)),onOpenChange:uo,className:r(z?"w-1/2":"w-[30%]"),children:[(0,B.jsx)(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!u&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Ss(I,D).map(M=>(0,B.jsx)(jt,{value:M.toString(),children:M},M))]})})]})]})]}),i&&(0,B.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,B.jsx)(ti.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,B.jsx)(ti.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,B.jsx)("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};var ko=h(require("react"),1),ee=h(require("@radix-ui/react-alert-dialog"),1);var Ue=require("react/jsx-runtime"),Is=ee.Root,As=ee.Trigger,ar=ee.Portal,oi=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.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}));oi.displayName=ee.Overlay.displayName;var ir=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsxs)(ar,{children:[(0,Ue.jsx)(oi,{}),(0,Ue.jsx)(ee.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})]}));ir.displayName=ee.Content.displayName;var rr=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...o});rr.displayName="AlertDialogHeader";var nr=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...o});nr.displayName="AlertDialogFooter";var sr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));sr.displayName=ee.Title.displayName;var lr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));lr.displayName=ee.Description.displayName;var mr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Action,{ref:t,className:r(tt({variant:"primary"}),"",e),...o}));mr.displayName=ee.Action.displayName;var cr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Cancel,{ref:t,className:r(tt({variant:"secondary"}),e),...o}));cr.displayName=ee.Cancel.displayName;var ai=require("react");var fa=require("react"),zs=require("motion/react");var Ls=h(require("@radix-ui/react-aspect-ratio"),1),q=Ls.Root;var $=require("react/jsx-runtime"),hd=({guideGroup:e,mockup:o})=>{let[t,a]=(0,fa.useState)(),[i,n]=(0,fa.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,fa.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:"flex flex-nowrap justify-center mx-auto max-w-3xl",children:[(0,$.jsx)("div",{className:"flex-none w-64 h-auto",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)(Pe,{setApi:a,children:[(0,$.jsx)(Ce,{className:"ml-0",children:e?.stepList.map((l,c)=>(0,$.jsx)(ye,{className:"pl-0",children:(0,$.jsx)(q,{ratio:o==="small"?540/960:540/1168,children:l?.image&&(0,$.jsx)("img",{src:l.image,className:"object-contain size-full",alt:l.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":"0","data-puck-array-field":"stepList","data-puck-array-index-nested":c?.toString()??"","data-puck-nested-field":"image"})})},c))}),(0,$.jsx)(bo,{className:"left-1 text-white border-none bg-gray-900/30 hover:bg-gray-900/40 disabled:hidden"}),(0,$.jsx)(yo,{className:"right-1 text-white border-none bg-gray-900/30 hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,$.jsx)("div",{className:"flex flex-auto pt-4 pl-12",children:(0,$.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((l,c)=>(0,$.jsxs)("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 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 z-10 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:v(l.title)}),l.content&&(0,$.jsx)(zs.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:v(l.content)})})]},c))})})]})})},dr=hd;var Qt=require("react"),pr=require("@heroicons/react/20/solid"),Es=h(require("embla-carousel-autoplay"),1);var x=require("react/jsx-runtime"),xd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=(0,Qt.useState)(0),[s,l]=(0,Qt.useState)();return(0,Qt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,x.jsx)($e,{open:e,onOpenChange:o,children:(0,x.jsxs)(He,{position:"bottom",height:"full",children:[(0,x.jsx)(vo,{children:(0,x.jsx)(ho,{className:"line-clamp-1",children:t?.title})}),(0,x.jsxs)(ot,{className:"grid overflow-hidden p-0",children:[(0,x.jsx)(Pe,{setApi:l,className:"grid overflow-hidden",children:(0,x.jsx)(Ce,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,x.jsx)(ye,{className:"pl-0 w-full h-full",children:(0,x.jsxs)("div",{className:"flex overflow-y-auto flex-col h-full",children:[(0,x.jsx)("div",{className:"flex relative flex-none justify-center p-5 w-full bg-gray-100",children:(0,x.jsx)("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:(0,x.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,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.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,x.jsx)(q,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,x.jsx)("img",{src:c.image,className:"object-contain size-full",alt:c.title})})})]})})}),(0,x.jsxs)("div",{className:"p-5 pb-12",children:[(0,x.jsx)("div",{className:"font-semibold",children:v(c.title)}),c?.content&&(0,x.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:v(c.content)})]})]})},d))})}),(0,x.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,d)=>(0,x.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},bd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=(0,Qt.useState)(!1),[n,s]=(0,Qt.useState)(null),l=(0,Qt.useRef)((0,Es.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),i(!0)};return e?.length===0?null:(0,x.jsxs)(x.Fragment,{children:[e?.length>1?(0,x.jsx)("div",{className:"grid grid-cols-1 -mx-5 md:mx-0",children:e.map((d,p)=>(0,x.jsxs)("div",{className:"flex relative flex-nowrap items-center pl-5 space-x-4 cursor-pointer",onClick:()=>c(p),children:[(0,x.jsx)("div",{className:"flex overflow-hidden justify-center p-2 pb-0 w-20 h-28 bg-gray-100 rounded-t-lg borde",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,x.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"object-cover object-top w-full h-full",alt:d.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":p,"data-puck-nested-field":"avatar"})}),(0,x.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,x.jsxs)("div",{className:"py-2",children:[t&&(0,x.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,x.jsx)("div",{className:"font-semibold",children:v(d.title)}),d?.description&&(0,x.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:v(d.description)})]}),(0,x.jsx)("div",{className:"absolute right-4 top-1/2 text-gray-500 -translate-y-1/2",children:(0,x.jsx)(pr.ChevronRightIcon,{className:"w-6 h-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,x.jsxs)("div",{className:"flex flex-col flex-wrap gap-y-6 justify-center mx-auto max-w-3xl",children:[(0,x.jsx)("div",{className:"overflow-hidden relative flex-none w-full max-h-96",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:(0,x.jsx)("div",{className:"mx-auto w-72 h-auto",children:(0,x.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,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,x.jsx)(Pe,{plugins:[l.current],children:(0,x.jsx)(Ce,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,x.jsx)(ye,{className:"pl-0",onClick:()=>c(0),children:(0,x.jsx)(q,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,x.jsx)("img",{src:d.image,className:"object-contain size-full",alt:d.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":0,"data-puck-array-field":"stepList","data-puck-array-index-nested":p?p?.toString():"","data-puck-nested-field":"image"})})},p))})})})]})})}),(0,x.jsx)("div",{className:"flex flex-none justify-center w-full",children:(0,x.jsxs)(Ne,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,x.jsx)(pr.ChevronRightIcon,{className:"ml-1 w-5 h-5"})]})})]}),a&&(0,x.jsx)(xd,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},Hs=bd;var Z=require("react/jsx-runtime"),_s=({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,Z.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,Z.jsx)("path",{d:t.d,fill:"currentColor"})})},fr=(0,ai.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:c}=o||{},[d,p]=(0,ai.useState)(t?.[0]?.title||"");return(0,Z.jsxs)(Z.Fragment,{children:[e&&(0,Z.jsx)(N,{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,Z.jsxs)(zo,{children:[(0,Z.jsx)(ut,{lessThan:"md",children:(0,Z.jsx)(Hs,{dataGuide:t,mockup:i,isStep:n})}),(0,Z.jsx)(ut,{greaterThan:"sm",children:t?.length>1?(0,Z.jsxs)(Ct,{defaultValue:t[0]?.title,onValueChange:u=>p(u),children:[(0,Z.jsxs)(yt,{showGradientOverlay:s,gradientOverlayColor:l,className:c,children:[(0,Z.jsx)(wt,{className:"mb-6 text-center",children:(0,Z.jsx)(it,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((u,g)=>{let y=g===t.length-1,I=d===u?.title||"";return(0,Z.jsxs)(rt,{value:u.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":"",I&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&(0,Z.jsx)(_s,{direction:"left",className:r("right-full top-0",I?"text-pink-500":"text-pink-100")}),u.title,n&&!y&&(0,Z.jsx)(_s,{direction:"right",className:r("left-full top-0",I?"text-pink-500":"text-pink-100")})]},u.title+g)})})}),(0,Z.jsx)(Nt,{}),(0,Z.jsx)(Pt,{})]}),t.map((u,g)=>(0,Z.jsx)(nt,{value:u.title,children:(0,Z.jsx)(dr,{guideGroup:u,mockup:i})},u.title+g))]}):t?.length===1&&t[0]&&(0,Z.jsx)(dr,{guideGroup:t[0],mockup:i})})]}),a&&(0,Z.jsx)(C,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var to=require("react/jsx-runtime"),yd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return(0,to.jsx)(fr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return(0,to.jsx)(fr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},wd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>(0,to.jsx)(to.Fragment,{children:yd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),Fs=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,className:n,background:s,template:l=1,mockup:c="default",isStep:d=!1})=>(0,to.jsx)(J,{className:r(n),background:s,idSection:e,children:(0,to.jsx)(wd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:c,isStep:d})});var ii=require("lucide-react");var ve=require("react/jsx-runtime");function ur({current:e,total:o,onChange:t}){let a=i=>(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(xo({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return(0,ve.jsx)("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:(0,ve.jsxs)("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(xo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ve.jsx)(ii.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):(0,ve.jsxs)(ve.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(xo({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,ve.jsx)("button",{className:r(xo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(xo({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ve.jsx)(ii.ChevronRight,{className:"h-4 w-4"})})})]})})}var Bs=require("react"),Os=require("@heroicons/react/24/outline"),Vs=require("@heroicons/react/24/solid");var Rt=require("react/jsx-runtime"),Ws=(0,Bs.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...c},d)=>(0,Rt.jsxs)("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&(0,Rt.jsx)("span",{className:r("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,Rt.jsx)("textarea",{disabled:e,ref:d,className:r("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...c}),t&&(0,Rt.jsxs)("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?(0,Rt.jsx)(Vs.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Rt.jsx)(Os.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Rt.jsx)("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,Rt.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 si=h(require("react"),1),Nd=1,Pd=1e6;var ur=0;function Cd(){return ur=(ur+1)%Number.MAX_SAFE_INTEGER,ur.toString()}var vr=new Map,Gs=e=>{if(vr.has(e))return;let o=setTimeout(()=>{vr.delete(e),ga({type:"REMOVE_TOAST",toastId:e})},Pd);vr.set(e,o)},kd=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Nd)};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}},ri=[],ni={toasts:[]};function ga(e){ni=kd(ni,e),ri.forEach(o=>{o(ni)})}function hr({...e}){let o=Cd(),t=i=>ga({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>ga({type:"DISMISS_TOAST",toastId:o});return ga({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function li(){let[e,o]=si.useState(ni);return si.useEffect(()=>(ri.push(o),()=>{let t=ri.indexOf(o);t>-1&&ri.splice(t,1)}),[e]),{...e,toast:hr,dismiss:t=>ga({type:"DISMISS_TOAST",toastId:t})}}var Ro=h(require("react"),1),oo=require("@heroicons/react/20/solid"),me=h(require("@radix-ui/react-toast"),1),$s=require("class-variance-authority");var _e=require("react/jsx-runtime"),js=me.Provider,xr=Ro.forwardRef(({className:e,...o},t)=>(0,_e.jsx)(me.Viewport,{ref:t,className:r("fixed bottom-0 left-0 z-[300] 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}));xr.displayName=me.Viewport.displayName;var Rd=(0,$s.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 shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 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"}}),br=Ro.forwardRef(({className:e,variant:o="success",children:t,...a},i)=>(0,_e.jsxs)(me.Root,{ref:i,className:r(Rd({variant:o}),e),...a,children:[(0,_e.jsxs)("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&(0,_e.jsx)(oo.CheckCircleIcon,{className:"h-5 w-5 text-green-500"}),o==="warning"&&(0,_e.jsx)(oo.ExclamationTriangleIcon,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&(0,_e.jsx)(oo.InformationCircleIcon,{className:"h-5 w-5 text-red-500"})]}),t]}));br.displayName=me.Root.displayName;var yr=Ro.forwardRef(({className:e,...o},t)=>(0,_e.jsx)(me.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}));yr.displayName=me.Action.displayName;var wr=Ro.forwardRef(({className:e,...o},t)=>(0,_e.jsx)(me.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,_e.jsx)(oo.XMarkIcon,{className:"h-5 w-5"})}));wr.displayName=me.Close.displayName;var Nr=Ro.forwardRef(({className:e,...o},t)=>(0,_e.jsx)(me.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));Nr.displayName=me.Title.displayName;var Pr=Ro.forwardRef(({className:e,...o},t)=>(0,_e.jsx)(me.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));Pr.displayName=me.Description.displayName;var Ut=require("react/jsx-runtime");function Qs(){let{toasts:e}=li();return(0,Ut.jsxs)(js,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return(0,Ut.jsxs)(br,{...n,children:[(0,Ut.jsxs)("div",{className:"grid gap-2",children:[t&&(0,Ut.jsx)(Nr,{children:t}),a&&(0,Ut.jsx)(Pr,{children:a})]}),i,(0,Ut.jsx)(wr,{})]},o)}),(0,Ut.jsx)(xr,{})]})}var Cr=h(require("react"),1),qe=h(require("@radix-ui/react-tooltip"),1);var Tr=require("react/jsx-runtime"),Us=qe.Provider,qs=qe.Root,Xs=qe.Trigger,kr=Cr.forwardRef((e,o)=>(0,Tr.jsx)(qe.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));kr.displayName=qe.Arrow.displayName;var Rr=Cr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>(0,Tr.jsx)(qe.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}));Rr.displayName=qe.Content.displayName;var ao=require("react"),Qo=require("@heroicons/react/16/solid");var Fe=require("react/jsx-runtime"),Ys=(0,ao.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:m,onChange:c,onFocus:d,onClickClear:p,value:g,defaultValue:u,type:y="text",...I},D)=>{let[z,X]=(0,ao.useState)(!1),oe=(0,ao.useRef)(null),U=re=>{re&&!z&&X(!0),!re&&z&&X(!1)},go=re=>{s&&U(re.target.value),c?.(re)},M=re=>{s&&U(re.target.value),d?.(re)},be=()=>{let re=oe.current?.querySelector("input");re&&(p?.(re.value),re.value="",re.focus(),X(!1))};return(0,ao.useEffect)(()=>{U(u||g)},[g,u]),(0,Fe.jsxs)("div",{className:r(i,o&&"mobase-text-input-error"),ref:oe,children:[(0,Fe.jsxs)("div",{className:"relative",children:[a&&(0,Fe.jsx)("span",{className:r("mobase-text-input-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",m===2&&" -top-2.5 text-sm"),children:a}),(0,Fe.jsx)("input",{disabled:e,type:y,ref:D,className:r("mobase-text-input-box block h-11 w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",m===2&&"h-12 text-base",n),onChange:go,onFocus:M,value:g,defaultValue:u,...I}),s&&z&&(0,Fe.jsx)("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 shrink-0 -translate-y-1/2 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:be,children:(0,Fe.jsx)(Qo.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,Fe.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?(0,Fe.jsx)(Qo.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Fe.jsx)(Qo.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Fe.jsx)("span",{className:r("text-gray-500 ",m===2?"text-sm":"text-xs"),children:t})]}),(0,Fe.jsx)("style",{children:`
97
+ `})]}));var si=h(require("react"),1),Nd=1,Pd=1e6;var gr=0;function Cd(){return gr=(gr+1)%Number.MAX_SAFE_INTEGER,gr.toString()}var vr=new Map,Gs=e=>{if(vr.has(e))return;let o=setTimeout(()=>{vr.delete(e),ua({type:"REMOVE_TOAST",toastId:e})},Pd);vr.set(e,o)},kd=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Nd)};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}},ri=[],ni={toasts:[]};function ua(e){ni=kd(ni,e),ri.forEach(o=>{o(ni)})}function hr({...e}){let o=Cd(),t=i=>ua({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>ua({type:"DISMISS_TOAST",toastId:o});return ua({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function li(){let[e,o]=si.useState(ni);return si.useEffect(()=>(ri.push(o),()=>{let t=ri.indexOf(o);t>-1&&ri.splice(t,1)}),[e]),{...e,toast:hr,dismiss:t=>ua({type:"DISMISS_TOAST",toastId:t})}}var Ro=h(require("react"),1),oo=require("@heroicons/react/20/solid"),me=h(require("@radix-ui/react-toast"),1),$s=require("class-variance-authority");var _e=require("react/jsx-runtime"),js=me.Provider,xr=Ro.forwardRef(({className:e,...o},t)=>(0,_e.jsx)(me.Viewport,{ref:t,className:r("fixed bottom-0 left-0 z-[300] 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}));xr.displayName=me.Viewport.displayName;var Rd=(0,$s.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 shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 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"}}),br=Ro.forwardRef(({className:e,variant:o="success",children:t,...a},i)=>(0,_e.jsxs)(me.Root,{ref:i,className:r(Rd({variant:o}),e),...a,children:[(0,_e.jsxs)("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&(0,_e.jsx)(oo.CheckCircleIcon,{className:"h-5 w-5 text-green-500"}),o==="warning"&&(0,_e.jsx)(oo.ExclamationTriangleIcon,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&(0,_e.jsx)(oo.InformationCircleIcon,{className:"h-5 w-5 text-red-500"})]}),t]}));br.displayName=me.Root.displayName;var yr=Ro.forwardRef(({className:e,...o},t)=>(0,_e.jsx)(me.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}));yr.displayName=me.Action.displayName;var wr=Ro.forwardRef(({className:e,...o},t)=>(0,_e.jsx)(me.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,_e.jsx)(oo.XMarkIcon,{className:"h-5 w-5"})}));wr.displayName=me.Close.displayName;var Nr=Ro.forwardRef(({className:e,...o},t)=>(0,_e.jsx)(me.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));Nr.displayName=me.Title.displayName;var Pr=Ro.forwardRef(({className:e,...o},t)=>(0,_e.jsx)(me.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));Pr.displayName=me.Description.displayName;var Ut=require("react/jsx-runtime");function Qs(){let{toasts:e}=li();return(0,Ut.jsxs)(js,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return(0,Ut.jsxs)(br,{...n,children:[(0,Ut.jsxs)("div",{className:"grid gap-2",children:[t&&(0,Ut.jsx)(Nr,{children:t}),a&&(0,Ut.jsx)(Pr,{children:a})]}),i,(0,Ut.jsx)(wr,{})]},o)}),(0,Ut.jsx)(xr,{})]})}var Cr=h(require("react"),1),qe=h(require("@radix-ui/react-tooltip"),1);var Tr=require("react/jsx-runtime"),Us=qe.Provider,qs=qe.Root,Xs=qe.Trigger,kr=Cr.forwardRef((e,o)=>(0,Tr.jsx)(qe.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));kr.displayName=qe.Arrow.displayName;var Rr=Cr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>(0,Tr.jsx)(qe.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}));Rr.displayName=qe.Content.displayName;var ao=require("react"),Qo=require("@heroicons/react/16/solid");var Fe=require("react/jsx-runtime"),Ys=(0,ao.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:c,onFocus:d,onClickClear:p,value:u,defaultValue:g,type:y="text",...I},D)=>{let[z,X]=(0,ao.useState)(!1),oe=(0,ao.useRef)(null),U=re=>{re&&!z&&X(!0),!re&&z&&X(!1)},uo=re=>{s&&U(re.target.value),c?.(re)},M=re=>{s&&U(re.target.value),d?.(re)},be=()=>{let re=oe.current?.querySelector("input");re&&(p?.(re.value),re.value="",re.focus(),X(!1))};return(0,ao.useEffect)(()=>{U(g||u)},[u,g]),(0,Fe.jsxs)("div",{className:r(i,o&&"mobase-text-input-error"),ref:oe,children:[(0,Fe.jsxs)("div",{className:"relative",children:[a&&(0,Fe.jsx)("span",{className:r("mobase-text-input-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),(0,Fe.jsx)("input",{disabled:e,type:y,ref:D,className:r("mobase-text-input-box block h-11 w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",l===2&&"h-12 text-base",n),onChange:uo,onFocus:M,value:u,defaultValue:g,...I}),s&&z&&(0,Fe.jsx)("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 shrink-0 -translate-y-1/2 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:be,children:(0,Fe.jsx)(Qo.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,Fe.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?(0,Fe.jsx)(Qo.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Fe.jsx)(Qo.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Fe.jsx)("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),(0,Fe.jsx)("style",{children:`
98
98
  .mobase-text-input-box:hover {
99
99
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
100
100
  }
@@ -117,11 +117,11 @@
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});var mi=require("@heroicons/react/24/outline");var ci=require("react");var Tt=require("react/jsx-runtime"),Sr=(0,ci.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:m,disabled:c=!1,...d},p)=>{let[g,u]=(0,ci.useState)(i),y=()=>{let z=Math.min(g+a,t);u(z),n?.(z),m?.(z)},I=()=>{let z=Math.max(g-a,o);u(z),n?.(z),s?.(z)},D=z=>{let X=parseFloat(z.target.value);if(!isNaN(X)){let oe=Math.max(Math.min(X,t),o);u(oe),n?.(oe)}};return(0,Tt.jsxs)("div",{ref:p,className:r("flex items-center ",e),children:[(0,Tt.jsxs)(ge,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:I,disabled:c||g<=o,children:[(0,Tt.jsx)(mi.MinusCircleIcon,{className:"w-7 h-7 "}),(0,Tt.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,Tt.jsx)("input",{type:"number",value:g,onChange:D,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,...d}),(0,Tt.jsxs)(ge,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:y,disabled:c||g>=t,children:[(0,Tt.jsx)(mi.PlusCircleIcon,{className:"w-7 h-7 "}),(0,Tt.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});Sr.displayName="Stepper";var st=h(require("react"),1),ne=h(require("@radix-ui/react-navigation-menu"),1),Zs=require("class-variance-authority"),Ks=require("@heroicons/react/16/solid");var Be=require("react/jsx-runtime"),Js=st.createContext(null),Td=({value:e,children:o})=>(0,Be.jsx)(Js.Provider,{value:e,children:o}),Sd=()=>{let e=st.useContext(Js);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},ua=st.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>(0,Be.jsx)(Td,{value:{alignDropdown:t},children:(0,Be.jsx)(ne.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));ua.displayName=ne.Root.displayName;var va=st.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(ne.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));va.displayName=ne.List.displayName;var ha=ne.Item,xa=(0,Zs.cva)(tt({variant:"transparent",size:"sm"})),ba=st.forwardRef(({className:e,children:o,...t},a)=>(0,Be.jsxs)(ne.Trigger,{ref:a,className:r(xa(),"group px-2",e),...t,children:[o," ",(0,Be.jsx)(Ks.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ba.displayName=ne.Trigger.displayName;var ya=st.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Sd();return(0,Be.jsx)(ne.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})});ya.displayName=ne.Content.displayName;var Uo=ne.Link,Dd=st.forwardRef(({className:e,...o},t)=>(0,Be.jsx)("div",{className:r("absolute left-0 top-full flex justify-center"),children:(0,Be.jsx)(ne.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})}));Dd.displayName=ne.Viewport.displayName;var Md=st.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(ne.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,Be.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Md.displayName=ne.Indicator.displayName;var el=h(require("react"),1),wa=h(require("@radix-ui/react-switch"),1);var Dr=require("react/jsx-runtime"),Mr=el.forwardRef(({className:e,...o},t)=>(0,Dr.jsx)(wa.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,Dr.jsx)(wa.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")})}));Mr.displayName=wa.Root.displayName;var To=h(require("react"),1),io=h(require("@radix-ui/react-radio-group"),1),tl=require("lucide-react"),Ir=require("class-variance-authority");var qo=require("react/jsx-runtime"),Id=(0,Ir.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"}}),Ad=(0,Ir.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),ol=To.createContext({size:"medium"});function Ld(){let e=To.useContext(ol);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ar=To.forwardRef(({className:e,size:o,...t},a)=>(0,qo.jsx)(ol.Provider,{value:{size:o},children:(0,qo.jsx)(io.Root,{className:r("grid gap-2",e),...t,ref:a})}));Ar.displayName=io.Root.displayName;var Lr=To.forwardRef(({className:e,...o},t)=>{let a=Ld(),{size:i}=a??{};return(0,qo.jsx)(io.Item,{ref:t,className:r(Id({size:i}),e),...o,children:(0,qo.jsx)(io.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,qo.jsx)(tl.Circle,{className:r(Ad({size:i}))})})})});Lr.displayName=io.Item.displayName;var cl=require("react"),dl=require("@heroicons/react/16/solid");var Na=require("react"),Dt=require("motion/react"),nl=require("react-use");var di=[.24,.25,.05,1];var il=require("motion/react");var qt=require("react/jsx-runtime"),zd=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,qt.jsx)("li",{className:"min-h-8",children:(0,qt.jsxs)("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&(0,qt.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,qt.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,qt.jsxs)("div",{className:" ",children:[(0,qt.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,qt.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},al=zd;var St=require("react/jsx-runtime"),Ed={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:di}},exit:{opacity:0,transition:{duration:.05}}},Hd=({data:e})=>(0,St.jsx)(ut,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,St.jsx)(il.motion.div,{variants:Ed,children:o.hasDropdown?(0,St.jsxs)(vt,{value:o.id,children:[(0,St.jsx)(ht,{className:"py-3",children:o.title}),(0,St.jsx)(xt,{children:(0,St.jsx)("ul",{className:r("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,St.jsx)(al,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,St.jsx)("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),rl=Hd;var P=require("react/jsx-runtime"),_d=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Fd=({data:e,className:o})=>{let[t,a]=(0,Na.useState)(!1),[i,n]=(0,Na.useState)(!1);(0,nl.useKey)("Escape",()=>a(!1)),(0,Na.useEffect)(()=>{if(!t)return;let c=_d();function d(){a(!1)}function p(){a(!1),n(!0)}function g(D){let z=D.target;((z.closest&&z.closest("a"))?.getAttribute("href")||z.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let u=()=>{d()},y=history.pushState,I=history.replaceState;return history.pushState=((...D)=>{let z=y.apply(history,D);return u(),z}),history.replaceState=((...D)=>{let z=I.apply(history,D);return u(),z}),window.addEventListener("popstate",u),window.addEventListener("hashchange",p),window.addEventListener("click",g,!0),()=>{i||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:c||0,behavior:"instant"})),n(!1),history.pushState=y,history.replaceState=I,window.removeEventListener("popstate",u),window.removeEventListener("hashchange",p),window.removeEventListener("click",g,!0)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},m={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:di}},exit:{opacity:0,transition:{duration:.15}}};return(0,P.jsxs)("div",{className:r(o),children:[(0,P.jsxs)("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,P.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,P.jsx)(Dt.motion.div,{animate:t?"hidden":"visible",variants:s,children:(0,P.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,P.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,P.jsx)(Dt.motion.div,{animate:t?"visible":"hidden",variants:s,children:(0,P.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,P.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,P.jsx)(Dt.LazyMotion,{features:Dt.domAnimation,children:(0,P.jsx)(Dt.AnimatePresence,{mode:"wait",children:t&&(0,P.jsxs)(Dt.motion.nav,{variants:m,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,P.jsx)(rl,{data:e}),(0,P.jsxs)("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,P.jsxs)("div",{className:"flex flex-nowrap",children:[(0,P.jsx)("div",{className:"flex-initial",children:(0,P.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,P.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,P.jsx)("div",{className:"ml-3 flex-initial",children:(0,P.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,P.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,P.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,P.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,P.jsx)("a",{href:`tel:${Ft.Support.Hotline}`,className:"text-gray-600",children:Ft.Support.Hotline_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsx)("a",{href:`mailto:${Ft.Support.Email}`,className:"text-gray-600",children:Ft.Support.Email})]})]}),(0,P.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,P.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,P.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,P.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,P.jsxs)("g",{children:[(0,P.jsx)("title",{children:"Asset 1"}),(0,P.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 mi=require("@heroicons/react/24/outline");var ci=require("react");var Tt=require("react/jsx-runtime"),Sr=(0,ci.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:c=!1,...d},p)=>{let[u,g]=(0,ci.useState)(i),y=()=>{let z=Math.min(u+a,t);g(z),n?.(z),l?.(z)},I=()=>{let z=Math.max(u-a,o);g(z),n?.(z),s?.(z)},D=z=>{let X=parseFloat(z.target.value);if(!isNaN(X)){let oe=Math.max(Math.min(X,t),o);g(oe),n?.(oe)}};return(0,Tt.jsxs)("div",{ref:p,className:r("flex items-center ",e),children:[(0,Tt.jsxs)(ue,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:I,disabled:c||u<=o,children:[(0,Tt.jsx)(mi.MinusCircleIcon,{className:"w-7 h-7 "}),(0,Tt.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,Tt.jsx)("input",{type:"number",value:u,onChange:D,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,...d}),(0,Tt.jsxs)(ue,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:y,disabled:c||u>=t,children:[(0,Tt.jsx)(mi.PlusCircleIcon,{className:"w-7 h-7 "}),(0,Tt.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});Sr.displayName="Stepper";var st=h(require("react"),1),ne=h(require("@radix-ui/react-navigation-menu"),1),Zs=require("class-variance-authority"),Ks=require("@heroicons/react/16/solid");var Be=require("react/jsx-runtime"),Js=st.createContext(null),Td=({value:e,children:o})=>(0,Be.jsx)(Js.Provider,{value:e,children:o}),Sd=()=>{let e=st.useContext(Js);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},ga=st.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>(0,Be.jsx)(Td,{value:{alignDropdown:t},children:(0,Be.jsx)(ne.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));ga.displayName=ne.Root.displayName;var va=st.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(ne.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));va.displayName=ne.List.displayName;var ha=ne.Item,xa=(0,Zs.cva)(tt({variant:"transparent",size:"sm"})),ba=st.forwardRef(({className:e,children:o,...t},a)=>(0,Be.jsxs)(ne.Trigger,{ref:a,className:r(xa(),"group px-2",e),...t,children:[o," ",(0,Be.jsx)(Ks.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ba.displayName=ne.Trigger.displayName;var ya=st.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Sd();return(0,Be.jsx)(ne.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})});ya.displayName=ne.Content.displayName;var Uo=ne.Link,Dd=st.forwardRef(({className:e,...o},t)=>(0,Be.jsx)("div",{className:r("absolute left-0 top-full flex justify-center"),children:(0,Be.jsx)(ne.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})}));Dd.displayName=ne.Viewport.displayName;var Md=st.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(ne.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,Be.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Md.displayName=ne.Indicator.displayName;var el=h(require("react"),1),wa=h(require("@radix-ui/react-switch"),1);var Dr=require("react/jsx-runtime"),Mr=el.forwardRef(({className:e,...o},t)=>(0,Dr.jsx)(wa.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,Dr.jsx)(wa.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")})}));Mr.displayName=wa.Root.displayName;var To=h(require("react"),1),io=h(require("@radix-ui/react-radio-group"),1),tl=require("lucide-react"),Ir=require("class-variance-authority");var qo=require("react/jsx-runtime"),Id=(0,Ir.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"}}),Ad=(0,Ir.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),ol=To.createContext({size:"medium"});function Ld(){let e=To.useContext(ol);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ar=To.forwardRef(({className:e,size:o,...t},a)=>(0,qo.jsx)(ol.Provider,{value:{size:o},children:(0,qo.jsx)(io.Root,{className:r("grid gap-2",e),...t,ref:a})}));Ar.displayName=io.Root.displayName;var Lr=To.forwardRef(({className:e,...o},t)=>{let a=Ld(),{size:i}=a??{};return(0,qo.jsx)(io.Item,{ref:t,className:r(Id({size:i}),e),...o,children:(0,qo.jsx)(io.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,qo.jsx)(tl.Circle,{className:r(Ad({size:i}))})})})});Lr.displayName=io.Item.displayName;var cl=require("react"),dl=require("@heroicons/react/16/solid");var Na=require("react"),Dt=require("motion/react"),nl=require("react-use");var di=[.24,.25,.05,1];var il=require("motion/react");var qt=require("react/jsx-runtime"),zd=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,qt.jsx)("li",{className:"min-h-8",children:(0,qt.jsxs)("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&(0,qt.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,qt.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,qt.jsxs)("div",{className:" ",children:[(0,qt.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,qt.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},al=zd;var St=require("react/jsx-runtime"),Ed={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:di}},exit:{opacity:0,transition:{duration:.05}}},Hd=({data:e})=>(0,St.jsx)(gt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,St.jsx)(il.motion.div,{variants:Ed,children:o.hasDropdown?(0,St.jsxs)(vt,{value:o.id,children:[(0,St.jsx)(ht,{className:"py-3",children:o.title}),(0,St.jsx)(xt,{children:(0,St.jsx)("ul",{className:r("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,St.jsx)(al,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,St.jsx)("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),rl=Hd;var P=require("react/jsx-runtime"),_d=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Fd=({data:e,className:o})=>{let[t,a]=(0,Na.useState)(!1),[i,n]=(0,Na.useState)(!1);(0,nl.useKey)("Escape",()=>a(!1)),(0,Na.useEffect)(()=>{if(!t)return;let c=_d();function d(){a(!1)}function p(){a(!1),n(!0)}function u(D){let z=D.target;((z.closest&&z.closest("a"))?.getAttribute("href")||z.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let g=()=>{d()},y=history.pushState,I=history.replaceState;return history.pushState=((...D)=>{let z=y.apply(history,D);return g(),z}),history.replaceState=((...D)=>{let z=I.apply(history,D);return g(),z}),window.addEventListener("popstate",g),window.addEventListener("hashchange",p),window.addEventListener("click",u,!0),()=>{i||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:c||0,behavior:"instant"})),n(!1),history.pushState=y,history.replaceState=I,window.removeEventListener("popstate",g),window.removeEventListener("hashchange",p),window.removeEventListener("click",u,!0)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:di}},exit:{opacity:0,transition:{duration:.15}}};return(0,P.jsxs)("div",{className:r(o),children:[(0,P.jsxs)("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,P.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,P.jsx)(Dt.motion.div,{animate:t?"hidden":"visible",variants:s,children:(0,P.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,P.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,P.jsx)(Dt.motion.div,{animate:t?"visible":"hidden",variants:s,children:(0,P.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,P.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,P.jsx)(Dt.LazyMotion,{features:Dt.domAnimation,children:(0,P.jsx)(Dt.AnimatePresence,{mode:"wait",children:t&&(0,P.jsxs)(Dt.motion.nav,{variants:l,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,P.jsx)(rl,{data:e}),(0,P.jsxs)("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,P.jsxs)("div",{className:"flex flex-nowrap",children:[(0,P.jsx)("div",{className:"flex-initial",children:(0,P.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,P.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,P.jsx)("div",{className:"ml-3 flex-initial",children:(0,P.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,P.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,P.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,P.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,P.jsx)("a",{href:`tel:${Ft.Support.Hotline}`,className:"text-gray-600",children:Ft.Support.Hotline_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsx)("a",{href:`mailto:${Ft.Support.Email}`,className:"text-gray-600",children:Ft.Support.Email})]})]}),(0,P.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,P.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,P.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,P.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,P.jsxs)("g",{children:[(0,P.jsx)("title",{children:"Asset 1"}),(0,P.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,P.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,P.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,P.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,P.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,P.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,P.jsx)("a",{className:"text-gray-600",href:`tel:${Ft.Business.Phome}`,children:Ft.Business.Phome_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsxs)("a",{href:`mailto:${Ft.Business.Email}`,className:"text-gray-600",children:[" ",Ft.Business.Email]})]})]}),(0,P.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,P.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,P.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,P.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,P.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,P.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},sl=Fd;var Mt=require("react/jsx-runtime"),Bd=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Mt.jsx)("li",{className:"",children:(0,Mt.jsx)(Uo,{asChild:!0,children:(0,Mt.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,Mt.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,Mt.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,Mt.jsxs)("div",{className:" ",children:[(0,Mt.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,Mt.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},ll=Bd;var lt=require("react/jsx-runtime"),Od=({data:e,alignDropdown:o})=>(0,lt.jsx)(ua,{alignDropdown:o,children:(0,lt.jsx)(va,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,lt.jsxs)(ha,{className:"relative",children:[(0,lt.jsx)(ba,{children:t.title}),(0,lt.jsx)(ya,{children:(0,lt.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,lt.jsx)(ll,{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,lt.jsx)(ha,{className:"relative",children:(0,lt.jsx)(Uo,{href:t.url,className:xa(),...a,children:t.title})},t.id)})})}),ml=Od;var te=require("react/jsx-runtime"),zr=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:m=!0})=>{let{logo:c,name:d,url:p}=t||{},[g,u]=(0,cl.useState)(!1);return(0,te.jsxs)(te.Fragment,{children:[(0,te.jsxs)("div",{className:r(e,"z-40 flex-none w-full lg:z-50",n?"sticky top-0":"relative"),children:[(0,te.jsx)("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,te.jsx)("nav",{className:r("grid grid-cols-1 items-center wrapper [--header-height-mobase:64px] lg:border-0"),style:{minHeight:"var(--header-height-mobase)"},children:(0,te.jsxs)("div",{className:"flex relative items-center",children:[m&&(0,te.jsxs)("a",{href:"/",title:"MoMo",className:"overflow-hidden flex-none mr-3 w-9 h-9 rounded-none hover:opacity-80",children:[(0,te.jsx)("span",{className:"sr-only",children:"MoMo - \u1EE8ng d\u1EE5ng t\xE0i ch\xEDnh"}),(0,te.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"})]}),t&&(0,te.jsxs)("a",{href:p,title:d,className:r("relative flex flex-none items-center space-x-1 rounded-none hover:opacity-80",m&&"pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-['']"),children:[(0,te.jsx)("img",{src:c,className:"h-9",alt:"MoMo","data-puck-editable":"true","data-puck-component":"HeaderNavigation","data-puck-field":"serviceInfo","data-puck-nested-field":"logo"}),(0,te.jsx)("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:v(d)})]}),(0,te.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,te.jsx)(ml,{data:o,alignDropdown:s})}),(0,te.jsxs)("div",{className:r("ml-auto flex flex-nowrap items-center space-x-3",!i&&!a&&"lg:ml-0"),children:[i&&i,a&&(0,te.jsxs)("div",{className:"hidden sm:flex",children:[(0,te.jsxs)(Ee,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>u(!0),children:[" ",(0,te.jsx)(dl.ArrowDownTrayIcon,{className:"mr-1 w-4 h-4"})," T\u1EA3i V\xED MoMo"]}),(0,te.jsx)(eo,{open:g,onOpenChange:()=>u(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),(0,te.jsx)(sl,{data:o,className:"lg:hidden"})]})]})})]}),(0,te.jsx)("style",{children:`
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,P.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,P.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,P.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,P.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,P.jsx)("a",{className:"text-gray-600",href:`tel:${Ft.Business.Phome}`,children:Ft.Business.Phome_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsxs)("a",{href:`mailto:${Ft.Business.Email}`,className:"text-gray-600",children:[" ",Ft.Business.Email]})]})]}),(0,P.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,P.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,P.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,P.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,P.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,P.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},sl=Fd;var Mt=require("react/jsx-runtime"),Bd=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Mt.jsx)("li",{className:"",children:(0,Mt.jsx)(Uo,{asChild:!0,children:(0,Mt.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,Mt.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,Mt.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,Mt.jsxs)("div",{className:" ",children:[(0,Mt.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,Mt.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},ll=Bd;var lt=require("react/jsx-runtime"),Od=({data:e,alignDropdown:o})=>(0,lt.jsx)(ga,{alignDropdown:o,children:(0,lt.jsx)(va,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,lt.jsxs)(ha,{className:"relative",children:[(0,lt.jsx)(ba,{children:t.title}),(0,lt.jsx)(ya,{children:(0,lt.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,lt.jsx)(ll,{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,lt.jsx)(ha,{className:"relative",children:(0,lt.jsx)(Uo,{href:t.url,className:xa(),...a,children:t.title})},t.id)})})}),ml=Od;var te=require("react/jsx-runtime"),zr=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:c,name:d,url:p}=t||{},[u,g]=(0,cl.useState)(!1);return(0,te.jsxs)(te.Fragment,{children:[(0,te.jsxs)("div",{className:r(e,"z-40 flex-none w-full lg:z-50",n?"sticky top-0":"relative"),children:[(0,te.jsx)("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,te.jsx)("nav",{className:r("grid grid-cols-1 items-center wrapper [--header-height-mobase:64px] lg:border-0"),style:{minHeight:"var(--header-height-mobase)"},children:(0,te.jsxs)("div",{className:"flex relative items-center",children:[l&&(0,te.jsxs)("a",{href:"/",title:"MoMo",className:"overflow-hidden flex-none mr-3 w-9 h-9 rounded-none hover:opacity-80",children:[(0,te.jsx)("span",{className:"sr-only",children:"MoMo - \u1EE8ng d\u1EE5ng t\xE0i ch\xEDnh"}),(0,te.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"})]}),t&&(0,te.jsxs)("a",{href:p,title:d,className:r("relative flex flex-none items-center space-x-1 rounded-none hover:opacity-80",l&&"pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-['']"),children:[(0,te.jsx)("img",{src:c,className:"h-9",alt:"MoMo","data-puck-editable":"true","data-puck-component":"HeaderNavigation","data-puck-field":"serviceInfo","data-puck-nested-field":"logo"}),(0,te.jsx)("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:v(d)})]}),(0,te.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,te.jsx)(ml,{data:o,alignDropdown:s})}),(0,te.jsxs)("div",{className:r("ml-auto flex flex-nowrap items-center space-x-3",!i&&!a&&"lg:ml-0"),children:[i&&i,a&&(0,te.jsxs)("div",{className:"hidden sm:flex",children:[(0,te.jsxs)(Ee,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",(0,te.jsx)(dl.ArrowDownTrayIcon,{className:"mr-1 w-4 h-4"})," T\u1EA3i V\xED MoMo"]}),(0,te.jsx)(eo,{open:u,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,te.jsx)(sl,{data:o,className:"lg:hidden"})]})]})})]}),(0,te.jsx)("style",{children:`
125
125
  :root{
126
126
  --nextra-navbar-height: 64px;
127
127
  }
@@ -137,14 +137,14 @@
137
137
  footer .button-download {
138
138
  max-width: 150px;
139
139
  }
140
- `})]})},gl=Vd;var Er=require("react/jsx-runtime"),ul=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,Er.jsx)("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,Er.jsx)(gl,{primaryMenu:o,secondaryMenu:t})});var So=h(require("react"),1);var Do=require("react/jsx-runtime"),Hr=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Hr.displayName="Card";var _r=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));_r.displayName="CardHeader";var Fr=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));Fr.displayName="CardTitle";var Br=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Br.displayName="CardDescription";var Or=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("div",{ref:t,className:r("p-6 pt-0",e),...o}));Or.displayName="CardContent";var Vr=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));Vr.displayName="CardFooter";var Xe=h(require("react"),1),De=require("cmdk");var pi=require("@heroicons/react/16/solid"),ke=require("react/jsx-runtime"),fi=Xe.forwardRef(({className:e,...o},t)=>(0,ke.jsx)(De.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}));fi.displayName=De.Command.displayName;var vl=({children:e,...o})=>(0,ke.jsx)($e,{...o,children:(0,ke.jsx)(He,{className:"overflow-hidden p-0 shadow-lg",children:(0,ke.jsx)(fi,{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})})}),Wr=Xe.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=Xe.useRef(null),[s,m]=Xe.useState(""),c=()=>{!s||s?.length<=0||(m(""),o?.(s))};return(0,ke.jsxs)("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[(0,ke.jsx)(pi.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,ke.jsx)(De.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,ke.jsx)(pi.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")})]})});Wr.displayName=De.Command.Input.displayName;var Gr=Xe.forwardRef(({className:e,...o},t)=>(0,ke.jsx)(De.Command.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Gr.displayName=De.Command.List.displayName;var $r=Xe.forwardRef((e,o)=>(0,ke.jsx)(De.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));$r.displayName=De.Command.Empty.displayName;var jr=Xe.forwardRef(({className:e,...o},t)=>(0,ke.jsx)(De.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}));jr.displayName=De.Command.Group.displayName;var Qr=Xe.forwardRef(({className:e,...o},t)=>(0,ke.jsx)(De.Command.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));Qr.displayName=De.Command.Separator.displayName;var Ur=Xe.forwardRef(({className:e,children:o,...t},a)=>(0,ke.jsx)(De.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}));Ur.displayName=De.Command.Item.displayName;var qr=({className:e,...o})=>(0,ke.jsx)("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});qr.displayName="CommandShortcut";var hl=require("@heroicons/react/16/solid");var ro=require("react/jsx-runtime"),xl=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>(0,ro.jsxs)("div",{className:"relative",children:[(0,ro.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,ro.jsx)(hl.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&(0,ro.jsx)("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),bl=({children:e,className:o,...t})=>(0,ro.jsx)(No,{className:r("border-none !p-0",o),...t,children:e}),yl=({open:e,onOpenChange:o,children:t,...a})=>(0,ro.jsx)(Vo,{open:e,onOpenChange:o,...a,children:t});var wl=require("react"),Nl=require("@heroicons/react/24/outline"),Xr=require("class-variance-authority");var Mo=require("react/jsx-runtime"),Wd=(0,Xr.cva)("flex items-center space-x-2 rounded-md border px-3 py-2 text-sm text-gray-700",{variants:{typeDiv:{neutral:"border-gray-300 bg-gray-50",error:"border-red-300 bg-red-50",success:"border-green-300 bg-green-50",warning:"border-yellow-300 bg-yellow-50",info:"border-blue-300 bg-blue-50"},disabled:{true:"pointer-events-none border-gray-300 bg-gray-50 text-gray-400 opacity-55"}},defaultVariants:{typeDiv:"neutral"}}),Gd=(0,Xr.cva)("h-5 w-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"}}),Xo=(0,wl.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:m,...c},d)=>(0,Mo.jsxs)("div",{ref:d,className:r("",i,Wd({typeDiv:e,disabled:n})),...c,children:[(0,Mo.jsxs)("div",{className:"flex items-center space-x-2",children:[m||(0,Mo.jsx)(Nl.InformationCircleIcon,{className:r(Gd({typeIcon:e,disabled:n})),width:20,height:20}),o&&(0,Mo.jsx)("div",{children:v(o)})]}),t&&(0,Mo.jsx)(Ne,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));var no=require("react"),Pl=require("@heroicons/react/20/solid"),Cl=require("@heroicons/react/24/outline");var It=require("react/jsx-runtime"),kl=(0,no.forwardRef)(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:m,defaultValue:c,type:d="text",...p},g)=>{let[u,y]=(0,no.useState)(!1),I=(0,no.useRef)(null),D=U=>{U&&!u&&y(!0),!U&&u&&y(!1)},z=U=>{D(U.target.value),i?.(U)},X=U=>{D(U.target.value),n?.(U)},oe=()=>{let U=I.current?.querySelector("input");U&&(s?.(U.value),U.value="",U.focus(),y(!1))};return(0,no.useEffect)(()=>{D(c||m)},[m,c]),(0,It.jsxs)("div",{className:r(o),ref:I,children:[(0,It.jsxs)("div",{className:"relative flex items-center",children:[(0,It.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,It.jsx)(Pl.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,It.jsx)("input",{disabled:e,type:d,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:z,onFocus:X,value:m,defaultValue:c,...p}),u&&(0,It.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:oe,children:(0,It.jsx)(Cl.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,It.jsx)("style",{children:`
140
+ `})]})},ul=Vd;var Er=require("react/jsx-runtime"),gl=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,Er.jsx)("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,Er.jsx)(ul,{primaryMenu:o,secondaryMenu:t})});var So=h(require("react"),1);var Do=require("react/jsx-runtime"),Hr=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Hr.displayName="Card";var _r=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));_r.displayName="CardHeader";var Fr=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));Fr.displayName="CardTitle";var Br=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Br.displayName="CardDescription";var Or=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("div",{ref:t,className:r("p-6 pt-0",e),...o}));Or.displayName="CardContent";var Vr=So.forwardRef(({className:e,...o},t)=>(0,Do.jsx)("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));Vr.displayName="CardFooter";var Xe=h(require("react"),1),De=require("cmdk");var pi=require("@heroicons/react/16/solid"),ke=require("react/jsx-runtime"),fi=Xe.forwardRef(({className:e,...o},t)=>(0,ke.jsx)(De.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}));fi.displayName=De.Command.displayName;var vl=({children:e,...o})=>(0,ke.jsx)($e,{...o,children:(0,ke.jsx)(He,{className:"overflow-hidden p-0 shadow-lg",children:(0,ke.jsx)(fi,{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})})}),Wr=Xe.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=Xe.useRef(null),[s,l]=Xe.useState(""),c=()=>{!s||s?.length<=0||(l(""),o?.(s))};return(0,ke.jsxs)("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[(0,ke.jsx)(pi.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,ke.jsx)(De.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:l,...a}),(0,ke.jsx)(pi.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")})]})});Wr.displayName=De.Command.Input.displayName;var Gr=Xe.forwardRef(({className:e,...o},t)=>(0,ke.jsx)(De.Command.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Gr.displayName=De.Command.List.displayName;var $r=Xe.forwardRef((e,o)=>(0,ke.jsx)(De.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));$r.displayName=De.Command.Empty.displayName;var jr=Xe.forwardRef(({className:e,...o},t)=>(0,ke.jsx)(De.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}));jr.displayName=De.Command.Group.displayName;var Qr=Xe.forwardRef(({className:e,...o},t)=>(0,ke.jsx)(De.Command.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));Qr.displayName=De.Command.Separator.displayName;var Ur=Xe.forwardRef(({className:e,children:o,...t},a)=>(0,ke.jsx)(De.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}));Ur.displayName=De.Command.Item.displayName;var qr=({className:e,...o})=>(0,ke.jsx)("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});qr.displayName="CommandShortcut";var hl=require("@heroicons/react/16/solid");var ro=require("react/jsx-runtime"),xl=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>(0,ro.jsxs)("div",{className:"relative",children:[(0,ro.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,ro.jsx)(hl.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&(0,ro.jsx)("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),bl=({children:e,className:o,...t})=>(0,ro.jsx)(No,{className:r("border-none !p-0",o),...t,children:e}),yl=({open:e,onOpenChange:o,children:t,...a})=>(0,ro.jsx)(Vo,{open:e,onOpenChange:o,...a,children:t});var wl=require("react"),Nl=require("@heroicons/react/24/outline"),Xr=require("class-variance-authority");var Mo=require("react/jsx-runtime"),Wd=(0,Xr.cva)("flex items-center space-x-2 rounded-md border px-3 py-2 text-sm text-gray-700",{variants:{typeDiv:{neutral:"border-gray-300 bg-gray-50",error:"border-red-300 bg-red-50",success:"border-green-300 bg-green-50",warning:"border-yellow-300 bg-yellow-50",info:"border-blue-300 bg-blue-50"},disabled:{true:"pointer-events-none border-gray-300 bg-gray-50 text-gray-400 opacity-55"}},defaultVariants:{typeDiv:"neutral"}}),Gd=(0,Xr.cva)("h-5 w-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"}}),Xo=(0,wl.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...c},d)=>(0,Mo.jsxs)("div",{ref:d,className:r("",i,Wd({typeDiv:e,disabled:n})),...c,children:[(0,Mo.jsxs)("div",{className:"flex items-center space-x-2",children:[l||(0,Mo.jsx)(Nl.InformationCircleIcon,{className:r(Gd({typeIcon:e,disabled:n})),width:20,height:20}),o&&(0,Mo.jsx)("div",{children:v(o)})]}),t&&(0,Mo.jsx)(Ne,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));var no=require("react"),Pl=require("@heroicons/react/20/solid"),Cl=require("@heroicons/react/24/outline");var It=require("react/jsx-runtime"),kl=(0,no.forwardRef)(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:c,type:d="text",...p},u)=>{let[g,y]=(0,no.useState)(!1),I=(0,no.useRef)(null),D=U=>{U&&!g&&y(!0),!U&&g&&y(!1)},z=U=>{D(U.target.value),i?.(U)},X=U=>{D(U.target.value),n?.(U)},oe=()=>{let U=I.current?.querySelector("input");U&&(s?.(U.value),U.value="",U.focus(),y(!1))};return(0,no.useEffect)(()=>{D(c||l)},[l,c]),(0,It.jsxs)("div",{className:r(o),ref:I,children:[(0,It.jsxs)("div",{className:"relative flex items-center",children:[(0,It.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,It.jsx)(Pl.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,It.jsx)("input",{disabled:e,type:d,ref:u,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:z,onFocus:X,value:l,defaultValue:c,...p}),g&&(0,It.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:oe,children:(0,It.jsx)(Cl.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,It.jsx)("style",{children:`
141
141
  .mobase-text-input-box:hover {
142
142
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
143
143
  }
144
144
  .mobase-text-input-box:focus {
145
145
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
146
146
  }
147
- `})]})});var Oe=h(require("@radix-ui/react-dialog"),1),Ye=h(require("react"),1);var Rl=require("lucide-react"),Tl=h(require("lodash"),1);var j=require("react/jsx-runtime"),Sl=Ye.default.createContext(void 0);function Dl(){let e=(0,Ye.useContext)(Sl);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var gi=({children:e,open:o,onOpenChange:t,className:a})=>(0,j.jsx)(Sl.Provider,{value:{open:o,onOpenChange:t},children:(0,j.jsx)(Oe.Root,{open:o,onOpenChange:t,children:(0,j.jsx)("div",{className:r("lightbox-gallery",a),children:e})})}),Ml=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:m}=Dl(),c=()=>{n?.(),m&&m(!0)};return(0,j.jsxs)(Oe.Trigger,{className:r("",a),onClick:c,children:[e,(0,j.jsx)(q,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,j.jsx)("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},Il=Ye.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=Dl(),n=()=>{i&&i(!1)};return(0,j.jsxs)(Oe.Portal,{children:[(0,j.jsx)(Oe.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,j.jsxs)(Oe.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,j.jsxs)(Oe.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,j.jsx)(Rl.X,{className:"h-4 w-4 mt-0.5"}),(0,j.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Il.displayName=Oe.Content.displayName;var ui=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=(0,Ye.useState)(""),[m,c]=(0,Ye.useState)(),[d,p]=(0,Ye.useState)(0);(0,Ye.useEffect)(()=>{m&&(p(m.selectedScrollSnap()+1),m.on("select",()=>{p(m.selectedScrollSnap()+1)}))},[m]);let g=u=>{let y=Tl.default.filter(e,(D,z)=>z===(u>0?u-1:u)),I=y.length>0?y[0]?.titleImage:"";s(I)};return(0,Ye.useEffect)(()=>{g(d)},[d]),(0,j.jsxs)(Il,{className:"flex py-0",children:[(0,j.jsxs)("div",{className:" flex-1 relative",children:[(0,j.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[d||1," / ",e?.length]}),(0,j.jsxs)(Pe,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[(0,j.jsx)(Ce,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,y)=>(0,j.jsx)(ye,{className:"pl-6 md:pl-4",children:(0,j.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,j.jsx)("div",{className:"flex-1 relative",children:(0,j.jsx)("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,j.jsx)("div",{className:"flex-0",children:(0,j.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,j.jsx)("div",{className:"line-clamp-3",children:n})})})]})},y))}),(0,j.jsx)(bo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,j.jsx)(yo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&(0,j.jsx)("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};var so=h(require("react"),1),Al=require("@heroicons/react/16/solid"),Pa=h(require("@radix-ui/react-checkbox"),1),lo=h(require("@radix-ui/react-radio-group"),1),Ll=require("lucide-react");var ze=require("react/jsx-runtime"),zl=so.createContext({hideIndicator:!1});function $d(){let e=so.useContext(zl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ca=so.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,ze.jsx)(zl.Provider,{value:{hideIndicator:o},children:(0,ze.jsx)(lo.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Ca.displayName=lo.Root.displayName;var ka=so.forwardRef(({className:e,children:o,...t},a)=>{let i=$d(),{hideIndicator:n}=i??{};return(0,ze.jsxs)(lo.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,ze.jsx)("div",{className:"min-w-0 flex-1",children:o}),!n&&(0,ze.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,ze.jsx)(lo.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:(0,ze.jsx)(Ll.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});ka.displayName=lo.Item.displayName;var Yr=so.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>(0,ze.jsxs)(Pa.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,ze.jsx)("div",{className:"min-w-0 flex-1",children:o}),!t&&(0,ze.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,ze.jsx)(Pa.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,ze.jsx)(Al.CheckIcon,{className:"h-4 w-4"})})})]}));Yr.displayName=Pa.Root.displayName;var El=require("class-variance-authority");var _l=require("react/jsx-runtime"),Zr=(0,El.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 Hl({className:e,variant:o,...t}){return(0,_l.jsx)("div",{className:r(Zr({variant:o}),e),...t})}var Fl=h(require("react"),1),Ra=h(require("@radix-ui/react-progress"),1),Jr=require("class-variance-authority");var Kr=require("react/jsx-runtime"),jd=(0,Jr.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"}}),Qd=(0,Jr.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"}}),en=Fl.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>(0,Kr.jsx)(Ra.Root,{ref:s,className:r("",Qd({size:a}),e),...n,children:(0,Kr.jsx)(Ra.Indicator,{className:r("",jd({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));en.displayName=Ra.Root.displayName;var Bl=require("react/jsx-runtime");function Ta({className:e,...o}){return(0,Bl.jsx)("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}var Ve=require("react/jsx-runtime");function vi({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,Ve.jsx)("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return(0,Ve.jsxs)("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((m,c)=>(0,Ve.jsx)("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),(0,Ve.jsx)("style",{children:`
147
+ `})]})});var Oe=h(require("@radix-ui/react-dialog"),1),Ye=h(require("react"),1);var Rl=require("lucide-react"),Tl=h(require("lodash"),1);var j=require("react/jsx-runtime"),Sl=Ye.default.createContext(void 0);function Dl(){let e=(0,Ye.useContext)(Sl);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var ui=({children:e,open:o,onOpenChange:t,className:a})=>(0,j.jsx)(Sl.Provider,{value:{open:o,onOpenChange:t},children:(0,j.jsx)(Oe.Root,{open:o,onOpenChange:t,children:(0,j.jsx)("div",{className:r("lightbox-gallery",a),children:e})})}),Ml=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=Dl(),c=()=>{n?.(),l&&l(!0)};return(0,j.jsxs)(Oe.Trigger,{className:r("",a),onClick:c,children:[e,(0,j.jsx)(q,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,j.jsx)("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},Il=Ye.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=Dl(),n=()=>{i&&i(!1)};return(0,j.jsxs)(Oe.Portal,{children:[(0,j.jsx)(Oe.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,j.jsxs)(Oe.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,j.jsxs)(Oe.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,j.jsx)(Rl.X,{className:"h-4 w-4 mt-0.5"}),(0,j.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Il.displayName=Oe.Content.displayName;var gi=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=(0,Ye.useState)(""),[l,c]=(0,Ye.useState)(),[d,p]=(0,Ye.useState)(0);(0,Ye.useEffect)(()=>{l&&(p(l.selectedScrollSnap()+1),l.on("select",()=>{p(l.selectedScrollSnap()+1)}))},[l]);let u=g=>{let y=Tl.default.filter(e,(D,z)=>z===(g>0?g-1:g)),I=y.length>0?y[0]?.titleImage:"";s(I)};return(0,Ye.useEffect)(()=>{u(d)},[d]),(0,j.jsxs)(Il,{className:"flex py-0",children:[(0,j.jsxs)("div",{className:" flex-1 relative",children:[(0,j.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[d||1," / ",e?.length]}),(0,j.jsxs)(Pe,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[(0,j.jsx)(Ce,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,y)=>(0,j.jsx)(ye,{className:"pl-6 md:pl-4",children:(0,j.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,j.jsx)("div",{className:"flex-1 relative",children:(0,j.jsx)("img",{src:g.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,j.jsx)("div",{className:"flex-0",children:(0,j.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,j.jsx)("div",{className:"line-clamp-3",children:n})})})]})},y))}),(0,j.jsx)(bo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,j.jsx)(yo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&(0,j.jsx)("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};var so=h(require("react"),1),Al=require("@heroicons/react/16/solid"),Pa=h(require("@radix-ui/react-checkbox"),1),lo=h(require("@radix-ui/react-radio-group"),1),Ll=require("lucide-react");var ze=require("react/jsx-runtime"),zl=so.createContext({hideIndicator:!1});function $d(){let e=so.useContext(zl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ca=so.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,ze.jsx)(zl.Provider,{value:{hideIndicator:o},children:(0,ze.jsx)(lo.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Ca.displayName=lo.Root.displayName;var ka=so.forwardRef(({className:e,children:o,...t},a)=>{let i=$d(),{hideIndicator:n}=i??{};return(0,ze.jsxs)(lo.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,ze.jsx)("div",{className:"min-w-0 flex-1",children:o}),!n&&(0,ze.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,ze.jsx)(lo.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:(0,ze.jsx)(Ll.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});ka.displayName=lo.Item.displayName;var Yr=so.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>(0,ze.jsxs)(Pa.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,ze.jsx)("div",{className:"min-w-0 flex-1",children:o}),!t&&(0,ze.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,ze.jsx)(Pa.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,ze.jsx)(Al.CheckIcon,{className:"h-4 w-4"})})})]}));Yr.displayName=Pa.Root.displayName;var El=require("class-variance-authority");var _l=require("react/jsx-runtime"),Zr=(0,El.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 Hl({className:e,variant:o,...t}){return(0,_l.jsx)("div",{className:r(Zr({variant:o}),e),...t})}var Fl=h(require("react"),1),Ra=h(require("@radix-ui/react-progress"),1),Jr=require("class-variance-authority");var Kr=require("react/jsx-runtime"),jd=(0,Jr.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"}}),Qd=(0,Jr.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"}}),en=Fl.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>(0,Kr.jsx)(Ra.Root,{ref:s,className:r("",Qd({size:a}),e),...n,children:(0,Kr.jsx)(Ra.Indicator,{className:r("",jd({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));en.displayName=Ra.Root.displayName;var Bl=require("react/jsx-runtime");function Ta({className:e,...o}){return(0,Bl.jsx)("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}var Ve=require("react/jsx-runtime");function vi({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,Ve.jsx)("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return(0,Ve.jsxs)("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,c)=>(0,Ve.jsx)("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),(0,Ve.jsx)("style",{children:`
148
148
  .spinner_dots span {
149
149
  animation-name: spinner-dots;
150
150
  animation-duration: 1.4s;
@@ -171,7 +171,7 @@
171
171
  opacity: .2;
172
172
  }
173
173
  }
174
- `})]});case"default":default:return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:(0,Ve.jsx)("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e],t),children:[...Array(12)].map((m,c)=>(0,Ve.jsx)("div",{className:r(`spinner_bar child-${c+1}`,o)},c))})}),(0,Ve.jsx)("style",{children:`
174
+ `})]});case"default":default:return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:(0,Ve.jsx)("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e],t),children:[...Array(12)].map((l,c)=>(0,Ve.jsx)("div",{className:r(`spinner_bar child-${c+1}`,o)},c))})}),(0,Ve.jsx)("style",{children:`
175
175
  .spinner_bar {
176
176
  animation: spinner_spin 1.2s linear infinite;
177
177
  border-radius: 20px;
@@ -251,7 +251,7 @@
251
251
  opacity: 0.15;
252
252
  }
253
253
  }
254
- `})]})}})()})}var Ol=h(require("react"),1),At=h(require("@radix-ui/react-slider"),1);var mt=require("react/jsx-runtime"),tn=Ol.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>(0,mt.jsxs)(At.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,mt.jsx)(At.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,mt.jsx)(At.Range,{className:"absolute h-full bg-pink-500"})}),(0,mt.jsx)(At.Thumb,{className:"group relative",children:(0,mt.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,mt.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,mt.jsx)(At.Thumb,{className:"group relative",children:(0,mt.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,mt.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})})})]}));tn.displayName=At.Root.displayName;var ql=require("react");var ce=require("react/jsx-runtime"),Ud=({author:e=""})=>(0,ce.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),qd=({author:e,avatar:o})=>(0,ce.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,ce.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,ce.jsx)(Ud,{author:e})});function Xd({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return(0,ce.jsx)(ce.Fragment,{children:(0,ce.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,ce.jsx)(qd,{avatar:e,author:o}),(0,ce.jsxs)("div",{className:"flex flex-col",children:[o&&(0,ce.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,ce.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,ce.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,ce.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ce.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,ce.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&(0,ce.jsx)("div",{className:"absolute right-1 top-0",children:(0,ce.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Vl=Xd;var on=require("react");var Wl=require("@heroicons/react/20/solid"),Yo=require("react/jsx-runtime"),Yd={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!"},Zd={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 Kd({point:e,max:o,className:t}){let a=o>5?Yd[e||10]:Zd[e||5];return(0,Yo.jsxs)("div",{className:r("flex items-center space-x-1",t),children:[(0,Yo.jsx)(Wl.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,Yo.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,Yo.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Gl=Kd;var $l=require("react");var xi=require("react/jsx-runtime"),hi=({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,$l.useState)(!0),c=()=>{m(!s)},d=(p,g,u=" ")=>p.length<=g?p:p.substring(0,p.lastIndexOf(u,g));return(0,xi.jsxs)("div",{className:r(n),children:[s?v(d(e,o)):v(e),e.length>o&&(0,xi.jsx)("span",{onClick:c,className:r("read-or-hide text-md w-fit cursor-pointer pl-1 hover:underline",i),children:s?t:a})]})};var ct=require("react/jsx-runtime");function Jd({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,m]=(0,on.useState)(0),[c,d]=(0,on.useState)(!1),p=g=>{d(!0),m(g)};return(0,ct.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&(0,ct.jsx)(Gl,{className:"mb-0.5",point:i.point,max:i.max}),e&&(0,ct.jsx)(hi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,ct.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>(0,ct.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,ct.jsxs)(gi,{open:c,onOpenChange:d,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,u)=>(0,ct.jsx)(q,{onClick:()=>p(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,ct.jsx)("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),(0,ct.jsx)(ui,{activeSlideIndex:s,images:o?.map((g,u)=>({url:g.url,titleImage:g.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var jl=Jd;var Ul=require("react/jsx-runtime");function ep({actions:e=[]}){return(0,Ul.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Ql=ep;var Io=require("react/jsx-runtime"),Xl=(0,ql.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:m=[],statusMessage:c,isReply:d,children:p,commentSideBar:g,isOutStanding:u,limitContent:y=260},I)=>(0,Io.jsxs)("div",{ref:I,className:r("",d?"ml-4 py-4":"py-5"),children:[(0,Io.jsx)(Vl,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),(0,Io.jsx)(jl,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:y}),m&&m?.filter(Boolean)?.length>0&&(0,Io.jsx)(Ql,{actions:m.filter(Boolean)}),p&&(0,Io.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 mo=h(require("react"),1),Yl=require("class-variance-authority");var Zl=require("@heroicons/react/16/solid"),Kl=require("lucide-react"),de=require("react/jsx-runtime"),tp=(0,Yl.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"}}),Jl=mo.createContext("default");function op(){let e=mo.useContext(Jl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var ap=mo.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,de.jsx)(Kl.XIcon,{className:s}):(0,de.jsxs)("div",{children:[e==="iconStep"&&(0,de.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,de.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,de.jsx)(Zl.CheckIcon,{className:s}):(0,de.jsx)("div",{children:t}))]})}),em=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=mo.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,de.jsx)("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},tm=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:m,fristStep:c,icon:d,isError:p,onValueChangeStep:g,...u})=>{let y=op();return(0,de.jsxs)("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[(0,de.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,de.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,de.jsx)("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",tp({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",i),...u,children:(0,de.jsx)(ap,{type:y,icon:d,stepNumber:e,size:t,isError:p,state:o})}),(0,de.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,de.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,de.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,de.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},om=({children:e,className:o,type:t="numberStep",...a})=>(0,de.jsx)(Jl.Provider,{value:t,children:(0,de.jsx)("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});var Xt=h(require("react"),1),S=h(require("@radix-ui/react-dropdown-menu"),1),bi=require("lucide-react");var se=require("react/jsx-runtime"),am=S.Root,im=S.Trigger,rm=S.Group,nm=S.Portal,sm=S.Sub,lm=S.RadioGroup,an=Xt.forwardRef(({className:e,inset:o,children:t,...a},i)=>(0,se.jsxs)(S.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,se.jsx)(bi.ChevronRight,{className:"ml-auto"})]}));an.displayName=S.SubTrigger.displayName;var rn=Xt.forwardRef(({className:e,...o},t)=>(0,se.jsx)(S.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}));rn.displayName=S.SubContent.displayName;var nn=Xt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,se.jsx)(S.Portal,{children:(0,se.jsx)(S.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})}));nn.displayName=S.Content.displayName;var sn=Xt.forwardRef(({className:e,inset:o,...t},a)=>(0,se.jsx)(S.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}));sn.displayName=S.Item.displayName;var ln=Xt.forwardRef(({className:e,children:o,checked:t,...a},i)=>(0,se.jsxs)(S.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,se.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,se.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,se.jsx)(S.ItemIndicator,{children:(0,se.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,se.jsx)(bi.Check,{size:16,strokeWidth:3})})})]}),o]}));ln.displayName=S.CheckboxItem.displayName;var mn=Xt.forwardRef(({className:e,children:o,...t},a)=>(0,se.jsxs)(S.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,se.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,se.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,se.jsx)(S.ItemIndicator,{children:(0,se.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));mn.displayName=S.RadioItem.displayName;var cn=Xt.forwardRef(({className:e,inset:o,...t},a)=>(0,se.jsx)(S.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));cn.displayName=S.Label.displayName;var dn=Xt.forwardRef(({className:e,...o},t)=>(0,se.jsx)(S.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));dn.displayName=S.Separator.displayName;var pn=({className:e,...o})=>(0,se.jsx)("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});pn.displayName="DropdownMenuShortcut";var dm=require("@radix-ui/react-slot");var mm=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};var k=require("react/jsx-runtime"),cm=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsx)(N,{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,k.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>(0,k.jsx)("div",{className:r("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:(0,k.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,k.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,k.jsxs)("div",{className:"mt-6 w-full",children:[(0,k.jsx)("div",{className:"w-full text-xl font-semibold",children:v(a.title)}),a?.description&&(0,k.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]})]})},i))}),t&&(0,k.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ip=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsx)(N,{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,k.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>(0,k.jsxs)("div",{className:r("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[(0,k.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,k.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,k.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,k.jsx)(q,{ratio:1,children:(0,k.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,k.jsxs)("div",{className:"mt-6 w-full",children:[(0,k.jsx)("div",{className:"w-full text-xl font-semibold",children:v(a.title)}),a?.description&&(0,k.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]})]},i))}),t&&(0,k.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),rp=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsx)(N,{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,k.jsx)("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4",children:o.map((a,i)=>(0,k.jsxs)("div",{className:r("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&(0,k.jsx)("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?mm(a.image)?(0,k.jsx)("img",{src:a.image,className:"block object-cover"}):(0,k.jsx)(dm.Slot,{className:"h-6 w-6 stroke-white stroke-2",children:v(a.image.replace(/\n|\r/g,""))}):a.image}),(0,k.jsxs)("div",{className:"mt-4 w-full md:mt-6",children:[(0,k.jsx)("div",{className:"w-full text-xl font-semibold",children:v(a.title)}),a?.description&&(0,k.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]})]},i))}),t&&(0,k.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),np=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,k.jsx)(cm,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,k.jsx)(ip,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return(0,k.jsx)(rp,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,k.jsx)(cm,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},sp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,k.jsx)(k.Fragment,{children:np({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),pm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>(0,k.jsx)(J,{className:t,idSection:a,background:o,children:(0,k.jsx)(sp,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});var fm=require("class-variance-authority"),fn=require("lucide-react");var ie=require("react/jsx-runtime"),lp=(0,fm.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}}),mp=({template:e,name:o,image:t,isFeatures:a,idx:i})=>(0,ie.jsx)(ie.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsxs)("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?(0,ie.jsx)("div",{className:"flex flex-none justify-center items-center w-10 h-10 shrink-0",children:(0,ie.jsx)("img",{src:t,alt:"",className:"max-w-full","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataFeatures","data-puck-nested-field":"image","data-puck-array-index":i})}):(0,ie.jsx)("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:(0,ie.jsx)(fn.CheckIcon,{className:"w-4 h-4 text-pink-500"})}),o&&(0,ie.jsx)("div",{className:"ml-2",children:v(o)})]})});case 3:return(0,ie.jsxs)("li",{className:"flex space-x-4 h-full",children:[t?(0,ie.jsx)("div",{className:"flex flex-none justify-center items-center w-10 h-10 shrink-0",children:(0,ie.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,ie.jsx)("div",{className:"flex flex-none justify-center items-center p-1 w-5 h-5 bg-pink-100 rounded-full",children:(0,ie.jsx)(fn.CheckIcon,{className:"w-4 h-4 text-pink-500"})}),o&&(0,ie.jsx)("div",{className:"my-auto ml-2 md:my-0",children:v(o)})]});default:return null}})()}),yi=({dataFeatures:e,template:o=1})=>(0,ie.jsx)(ie.Fragment,{children:(e?.length??0)>0&&(0,ie.jsx)("ul",{className:r("",lp({template:o})),children:e?.map((t,a)=>(0,ie.jsx)(mp,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var gm=require("lucide-react");var Q=require("react/jsx-runtime"),um=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,cp=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>(0,Q.jsxs)(zo,{children:[(0,Q.jsx)(gt,{greaterThan:"sm",children:(0,Q.jsxs)(q,{className:r(""),ratio:um(o),children:[(0,Q.jsx)("img",{src:e,className:r("hidden object-cover w-full h-full md:block",t,e?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"}),a&&(0,Q.jsxs)($e,{children:[(0,Q.jsx)(Ho,{onClick:i,children:(0,Q.jsx)("div",{className:"hidden absolute top-0 z-10 justify-center items-center w-full h-full transition-transform cursor-pointer group-hover:scale-105 md:flex",children:(0,Q.jsx)("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,Q.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Q.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,Q.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,Q.jsx)(He,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:(0,Q.jsxs)(ot,{className:"relative p-4 text-center bg-transparent",children:[(0,Q.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,Q.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:"w-full h-full"})}),(0,Q.jsx)(La,{asChild:!0,children:(0,Q.jsx)(ge,{variant:"secondary",className:"absolute top-0 right-0 rounded-full",size:"sm",children:(0,Q.jsx)(gm.XIcon,{className:"w-6 h-6"})})})]})})]})]})}),a&&(0,Q.jsx)(gt,{lessThan:"md",children:(0,Q.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,Q.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:"object-cover w-full h-full md:hidden"})})})]}),wi=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>(0,Q.jsx)("div",{className:a,children:n?(0,Q.jsx)(cp,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,Q.jsx)(q,{ratio:um(t),children:(0,Q.jsx)("img",{src:o,className:r("object-cover w-full h-full",i,o?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})});var dt=require("react/jsx-runtime"),dp=({value:e,suffix:o,unit:t,description:a,idx:i})=>(0,dt.jsxs)("div",{className:r(""),children:[e&&(0,dt.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,dt.jsxs)("span",{children:[o," ",t]})]}),a&&(0,dt.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:v(a)})]}),Ni=({dataStats:e})=>(0,dt.jsx)(dt.Fragment,{children:(e?.length??0)>0&&(0,dt.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,dt.jsx)(dp,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var W=require("react/jsx-runtime"),gn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,W.jsxs)("div",{className:"col-span-1 ",children:[(0,W.jsx)(N,{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,W.jsx)(yi,{dataFeatures:t,template:a}),o&&(0,W.jsx)(C,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,W.jsx)(Ni,{dataStats:i})]}),(0,W.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,W.jsx)(wi,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),vm=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,W.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,W.jsx)(wi,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,W.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,W.jsx)(N,{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,W.jsx)(yi,{dataFeatures:t,template:a}),o&&(0,W.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,W.jsx)(C,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,W.jsx)(Ni,{dataStats:i})]})]}),hm=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(N,{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,W.jsx)(C,{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,W.jsx)(yi,{dataFeatures:t,template:a}),(0,W.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,W.jsx)(Ni,{dataStats:i})}),s||(0,W.jsx)(W.Fragment,{children:n?.src&&(0,W.jsx)(wi,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var Lt=require("react/jsx-runtime"),pp=`var(
254
+ `})]})}})()})}var Ol=h(require("react"),1),At=h(require("@radix-ui/react-slider"),1);var mt=require("react/jsx-runtime"),tn=Ol.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>(0,mt.jsxs)(At.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,mt.jsx)(At.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,mt.jsx)(At.Range,{className:"absolute h-full bg-pink-500"})}),(0,mt.jsx)(At.Thumb,{className:"group relative",children:(0,mt.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,mt.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,mt.jsx)(At.Thumb,{className:"group relative",children:(0,mt.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,mt.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})})})]}));tn.displayName=At.Root.displayName;var ql=require("react");var ce=require("react/jsx-runtime"),Ud=({author:e=""})=>(0,ce.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),qd=({author:e,avatar:o})=>(0,ce.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,ce.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,ce.jsx)(Ud,{author:e})});function Xd({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return(0,ce.jsx)(ce.Fragment,{children:(0,ce.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,ce.jsx)(qd,{avatar:e,author:o}),(0,ce.jsxs)("div",{className:"flex flex-col",children:[o&&(0,ce.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,ce.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,ce.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,ce.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ce.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,ce.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&(0,ce.jsx)("div",{className:"absolute right-1 top-0",children:(0,ce.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Vl=Xd;var on=require("react");var Wl=require("@heroicons/react/20/solid"),Yo=require("react/jsx-runtime"),Yd={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!"},Zd={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 Kd({point:e,max:o,className:t}){let a=o>5?Yd[e||10]:Zd[e||5];return(0,Yo.jsxs)("div",{className:r("flex items-center space-x-1",t),children:[(0,Yo.jsx)(Wl.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,Yo.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,Yo.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Gl=Kd;var $l=require("react");var xi=require("react/jsx-runtime"),hi=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=(0,$l.useState)(!0),c=()=>{l(!s)},d=(p,u,g=" ")=>p.length<=u?p:p.substring(0,p.lastIndexOf(g,u));return(0,xi.jsxs)("div",{className:r(n),children:[s?v(d(e,o)):v(e),e.length>o&&(0,xi.jsx)("span",{onClick:c,className:r("read-or-hide text-md w-fit cursor-pointer pl-1 hover:underline",i),children:s?t:a})]})};var ct=require("react/jsx-runtime");function Jd({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=(0,on.useState)(0),[c,d]=(0,on.useState)(!1),p=u=>{d(!0),l(u)};return(0,ct.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&(0,ct.jsx)(Gl,{className:"mb-0.5",point:i.point,max:i.max}),e&&(0,ct.jsx)(hi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,ct.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(u=>(0,ct.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:u}))}),o?.length>0&&(0,ct.jsxs)(ui,{open:c,onOpenChange:d,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((u,g)=>(0,ct.jsx)(q,{onClick:()=>p(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,ct.jsx)("img",{src:u.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),(0,ct.jsx)(gi,{activeSlideIndex:s,images:o?.map((u,g)=>({url:u.url,titleImage:u.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var jl=Jd;var Ul=require("react/jsx-runtime");function ep({actions:e=[]}){return(0,Ul.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Ql=ep;var Io=require("react/jsx-runtime"),Xl=(0,ql.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:c,isReply:d,children:p,commentSideBar:u,isOutStanding:g,limitContent:y=260},I)=>(0,Io.jsxs)("div",{ref:I,className:r("",d?"ml-4 py-4":"py-5"),children:[(0,Io.jsx)(Vl,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:g}),(0,Io.jsx)(jl,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:u,limitContent:y}),l&&l?.filter(Boolean)?.length>0&&(0,Io.jsx)(Ql,{actions:l.filter(Boolean)}),p&&(0,Io.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 mo=h(require("react"),1),Yl=require("class-variance-authority");var Zl=require("@heroicons/react/16/solid"),Kl=require("lucide-react"),de=require("react/jsx-runtime"),tp=(0,Yl.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"}}),Jl=mo.createContext("default");function op(){let e=mo.useContext(Jl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var ap=mo.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,de.jsx)(Kl.XIcon,{className:s}):(0,de.jsxs)("div",{children:[e==="iconStep"&&(0,de.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,de.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,de.jsx)(Zl.CheckIcon,{className:s}):(0,de.jsx)("div",{children:t}))]})}),em=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=mo.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,de.jsx)("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},tm=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:c,icon:d,isError:p,onValueChangeStep:u,...g})=>{let y=op();return(0,de.jsxs)("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[(0,de.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,de.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,de.jsx)("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",tp({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",i),...g,children:(0,de.jsx)(ap,{type:y,icon:d,stepNumber:e,size:t,isError:p,state:o})}),(0,de.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,de.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,de.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,de.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},om=({children:e,className:o,type:t="numberStep",...a})=>(0,de.jsx)(Jl.Provider,{value:t,children:(0,de.jsx)("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});var Xt=h(require("react"),1),S=h(require("@radix-ui/react-dropdown-menu"),1),bi=require("lucide-react");var se=require("react/jsx-runtime"),am=S.Root,im=S.Trigger,rm=S.Group,nm=S.Portal,sm=S.Sub,lm=S.RadioGroup,an=Xt.forwardRef(({className:e,inset:o,children:t,...a},i)=>(0,se.jsxs)(S.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,se.jsx)(bi.ChevronRight,{className:"ml-auto"})]}));an.displayName=S.SubTrigger.displayName;var rn=Xt.forwardRef(({className:e,...o},t)=>(0,se.jsx)(S.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}));rn.displayName=S.SubContent.displayName;var nn=Xt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,se.jsx)(S.Portal,{children:(0,se.jsx)(S.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})}));nn.displayName=S.Content.displayName;var sn=Xt.forwardRef(({className:e,inset:o,...t},a)=>(0,se.jsx)(S.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}));sn.displayName=S.Item.displayName;var ln=Xt.forwardRef(({className:e,children:o,checked:t,...a},i)=>(0,se.jsxs)(S.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,se.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,se.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,se.jsx)(S.ItemIndicator,{children:(0,se.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,se.jsx)(bi.Check,{size:16,strokeWidth:3})})})]}),o]}));ln.displayName=S.CheckboxItem.displayName;var mn=Xt.forwardRef(({className:e,children:o,...t},a)=>(0,se.jsxs)(S.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,se.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,se.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,se.jsx)(S.ItemIndicator,{children:(0,se.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));mn.displayName=S.RadioItem.displayName;var cn=Xt.forwardRef(({className:e,inset:o,...t},a)=>(0,se.jsx)(S.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));cn.displayName=S.Label.displayName;var dn=Xt.forwardRef(({className:e,...o},t)=>(0,se.jsx)(S.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));dn.displayName=S.Separator.displayName;var pn=({className:e,...o})=>(0,se.jsx)("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});pn.displayName="DropdownMenuShortcut";var dm=require("@radix-ui/react-slot");var mm=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};var k=require("react/jsx-runtime"),cm=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsx)(N,{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,k.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>(0,k.jsx)("div",{className:r("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:(0,k.jsxs)("div",{className:"px-6 py-8 h-full text-center bg-white rounded-lg border border-gray-100 shadow-lg md:px-4 lg:px-6",children:[(0,k.jsx)("div",{className:"flex justify-center items-center mx-auto w-9 h-9 text-xl font-bold text-white bg-pink-500 rounded-full",children:i+1}),(0,k.jsxs)("div",{className:"mt-6 w-full",children:[(0,k.jsx)("div",{className:"w-full text-xl font-semibold",children:v(a.title)}),a?.description&&(0,k.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]})]})},i))}),t&&(0,k.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ip=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsx)(N,{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,k.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>(0,k.jsxs)("div",{className:r("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[(0,k.jsxs)("div",{className:"flex relative justify-center items-center mx-auto w-52 h-52",children:[(0,k.jsx)("div",{className:"flex absolute -top-4 -left-4 z-10 justify-center items-center w-12 h-12 text-lg font-bold text-white bg-pink-500 rounded-full border-4 border-white",children:i+1}),a?.image&&(0,k.jsx)("div",{className:"overflow-hidden w-full bg-gray-100 rounded-lg aspect-1",children:(0,k.jsx)(q,{ratio:1,children:(0,k.jsx)("img",{src:a.image,alt:a.title,className:"object-cover w-full h-full","data-puck-editable":"true","data-puck-component":"HowItWorksSection","data-puck-field":"dataHowItWorks","data-puck-array-index":i,"data-puck-nested-field":"image"})})})]}),(0,k.jsxs)("div",{className:"mt-6 w-full",children:[(0,k.jsx)("div",{className:"w-full text-xl font-semibold",children:v(a.title)}),a?.description&&(0,k.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]})]},i))}),t&&(0,k.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),rp=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsx)(N,{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,k.jsx)("div",{className:"flex flex-col gap-y-14 justify-center md:flex-row md:gap-x-4",children:o.map((a,i)=>(0,k.jsxs)("div",{className:r("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&(0,k.jsx)("span",{className:"flex justify-center items-center mx-auto bg-pink-500 rounded-full size-12 md:size-14",children:typeof a.image=="string"?mm(a.image)?(0,k.jsx)("img",{src:a.image,className:"block object-cover","data-puck-editable":"true","data-puck-component":"HowItWorksSection","data-puck-field":"dataHowItWorks","data-puck-array-index":i,"data-puck-nested-field":"image"}):(0,k.jsx)(dm.Slot,{className:"w-6 h-6 stroke-2 stroke-white",children:v(a.image.replace(/\n|\r/g,""))}):a.image}),(0,k.jsxs)("div",{className:"mt-4 w-full md:mt-6",children:[(0,k.jsx)("div",{className:"w-full text-xl font-semibold",children:v(a.title)}),a?.description&&(0,k.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]})]},i))}),t&&(0,k.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),np=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,k.jsx)(cm,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,k.jsx)(ip,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return(0,k.jsx)(rp,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,k.jsx)(cm,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},sp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,k.jsx)(k.Fragment,{children:np({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),pm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>(0,k.jsx)(J,{className:t,idSection:a,background:o,children:(0,k.jsx)(sp,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});var fm=require("class-variance-authority"),fn=require("lucide-react");var ie=require("react/jsx-runtime"),lp=(0,fm.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}}),mp=({template:e,name:o,image:t,isFeatures:a,idx:i})=>(0,ie.jsx)(ie.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,ie.jsx)(ie.Fragment,{children:(0,ie.jsxs)("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?(0,ie.jsx)("div",{className:"flex flex-none justify-center items-center w-10 h-10 shrink-0",children:(0,ie.jsx)("img",{src:t,alt:"",className:"max-w-full","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataFeatures","data-puck-nested-field":"image","data-puck-array-index":i})}):(0,ie.jsx)("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:(0,ie.jsx)(fn.CheckIcon,{className:"w-4 h-4 text-pink-500"})}),o&&(0,ie.jsx)("div",{className:"ml-2",children:v(o)})]})});case 3:return(0,ie.jsxs)("li",{className:"flex space-x-4 h-full",children:[t?(0,ie.jsx)("div",{className:"flex flex-none justify-center items-center w-10 h-10 shrink-0",children:(0,ie.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,ie.jsx)("div",{className:"flex flex-none justify-center items-center p-1 w-5 h-5 bg-pink-100 rounded-full",children:(0,ie.jsx)(fn.CheckIcon,{className:"w-4 h-4 text-pink-500"})}),o&&(0,ie.jsx)("div",{className:"my-auto ml-2 md:my-0",children:v(o)})]});default:return null}})()}),yi=({dataFeatures:e,template:o=1})=>(0,ie.jsx)(ie.Fragment,{children:(e?.length??0)>0&&(0,ie.jsx)("ul",{className:r("",lp({template:o})),children:e?.map((t,a)=>(0,ie.jsx)(mp,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var um=require("lucide-react");var Q=require("react/jsx-runtime"),gm=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,cp=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>(0,Q.jsxs)(zo,{children:[(0,Q.jsx)(ut,{greaterThan:"sm",children:(0,Q.jsxs)(q,{className:r(""),ratio:gm(o),children:[(0,Q.jsx)("img",{src:e,className:r("hidden object-cover w-full h-full md:block",t,e?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"}),a&&(0,Q.jsxs)($e,{children:[(0,Q.jsx)(Ho,{onClick:i,children:(0,Q.jsx)("div",{className:"hidden absolute top-0 z-10 justify-center items-center w-full h-full transition-transform cursor-pointer group-hover:scale-105 md:flex",children:(0,Q.jsx)("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,Q.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Q.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,Q.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,Q.jsx)(He,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:(0,Q.jsxs)(ot,{className:"relative p-4 text-center bg-transparent",children:[(0,Q.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,Q.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:"w-full h-full"})}),(0,Q.jsx)(La,{asChild:!0,children:(0,Q.jsx)(ue,{variant:"secondary",className:"absolute top-0 right-0 rounded-full",size:"sm",children:(0,Q.jsx)(um.XIcon,{className:"w-6 h-6"})})})]})})]})]})}),a&&(0,Q.jsx)(ut,{lessThan:"md",children:(0,Q.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,Q.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:"object-cover w-full h-full md:hidden"})})})]}),wi=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>(0,Q.jsx)("div",{className:a,children:n?(0,Q.jsx)(cp,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,Q.jsx)(q,{ratio:gm(t),children:(0,Q.jsx)("img",{src:o,className:r("object-cover w-full h-full",i,o?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})});var dt=require("react/jsx-runtime"),dp=({value:e,suffix:o,unit:t,description:a,idx:i})=>(0,dt.jsxs)("div",{className:r(""),children:[e&&(0,dt.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,dt.jsxs)("span",{children:[o," ",t]})]}),a&&(0,dt.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:v(a)})]}),Ni=({dataStats:e})=>(0,dt.jsx)(dt.Fragment,{children:(e?.length??0)>0&&(0,dt.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,dt.jsx)(dp,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var W=require("react/jsx-runtime"),un=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,W.jsxs)("div",{className:"col-span-1 ",children:[(0,W.jsx)(N,{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,W.jsx)(yi,{dataFeatures:t,template:a}),o&&(0,W.jsx)(C,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,W.jsx)(Ni,{dataStats:i})]}),(0,W.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,W.jsx)(wi,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),vm=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,W.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,W.jsx)(wi,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,W.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,W.jsx)(N,{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,W.jsx)(yi,{dataFeatures:t,template:a}),o&&(0,W.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,W.jsx)(C,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,W.jsx)(Ni,{dataStats:i})]})]}),hm=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(N,{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,W.jsx)(C,{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,W.jsx)(yi,{dataFeatures:t,template:a}),(0,W.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,W.jsx)(Ni,{dataStats:i})}),s||(0,W.jsx)(W.Fragment,{children:n?.src&&(0,W.jsx)(wi,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var Lt=require("react/jsx-runtime"),pp=`var(
255
255
  --gradient-pink-1,
256
256
  linear-gradient(
257
257
  38deg,
@@ -273,7 +273,7 @@
273
273
  rgba(255, 255, 255, 0) 80%
274
274
  ),
275
275
  #fff
276
- )`,fp=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,Lt.jsx)(gn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return(0,Lt.jsx)(vm,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return(0,Lt.jsx)(hm,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return(0,Lt.jsx)(gn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},gp=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,Lt.jsx)(Lt.Fragment,{children:fp({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),xm=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:m,background:c,advancedComponent:d=null})=>(0,Lt.jsx)(J,{className:r(m),background:c??pp,idSection:o,children:(0,Lt.jsx)(gp,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:d})});var bm=require("react");var pt=require("react/jsx-runtime"),Pi=(0,bm.memo)(({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","40px":"md:gap-x-10","48px":"md:gap-x-12","56px":"md:gap-x-14","64px":"md:gap-x-16","80px":"md:gap-x-20"};return(0,pt.jsxs)(pt.Fragment,{children:[e&&(0,pt.jsx)(N,{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,pt.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:mx-0 md:space-x-0 md:px-0":"mx-auto max-w-xs flex-wrap justify-center md:max-w-full"),children:o?.map((s,m)=>{let c=s?.url?"a":"div",d=s?.url?{href:s.url,title:s.name,target:s.newTab?"_blank":"_self"}:{};return(0,pt.jsx)("div",{className:r("flex max-h-28 w-auto items-center justify-center md:max-w-36 md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-3"),children:(0,pt.jsx)(c,{...d,className:"group flex h-full w-full items-center justify-center",children:(0,pt.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:r("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105")})})},m)})}),t&&(0,pt.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});var ym=require("react");var Ze=require("react/jsx-runtime"),un=(0,ym.memo)(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>(0,Ze.jsxs)(Ze.Fragment,{children:[e&&(0,Ze.jsx)(N,{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,Ze.jsx)("div",{className:r("list-brands flex md:flex-wrap md:justify-center md:gap-y-6",a?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"-mx-2.5 flex-wrap gap-y-5 md:-mx-3"),children:o.map((i,n)=>{let s=i?.url?"a":"div",m=i?.url?{href:i.url,title:i.name,target:i.newTab?"_blank":"_self"}:{};return(0,Ze.jsx)("div",{className:r("flex items-center justify-center text-center md:basis-1/4 md:px-3",a?"shrink-0 basis-5/12 snap-center":"basis-1/2 px-2.5"),children:(0,Ze.jsx)(s,{...m,className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3 duration-300 hover:border-pink-500",children:(0,Ze.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,Ze.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain"})})})},n)})}),t&&(0,Ze.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));var wm=require("react");var he=require("react/jsx-runtime"),vn=(e,o)=>{if(!e)return(0,he.jsx)("div",{className:r("h-full w-full",o)});let t=e.url?"a":"div";return(0,he.jsx)("div",{className:r("h-full w-full",o),children:(0,he.jsx)(t,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e.url&&"duration-300 hover:border-pink-500"),children:(0,he.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,he.jsx)("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},hn=(0,wm.memo)(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=Fo(),i=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);i.push(...o.slice(0,s)),n.push(...o.slice(s))}return(0,he.jsxs)(he.Fragment,{children:[e&&(0,he.jsx)(N,{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,he.jsxs)(Pe,{opts:{align:a?"center":"start"},className:"w-full",children:[(0,he.jsx)(Ce,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?i.map((s,m)=>(0,he.jsxs)(ye,{className:"flex shrink-0 basis-5/12 flex-col items-center justify-between gap-3 pl-3 md:basis-1/4 md:gap-4 md:pl-4 lg:basis-1/6",children:[vn(s,"min-h-0 flex-1"),n[m]?vn(n[m],"min-h-0 flex-1"):(0,he.jsx)("div",{className:"min-h-0 flex-1"})]},m)):o.map((s,m)=>(0,he.jsx)(ye,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:vn(s)},m))}),(0,he.jsx)(wo,{className:"mt-5"})]}),t&&(0,he.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});var Cm=require("react");var Zo=require("react"),Ao=require("motion/react"),Nm=h(require("react-use-measure"),1);var Ci=require("react/jsx-runtime");function Ko({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:m}){let[c,d]=(0,Zo.useState)(t),[p,{width:g,height:u}]=(0,Nm.default)(),y=(0,Ao.useMotionValue)(0),[I,D]=(0,Zo.useState)(!1),[z,X]=(0,Zo.useState)(0);(0,Zo.useEffect)(()=>{let U,M=(i==="horizontal"?g:u)+o,be=n?-M/2:0,re=n?0:-M/2,uo=Math.abs(re-be)/c;if(I){let oa=Math.abs(y.get()-re)/c;U=(0,Ao.animate)(y,[y.get(),re],{ease:"linear",duration:oa,onComplete:()=>{D(!1),X(Qc=>Qc+1)}})}else U=(0,Ao.animate)(y,[be,re],{ease:"linear",duration:uo,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{y.set(be)}});return U?.stop},[z,y,c,g,u,o,I,i,n]);let oe=a?{onHoverStart:()=>{D(!0),d(a)},onHoverEnd:()=>{D(!0),d(t)},onTouchStart:()=>{D(!0),d(a)},onTouchEnd:()=>{D(!0),d(t)}}:{};return(0,Ci.jsx)("div",{className:r("overflow-hidden",s),children:(0,Ci.jsxs)(Ao.motion.div,{className:r("flex w-max",m),style:{...i==="horizontal"?{x:y,paddingLeft:o}:{y},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:p,...oe,children:[e,e]})})}var fe=require("react/jsx-runtime"),Pm=(e,o)=>{let t=e?.url?"a":"div";return(0,fe.jsx)("div",{className:r("h-full w-full",o),children:(0,fe.jsx)(t,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e?.url&&"duration-300 hover:border-pink-500"),children:(0,fe.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,fe.jsx)("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},xn=(0,Cm.memo)(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,i=a>6;return(0,fe.jsxs)(fe.Fragment,{children:[e&&(0,fe.jsx)(N,{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,fe.jsx)(fe.Fragment,{children:i?(0,fe.jsx)("div",{className:"mark-horizontal-slider relative overflow-hidden",children:(0,fe.jsx)(Ko,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>(0,fe.jsx)("div",{className:"w-32 md:w-40",children:Pm(n)},s))})}):(0,fe.jsx)("div",{className:r("list-brands -mx-5 flex snap-x snap-mandatory flex-nowrap space-x-3 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:flex-wrap md:justify-center md:gap-y-6 md:space-x-0 md:px-0"),children:o?.map((n,s)=>(0,fe.jsx)("div",{className:"flex shrink-0 basis-5/12 snap-center items-center justify-center md:basis-1/4 md:px-3 lg:basis-1/6",children:Pm(n)},s))})}),t&&(0,fe.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,fe.jsx)("style",{children:`
276
+ )`,fp=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,Lt.jsx)(un,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return(0,Lt.jsx)(vm,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return(0,Lt.jsx)(hm,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return(0,Lt.jsx)(un,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},up=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,Lt.jsx)(Lt.Fragment,{children:fp({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),xm=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:l,background:c,advancedComponent:d=null})=>(0,Lt.jsx)(J,{className:r(l),background:c??pp,idSection:o,children:(0,Lt.jsx)(up,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:d})});var bm=require("react");var pt=require("react/jsx-runtime"),Pi=(0,bm.memo)(({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","40px":"md:gap-x-10","48px":"md:gap-x-12","56px":"md:gap-x-14","64px":"md:gap-x-16","80px":"md:gap-x-20"};return(0,pt.jsxs)(pt.Fragment,{children:[e&&(0,pt.jsx)(N,{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,pt.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:mx-0 md:space-x-0 md:px-0":"mx-auto max-w-xs flex-wrap justify-center md:max-w-full"),children:o?.map((s,l)=>{let c=s?.url?"a":"div",d=s?.url?{href:s.url,title:s.name,target:s.newTab?"_blank":"_self"}:{};return(0,pt.jsx)("div",{className:r("flex justify-center items-center w-auto max-h-28 md:max-w-36 md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"px-3 basis-1/2"),children:(0,pt.jsx)(c,{...d,className:"flex justify-center items-center w-full h-full group",children:(0,pt.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:r("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105"),"data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":l,"data-puck-nested-field":"logo"})})},l)})}),t&&(0,pt.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});var ym=require("react");var Ze=require("react/jsx-runtime"),gn=(0,ym.memo)(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>(0,Ze.jsxs)(Ze.Fragment,{children:[e&&(0,Ze.jsx)(N,{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,Ze.jsx)("div",{className:r("list-brands flex md:flex-wrap md:justify-center md:gap-y-6",a?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"-mx-2.5 flex-wrap gap-y-5 md:-mx-3"),children:o.map((i,n)=>{let s=i?.url?"a":"div",l=i?.url?{href:i.url,title:i.name,target:i.newTab?"_blank":"_self"}:{};return(0,Ze.jsx)("div",{className:r("flex items-center justify-center text-center md:basis-1/4 md:px-3",a?"shrink-0 basis-5/12 snap-center":"basis-1/2 px-2.5"),children:(0,Ze.jsx)(s,{...l,className:"flex justify-center items-center p-3 w-full h-full bg-white rounded-md border border-gray-200 duration-300 hover:border-pink-500",children:(0,Ze.jsx)("div",{className:"flex justify-center items-center w-full",children:(0,Ze.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain w-auto max-w-full h-auto max-h-28","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":n,"data-puck-nested-field":"logo"})})})},n)})}),t&&(0,Ze.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));var wm=require("react");var he=require("react/jsx-runtime"),vn=(e,o,t)=>{if(!e)return(0,he.jsx)("div",{className:r("w-full h-full",o)});let a=e.url?"a":"div";return(0,he.jsx)("div",{className:r("w-full h-full",o),children:(0,he.jsx)(a,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e.url&&"duration-300 hover:border-pink-500"),children:(0,he.jsx)("div",{className:"flex justify-center items-center w-full h-full",children:(0,he.jsx)("img",{src:e.logo,alt:e.name,className:"object-contain w-auto max-w-full h-auto max-h-full","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":t,"data-puck-nested-field":"logo"})})})})},hn=(0,wm.memo)(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=Fo(),i=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);i.push(...o.slice(0,s)),n.push(...o.slice(s))}return(0,he.jsxs)(he.Fragment,{children:[e&&(0,he.jsx)(N,{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,he.jsxs)(Pe,{opts:{align:a?"center":"start"},className:"w-full",children:[(0,he.jsx)(Ce,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?i.map((s,l)=>(0,he.jsxs)(ye,{className:"flex flex-col gap-3 justify-between items-center pl-3 shrink-0 basis-5/12 md:basis-1/4 md:gap-4 md:pl-4 lg:basis-1/6",children:[vn(s,"min-h-0 flex-1",l),n[l]?vn(n[l],"min-h-0 flex-1",l):(0,he.jsx)("div",{className:"flex-1 min-h-0"})]},l)):o.map((s,l)=>(0,he.jsx)(ye,{className:"flex justify-center items-center pl-3 basis-5/12 md:basis-1/4 md:pl-4 lg:basis-1/6",children:vn(s,"",l)},l))}),(0,he.jsx)(wo,{className:"mt-5"})]}),t&&(0,he.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});var Cm=require("react");var Zo=require("react"),Ao=require("motion/react"),Nm=h(require("react-use-measure"),1);var Ci=require("react/jsx-runtime");function Ko({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[c,d]=(0,Zo.useState)(t),[p,{width:u,height:g}]=(0,Nm.default)(),y=(0,Ao.useMotionValue)(0),[I,D]=(0,Zo.useState)(!1),[z,X]=(0,Zo.useState)(0);(0,Zo.useEffect)(()=>{let U,M=(i==="horizontal"?u:g)+o,be=n?-M/2:0,re=n?0:-M/2,go=Math.abs(re-be)/c;if(I){let oa=Math.abs(y.get()-re)/c;U=(0,Ao.animate)(y,[y.get(),re],{ease:"linear",duration:oa,onComplete:()=>{D(!1),X(Qc=>Qc+1)}})}else U=(0,Ao.animate)(y,[be,re],{ease:"linear",duration:go,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{y.set(be)}});return U?.stop},[z,y,c,u,g,o,I,i,n]);let oe=a?{onHoverStart:()=>{D(!0),d(a)},onHoverEnd:()=>{D(!0),d(t)},onTouchStart:()=>{D(!0),d(a)},onTouchEnd:()=>{D(!0),d(t)}}:{};return(0,Ci.jsx)("div",{className:r("overflow-hidden",s),children:(0,Ci.jsxs)(Ao.motion.div,{className:r("flex w-max",l),style:{...i==="horizontal"?{x:y,paddingLeft:o}:{y},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:p,...oe,children:[e,e]})})}var fe=require("react/jsx-runtime"),Pm=(e,o,t)=>{let a=e?.url?"a":"div";return(0,fe.jsx)("div",{className:r("w-full h-full",o),children:(0,fe.jsx)(a,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e?.url&&"duration-300 hover:border-pink-500"),children:(0,fe.jsx)("div",{className:"flex justify-center items-center w-full h-full",children:(0,fe.jsx)("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":t,"data-puck-nested-field":"logo"})})})})},xn=(0,Cm.memo)(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,i=a>6;return(0,fe.jsxs)(fe.Fragment,{children:[e&&(0,fe.jsx)(N,{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,fe.jsx)(fe.Fragment,{children:i?(0,fe.jsx)("div",{className:"overflow-hidden relative mark-horizontal-slider",children:(0,fe.jsx)(Ko,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>(0,fe.jsx)("div",{className:"w-32 md:w-40",children:Pm(n,"",s)},s))})}):(0,fe.jsx)("div",{className:r("flex overflow-hidden overflow-x-auto flex-nowrap px-5 pb-3 -mx-5 space-x-3 list-brands snap-x snap-mandatory md:-mx-3 md:flex-wrap md:justify-center md:gap-y-6 md:space-x-0 md:px-0"),children:o?.map((n,s)=>(0,fe.jsx)("div",{className:"flex justify-center items-center shrink-0 basis-5/12 snap-center md:basis-1/4 md:px-3 lg:basis-1/6",children:Pm(n,"",s)},s))})}),t&&(0,fe.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,fe.jsx)("style",{children:`
277
277
  .mark-horizontal-slider {
278
278
  mask-image: linear-gradient(
279
279
  to right,
@@ -290,15 +290,15 @@
290
290
  transparent 100%
291
291
  );
292
292
  }
293
- `})]})});var ft=require("react/jsx-runtime"),up=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return(0,ft.jsx)(Pi,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return(0,ft.jsx)(un,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return(0,ft.jsx)(hn,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return(0,ft.jsx)(xn,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return(0,ft.jsx)(Pi,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},vp=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>(0,ft.jsx)(ft.Fragment,{children:up({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),km=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m="20px",isScrollSnap:c})=>(0,ft.jsx)(J,{className:r(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:(0,ft.jsx)(vp,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m,isScrollSnap:c})});var Rm=require("react"),Tm=require("@heroicons/react/16/solid");var l=require("react/jsx-runtime"),zt=({btnLink:e,btnName:o,newTab:t})=>(0,l.jsx)(Ne,{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:"w-4 h-4"})]})}),bn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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:"grid grid-cols-1 gap-8 list-features md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"flex relative flex-col w-full text-center feature-item",children:[a?.image&&(0,l.jsx)("div",{className:"mx-auto w-16 h-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,l.jsxs)("div",{className:"flex-1 mx-auto mt-4 w-full max-w-xs 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:v(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(C,{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)(N,{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:"grid grid-cols-1 gap-6 list-features list-features-2 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"flex overflow-hidden relative flex-col p-5 w-full rounded-md border border-gray-200 feature-item",children:[a?.image&&(0,l.jsx)("div",{className:"w-16 h-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,l.jsxs)("div",{className:"flex flex-col flex-1 mt-4 w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,l.jsx)("style",{children:`
293
+ `})]})});var ft=require("react/jsx-runtime"),gp=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return(0,ft.jsx)(Pi,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return(0,ft.jsx)(gn,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return(0,ft.jsx)(hn,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return(0,ft.jsx)(xn,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return(0,ft.jsx)(Pi,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},vp=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>(0,ft.jsx)(ft.Fragment,{children:gp({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),km=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:c})=>(0,ft.jsx)(J,{className:r(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:(0,ft.jsx)(vp,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:c})});var Rm=require("react"),Tm=require("@heroicons/react/16/solid");var m=require("react/jsx-runtime"),zt=({btnLink:e,btnName:o,newTab:t})=>(0,m.jsx)(Ne,{variant:"primary",asChild:!0,children:(0,m.jsxs)("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",(0,m.jsx)(Tm.ChevronRightIcon,{className:"w-4 h-4"})]})}),bn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(N,{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,m.jsx)("div",{className:"grid grid-cols-1 gap-8 list-features md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,m.jsxs)("div",{className:"flex relative flex-col w-full text-center feature-item",children:[a?.image&&(0,m.jsx)("div",{className:"mx-auto w-16 h-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,m.jsxs)("div",{className:"flex-1 mx-auto mt-4 w-full max-w-xs md:max-w-full",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,m.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Sm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(N,{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,m.jsx)("div",{className:"grid grid-cols-1 gap-6 list-features list-features-2 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>(0,m.jsxs)("div",{className:"flex overflow-hidden relative flex-col p-5 w-full rounded-md border border-gray-200 feature-item",children:[a?.image&&(0,m.jsx)("div",{className:"w-16 h-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,m.jsxs)("div",{className:"flex flex-col flex-1 mt-4 w-full",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,m.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,m.jsx)("style",{children:`
294
294
  .list-features-2 .feature-item {
295
295
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
296
296
  }
297
- `})]}),Dm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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:"grid grid-cols-1 gap-8 list-features md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"flex relative flex-col w-full feature-item",children:[a?.image&&(0,l.jsx)("div",{className:"w-16 h-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,l.jsxs)("div",{className:"flex-1 mt-4 w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Mm=({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)(N,{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)(C,{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:"grid grid-cols-1 gap-6 list-features md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"flex relative flex-col p-5 w-full bg-white rounded-lg border border-gray-200 feature-item",children:[a?.image&&(0,l.jsx)("div",{className:"w-16 h-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,l.jsxs)("div",{className:"flex flex-col flex-1 mt-4 w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Im=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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:"grid grid-cols-1 gap-5 mx-auto max-w-4xl list-features md:grid-cols-2",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"flex relative flex-col p-7 w-full bg-white rounded-lg border border-gray-200 feature-item",children:[a?.image&&(0,l.jsx)("div",{className:"w-16 h-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,l.jsxs)("div",{className:"flex flex-col flex-1 mt-4 w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(C,{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)(N,{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:"grid grid-cols-1 gap-8 list-features 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:"relative w-full feature-item",children:[a?.image&&(0,l.jsx)("div",{className:"w-12 h-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,l.jsxs)("div",{className:"flex flex-col flex-1 mt-3 w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:v(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(C,{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,d=(p,g)=>{let u=p?.btnLink?"a":"div",y=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)(u,{...y,className:"flex relative flex-col gap-3 items-center w-full feature-item",children:[p?.image&&(0,l.jsx)("div",{className:"w-16 h-16 transition-transform duration-300 group-hover:scale-105",children:(0,l.jsx)("img",{src:p?.image,alt:p?.name,className:"object-contain w-full h-full",loading:"lazy","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":g,"data-puck-nested-field":"image"})}),(0,l.jsxs)("div",{className:"flex-1 w-full text-center",children:[p?.name&&(0,l.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:v(p.name)}),p?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:v(p.description)})]})]})},g)};return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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:"flex flex-wrap gap-y-10 justify-center -mx-2 list-features lg:-mx-5",children:o.map((p,g)=>d(p,g))}),t&&(0,l.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},zm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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:"grid grid-cols-1 gap-6 list-features md:grid-cols-3",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"flex overflow-hidden relative flex-col w-full bg-gray-100 rounded-xl feature-item",children:[(0,l.jsxs)("div",{className:"flex flex-col flex-1 p-5 w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(zt,{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:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})})]},i))}),t&&(0,l.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Em=({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)(N,{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:"grid grid-cols-1 gap-6 list-features md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>(0,l.jsxs)("div",{className:"flex relative flex-col w-full feature-item",children:[i?.image&&(0,l.jsx)("div",{className:"w-10 h-10",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":n,"data-puck-nested-field":"image"})}),(0,l.jsxs)("div",{className:"flex flex-col flex-1 mt-3 w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:v(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(zt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&(0,l.jsx)(C,{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-xs md:max-w-md",children:(0,l.jsx)(q,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"object-cover w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})})})})]}),Hm=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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("grid grid-cols-1 gap-8 list-features 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:"w-12 h-12",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":n,"data-puck-nested-field":"image"})}),(0,l.jsxs)("div",{className:"flex flex-col flex-1 mt-3 w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:v(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-gray-500",children:v(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(zt,{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:"absolute inset-0 w-full h-full pointer-events-none select-none mockup-bg",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:"overflow-hidden w-full h-full bg-gray-100",style:{borderRadius:"30px"},children:(0,l.jsx)("img",{src:t?.src,alt:t?.alt,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})})]})]})}),a&&(0,l.jsx)(C,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),_m=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=(0,Rm.useState)(0),s=Fo();return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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.jsxs)("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"w-full list-features md:border-l-2 md:border-gray-200",children:(0,l.jsx)(ut,{type:"single",collapsible:s,onValueChange:m=>{let c=parseInt(m);isNaN(c)||n(c)},defaultValue:i.toString(),children:o?.map((m,c)=>(0,l.jsxs)(vt,{value:c.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[(0,l.jsx)(ht,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:v(m.name||"")}),(0,l.jsxs)(xt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[m?.description&&(0,l.jsx)("div",{className:"text-muted-foreground",children:v(m.description||"")}),m?.btnLink&&(0,l.jsx)("div",{className:"",children:(0,l.jsx)(zt,{btnLink:m.btnLink,btnName:m?.btnName,newTab:m?.newTab})}),m?.image&&!a?.src&&(0,l.jsx)("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:(0,l.jsx)(q,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:m?.image,alt:m?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":c,"data-puck-nested-field":"image"})})})]})]},c))})})}),(0,l.jsx)("div",{className:r(a?.src?"flex":"hidden md:flex"),children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?(0,l.jsx)(q,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"object-cover w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})}):(0,l.jsx)("div",{className:"hidden md:flex",children:o?.[i]?.image?(0,l.jsx)(q,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"object-contain w-full h-full",loading:"lazy","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}):(0,l.jsx)("div",{className:"w-0 h-0"})})})})]}),t&&(0,l.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var xe=require("react/jsx-runtime"),hp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return(0,xe.jsx)(bn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,xe.jsx)(Sm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,xe.jsx)(Dm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,xe.jsx)(Mm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,xe.jsx)(Im,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,xe.jsx)(Am,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,xe.jsx)(Lm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,xe.jsx)(zm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,xe.jsx)(Em,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return(0,xe.jsx)(Hm,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return(0,xe.jsx)(_m,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return(0,xe.jsx)(bn,{dataHeading:o,dataFeatures:t,dataButtons:a})}},xp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>(0,xe.jsx)(xe.Fragment,{children:hp({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),Fm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})=>(0,xe.jsx)(J,{className:t,idSection:a,background:o,children:(0,xe.jsx)(xp,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})});var Om=require("@heroicons/react/24/solid"),Vm=h(require("lodash"),1);var ki=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Ri=({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()||""},Ti=(e,o)=>o[e%o.length];var O=require("react/jsx-runtime"),bp=({avatar:e="",name:o="",index:t=0})=>{if(Vm.default.isEmpty(e)){let a=Ri({name:o})??"",i=Ti(t,ki);return(0,O.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,O.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,O.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Bm=({testimonial:e,className:o,index:t})=>(0,O.jsx)("div",{className:r("testimonial-item",o),children:(0,O.jsxs)("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[(0,O.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,O.jsx)(bp,{avatar:e.avatar,name:e.name,index:t}),(0,O.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,O.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,O.jsx)("div",{className:"text-xs font-normal text-pink-500",children:v(e.position)})]})]}),(0,O.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,O.jsx)("div",{className:"text-sm font-bold text-gray-700",children:v(e.shortTitle)}),e?.description&&(0,O.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:v(e.description)})]}),(0,O.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&(0,O.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,O.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,O.jsx)(Om.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),yn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return(0,O.jsxs)(O.Fragment,{children:[e&&(0,O.jsx)(N,{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,O.jsx)(O.Fragment,{children:i?(0,O.jsx)("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:(0,O.jsx)(Ko,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,O.jsx)(Bm,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,O.jsx)("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>(0,O.jsx)(Bm,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,O.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var wn=require("@heroicons/react/24/solid");var T=require("react/jsx-runtime"),yp=({className:e})=>(0,T.jsx)("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,T.jsx)("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),wp=({testimonial:e,className:o})=>(0,T.jsx)("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:(0,T.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,T.jsx)("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:(0,T.jsx)(q,{ratio:2/3,className:"w-full",children:(0,T.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),(0,T.jsxs)("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[(0,T.jsxs)("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[(0,T.jsxs)("div",{className:"grow",children:[e?.name&&(0,T.jsx)("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&(0,T.jsx)("div",{className:"mt-1 text-xs font-normal text-gray-500",children:v(e.position)})]}),(e?.date||Number(e?.rating)>0)&&(0,T.jsxs)("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&(0,T.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,T.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,T.jsx)(wn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&(0,T.jsx)("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:(0,T.jsx)(q,{ratio:2/3,className:"w-full",children:(0,T.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),(0,T.jsxs)("div",{className:"flex flex-1 flex-col md:flex-none",children:[(0,T.jsxs)("div",{className:"flex-1",children:[(0,T.jsxs)("div",{className:"mb-1.5 flex flex-none space-x-3",children:[(0,T.jsx)(yp,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&(0,T.jsx)("div",{className:"flex-none text-base font-medium md:text-lg",children:v(e.shortTitle)})]}),e?.description&&(0,T.jsx)("blockquote",{className:"relative flex-1 text-justify text-base",children:v(e.description)})]}),(e?.date||Number(e?.rating)>0)&&(0,T.jsxs)("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&(0,T.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,T.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,T.jsx)(wn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),Wm=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>(0,T.jsxs)(T.Fragment,{children:[e&&(0,T.jsx)(N,{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??[]).length>0&&(0,T.jsxs)(Pe,{className:"w-full",children:[(0,T.jsx)(Ce,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>(0,T.jsx)(ye,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:(0,T.jsx)(wp,{testimonial:a})},i))}),(o??[]).length>1&&(0,T.jsx)(wo,{className:"mt-8"})]}),t&&(0,T.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var $m=require("@heroicons/react/24/solid"),jm=h(require("lodash"),1);var H=require("react/jsx-runtime"),Np=({avatar:e="",name:o="",index:t=0})=>{if(jm.default.isEmpty(e)){let a=Ri({name:o})??"",i=Ti(t,ki);return(0,H.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,H.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,H.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Gm=({testimonial:e,className:o,index:t})=>(0,H.jsx)("div",{className:r("testimonial-item",o),children:(0,H.jsxs)("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[(0,H.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,H.jsx)(Np,{avatar:e.avatar,name:e.name,index:t}),(0,H.jsxs)("div",{className:"flex-1 pl-1",children:[(0,H.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,H.jsx)("div",{className:"text-xs font-normal text-pink-500",children:v(e.position)})]})]}),(0,H.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,H.jsx)("div",{className:"text-sm font-bold text-gray-700",children:v(e.shortTitle)}),e?.description&&(0,H.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:v(e.description)})]}),(0,H.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&(0,H.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,H.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,H.jsx)($m.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),Qm=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=m=>(0,H.jsx)(H.Fragment,{children:m.map((c,d)=>(0,H.jsx)(Ko,{direction:"vertical",reverse:c.reverse,speed:c.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((p,g)=>(0,H.jsx)(Gm,{testimonial:p,index:g,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${d}-${g}`))},`slider-${d}`))});return(0,H.jsxs)(H.Fragment,{children:[e&&(0,H.jsx)(N,{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,H.jsx)(zo,{children:i?(0,H.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,H.jsx)(gt,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,H.jsx)(gt,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,H.jsx)(gt,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):(0,H.jsx)("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((m,c)=>(0,H.jsx)(Gm,{testimonial:m,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,H.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,H.jsx)("style",{children:`
297
+ `})]}),Dm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(N,{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,m.jsx)("div",{className:"grid grid-cols-1 gap-8 list-features md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,m.jsxs)("div",{className:"flex relative flex-col w-full feature-item",children:[a?.image&&(0,m.jsx)("div",{className:"w-16 h-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,m.jsxs)("div",{className:"flex-1 mt-4 w-full",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,m.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Mm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[(0,m.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,m.jsx)(N,{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,m.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,m.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,m.jsx)("div",{className:"grid grid-cols-1 gap-6 list-features md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>(0,m.jsxs)("div",{className:"flex relative flex-col p-5 w-full bg-white rounded-lg border border-gray-200 feature-item",children:[a?.image&&(0,m.jsx)("div",{className:"w-16 h-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,m.jsxs)("div",{className:"flex flex-col flex-1 mt-4 w-full",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,m.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Im=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(N,{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,m.jsx)("div",{className:"grid grid-cols-1 gap-5 mx-auto max-w-4xl list-features md:grid-cols-2",children:o?.map((a,i)=>(0,m.jsxs)("div",{className:"flex relative flex-col p-7 w-full bg-white rounded-lg border border-gray-200 feature-item",children:[a?.image&&(0,m.jsx)("div",{className:"w-16 h-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,m.jsxs)("div",{className:"flex flex-col flex-1 mt-4 w-full",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,m.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Am=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(N,{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,m.jsx)("div",{className:"grid grid-cols-1 gap-8 list-features md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>(0,m.jsxs)("div",{className:"relative w-full feature-item",children:[a?.image&&(0,m.jsx)("div",{className:"w-12 h-12",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),(0,m.jsxs)("div",{className:"flex flex-col flex-1 mt-3 w-full",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:v(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,m.jsx)(C,{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},l=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,c=n[a]??-1,d=(p,u)=>{let g=p?.btnLink?"a":"div",y=p?.btnLink?{href:p.btnLink,target:p?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:p?.btnName}:{};return(0,m.jsx)("div",{className:r("basis-1/2 px-2 lg:px-5",l,u===c&&"md:break-after-row",p?.btnLink&&"group cursor-pointer"),children:(0,m.jsxs)(g,{...y,className:"flex relative flex-col gap-3 items-center w-full feature-item",children:[p?.image&&(0,m.jsx)("div",{className:"w-16 h-16 transition-transform duration-300 group-hover:scale-105",children:(0,m.jsx)("img",{src:p?.image,alt:p?.name,className:"object-contain w-full h-full",loading:"lazy","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":u,"data-puck-nested-field":"image"})}),(0,m.jsxs)("div",{className:"flex-1 w-full text-center",children:[p?.name&&(0,m.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:v(p.name)}),p?.description&&(0,m.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:v(p.description)})]})]})},u)};return(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(N,{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,m.jsx)("div",{className:"flex flex-wrap gap-y-10 justify-center -mx-2 list-features lg:-mx-5",children:o.map((p,u)=>d(p,u))}),t&&(0,m.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},zm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(N,{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,m.jsx)("div",{className:"grid grid-cols-1 gap-6 list-features md:grid-cols-3",children:o?.map((a,i)=>(0,m.jsxs)("div",{className:"flex overflow-hidden relative flex-col w-full bg-gray-100 rounded-xl feature-item",children:[(0,m.jsxs)("div",{className:"flex flex-col flex-1 p-5 w-full",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:v(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(zt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&(0,m.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})})]},i))}),t&&(0,m.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Em=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,m.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[(0,m.jsx)("div",{className:"flex items-center lg:col-span-6",children:(0,m.jsxs)("div",{className:"w-full",children:[e&&(0,m.jsx)(N,{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,m.jsx)("div",{className:"grid grid-cols-1 gap-6 list-features md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>(0,m.jsxs)("div",{className:"flex relative flex-col w-full feature-item",children:[i?.image&&(0,m.jsx)("div",{className:"w-10 h-10",children:(0,m.jsx)("img",{src:i?.image,alt:i?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":n,"data-puck-nested-field":"image"})}),(0,m.jsxs)("div",{className:"flex flex-col flex-1 mt-3 w-full",children:[(0,m.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:v(i.name)}),i?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:v(i.description)})]}),i?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(zt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&(0,m.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&(0,m.jsx)("div",{className:"flex items-center lg:col-span-4",children:(0,m.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:(0,m.jsx)(q,{ratio:a?.ratio||1,className:"w-full",children:(0,m.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"object-cover w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})})})})]}),Hm=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(N,{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,m.jsx)("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,m.jsxs)("div",{className:r("grid grid-cols-1 gap-8 list-features 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,m.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,m.jsx)("div",{className:"w-12 h-12",children:(0,m.jsx)("img",{src:i?.image,alt:i?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":n,"data-puck-nested-field":"image"})}),(0,m.jsxs)("div",{className:"flex flex-col flex-1 mt-3 w-full",children:[(0,m.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:v(i.name)}),i?.description&&(0,m.jsx)("div",{className:"mt-2 text-gray-500",children:v(i.description)})]}),i?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(zt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&(0,m.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,m.jsx)("div",{className:"absolute inset-0 w-full h-full pointer-events-none select-none mockup-bg",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),(0,m.jsx)("div",{className:"overflow-hidden w-full h-full bg-gray-100",style:{borderRadius:"30px"},children:(0,m.jsx)("img",{src:t?.src,alt:t?.alt,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})})]})]})}),a&&(0,m.jsx)(C,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),_m=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=(0,Rm.useState)(0),s=Fo();return(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(N,{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,m.jsxs)("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[(0,m.jsx)("div",{children:(0,m.jsx)("div",{className:"w-full list-features md:border-l-2 md:border-gray-200",children:(0,m.jsx)(gt,{type:"single",collapsible:s,onValueChange:l=>{let c=parseInt(l);isNaN(c)||n(c)},defaultValue:i.toString(),children:o?.map((l,c)=>(0,m.jsxs)(vt,{value:c.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[(0,m.jsx)(ht,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:v(l.name||"")}),(0,m.jsxs)(xt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&(0,m.jsx)("div",{className:"text-muted-foreground",children:v(l.description||"")}),l?.btnLink&&(0,m.jsx)("div",{className:"",children:(0,m.jsx)(zt,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&(0,m.jsx)("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:(0,m.jsx)(q,{ratio:1,className:"w-full",children:(0,m.jsx)("img",{src:l?.image,alt:l?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":c,"data-puck-nested-field":"image"})})})]})]},c))})})}),(0,m.jsx)("div",{className:r(a?.src?"flex":"hidden md:flex"),children:(0,m.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?(0,m.jsx)(q,{ratio:a?.ratio||1,className:"w-full",children:(0,m.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"object-cover w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})}):(0,m.jsx)("div",{className:"hidden md:flex",children:o?.[i]?.image?(0,m.jsx)(q,{ratio:1,className:"w-full",children:(0,m.jsx)("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"object-contain w-full h-full",loading:"lazy","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}):(0,m.jsx)("div",{className:"w-0 h-0"})})})})]}),t&&(0,m.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var xe=require("react/jsx-runtime"),hp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return(0,xe.jsx)(bn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,xe.jsx)(Sm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,xe.jsx)(Dm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,xe.jsx)(Mm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,xe.jsx)(Im,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,xe.jsx)(Am,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,xe.jsx)(Lm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,xe.jsx)(zm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,xe.jsx)(Em,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return(0,xe.jsx)(Hm,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return(0,xe.jsx)(_m,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return(0,xe.jsx)(bn,{dataHeading:o,dataFeatures:t,dataButtons:a})}},xp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>(0,xe.jsx)(xe.Fragment,{children:hp({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),Fm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>(0,xe.jsx)(J,{className:t,idSection:a,background:o,children:(0,xe.jsx)(xp,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});var Om=require("@heroicons/react/24/solid"),Vm=h(require("lodash"),1);var ki=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Ri=({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()||""},Ti=(e,o)=>o[e%o.length];var O=require("react/jsx-runtime"),bp=({avatar:e="",name:o="",index:t=0})=>{if(Vm.default.isEmpty(e)){let a=Ri({name:o})??"",i=Ti(t,ki);return(0,O.jsx)("div",{className:r("flex overflow-hidden justify-center items-center w-9 h-9 font-semibold text-white rounded-full shrink-0",i),children:a})}return(0,O.jsx)("div",{className:"overflow-hidden w-9 h-9 rounded-full shrink-0",children:(0,O.jsx)("img",{src:e,loading:"lazy",className:"object-cover w-full h-full",alt:o,"data-puck-editable":"true","data-puck-component":"TestimonialSection","data-puck-field":"dataTestimonials","data-puck-array-index":t,"data-puck-nested-field":"avatar"})})},Bm=({testimonial:e,className:o,index:t})=>(0,O.jsx)("div",{className:r("testimonial-item",o),children:(0,O.jsxs)("div",{className:"relative px-5 pt-4 pb-10 h-full bg-white rounded-xl border border-gray-100 shadow-md sm:px-5",children:[(0,O.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,O.jsx)(bp,{avatar:e.avatar,name:e.name,index:t}),(0,O.jsxs)("div",{className:"flex-1 pl-1 min-w-0",children:[(0,O.jsx)("div",{className:"overflow-hidden text-sm font-semibold text-gray-700 whitespace-nowrap text-ellipsis",children:e.name}),e?.position&&(0,O.jsx)("div",{className:"text-xs font-normal text-pink-500",children:v(e.position)})]})]}),(0,O.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,O.jsx)("div",{className:"text-sm font-bold text-gray-700",children:v(e.shortTitle)}),e?.description&&(0,O.jsx)("div",{className:"overflow-hidden relative mt-1 max-h-full text-sm leading-normal text-gray-600",children:v(e.description)})]}),(0,O.jsxs)("div",{className:"flex absolute right-0 bottom-0 left-0 justify-between items-center p-4 space-x-2 md:px-5",children:[e?.date&&(0,O.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,O.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,O.jsx)(Om.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),yn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return(0,O.jsxs)(O.Fragment,{children:[e&&(0,O.jsx)(N,{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,O.jsx)(O.Fragment,{children:i?(0,O.jsx)("div",{className:"overflow-hidden relative -mx-5 md:mx-0",children:(0,O.jsx)(Ko,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,O.jsx)(Bm,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,O.jsx)("div",{className:"flex overflow-hidden overflow-x-auto flex-nowrap gap-y-6 px-5 pb-3 -mx-5 space-x-5 snap-x snap-mandatory md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>(0,O.jsx)(Bm,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,O.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var wn=require("@heroicons/react/24/solid");var T=require("react/jsx-runtime"),yp=({className:e})=>(0,T.jsx)("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,T.jsx)("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),wp=({testimonial:e,className:o})=>(0,T.jsx)("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:(0,T.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,T.jsx)("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:(0,T.jsx)(q,{ratio:2/3,className:"w-full",children:(0,T.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),(0,T.jsxs)("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[(0,T.jsxs)("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[(0,T.jsxs)("div",{className:"grow",children:[e?.name&&(0,T.jsx)("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&(0,T.jsx)("div",{className:"mt-1 text-xs font-normal text-gray-500",children:v(e.position)})]}),(e?.date||Number(e?.rating)>0)&&(0,T.jsxs)("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&(0,T.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,T.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,T.jsx)(wn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&(0,T.jsx)("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:(0,T.jsx)(q,{ratio:2/3,className:"w-full",children:(0,T.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),(0,T.jsxs)("div",{className:"flex flex-1 flex-col md:flex-none",children:[(0,T.jsxs)("div",{className:"flex-1",children:[(0,T.jsxs)("div",{className:"mb-1.5 flex flex-none space-x-3",children:[(0,T.jsx)(yp,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&(0,T.jsx)("div",{className:"flex-none text-base font-medium md:text-lg",children:v(e.shortTitle)})]}),e?.description&&(0,T.jsx)("blockquote",{className:"relative flex-1 text-justify text-base",children:v(e.description)})]}),(e?.date||Number(e?.rating)>0)&&(0,T.jsxs)("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&(0,T.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,T.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,T.jsx)(wn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),Wm=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>(0,T.jsxs)(T.Fragment,{children:[e&&(0,T.jsx)(N,{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??[]).length>0&&(0,T.jsxs)(Pe,{className:"w-full",children:[(0,T.jsx)(Ce,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>(0,T.jsx)(ye,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:(0,T.jsx)(wp,{testimonial:a})},i))}),(o??[]).length>1&&(0,T.jsx)(wo,{className:"mt-8"})]}),t&&(0,T.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var $m=require("@heroicons/react/24/solid"),jm=h(require("lodash"),1);var H=require("react/jsx-runtime"),Np=({avatar:e="",name:o="",index:t=0})=>{if(jm.default.isEmpty(e)){let a=Ri({name:o})??"",i=Ti(t,ki);return(0,H.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,H.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,H.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Gm=({testimonial:e,className:o,index:t})=>(0,H.jsx)("div",{className:r("testimonial-item",o),children:(0,H.jsxs)("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[(0,H.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,H.jsx)(Np,{avatar:e.avatar,name:e.name,index:t}),(0,H.jsxs)("div",{className:"flex-1 pl-1",children:[(0,H.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,H.jsx)("div",{className:"text-xs font-normal text-pink-500",children:v(e.position)})]})]}),(0,H.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,H.jsx)("div",{className:"text-sm font-bold text-gray-700",children:v(e.shortTitle)}),e?.description&&(0,H.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:v(e.description)})]}),(0,H.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&(0,H.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,H.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,H.jsx)($m.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),Qm=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>(0,H.jsx)(H.Fragment,{children:l.map((c,d)=>(0,H.jsx)(Ko,{direction:"vertical",reverse:c.reverse,speed:c.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((p,u)=>(0,H.jsx)(Gm,{testimonial:p,index:u,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${d}-${u}`))},`slider-${d}`))});return(0,H.jsxs)(H.Fragment,{children:[e&&(0,H.jsx)(N,{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,H.jsx)(zo,{children:i?(0,H.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,H.jsx)(ut,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,H.jsx)(ut,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,H.jsx)(ut,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):(0,H.jsx)("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,c)=>(0,H.jsx)(Gm,{testimonial:l,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,H.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,H.jsx)("style",{children:`
298
298
  .mark-vertical-marquee {
299
299
  mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
300
300
  }
301
- `})]})};var Et=require("react/jsx-runtime"),Pp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,Et.jsx)(yn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,Et.jsx)(Qm,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,Et.jsx)(Wm,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,Et.jsx)(yn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Cp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,Et.jsx)(Et.Fragment,{children:Pp({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Um=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>(0,Et.jsx)(J,{className:r(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:(0,Et.jsx)(Cp,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});var G=require("react/jsx-runtime"),Nn=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>(0,G.jsx)(ut,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>(0,G.jsxs)(vt,{value:n.title,className:"last:border-none",children:[(0,G.jsx)(ht,{className:"md:text-lg",children:n.title}),(0,G.jsx)(xt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:v(n.description)})]},s))});return(0,G.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,G.jsx)("div",{className:"relative",children:(0,G.jsxs)("div",{className:"md:sticky md:top-16",children:[o&&(0,G.jsx)(N,{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,G.jsx)(C,{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,G.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,G.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},qm=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},m=c=>(0,G.jsx)(ut,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((d,p)=>(0,G.jsxs)(vt,{value:d.title,className:"last:border-none",children:[(0,G.jsx)(ht,{className:"md:text-lg",children:d.title}),(0,G.jsx)(xt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:v(d.description)})]},p))});return(0,G.jsxs)(G.Fragment,{children:[o&&(0,G.jsx)(N,{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,G.jsxs)(Ct,{defaultValue:e[0]?.title,children:[e?.length>1&&(0,G.jsxs)(yt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[(0,G.jsx)(wt,{className:"mb-3 text-center",children:(0,G.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,d)=>(0,G.jsx)(rt,{value:c.title,children:c.title},c.title+d))})}),(0,G.jsx)(Nt,{}),(0,G.jsx)(Pt,{})]}),e.map((c,d)=>(0,G.jsx)(nt,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:m(c)},c.title+d))]}),t&&(0,G.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};var Yt=require("react/jsx-runtime"),kp=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return(0,Yt.jsx)(Nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return(0,Yt.jsx)(qm,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return(0,Yt.jsx)(Nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Rp=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>(0,Yt.jsx)(Yt.Fragment,{children:kp({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,Yt.jsx)(J,{className:t,idSection:i,background:a,children:(0,Yt.jsx)(Rp,{dataHeading:e,dataFAQ:o,template:m,dataHorizontalScroll:s,dataButtons:n})});var Si=h(require("react"),1),Ym=require("@heroicons/react/20/solid");var _=require("react/jsx-runtime"),Tp=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,_.jsxs)("picture",{children:[(0,_.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,_.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,_.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,_.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,_.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Ne,{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,_.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,_.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Pn=(0,Si.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,g,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(g):window.open(u,"_blank")},d=(p,g)=>(0,_.jsxs)("div",{children:[(0,_.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((u,y)=>(0,_.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,_.jsx)("div",{onClick:I=>c(I,u?.id,u?.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,_.jsx)(Tp,{news:u})},u?.id)},y))}),p?.isShowBtn&&(0,_.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,_.jsxs)(je,{action:p?.btnUrl||i&&(()=>i?.(g)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[v(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,_.jsx)(Eo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,_.jsx)(Ym.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||g);return(0,_.jsxs)(Si.default.Fragment,{children:[e&&(0,_.jsx)(N,{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,_.jsxs)(Ct,{defaultValue:t[0]?.title,children:[(0,_.jsxs)(yt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,_.jsx)(wt,{className:"mb-6 text-center",children:(0,_.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,g)=>(0,_.jsx)(rt,{value:p.title,children:p.title},p.title+g))})}),(0,_.jsx)(Nt,{}),(0,_.jsx)(Pt,{})]}),t.map((p,g)=>(0,_.jsx)(nt,{value:p.title,children:d(p,g)},p.title+g))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var co=require("react/jsx-runtime"),Sp=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,co.jsx)(Pn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,co.jsx)(Pn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Dp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,co.jsx)(co.Fragment,{children:Sp({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),Zm=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:i,background:n,template:s=1,onClickModal:m,onClickLoadMore:c})=>(0,co.jsx)(J,{className:r(i),background:n,idSection:e,children:(0,co.jsx)(Dp,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:m,onClickLoadMore:c})});var pe=require("react/jsx-runtime"),Km=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,pe.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,pe.jsx)(N,{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,pe.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Mp=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,pe.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,pe.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,pe.jsx)(N,{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,pe.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,pe.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,pe.jsx)(q,{ratio:4/3,children:(0,pe.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Ip=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return(0,pe.jsx)(Km,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return(0,pe.jsx)(Mp,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return(0,pe.jsx)(Km,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},Ap=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>(0,pe.jsx)(pe.Fragment,{children:Ip({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),Jm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})=>(0,pe.jsx)(J,{className:t,idSection:a,background:o,children:(0,pe.jsx)(Ap,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})});var Cn=h(require("react"),1);var Ke=require("react/jsx-runtime"),Lp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ke.jsxs)("div",{className:"text-center",children:[(0,Ke.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:v(t??"")}),(0,Ke.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:v(o??"")}),a&&(0,Ke.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:v(a??"")})]})},Di=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ke.jsxs)(Cn.default.Fragment,{children:[t&&(0,Ke.jsx)(N,{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,Ke.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,Ke.jsx)(Cn.default.Fragment,{children:(0,Ke.jsx)(Lp,{metric:a})},i))}),o&&(0,Ke.jsx)(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var kn=h(require("react"),1);var Je=require("react/jsx-runtime"),zp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Je.jsxs)("div",{className:"text-center md:text-left",children:[(0,Je.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:v(t??"")}),(0,Je.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:v(o??"")}),a&&(0,Je.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:v(a??"")})]})},Rn=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Je.jsxs)(kn.default.Fragment,{children:[t&&(0,Je.jsx)(N,{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,Je.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,Je.jsx)(kn.default.Fragment,{children:(0,Je.jsx)(zp,{metric:a})},i))}),o&&(0,Je.jsx)(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Zt=require("react/jsx-runtime"),Ep=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,Zt.jsx)(Di,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,Zt.jsx)(Rn,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,Zt.jsx)(Di,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Hp=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,Zt.jsx)(Zt.Fragment,{children:Ep({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),ec=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:i,className:n,template:s})=>(0,Zt.jsx)(J,{className:r(n),background:i,idSection:e,children:(0,Zt.jsx)(Hp,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});var tc=require("react"),Sa=require("react/jsx-runtime"),oc=(0,tc.forwardRef)(({className:e,title:o,children:t},a)=>(0,Sa.jsxs)("div",{className:e,ref:a,children:[(0,Sa.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,Sa.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 ic=require("react");var et=require("react/jsx-runtime"),_p=()=>(0,et.jsx)("div",{className:"p-3 border rounded-lg",children:(0,et.jsxs)("div",{className:"flex items-center gap-3",children:[(0,et.jsx)(Ta,{className:"rounded-md h-9 w-9 "}),(0,et.jsx)("div",{className:"flex-1",children:(0,et.jsx)(Ta,{className:"w-48 h-5 "})}),(0,et.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Fp(){return(0,et.jsx)(et.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,et.jsx)(_p,{},o))})}var ac=Fp;var Re=require("react/jsx-runtime"),Bp=({paymentMethod:e})=>(0,Re.jsx)(ka,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,Re.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Re.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,Re.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,Re.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,Re.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,Re.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),rc=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=(0,ic.useCallback)(s=>a?.(s),[a]);return(0,Re.jsxs)(Re.Fragment,{children:[e&&(0,Re.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,Re.jsx)(ac,{}):(0,Re.jsx)(Ca,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,Re.jsx)(Bp,{paymentMethod:s},s.id))})]})};var Tn=require("react");var Dn=require("react/jsx-runtime"),Op=(0,Tn.forwardRef)(({children:e,className:o},t)=>(0,Dn.jsx)("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),Sn=(0,Tn.forwardRef)(({children:e,className:o,...t},a)=>(0,Dn.jsx)(Op,{ref:a,className:o,...t,children:e}));Sn.displayName="Payment";var nc=require("react");var Da=require("react/jsx-runtime"),sc=(0,nc.forwardRef)(({className:e,children:o},t)=>(0,Da.jsxs)("div",{className:r("",e),ref:t,children:[(0,Da.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,Da.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var lc=require("react");var cc=require("react/jsx-runtime"),mc=(0,lc.forwardRef)(({className:e,children:o},t)=>(0,cc.jsx)("div",{className:r("pb-5",e),ref:t,children:o}));var pc=require("react");var Mi=require("@heroicons/react/20/solid");var K=require("react/jsx-runtime"),Vp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,K.jsx)(Xo,{message:o,type:"success",icon:(0,K.jsx)(Mi.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Wp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,K.jsx)(Xo,{message:o,type:"error",icon:(0,K.jsx)(Mi.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Gp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,K.jsx)(Xo,{message:o,type:"neutral"})]}),dc=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,K.jsx)(Vp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,K.jsx)(Wp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,K.jsx)(Gp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var Ii=require("react/jsx-runtime"),fc=(0,pc.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>(0,Ii.jsxs)("div",{ref:s,className:r("rounded-lg p-4",e),children:[(0,Ii.jsx)(dc,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));var Li=require("react");var Jo=require("react/jsx-runtime"),Ai=({content:e})=>(0,Jo.jsxs)("picture",{children:[(0,Jo.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,Jo.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,Jo.jsx)(je,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var po=require("react/jsx-runtime"),$p=({template:e,content:o})=>{switch(e){case 1:return(0,po.jsx)(Ai,{content:o});default:return(0,po.jsx)(Ai,{content:o})}},gc=(0,Li.forwardRef)(({template:e,content:o},t)=>((0,Li.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,po.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,po.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,po.jsx)("div",{className:"content",children:$p({template:e,content:o})})}),(0,po.jsx)("style",{children:`
301
+ `})]})};var Et=require("react/jsx-runtime"),Pp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,Et.jsx)(yn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,Et.jsx)(Qm,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,Et.jsx)(Wm,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,Et.jsx)(yn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Cp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,Et.jsx)(Et.Fragment,{children:Pp({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Um=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>(0,Et.jsx)(J,{className:r(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:(0,Et.jsx)(Cp,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});var G=require("react/jsx-runtime"),Nn=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>(0,G.jsx)(gt,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>(0,G.jsxs)(vt,{value:n.title,className:"last:border-none",children:[(0,G.jsx)(ht,{className:"md:text-lg",children:n.title}),(0,G.jsx)(xt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:v(n.description)})]},s))});return(0,G.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,G.jsx)("div",{className:"relative",children:(0,G.jsxs)("div",{className:"md:sticky md:top-16",children:[o&&(0,G.jsx)(N,{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,G.jsx)(C,{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,G.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,G.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},qm=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=c=>(0,G.jsx)(gt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((d,p)=>(0,G.jsxs)(vt,{value:d.title,className:"last:border-none",children:[(0,G.jsx)(ht,{className:"md:text-lg",children:d.title}),(0,G.jsx)(xt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:v(d.description)})]},p))});return(0,G.jsxs)(G.Fragment,{children:[o&&(0,G.jsx)(N,{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,G.jsxs)(Ct,{defaultValue:e[0]?.title,children:[e?.length>1&&(0,G.jsxs)(yt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[(0,G.jsx)(wt,{className:"mb-3 text-center",children:(0,G.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,d)=>(0,G.jsx)(rt,{value:c.title,children:c.title},c.title+d))})}),(0,G.jsx)(Nt,{}),(0,G.jsx)(Pt,{})]}),e.map((c,d)=>(0,G.jsx)(nt,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:l(c)},c.title+d))]}),t&&(0,G.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};var Yt=require("react/jsx-runtime"),kp=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return(0,Yt.jsx)(Nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return(0,Yt.jsx)(qm,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return(0,Yt.jsx)(Nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Rp=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>(0,Yt.jsx)(Yt.Fragment,{children:kp({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:l=1})=>(0,Yt.jsx)(J,{className:t,idSection:i,background:a,children:(0,Yt.jsx)(Rp,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});var Si=h(require("react"),1),Ym=require("@heroicons/react/20/solid");var _=require("react/jsx-runtime"),Tp=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,_.jsxs)("picture",{children:[(0,_.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,_.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,_.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,_.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,_.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Ne,{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,_.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,_.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Pn=(0,Si.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,u,g)=>{p?.preventDefault(),p?.stopPropagation(),a?a(u):window.open(g,"_blank")},d=(p,u)=>(0,_.jsxs)("div",{children:[(0,_.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((g,y)=>(0,_.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,_.jsx)("div",{onClick:I=>c(I,g?.id,g?.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,_.jsx)(Tp,{news:g})},g?.id)},y))}),p?.isShowBtn&&(0,_.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,_.jsxs)(je,{action:p?.btnUrl||i&&(()=>i?.(u)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[v(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,_.jsx)(Eo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,_.jsx)(Ym.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||u);return(0,_.jsxs)(Si.default.Fragment,{children:[e&&(0,_.jsx)(N,{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,_.jsxs)(Ct,{defaultValue:t[0]?.title,children:[(0,_.jsxs)(yt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,_.jsx)(wt,{className:"mb-6 text-center",children:(0,_.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,u)=>(0,_.jsx)(rt,{value:p.title,children:p.title},p.title+u))})}),(0,_.jsx)(Nt,{}),(0,_.jsx)(Pt,{})]}),t.map((p,u)=>(0,_.jsx)(nt,{value:p.title,children:d(p,u)},p.title+u))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var co=require("react/jsx-runtime"),Sp=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,co.jsx)(Pn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,co.jsx)(Pn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Dp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,co.jsx)(co.Fragment,{children:Sp({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),Zm=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,co.jsx)(J,{className:r(i),background:n,idSection:e,children:(0,co.jsx)(Dp,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:c})});var pe=require("react/jsx-runtime"),Km=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,pe.jsxs)("div",{className:"block overflow-hidden relative p-6 bg-pink-50 rounded-2xl md:px-10 md:py-14 lg:overflow-visible",style:{background:o?.background},children:[e&&(0,pe.jsx)(N,{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,pe.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Mp=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,pe.jsxs)("div",{className:"block grid overflow-hidden relative grid-cols-1 gap-6 p-6 pb-0 bg-pink-700 rounded-2xl md:grid-cols-2 md:px-10 md:pb-0 md:pt-0 lg:overflow-visible",style:o?.background?{background:o.background}:{},children:[(0,pe.jsxs)("div",{className:"flex flex-col justify-center md:py-14",children:[e&&(0,pe.jsx)(N,{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,pe.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,pe.jsx)("div",{className:"self-end mx-auto w-full max-w-sm md:ml-auto md:mr-0 md:pt-10",children:a&&(0,pe.jsx)(q,{ratio:4/3,children:(0,pe.jsx)("img",{src:a.src,alt:a.alt,className:"object-contain w-full h-full rounded-md","data-puck-editable":"true","data-puck-component":"CTASection","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})})]}),Ip=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return(0,pe.jsx)(Km,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return(0,pe.jsx)(Mp,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return(0,pe.jsx)(Km,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},Ap=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>(0,pe.jsx)(pe.Fragment,{children:Ip({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),Jm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>(0,pe.jsx)(J,{className:t,idSection:a,background:o,children:(0,pe.jsx)(Ap,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});var Cn=h(require("react"),1);var Ke=require("react/jsx-runtime"),Lp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ke.jsxs)("div",{className:"text-center",children:[(0,Ke.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:v(t??"")}),(0,Ke.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:v(o??"")}),a&&(0,Ke.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:v(a??"")})]})},Di=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ke.jsxs)(Cn.default.Fragment,{children:[t&&(0,Ke.jsx)(N,{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,Ke.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,Ke.jsx)(Cn.default.Fragment,{children:(0,Ke.jsx)(Lp,{metric:a})},i))}),o&&(0,Ke.jsx)(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var kn=h(require("react"),1);var Je=require("react/jsx-runtime"),zp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Je.jsxs)("div",{className:"text-center md:text-left",children:[(0,Je.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:v(t??"")}),(0,Je.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:v(o??"")}),a&&(0,Je.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:v(a??"")})]})},Rn=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Je.jsxs)(kn.default.Fragment,{children:[t&&(0,Je.jsx)(N,{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,Je.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,Je.jsx)(kn.default.Fragment,{children:(0,Je.jsx)(zp,{metric:a})},i))}),o&&(0,Je.jsx)(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Zt=require("react/jsx-runtime"),Ep=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,Zt.jsx)(Di,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,Zt.jsx)(Rn,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,Zt.jsx)(Di,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Hp=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,Zt.jsx)(Zt.Fragment,{children:Ep({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),ec=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:i,className:n,template:s})=>(0,Zt.jsx)(J,{className:r(n),background:i,idSection:e,children:(0,Zt.jsx)(Hp,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});var tc=require("react"),Sa=require("react/jsx-runtime"),oc=(0,tc.forwardRef)(({className:e,title:o,children:t},a)=>(0,Sa.jsxs)("div",{className:e,ref:a,children:[(0,Sa.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,Sa.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 ic=require("react");var et=require("react/jsx-runtime"),_p=()=>(0,et.jsx)("div",{className:"p-3 border rounded-lg",children:(0,et.jsxs)("div",{className:"flex items-center gap-3",children:[(0,et.jsx)(Ta,{className:"rounded-md h-9 w-9 "}),(0,et.jsx)("div",{className:"flex-1",children:(0,et.jsx)(Ta,{className:"w-48 h-5 "})}),(0,et.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Fp(){return(0,et.jsx)(et.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,et.jsx)(_p,{},o))})}var ac=Fp;var Re=require("react/jsx-runtime"),Bp=({paymentMethod:e})=>(0,Re.jsx)(ka,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,Re.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Re.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,Re.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,Re.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,Re.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,Re.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),rc=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=(0,ic.useCallback)(s=>a?.(s),[a]);return(0,Re.jsxs)(Re.Fragment,{children:[e&&(0,Re.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,Re.jsx)(ac,{}):(0,Re.jsx)(Ca,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,Re.jsx)(Bp,{paymentMethod:s},s.id))})]})};var Tn=require("react");var Dn=require("react/jsx-runtime"),Op=(0,Tn.forwardRef)(({children:e,className:o},t)=>(0,Dn.jsx)("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),Sn=(0,Tn.forwardRef)(({children:e,className:o,...t},a)=>(0,Dn.jsx)(Op,{ref:a,className:o,...t,children:e}));Sn.displayName="Payment";var nc=require("react");var Da=require("react/jsx-runtime"),sc=(0,nc.forwardRef)(({className:e,children:o},t)=>(0,Da.jsxs)("div",{className:r("",e),ref:t,children:[(0,Da.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,Da.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var lc=require("react");var cc=require("react/jsx-runtime"),mc=(0,lc.forwardRef)(({className:e,children:o},t)=>(0,cc.jsx)("div",{className:r("pb-5",e),ref:t,children:o}));var pc=require("react");var Mi=require("@heroicons/react/20/solid");var K=require("react/jsx-runtime"),Vp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,K.jsx)(Xo,{message:o,type:"success",icon:(0,K.jsx)(Mi.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Wp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,K.jsx)(Xo,{message:o,type:"error",icon:(0,K.jsx)(Mi.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Gp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,K.jsx)(Xo,{message:o,type:"neutral"})]}),dc=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,K.jsx)(Vp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,K.jsx)(Wp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,K.jsx)(Gp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var Ii=require("react/jsx-runtime"),fc=(0,pc.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>(0,Ii.jsxs)("div",{ref:s,className:r("rounded-lg p-4",e),children:[(0,Ii.jsx)(dc,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));var Li=require("react");var Jo=require("react/jsx-runtime"),Ai=({content:e})=>(0,Jo.jsxs)("picture",{children:[(0,Jo.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,Jo.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,Jo.jsx)(je,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var po=require("react/jsx-runtime"),$p=({template:e,content:o})=>{switch(e){case 1:return(0,po.jsx)(Ai,{content:o});default:return(0,po.jsx)(Ai,{content:o})}},uc=(0,Li.forwardRef)(({template:e,content:o},t)=>((0,Li.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,po.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,po.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,po.jsx)("div",{className:"content",children:$p({template:e,content:o})})}),(0,po.jsx)("style",{children:`
302
302
  .container-topbar .content {
303
303
  width: 100%;
304
304
  aspect-ratio: 1088/50;
@@ -316,7 +316,7 @@
316
316
  aspect-ratio: 720/88;
317
317
  }
318
318
  }
319
- `})]})));var Ma=h(require("react"),1),uc=require("lucide-react"),We=require("vaul");var Me=require("react/jsx-runtime"),Mn=({shouldScaleBackground:e=!0,...o})=>(0,Me.jsx)(We.Drawer.Root,{shouldScaleBackground:e,...o});Mn.displayName="Drawer";var vc=We.Drawer.Trigger,In=We.Drawer.Portal,hc=We.Drawer.Close,zi=Ma.forwardRef(({className:e,...o},t)=>(0,Me.jsx)(We.Drawer.Overlay,{ref:t,className:r("fixed inset-0 z-50 bg-black/50",e),...o}));zi.displayName=We.Drawer.Overlay.displayName;var An=Ma.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},i)=>(0,Me.jsxs)(In,{children:[(0,Me.jsx)(zi,{}),(0,Me.jsxs)(We.Drawer.Content,{ref:i,className:r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90dvh] flex-col rounded-t-xl border bg-white",e),...a,children:[!t&&(0,Me.jsxs)(We.Drawer.Close,{className:r("data-[state=open]:outline-focus absolute right-2 top-2 select-none appearance-none rounded-full p-2 text-gray-700 outline-none hover:bg-gray-100 active:bg-gray-200 data-[state=open]:z-10 data-[state=open]:outline-2 data-[state=open]:outline-offset-2"),title:"\u0110\xF3ng",children:[(0,Me.jsx)(uc.XIcon,{className:"h-5 w-5"}),(0,Me.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]}));An.displayName="DrawerContent";var Ln=({className:e,...o})=>(0,Me.jsx)("div",{className:r("grid gap-1.5 p-5 text-left",e),...o});Ln.displayName="DrawerHeader";var zn=({className:e,...o})=>(0,Me.jsx)("div",{className:r("mt-auto flex flex-col gap-2 p-4",e),...o});zn.displayName="DrawerFooter";var En=Ma.forwardRef(({className:e,...o},t)=>(0,Me.jsx)(We.Drawer.Title,{ref:t,className:r(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));En.displayName=We.Drawer.Title.displayName;var Hn=Ma.forwardRef(({className:e,...o},t)=>(0,Me.jsx)(We.Drawer.Description,{ref:t,className:r("truncate text-sm text-gray-500",e),...o}));Hn.displayName=We.Drawer.Description.displayName;var _n=({children:e,className:o,...t})=>(0,Me.jsx)("div",{className:r("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});_n.displayName="DrawerBody";var Lo=h(require("react"),1),Ei=require("input-otp"),xc=require("lucide-react");var Ht=require("react/jsx-runtime"),Fn=Lo.forwardRef(({className:e,containerClassName:o,...t},a)=>(0,Ht.jsx)(Ei.OTPInput,{ref:a,containerClassName:r("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:r("disabled:cursor-not-allowed",e),...t}));Fn.displayName="InputOTP";var Bn=Lo.forwardRef(({className:e,...o},t)=>(0,Ht.jsx)("div",{ref:t,className:r("flex items-center",e),...o}));Bn.displayName="InputOTPGroup";var On=Lo.forwardRef(({index:e,className:o,...t},a)=>{let i=Lo.useContext(Ei.OTPInputContext),{char:n,hasFakeCaret:s,isActive:m}=i.slots[e]??{};return(0,Ht.jsxs)("div",{ref:a,className:r("border-input relative flex h-9 w-9 items-center justify-center border-y border-r border-gray-400 text-sm text-gray-900 shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",m&&"ring-ring z-10 ring-1",o),...t,children:[n,s&&(0,Ht.jsxs)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[(0,Ht.jsx)("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),(0,Ht.jsx)("style",{children:`
319
+ `})]})));var Ma=h(require("react"),1),gc=require("lucide-react"),We=require("vaul");var Me=require("react/jsx-runtime"),Mn=({shouldScaleBackground:e=!0,...o})=>(0,Me.jsx)(We.Drawer.Root,{shouldScaleBackground:e,...o});Mn.displayName="Drawer";var vc=We.Drawer.Trigger,In=We.Drawer.Portal,hc=We.Drawer.Close,zi=Ma.forwardRef(({className:e,...o},t)=>(0,Me.jsx)(We.Drawer.Overlay,{ref:t,className:r("fixed inset-0 z-50 bg-black/50",e),...o}));zi.displayName=We.Drawer.Overlay.displayName;var An=Ma.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},i)=>(0,Me.jsxs)(In,{children:[(0,Me.jsx)(zi,{}),(0,Me.jsxs)(We.Drawer.Content,{ref:i,className:r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90dvh] flex-col rounded-t-xl border bg-white",e),...a,children:[!t&&(0,Me.jsxs)(We.Drawer.Close,{className:r("data-[state=open]:outline-focus absolute right-2 top-2 select-none appearance-none rounded-full p-2 text-gray-700 outline-none hover:bg-gray-100 active:bg-gray-200 data-[state=open]:z-10 data-[state=open]:outline-2 data-[state=open]:outline-offset-2"),title:"\u0110\xF3ng",children:[(0,Me.jsx)(gc.XIcon,{className:"h-5 w-5"}),(0,Me.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]}));An.displayName="DrawerContent";var Ln=({className:e,...o})=>(0,Me.jsx)("div",{className:r("grid gap-1.5 p-5 text-left",e),...o});Ln.displayName="DrawerHeader";var zn=({className:e,...o})=>(0,Me.jsx)("div",{className:r("mt-auto flex flex-col gap-2 p-4",e),...o});zn.displayName="DrawerFooter";var En=Ma.forwardRef(({className:e,...o},t)=>(0,Me.jsx)(We.Drawer.Title,{ref:t,className:r(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));En.displayName=We.Drawer.Title.displayName;var Hn=Ma.forwardRef(({className:e,...o},t)=>(0,Me.jsx)(We.Drawer.Description,{ref:t,className:r("truncate text-sm text-gray-500",e),...o}));Hn.displayName=We.Drawer.Description.displayName;var _n=({children:e,className:o,...t})=>(0,Me.jsx)("div",{className:r("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});_n.displayName="DrawerBody";var Lo=h(require("react"),1),Ei=require("input-otp"),xc=require("lucide-react");var Ht=require("react/jsx-runtime"),Fn=Lo.forwardRef(({className:e,containerClassName:o,...t},a)=>(0,Ht.jsx)(Ei.OTPInput,{ref:a,containerClassName:r("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:r("disabled:cursor-not-allowed",e),...t}));Fn.displayName="InputOTP";var Bn=Lo.forwardRef(({className:e,...o},t)=>(0,Ht.jsx)("div",{ref:t,className:r("flex items-center",e),...o}));Bn.displayName="InputOTPGroup";var On=Lo.forwardRef(({index:e,className:o,...t},a)=>{let i=Lo.useContext(Ei.OTPInputContext),{char:n,hasFakeCaret:s,isActive:l}=i.slots[e]??{};return(0,Ht.jsxs)("div",{ref:a,className:r("border-input relative flex h-9 w-9 items-center justify-center border-y border-r border-gray-400 text-sm text-gray-900 shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"ring-ring z-10 ring-1",o),...t,children:[n,s&&(0,Ht.jsxs)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[(0,Ht.jsx)("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),(0,Ht.jsx)("style",{children:`
320
320
  @keyframes caret-blink {
321
321
  0%, 70%, 100% {
322
322
  opacity: 1;
@@ -397,7 +397,7 @@
397
397
  transform: translate3d(0, 30%, 0);
398
398
  }
399
399
  }
400
- `})]}),Zp=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:i,loading:n,onQrLoaded:s,qrImageBase64:m,qrCodeRef:c,dateExpired:d,priceOrder:p,titleOrder:g})=>{let[u,y]=ea.default.useState(void 0);return ea.default.useEffect(()=>{a?bc(a).then(y).catch(()=>y(void 0)):y(void 0)},[a]),ea.default.useEffect(()=>{t&&u&&typeof s=="function"&&!o&&s()},[t,u,s,o]),(0,b.jsxs)("div",{className:"relative z-[1]",children:[(0,b.jsxs)("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:c,children:[(0,b.jsx)("img",{className:"hidden absolute right-6 top-14 pointer-events-none select-none md:flex",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250821154232-638913877527374430.png",alt:"pattern-qr"}),(0,b.jsx)("div",{className:r("mb-2 hidden text-base font-bold text-gray-900 md:block",m&&"opacity-0 md:opacity-100"),children:g||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),m&&(0,b.jsx)("div",{className:"overflow-hidden absolute top-0 right-0 left-0 visible z-20 w-full h-full opacity-100 cursor-pointer md:hidden md:select-none",children:(0,b.jsx)("img",{src:m,alt:"QR Code",className:"absolute top-1/2 left-1/2 max-w-none max-h-full -translate-x-1/2 -translate-y-1/2"})}),(0,b.jsxs)(Yp,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:d,priceOrder:p,children:[t&&u&&!o&&(0,b.jsx)(wc.QRCodeSVG,{value:t,size:215,imageSettings:{src:`${u}`,height:40,width:40,excavate:!0},level:"H"}),i&&(0,b.jsx)("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:(0,b.jsx)("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&(0,b.jsx)("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:(0,b.jsx)(vi,{size:"lg"})})]})]}),(0,b.jsxs)("div",{className:"relative z-10 px-5 pb-5 text-center bg-pink-50 bg-repeat-y select-none qrcode__guide",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[(0,b.jsxs)("div",{className:r("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",m&&"opacity-100 md:opacity-0"),children:[(0,b.jsxs)("div",{className:"rounded-full ripple size-5",children:[(0,b.jsx)("div",{className:"ripple-1"}),(0,b.jsx)("div",{className:"ripple-2"})]}),(0,b.jsx)("img",{className:"object-contain relative z-10 -mt-1 drop-shadow-lg select-none qrcode__hand size-7",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),(0,b.jsx)("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),(0,b.jsx)(_i,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:(0,b.jsxs)("div",{className:"flex justify-center items-center space-x-1 text-sm font-semibold text-center text-pink-600 cursor-pointer",children:[(0,b.jsx)("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",(0,b.jsx)(yc.LucideMessageCircleQuestion,{className:"size-4"})," "]})}),(0,b.jsx)("style",{children:`
400
+ `})]}),Zp=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:i,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:c,dateExpired:d,priceOrder:p,titleOrder:u})=>{let[g,y]=ea.default.useState(void 0);return ea.default.useEffect(()=>{a?bc(a).then(y).catch(()=>y(void 0)):y(void 0)},[a]),ea.default.useEffect(()=>{t&&g&&typeof s=="function"&&!o&&s()},[t,g,s,o]),(0,b.jsxs)("div",{className:"relative z-[1]",children:[(0,b.jsxs)("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:c,children:[(0,b.jsx)("img",{className:"hidden absolute right-6 top-14 pointer-events-none select-none md:flex",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250821154232-638913877527374430.png",alt:"pattern-qr"}),(0,b.jsx)("div",{className:r("mb-2 hidden text-base font-bold text-gray-900 md:block",l&&"opacity-0 md:opacity-100"),children:u||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),l&&(0,b.jsx)("div",{className:"overflow-hidden absolute top-0 right-0 left-0 visible z-20 w-full h-full opacity-100 cursor-pointer md:hidden md:select-none",children:(0,b.jsx)("img",{src:l,alt:"QR Code",className:"absolute top-1/2 left-1/2 max-w-none max-h-full -translate-x-1/2 -translate-y-1/2"})}),(0,b.jsxs)(Yp,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:d,priceOrder:p,children:[t&&g&&!o&&(0,b.jsx)(wc.QRCodeSVG,{value:t,size:215,imageSettings:{src:`${g}`,height:40,width:40,excavate:!0},level:"H"}),i&&(0,b.jsx)("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:(0,b.jsx)("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&(0,b.jsx)("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:(0,b.jsx)(vi,{size:"lg"})})]})]}),(0,b.jsxs)("div",{className:"relative z-10 px-5 pb-5 text-center bg-pink-50 bg-repeat-y select-none qrcode__guide",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[(0,b.jsxs)("div",{className:r("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[(0,b.jsxs)("div",{className:"rounded-full ripple size-5",children:[(0,b.jsx)("div",{className:"ripple-1"}),(0,b.jsx)("div",{className:"ripple-2"})]}),(0,b.jsx)("img",{className:"object-contain relative z-10 -mt-1 drop-shadow-lg select-none qrcode__hand size-7",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),(0,b.jsx)("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),(0,b.jsx)(_i,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:(0,b.jsxs)("div",{className:"flex justify-center items-center space-x-1 text-sm font-semibold text-center text-pink-600 cursor-pointer",children:[(0,b.jsx)("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",(0,b.jsx)(yc.LucideMessageCircleQuestion,{className:"size-4"})," "]})}),(0,b.jsx)("style",{children:`
401
401
  .ripple {
402
402
  box-sizing: border-box;
403
403
  position: relative;
@@ -453,7 +453,7 @@
453
453
  transform: scale(1) translateY(0);
454
454
  }
455
455
  }
456
- `})]})]})},Nc=Zp;var ta=require("react/jsx-runtime"),Kp=["qrcode__gradient","qrcode__guide","qrcode__title"],Jp=e=>!Kp.some(o=>e.classList?.contains(o)),Cc=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:i,dateExpired:n,priceOrder:s,titleOrder:m,className:c})=>{let d=(0,fo.useRef)(null),[p,g]=(0,fo.useState)(null),[u,y]=(0,fo.useState)(!1);return(0,fo.useEffect)(()=>{if(u&&d.current){let I=setTimeout(()=>{d.current&&(0,Pc.toPng)(d.current,{filter:Jp}).then(D=>{g(D)}).catch(D=>{console.error("Error generating QR image:",D)})},2e3);return()=>clearTimeout(I)}},[u,t]),(0,fo.useEffect)(()=>{e&&y(!1)},[e]),(0,ta.jsx)(ta.Fragment,{children:(0,ta.jsx)("div",{className:r("relative h-full md:col-span-7 md:rounded-lg",c),children:(0,ta.jsx)(Nc,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:i,expired:o,loading:e,qrCodeRef:d,titleOrder:m,onQrLoaded:()=>{y(!0)},qrImageBase64:p,dateExpired:n,priceOrder:s})})})};var Wc=h(require("color"),1),Gc=h(require("tailwindcss/plugin.js"),1);var kc={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 Rc={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Tc={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Sc={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Dc={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Mc={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Ic={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Ac={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Lc={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var zc={white:"#ffffff",black:"#000000",blue:Rc,green:Tc,pink:Sc,purple:Dc,red:Mc,yellow:Ic,gray:Lc,orange:Ac};var Wn={...zc};var Ec={"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 _t="250ms",Hc={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":_t},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":_t},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":_t},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":_t},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":_t},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":_t},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":_t},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":_t},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":_t},".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":_t}};var _c={".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 Fc={".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 Bc={..._c,...Hc,...Fc};var Oc=require("flat");function ef(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 Vc=e=>ef((0,Oc.flatten)(e,{safe:!0,delimiter:"-"}));var tf=e=>{let o={utilities:{},colors:{}},t=Vc(Wn),a=Ec,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[m,c,d]=(0,Wc.default)(s).rgb().array(),p=`--${e}-${n}`;o.utilities[i][p]=`${m} ${c} ${d}`,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,d])=>{let p=`${m}-${c}`;o.utilities[i][p]=d});else{let c=m.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][m]=c}}),o},$c=()=>{let e="mobase",o=tf(e);return(0,Gc.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({...Bc})},{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:{...Wn,...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)`},...kc}}})};var L=require("react/jsx-runtime"),jc=(0,L.jsxs)(L.Fragment,{children:[(0,L.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,L.jsx)("meta",{name:"distribution",content:"Global"}),(0,L.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,L.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,L.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,L.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,L.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,L.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,L.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,L.jsx)("meta",{name:"language",content:"vietnamese"}),(0,L.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,L.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,L.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,L.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,L.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
456
+ `})]})]})},Nc=Zp;var ta=require("react/jsx-runtime"),Kp=["qrcode__gradient","qrcode__guide","qrcode__title"],Jp=e=>!Kp.some(o=>e.classList?.contains(o)),Cc=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:i,dateExpired:n,priceOrder:s,titleOrder:l,className:c})=>{let d=(0,fo.useRef)(null),[p,u]=(0,fo.useState)(null),[g,y]=(0,fo.useState)(!1);return(0,fo.useEffect)(()=>{if(g&&d.current){let I=setTimeout(()=>{d.current&&(0,Pc.toPng)(d.current,{filter:Jp}).then(D=>{u(D)}).catch(D=>{console.error("Error generating QR image:",D)})},2e3);return()=>clearTimeout(I)}},[g,t]),(0,fo.useEffect)(()=>{e&&y(!1)},[e]),(0,ta.jsx)(ta.Fragment,{children:(0,ta.jsx)("div",{className:r("relative h-full md:col-span-7 md:rounded-lg",c),children:(0,ta.jsx)(Nc,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:i,expired:o,loading:e,qrCodeRef:d,titleOrder:l,onQrLoaded:()=>{y(!0)},qrImageBase64:p,dateExpired:n,priceOrder:s})})})};var Wc=h(require("color"),1),Gc=h(require("tailwindcss/plugin.js"),1);var kc={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 Rc={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Tc={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Sc={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Dc={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Mc={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Ic={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Ac={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Lc={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var zc={white:"#ffffff",black:"#000000",blue:Rc,green:Tc,pink:Sc,purple:Dc,red:Mc,yellow:Ic,gray:Lc,orange:Ac};var Wn={...zc};var Ec={"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 _t="250ms",Hc={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":_t},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":_t},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":_t},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":_t},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":_t},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":_t},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":_t},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":_t},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":_t},".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":_t}};var _c={".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 Fc={".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 Bc={..._c,...Hc,...Fc};var Oc=require("flat");function ef(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 Vc=e=>ef((0,Oc.flatten)(e,{safe:!0,delimiter:"-"}));var tf=e=>{let o={utilities:{},colors:{}},t=Vc(Wn),a=Ec,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,c,d]=(0,Wc.default)(s).rgb().array(),p=`--${e}-${n}`;o.utilities[i][p]=`${l} ${c} ${d}`,o.colors[n]=`rgb(var(${p}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,d])=>{let p=`${l}-${c}`;o.utilities[i][p]=d});else{let c=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=c}}),o},$c=()=>{let e="mobase",o=tf(e);return(0,Gc.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({...Bc})},{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:{...Wn,...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)`},...kc}}})};var L=require("react/jsx-runtime"),jc=(0,L.jsxs)(L.Fragment,{children:[(0,L.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,L.jsx)("meta",{name:"distribution",content:"Global"}),(0,L.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,L.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,L.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,L.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,L.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,L.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,L.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,L.jsx)("meta",{name:"language",content:"vietnamese"}),(0,L.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,L.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,L.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,L.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,L.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
457
457
  "@context": "https://schema.org/",
458
458
  "@type": "WebSite",
459
459
  "@id":"https://www.momo.vn/#website",