@momo-webplatform/mobase 0.2.73 → 0.2.74

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 Mc=Object.create;var ha=Object.defineProperty;var Ic=Object.getOwnPropertyDescriptor;var Ac=Object.getOwnPropertyNames;var Lc=Object.getPrototypeOf,Ec=Object.prototype.hasOwnProperty;var Hc=(e,o)=>{for(var t in o)ha(e,t,{get:o[t],enumerable:!0})},In=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of Ac(o))!Ec.call(e,r)&&r!==t&&ha(e,r,{get:()=>o[r],enumerable:!(a=Ic(o,r))||a.enumerable});return e};var u=(e,o,t)=>(t=e!=null?Mc(Lc(e)):{},In(o||!e||!e.__esModule?ha(t,"default",{value:e,enumerable:!0}):t,e)),Fc=e=>In(ha({},"__esModule",{value:!0}),e);var Ip={};Hc(Ip,{Accordion:()=>nt,AccordionContent:()=>mt,AccordionItem:()=>st,AccordionTrigger:()=>lt,ActionButton:()=>Be,AlertDialog:()=>bs,AlertDialogAction:()=>ti,AlertDialogCancel:()=>oi,AlertDialogContent:()=>Yr,AlertDialogDescription:()=>ei,AlertDialogFooter:()=>Kr,AlertDialogHeader:()=>Zr,AlertDialogOverlay:()=>ja,AlertDialogPortal:()=>Xr,AlertDialogTitle:()=>Jr,AlertDialogTrigger:()=>hs,AspectRatio:()=>G,Badge:()=>Cl,BlogSection:()=>rs,Breadcrumb:()=>Lr,BreadcrumbEllipsis:()=>Br,BreadcrumbItem:()=>Hr,BreadcrumbLink:()=>Fr,BreadcrumbList:()=>Er,BreadcrumbPage:()=>zr,BreadcrumbSeparator:()=>_r,Button:()=>Ae,CTASection:()=>Um,Calendar:()=>Zo,Callout:()=>Eo,Card:()=>Mi,CardContent:()=>Ei,CardDescription:()=>Li,CardFooter:()=>Hi,CardHeader:()=>Ii,CardTitle:()=>Ai,Carousel:()=>ke,CarouselContent:()=>Se,CarouselDots:()=>qo,CarouselItem:()=>De,CarouselNext:()=>lo,CarouselPrevious:()=>so,Checkbox:()=>Yo,ChoiceboxGroup:()=>da,ChoiceboxGroupItem:()=>pa,ChoiceboxMultiItem:()=>Gi,Combobox:()=>ll,ComboboxContent:()=>sl,ComboboxTrigger:()=>nl,Command:()=>ar,CommandDialog:()=>rl,CommandEmpty:()=>_i,CommandGroup:()=>Bi,CommandInput:()=>Fi,CommandItem:()=>Oi,CommandList:()=>zi,CommandSeparator:()=>Vi,CommandShortcut:()=>Wi,Comment:()=>_l,DatePicker:()=>ds,DateSelect:()=>xs,Dialog:()=>ct,DialogBody:()=>It,DialogClose:()=>wa,DialogContent:()=>Xe,DialogDescription:()=>Ar,DialogFooter:()=>Ir,DialogHeader:()=>Go,DialogOverlay:()=>Na,DialogPortal:()=>Mr,DialogQr:()=>Ut,DialogTitle:()=>jo,DialogTrigger:()=>ya,DropdownMenu:()=>em,DropdownMenuCheckboxItem:()=>mn,DropdownMenuContent:()=>sn,DropdownMenuGroup:()=>om,DropdownMenuItem:()=>ln,DropdownMenuLabel:()=>dn,DropdownMenuPortal:()=>am,DropdownMenuRadioGroup:()=>im,DropdownMenuRadioItem:()=>cn,DropdownMenuSeparator:()=>pn,DropdownMenuShortcut:()=>fn,DropdownMenuSub:()=>rm,DropdownMenuSubContent:()=>nn,DropdownMenuSubTrigger:()=>rn,DropdownMenuTrigger:()=>tm,FAQSection:()=>Om,FeatureSection:()=>Dm,Footer:()=>al,Form:()=>Yl,FormControl:()=>tn,FormDescription:()=>on,FormField:()=>Kl,FormItem:()=>Ji,FormLabel:()=>en,FormMessage:()=>an,GuideSection:()=>Rs,HeaderNavigation:()=>Si,Heading:()=>Ra,HeadingGroup:()=>ka,HeadingSub:()=>Ta,HeadingTagline:()=>Ca,HeroSection:()=>gm,HorizontalContent:()=>ft,HorizontalNext:()=>ut,HorizontalPrevious:()=>gt,HorizontalScroll:()=>pt,HowItWorksSection:()=>sm,IconButton:()=>pe,LightBoxGalleryContent:()=>ir,LightboxGallery:()=>rr,LightboxThumbnail:()=>bl,MetricsSection:()=>Qm,NavigationMenu:()=>aa,NavigationMenuContent:()=>la,NavigationMenuItem:()=>ia,NavigationMenuLink:()=>Ao,NavigationMenuList:()=>ra,NavigationMenuTrigger:()=>sa,NewsSection:()=>Gm,Pagination:()=>si,Payment:()=>kn,PaymentInvoice:()=>Xm,PaymentMethods:()=>Km,PaymentResult:()=>nc,PaymentResultContent:()=>oc,PaymentResultFooter:()=>ec,Popover:()=>To,PopoverContent:()=>mo,PopoverTrigger:()=>ko,ProgressSteps:()=>jl,ProgressStepsItem:()=>Gl,ProgressStepsItemTrigger:()=>$l,Progressbar:()=>qi,RadioGroup:()=>Ri,RadioGroupItem:()=>Ti,ReadMoreLite:()=>nr,SearchBar:()=>fl,Select:()=>So,SelectContent:()=>po,SelectGroup:()=>Mo,SelectItem:()=>zt,SelectLabel:()=>Ur,SelectScrollDownButton:()=>$a,SelectScrollUpButton:()=>Wa,SelectSeparator:()=>Qr,SelectTrigger:()=>co,SelectValue:()=>Do,SiteMeta:()=>Sc,Skeleton:()=>ga,Slider:()=>Xi,SocialProofSection:()=>vm,Spinner:()=>Sl,Stepper:()=>wi,Switch:()=>Pi,Tabs:()=>vt,TabsContent:()=>Je,TabsList:()=>Ze,TabsTrigger:()=>Ke,TestimonialSection:()=>Bm,TextArea:()=>Ds,TextButton:()=>be,TextInput:()=>zs,ToastAction:()=>fi,Toaster:()=>Ls,Tooltip:()=>Hs,TooltipArrow:()=>bi,TooltipContent:()=>hi,TooltipProvider:()=>Es,TooltipTrigger:()=>Fs,Topbar:()=>sc,badgeVariants:()=>ji,buttonVariants:()=>qe,mobaseTW:()=>kc,navigationMenuTriggerStyle:()=>na,textButtonVariants:()=>Or,toast:()=>ci,useFormField:()=>zo,useToast:()=>Za});module.exports=Fc(Ip);var Wo=u(require("react"),1),Fn=require("@heroicons/react/20/solid"),_e=u(require("@radix-ui/react-accordion"),1);var zc=u(require("react"),1),Ln=require("tailwind-merge");var Dt={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 An={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 Oo=[{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"}],Dr=[{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 we={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};var En=require("@artsy/fresnel");function i(...e){return(0,Ln.twMerge)(e)}var Hn=(0,En.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Ep=Hn.createMediaStyle(),{Media:it,MediaContextProvider:wo}=Hn;var Mt=require("react/jsx-runtime"),nt=Wo.forwardRef(({className:e,...o},t)=>(0,Mt.jsx)(_e.Root,{ref:t,...o}));nt.displayName="AccordionRoot";var st=Wo.forwardRef(({className:e,...o},t)=>(0,Mt.jsx)(_e.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));st.displayName="AccordionItem";var lt=Wo.forwardRef(({className:e,children:o,...t},a)=>(0,Mt.jsx)(_e.Header,{className:"flex",children:(0,Mt.jsxs)(_e.Trigger,{ref:a,className:i("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,Mt.jsx)(Fn.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));lt.displayName=_e.Trigger.displayName;var mt=Wo.forwardRef(({className:e,children:o,...t},a)=>(0,Mt.jsx)(_e.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,Mt.jsx)("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));mt.displayName=_e.Content.displayName;var zn=u(require("react"),1),_n=require("@radix-ui/react-slot"),Bn=require("class-variance-authority");var Ne=require("react/jsx-runtime"),_c=({className:e})=>(0,Ne.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,Ne.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,Ne.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,Ne.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,Ne.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,Ne.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,Ne.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,Ne.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,Ne.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,Ne.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,Ne.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,Ne.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,Ne.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"})]}),No=_c;var jt=require("react/jsx-runtime"),qe=(0,Bn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Ae=zn.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},m)=>{let c=a?_n.Slot:"button",f=i(qe({variant:o,size:t,className:e}),{"cursor-wait":r});return(0,jt.jsx)(jt.Fragment,{children:a?(0,jt.jsx)(c,{className:f,type:"button",disabled:n,ref:m,...s,children:s.children}):(0,jt.jsxs)(c,{className:f,type:"button",disabled:n,ref:m,...s,children:[r&&(0,jt.jsx)(No,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Ae.displayName="Button";var $o=u(require("react"),1),Vn=require("@heroicons/react/16/solid"),ne=u(require("@radix-ui/react-dialog"),1);var Ce=require("react/jsx-runtime"),ct=ne.Root,ya=ne.Trigger,Mr=ne.Portal,wa=ne.Close,Na=$o.forwardRef(({className:e,...o},t)=>(0,Ce.jsx)(ne.Overlay,{ref:t,className:i("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}));Na.displayName=ne.Overlay.displayName;var Xe=$o.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:n="auto",isFull:s=!1,children:m,...c},f)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},g={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},v={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},y=[d.base,d[r],g[a],v[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,Ce.jsxs)(Mr,{children:[(0,Ce.jsx)(Na,{}),(0,Ce.jsxs)(ne.Content,{ref:f,className:i(...y),...c,children:[m,!t&&(0,Ce.jsxs)(ne.Close,{className:i("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,Ce.jsx)(Vn.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Ce.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Xe.displayName=ne.Content.displayName;var Go=({className:e,...o})=>(0,Ce.jsx)("div",{className:i("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});Go.displayName="DialogHeader";var It=({className:e,isCondensed:o=!1,...t})=>(0,Ce.jsx)("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});It.displayName="DialogBody";var Ir=({className:e,isDivider:o=!0,...t})=>(0,Ce.jsx)("div",{className:i("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});Ir.displayName="DialogFooter";var jo=$o.forwardRef(({className:e,...o},t)=>(0,Ce.jsx)(ne.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));jo.displayName=ne.Title.displayName;var Ar=$o.forwardRef(({className:e,...o},t)=>(0,Ce.jsx)(ne.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));Ar.displayName=ne.Description.displayName;var On=require("qrcode.react"),b=require("react/jsx-runtime"),Bc=({img:e="",children:o,isQrForAll:t})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"qrcode__scan__container",children:(0,b.jsxs)("div",{className:"qrcode__scan",children:[(0,b.jsx)("div",{className:"qrcode__gradient",children:(0,b.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,b.jsx)("div",{className:"qrcode__border",children:(0,b.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,b.jsx)("div",{className:"qrcode__image p-4",children:e?(0,b.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),(0,b.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,b.jsxs)(b.Fragment,{children:[(0,b.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,b.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,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,b.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,b.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,b.jsx)("style",{children:`
1
+ "use strict";var Mc=Object.create;var ha=Object.defineProperty;var Ic=Object.getOwnPropertyDescriptor;var Ac=Object.getOwnPropertyNames;var Lc=Object.getPrototypeOf,Ec=Object.prototype.hasOwnProperty;var Hc=(e,o)=>{for(var t in o)ha(e,t,{get:o[t],enumerable:!0})},In=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of Ac(o))!Ec.call(e,r)&&r!==t&&ha(e,r,{get:()=>o[r],enumerable:!(a=Ic(o,r))||a.enumerable});return e};var u=(e,o,t)=>(t=e!=null?Mc(Lc(e)):{},In(o||!e||!e.__esModule?ha(t,"default",{value:e,enumerable:!0}):t,e)),Fc=e=>In(ha({},"__esModule",{value:!0}),e);var Ip={};Hc(Ip,{Accordion:()=>nt,AccordionContent:()=>mt,AccordionItem:()=>st,AccordionTrigger:()=>lt,ActionButton:()=>Be,AlertDialog:()=>bs,AlertDialogAction:()=>ti,AlertDialogCancel:()=>oi,AlertDialogContent:()=>Yr,AlertDialogDescription:()=>ei,AlertDialogFooter:()=>Kr,AlertDialogHeader:()=>Zr,AlertDialogOverlay:()=>ja,AlertDialogPortal:()=>Xr,AlertDialogTitle:()=>Jr,AlertDialogTrigger:()=>hs,AspectRatio:()=>G,Badge:()=>Cl,BlogSection:()=>rs,Breadcrumb:()=>Lr,BreadcrumbEllipsis:()=>Br,BreadcrumbItem:()=>Hr,BreadcrumbLink:()=>Fr,BreadcrumbList:()=>Er,BreadcrumbPage:()=>zr,BreadcrumbSeparator:()=>_r,Button:()=>Ae,CTASection:()=>Um,Calendar:()=>Zo,Callout:()=>Eo,Card:()=>Mi,CardContent:()=>Ei,CardDescription:()=>Li,CardFooter:()=>Hi,CardHeader:()=>Ii,CardTitle:()=>Ai,Carousel:()=>ke,CarouselContent:()=>Se,CarouselDots:()=>qo,CarouselItem:()=>De,CarouselNext:()=>lo,CarouselPrevious:()=>so,Checkbox:()=>Yo,ChoiceboxGroup:()=>da,ChoiceboxGroupItem:()=>pa,ChoiceboxMultiItem:()=>Gi,Combobox:()=>ll,ComboboxContent:()=>sl,ComboboxTrigger:()=>nl,Command:()=>ar,CommandDialog:()=>rl,CommandEmpty:()=>_i,CommandGroup:()=>Bi,CommandInput:()=>Fi,CommandItem:()=>Oi,CommandList:()=>zi,CommandSeparator:()=>Vi,CommandShortcut:()=>Wi,Comment:()=>_l,DatePicker:()=>ds,DateSelect:()=>xs,Dialog:()=>ct,DialogBody:()=>It,DialogClose:()=>Na,DialogContent:()=>Xe,DialogDescription:()=>Ar,DialogFooter:()=>Ir,DialogHeader:()=>Go,DialogOverlay:()=>wa,DialogPortal:()=>Mr,DialogQr:()=>Ut,DialogTitle:()=>jo,DialogTrigger:()=>ya,DropdownMenu:()=>em,DropdownMenuCheckboxItem:()=>mn,DropdownMenuContent:()=>sn,DropdownMenuGroup:()=>om,DropdownMenuItem:()=>ln,DropdownMenuLabel:()=>dn,DropdownMenuPortal:()=>am,DropdownMenuRadioGroup:()=>im,DropdownMenuRadioItem:()=>cn,DropdownMenuSeparator:()=>pn,DropdownMenuShortcut:()=>fn,DropdownMenuSub:()=>rm,DropdownMenuSubContent:()=>nn,DropdownMenuSubTrigger:()=>rn,DropdownMenuTrigger:()=>tm,FAQSection:()=>Om,FeatureSection:()=>Dm,Footer:()=>al,Form:()=>Yl,FormControl:()=>tn,FormDescription:()=>on,FormField:()=>Kl,FormItem:()=>Ji,FormLabel:()=>en,FormMessage:()=>an,GuideSection:()=>Rs,HeaderNavigation:()=>Si,Heading:()=>Ra,HeadingGroup:()=>ka,HeadingSub:()=>Ta,HeadingTagline:()=>Ca,HeroSection:()=>gm,HorizontalContent:()=>ft,HorizontalNext:()=>ut,HorizontalPrevious:()=>gt,HorizontalScroll:()=>pt,HowItWorksSection:()=>sm,IconButton:()=>pe,LightBoxGalleryContent:()=>ir,LightboxGallery:()=>rr,LightboxThumbnail:()=>bl,MetricsSection:()=>Qm,NavigationMenu:()=>aa,NavigationMenuContent:()=>la,NavigationMenuItem:()=>ia,NavigationMenuLink:()=>Ao,NavigationMenuList:()=>ra,NavigationMenuTrigger:()=>sa,NewsSection:()=>Gm,Pagination:()=>si,Payment:()=>kn,PaymentInvoice:()=>Xm,PaymentMethods:()=>Km,PaymentResult:()=>nc,PaymentResultContent:()=>oc,PaymentResultFooter:()=>ec,Popover:()=>To,PopoverContent:()=>mo,PopoverTrigger:()=>ko,ProgressSteps:()=>jl,ProgressStepsItem:()=>Gl,ProgressStepsItemTrigger:()=>$l,Progressbar:()=>qi,RadioGroup:()=>Ri,RadioGroupItem:()=>Ti,ReadMoreLite:()=>nr,SearchBar:()=>fl,Select:()=>So,SelectContent:()=>po,SelectGroup:()=>Mo,SelectItem:()=>zt,SelectLabel:()=>Ur,SelectScrollDownButton:()=>$a,SelectScrollUpButton:()=>Wa,SelectSeparator:()=>Qr,SelectTrigger:()=>co,SelectValue:()=>Do,SiteMeta:()=>Sc,Skeleton:()=>ga,Slider:()=>Xi,SocialProofSection:()=>vm,Spinner:()=>Sl,Stepper:()=>Ni,Switch:()=>Pi,Tabs:()=>vt,TabsContent:()=>Je,TabsList:()=>Ze,TabsTrigger:()=>Ke,TestimonialSection:()=>Bm,TextArea:()=>Ds,TextButton:()=>be,TextInput:()=>zs,ToastAction:()=>fi,Toaster:()=>Ls,Tooltip:()=>Hs,TooltipArrow:()=>bi,TooltipContent:()=>hi,TooltipProvider:()=>Es,TooltipTrigger:()=>Fs,Topbar:()=>sc,badgeVariants:()=>ji,buttonVariants:()=>qe,mobaseTW:()=>kc,navigationMenuTriggerStyle:()=>na,textButtonVariants:()=>Or,toast:()=>ci,useFormField:()=>zo,useToast:()=>Za});module.exports=Fc(Ip);var Wo=u(require("react"),1),Fn=require("@heroicons/react/20/solid"),_e=u(require("@radix-ui/react-accordion"),1);var zc=u(require("react"),1),Ln=require("tailwind-merge");var Dt={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 An={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 Oo=[{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"}],Dr=[{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 Ne={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};var En=require("@artsy/fresnel");function i(...e){return(0,Ln.twMerge)(e)}var Hn=(0,En.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Ep=Hn.createMediaStyle(),{Media:it,MediaContextProvider:No}=Hn;var Mt=require("react/jsx-runtime"),nt=Wo.forwardRef(({className:e,...o},t)=>(0,Mt.jsx)(_e.Root,{ref:t,...o}));nt.displayName="AccordionRoot";var st=Wo.forwardRef(({className:e,...o},t)=>(0,Mt.jsx)(_e.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));st.displayName="AccordionItem";var lt=Wo.forwardRef(({className:e,children:o,...t},a)=>(0,Mt.jsx)(_e.Header,{className:"flex",children:(0,Mt.jsxs)(_e.Trigger,{ref:a,className:i("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,Mt.jsx)(Fn.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));lt.displayName=_e.Trigger.displayName;var mt=Wo.forwardRef(({className:e,children:o,...t},a)=>(0,Mt.jsx)(_e.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,Mt.jsx)("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));mt.displayName=_e.Content.displayName;var zn=u(require("react"),1),_n=require("@radix-ui/react-slot"),Bn=require("class-variance-authority");var we=require("react/jsx-runtime"),_c=({className:e})=>(0,we.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,we.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,we.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,we.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,we.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,we.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,we.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,we.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,we.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,we.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,we.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,we.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,we.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"})]}),wo=_c;var jt=require("react/jsx-runtime"),qe=(0,Bn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Ae=zn.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},m)=>{let c=a?_n.Slot:"button",f=i(qe({variant:o,size:t,className:e}),{"cursor-wait":r});return(0,jt.jsx)(jt.Fragment,{children:a?(0,jt.jsx)(c,{className:f,type:"button",disabled:n,ref:m,...s,children:s.children}):(0,jt.jsxs)(c,{className:f,type:"button",disabled:n,ref:m,...s,children:[r&&(0,jt.jsx)(wo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Ae.displayName="Button";var $o=u(require("react"),1),Vn=require("@heroicons/react/16/solid"),ne=u(require("@radix-ui/react-dialog"),1);var Ce=require("react/jsx-runtime"),ct=ne.Root,ya=ne.Trigger,Mr=ne.Portal,Na=ne.Close,wa=$o.forwardRef(({className:e,...o},t)=>(0,Ce.jsx)(ne.Overlay,{ref:t,className:i("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}));wa.displayName=ne.Overlay.displayName;var Xe=$o.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:n="auto",isFull:s=!1,children:m,...c},f)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},g={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},v={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},y=[d.base,d[r],g[a],v[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,Ce.jsxs)(Mr,{children:[(0,Ce.jsx)(wa,{}),(0,Ce.jsxs)(ne.Content,{ref:f,className:i(...y),...c,children:[m,!t&&(0,Ce.jsxs)(ne.Close,{className:i("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,Ce.jsx)(Vn.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Ce.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Xe.displayName=ne.Content.displayName;var Go=({className:e,...o})=>(0,Ce.jsx)("div",{className:i("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});Go.displayName="DialogHeader";var It=({className:e,isCondensed:o=!1,...t})=>(0,Ce.jsx)("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});It.displayName="DialogBody";var Ir=({className:e,isDivider:o=!0,...t})=>(0,Ce.jsx)("div",{className:i("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});Ir.displayName="DialogFooter";var jo=$o.forwardRef(({className:e,...o},t)=>(0,Ce.jsx)(ne.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));jo.displayName=ne.Title.displayName;var Ar=$o.forwardRef(({className:e,...o},t)=>(0,Ce.jsx)(ne.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));Ar.displayName=ne.Description.displayName;var On=require("qrcode.react"),b=require("react/jsx-runtime"),Bc=({img:e="",children:o,isQrForAll:t})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"qrcode__scan__container",children:(0,b.jsxs)("div",{className:"qrcode__scan",children:[(0,b.jsx)("div",{className:"qrcode__gradient",children:(0,b.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,b.jsx)("div",{className:"qrcode__border",children:(0,b.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,b.jsx)("div",{className:"qrcode__image p-4",children:e?(0,b.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),(0,b.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,b.jsxs)(b.Fragment,{children:[(0,b.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,b.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,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,b.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,b.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,b.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
- `})]}),Ut=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:m=!1,...c})=>(0,b.jsx)(ct,{...c,children:(0,b.jsx)(Xe,{className:i("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:(0,b.jsx)(It,{className:"p-0",children:(0,b.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,b.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||(0,b.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,b.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,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,b.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,b.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,b.jsx)("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,b.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,b.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,b.jsxs)("div",{className:"relative",children:[m&&(0,b.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,b.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,b.jsx)(Bc,{img:r,isQrForAll:m,children:n&&(0,b.jsx)(On.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 Gn=require("react");var Po=require("react"),Wn=u(require("ua-parser-js"),1),Vc=()=>(0,Wn.default)().device.type==="mobile",Oc=typeof window<"u"?Po.useLayoutEffect:Po.useEffect,$n=()=>{let[e,o]=(0,Po.useState)(!1);return Oc(()=>{o(Vc())},[]),e};var At=require("react/jsx-runtime"),Be=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[m,c]=(0,Gn.useState)(!1),f=$n(),d=!!a?.qrLink,g=()=>{let Y=d?a?.qrLink:e;return typeof Y=="string"?Y.trim():""},v=()=>{let Y=g();!Y&&typeof e!="function"||(typeof e=="function"?e():window.open(Y,o?"_blank":"_self"))},y=(Y,ee=0)=>{let U=document.querySelector(Y);if(!U)return;let R=U.getBoundingClientRect().top+window.scrollY-ee;window.scrollTo({top:R,behavior:"smooth"})},L=()=>{typeof e=="string"&&e.startsWith("#")?y(e,t):v()},V=()=>(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(Ae,{...s,className:r,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,At.jsx)(Ut,{...a,open:m,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return d?f?a?.isQrForAll?V():(0,At.jsx)(Ae,{...s,className:r,onClick:v,"data-name":"button-action-with-qr",children:n}):V():(0,At.jsx)(Ae,{...s,onClick:L,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var Co=u(require("react"),1),Pa=require("@radix-ui/react-icons"),jn=require("@radix-ui/react-slot");var Ve=require("react/jsx-runtime"),Lr=Co.forwardRef(({className:e,...o},t)=>(0,Ve.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Lr.displayName="Breadcrumb";var Er=Co.forwardRef(({className:e,...o},t)=>(0,Ve.jsx)("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Er.displayName="BreadcrumbList";var Hr=Co.forwardRef(({className:e,...o},t)=>(0,Ve.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Hr.displayName="BreadcrumbItem";var Fr=Co.forwardRef(({asChild:e,className:o,...t},a)=>(0,Ve.jsx)(e?jn.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Fr.displayName="BreadcrumbLink";var zr=Co.forwardRef(({className:e,...o},t)=>(0,Ve.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));zr.displayName="BreadcrumbPage";var _r=({children:e,className:o,...t})=>(0,Ve.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,Ve.jsx)(Pa.ChevronRightIcon,{className:"w-2 h-2"})});_r.displayName="BreadcrumbSeparator";var Br=({className:e,...o})=>(0,Ve.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Ve.jsx)(Pa.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Ve.jsx)("span",{className:"sr-only",children:"More"})]});Br.displayName="BreadcrumbElipssis";var Sa=u(require("html-react-parser"),1);var Uo=require("react");var Ro=require("react/jsx-runtime"),Vr=(0,Uo.createContext)({align:"center"}),Ca=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return(0,Ro.jsx)("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Ra=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,m={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:f}=(0,Uo.useContext)(Vr);return(0,Ro.jsx)(s,{className:i("max-w-4xl font-bold",f==="center"?"mx-auto":f==="right"?"ml-auto":"",m[t],c[o],a&&"truncate",r),children:n})},Ta=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},m={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:f}=(0,Uo.useContext)(Vr);return(0,Ro.jsx)("div",{className:i(f==="center"?"mx-auto max-w-2xl":f==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],m[o],c[t],a&&"truncate",r),children:n})},ka=({className:e,align:o="center",children:t})=>(0,Ro.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Ro.jsx)(Vr.Provider,{value:{align:o},children:t})});var dt=require("react/jsx-runtime"),oe=({idSection:e,className:o,background:t,children:a})=>(0,dt.jsx)("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,dt.jsx)("div",{className:"wrapper relative",children:a})}),w=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="h2",colorScheme:n="pink",sizeHeading:s="small",className:m})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",f=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,dt.jsxs)(ka,{align:e,className:m,children:[o&&(0,dt.jsx)(Ca,{color:c,children:o}),t&&(0,dt.jsx)(Ra,{tagHeading:r,color:f,size:s,children:(0,Sa.default)(t)}),a&&(0,dt.jsx)(Ta,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,Sa.default)(a)})]})},N=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,dt.jsx)("div",{className:i("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((r,n)=>{if(!r)return null;let{btnName:s,...m}=r;return(0,dt.jsx)(Be,{...m,className:i(o&&"w-full md:w-auto",r?.className),children:(0,Sa.default)(s)},n)})});var La=u(require("react"),1),es=require("@heroicons/react/20/solid"),ts=u(require("html-react-parser"),1);var Te=require("react"),Da=require("lucide-react");var Un=u(require("react"),1),Qn=require("@radix-ui/react-slot"),qn=require("class-variance-authority");var Xn=require("react/jsx-runtime"),no=(0,qn.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"}}),pe=Un.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let m=a?Qn.Slot:"button",c=i(no({variant:o,size:t,className:e}));return(0,Xn.jsx)(m,{className:c,disabled:r,ref:s,...n,children:n.children})});pe.displayName="IconButton";var Re=require("react/jsx-runtime"),Ma=(0,Te.createContext)(void 0),pt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=(0,Te.useRef)(null),[n,s]=(0,Te.useState)({left:!1,right:!1}),m=(0,Te.useCallback)(()=>{let f=r.current;if(f){let{scrollLeft:d,scrollWidth:g,clientWidth:v}=f;s({left:d>0,right:Math.ceil(d+v)<g})}},[]);(0,Te.useEffect)(()=>{let f=r.current;if(f)return m(),window.addEventListener("resize",m),f.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),f.removeEventListener("scroll",m)}},[m]);let c=f=>{let d=r.current;if(d){let{scrollLeft:g,clientWidth:v,scrollWidth:y}=d,L=v*.7*(f==="left"?-1:1),V=g+L;V<0?V=0:V>y-v&&(V=y-v),d.scrollTo({left:V,behavior:"smooth"})}};return(0,Re.jsx)(Ma.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Re.jsxs)("div",{className:i("relative w-full",t),children:[e&&(0,Re.jsxs)(Re.Fragment,{children:[n.left&&(0,Re.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,Re.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]})})},ft=({className:e,children:o})=>{let t=(0,Te.useContext)(Ma);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Re.jsx)("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},gt=({className:e,children:o,...t})=>{let a=(0,Te.useContext)(Ma);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Re.jsx)(pe,{className:i("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,Re.jsx)(Da.ChevronLeft,{className:"h-4 w-4"})}):null},ut=({className:e,children:o,...t})=>{let a=(0,Te.useContext)(Ma);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Re.jsx)(pe,{className:i("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,Re.jsx)(Da.ChevronRight,{className:"h-4 w-4"})}):null};var Ia=u(require("react"),1),Ye=u(require("@radix-ui/react-tabs"),1);var Aa=require("react/jsx-runtime"),vt=Ye.Root,Ze=Ia.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,Aa.jsx)(Ye.List,{ref:r,className:i("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}));Ze.displayName=Ye.List.displayName;var Ke=Ia.forwardRef(({className:e,...o},t)=>(0,Aa.jsx)(Ye.Trigger,{ref:t,className:i("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}));Ke.displayName=Ye.Trigger.displayName;var Je=Ia.forwardRef(({className:e,...o},t)=>(0,Aa.jsx)(Ye.Content,{ref:t,className:i("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}));Je.displayName=Ye.Content.displayName;var Yn=u(require("react"),1),Zn=require("@radix-ui/react-slot"),Kn=require("class-variance-authority");var Jn=require("react/jsx-runtime"),Or=(0,Kn.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"}}),be=Yn.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let m=a?Zn.Slot:"button",c=i(Or({variant:o,size:t,className:e}));return(0,Jn.jsx)(m,{className:c,disabled:r,ref:s,...n,children:n.children})});be.displayName="TextButton";var T=require("react/jsx-runtime"),Wc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,T.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,T.jsxs)("picture",{children:[(0,T.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,T.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,T.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,T.jsx)(be,{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,T.jsx)("div",{className:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,T.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(be,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,T.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,T.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Ea=(0,La.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(d,g,v)=>{d?.preventDefault(),d?.stopPropagation(),a?a(g):window.open(v,"_blank")},f=(d,g)=>(0,T.jsxs)("div",{children:[(0,T.jsx)("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((v,y)=>(0,T.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,T.jsx)("div",{onClick:L=>c(L,v?.id,v?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:(0,T.jsx)(Wc,{blog:v})},v?.id)},y))}),d?.isShowBtn&&(0,T.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,T.jsxs)(Be,{action:r?()=>r?.(g):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[(0,ts.default)(d.btnName||"Xem th\xEAm"),d?.isLoading?(0,T.jsx)(No,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&(0,T.jsx)(es.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||g);return(0,T.jsxs)(La.default.Fragment,{children:[e&&(0,T.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?(0,T.jsxs)(vt,{defaultValue:t[0]?.title,children:[(0,T.jsxs)(pt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,T.jsx)(ft,{className:"mb-6 text-center",children:(0,T.jsx)(Ze,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,g)=>(0,T.jsx)(Ke,{value:d.title,children:d.title},d.title+g))})}),(0,T.jsx)(gt,{}),(0,T.jsx)(ut,{})]}),t.map((d,g)=>(0,T.jsx)(Je,{value:d.title,children:f(d,g)},d.title+g))]}):t?.length===1&&t[0]&&f(t[0],0)]})});var Lt=u(require("react"),1),Fa=require("@heroicons/react/20/solid"),Wr=u(require("html-react-parser"),1);var Q=u(require("react"),1),Ha=require("@heroicons/react/20/solid"),os=u(require("embla-carousel-react"),1);var fe=require("react/jsx-runtime"),as=Q.createContext(null);function Qo(){let e=Q.useContext(as);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ke=Q.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},m)=>{let[c,f]=(0,os.default)({...o,axis:e==="horizontal"?"x":"y"},a),[d,g]=Q.useState(!1),[v,y]=Q.useState(!1),L=Q.useCallback(ee=>{ee&&(g(ee.canScrollPrev()),y(ee.canScrollNext()))},[]),V=Q.useCallback(()=>{f?.scrollPrev()},[f]),O=Q.useCallback(()=>{f?.scrollNext()},[f]),Y=Q.useCallback(ee=>{ee.key==="ArrowLeft"?(ee.preventDefault(),V()):ee.key==="ArrowRight"&&(ee.preventDefault(),O())},[V,O]);return Q.useEffect(()=>{!f||!t||t(f)},[f,t]),Q.useEffect(()=>{if(f)return L(f),f.on("reInit",L),f.on("select",L),()=>{f?.off("select",L)}},[f,L]),(0,fe.jsx)(as.Provider,{value:{carouselRef:c,api:f,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:V,scrollNext:O,canScrollPrev:d,canScrollNext:v},children:(0,fe.jsx)("div",{ref:m,onKeyDownCapture:Y,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});ke.displayName="Carousel";var Se=Q.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Qo();return(0,fe.jsx)("div",{ref:r,className:i(o,"overflow-hidden"),children:(0,fe.jsx)("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Se.displayName="CarouselContent";var De=Q.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Qo();return(0,fe.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});De.displayName="CarouselItem";var so=Q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:m}=Qo();return(0,fe.jsxs)(pe,{ref:r,variant:o,size:t,className:i("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,fe.jsx)(Ha.ChevronLeftIcon,{className:"w-6 h-6"}),(0,fe.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});so.displayName="CarouselPrevious";var lo=Q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:m}=Qo();return(0,fe.jsxs)(pe,{ref:r,variant:o,size:t,className:i("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,fe.jsx)(Ha.ChevronRightIcon,{className:"w-6 h-6"}),(0,fe.jsx)("span",{className:"sr-only",children:"Next slide"})]})});lo.displayName="CarouselNext";var qo=Q.forwardRef((e,o)=>{let{api:t}=Qo(),[,a]=Q.useState(!1),r=Q.useCallback(()=>a(m=>!m),[]);Q.useEffect(()=>{if(t)return t.on("select",r),t.on("reInit",r),()=>{t.off("select",r),t.off("reInit",r)}},[t,r]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?(0,fe.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(m,c)=>(0,fe.jsx)(pe,{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,fe.jsx)(fe.Fragment,{})});qo.displayName="CarouselDots";var P=require("react/jsx-runtime"),$c=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,P.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,P.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,P.jsx)("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&(0,P.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Wr.default)(e?.description??"")}),(0,P.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(be,{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,P.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,P.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Gc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:m,btnUrl:c="#",isNewTab:f,classNameItem:d}=e??{};return(0,Lt.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ke,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,P.jsx)(Se,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(g=>(0,P.jsx)(De,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,P.jsx)("div",{onClick:v=>r(v,g?.id,g?.url),className:i("group cursor-pointer",d),children:(0,P.jsx)($c,{blog:g})},g?.id)},g?.id))})}),s&&(0,P.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,P.jsxs)(Be,{action:c&&c,newTab:f,variant:"outline",children:[(0,Wr.default)(m||"Xem th\xEAm")," "]})})]})},jc=({carouselRef:e})=>(0,P.jsxs)(pe,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,P.jsx)(Fa.ChevronLeftIcon,{className:"h-6 w-6"}),(0,P.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),Uc=({carouselRef:e})=>(0,P.jsxs)(pe,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,P.jsx)(Fa.ChevronRightIcon,{className:"h-6 w-6"}),(0,P.jsx)("span",{className:"sr-only",children:"Next slide"})]}),$r=(0,Lt.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(f,d,g)=>{f?.preventDefault(),f?.stopPropagation(),t?t(d):window.open(g,"_blank")},[n,s]=(0,Lt.useState)(null),[,m]=(0,Lt.useState)(0),c=()=>n?(0,P.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,P.jsx)(jc,{carouselRef:n}),(0,P.jsx)(Uc,{carouselRef:n})]}):(0,P.jsx)(P.Fragment,{});return(0,P.jsxs)(Lt.default.Fragment,{children:[(0,P.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,P.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),(0,P.jsx)(c,{})]}),(0,P.jsx)(Gc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:m,handleOnClickItem:r})]})});var Et=require("react/jsx-runtime"),Qc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,Et.jsx)(Ea,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return(0,Et.jsx)($r,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,Et.jsx)(Ea,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},qc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,Et.jsx)(Et.Fragment,{children:Qc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),rs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,Et.jsx)(oe,{className:i("overflow-hidden",a),background:r,children:(0,Et.jsx)(qc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:m})});var _a=u(require("react"),1),Ba=require("date-fns/locale"),Va=require("lucide-react"),ss=u(require("lunisolar"),1),ls=require("react-day-picker");var is=u(require("react"),1),Xo=u(require("@radix-ui/react-checkbox"),1),ns=require("@heroicons/react/16/solid"),Gr=require("class-variance-authority");var za=require("react/jsx-runtime"),Xc=(0,Gr.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"}}),Yc=(0,Gr.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Yo=is.forwardRef(({className:e,size:o,...t},a)=>(0,za.jsx)(Xo.Root,{ref:a,className:i(Xc({size:o}),e),...t,children:(0,za.jsx)(Xo.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,za.jsx)(ns.CheckIcon,{className:i(Yc({size:o}))})})}));Yo.displayName=Xo.Root.displayName;var xe=require("react/jsx-runtime"),Zc=({date:e,cusContent:o})=>{let t=null;return t=(0,ss.default)(e).lunar,(0,xe.jsxs)(xe.Fragment,{children:[o?o(e):e.getDate(),t&&(0,xe.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Kc={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 Jc({isShow:e,setIsShow:o,lang:t}){let a=_a.useId();return(0,xe.jsx)("div",{className:"w-full p-3 pt-0",children:(0,xe.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,xe.jsx)(Yo,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,xe.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var ed=e=>e.getDay()===0||e.getDay()===6;function Zo({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[m,c]=_a.useState(!0);return(0,xe.jsx)(ls.DayPicker,{locale:r==="vi"?Ba.vi:Ba.enUS,showOutsideDays:t,className:i("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:i(qe({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:i("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",r==="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:i(qe({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:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:ed},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,xe.jsx)(Va.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,xe.jsx)(Va.ChevronRight,{className:"h-6 w-6"}),DayContent:f=>(0,xe.jsx)(Zc,{date:f.date,cusContent:n}),Months:({children:f})=>(0,xe.jsxs)("div",{className:"w-full",children:[(0,xe.jsx)("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:f}),a&&(0,xe.jsx)(Jc,{isShow:m,setIsShow:c,lang:r})]})},formatters:r==="vi"?Kc:{},...s})}Zo.displayName="Calendar";var Oa=require("@heroicons/react/16/solid"),Ko=require("date-fns"),cs=require("lucide-react");var ms=u(require("react"),1),Ht=u(require("@radix-ui/react-popover"),1);var jr=require("react/jsx-runtime"),To=Ht.Root,ko=Ht.Trigger,mo=ms.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,jr.jsx)(Ht.Portal,{children:(0,jr.jsx)(Ht.Content,{ref:r,align:o,sideOffset:t,className:i("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})}));mo.displayName=Ht.Content.displayName;var K=require("react/jsx-runtime"),ds=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:m,popoverProps:c,calendarProps:f,popoverContentProps:d})=>{let g=f?.selected||null;return(0,K.jsxs)("div",{children:[(0,K.jsxs)(To,{...c,children:[(0,K.jsx)(ko,{asChild:!0,children:(0,K.jsxs)(Ae,{variant:"secondary",className:i("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",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...m,children:[(0,K.jsx)("div",{className:"line-clamp-1 flex-1",children:g instanceof Date?(0,Ko.format)(g,s):g&&typeof g=="object"&&"from"in g&&"to"in g?(0,K.jsx)(K.Fragment,{children:g.from?g.to?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)("span",{className:"date-from",children:(0,Ko.format)(g.from,s)})," ",(0,K.jsx)("span",{className:"date-separator",children:"-"}),(0,K.jsx)("span",{className:"date-to",children:(0,Ko.format)(g.to,s)})]}):(0,Ko.format)(g.from,s):o}):o}),e&&(0,K.jsx)("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),(0,K.jsx)(cs.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,K.jsx)(mo,{className:"w-auto border-none !p-0",...d,children:(0,K.jsx)(Zo,{...f,defaultMonth:g&&typeof g=="object"&&"from"in g?g.from:g instanceof Date?g:void 0})})]}),a&&(0,K.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?(0,K.jsx)(Oa.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,K.jsx)(Oa.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,K.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var Jo=require("react"),Ga=require("@heroicons/react/16/solid"),vs=require("date-fns");var xt=u(require("react"),1),Ft=require("@heroicons/react/16/solid"),ps=require("@heroicons/react/24/outline"),D=u(require("@radix-ui/react-select"),1);var z=require("react/jsx-runtime"),So=xt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...m},c)=>(0,z.jsxs)("div",{ref:c,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&(0,z.jsx)("span",{className:i("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),(0,z.jsx)(D.Root,{disabled:s,...m,children:o}),a&&(0,z.jsxs)("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?(0,z.jsx)(Ft.XCircleIcon,{width:16,height:16}):(0,z.jsx)(ps.QuestionMarkCircleIcon,{width:16,height:16}),(0,z.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Do=D.Value,co=xt.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsxs)(D.Trigger,{ref:a,className:i("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,z.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,z.jsx)(D.Icon,{asChild:!0,children:(0,z.jsx)(Ft.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));co.displayName=D.Trigger.displayName;var Wa=xt.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,z.jsx)(Ft.ChevronUpIcon,{className:"h-5 w-5"})}));Wa.displayName=D.ScrollUpButton.displayName;var $a=xt.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:(0,z.jsx)(Ft.ChevronDownIcon,{className:"h-5 w-5"})}));$a.displayName=D.ScrollDownButton.displayName;var po=xt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,z.jsx)(D.Portal,{children:(0,z.jsxs)(D.Content,{ref:r,className:i("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,z.jsx)(Wa,{}),(0,z.jsx)(D.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,z.jsx)($a,{})]})}));po.displayName=D.Content.displayName;var Mo=xt.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsx)(D.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Ur=xt.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Ur.displayName=D.Label.displayName;var zt=xt.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsxs)(D.Item,{ref:a,className:i("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,z.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,z.jsx)(D.ItemIndicator,{children:(0,z.jsx)(Ft.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,z.jsx)(D.ItemText,{children:o})]})),Qr=xt.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));Qr.displayName=D.Separator.displayName;var fs=["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"],gs=["January","February","March","April","May","June","July","August","September","October","November","December"],qr=(e,o,t,a)=>{let r=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():r;return{daysInMonth:r,startDay:n,endDay:s}},us=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,m)=>n-m)};var H=require("react/jsx-runtime"),xs=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:m="dd/MM/yyyy",lang:c="vi",fromYear:f=1900,toYear:d=new Date().getFullYear(),disableUnselect:g=!1})=>{let[v,y]=(0,Jo.useState)(o??null),L=Math.min(f,d),V=Math.max(f,d),O=m==="MM/yyyy",Y=(R,ve)=>{if(ve===0){y(void 0),t?.(void 0);return}let te=v?.getFullYear()||new Date().getFullYear(),ba=v?.getMonth()??0,io=v?.getDate()??1;R==="month"&&ve!==null&&(ba=ve-1),R==="year"&&ve!==null&&(te=ve),O?io=1:R==="day"&&ve!==null&&(io=ve);let Mn=qr(te,ba+1).daysInMonth;io>Mn&&(io=1);let Vo=new Date(te,ba,io);(0,vs.isValid)(Vo)&&(y(Vo),t?.(Vo))},[ee,U]=(0,Jo.useState)(!1),ro=R=>{U(R)};return(0,Jo.useEffect)(()=>{y(o??null)},[o]),(0,H.jsxs)("div",{className:i("relative",s&&"cursor-no-drop"),children:[(0,H.jsxs)("div",{className:i("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",ee&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",v?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,H.jsx)("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,H.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!O&&(0,H.jsxs)(So,{value:v?v.getDate().toString().padStart(2,"0"):"",onValueChange:R=>Y("day",parseInt(R,10)),onOpenChange:ro,className:"w-[30%]",children:[(0,H.jsx)(co,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Do,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,H.jsx)(po,{onCloseAutoFocus:R=>R.preventDefault(),children:(0,H.jsxs)(Mo,{children:[!g&&(0,H.jsx)(zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:qr(v?.getFullYear()||new Date().getFullYear(),(v?.getMonth()??0)+1).daysInMonth},(R,ve)=>(ve+1).toString().padStart(2,"0")).map(R=>(0,H.jsx)(zt,{value:R,children:R},R))]})})]}),(0,H.jsxs)(So,{value:v?(v.getMonth()+1).toString():"",onValueChange:R=>Y("month",parseInt(R,10)),onOpenChange:ro,className:i(O?"w-1/2":"w-2/5"),children:[(0,H.jsx)(co,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Do,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,H.jsx)(po,{onCloseAutoFocus:R=>R.preventDefault(),children:(0,H.jsxs)(Mo,{children:[!g&&(0,H.jsx)(zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(R,ve)=>ve+1).map(R=>(0,H.jsx)(zt,{value:R.toString(),children:c==="vi"?fs[R-1]:gs[R-1]},R))]})})]}),(0,H.jsxs)(So,{value:v?v.getFullYear().toString():"",onValueChange:R=>Y("year",parseInt(R,10)),onOpenChange:ro,className:i(O?"w-1/2":"w-[30%]"),children:[(0,H.jsx)(co,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Do,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,H.jsx)(po,{onCloseAutoFocus:R=>R.preventDefault(),children:(0,H.jsxs)(Mo,{children:[!g&&(0,H.jsx)(zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),us(L,V).map(R=>(0,H.jsx)(zt,{value:R.toString(),children:R},R))]})})]})]})]}),r&&(0,H.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,H.jsx)(Ga.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,H.jsx)(Ga.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,H.jsx)("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};var fo=u(require("react"),1),Z=u(require("@radix-ui/react-alert-dialog"),1);var Oe=require("react/jsx-runtime"),bs=Z.Root,hs=Z.Trigger,Xr=Z.Portal,ja=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(Z.Overlay,{className:i("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}));ja.displayName=Z.Overlay.displayName;var Yr=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsxs)(Xr,{children:[(0,Oe.jsx)(ja,{}),(0,Oe.jsx)(Z.Content,{ref:t,className:i("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})]}));Yr.displayName=Z.Content.displayName;var Zr=({className:e,...o})=>(0,Oe.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Zr.displayName="AlertDialogHeader";var Kr=({className:e,...o})=>(0,Oe.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Kr.displayName="AlertDialogFooter";var Jr=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(Z.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Jr.displayName=Z.Title.displayName;var ei=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(Z.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));ei.displayName=Z.Description.displayName;var ti=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(Z.Action,{ref:t,className:i(qe({variant:"primary"}),"",e),...o}));ti.displayName=Z.Action.displayName;var oi=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(Z.Cancel,{ref:t,className:i(qe({variant:"secondary"}),e),...o}));oi.displayName=Z.Cancel.displayName;var Ua=require("react");var ea=require("react"),ai=u(require("html-react-parser"),1),ws=require("motion/react");var ys=u(require("@radix-ui/react-aspect-ratio"),1),G=ys.Root;var W=require("react/jsx-runtime"),td=({guideGroup:e,mockup:o})=>{let[t,a]=(0,ea.useState)(),[r,n]=(0,ea.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,ea.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,W.jsx)(W.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,W.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,W.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,W.jsxs)("div",{className:i("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,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,W.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,W.jsxs)(ke,{setApi:a,children:[(0,W.jsx)(Se,{className:"ml-0",children:e?.stepList.map((m,c)=>(0,W.jsx)(De,{className:"pl-0",children:(0,W.jsx)(G,{ratio:o==="small"?540/960:540/1168,children:(0,W.jsx)("img",{src:m.image,className:"size-full object-contain",alt:m.title})})},c))}),(0,W.jsx)(so,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,W.jsx)(lo,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,W.jsx)("div",{className:"flex flex-auto py-4 pl-12",children:(0,W.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((m,c)=>(0,W.jsxs)("li",{className:i("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",c+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[(0,W.jsx)("div",{className:i("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),(0,W.jsx)("div",{className:i(" text-sm font-medium",c+1===r?"text-pink-500":"text-gray-900"),children:(0,ai.default)(m.title)}),m.content&&(0,W.jsx)(ws.motion.div,{initial:"closed",animate:c+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,W.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,ai.default)(m.content)})})]},c))})})]})})},ri=td;var _t=require("react"),ii=require("@heroicons/react/20/solid"),Ns=u(require("embla-carousel-autoplay"),1),ta=u(require("html-react-parser"),1);var x=require("react/jsx-runtime"),od=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=(0,_t.useState)(0),[s,m]=(0,_t.useState)();return(0,_t.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,x.jsx)(ct,{open:e,onOpenChange:o,children:(0,x.jsxs)(Xe,{position:"bottom",height:"full",children:[(0,x.jsx)(Go,{children:(0,x.jsx)(jo,{className:"line-clamp-1",children:t?.title})}),(0,x.jsxs)(It,{className:"grid overflow-hidden p-0 ",children:[(0,x.jsx)(ke,{setApi:m,className:" grid overflow-hidden",children:(0,x.jsx)(Se,{className:"ml-0 h-full",children:t.stepList.map((c,f)=>(0,x.jsx)(De,{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:i("mx-auto",a==="small"?"w-56":"w-52"),children:(0,x.jsxs)("div",{className:i("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:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,x.jsx)(G,{ratio:a==="small"?540/960:540/1168,children:(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:(0,ta.default)(c.title)}),c?.content&&(0,x.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,ta.default)(c.content)})]})]})},f))})}),(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,f)=>(0,x.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${f+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(f)},f))})]})]})})},ad=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=(0,_t.useState)(!1),[n,s]=(0,_t.useState)(null),m=(0,_t.useRef)((0,Ns.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=f=>{s(e?.[f]||null),r(!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((f,d)=>(0,x.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(d),children:[(0,x.jsx)("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:(0,x.jsx)(G,{ratio:1,children:(0,x.jsx)("img",{src:f.avatar,className:"object-cover",alt:f.title})})}),(0,x.jsxs)("div",{className:i("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",d+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 ${d+1}`}),(0,x.jsx)("div",{className:"font-semibold",children:(0,ta.default)(f.title)}),f?.description&&(0,x.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,ta.default)(f.description)})]}),(0,x.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,x.jsx)(ii.ChevronRightIcon,{className:"h-6 w-6"})})]})]},d))}):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:i("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:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,x.jsx)(ke,{plugins:[m.current],children:(0,x.jsx)(Se,{className:"ml-0",children:e[0]?.stepList.map((f,d)=>(0,x.jsx)(De,{className:"pl-0",onClick:()=>c(0),children:(0,x.jsx)(G,{ratio:o==="small"?540/960:540/1168,children:(0,x.jsx)("img",{src:f.image,className:"size-full object-contain",alt:f.title})})},d))})})})]})})}),(0,x.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,x.jsxs)(be,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,x.jsx)(ii.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,x.jsx)(od,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},Ps=ad;var q=require("react/jsx-runtime"),Cs=({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,q.jsx)("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:(0,q.jsx)("path",{d:t.d,fill:"currentColor"})})},ni=(0,Ua.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:m,className:c}=o||{},[f,d]=(0,Ua.useState)(t?.[0]?.title||"");return(0,q.jsxs)(q.Fragment,{children:[e&&(0,q.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t&&t?.length>0&&(0,q.jsxs)(wo,{children:[(0,q.jsx)(it,{lessThan:"md",children:(0,q.jsx)(Ps,{dataGuide:t,mockup:r,isStep:n})}),(0,q.jsx)(it,{greaterThan:"sm",children:t?.length>1?(0,q.jsxs)(vt,{defaultValue:t[0]?.title,onValueChange:g=>d(g),children:[(0,q.jsxs)(pt,{showGradientOverlay:s,gradientOverlayColor:m,className:c,children:[(0,q.jsx)(ft,{className:"mb-6 text-center",children:(0,q.jsx)(Ze,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((g,v)=>{let y=v===t.length-1,L=f===g?.title||"";return(0,q.jsxs)(Ke,{value:g.title,className:i(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":"",L&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&v!==0&&(0,q.jsx)(Cs,{direction:"left",className:i("right-full top-0",L?"text-pink-500":"text-pink-100")}),g.title,n&&!y&&(0,q.jsx)(Cs,{direction:"right",className:i("left-full top-0",L?"text-pink-500":"text-pink-100")})]},g.title+v)})})}),(0,q.jsx)(gt,{}),(0,q.jsx)(ut,{})]}),t.map((g,v)=>(0,q.jsx)(Je,{value:g.title,children:(0,q.jsx)(ri,{guideGroup:g,mockup:r})},g.title+v))]}):t?.length===1&&t[0]&&(0,q.jsx)(ri,{guideGroup:t[0],mockup:r})})]}),a&&(0,q.jsx)(N,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var Qt=require("react/jsx-runtime"),rd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return(0,Qt.jsx)(ni,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return(0,Qt.jsx)(ni,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},id=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>(0,Qt.jsx)(Qt.Fragment,{children:rd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Rs=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:r,background:n,template:s=1,mockup:m="default",isStep:c=!1})=>(0,Qt.jsx)(oe,{className:i(r),background:n,children:(0,Qt.jsx)(id,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:m,isStep:c})});var Qa=require("lucide-react");var ge=require("react/jsx-runtime");function si({current:e,total:o,onChange:t}){let a=r=>(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(no({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,ge.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,ge.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(no({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ge.jsx)(Qa.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):(0,ge.jsxs)(ge.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(no({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,ge.jsx)("button",{className:i(no({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(no({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ge.jsx)(Qa.ChevronRight,{className:"h-4 w-4"})})})]})})}var Ts=require("react"),ks=require("@heroicons/react/24/outline"),Ss=require("@heroicons/react/24/solid");var bt=require("react/jsx-runtime"),Ds=(0,Ts.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:m=3,...c},f)=>(0,bt.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,bt.jsx)("span",{className:i("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,bt.jsx)("textarea",{disabled:e,ref:f,className:i("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:m,...c}),t&&(0,bt.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?(0,bt.jsx)(Ss.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,bt.jsx)(ks.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,bt.jsx)("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,bt.jsx)("style",{children:`
70
+ `})]}),Ut=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:m=!1,...c})=>(0,b.jsx)(ct,{...c,children:(0,b.jsx)(Xe,{className:i("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:(0,b.jsx)(It,{className:"p-0",children:(0,b.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,b.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||(0,b.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,b.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,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,b.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,b.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,b.jsx)("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,b.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,b.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,b.jsxs)("div",{className:"relative",children:[m&&(0,b.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,b.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,b.jsx)(Bc,{img:r,isQrForAll:m,children:n&&(0,b.jsx)(On.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 Gn=require("react");var Po=require("react"),Wn=u(require("ua-parser-js"),1),Vc=()=>(0,Wn.default)().device.type==="mobile",Oc=typeof window<"u"?Po.useLayoutEffect:Po.useEffect,$n=()=>{let[e,o]=(0,Po.useState)(!1);return Oc(()=>{o(Vc())},[]),e};var At=require("react/jsx-runtime"),Be=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[m,c]=(0,Gn.useState)(!1),f=$n(),d=!!a?.qrLink,g=()=>{let Y=d?a?.qrLink:e;return typeof Y=="string"?Y.trim():""},v=()=>{let Y=g();!Y&&typeof e!="function"||(typeof e=="function"?e():window.open(Y,o?"_blank":"_self"))},y=(Y,te=0)=>{let U=document.querySelector(Y);if(!U)return;let R=U.getBoundingClientRect().top+window.scrollY-te;window.scrollTo({top:R,behavior:"smooth"})},L=()=>{typeof e=="string"&&e.startsWith("#")?y(e,t):v()},V=()=>(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(Ae,{...s,className:r,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,At.jsx)(Ut,{...a,open:m,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return d?f?a?.isQrForAll?V():(0,At.jsx)(Ae,{...s,className:r,onClick:v,"data-name":"button-action-with-qr",children:n}):V():(0,At.jsx)(Ae,{...s,onClick:L,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var Co=u(require("react"),1),Pa=require("@radix-ui/react-icons"),jn=require("@radix-ui/react-slot");var Ve=require("react/jsx-runtime"),Lr=Co.forwardRef(({className:e,...o},t)=>(0,Ve.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Lr.displayName="Breadcrumb";var Er=Co.forwardRef(({className:e,...o},t)=>(0,Ve.jsx)("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Er.displayName="BreadcrumbList";var Hr=Co.forwardRef(({className:e,...o},t)=>(0,Ve.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Hr.displayName="BreadcrumbItem";var Fr=Co.forwardRef(({asChild:e,className:o,...t},a)=>(0,Ve.jsx)(e?jn.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Fr.displayName="BreadcrumbLink";var zr=Co.forwardRef(({className:e,...o},t)=>(0,Ve.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));zr.displayName="BreadcrumbPage";var _r=({children:e,className:o,...t})=>(0,Ve.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,Ve.jsx)(Pa.ChevronRightIcon,{className:"w-2 h-2"})});_r.displayName="BreadcrumbSeparator";var Br=({className:e,...o})=>(0,Ve.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Ve.jsx)(Pa.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Ve.jsx)("span",{className:"sr-only",children:"More"})]});Br.displayName="BreadcrumbElipssis";var Sa=u(require("html-react-parser"),1);var Uo=require("react");var Ro=require("react/jsx-runtime"),Vr=(0,Uo.createContext)({align:"center"}),Ca=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return(0,Ro.jsx)("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Ra=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,m={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:f}=(0,Uo.useContext)(Vr);return(0,Ro.jsx)(s,{className:i("max-w-4xl font-bold",f==="center"?"mx-auto":f==="right"?"ml-auto":"",m[t],c[o],a&&"truncate",r),children:n})},Ta=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},m={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:f}=(0,Uo.useContext)(Vr);return(0,Ro.jsx)("div",{className:i(f==="center"?"mx-auto max-w-2xl":f==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],m[o],c[t],a&&"truncate",r),children:n})},ka=({className:e,align:o="center",children:t})=>(0,Ro.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Ro.jsx)(Vr.Provider,{value:{align:o},children:t})});var dt=require("react/jsx-runtime"),ae=({idSection:e,className:o,background:t,children:a})=>(0,dt.jsx)("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,dt.jsx)("div",{className:"wrapper relative",children:a})}),N=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="h2",colorScheme:n="pink",sizeHeading:s="small",className:m})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",f=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,dt.jsxs)(ka,{align:e,className:m,children:[o&&(0,dt.jsx)(Ca,{color:c,children:o}),t&&(0,dt.jsx)(Ra,{tagHeading:r,color:f,size:s,children:(0,Sa.default)(t)}),a&&(0,dt.jsx)(Ta,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,Sa.default)(a)})]})},w=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,dt.jsx)("div",{className:i("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((r,n)=>{if(!r)return null;let{btnName:s,...m}=r;return(0,dt.jsx)(Be,{...m,className:i(o&&"w-full md:w-auto",r?.className),children:(0,Sa.default)(s)},n)})});var La=u(require("react"),1),es=require("@heroicons/react/20/solid"),ts=u(require("html-react-parser"),1);var Te=require("react"),Da=require("lucide-react");var Un=u(require("react"),1),Qn=require("@radix-ui/react-slot"),qn=require("class-variance-authority");var Xn=require("react/jsx-runtime"),no=(0,qn.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"}}),pe=Un.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let m=a?Qn.Slot:"button",c=i(no({variant:o,size:t,className:e}));return(0,Xn.jsx)(m,{className:c,disabled:r,ref:s,...n,children:n.children})});pe.displayName="IconButton";var Re=require("react/jsx-runtime"),Ma=(0,Te.createContext)(void 0),pt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=(0,Te.useRef)(null),[n,s]=(0,Te.useState)({left:!1,right:!1}),m=(0,Te.useCallback)(()=>{let f=r.current;if(f){let{scrollLeft:d,scrollWidth:g,clientWidth:v}=f;s({left:d>0,right:Math.ceil(d+v)<g})}},[]);(0,Te.useEffect)(()=>{let f=r.current;if(f)return m(),window.addEventListener("resize",m),f.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),f.removeEventListener("scroll",m)}},[m]);let c=f=>{let d=r.current;if(d){let{scrollLeft:g,clientWidth:v,scrollWidth:y}=d,L=v*.7*(f==="left"?-1:1),V=g+L;V<0?V=0:V>y-v&&(V=y-v),d.scrollTo({left:V,behavior:"smooth"})}};return(0,Re.jsx)(Ma.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Re.jsxs)("div",{className:i("relative w-full",t),children:[e&&(0,Re.jsxs)(Re.Fragment,{children:[n.left&&(0,Re.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,Re.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]})})},ft=({className:e,children:o})=>{let t=(0,Te.useContext)(Ma);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Re.jsx)("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},gt=({className:e,children:o,...t})=>{let a=(0,Te.useContext)(Ma);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Re.jsx)(pe,{className:i("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,Re.jsx)(Da.ChevronLeft,{className:"h-4 w-4"})}):null},ut=({className:e,children:o,...t})=>{let a=(0,Te.useContext)(Ma);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Re.jsx)(pe,{className:i("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,Re.jsx)(Da.ChevronRight,{className:"h-4 w-4"})}):null};var Ia=u(require("react"),1),Ye=u(require("@radix-ui/react-tabs"),1);var Aa=require("react/jsx-runtime"),vt=Ye.Root,Ze=Ia.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,Aa.jsx)(Ye.List,{ref:r,className:i("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}));Ze.displayName=Ye.List.displayName;var Ke=Ia.forwardRef(({className:e,...o},t)=>(0,Aa.jsx)(Ye.Trigger,{ref:t,className:i("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}));Ke.displayName=Ye.Trigger.displayName;var Je=Ia.forwardRef(({className:e,...o},t)=>(0,Aa.jsx)(Ye.Content,{ref:t,className:i("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}));Je.displayName=Ye.Content.displayName;var Yn=u(require("react"),1),Zn=require("@radix-ui/react-slot"),Kn=require("class-variance-authority");var Jn=require("react/jsx-runtime"),Or=(0,Kn.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"}}),be=Yn.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let m=a?Zn.Slot:"button",c=i(Or({variant:o,size:t,className:e}));return(0,Jn.jsx)(m,{className:c,disabled:r,ref:s,...n,children:n.children})});be.displayName="TextButton";var T=require("react/jsx-runtime"),Wc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,T.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,T.jsxs)("picture",{children:[(0,T.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,T.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,T.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,T.jsx)(be,{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,T.jsx)("div",{className:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,T.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(be,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,T.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,T.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Ea=(0,La.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(d,g,v)=>{d?.preventDefault(),d?.stopPropagation(),a?a(g):window.open(v,"_blank")},f=(d,g)=>(0,T.jsxs)("div",{children:[(0,T.jsx)("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((v,y)=>(0,T.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,T.jsx)("div",{onClick:L=>c(L,v?.id,v?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:(0,T.jsx)(Wc,{blog:v})},v?.id)},y))}),d?.isShowBtn&&(0,T.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,T.jsxs)(Be,{action:r?()=>r?.(g):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[(0,ts.default)(d.btnName||"Xem th\xEAm"),d?.isLoading?(0,T.jsx)(wo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&(0,T.jsx)(es.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||g);return(0,T.jsxs)(La.default.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:i(e?.className)}),t?.length>1?(0,T.jsxs)(vt,{defaultValue:t[0]?.title,children:[(0,T.jsxs)(pt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,T.jsx)(ft,{className:"mb-6 text-center",children:(0,T.jsx)(Ze,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,g)=>(0,T.jsx)(Ke,{value:d.title,children:d.title},d.title+g))})}),(0,T.jsx)(gt,{}),(0,T.jsx)(ut,{})]}),t.map((d,g)=>(0,T.jsx)(Je,{value:d.title,children:f(d,g)},d.title+g))]}):t?.length===1&&t[0]&&f(t[0],0)]})});var Lt=u(require("react"),1),Fa=require("@heroicons/react/20/solid"),Wr=u(require("html-react-parser"),1);var Q=u(require("react"),1),Ha=require("@heroicons/react/20/solid"),os=u(require("embla-carousel-react"),1);var fe=require("react/jsx-runtime"),as=Q.createContext(null);function Qo(){let e=Q.useContext(as);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ke=Q.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},m)=>{let[c,f]=(0,os.default)({...o,axis:e==="horizontal"?"x":"y"},a),[d,g]=Q.useState(!1),[v,y]=Q.useState(!1),L=Q.useCallback(te=>{te&&(g(te.canScrollPrev()),y(te.canScrollNext()))},[]),V=Q.useCallback(()=>{f?.scrollPrev()},[f]),O=Q.useCallback(()=>{f?.scrollNext()},[f]),Y=Q.useCallback(te=>{te.key==="ArrowLeft"?(te.preventDefault(),V()):te.key==="ArrowRight"&&(te.preventDefault(),O())},[V,O]);return Q.useEffect(()=>{!f||!t||t(f)},[f,t]),Q.useEffect(()=>{if(f)return L(f),f.on("reInit",L),f.on("select",L),()=>{f?.off("select",L)}},[f,L]),(0,fe.jsx)(as.Provider,{value:{carouselRef:c,api:f,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:V,scrollNext:O,canScrollPrev:d,canScrollNext:v},children:(0,fe.jsx)("div",{ref:m,onKeyDownCapture:Y,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});ke.displayName="Carousel";var Se=Q.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Qo();return(0,fe.jsx)("div",{ref:r,className:i(o,"overflow-hidden"),children:(0,fe.jsx)("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Se.displayName="CarouselContent";var De=Q.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Qo();return(0,fe.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});De.displayName="CarouselItem";var so=Q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:m}=Qo();return(0,fe.jsxs)(pe,{ref:r,variant:o,size:t,className:i("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,fe.jsx)(Ha.ChevronLeftIcon,{className:"w-6 h-6"}),(0,fe.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});so.displayName="CarouselPrevious";var lo=Q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:m}=Qo();return(0,fe.jsxs)(pe,{ref:r,variant:o,size:t,className:i("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,fe.jsx)(Ha.ChevronRightIcon,{className:"w-6 h-6"}),(0,fe.jsx)("span",{className:"sr-only",children:"Next slide"})]})});lo.displayName="CarouselNext";var qo=Q.forwardRef((e,o)=>{let{api:t}=Qo(),[,a]=Q.useState(!1),r=Q.useCallback(()=>a(m=>!m),[]);Q.useEffect(()=>{if(t)return t.on("select",r),t.on("reInit",r),()=>{t.off("select",r),t.off("reInit",r)}},[t,r]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?(0,fe.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(m,c)=>(0,fe.jsx)(pe,{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,fe.jsx)(fe.Fragment,{})});qo.displayName="CarouselDots";var P=require("react/jsx-runtime"),$c=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,P.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,P.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,P.jsx)("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&(0,P.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Wr.default)(e?.description??"")}),(0,P.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(be,{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,P.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,P.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Gc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:m,btnUrl:c="#",isNewTab:f,classNameItem:d}=e??{};return(0,Lt.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ke,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,P.jsx)(Se,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(g=>(0,P.jsx)(De,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,P.jsx)("div",{onClick:v=>r(v,g?.id,g?.url),className:i("group cursor-pointer",d),children:(0,P.jsx)($c,{blog:g})},g?.id)},g?.id))})}),s&&(0,P.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,P.jsxs)(Be,{action:c&&c,newTab:f,variant:"outline",children:[(0,Wr.default)(m||"Xem th\xEAm")," "]})})]})},jc=({carouselRef:e})=>(0,P.jsxs)(pe,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,P.jsx)(Fa.ChevronLeftIcon,{className:"h-6 w-6"}),(0,P.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),Uc=({carouselRef:e})=>(0,P.jsxs)(pe,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,P.jsx)(Fa.ChevronRightIcon,{className:"h-6 w-6"}),(0,P.jsx)("span",{className:"sr-only",children:"Next slide"})]}),$r=(0,Lt.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(f,d,g)=>{f?.preventDefault(),f?.stopPropagation(),t?t(d):window.open(g,"_blank")},[n,s]=(0,Lt.useState)(null),[,m]=(0,Lt.useState)(0),c=()=>n?(0,P.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,P.jsx)(jc,{carouselRef:n}),(0,P.jsx)(Uc,{carouselRef:n})]}):(0,P.jsx)(P.Fragment,{});return(0,P.jsxs)(Lt.default.Fragment,{children:[(0,P.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,P.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),(0,P.jsx)(c,{})]}),(0,P.jsx)(Gc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:m,handleOnClickItem:r})]})});var Et=require("react/jsx-runtime"),Qc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,Et.jsx)(Ea,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return(0,Et.jsx)($r,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,Et.jsx)(Ea,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},qc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,Et.jsx)(Et.Fragment,{children:Qc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),rs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,Et.jsx)(ae,{className:i("overflow-hidden",a),background:r,children:(0,Et.jsx)(qc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:m})});var _a=u(require("react"),1),Ba=require("date-fns/locale"),Va=require("lucide-react"),ss=u(require("lunisolar"),1),ls=require("react-day-picker");var is=u(require("react"),1),Xo=u(require("@radix-ui/react-checkbox"),1),ns=require("@heroicons/react/16/solid"),Gr=require("class-variance-authority");var za=require("react/jsx-runtime"),Xc=(0,Gr.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"}}),Yc=(0,Gr.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Yo=is.forwardRef(({className:e,size:o,...t},a)=>(0,za.jsx)(Xo.Root,{ref:a,className:i(Xc({size:o}),e),...t,children:(0,za.jsx)(Xo.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,za.jsx)(ns.CheckIcon,{className:i(Yc({size:o}))})})}));Yo.displayName=Xo.Root.displayName;var xe=require("react/jsx-runtime"),Zc=({date:e,cusContent:o})=>{let t=null;return t=(0,ss.default)(e).lunar,(0,xe.jsxs)(xe.Fragment,{children:[o?o(e):e.getDate(),t&&(0,xe.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Kc={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 Jc({isShow:e,setIsShow:o,lang:t}){let a=_a.useId();return(0,xe.jsx)("div",{className:"w-full p-3 pt-0",children:(0,xe.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,xe.jsx)(Yo,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,xe.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var ed=e=>e.getDay()===0||e.getDay()===6;function Zo({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[m,c]=_a.useState(!0);return(0,xe.jsx)(ls.DayPicker,{locale:r==="vi"?Ba.vi:Ba.enUS,showOutsideDays:t,className:i("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:i(qe({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:i("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",r==="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:i(qe({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:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:ed},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,xe.jsx)(Va.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,xe.jsx)(Va.ChevronRight,{className:"h-6 w-6"}),DayContent:f=>(0,xe.jsx)(Zc,{date:f.date,cusContent:n}),Months:({children:f})=>(0,xe.jsxs)("div",{className:"w-full",children:[(0,xe.jsx)("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:f}),a&&(0,xe.jsx)(Jc,{isShow:m,setIsShow:c,lang:r})]})},formatters:r==="vi"?Kc:{},...s})}Zo.displayName="Calendar";var Oa=require("@heroicons/react/16/solid"),Ko=require("date-fns"),cs=require("lucide-react");var ms=u(require("react"),1),Ht=u(require("@radix-ui/react-popover"),1);var jr=require("react/jsx-runtime"),To=Ht.Root,ko=Ht.Trigger,mo=ms.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,jr.jsx)(Ht.Portal,{children:(0,jr.jsx)(Ht.Content,{ref:r,align:o,sideOffset:t,className:i("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})}));mo.displayName=Ht.Content.displayName;var K=require("react/jsx-runtime"),ds=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:m,popoverProps:c,calendarProps:f,popoverContentProps:d})=>{let g=f?.selected||null;return(0,K.jsxs)("div",{children:[(0,K.jsxs)(To,{...c,children:[(0,K.jsx)(ko,{asChild:!0,children:(0,K.jsxs)(Ae,{variant:"secondary",className:i("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",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...m,children:[(0,K.jsx)("div",{className:"line-clamp-1 flex-1",children:g instanceof Date?(0,Ko.format)(g,s):g&&typeof g=="object"&&"from"in g&&"to"in g?(0,K.jsx)(K.Fragment,{children:g.from?g.to?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)("span",{className:"date-from",children:(0,Ko.format)(g.from,s)})," ",(0,K.jsx)("span",{className:"date-separator",children:"-"}),(0,K.jsx)("span",{className:"date-to",children:(0,Ko.format)(g.to,s)})]}):(0,Ko.format)(g.from,s):o}):o}),e&&(0,K.jsx)("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),(0,K.jsx)(cs.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,K.jsx)(mo,{className:"w-auto border-none !p-0",...d,children:(0,K.jsx)(Zo,{...f,defaultMonth:g&&typeof g=="object"&&"from"in g?g.from:g instanceof Date?g:void 0})})]}),a&&(0,K.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?(0,K.jsx)(Oa.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,K.jsx)(Oa.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,K.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var Jo=require("react"),Ga=require("@heroicons/react/16/solid"),vs=require("date-fns");var xt=u(require("react"),1),Ft=require("@heroicons/react/16/solid"),ps=require("@heroicons/react/24/outline"),D=u(require("@radix-ui/react-select"),1);var z=require("react/jsx-runtime"),So=xt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...m},c)=>(0,z.jsxs)("div",{ref:c,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&(0,z.jsx)("span",{className:i("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),(0,z.jsx)(D.Root,{disabled:s,...m,children:o}),a&&(0,z.jsxs)("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?(0,z.jsx)(Ft.XCircleIcon,{width:16,height:16}):(0,z.jsx)(ps.QuestionMarkCircleIcon,{width:16,height:16}),(0,z.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Do=D.Value,co=xt.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsxs)(D.Trigger,{ref:a,className:i("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,z.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,z.jsx)(D.Icon,{asChild:!0,children:(0,z.jsx)(Ft.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));co.displayName=D.Trigger.displayName;var Wa=xt.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,z.jsx)(Ft.ChevronUpIcon,{className:"h-5 w-5"})}));Wa.displayName=D.ScrollUpButton.displayName;var $a=xt.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:(0,z.jsx)(Ft.ChevronDownIcon,{className:"h-5 w-5"})}));$a.displayName=D.ScrollDownButton.displayName;var po=xt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,z.jsx)(D.Portal,{children:(0,z.jsxs)(D.Content,{ref:r,className:i("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,z.jsx)(Wa,{}),(0,z.jsx)(D.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,z.jsx)($a,{})]})}));po.displayName=D.Content.displayName;var Mo=xt.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsx)(D.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Ur=xt.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Ur.displayName=D.Label.displayName;var zt=xt.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsxs)(D.Item,{ref:a,className:i("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,z.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,z.jsx)(D.ItemIndicator,{children:(0,z.jsx)(Ft.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,z.jsx)(D.ItemText,{children:o})]})),Qr=xt.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));Qr.displayName=D.Separator.displayName;var fs=["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"],gs=["January","February","March","April","May","June","July","August","September","October","November","December"],qr=(e,o,t,a)=>{let r=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():r;return{daysInMonth:r,startDay:n,endDay:s}},us=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,m)=>n-m)};var H=require("react/jsx-runtime"),xs=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:m="dd/MM/yyyy",lang:c="vi",fromYear:f=1900,toYear:d=new Date().getFullYear(),disableUnselect:g=!1})=>{let[v,y]=(0,Jo.useState)(o??null),L=Math.min(f,d),V=Math.max(f,d),O=m==="MM/yyyy",Y=(R,ve)=>{if(ve===0){y(void 0),t?.(void 0);return}let oe=v?.getFullYear()||new Date().getFullYear(),ba=v?.getMonth()??0,io=v?.getDate()??1;R==="month"&&ve!==null&&(ba=ve-1),R==="year"&&ve!==null&&(oe=ve),O?io=1:R==="day"&&ve!==null&&(io=ve);let Mn=qr(oe,ba+1).daysInMonth;io>Mn&&(io=1);let Vo=new Date(oe,ba,io);(0,vs.isValid)(Vo)&&(y(Vo),t?.(Vo))},[te,U]=(0,Jo.useState)(!1),ro=R=>{U(R)};return(0,Jo.useEffect)(()=>{y(o??null)},[o]),(0,H.jsxs)("div",{className:i("relative",s&&"cursor-no-drop"),children:[(0,H.jsxs)("div",{className:i("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",te&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",v?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,H.jsx)("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,H.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!O&&(0,H.jsxs)(So,{value:v?v.getDate().toString().padStart(2,"0"):"",onValueChange:R=>Y("day",parseInt(R,10)),onOpenChange:ro,className:"w-[30%]",children:[(0,H.jsx)(co,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Do,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,H.jsx)(po,{onCloseAutoFocus:R=>R.preventDefault(),children:(0,H.jsxs)(Mo,{children:[!g&&(0,H.jsx)(zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:qr(v?.getFullYear()||new Date().getFullYear(),(v?.getMonth()??0)+1).daysInMonth},(R,ve)=>(ve+1).toString().padStart(2,"0")).map(R=>(0,H.jsx)(zt,{value:R,children:R},R))]})})]}),(0,H.jsxs)(So,{value:v?(v.getMonth()+1).toString():"",onValueChange:R=>Y("month",parseInt(R,10)),onOpenChange:ro,className:i(O?"w-1/2":"w-2/5"),children:[(0,H.jsx)(co,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Do,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,H.jsx)(po,{onCloseAutoFocus:R=>R.preventDefault(),children:(0,H.jsxs)(Mo,{children:[!g&&(0,H.jsx)(zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(R,ve)=>ve+1).map(R=>(0,H.jsx)(zt,{value:R.toString(),children:c==="vi"?fs[R-1]:gs[R-1]},R))]})})]}),(0,H.jsxs)(So,{value:v?v.getFullYear().toString():"",onValueChange:R=>Y("year",parseInt(R,10)),onOpenChange:ro,className:i(O?"w-1/2":"w-[30%]"),children:[(0,H.jsx)(co,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Do,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,H.jsx)(po,{onCloseAutoFocus:R=>R.preventDefault(),children:(0,H.jsxs)(Mo,{children:[!g&&(0,H.jsx)(zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),us(L,V).map(R=>(0,H.jsx)(zt,{value:R.toString(),children:R},R))]})})]})]})]}),r&&(0,H.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,H.jsx)(Ga.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,H.jsx)(Ga.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,H.jsx)("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};var fo=u(require("react"),1),Z=u(require("@radix-ui/react-alert-dialog"),1);var Oe=require("react/jsx-runtime"),bs=Z.Root,hs=Z.Trigger,Xr=Z.Portal,ja=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(Z.Overlay,{className:i("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}));ja.displayName=Z.Overlay.displayName;var Yr=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsxs)(Xr,{children:[(0,Oe.jsx)(ja,{}),(0,Oe.jsx)(Z.Content,{ref:t,className:i("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})]}));Yr.displayName=Z.Content.displayName;var Zr=({className:e,...o})=>(0,Oe.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Zr.displayName="AlertDialogHeader";var Kr=({className:e,...o})=>(0,Oe.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Kr.displayName="AlertDialogFooter";var Jr=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(Z.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Jr.displayName=Z.Title.displayName;var ei=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(Z.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));ei.displayName=Z.Description.displayName;var ti=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(Z.Action,{ref:t,className:i(qe({variant:"primary"}),"",e),...o}));ti.displayName=Z.Action.displayName;var oi=fo.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(Z.Cancel,{ref:t,className:i(qe({variant:"secondary"}),e),...o}));oi.displayName=Z.Cancel.displayName;var Ua=require("react");var ea=require("react"),ai=u(require("html-react-parser"),1),Ns=require("motion/react");var ys=u(require("@radix-ui/react-aspect-ratio"),1),G=ys.Root;var W=require("react/jsx-runtime"),td=({guideGroup:e,mockup:o})=>{let[t,a]=(0,ea.useState)(),[r,n]=(0,ea.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,ea.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,W.jsx)(W.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,W.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,W.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,W.jsxs)("div",{className:i("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,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,W.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,W.jsxs)(ke,{setApi:a,children:[(0,W.jsx)(Se,{className:"ml-0",children:e?.stepList.map((m,c)=>(0,W.jsx)(De,{className:"pl-0",children:(0,W.jsx)(G,{ratio:o==="small"?540/960:540/1168,children:(0,W.jsx)("img",{src:m.image,className:"size-full object-contain",alt:m.title})})},c))}),(0,W.jsx)(so,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,W.jsx)(lo,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,W.jsx)("div",{className:"flex flex-auto py-4 pl-12",children:(0,W.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((m,c)=>(0,W.jsxs)("li",{className:i("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",c+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[(0,W.jsx)("div",{className:i("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),(0,W.jsx)("div",{className:i(" text-sm font-medium",c+1===r?"text-pink-500":"text-gray-900"),children:(0,ai.default)(m.title)}),m.content&&(0,W.jsx)(Ns.motion.div,{initial:"closed",animate:c+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,W.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,ai.default)(m.content)})})]},c))})})]})})},ri=td;var _t=require("react"),ii=require("@heroicons/react/20/solid"),ws=u(require("embla-carousel-autoplay"),1),ta=u(require("html-react-parser"),1);var x=require("react/jsx-runtime"),od=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=(0,_t.useState)(0),[s,m]=(0,_t.useState)();return(0,_t.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,x.jsx)(ct,{open:e,onOpenChange:o,children:(0,x.jsxs)(Xe,{position:"bottom",height:"full",children:[(0,x.jsx)(Go,{children:(0,x.jsx)(jo,{className:"line-clamp-1",children:t?.title})}),(0,x.jsxs)(It,{className:"grid overflow-hidden p-0 ",children:[(0,x.jsx)(ke,{setApi:m,className:" grid overflow-hidden",children:(0,x.jsx)(Se,{className:"ml-0 h-full",children:t.stepList.map((c,f)=>(0,x.jsx)(De,{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:i("mx-auto",a==="small"?"w-56":"w-52"),children:(0,x.jsxs)("div",{className:i("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:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,x.jsx)(G,{ratio:a==="small"?540/960:540/1168,children:(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:(0,ta.default)(c.title)}),c?.content&&(0,x.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,ta.default)(c.content)})]})]})},f))})}),(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,f)=>(0,x.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${f+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(f)},f))})]})]})})},ad=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=(0,_t.useState)(!1),[n,s]=(0,_t.useState)(null),m=(0,_t.useRef)((0,ws.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=f=>{s(e?.[f]||null),r(!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((f,d)=>(0,x.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(d),children:[(0,x.jsx)("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:(0,x.jsx)(G,{ratio:1,children:(0,x.jsx)("img",{src:f.avatar,className:"object-cover",alt:f.title})})}),(0,x.jsxs)("div",{className:i("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",d+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 ${d+1}`}),(0,x.jsx)("div",{className:"font-semibold",children:(0,ta.default)(f.title)}),f?.description&&(0,x.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,ta.default)(f.description)})]}),(0,x.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,x.jsx)(ii.ChevronRightIcon,{className:"h-6 w-6"})})]})]},d))}):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:i("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:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,x.jsx)(ke,{plugins:[m.current],children:(0,x.jsx)(Se,{className:"ml-0",children:e[0]?.stepList.map((f,d)=>(0,x.jsx)(De,{className:"pl-0",onClick:()=>c(0),children:(0,x.jsx)(G,{ratio:o==="small"?540/960:540/1168,children:(0,x.jsx)("img",{src:f.image,className:"size-full object-contain",alt:f.title})})},d))})})})]})})}),(0,x.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,x.jsxs)(be,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,x.jsx)(ii.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,x.jsx)(od,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},Ps=ad;var q=require("react/jsx-runtime"),Cs=({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,q.jsx)("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:(0,q.jsx)("path",{d:t.d,fill:"currentColor"})})},ni=(0,Ua.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:m,className:c}=o||{},[f,d]=(0,Ua.useState)(t?.[0]?.title||"");return(0,q.jsxs)(q.Fragment,{children:[e&&(0,q.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t&&t?.length>0&&(0,q.jsxs)(No,{children:[(0,q.jsx)(it,{lessThan:"md",children:(0,q.jsx)(Ps,{dataGuide:t,mockup:r,isStep:n})}),(0,q.jsx)(it,{greaterThan:"sm",children:t?.length>1?(0,q.jsxs)(vt,{defaultValue:t[0]?.title,onValueChange:g=>d(g),children:[(0,q.jsxs)(pt,{showGradientOverlay:s,gradientOverlayColor:m,className:c,children:[(0,q.jsx)(ft,{className:"mb-6 text-center",children:(0,q.jsx)(Ze,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((g,v)=>{let y=v===t.length-1,L=f===g?.title||"";return(0,q.jsxs)(Ke,{value:g.title,className:i(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":"",L&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&v!==0&&(0,q.jsx)(Cs,{direction:"left",className:i("right-full top-0",L?"text-pink-500":"text-pink-100")}),g.title,n&&!y&&(0,q.jsx)(Cs,{direction:"right",className:i("left-full top-0",L?"text-pink-500":"text-pink-100")})]},g.title+v)})})}),(0,q.jsx)(gt,{}),(0,q.jsx)(ut,{})]}),t.map((g,v)=>(0,q.jsx)(Je,{value:g.title,children:(0,q.jsx)(ri,{guideGroup:g,mockup:r})},g.title+v))]}):t?.length===1&&t[0]&&(0,q.jsx)(ri,{guideGroup:t[0],mockup:r})})]}),a&&(0,q.jsx)(w,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var Qt=require("react/jsx-runtime"),rd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return(0,Qt.jsx)(ni,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return(0,Qt.jsx)(ni,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},id=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>(0,Qt.jsx)(Qt.Fragment,{children:rd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Rs=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:r,background:n,template:s=1,mockup:m="default",isStep:c=!1})=>(0,Qt.jsx)(ae,{className:i(r),background:n,children:(0,Qt.jsx)(id,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:m,isStep:c})});var Qa=require("lucide-react");var ge=require("react/jsx-runtime");function si({current:e,total:o,onChange:t}){let a=r=>(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(no({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,ge.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,ge.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(no({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ge.jsx)(Qa.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):(0,ge.jsxs)(ge.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(no({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,ge.jsx)("button",{className:i(no({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(no({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ge.jsx)(Qa.ChevronRight,{className:"h-4 w-4"})})})]})})}var Ts=require("react"),ks=require("@heroicons/react/24/outline"),Ss=require("@heroicons/react/24/solid");var bt=require("react/jsx-runtime"),Ds=(0,Ts.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:m=3,...c},f)=>(0,bt.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,bt.jsx)("span",{className:i("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,bt.jsx)("textarea",{disabled:e,ref:f,className:i("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:m,...c}),t&&(0,bt.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?(0,bt.jsx)(Ss.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,bt.jsx)(ks.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,bt.jsx)("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,bt.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 Ya=u(require("react"),1),nd=1,sd=1e6;var li=0;function ld(){return li=(li+1)%Number.MAX_SAFE_INTEGER,li.toString()}var mi=new Map,Ms=e=>{if(mi.has(e))return;let o=setTimeout(()=>{mi.delete(e),oa({type:"REMOVE_TOAST",toastId:e})},sd);mi.set(e,o)},md=(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?Ms(t):e.toasts.forEach(a=>{Ms(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}},qa=[],Xa={toasts:[]};function oa(e){Xa=md(Xa,e),qa.forEach(o=>{o(Xa)})}function ci({...e}){let o=ld(),t=r=>oa({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>oa({type:"DISMISS_TOAST",toastId:o});return oa({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function Za(){let[e,o]=Ya.useState(Xa);return Ya.useEffect(()=>(qa.push(o),()=>{let t=qa.indexOf(o);t>-1&&qa.splice(t,1)}),[e]),{...e,toast:ci,dismiss:t=>oa({type:"DISMISS_TOAST",toastId:t})}}var go=u(require("react"),1),qt=require("@heroicons/react/20/solid"),se=u(require("@radix-ui/react-toast"),1),Is=require("class-variance-authority");var Le=require("react/jsx-runtime"),As=se.Provider,di=go.forwardRef(({className:e,...o},t)=>(0,Le.jsx)(se.Viewport,{ref:t,className:i("fixed bottom-0 left-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));di.displayName=se.Viewport.displayName;var cd=(0,Is.cva)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full group pointer-events-auto relative w-full overflow-hidden rounded-md border border border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),pi=go.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>(0,Le.jsxs)(se.Root,{ref:r,className:i(cd({variant:o}),e),...a,children:[(0,Le.jsxs)("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&(0,Le.jsx)(qt.CheckCircleIcon,{className:"h-5 w-5 text-green-500"}),o==="warning"&&(0,Le.jsx)(qt.ExclamationTriangleIcon,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&(0,Le.jsx)(qt.InformationCircleIcon,{className:"h-5 w-5 text-red-500"})]}),t]}));pi.displayName=se.Root.displayName;var fi=go.forwardRef(({className:e,...o},t)=>(0,Le.jsx)(se.Action,{ref:t,className:i("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}));fi.displayName=se.Action.displayName;var gi=go.forwardRef(({className:e,...o},t)=>(0,Le.jsx)(se.Close,{ref:t,className:i("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,Le.jsx)(qt.XMarkIcon,{className:"h-5 w-5"})}));gi.displayName=se.Close.displayName;var ui=go.forwardRef(({className:e,...o},t)=>(0,Le.jsx)(se.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));ui.displayName=se.Title.displayName;var vi=go.forwardRef(({className:e,...o},t)=>(0,Le.jsx)(se.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));vi.displayName=se.Description.displayName;var Bt=require("react/jsx-runtime");function Ls(){let{toasts:e}=Za();return(0,Bt.jsxs)(As,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return(0,Bt.jsxs)(pi,{...n,children:[(0,Bt.jsxs)("div",{className:"grid gap-2",children:[t&&(0,Bt.jsx)(ui,{children:t}),a&&(0,Bt.jsx)(vi,{children:a})]}),r,(0,Bt.jsx)(gi,{})]},o)}),(0,Bt.jsx)(di,{})]})}var xi=u(require("react"),1),We=u(require("@radix-ui/react-tooltip"),1);var yi=require("react/jsx-runtime"),Es=We.Provider,Hs=We.Root,Fs=We.Trigger,bi=xi.forwardRef((e,o)=>(0,yi.jsx)(We.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));bi.displayName=We.Arrow.displayName;var hi=xi.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>(0,yi.jsx)(We.Content,{ref:r,sideOffset:t,className:i("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}));hi.displayName=We.Content.displayName;var Xt=require("react"),Io=require("@heroicons/react/16/solid");var Ee=require("react/jsx-runtime"),zs=(0,Xt.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:m,onChange:c,onFocus:f,onClickClear:d,value:g,defaultValue:v,type:y="text",...L},V)=>{let[O,Y]=(0,Xt.useState)(!1),ee=(0,Xt.useRef)(null),U=te=>{te&&!O&&Y(!0),!te&&O&&Y(!1)},ro=te=>{s&&U(te.target.value),c?.(te)},R=te=>{s&&U(te.target.value),f?.(te)},ve=()=>{let te=ee.current?.querySelector("input");te&&(d?.(te.value),te.value="",te.focus(),Y(!1))};return(0,Xt.useEffect)(()=>{U(v||g)},[g,v]),(0,Ee.jsxs)("div",{className:i(r,o&&"mobase-text-input-error"),ref:ee,children:[(0,Ee.jsxs)("div",{className:"relative",children:[a&&(0,Ee.jsx)("span",{className:i("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",m===2&&" -top-2.5 text-sm"),children:a}),(0,Ee.jsx)("input",{disabled:e,type:y,ref:V,className:i("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",m===2&&"h-12 text-base",n),onChange:ro,onFocus:R,value:g,defaultValue:v,...L}),s&&O&&(0,Ee.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:ve,children:(0,Ee.jsx)(Io.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,Ee.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?(0,Ee.jsx)(Io.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Ee.jsx)(Io.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Ee.jsx)("span",{className:i("text-gray-500 ",m===2?"text-sm":"text-xs"),children:t})]}),(0,Ee.jsx)("style",{children:`
97
+ `})]}));var Ya=u(require("react"),1),nd=1,sd=1e6;var li=0;function ld(){return li=(li+1)%Number.MAX_SAFE_INTEGER,li.toString()}var mi=new Map,Ms=e=>{if(mi.has(e))return;let o=setTimeout(()=>{mi.delete(e),oa({type:"REMOVE_TOAST",toastId:e})},sd);mi.set(e,o)},md=(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?Ms(t):e.toasts.forEach(a=>{Ms(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}},qa=[],Xa={toasts:[]};function oa(e){Xa=md(Xa,e),qa.forEach(o=>{o(Xa)})}function ci({...e}){let o=ld(),t=r=>oa({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>oa({type:"DISMISS_TOAST",toastId:o});return oa({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function Za(){let[e,o]=Ya.useState(Xa);return Ya.useEffect(()=>(qa.push(o),()=>{let t=qa.indexOf(o);t>-1&&qa.splice(t,1)}),[e]),{...e,toast:ci,dismiss:t=>oa({type:"DISMISS_TOAST",toastId:t})}}var go=u(require("react"),1),qt=require("@heroicons/react/20/solid"),se=u(require("@radix-ui/react-toast"),1),Is=require("class-variance-authority");var Le=require("react/jsx-runtime"),As=se.Provider,di=go.forwardRef(({className:e,...o},t)=>(0,Le.jsx)(se.Viewport,{ref:t,className:i("fixed bottom-0 left-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));di.displayName=se.Viewport.displayName;var cd=(0,Is.cva)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full group pointer-events-auto relative w-full overflow-hidden rounded-md border border border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),pi=go.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>(0,Le.jsxs)(se.Root,{ref:r,className:i(cd({variant:o}),e),...a,children:[(0,Le.jsxs)("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&(0,Le.jsx)(qt.CheckCircleIcon,{className:"h-5 w-5 text-green-500"}),o==="warning"&&(0,Le.jsx)(qt.ExclamationTriangleIcon,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&(0,Le.jsx)(qt.InformationCircleIcon,{className:"h-5 w-5 text-red-500"})]}),t]}));pi.displayName=se.Root.displayName;var fi=go.forwardRef(({className:e,...o},t)=>(0,Le.jsx)(se.Action,{ref:t,className:i("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}));fi.displayName=se.Action.displayName;var gi=go.forwardRef(({className:e,...o},t)=>(0,Le.jsx)(se.Close,{ref:t,className:i("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,Le.jsx)(qt.XMarkIcon,{className:"h-5 w-5"})}));gi.displayName=se.Close.displayName;var ui=go.forwardRef(({className:e,...o},t)=>(0,Le.jsx)(se.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));ui.displayName=se.Title.displayName;var vi=go.forwardRef(({className:e,...o},t)=>(0,Le.jsx)(se.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));vi.displayName=se.Description.displayName;var Bt=require("react/jsx-runtime");function Ls(){let{toasts:e}=Za();return(0,Bt.jsxs)(As,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return(0,Bt.jsxs)(pi,{...n,children:[(0,Bt.jsxs)("div",{className:"grid gap-2",children:[t&&(0,Bt.jsx)(ui,{children:t}),a&&(0,Bt.jsx)(vi,{children:a})]}),r,(0,Bt.jsx)(gi,{})]},o)}),(0,Bt.jsx)(di,{})]})}var xi=u(require("react"),1),We=u(require("@radix-ui/react-tooltip"),1);var yi=require("react/jsx-runtime"),Es=We.Provider,Hs=We.Root,Fs=We.Trigger,bi=xi.forwardRef((e,o)=>(0,yi.jsx)(We.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));bi.displayName=We.Arrow.displayName;var hi=xi.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>(0,yi.jsx)(We.Content,{ref:r,sideOffset:t,className:i("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}));hi.displayName=We.Content.displayName;var Xt=require("react"),Io=require("@heroicons/react/16/solid");var Ee=require("react/jsx-runtime"),zs=(0,Xt.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:m,onChange:c,onFocus:f,onClickClear:d,value:g,defaultValue:v,type:y="text",...L},V)=>{let[O,Y]=(0,Xt.useState)(!1),te=(0,Xt.useRef)(null),U=oe=>{oe&&!O&&Y(!0),!oe&&O&&Y(!1)},ro=oe=>{s&&U(oe.target.value),c?.(oe)},R=oe=>{s&&U(oe.target.value),f?.(oe)},ve=()=>{let oe=te.current?.querySelector("input");oe&&(d?.(oe.value),oe.value="",oe.focus(),Y(!1))};return(0,Xt.useEffect)(()=>{U(v||g)},[g,v]),(0,Ee.jsxs)("div",{className:i(r,o&&"mobase-text-input-error"),ref:te,children:[(0,Ee.jsxs)("div",{className:"relative",children:[a&&(0,Ee.jsx)("span",{className:i("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",m===2&&" -top-2.5 text-sm"),children:a}),(0,Ee.jsx)("input",{disabled:e,type:y,ref:V,className:i("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",m===2&&"h-12 text-base",n),onChange:ro,onFocus:R,value:g,defaultValue:v,...L}),s&&O&&(0,Ee.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:ve,children:(0,Ee.jsx)(Io.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,Ee.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?(0,Ee.jsx)(Io.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Ee.jsx)(Io.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Ee.jsx)("span",{className:i("text-gray-500 ",m===2?"text-sm":"text-xs"),children:t})]}),(0,Ee.jsx)("style",{children:`
98
98
  .mobase-text-input-box:hover {
99
99
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
100
100
  }
@@ -117,26 +117,26 @@
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});var Ka=require("@heroicons/react/24/outline");var Ja=require("react");var ht=require("react/jsx-runtime"),wi=(0,Ja.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:m,disabled:c=!1,...f},d)=>{let[g,v]=(0,Ja.useState)(r),y=()=>{let O=Math.min(g+a,t);v(O),n?.(O),m?.(O)},L=()=>{let O=Math.max(g-a,o);v(O),n?.(O),s?.(O)},V=O=>{let Y=parseFloat(O.target.value);if(!isNaN(Y)){let ee=Math.max(Math.min(Y,t),o);v(ee),n?.(ee)}};return(0,ht.jsxs)("div",{ref:d,className:i("flex items-center ",e),children:[(0,ht.jsxs)(pe,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:L,disabled:c||g<=o,children:[(0,ht.jsx)(Ka.MinusCircleIcon,{className:"w-7 h-7 "}),(0,ht.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,ht.jsx)("input",{type:"number",value:g,onChange:V,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:c,...f}),(0,ht.jsxs)(pe,{className:i(" 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,ht.jsx)(Ka.PlusCircleIcon,{className:"w-7 h-7 "}),(0,ht.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});wi.displayName="Stepper";var et=u(require("react"),1),ae=u(require("@radix-ui/react-navigation-menu"),1),_s=require("class-variance-authority"),Bs=require("@heroicons/react/16/solid");var He=require("react/jsx-runtime"),Vs=et.createContext(null),dd=({value:e,children:o})=>(0,He.jsx)(Vs.Provider,{value:e,children:o}),pd=()=>{let e=et.useContext(Vs);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},aa=et.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>(0,He.jsx)(dd,{value:{alignDropdown:t},children:(0,He.jsx)(ae.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));aa.displayName=ae.Root.displayName;var ra=et.forwardRef(({className:e,...o},t)=>(0,He.jsx)(ae.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));ra.displayName=ae.List.displayName;var ia=ae.Item,na=(0,_s.cva)(qe({variant:"transparent",size:"sm"})),sa=et.forwardRef(({className:e,children:o,...t},a)=>(0,He.jsxs)(ae.Trigger,{ref:a,className:i(na(),"group px-2",e),...t,children:[o," ",(0,He.jsx)(Bs.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));sa.displayName=ae.Trigger.displayName;var la=et.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=pd();return(0,He.jsx)(ae.Content,{ref:t,className:i("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})});la.displayName=ae.Content.displayName;var Ao=ae.Link,fd=et.forwardRef(({className:e,...o},t)=>(0,He.jsx)("div",{className:i("absolute left-0 top-full flex justify-center"),children:(0,He.jsx)(ae.Viewport,{className:i("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})}));fd.displayName=ae.Viewport.displayName;var gd=et.forwardRef(({className:e,...o},t)=>(0,He.jsx)(ae.Indicator,{ref:t,className:i("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,He.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));gd.displayName=ae.Indicator.displayName;var Os=u(require("react"),1),ma=u(require("@radix-ui/react-switch"),1);var Ni=require("react/jsx-runtime"),Pi=Os.forwardRef(({className:e,...o},t)=>(0,Ni.jsx)(ma.Root,{className:i("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,Ni.jsx)(ma.Thumb,{className:i("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")})}));Pi.displayName=ma.Root.displayName;var uo=u(require("react"),1),Yt=u(require("@radix-ui/react-radio-group"),1),Ws=require("lucide-react"),Ci=require("class-variance-authority");var Lo=require("react/jsx-runtime"),ud=(0,Ci.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"}}),vd=(0,Ci.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),$s=uo.createContext({size:"medium"});function xd(){let e=uo.useContext($s);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ri=uo.forwardRef(({className:e,size:o,...t},a)=>(0,Lo.jsx)($s.Provider,{value:{size:o},children:(0,Lo.jsx)(Yt.Root,{className:i("grid gap-2",e),...t,ref:a})}));Ri.displayName=Yt.Root.displayName;var Ti=uo.forwardRef(({className:e,...o},t)=>{let a=xd(),{size:r}=a??{};return(0,Lo.jsx)(Yt.Item,{ref:t,className:i(ud({size:r}),e),...o,children:(0,Lo.jsx)(Yt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,Lo.jsx)(Ws.Circle,{className:i(vd({size:r}))})})})});Ti.displayName=Yt.Item.displayName;var Zs=require("react"),Ks=require("@heroicons/react/16/solid"),Js=u(require("html-react-parser"),1);var tr=require("react"),ki=u(require("next/router"),1),wt=require("motion/react"),Qs=require("react-use");var er=[.24,.25,.05,1];var js=require("motion/react");var Vt=require("react/jsx-runtime"),bd=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Vt.jsx)("li",{className:"min-h-8",children:(0,Vt.jsxs)("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&(0,Vt.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,Vt.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,Vt.jsxs)("div",{className:" ",children:[(0,Vt.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,Vt.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Gs=bd;var yt=require("react/jsx-runtime"),hd={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:er}},exit:{opacity:0,transition:{duration:.05}}},yd=({data:e})=>(0,yt.jsx)(nt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,yt.jsx)(js.motion.div,{variants:hd,children:o.hasDropdown?(0,yt.jsxs)(st,{value:o.id,children:[(0,yt.jsx)(lt,{className:"py-3",children:o.title}),(0,yt.jsx)(mt,{children:(0,yt.jsx)("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,yt.jsx)(Gs,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,yt.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)})}),Us=yd;var h=require("react/jsx-runtime"),wd=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Nd=({data:e,className:o})=>{let[t,a]=(0,tr.useState)(!1);(0,Qs.useKey)("Escape",()=>a(!1)),(0,tr.useEffect)(()=>{if(!t)return;let s=wd();function m(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",ki.default.events.on("routeChangeComplete",m),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),ki.default.events.off("routeChangeComplete",m)}},[t]);let r={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:er}},exit:{opacity:0,transition:{duration:.15}}};return(0,h.jsxs)("div",{className:i(o),children:[(0,h.jsxs)("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,h.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,h.jsx)(wt.motion.div,{animate:t?"hidden":"visible",variants:r,children:(0,h.jsx)("svg",{className:i("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,h.jsx)(wt.motion.div,{animate:t?"visible":"hidden",variants:r,children:(0,h.jsx)("svg",{className:i("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,h.jsx)(wt.LazyMotion,{features:wt.domAnimation,children:(0,h.jsx)(wt.AnimatePresence,{mode:"wait",children:t&&(0,h.jsxs)(wt.motion.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[(0,h.jsx)(Us,{data:e}),(0,h.jsxs)("div",{className:"animate-fade-in py-4 text-sm delay-300 duration-500",children:[(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,h.jsxs)("div",{className:"flex flex-nowrap",children:[(0,h.jsx)("div",{className:"flex-initial",children:(0,h.jsx)("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,h.jsx)("div",{className:"ml-3 flex-initial",children:(0,h.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{href:`tel:${Dt.Support.Hotline}`,className:"text-gray-600",children:Dt.Support.Hotline_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsx)("a",{href:`mailto:${Dt.Support.Email}`,className:"text-gray-600",children:Dt.Support.Email})]})]}),(0,h.jsx)("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,h.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[(0,h.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,h.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,h.jsxs)("g",{children:[(0,h.jsx)("title",{children:"Asset 1"}),(0,h.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
120
+ `})]})});var Ka=require("@heroicons/react/24/outline");var Ja=require("react");var ht=require("react/jsx-runtime"),Ni=(0,Ja.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:m,disabled:c=!1,...f},d)=>{let[g,v]=(0,Ja.useState)(r),y=()=>{let O=Math.min(g+a,t);v(O),n?.(O),m?.(O)},L=()=>{let O=Math.max(g-a,o);v(O),n?.(O),s?.(O)},V=O=>{let Y=parseFloat(O.target.value);if(!isNaN(Y)){let te=Math.max(Math.min(Y,t),o);v(te),n?.(te)}};return(0,ht.jsxs)("div",{ref:d,className:i("flex items-center ",e),children:[(0,ht.jsxs)(pe,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:L,disabled:c||g<=o,children:[(0,ht.jsx)(Ka.MinusCircleIcon,{className:"w-7 h-7 "}),(0,ht.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,ht.jsx)("input",{type:"number",value:g,onChange:V,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:c,...f}),(0,ht.jsxs)(pe,{className:i(" 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,ht.jsx)(Ka.PlusCircleIcon,{className:"w-7 h-7 "}),(0,ht.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});Ni.displayName="Stepper";var et=u(require("react"),1),re=u(require("@radix-ui/react-navigation-menu"),1),_s=require("class-variance-authority"),Bs=require("@heroicons/react/16/solid");var He=require("react/jsx-runtime"),Vs=et.createContext(null),dd=({value:e,children:o})=>(0,He.jsx)(Vs.Provider,{value:e,children:o}),pd=()=>{let e=et.useContext(Vs);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},aa=et.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>(0,He.jsx)(dd,{value:{alignDropdown:t},children:(0,He.jsx)(re.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));aa.displayName=re.Root.displayName;var ra=et.forwardRef(({className:e,...o},t)=>(0,He.jsx)(re.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));ra.displayName=re.List.displayName;var ia=re.Item,na=(0,_s.cva)(qe({variant:"transparent",size:"sm"})),sa=et.forwardRef(({className:e,children:o,...t},a)=>(0,He.jsxs)(re.Trigger,{ref:a,className:i(na(),"group px-2",e),...t,children:[o," ",(0,He.jsx)(Bs.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));sa.displayName=re.Trigger.displayName;var la=et.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=pd();return(0,He.jsx)(re.Content,{ref:t,className:i("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})});la.displayName=re.Content.displayName;var Ao=re.Link,fd=et.forwardRef(({className:e,...o},t)=>(0,He.jsx)("div",{className:i("absolute left-0 top-full flex justify-center"),children:(0,He.jsx)(re.Viewport,{className:i("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})}));fd.displayName=re.Viewport.displayName;var gd=et.forwardRef(({className:e,...o},t)=>(0,He.jsx)(re.Indicator,{ref:t,className:i("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,He.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));gd.displayName=re.Indicator.displayName;var Os=u(require("react"),1),ma=u(require("@radix-ui/react-switch"),1);var wi=require("react/jsx-runtime"),Pi=Os.forwardRef(({className:e,...o},t)=>(0,wi.jsx)(ma.Root,{className:i("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,wi.jsx)(ma.Thumb,{className:i("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")})}));Pi.displayName=ma.Root.displayName;var uo=u(require("react"),1),Yt=u(require("@radix-ui/react-radio-group"),1),Ws=require("lucide-react"),Ci=require("class-variance-authority");var Lo=require("react/jsx-runtime"),ud=(0,Ci.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"}}),vd=(0,Ci.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),$s=uo.createContext({size:"medium"});function xd(){let e=uo.useContext($s);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ri=uo.forwardRef(({className:e,size:o,...t},a)=>(0,Lo.jsx)($s.Provider,{value:{size:o},children:(0,Lo.jsx)(Yt.Root,{className:i("grid gap-2",e),...t,ref:a})}));Ri.displayName=Yt.Root.displayName;var Ti=uo.forwardRef(({className:e,...o},t)=>{let a=xd(),{size:r}=a??{};return(0,Lo.jsx)(Yt.Item,{ref:t,className:i(ud({size:r}),e),...o,children:(0,Lo.jsx)(Yt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,Lo.jsx)(Ws.Circle,{className:i(vd({size:r}))})})})});Ti.displayName=Yt.Item.displayName;var Zs=require("react"),Ks=require("@heroicons/react/16/solid"),Js=u(require("html-react-parser"),1);var tr=require("react"),ki=u(require("next/router"),1),Nt=require("motion/react"),Qs=require("react-use");var er=[.24,.25,.05,1];var js=require("motion/react");var Vt=require("react/jsx-runtime"),bd=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Vt.jsx)("li",{className:"min-h-8",children:(0,Vt.jsxs)("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&(0,Vt.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,Vt.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,Vt.jsxs)("div",{className:" ",children:[(0,Vt.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,Vt.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Gs=bd;var yt=require("react/jsx-runtime"),hd={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:er}},exit:{opacity:0,transition:{duration:.05}}},yd=({data:e})=>(0,yt.jsx)(nt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,yt.jsx)(js.motion.div,{variants:hd,children:o.hasDropdown?(0,yt.jsxs)(st,{value:o.id,children:[(0,yt.jsx)(lt,{className:"py-3",children:o.title}),(0,yt.jsx)(mt,{children:(0,yt.jsx)("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,yt.jsx)(Gs,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,yt.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)})}),Us=yd;var h=require("react/jsx-runtime"),Nd=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,wd=({data:e,className:o})=>{let[t,a]=(0,tr.useState)(!1);(0,Qs.useKey)("Escape",()=>a(!1)),(0,tr.useEffect)(()=>{if(!t)return;let s=Nd();function m(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",ki.default.events.on("routeChangeComplete",m),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),ki.default.events.off("routeChangeComplete",m)}},[t]);let r={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:er}},exit:{opacity:0,transition:{duration:.15}}};return(0,h.jsxs)("div",{className:i(o),children:[(0,h.jsxs)("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,h.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,h.jsx)(Nt.motion.div,{animate:t?"hidden":"visible",variants:r,children:(0,h.jsx)("svg",{className:i("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,h.jsx)(Nt.motion.div,{animate:t?"visible":"hidden",variants:r,children:(0,h.jsx)("svg",{className:i("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,h.jsx)(Nt.LazyMotion,{features:Nt.domAnimation,children:(0,h.jsx)(Nt.AnimatePresence,{mode:"wait",children:t&&(0,h.jsxs)(Nt.motion.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[(0,h.jsx)(Us,{data:e}),(0,h.jsxs)("div",{className:"animate-fade-in py-4 text-sm delay-300 duration-500",children:[(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,h.jsxs)("div",{className:"flex flex-nowrap",children:[(0,h.jsx)("div",{className:"flex-initial",children:(0,h.jsx)("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,h.jsx)("div",{className:"ml-3 flex-initial",children:(0,h.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{href:`tel:${Dt.Support.Hotline}`,className:"text-gray-600",children:Dt.Support.Hotline_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsx)("a",{href:`mailto:${Dt.Support.Email}`,className:"text-gray-600",children:Dt.Support.Email})]})]}),(0,h.jsx)("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,h.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[(0,h.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,h.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,h.jsxs)("g",{children:[(0,h.jsx)("title",{children:"Asset 1"}),(0,h.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
121
121
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
122
122
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,h.jsx)("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
123
123
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
124
- c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,h.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,h.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{className:"text-gray-600",href:`tel:${Dt.Business.Phome}`,children:Dt.Business.Phome_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsxs)("a",{href:`mailto:${Dt.Business.Email}`,className:"text-gray-600",children:[" ",Dt.Business.Email]})]})]}),(0,h.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,h.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[(0,h.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,h.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,h.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},qs=Nd;var Nt=require("react/jsx-runtime"),Pd=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Nt.jsx)("li",{className:"",children:(0,Nt.jsx)(Ao,{asChild:!0,children:(0,Nt.jsxs)("a",{className:i(" 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:r,...s,children:[o&&(0,Nt.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,Nt.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,Nt.jsxs)("div",{className:" ",children:[(0,Nt.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,Nt.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Xs=Pd;var tt=require("react/jsx-runtime"),Cd=({data:e,alignDropdown:o})=>(0,tt.jsx)(aa,{alignDropdown:o,children:(0,tt.jsx)(ra,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,tt.jsxs)(ia,{className:"relative",children:[(0,tt.jsx)(sa,{children:t.title}),(0,tt.jsx)(la,{children:(0,tt.jsx)("ul",{className:i("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(r=>(0,tt.jsx)(Xs,{title:r.title,href:r.url,newTab:r.newTab,icon:t.dropDownCompact===!0?r.icon:"",children:t.dropDownCompact===!0?r.description:""},r.title))})})]},t.id):(0,tt.jsx)(ia,{className:"relative",children:(0,tt.jsx)(Ao,{href:t.url,className:na(),...a,children:t.title})},t.id)})})}),Ys=Cd;var le=require("react/jsx-runtime"),Si=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:r,isSticky:n=!0,alignDropdown:s="left"})=>{let{logo:m,name:c,url:f}=t||{},[d,g]=(0,Zs.useState)(!1);return(0,le.jsxs)("div",{className:i(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[(0,le.jsx)("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,le.jsx)("nav",{className:i("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0 "),style:{minHeight:"var(--header-height-mobase)"},children:(0,le.jsxs)("div",{className:"relative flex items-center ",children:[(0,le.jsxs)("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[(0,le.jsx)("span",{className:"sr-only",children:"MoMo home page"}),(0,le.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&(0,le.jsxs)("a",{href:f,title:c,className:" relative flex flex-none items-center space-x-1 rounded-none pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] hover:opacity-80 ",children:[(0,le.jsx)("img",{src:m,className:"h-9 w-9",alt:"MoMo"}),(0,le.jsx)("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&(0,Js.default)(c)})]}),(0,le.jsx)("div",{className:i("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!r&&!a&&" lg:ml-auto xl:ml-auto"),children:(0,le.jsx)(Ys,{data:o,alignDropdown:s})}),(0,le.jsxs)("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&" lg:ml-0"),children:[r&&r,a&&(0,le.jsxs)("div",{className:" hidden sm:flex",children:[(0,le.jsxs)(Ae,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",(0,le.jsx)(Ks.ArrowDownTrayIcon,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),(0,le.jsx)(Ut,{open:d,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,le.jsx)(qs,{data:o,className:"lg:hidden "})]})]})})]})};Si.displayName="HeaderNavigation";var tl=require("react");var p=require("react/jsx-runtime"),el=({item:e})=>(0,p.jsx)("div",{className:"mt-3 flex w-full text-sm",children:(0,p.jsxs)("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&(0,p.jsx)("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:(0,p.jsx)("img",{src:e.icon,className:"absolute inset-0"})}),(0,p.jsx)("span",{className:"block ",children:e.title})]})}),Rd=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=(0,tl.useState)(null);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:(0,p.jsxs)("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[(0,p.jsxs)("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[(0,p.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>(0,p.jsx)(el,{item:r},n))]}),(0,p.jsxs)("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[(0,p.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),(0,p.jsx)("div",{className:"flex flex-wrap",children:o?.lists?.map((r,n)=>(0,p.jsx)(el,{item:r},n))})]}),(0,p.jsxs)("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[(0,p.jsxs)("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[(0,p.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),(0,p.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),(0,p.jsx)("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:An.Address})]}),(0,p.jsxs)("div",{className:"mt-1 text-sm",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${we.Support.Hotline}`,children:we.Support.Hotline_Format}),(0,p.jsxs)("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),(0,p.jsxs)("div",{className:"mt-1 text-sm",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${we.Support.Email}`,children:we.Support.Email})]}),(0,p.jsxs)("div",{className:"mt-1 text-sm",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${we.Support.Phone_Ext_1}`,children:we.Support.Phone_Ext_1_Format}),(0,p.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${we.Support.Phone_Ext_2}`,children:we.Support.Phone_Ext_2_Format}),(0,p.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${we.Support.Phone_Ext_3}`,children:we.Support.Phone_Ext_3_Format}),(0,p.jsx)("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),(0,p.jsx)("div",{className:"mt-3 flex",children:(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 block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",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-gray-100 ",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
124
+ c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,h.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,h.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{className:"text-gray-600",href:`tel:${Dt.Business.Phome}`,children:Dt.Business.Phome_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsxs)("a",{href:`mailto:${Dt.Business.Email}`,className:"text-gray-600",children:[" ",Dt.Business.Email]})]})]}),(0,h.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,h.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[(0,h.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,h.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,h.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},qs=wd;var wt=require("react/jsx-runtime"),Pd=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,wt.jsx)("li",{className:"",children:(0,wt.jsx)(Ao,{asChild:!0,children:(0,wt.jsxs)("a",{className:i(" 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:r,...s,children:[o&&(0,wt.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,wt.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,wt.jsxs)("div",{className:" ",children:[(0,wt.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,wt.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Xs=Pd;var tt=require("react/jsx-runtime"),Cd=({data:e,alignDropdown:o})=>(0,tt.jsx)(aa,{alignDropdown:o,children:(0,tt.jsx)(ra,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,tt.jsxs)(ia,{className:"relative",children:[(0,tt.jsx)(sa,{children:t.title}),(0,tt.jsx)(la,{children:(0,tt.jsx)("ul",{className:i("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(r=>(0,tt.jsx)(Xs,{title:r.title,href:r.url,newTab:r.newTab,icon:t.dropDownCompact===!0?r.icon:"",children:t.dropDownCompact===!0?r.description:""},r.title))})})]},t.id):(0,tt.jsx)(ia,{className:"relative",children:(0,tt.jsx)(Ao,{href:t.url,className:na(),...a,children:t.title})},t.id)})})}),Ys=Cd;var le=require("react/jsx-runtime"),Si=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:r,isSticky:n=!0,alignDropdown:s="left"})=>{let{logo:m,name:c,url:f}=t||{},[d,g]=(0,Zs.useState)(!1);return(0,le.jsxs)("div",{className:i(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[(0,le.jsx)("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,le.jsx)("nav",{className:i("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0 "),style:{minHeight:"var(--header-height-mobase)"},children:(0,le.jsxs)("div",{className:"relative flex items-center ",children:[(0,le.jsxs)("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[(0,le.jsx)("span",{className:"sr-only",children:"MoMo home page"}),(0,le.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&(0,le.jsxs)("a",{href:f,title:c,className:" relative flex flex-none items-center space-x-1 rounded-none pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] hover:opacity-80 ",children:[(0,le.jsx)("img",{src:m,className:"h-9 w-9",alt:"MoMo"}),(0,le.jsx)("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&(0,Js.default)(c)})]}),(0,le.jsx)("div",{className:i("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!r&&!a&&" lg:ml-auto xl:ml-auto"),children:(0,le.jsx)(Ys,{data:o,alignDropdown:s})}),(0,le.jsxs)("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&" lg:ml-0"),children:[r&&r,a&&(0,le.jsxs)("div",{className:" hidden sm:flex",children:[(0,le.jsxs)(Ae,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",(0,le.jsx)(Ks.ArrowDownTrayIcon,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),(0,le.jsx)(Ut,{open:d,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,le.jsx)(qs,{data:o,className:"lg:hidden "})]})]})})]})};Si.displayName="HeaderNavigation";var tl=require("react");var p=require("react/jsx-runtime"),el=({item:e})=>(0,p.jsx)("div",{className:"mt-3 flex w-full text-sm",children:(0,p.jsxs)("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&(0,p.jsx)("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:(0,p.jsx)("img",{src:e.icon,className:"absolute inset-0"})}),(0,p.jsx)("span",{className:"block ",children:e.title})]})}),Rd=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=(0,tl.useState)(null);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:(0,p.jsxs)("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[(0,p.jsxs)("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[(0,p.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>(0,p.jsx)(el,{item:r},n))]}),(0,p.jsxs)("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[(0,p.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),(0,p.jsx)("div",{className:"flex flex-wrap",children:o?.lists?.map((r,n)=>(0,p.jsx)(el,{item:r},n))})]}),(0,p.jsxs)("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[(0,p.jsxs)("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[(0,p.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),(0,p.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),(0,p.jsx)("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:An.Address})]}),(0,p.jsxs)("div",{className:"mt-1 text-sm",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Ne.Support.Hotline}`,children:Ne.Support.Hotline_Format}),(0,p.jsxs)("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),(0,p.jsxs)("div",{className:"mt-1 text-sm",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${Ne.Support.Email}`,children:Ne.Support.Email})]}),(0,p.jsxs)("div",{className:"mt-1 text-sm",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Ne.Support.Phone_Ext_1}`,children:Ne.Support.Phone_Ext_1_Format}),(0,p.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Ne.Support.Phone_Ext_2}`,children:Ne.Support.Phone_Ext_2_Format}),(0,p.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Ne.Support.Phone_Ext_3}`,children:Ne.Support.Phone_Ext_3_Format}),(0,p.jsx)("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),(0,p.jsx)("div",{className:"mt-3 flex",children:(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 block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",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-gray-100 ",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
125
125
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
126
126
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,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
127
127
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
128
- c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,p.jsx)("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,p.jsx)("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),(0,p.jsxs)("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[(0,p.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,p.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${we.Business.Phome}`,children:we.Business.Phome_Format})]}),(0,p.jsxs)("div",{className:"mt-1 text-sm",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${we.Business.Email}`,children:we.Business.Email})]}),(0,p.jsxs)("div",{className:"mt-1 text-sm",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"Website : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),(0,p.jsx)("div",{className:"mt-3 flex",children:(0,p.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,p.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[(0,p.jsx)("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:(0,p.jsxs)("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[(0,p.jsx)("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),(0,p.jsx)("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,p.jsx)("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),(0,p.jsxs)("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[(0,p.jsxs)("div",{className:"h-auto",children:[(0,p.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),(0,p.jsx)("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:(0,p.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Oo&&Oo.map((r,n)=>(0,p.jsx)("li",{className:"inline-block",children:(0,p.jsx)("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:(0,p.jsx)("img",{src:r.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),(0,p.jsxs)("div",{className:"h-auto",children:[(0,p.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),(0,p.jsxs)("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[(0,p.jsx)("div",{className:"relative hidden h-24 w-24 grow-0 overflow-hidden rounded-sm bg-white md:block lg:h-20 lg:w-20",children:(0,p.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),(0,p.jsx)("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:Dr&&Dr.map((r,n)=>(0,p.jsxs)("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${r.Image}) center center / contain no-repeat`},children:[(0,p.jsx)(Ae,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:r.Name}),(0,p.jsx)("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),(0,p.jsx)(Ut,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:r.Link})]},n))}),(0,p.jsx)("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:(0,p.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Oo&&Oo.map((r,n)=>(0,p.jsx)("li",{children:(0,p.jsx)("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:(0,p.jsx)("img",{alt:r.Name,src:r.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),(0,p.jsxs)("div",{className:"hidden h-auto md:block",children:[(0,p.jsx)("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),(0,p.jsxs)("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[(0,p.jsxs)("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),(0,p.jsx)("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:(0,p.jsx)("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),(0,p.jsx)("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:(0,p.jsxs)("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[(0,p.jsxs)("div",{className:" relative ",children:[(0,p.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:" absolute left-0 top-0 mt-0.5 block h-9 w-9",alt:"MoMo"}),(0,p.jsxs)("div",{className:" md:pl-12",children:[(0,p.jsx)("div",{className:"mb-1 h-10 pl-12 text-sm text-white text-opacity-80 md:h-auto md:pl-0 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),(0,p.jsx)("div",{className:"text-sm text-white text-opacity-50 lg:leading-normal",children:"Tr\u1EE5 s\u1EDF ch\xEDnh: T\u1EA7ng 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 \u0111\u01B0\u1EDDng Ho\xE0ng V\u0103n Th\xE1i, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),(0,p.jsxs)("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",(0,p.jsx)("strong",{children:"MoMo"})]}),(0,p.jsxs)("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),(0,p.jsxs)("div",{className:"text-sm text-white text-opacity-50",children:[(0,p.jsxs)("div",{children:["D\u1ECBch v\u1EE5 trung gian thanh to\xE1n do Ng\xE2n h\xE0ng Nh\xE0 n\u01B0\u1EDBc c\u1EA5p ph\xE9p \u0111\u01B0\u1EE3c cung \u1EE9ng th\xF4ng qua\xA0",(0,p.jsx)("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),(0,p.jsxs)("ul",{className:" mt-0.5 ",children:[(0,p.jsx)("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),(0,p.jsx)("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),(0,p.jsx)("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),(0,p.jsxs)("div",{className:" flex items-center justify-between md:hidden",children:[(0,p.jsxs)("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),(0,p.jsx)("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:(0,p.jsx)("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),(0,p.jsx)("style",{children:`
128
+ c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,p.jsx)("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,p.jsx)("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),(0,p.jsxs)("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[(0,p.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,p.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Ne.Business.Phome}`,children:Ne.Business.Phome_Format})]}),(0,p.jsxs)("div",{className:"mt-1 text-sm",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${Ne.Business.Email}`,children:Ne.Business.Email})]}),(0,p.jsxs)("div",{className:"mt-1 text-sm",children:[(0,p.jsx)("span",{className:"text-white text-opacity-50",children:"Website : "}),(0,p.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),(0,p.jsx)("div",{className:"mt-3 flex",children:(0,p.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,p.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[(0,p.jsx)("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:(0,p.jsxs)("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[(0,p.jsx)("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),(0,p.jsx)("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),(0,p.jsx)("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,p.jsx)("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),(0,p.jsxs)("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[(0,p.jsxs)("div",{className:"h-auto",children:[(0,p.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),(0,p.jsx)("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:(0,p.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Oo&&Oo.map((r,n)=>(0,p.jsx)("li",{className:"inline-block",children:(0,p.jsx)("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:(0,p.jsx)("img",{src:r.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),(0,p.jsxs)("div",{className:"h-auto",children:[(0,p.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),(0,p.jsxs)("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[(0,p.jsx)("div",{className:"relative hidden h-24 w-24 grow-0 overflow-hidden rounded-sm bg-white md:block lg:h-20 lg:w-20",children:(0,p.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),(0,p.jsx)("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:Dr&&Dr.map((r,n)=>(0,p.jsxs)("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${r.Image}) center center / contain no-repeat`},children:[(0,p.jsx)(Ae,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:r.Name}),(0,p.jsx)("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),(0,p.jsx)(Ut,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:r.Link})]},n))}),(0,p.jsx)("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:(0,p.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Oo&&Oo.map((r,n)=>(0,p.jsx)("li",{children:(0,p.jsx)("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:(0,p.jsx)("img",{alt:r.Name,src:r.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),(0,p.jsxs)("div",{className:"hidden h-auto md:block",children:[(0,p.jsx)("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),(0,p.jsxs)("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[(0,p.jsxs)("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),(0,p.jsx)("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:(0,p.jsx)("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),(0,p.jsx)("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:(0,p.jsxs)("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[(0,p.jsxs)("div",{className:" relative ",children:[(0,p.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:" absolute left-0 top-0 mt-0.5 block h-9 w-9",alt:"MoMo"}),(0,p.jsxs)("div",{className:" md:pl-12",children:[(0,p.jsx)("div",{className:"mb-1 h-10 pl-12 text-sm text-white text-opacity-80 md:h-auto md:pl-0 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),(0,p.jsx)("div",{className:"text-sm text-white text-opacity-50 lg:leading-normal",children:"Tr\u1EE5 s\u1EDF ch\xEDnh: T\u1EA7ng 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 \u0111\u01B0\u1EDDng Ho\xE0ng V\u0103n Th\xE1i, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),(0,p.jsxs)("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",(0,p.jsx)("strong",{children:"MoMo"})]}),(0,p.jsxs)("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),(0,p.jsxs)("div",{className:"text-sm text-white text-opacity-50",children:[(0,p.jsxs)("div",{children:["D\u1ECBch v\u1EE5 trung gian thanh to\xE1n do Ng\xE2n h\xE0ng Nh\xE0 n\u01B0\u1EDBc c\u1EA5p ph\xE9p \u0111\u01B0\u1EE3c cung \u1EE9ng th\xF4ng qua\xA0",(0,p.jsx)("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),(0,p.jsxs)("ul",{className:" mt-0.5 ",children:[(0,p.jsx)("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),(0,p.jsx)("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),(0,p.jsx)("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),(0,p.jsxs)("div",{className:" flex items-center justify-between md:hidden",children:[(0,p.jsxs)("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),(0,p.jsx)("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:(0,p.jsx)("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),(0,p.jsx)("style",{children:`
129
129
  footer .button-download {
130
130
  max-width: 150px;
131
131
  }
132
- `})]})},ol=Rd;var Di=require("react/jsx-runtime"),al=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,Di.jsx)("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,Di.jsx)(ol,{primaryMenu:o,secondaryMenu:t})});var vo=u(require("react"),1);var xo=require("react/jsx-runtime"),Mi=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Mi.displayName="Card";var Ii=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));Ii.displayName="CardHeader";var Ai=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));Ai.displayName="CardTitle";var Li=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Li.displayName="CardDescription";var Ei=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("div",{ref:t,className:i("p-6 pt-0",e),...o}));Ei.displayName="CardContent";var Hi=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));Hi.displayName="CardFooter";var $e=u(require("react"),1),Pe=require("cmdk");var or=require("@heroicons/react/16/solid"),he=require("react/jsx-runtime"),ar=$e.forwardRef(({className:e,...o},t)=>(0,he.jsx)(Pe.Command,{ref:t,className:i("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ar.displayName=Pe.Command.displayName;var rl=({children:e,...o})=>(0,he.jsx)(ct,{...o,children:(0,he.jsx)(Xe,{className:"overflow-hidden p-0 shadow-lg",children:(0,he.jsx)(ar,{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})})}),Fi=$e.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=$e.useRef(null),[s,m]=$e.useState(""),c=()=>{!s||s?.length<=0||(m(""),o?.(s))};return(0,he.jsxs)("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[(0,he.jsx)(or.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,he.jsx)(Pe.Command.Input,{ref:r,className:i("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,he.jsx)(or.XCircleIcon,{onClick:c,className:i("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Fi.displayName=Pe.Command.Input.displayName;var zi=$e.forwardRef(({className:e,...o},t)=>(0,he.jsx)(Pe.Command.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));zi.displayName=Pe.Command.List.displayName;var _i=$e.forwardRef((e,o)=>(0,he.jsx)(Pe.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));_i.displayName=Pe.Command.Empty.displayName;var Bi=$e.forwardRef(({className:e,...o},t)=>(0,he.jsx)(Pe.Command.Group,{ref:t,className:i("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}));Bi.displayName=Pe.Command.Group.displayName;var Vi=$e.forwardRef(({className:e,...o},t)=>(0,he.jsx)(Pe.Command.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Vi.displayName=Pe.Command.Separator.displayName;var Oi=$e.forwardRef(({className:e,children:o,...t},a)=>(0,he.jsx)(Pe.Command.Item,{ref:a,className:i("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}));Oi.displayName=Pe.Command.Item.displayName;var Wi=({className:e,...o})=>(0,he.jsx)("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Wi.displayName="CommandShortcut";var il=require("@heroicons/react/16/solid");var Zt=require("react/jsx-runtime"),nl=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>(0,Zt.jsxs)("div",{className:"relative",children:[(0,Zt.jsxs)(ko,{className:i("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||r,(0,Zt.jsx)(il.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&(0,Zt.jsx)("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),sl=({children:e,className:o,...t})=>(0,Zt.jsx)(mo,{className:i("border-none !p-0",o),...t,children:e}),ll=({open:e,onOpenChange:o,children:t,...a})=>(0,Zt.jsx)(To,{open:e,onOpenChange:o,...a,children:t});var $i=require("class-variance-authority"),ml=require("react");var cl=require("@heroicons/react/24/outline");var bo=require("react/jsx-runtime"),Td=(0,$i.cva)("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ",{variants:{typeDiv:{neutral:"bg-gray-50 border-gray-300 ",error:"bg-red-50 border-red-300",success:"bg-green-50 border-green-300",warning:"bg-yellow-50 border-yellow-300",info:"bg-blue-50 border-blue-300"},disabled:{true:"text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300"}},defaultVariants:{typeDiv:"neutral"}}),kd=(0,$i.cva)("w-5 h-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),Eo=(0,ml.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:m,...c},f)=>(0,bo.jsxs)("div",{ref:f,className:i("",r,Td({typeDiv:e,disabled:n})),...c,children:[(0,bo.jsxs)("div",{className:"flex items-center space-x-2",children:[m||(0,bo.jsx)(cl.InformationCircleIcon,{className:i(kd({typeIcon:e,disabled:n})),width:20,height:20}),o&&(0,bo.jsx)("div",{children:o})]}),t&&(0,bo.jsx)(be,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));var Kt=require("react"),dl=require("@heroicons/react/20/solid"),pl=require("@heroicons/react/24/outline");var Pt=require("react/jsx-runtime"),fl=(0,Kt.forwardRef)(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:n,onClickClear:s,value:m,defaultValue:c,type:f="text",...d},g)=>{let[v,y]=(0,Kt.useState)(!1),L=(0,Kt.useRef)(null),V=U=>{U&&!v&&y(!0),!U&&v&&y(!1)},O=U=>{V(U.target.value),r?.(U)},Y=U=>{V(U.target.value),n?.(U)},ee=()=>{let U=L.current?.querySelector("input");U&&(s?.(U.value),U.value="",U.focus(),y(!1))};return(0,Kt.useEffect)(()=>{V(c||m)},[m,c]),(0,Pt.jsxs)("div",{className:i(o),ref:L,children:[(0,Pt.jsxs)("div",{className:"relative flex items-center",children:[(0,Pt.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,Pt.jsx)(dl.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,Pt.jsx)("input",{disabled:e,type:f,ref:g,className:i("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:O,onFocus:Y,value:m,defaultValue:c,...d}),v&&(0,Pt.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:ee,children:(0,Pt.jsx)(pl.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,Pt.jsx)("style",{children:`
132
+ `})]})},ol=Rd;var Di=require("react/jsx-runtime"),al=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,Di.jsx)("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,Di.jsx)(ol,{primaryMenu:o,secondaryMenu:t})});var vo=u(require("react"),1);var xo=require("react/jsx-runtime"),Mi=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Mi.displayName="Card";var Ii=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));Ii.displayName="CardHeader";var Ai=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));Ai.displayName="CardTitle";var Li=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Li.displayName="CardDescription";var Ei=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("div",{ref:t,className:i("p-6 pt-0",e),...o}));Ei.displayName="CardContent";var Hi=vo.forwardRef(({className:e,...o},t)=>(0,xo.jsx)("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));Hi.displayName="CardFooter";var $e=u(require("react"),1),Pe=require("cmdk");var or=require("@heroicons/react/16/solid"),he=require("react/jsx-runtime"),ar=$e.forwardRef(({className:e,...o},t)=>(0,he.jsx)(Pe.Command,{ref:t,className:i("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ar.displayName=Pe.Command.displayName;var rl=({children:e,...o})=>(0,he.jsx)(ct,{...o,children:(0,he.jsx)(Xe,{className:"overflow-hidden p-0 shadow-lg",children:(0,he.jsx)(ar,{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})})}),Fi=$e.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=$e.useRef(null),[s,m]=$e.useState(""),c=()=>{!s||s?.length<=0||(m(""),o?.(s))};return(0,he.jsxs)("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[(0,he.jsx)(or.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,he.jsx)(Pe.Command.Input,{ref:r,className:i("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,he.jsx)(or.XCircleIcon,{onClick:c,className:i("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Fi.displayName=Pe.Command.Input.displayName;var zi=$e.forwardRef(({className:e,...o},t)=>(0,he.jsx)(Pe.Command.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));zi.displayName=Pe.Command.List.displayName;var _i=$e.forwardRef((e,o)=>(0,he.jsx)(Pe.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));_i.displayName=Pe.Command.Empty.displayName;var Bi=$e.forwardRef(({className:e,...o},t)=>(0,he.jsx)(Pe.Command.Group,{ref:t,className:i("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}));Bi.displayName=Pe.Command.Group.displayName;var Vi=$e.forwardRef(({className:e,...o},t)=>(0,he.jsx)(Pe.Command.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Vi.displayName=Pe.Command.Separator.displayName;var Oi=$e.forwardRef(({className:e,children:o,...t},a)=>(0,he.jsx)(Pe.Command.Item,{ref:a,className:i("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}));Oi.displayName=Pe.Command.Item.displayName;var Wi=({className:e,...o})=>(0,he.jsx)("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Wi.displayName="CommandShortcut";var il=require("@heroicons/react/16/solid");var Zt=require("react/jsx-runtime"),nl=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>(0,Zt.jsxs)("div",{className:"relative",children:[(0,Zt.jsxs)(ko,{className:i("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||r,(0,Zt.jsx)(il.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&(0,Zt.jsx)("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),sl=({children:e,className:o,...t})=>(0,Zt.jsx)(mo,{className:i("border-none !p-0",o),...t,children:e}),ll=({open:e,onOpenChange:o,children:t,...a})=>(0,Zt.jsx)(To,{open:e,onOpenChange:o,...a,children:t});var $i=require("class-variance-authority"),ml=require("react");var cl=require("@heroicons/react/24/outline");var bo=require("react/jsx-runtime"),Td=(0,$i.cva)("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ",{variants:{typeDiv:{neutral:"bg-gray-50 border-gray-300 ",error:"bg-red-50 border-red-300",success:"bg-green-50 border-green-300",warning:"bg-yellow-50 border-yellow-300",info:"bg-blue-50 border-blue-300"},disabled:{true:"text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300"}},defaultVariants:{typeDiv:"neutral"}}),kd=(0,$i.cva)("w-5 h-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),Eo=(0,ml.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:m,...c},f)=>(0,bo.jsxs)("div",{ref:f,className:i("",r,Td({typeDiv:e,disabled:n})),...c,children:[(0,bo.jsxs)("div",{className:"flex items-center space-x-2",children:[m||(0,bo.jsx)(cl.InformationCircleIcon,{className:i(kd({typeIcon:e,disabled:n})),width:20,height:20}),o&&(0,bo.jsx)("div",{children:o})]}),t&&(0,bo.jsx)(be,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));var Kt=require("react"),dl=require("@heroicons/react/20/solid"),pl=require("@heroicons/react/24/outline");var Pt=require("react/jsx-runtime"),fl=(0,Kt.forwardRef)(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:n,onClickClear:s,value:m,defaultValue:c,type:f="text",...d},g)=>{let[v,y]=(0,Kt.useState)(!1),L=(0,Kt.useRef)(null),V=U=>{U&&!v&&y(!0),!U&&v&&y(!1)},O=U=>{V(U.target.value),r?.(U)},Y=U=>{V(U.target.value),n?.(U)},te=()=>{let U=L.current?.querySelector("input");U&&(s?.(U.value),U.value="",U.focus(),y(!1))};return(0,Kt.useEffect)(()=>{V(c||m)},[m,c]),(0,Pt.jsxs)("div",{className:i(o),ref:L,children:[(0,Pt.jsxs)("div",{className:"relative flex items-center",children:[(0,Pt.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,Pt.jsx)(dl.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,Pt.jsx)("input",{disabled:e,type:f,ref:g,className:i("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:O,onFocus:Y,value:m,defaultValue:c,...d}),v&&(0,Pt.jsx)("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:te,children:(0,Pt.jsx)(pl.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,Pt.jsx)("style",{children:`
133
133
  .mobase-text-input-box:hover {
134
134
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
135
135
  }
136
136
  .mobase-text-input-box:focus {
137
137
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
138
138
  }
139
- `})]})});var Fe=u(require("@radix-ui/react-dialog"),1),Ge=u(require("react"),1);var gl=require("lucide-react"),ul=u(require("lodash"),1);var $=require("react/jsx-runtime"),vl=Ge.default.createContext(void 0);function xl(){let e=(0,Ge.useContext)(vl);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var rr=({children:e,open:o,onOpenChange:t,className:a})=>(0,$.jsx)(vl.Provider,{value:{open:o,onOpenChange:t},children:(0,$.jsx)(Fe.Root,{open:o,onOpenChange:t,children:(0,$.jsx)("div",{className:i("lightbox-gallery",a),children:e})})}),bl=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:m}=xl(),c=()=>{n?.(),m&&m(!0)};return(0,$.jsxs)(Fe.Trigger,{className:i("",a),onClick:c,children:[e,(0,$.jsx)(G,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,$.jsx)("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},hl=Ge.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=xl(),n=()=>{r&&r(!1)};return(0,$.jsxs)(Fe.Portal,{children:[(0,$.jsx)(Fe.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,$.jsxs)(Fe.Content,{ref:a,className:i("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,$.jsxs)(Fe.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,$.jsx)(gl.X,{className:"h-4 w-4 mt-0.5"}),(0,$.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});hl.displayName=Fe.Content.displayName;var ir=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=(0,Ge.useState)(""),[m,c]=(0,Ge.useState)(),[f,d]=(0,Ge.useState)(0);(0,Ge.useEffect)(()=>{m&&(d(m.selectedScrollSnap()+1),m.on("select",()=>{d(m.selectedScrollSnap()+1)}))},[m]);let g=v=>{let y=ul.default.filter(e,(V,O)=>O===(v>0?v-1:v)),L=y.length>0?y[0]?.titleImage:"";s(L)};return(0,Ge.useEffect)(()=>{g(f)},[f]),(0,$.jsxs)(hl,{className:"flex py-0",children:[(0,$.jsxs)("div",{className:" flex-1 relative",children:[(0,$.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[f||1," / ",e?.length]}),(0,$.jsxs)(ke,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[(0,$.jsx)(Se,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((v,y)=>(0,$.jsx)(De,{className:"pl-6 md:pl-4",children:(0,$.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,$.jsx)("div",{className:"flex-1 relative",children:(0,$.jsx)("img",{src:v.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,$.jsx)("div",{className:"flex-0",children:(0,$.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,$.jsx)("div",{className:"line-clamp-3",children:n})})})]})},y))}),(0,$.jsx)(so,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,$.jsx)(lo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&(0,$.jsx)("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};var Jt=u(require("react"),1),yl=require("@heroicons/react/16/solid"),ca=u(require("@radix-ui/react-checkbox"),1),eo=u(require("@radix-ui/react-radio-group"),1),wl=require("lucide-react");var Me=require("react/jsx-runtime"),Nl=Jt.createContext({hideIndicator:!1});function Sd(){let e=Jt.useContext(Nl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var da=Jt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,Me.jsx)(Nl.Provider,{value:{hideIndicator:o},children:(0,Me.jsx)(eo.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));da.displayName=eo.Root.displayName;var pa=Jt.forwardRef(({className:e,children:o,...t},a)=>{let r=Sd(),{hideIndicator:n}=r??{};return(0,Me.jsxs)(eo.Item,{ref:a,className:i("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,Me.jsx)("div",{className:"min-w-0 flex-1",children:o}),!n&&(0,Me.jsx)("div",{className:i("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,Me.jsx)(eo.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:(0,Me.jsx)(wl.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});pa.displayName=eo.Item.displayName;var Gi=Jt.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>(0,Me.jsxs)(ca.Root,{ref:r,className:i("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,Me.jsx)("div",{className:"min-w-0 flex-1",children:o}),!t&&(0,Me.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,Me.jsx)(ca.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,Me.jsx)(yl.CheckIcon,{className:"h-4 w-4"})})})]}));Gi.displayName=ca.Root.displayName;var Pl=require("class-variance-authority");var Rl=require("react/jsx-runtime"),ji=(0,Pl.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 Cl({className:e,variant:o,...t}){return(0,Rl.jsx)("div",{className:i(ji({variant:o}),e),...t})}var Tl=u(require("react"),1),fa=u(require("@radix-ui/react-progress"),1),Qi=require("class-variance-authority");var Ui=require("react/jsx-runtime"),Dd=(0,Qi.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"}}),Md=(0,Qi.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"}}),qi=Tl.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>(0,Ui.jsx)(fa.Root,{ref:s,className:i("",Md({size:a}),e),...n,children:(0,Ui.jsx)(fa.Indicator,{className:i("",Dd({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));qi.displayName=fa.Root.displayName;var kl=require("react/jsx-runtime");function ga({className:e,...o}){return(0,kl.jsx)("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}var ze=require("react/jsx-runtime");function Sl({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let r={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,ze.jsx)("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return(0,ze.jsxs)("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((m,c)=>(0,ze.jsx)("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),(0,ze.jsx)("style",{children:`
139
+ `})]})});var Fe=u(require("@radix-ui/react-dialog"),1),Ge=u(require("react"),1);var gl=require("lucide-react"),ul=u(require("lodash"),1);var $=require("react/jsx-runtime"),vl=Ge.default.createContext(void 0);function xl(){let e=(0,Ge.useContext)(vl);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var rr=({children:e,open:o,onOpenChange:t,className:a})=>(0,$.jsx)(vl.Provider,{value:{open:o,onOpenChange:t},children:(0,$.jsx)(Fe.Root,{open:o,onOpenChange:t,children:(0,$.jsx)("div",{className:i("lightbox-gallery",a),children:e})})}),bl=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:m}=xl(),c=()=>{n?.(),m&&m(!0)};return(0,$.jsxs)(Fe.Trigger,{className:i("",a),onClick:c,children:[e,(0,$.jsx)(G,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,$.jsx)("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},hl=Ge.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=xl(),n=()=>{r&&r(!1)};return(0,$.jsxs)(Fe.Portal,{children:[(0,$.jsx)(Fe.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,$.jsxs)(Fe.Content,{ref:a,className:i("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,$.jsxs)(Fe.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,$.jsx)(gl.X,{className:"h-4 w-4 mt-0.5"}),(0,$.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});hl.displayName=Fe.Content.displayName;var ir=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=(0,Ge.useState)(""),[m,c]=(0,Ge.useState)(),[f,d]=(0,Ge.useState)(0);(0,Ge.useEffect)(()=>{m&&(d(m.selectedScrollSnap()+1),m.on("select",()=>{d(m.selectedScrollSnap()+1)}))},[m]);let g=v=>{let y=ul.default.filter(e,(V,O)=>O===(v>0?v-1:v)),L=y.length>0?y[0]?.titleImage:"";s(L)};return(0,Ge.useEffect)(()=>{g(f)},[f]),(0,$.jsxs)(hl,{className:"flex py-0",children:[(0,$.jsxs)("div",{className:" flex-1 relative",children:[(0,$.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[f||1," / ",e?.length]}),(0,$.jsxs)(ke,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[(0,$.jsx)(Se,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((v,y)=>(0,$.jsx)(De,{className:"pl-6 md:pl-4",children:(0,$.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,$.jsx)("div",{className:"flex-1 relative",children:(0,$.jsx)("img",{src:v.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,$.jsx)("div",{className:"flex-0",children:(0,$.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,$.jsx)("div",{className:"line-clamp-3",children:n})})})]})},y))}),(0,$.jsx)(so,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,$.jsx)(lo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&(0,$.jsx)("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};var Jt=u(require("react"),1),yl=require("@heroicons/react/16/solid"),ca=u(require("@radix-ui/react-checkbox"),1),eo=u(require("@radix-ui/react-radio-group"),1),Nl=require("lucide-react");var Me=require("react/jsx-runtime"),wl=Jt.createContext({hideIndicator:!1});function Sd(){let e=Jt.useContext(wl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var da=Jt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,Me.jsx)(wl.Provider,{value:{hideIndicator:o},children:(0,Me.jsx)(eo.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));da.displayName=eo.Root.displayName;var pa=Jt.forwardRef(({className:e,children:o,...t},a)=>{let r=Sd(),{hideIndicator:n}=r??{};return(0,Me.jsxs)(eo.Item,{ref:a,className:i("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,Me.jsx)("div",{className:"min-w-0 flex-1",children:o}),!n&&(0,Me.jsx)("div",{className:i("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,Me.jsx)(eo.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:(0,Me.jsx)(Nl.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});pa.displayName=eo.Item.displayName;var Gi=Jt.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>(0,Me.jsxs)(ca.Root,{ref:r,className:i("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,Me.jsx)("div",{className:"min-w-0 flex-1",children:o}),!t&&(0,Me.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,Me.jsx)(ca.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,Me.jsx)(yl.CheckIcon,{className:"h-4 w-4"})})})]}));Gi.displayName=ca.Root.displayName;var Pl=require("class-variance-authority");var Rl=require("react/jsx-runtime"),ji=(0,Pl.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 Cl({className:e,variant:o,...t}){return(0,Rl.jsx)("div",{className:i(ji({variant:o}),e),...t})}var Tl=u(require("react"),1),fa=u(require("@radix-ui/react-progress"),1),Qi=require("class-variance-authority");var Ui=require("react/jsx-runtime"),Dd=(0,Qi.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"}}),Md=(0,Qi.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"}}),qi=Tl.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>(0,Ui.jsx)(fa.Root,{ref:s,className:i("",Md({size:a}),e),...n,children:(0,Ui.jsx)(fa.Indicator,{className:i("",Dd({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));qi.displayName=fa.Root.displayName;var kl=require("react/jsx-runtime");function ga({className:e,...o}){return(0,kl.jsx)("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}var ze=require("react/jsx-runtime");function Sl({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let r={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,ze.jsx)("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return(0,ze.jsxs)("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((m,c)=>(0,ze.jsx)("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),(0,ze.jsx)("style",{children:`
140
140
  .spinner_dots span {
141
141
  animation-name: spinner-dots;
142
142
  animation-duration: 1.4s;
@@ -243,7 +243,7 @@
243
243
  opacity: 0.15;
244
244
  }
245
245
  }
246
- `})]})}})()})}var Dl=u(require("react"),1),Ct=u(require("@radix-ui/react-slider"),1);var ot=require("react/jsx-runtime"),Xi=Dl.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>(0,ot.jsxs)(Ct.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,ot.jsx)(Ct.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,ot.jsx)(Ct.Range,{className:"absolute h-full bg-pink-500"})}),(0,ot.jsx)(Ct.Thumb,{className:"group relative",children:(0,ot.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,ot.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,ot.jsx)(Ct.Thumb,{className:"group relative",children:(0,ot.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,ot.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})})})]}));Xi.displayName=Ct.Root.displayName;var zl=require("react");var me=require("react/jsx-runtime"),Id=({author:e=""})=>(0,me.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Ad=({author:e,avatar:o})=>(0,me.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,me.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,me.jsx)(Id,{author:e})});function Ld({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return(0,me.jsx)(me.Fragment,{children:(0,me.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,me.jsx)(Ad,{avatar:e,author:o}),(0,me.jsxs)("div",{className:"flex flex-col",children:[o&&(0,me.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,me.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,me.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,me.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,me.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,me.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&(0,me.jsx)("div",{className:"absolute right-1 top-0",children:(0,me.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Ml=Ld;var Zi=require("react");var Il=require("@heroicons/react/20/solid"),Ho=require("react/jsx-runtime"),Ed={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!"},Hd={1:"Kh\xF4ng h\xE0i l\xF2ng",2:"Ch\u01B0a \u01B0ng l\u1EAFm",3:"T\u1EA1m \u1ED5n",4:"H\xE0i l\xF2ng",5:"R\u1EA5t h\xE0i l\xF2ng"};function Fd({point:e,max:o,className:t}){let a=o>5?Ed[e||10]:Hd[e||5];return(0,Ho.jsxs)("div",{className:i("flex items-center space-x-1",t),children:[(0,Ho.jsx)(Il.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,Ho.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,Ho.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Al=Fd;var Ll=require("react"),Yi=u(require("html-react-parser"),1);var sr=require("react/jsx-runtime"),nr=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,m]=(0,Ll.useState)(!0),c=()=>{m(!s)},f=(d,g,v=" ")=>d.length<=g?d:d.substring(0,d.lastIndexOf(v,g));return(0,sr.jsxs)("div",{className:i(n),children:[s?(0,Yi.default)(f(e,o)):(0,Yi.default)(e),e.length>o&&(0,sr.jsx)("span",{onClick:c,className:i("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",r),children:s?t:a})]})};var at=require("react/jsx-runtime");function zd({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,m]=(0,Zi.useState)(0),[c,f]=(0,Zi.useState)(!1),d=g=>{f(!0),m(g)};return(0,at.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&(0,at.jsx)(Al,{className:"mb-0.5",point:r.point,max:r.max}),e&&(0,at.jsx)(nr,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,at.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>(0,at.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,at.jsxs)(rr,{open:c,onOpenChange:f,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((g,v)=>(0,at.jsx)(G,{onClick:()=>d(v),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,at.jsx)("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},v)),(0,at.jsx)(ir,{activeSlideIndex:s,images:o?.map((g,v)=>({url:g.url,titleImage:g.titleImage,idx:v})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var El=zd;var Fl=require("react/jsx-runtime");function _d({actions:e=[]}){return(0,Fl.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Hl=_d;var ho=require("react/jsx-runtime"),_l=(0,zl.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:m=[],statusMessage:c,isReply:f,children:d,commentSideBar:g,isOutStanding:v,limitContent:y=260},L)=>(0,ho.jsxs)("div",{ref:L,className:i("",f?"ml-4 py-4":"py-5"),children:[(0,ho.jsx)(Ml,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:v}),(0,ho.jsx)(El,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:y}),m&&m?.filter(Boolean)?.length>0&&(0,ho.jsx)(Hl,{actions:m.filter(Boolean)}),d&&(0,ho.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:d})]}));var to=u(require("react"),1),Bl=require("class-variance-authority");var Vl=require("@heroicons/react/16/solid"),Ol=require("lucide-react"),ce=require("react/jsx-runtime"),Bd=(0,Bl.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"}}),Wl=to.createContext("default");function Vd(){let e=to.useContext(Wl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Od=to.memo(({type:e,icon:o,stepNumber:t,size:a,isError:r,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return r?(0,ce.jsx)(Ol.XIcon,{className:s}):(0,ce.jsxs)("div",{children:[e==="iconStep"&&(0,ce.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,ce.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,ce.jsx)(Vl.CheckIcon,{className:s}):(0,ce.jsx)("div",{children:t}))]})}),$l=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=to.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,ce.jsx)("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Gl=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:m,fristStep:c,icon:f,isError:d,onValueChangeStep:g,...v})=>{let y=Vd();return(0,ce.jsxs)("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[(0,ce.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,ce.jsx)("div",{className:i("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,ce.jsx)("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",Bd({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...v,children:(0,ce.jsx)(Od,{type:y,icon:f,stepNumber:e,size:t,isError:d,state:o})}),(0,ce.jsx)("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,ce.jsxs)("div",{className:i("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&(0,ce.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,ce.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},jl=({children:e,className:o,type:t="numberStep",...a})=>(0,ce.jsx)(Wl.Provider,{value:t,children:(0,ce.jsx)("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});var Ie=u(require("react"),1),Xl=require("@radix-ui/react-slot"),Fo=require("react-hook-form");var Ul=u(require("react"),1),Ki=u(require("@radix-ui/react-label"),1),Ql=require("class-variance-authority");var ql=require("react/jsx-runtime"),Wd=(0,Ql.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),lr=Ul.forwardRef(({className:e,...o},t)=>(0,ql.jsx)(Ki.Root,{ref:t,className:i(Wd(),e),...o}));lr.displayName=Ki.Root.displayName;var Ot=require("react/jsx-runtime"),Yl=Fo.FormProvider,Zl=Ie.createContext({}),Kl=({...e})=>(0,Ot.jsx)(Zl.Provider,{value:{name:e.name},children:(0,Ot.jsx)(Fo.Controller,{...e})}),zo=()=>{let e=Ie.useContext(Zl),o=Ie.useContext(Jl),{getFieldState:t,formState:a}=(0,Fo.useFormContext)(),r=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...r}},Jl=Ie.createContext({}),Ji=Ie.forwardRef(({className:e,...o},t)=>{let a=Ie.useId();return(0,Ot.jsx)(Jl.Provider,{value:{id:a},children:(0,Ot.jsx)("div",{ref:t,className:i("space-y-2",e),...o})})});Ji.displayName="FormItem";var en=Ie.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=zo();return(0,Ot.jsx)(lr,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});en.displayName="FormLabel";var tn=Ie.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=zo();return(0,Ot.jsx)(Xl.Slot,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});tn.displayName="FormControl";var on=Ie.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=zo();return(0,Ot.jsx)("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});on.displayName="FormDescription";var an=Ie.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=zo(),s=r?String(r?.message):o;return s?(0,Ot.jsx)("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});an.displayName="FormMessage";var Wt=u(require("react"),1),C=u(require("@radix-ui/react-dropdown-menu"),1),mr=require("lucide-react");var re=require("react/jsx-runtime"),em=C.Root,tm=C.Trigger,om=C.Group,am=C.Portal,rm=C.Sub,im=C.RadioGroup,rn=Wt.forwardRef(({className:e,inset:o,children:t,...a},r)=>(0,re.jsxs)(C.SubTrigger,{ref:r,className:i("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,re.jsx)(mr.ChevronRight,{className:"ml-auto"})]}));rn.displayName=C.SubTrigger.displayName;var nn=Wt.forwardRef(({className:e,...o},t)=>(0,re.jsx)(C.SubContent,{ref:t,className:i("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}));nn.displayName=C.SubContent.displayName;var sn=Wt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,re.jsx)(C.Portal,{children:(0,re.jsx)(C.Content,{ref:a,sideOffset:o,className:i("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})}));sn.displayName=C.Content.displayName;var ln=Wt.forwardRef(({className:e,inset:o,...t},a)=>(0,re.jsx)(C.Item,{ref:a,className:i("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}));ln.displayName=C.Item.displayName;var mn=Wt.forwardRef(({className:e,children:o,checked:t,...a},r)=>(0,re.jsxs)(C.CheckboxItem,{ref:r,className:i("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,re.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,re.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,re.jsx)(C.ItemIndicator,{children:(0,re.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,re.jsx)(mr.Check,{size:16,strokeWidth:3})})})]}),o]}));mn.displayName=C.CheckboxItem.displayName;var cn=Wt.forwardRef(({className:e,children:o,...t},a)=>(0,re.jsxs)(C.RadioItem,{ref:a,className:i("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,re.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,re.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,re.jsx)(C.ItemIndicator,{children:(0,re.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));cn.displayName=C.RadioItem.displayName;var dn=Wt.forwardRef(({className:e,inset:o,...t},a)=>(0,re.jsx)(C.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));dn.displayName=C.Label.displayName;var pn=Wt.forwardRef(({className:e,...o},t)=>(0,re.jsx)(C.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));pn.displayName=C.Separator.displayName;var fn=({className:e,...o})=>(0,re.jsx)("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});fn.displayName="DropdownMenuShortcut";var ua=u(require("html-react-parser"),1);var A=require("react/jsx-runtime"),nm=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,A.jsxs)(A.Fragment,{children:[e&&(0,A.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>(0,A.jsx)("div",{className:"basis-full px-3.5 md:basis-1/3",children:(0,A.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,A.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:r+1}),(0,A.jsxs)("div",{className:"mt-6 w-full",children:[(0,A.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ua.default)(a.title)}),a?.description&&(0,A.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ua.default)(a.description)})]})]})},r))}),t&&(0,A.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),$d=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,A.jsxs)(A.Fragment,{children:[e&&(0,A.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>(0,A.jsxs)("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[(0,A.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,A.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:r+1}),a?.image&&(0,A.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,A.jsx)(G,{ratio:1,children:(0,A.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,A.jsxs)("div",{className:"mt-6 w-full",children:[(0,A.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ua.default)(a.title)}),a?.description&&(0,A.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ua.default)(a.description)})]})]},r))}),t&&(0,A.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Gd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,A.jsx)(nm,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,A.jsx)($d,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,A.jsx)(nm,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},jd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,A.jsx)(A.Fragment,{children:Gd({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),sm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>(0,A.jsx)(oe,{className:t,idSection:a,background:o,children:(0,A.jsx)(jd,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});var lm=require("class-variance-authority"),gn=u(require("html-react-parser"),1),un=require("lucide-react");var J=require("react/jsx-runtime"),Ud=(0,lm.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}}),Qd=({template:e,name:o,image:t,isFeatures:a})=>(0,J.jsx)(J.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?(0,J.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,J.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,J.jsx)("div",{className:"mt-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-pink-100",children:(0,J.jsx)(un.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,J.jsx)("div",{className:"ml-2 ",children:(0,gn.default)(o)})]})});case 3:return(0,J.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,J.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,J.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,J.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:(0,J.jsx)(un.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,J.jsx)("div",{className:"my-auto ml-2 md:my-0",children:(0,gn.default)(o)})]});default:return null}})()}),cr=({dataFeatures:e,template:o=1})=>(0,J.jsx)(J.Fragment,{children:(e?.length??0)>0&&(0,J.jsx)("ul",{className:i("",Ud({template:o})),children:e?.map((t,a)=>(0,J.jsx)(Qd,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var mm=require("lucide-react");var j=require("react/jsx-runtime"),cm=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,qd=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>(0,j.jsxs)(wo,{children:[(0,j.jsx)(it,{greaterThan:"sm",children:(0,j.jsxs)(G,{className:i(""),ratio:cm(o),children:[(0,j.jsx)("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,j.jsxs)(ct,{children:[(0,j.jsx)(ya,{onClick:r,children:(0,j.jsx)("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:(0,j.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,j.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,j.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,j.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,j.jsx)(Xe,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:(0,j.jsxs)(It,{className:"relative bg-transparent p-4 text-center",children:[(0,j.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,j.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),(0,j.jsx)(wa,{asChild:!0,children:(0,j.jsx)(pe,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,j.jsx)(mm.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,j.jsx)(it,{lessThan:"md",children:(0,j.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,j.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),dr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>(0,j.jsx)("div",{className:a,children:n?(0,j.jsx)(qd,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,j.jsx)(G,{ratio:cm(t),children:(0,j.jsx)("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});var dm=u(require("html-react-parser"),1);var rt=require("react/jsx-runtime"),Xd=({value:e,suffix:o,unit:t,description:a,idx:r})=>(0,rt.jsxs)("div",{className:i(""),children:[e&&(0,rt.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,rt.jsxs)("span",{children:[o," ",t]})]}),a&&(0,rt.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,dm.default)(a)})]}),pr=({dataStats:e})=>(0,rt.jsx)(rt.Fragment,{children:(e?.length??0)>0&&(0,rt.jsx)("ul",{className:i("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>(0,rt.jsx)(Xd,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var _=require("react/jsx-runtime"),vn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,_.jsxs)("div",{className:"col-span-1 ",children:[(0,_.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),(0,_.jsx)(cr,{dataFeatures:t,template:a}),o&&(0,_.jsx)(N,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,_.jsx)(pr,{dataStats:r})]}),(0,_.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,_.jsx)(dr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),pm=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,_.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,_.jsx)(dr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,_.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,_.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),(0,_.jsx)(cr,{dataFeatures:t,template:a}),o&&(0,_.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,_.jsx)(N,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,_.jsx)(pr,{dataStats:r})]})]}),fm=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),o&&(0,_.jsx)(N,{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,_.jsx)(cr,{dataFeatures:t,template:a}),(0,_.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,_.jsx)(pr,{dataStats:r})}),s||(0,_.jsx)(_.Fragment,{children:n?.src&&(0,_.jsx)(dr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var Rt=require("react/jsx-runtime"),Yd=`var(
246
+ `})]})}})()})}var Dl=u(require("react"),1),Ct=u(require("@radix-ui/react-slider"),1);var ot=require("react/jsx-runtime"),Xi=Dl.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>(0,ot.jsxs)(Ct.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,ot.jsx)(Ct.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,ot.jsx)(Ct.Range,{className:"absolute h-full bg-pink-500"})}),(0,ot.jsx)(Ct.Thumb,{className:"group relative",children:(0,ot.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,ot.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,ot.jsx)(Ct.Thumb,{className:"group relative",children:(0,ot.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,ot.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})})})]}));Xi.displayName=Ct.Root.displayName;var zl=require("react");var me=require("react/jsx-runtime"),Id=({author:e=""})=>(0,me.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Ad=({author:e,avatar:o})=>(0,me.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,me.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,me.jsx)(Id,{author:e})});function Ld({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return(0,me.jsx)(me.Fragment,{children:(0,me.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,me.jsx)(Ad,{avatar:e,author:o}),(0,me.jsxs)("div",{className:"flex flex-col",children:[o&&(0,me.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,me.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,me.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,me.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,me.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,me.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&(0,me.jsx)("div",{className:"absolute right-1 top-0",children:(0,me.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Ml=Ld;var Zi=require("react");var Il=require("@heroicons/react/20/solid"),Ho=require("react/jsx-runtime"),Ed={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!"},Hd={1:"Kh\xF4ng h\xE0i l\xF2ng",2:"Ch\u01B0a \u01B0ng l\u1EAFm",3:"T\u1EA1m \u1ED5n",4:"H\xE0i l\xF2ng",5:"R\u1EA5t h\xE0i l\xF2ng"};function Fd({point:e,max:o,className:t}){let a=o>5?Ed[e||10]:Hd[e||5];return(0,Ho.jsxs)("div",{className:i("flex items-center space-x-1",t),children:[(0,Ho.jsx)(Il.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,Ho.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,Ho.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Al=Fd;var Ll=require("react"),Yi=u(require("html-react-parser"),1);var sr=require("react/jsx-runtime"),nr=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,m]=(0,Ll.useState)(!0),c=()=>{m(!s)},f=(d,g,v=" ")=>d.length<=g?d:d.substring(0,d.lastIndexOf(v,g));return(0,sr.jsxs)("div",{className:i(n),children:[s?(0,Yi.default)(f(e,o)):(0,Yi.default)(e),e.length>o&&(0,sr.jsx)("span",{onClick:c,className:i("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",r),children:s?t:a})]})};var at=require("react/jsx-runtime");function zd({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,m]=(0,Zi.useState)(0),[c,f]=(0,Zi.useState)(!1),d=g=>{f(!0),m(g)};return(0,at.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&(0,at.jsx)(Al,{className:"mb-0.5",point:r.point,max:r.max}),e&&(0,at.jsx)(nr,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,at.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>(0,at.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,at.jsxs)(rr,{open:c,onOpenChange:f,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((g,v)=>(0,at.jsx)(G,{onClick:()=>d(v),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,at.jsx)("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},v)),(0,at.jsx)(ir,{activeSlideIndex:s,images:o?.map((g,v)=>({url:g.url,titleImage:g.titleImage,idx:v})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var El=zd;var Fl=require("react/jsx-runtime");function _d({actions:e=[]}){return(0,Fl.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Hl=_d;var ho=require("react/jsx-runtime"),_l=(0,zl.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:m=[],statusMessage:c,isReply:f,children:d,commentSideBar:g,isOutStanding:v,limitContent:y=260},L)=>(0,ho.jsxs)("div",{ref:L,className:i("",f?"ml-4 py-4":"py-5"),children:[(0,ho.jsx)(Ml,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:v}),(0,ho.jsx)(El,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:y}),m&&m?.filter(Boolean)?.length>0&&(0,ho.jsx)(Hl,{actions:m.filter(Boolean)}),d&&(0,ho.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:d})]}));var to=u(require("react"),1),Bl=require("class-variance-authority");var Vl=require("@heroicons/react/16/solid"),Ol=require("lucide-react"),ce=require("react/jsx-runtime"),Bd=(0,Bl.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"}}),Wl=to.createContext("default");function Vd(){let e=to.useContext(Wl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Od=to.memo(({type:e,icon:o,stepNumber:t,size:a,isError:r,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return r?(0,ce.jsx)(Ol.XIcon,{className:s}):(0,ce.jsxs)("div",{children:[e==="iconStep"&&(0,ce.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,ce.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,ce.jsx)(Vl.CheckIcon,{className:s}):(0,ce.jsx)("div",{children:t}))]})}),$l=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=to.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,ce.jsx)("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Gl=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:m,fristStep:c,icon:f,isError:d,onValueChangeStep:g,...v})=>{let y=Vd();return(0,ce.jsxs)("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[(0,ce.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,ce.jsx)("div",{className:i("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,ce.jsx)("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",Bd({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...v,children:(0,ce.jsx)(Od,{type:y,icon:f,stepNumber:e,size:t,isError:d,state:o})}),(0,ce.jsx)("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,ce.jsxs)("div",{className:i("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&(0,ce.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,ce.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},jl=({children:e,className:o,type:t="numberStep",...a})=>(0,ce.jsx)(Wl.Provider,{value:t,children:(0,ce.jsx)("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});var Ie=u(require("react"),1),Xl=require("@radix-ui/react-slot"),Fo=require("react-hook-form");var Ul=u(require("react"),1),Ki=u(require("@radix-ui/react-label"),1),Ql=require("class-variance-authority");var ql=require("react/jsx-runtime"),Wd=(0,Ql.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),lr=Ul.forwardRef(({className:e,...o},t)=>(0,ql.jsx)(Ki.Root,{ref:t,className:i(Wd(),e),...o}));lr.displayName=Ki.Root.displayName;var Ot=require("react/jsx-runtime"),Yl=Fo.FormProvider,Zl=Ie.createContext({}),Kl=({...e})=>(0,Ot.jsx)(Zl.Provider,{value:{name:e.name},children:(0,Ot.jsx)(Fo.Controller,{...e})}),zo=()=>{let e=Ie.useContext(Zl),o=Ie.useContext(Jl),{getFieldState:t,formState:a}=(0,Fo.useFormContext)(),r=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...r}},Jl=Ie.createContext({}),Ji=Ie.forwardRef(({className:e,...o},t)=>{let a=Ie.useId();return(0,Ot.jsx)(Jl.Provider,{value:{id:a},children:(0,Ot.jsx)("div",{ref:t,className:i("space-y-2",e),...o})})});Ji.displayName="FormItem";var en=Ie.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=zo();return(0,Ot.jsx)(lr,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});en.displayName="FormLabel";var tn=Ie.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=zo();return(0,Ot.jsx)(Xl.Slot,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});tn.displayName="FormControl";var on=Ie.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=zo();return(0,Ot.jsx)("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});on.displayName="FormDescription";var an=Ie.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=zo(),s=r?String(r?.message):o;return s?(0,Ot.jsx)("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});an.displayName="FormMessage";var Wt=u(require("react"),1),C=u(require("@radix-ui/react-dropdown-menu"),1),mr=require("lucide-react");var ie=require("react/jsx-runtime"),em=C.Root,tm=C.Trigger,om=C.Group,am=C.Portal,rm=C.Sub,im=C.RadioGroup,rn=Wt.forwardRef(({className:e,inset:o,children:t,...a},r)=>(0,ie.jsxs)(C.SubTrigger,{ref:r,className:i("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,ie.jsx)(mr.ChevronRight,{className:"ml-auto"})]}));rn.displayName=C.SubTrigger.displayName;var nn=Wt.forwardRef(({className:e,...o},t)=>(0,ie.jsx)(C.SubContent,{ref:t,className:i("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}));nn.displayName=C.SubContent.displayName;var sn=Wt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,ie.jsx)(C.Portal,{children:(0,ie.jsx)(C.Content,{ref:a,sideOffset:o,className:i("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})}));sn.displayName=C.Content.displayName;var ln=Wt.forwardRef(({className:e,inset:o,...t},a)=>(0,ie.jsx)(C.Item,{ref:a,className:i("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}));ln.displayName=C.Item.displayName;var mn=Wt.forwardRef(({className:e,children:o,checked:t,...a},r)=>(0,ie.jsxs)(C.CheckboxItem,{ref:r,className:i("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,ie.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,ie.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,ie.jsx)(C.ItemIndicator,{children:(0,ie.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,ie.jsx)(mr.Check,{size:16,strokeWidth:3})})})]}),o]}));mn.displayName=C.CheckboxItem.displayName;var cn=Wt.forwardRef(({className:e,children:o,...t},a)=>(0,ie.jsxs)(C.RadioItem,{ref:a,className:i("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,ie.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,ie.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,ie.jsx)(C.ItemIndicator,{children:(0,ie.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));cn.displayName=C.RadioItem.displayName;var dn=Wt.forwardRef(({className:e,inset:o,...t},a)=>(0,ie.jsx)(C.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));dn.displayName=C.Label.displayName;var pn=Wt.forwardRef(({className:e,...o},t)=>(0,ie.jsx)(C.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));pn.displayName=C.Separator.displayName;var fn=({className:e,...o})=>(0,ie.jsx)("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});fn.displayName="DropdownMenuShortcut";var ua=u(require("html-react-parser"),1);var A=require("react/jsx-runtime"),nm=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,A.jsxs)(A.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:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>(0,A.jsx)("div",{className:"basis-full px-3.5 md:basis-1/3",children:(0,A.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,A.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:r+1}),(0,A.jsxs)("div",{className:"mt-6 w-full",children:[(0,A.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ua.default)(a.title)}),a?.description&&(0,A.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ua.default)(a.description)})]})]})},r))}),t&&(0,A.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),$d=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,A.jsxs)(A.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:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>(0,A.jsxs)("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[(0,A.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,A.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:r+1}),a?.image&&(0,A.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,A.jsx)(G,{ratio:1,children:(0,A.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,A.jsxs)("div",{className:"mt-6 w-full",children:[(0,A.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ua.default)(a.title)}),a?.description&&(0,A.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ua.default)(a.description)})]})]},r))}),t&&(0,A.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Gd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,A.jsx)(nm,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,A.jsx)($d,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,A.jsx)(nm,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},jd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,A.jsx)(A.Fragment,{children:Gd({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),sm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>(0,A.jsx)(ae,{className:t,idSection:a,background:o,children:(0,A.jsx)(jd,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});var lm=require("class-variance-authority"),gn=u(require("html-react-parser"),1),un=require("lucide-react");var J=require("react/jsx-runtime"),Ud=(0,lm.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}}),Qd=({template:e,name:o,image:t,isFeatures:a})=>(0,J.jsx)(J.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?(0,J.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,J.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,J.jsx)("div",{className:"mt-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-pink-100",children:(0,J.jsx)(un.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,J.jsx)("div",{className:"ml-2 ",children:(0,gn.default)(o)})]})});case 3:return(0,J.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,J.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,J.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,J.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:(0,J.jsx)(un.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,J.jsx)("div",{className:"my-auto ml-2 md:my-0",children:(0,gn.default)(o)})]});default:return null}})()}),cr=({dataFeatures:e,template:o=1})=>(0,J.jsx)(J.Fragment,{children:(e?.length??0)>0&&(0,J.jsx)("ul",{className:i("",Ud({template:o})),children:e?.map((t,a)=>(0,J.jsx)(Qd,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var mm=require("lucide-react");var j=require("react/jsx-runtime"),cm=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,qd=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>(0,j.jsxs)(No,{children:[(0,j.jsx)(it,{greaterThan:"sm",children:(0,j.jsxs)(G,{className:i(""),ratio:cm(o),children:[(0,j.jsx)("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,j.jsxs)(ct,{children:[(0,j.jsx)(ya,{onClick:r,children:(0,j.jsx)("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:(0,j.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,j.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,j.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,j.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,j.jsx)(Xe,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:(0,j.jsxs)(It,{className:"relative bg-transparent p-4 text-center",children:[(0,j.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,j.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),(0,j.jsx)(Na,{asChild:!0,children:(0,j.jsx)(pe,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,j.jsx)(mm.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,j.jsx)(it,{lessThan:"md",children:(0,j.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,j.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),dr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>(0,j.jsx)("div",{className:a,children:n?(0,j.jsx)(qd,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,j.jsx)(G,{ratio:cm(t),children:(0,j.jsx)("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});var dm=u(require("html-react-parser"),1);var rt=require("react/jsx-runtime"),Xd=({value:e,suffix:o,unit:t,description:a,idx:r})=>(0,rt.jsxs)("div",{className:i(""),children:[e&&(0,rt.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,rt.jsxs)("span",{children:[o," ",t]})]}),a&&(0,rt.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,dm.default)(a)})]}),pr=({dataStats:e})=>(0,rt.jsx)(rt.Fragment,{children:(e?.length??0)>0&&(0,rt.jsx)("ul",{className:i("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>(0,rt.jsx)(Xd,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var _=require("react/jsx-runtime"),vn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,_.jsxs)("div",{className:"col-span-1 ",children:[(0,_.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:i("mb-0 md:mb-0",e?.className)}),(0,_.jsx)(cr,{dataFeatures:t,template:a}),o&&(0,_.jsx)(w,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,_.jsx)(pr,{dataStats:r})]}),(0,_.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,_.jsx)(dr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),pm=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,_.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,_.jsx)(dr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,_.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,_.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:i("mb-0 md:mb-0",e?.className)}),(0,_.jsx)(cr,{dataFeatures:t,template:a}),o&&(0,_.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,_.jsx)(w,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,_.jsx)(pr,{dataStats:r})]})]}),fm=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)(_.Fragment,{children:[(0,_.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:i("mb-0 md:mb-0",e?.className)}),o&&(0,_.jsx)(w,{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,_.jsx)(cr,{dataFeatures:t,template:a}),(0,_.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,_.jsx)(pr,{dataStats:r})}),s||(0,_.jsx)(_.Fragment,{children:n?.src&&(0,_.jsx)(dr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var Rt=require("react/jsx-runtime"),Yd=`var(
247
247
  --gradient-pink-1,
248
248
  linear-gradient(
249
249
  38deg,
@@ -265,15 +265,15 @@
265
265
  rgba(255, 255, 255, 0) 80%
266
266
  ),
267
267
  #fff
268
- )`,Zd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,Rt.jsx)(vn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return(0,Rt.jsx)(pm,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return(0,Rt.jsx)(fm,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return(0,Rt.jsx)(vn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},Kd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,Rt.jsx)(Rt.Fragment,{children:Zd({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),gm=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:m,background:c,advancedComponent:f=null})=>(0,Rt.jsx)(oe,{className:i(m),background:c??Yd,idSection:o,children:(0,Rt.jsx)(Kd,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:f})});var E=require("react/jsx-runtime"),um=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:r})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return(0,E.jsxs)(E.Fragment,{children:[e&&(0,E.jsx)(w,{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,E.jsx)("div",{className:i("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],r?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,m)=>(0,E.jsx)("div",{className:i("flex items-center justify-center md:basis-auto md:px-0",r?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:(0,E.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?(0,E.jsx)("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:(0,E.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):(0,E.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},m))}),t&&(0,E.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Jd=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>(0,E.jsxs)(E.Fragment,{children:[e&&(0,E.jsx)(w,{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,E.jsx)("div",{className:i("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((r,n)=>(0,E.jsx)("div",{className:i("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:r?.url?(0,E.jsx)("a",{href:r?.url,title:r?.name,target:r?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:(0,E.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,E.jsx)("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})}):(0,E.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:(0,E.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,E.jsx)("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})})},n))}),t&&(0,E.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ep=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return(0,E.jsx)(um,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return(0,E.jsx)(Jd,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return(0,E.jsx)(um,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},tp=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>(0,E.jsx)(E.Fragment,{children:ep({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),vm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:m="20px",isScrollSnap:c})=>(0,E.jsx)(oe,{className:t,idSection:a,background:o,children:(0,E.jsx)(tp,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:m,isScrollSnap:c})});var xm=require("react"),bm=require("@heroicons/react/16/solid"),ie=u(require("html-react-parser"),1);var l=require("react/jsx-runtime"),Tt=({btnLink:e,btnName:o,newTab:t})=>(0,l.jsx)(be,{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)(bm.ChevronRightIcon,{className:"h-4 w-4"})]})}),xn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&(0,l.jsx)("div",{className:"mx-auto h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),hm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,l.jsx)("style",{children:`
268
+ )`,Zd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,Rt.jsx)(vn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return(0,Rt.jsx)(pm,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return(0,Rt.jsx)(fm,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return(0,Rt.jsx)(vn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},Kd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,Rt.jsx)(Rt.Fragment,{children:Zd({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),gm=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:m,background:c,advancedComponent:f=null})=>(0,Rt.jsx)(ae,{className:i(m),background:c??Yd,idSection:o,children:(0,Rt.jsx)(Kd,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:f})});var E=require("react/jsx-runtime"),um=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:r})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return(0,E.jsxs)(E.Fragment,{children:[e&&(0,E.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,E.jsx)("div",{className:i("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],r?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,m)=>(0,E.jsx)("div",{className:i("flex items-center justify-center md:basis-auto md:px-0",r?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:(0,E.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?(0,E.jsx)("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:(0,E.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):(0,E.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},m))}),t&&(0,E.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Jd=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>(0,E.jsxs)(E.Fragment,{children:[e&&(0,E.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,E.jsx)("div",{className:i("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((r,n)=>(0,E.jsx)("div",{className:i("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:r?.url?(0,E.jsx)("a",{href:r?.url,title:r?.name,target:r?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:(0,E.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,E.jsx)("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})}):(0,E.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:(0,E.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,E.jsx)("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})})},n))}),t&&(0,E.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ep=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return(0,E.jsx)(um,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return(0,E.jsx)(Jd,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return(0,E.jsx)(um,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},tp=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>(0,E.jsx)(E.Fragment,{children:ep({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),vm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:m="20px",isScrollSnap:c})=>(0,E.jsx)(ae,{className:t,idSection:a,background:o,children:(0,E.jsx)(tp,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:m,isScrollSnap:c})});var xm=require("react"),bm=require("@heroicons/react/16/solid"),ee=u(require("html-react-parser"),1);var l=require("react/jsx-runtime"),Tt=({btnLink:e,btnName:o,newTab:t})=>(0,l.jsx)(be,{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)(bm.ChevronRightIcon,{className:"h-4 w-4"})]})}),xn=({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:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&(0,l.jsx)("div",{className:"mx-auto h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ee.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ee.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),hm=({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:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ee.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ee.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,l.jsx)("style",{children:`
269
269
  .list-features-2 .feature-item {
270
270
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
271
271
  }
272
- `})]}),ym=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 w-full flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),wm=({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)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&(0,l.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,l.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Nm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Pm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative w-full",children:[a?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Cm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,r={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)?r.special:r.default,c=n[a]??-1,f=(d,g)=>{let v=d?.btnLink?"a":"div",y=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return(0,l.jsx)("div",{className:i("basis-1/2 px-2 lg:px-5",m,g===c&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:(0,l.jsxs)(v,{...y,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&(0,l.jsx)("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:(0,l.jsx)("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy"})}),(0,l.jsxs)("div",{className:"w-full flex-1 text-center",children:[d?.name&&(0,l.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:(0,ie.default)(d.name)}),d?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ie.default)(d.description)})]})]})},g)};return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,g)=>f(d,g))}),t&&(0,l.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Rm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[(0,l.jsxs)("div",{className:"flex w-full flex-1 flex-col p-5",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&(0,l.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&(0,l.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Tm=({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)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:text-left",e?.className)}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((r,n)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&(0,l.jsx)("div",{className:"h-10 w-10",children:(0,l.jsx)("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[r?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(r.name)}),r?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(r.description)})]}),r?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&(0,l.jsx)(N,{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)(G,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),km=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(w,{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:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,l.jsxs)("div",{className:i("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((r,n)=>(0,l.jsxs)("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[r?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(r.name)}),r?.description&&(0,l.jsx)("div",{className:"mt-2 text-gray-500",children:(0,ie.default)(r.description)})]}),r?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&(0,l.jsxs)("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[(0,l.jsx)("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),(0,l.jsx)("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:(0,l.jsx)("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&(0,l.jsx)(N,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),Sm=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=(0,xm.useState)(0);return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(w,{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:o&&(0,l.jsx)("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:(0,l.jsx)(nt,{type:"single",collapsible:!0,value:r.toString(),onValueChange:s=>{let m=parseInt(s);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((s,m)=>(0,l.jsxs)(st,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b 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)(lt,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:(0,ie.default)(s.name||"")}),(0,l.jsxs)(mt,{children:[s?.description&&(0,l.jsx)("div",{className:"text-muted-foreground mb-3",children:s.description}),s?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:s.btnLink,btnName:s?.btnName,newTab:s?.newTab})}),s?.image&&!a&&(0,l.jsx)("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:(0,l.jsx)(G,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:s?.image,alt:s?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),(0,l.jsx)("div",{className:i(a?"flex":"hidden md:flex"),children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?(0,l.jsx)(G,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):(0,l.jsx)("div",{className:"hidden md:flex",children:o?.[r]?.image?(0,l.jsx)(G,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain"})}):(0,l.jsx)("div",{className:"h-0 w-0"})})})})]}),t&&(0,l.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var ue=require("react/jsx-runtime"),op=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return(0,ue.jsx)(xn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,ue.jsx)(hm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,ue.jsx)(ym,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,ue.jsx)(wm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,ue.jsx)(Nm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,ue.jsx)(Pm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,ue.jsx)(Cm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,ue.jsx)(Rm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,ue.jsx)(Tm,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return(0,ue.jsx)(km,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return(0,ue.jsx)(Sm,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return(0,ue.jsx)(xn,{dataHeading:o,dataFeatures:t,dataButtons:a})}},ap=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>(0,ue.jsx)(ue.Fragment,{children:op({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Dm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:m})=>(0,ue.jsx)(oe,{className:t,idSection:a,background:o,children:(0,ue.jsx)(ap,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:m})});var Am=require("@heroicons/react/24/solid"),br=u(require("html-react-parser"),1),Lm=u(require("lodash"),1);var _o=require("react"),yo=require("motion/react"),Mm=u(require("react-use-measure"),1);var gr=require("react/jsx-runtime");function fr({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:m}){let[c,f]=(0,_o.useState)(t),[d,{width:g,height:v}]=(0,Mm.default)(),y=(0,yo.useMotionValue)(0),[L,V]=(0,_o.useState)(!1),[O,Y]=(0,_o.useState)(0);(0,_o.useEffect)(()=>{let U,R=(r==="horizontal"?g:v)+o,ve=n?-R/2:0,te=n?0:-R/2,io=Math.abs(te-ve)/c;if(L){let Vo=Math.abs(y.get()-te)/c;U=(0,yo.animate)(y,[y.get(),te],{ease:"linear",duration:Vo,onComplete:()=>{V(!1),Y(Dc=>Dc+1)}})}else U=(0,yo.animate)(y,[ve,te],{ease:"linear",duration:io,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{y.set(ve)}});return U?.stop},[O,y,c,g,v,o,L,r,n]);let ee=a?{onHoverStart:()=>{V(!0),f(a)},onHoverEnd:()=>{V(!0),f(t)},onTouchStart:()=>{V(!0),f(a)},onTouchEnd:()=>{V(!0),f(t)}}:{};return(0,gr.jsx)("div",{className:i("overflow-hidden",s),children:(0,gr.jsxs)(yo.motion.div,{className:i("flex w-max",m),style:{...r==="horizontal"?{x:y,paddingLeft:o}:{y},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:d,...ee,children:[e,e]})})}var ur=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],vr=({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()||""},xr=(e,o)=>o[e%o.length];var F=require("react/jsx-runtime"),rp=({avatar:e="",name:o="",index:t=0})=>{if(Lm.default.isEmpty(e)){let a=vr({name:o})??"",r=xr(t,ur);return(0,F.jsx)("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",r),children:a})}return(0,F.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,F.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Im=({testimonial:e,className:o,index:t})=>(0,F.jsx)("div",{className:i("testimonial-item",o),children:(0,F.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,F.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,F.jsx)(rp,{avatar:e.avatar,name:e.name,index:t}),(0,F.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,F.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,F.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,br.default)(e.position)})]})]}),(0,F.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,F.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,br.default)(e.shortTitle)}),e?.description&&(0,F.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,br.default)(e.description)})]}),(0,F.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,F.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&(0,F.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>(0,F.jsx)(Am.StarIcon,{className:`h-4 w-4 ${r<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),bn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return(0,F.jsxs)(F.Fragment,{children:[e&&(0,F.jsx)(w,{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,F.jsx)(F.Fragment,{children:r?(0,F.jsx)("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:(0,F.jsx)(fr,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,F.jsx)(Im,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,F.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,F.jsx)(Im,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,F.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var hn=require("@heroicons/react/24/solid"),hr=u(require("html-react-parser"),1);var S=require("react/jsx-runtime"),ip=({testimonial:e,className:o})=>(0,S.jsx)("div",{className:i("testimonial-item relative mb-1.5 h-full w-full cursor-grab overflow-hidden rounded-xl border border-gray-100 bg-white p-5 shadow-md md:p-10",o),children:(0,S.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,S.jsx)("div",{className:"relative hidden w-56 flex-none grow-0 items-start md:flex",children:(0,S.jsx)(G,{ratio:2/3,className:"w-full",children:(0,S.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),(0,S.jsxs)("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[(0,S.jsxs)("div",{className:"flex flex-none items-end space-x-4 md:order-2 lg:space-x-6",children:[(0,S.jsxs)("div",{className:"grow",children:[e?.name&&(0,S.jsx)("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&(0,S.jsx)("div",{className:"mt-1 max-w-sm text-xs font-normal text-gray-500",children:(0,hr.default)(e.position)})]}),(0,S.jsxs)("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&(0,S.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&(0,S.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,S.jsx)(hn.StarIcon,{className:`h-4 w-4 flex-none ${a<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&(0,S.jsx)("div",{className:"relative w-24 flex-none grow-0 md:hidden",children:(0,S.jsx)(G,{ratio:2/3,className:"w-full",children:(0,S.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),(0,S.jsxs)("div",{className:"flex flex-1 select-none flex-col md:flex-none",children:[(0,S.jsxs)("div",{className:"flex-1",children:[e?.shortTitle&&(0,S.jsx)("div",{className:"mb-1 flex-none text-base font-medium md:text-lg",children:(0,hr.default)(e.shortTitle)}),e?.description&&(0,S.jsx)("div",{className:"relative flex-1 text-justify text-sm md:text-base",children:(0,hr.default)(e.description)})]}),(0,S.jsxs)("div",{className:i("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&(0,S.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&(0,S.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,S.jsx)(hn.StarIcon,{className:`h-4 w-4 flex-none ${a<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),Em=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>(0,S.jsxs)(S.Fragment,{children:[e&&(0,S.jsx)(w,{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,S.jsxs)(ke,{className:"w-full",children:[(0,S.jsx)(Se,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>(0,S.jsx)(De,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12",children:(0,S.jsx)(ip,{testimonial:a})},r))}),(o??[]).length>1&&(0,S.jsx)(qo,{className:"mt-8"})]}),t&&(0,S.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var Fm=require("@heroicons/react/24/solid"),yr=u(require("html-react-parser"),1),zm=u(require("lodash"),1);var M=require("react/jsx-runtime"),np=({avatar:e="",name:o="",index:t=0})=>{if(zm.default.isEmpty(e)){let a=vr({name:o})??"",r=xr(t,ur);return(0,M.jsx)("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",r),children:a})}return(0,M.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,M.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Hm=({testimonial:e,className:o,index:t})=>(0,M.jsx)("div",{className:i("testimonial-item",o),children:(0,M.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,M.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,M.jsx)(np,{avatar:e.avatar,name:e.name,index:t}),(0,M.jsxs)("div",{className:"flex-1 pl-1",children:[(0,M.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,M.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,yr.default)(e.position)})]})]}),(0,M.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,M.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,yr.default)(e.shortTitle)}),e?.description&&(0,M.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,yr.default)(e.description)})]}),(0,M.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,M.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&(0,M.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>(0,M.jsx)(Fm.StarIcon,{className:`h-4 w-4 ${r<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),_m=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=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,M.jsx)(M.Fragment,{children:m.map((c,f)=>(0,M.jsx)(fr,{direction:"vertical",reverse:c.reverse,speed:c.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,g)=>(0,M.jsx)(Hm,{testimonial:d,index:g,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${f}-${g}`))},`slider-${f}`))});return(0,M.jsxs)(M.Fragment,{children:[e&&(0,M.jsx)(w,{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,M.jsx)(wo,{children:r?(0,M.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,M.jsx)(it,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,M.jsx)(it,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,M.jsx)(it,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):(0,M.jsx)("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((m,c)=>(0,M.jsx)(Hm,{testimonial:m,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,M.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,M.jsx)("style",{children:`
272
+ `})]}),ym=({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:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 w-full flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ee.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ee.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Nm=({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:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&(0,l.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,l.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ee.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ee.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),wm=({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:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ee.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ee.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Pm=({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:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative w-full",children:[a?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ee.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ee.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,l.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Cm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,r={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)?r.special:r.default,c=n[a]??-1,f=(d,g)=>{let v=d?.btnLink?"a":"div",y=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return(0,l.jsx)("div",{className:i("basis-1/2 px-2 lg:px-5",m,g===c&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:(0,l.jsxs)(v,{...y,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&(0,l.jsx)("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:(0,l.jsx)("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy"})}),(0,l.jsxs)("div",{className:"w-full flex-1 text-center",children:[d?.name&&(0,l.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:(0,ee.default)(d.name)}),d?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ee.default)(d.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:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,g)=>f(d,g))}),t&&(0,l.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Rm=({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:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[(0,l.jsxs)("div",{className:"flex w-full flex-1 flex-col p-5",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ee.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ee.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&(0,l.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&(0,l.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Tm=({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:i("text-center lg:text-left",e?.className)}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((r,n)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&(0,l.jsx)("div",{className:"h-10 w-10",children:(0,l.jsx)("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[r?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ee.default)(r.name)}),r?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ee.default)(r.description)})]}),r?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&(0,l.jsx)(w,{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)(G,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),km=({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:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,l.jsxs)("div",{className:i("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((r,n)=>(0,l.jsxs)("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[r?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,ee.default)(r.name)}),r?.description&&(0,l.jsx)("div",{className:"mt-2 text-gray-500",children:(0,ee.default)(r.description)})]}),r?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&(0,l.jsxs)("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[(0,l.jsx)("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),(0,l.jsx)("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:(0,l.jsx)("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&(0,l.jsx)(w,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),Sm=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=(0,xm.useState)(0);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:o&&(0,l.jsx)("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:(0,l.jsx)(nt,{type:"single",collapsible:!0,value:r.toString(),onValueChange:s=>{let m=parseInt(s);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((s,m)=>(0,l.jsxs)(st,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b 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)(lt,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:(0,ee.default)(s.name||"")}),(0,l.jsxs)(mt,{children:[s?.description&&(0,l.jsx)("div",{className:"text-muted-foreground mb-3",children:(0,ee.default)(s.description||"")}),s?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Tt,{btnLink:s.btnLink,btnName:s?.btnName,newTab:s?.newTab})}),s?.image&&!a&&(0,l.jsx)("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:(0,l.jsx)(G,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:s?.image,alt:s?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),(0,l.jsx)("div",{className:i(a?"flex":"hidden md:flex"),children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?(0,l.jsx)(G,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):(0,l.jsx)("div",{className:"hidden md:flex",children:o?.[r]?.image?(0,l.jsx)(G,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain"})}):(0,l.jsx)("div",{className:"h-0 w-0"})})})})]}),t&&(0,l.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var ue=require("react/jsx-runtime"),op=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return(0,ue.jsx)(xn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,ue.jsx)(hm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,ue.jsx)(ym,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,ue.jsx)(Nm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,ue.jsx)(wm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,ue.jsx)(Pm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,ue.jsx)(Cm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,ue.jsx)(Rm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,ue.jsx)(Tm,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return(0,ue.jsx)(km,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return(0,ue.jsx)(Sm,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return(0,ue.jsx)(xn,{dataHeading:o,dataFeatures:t,dataButtons:a})}},ap=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>(0,ue.jsx)(ue.Fragment,{children:op({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Dm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:m})=>(0,ue.jsx)(ae,{className:t,idSection:a,background:o,children:(0,ue.jsx)(ap,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:m})});var Am=require("@heroicons/react/24/solid"),br=u(require("html-react-parser"),1),Lm=u(require("lodash"),1);var _o=require("react"),yo=require("motion/react"),Mm=u(require("react-use-measure"),1);var gr=require("react/jsx-runtime");function fr({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:m}){let[c,f]=(0,_o.useState)(t),[d,{width:g,height:v}]=(0,Mm.default)(),y=(0,yo.useMotionValue)(0),[L,V]=(0,_o.useState)(!1),[O,Y]=(0,_o.useState)(0);(0,_o.useEffect)(()=>{let U,R=(r==="horizontal"?g:v)+o,ve=n?-R/2:0,oe=n?0:-R/2,io=Math.abs(oe-ve)/c;if(L){let Vo=Math.abs(y.get()-oe)/c;U=(0,yo.animate)(y,[y.get(),oe],{ease:"linear",duration:Vo,onComplete:()=>{V(!1),Y(Dc=>Dc+1)}})}else U=(0,yo.animate)(y,[ve,oe],{ease:"linear",duration:io,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{y.set(ve)}});return U?.stop},[O,y,c,g,v,o,L,r,n]);let te=a?{onHoverStart:()=>{V(!0),f(a)},onHoverEnd:()=>{V(!0),f(t)},onTouchStart:()=>{V(!0),f(a)},onTouchEnd:()=>{V(!0),f(t)}}:{};return(0,gr.jsx)("div",{className:i("overflow-hidden",s),children:(0,gr.jsxs)(yo.motion.div,{className:i("flex w-max",m),style:{...r==="horizontal"?{x:y,paddingLeft:o}:{y},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:d,...te,children:[e,e]})})}var ur=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],vr=({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()||""},xr=(e,o)=>o[e%o.length];var F=require("react/jsx-runtime"),rp=({avatar:e="",name:o="",index:t=0})=>{if(Lm.default.isEmpty(e)){let a=vr({name:o})??"",r=xr(t,ur);return(0,F.jsx)("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",r),children:a})}return(0,F.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,F.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Im=({testimonial:e,className:o,index:t})=>(0,F.jsx)("div",{className:i("testimonial-item",o),children:(0,F.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,F.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,F.jsx)(rp,{avatar:e.avatar,name:e.name,index:t}),(0,F.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,F.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,F.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,br.default)(e.position)})]})]}),(0,F.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,F.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,br.default)(e.shortTitle)}),e?.description&&(0,F.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,br.default)(e.description)})]}),(0,F.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,F.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,F.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>(0,F.jsx)(Am.StarIcon,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),bn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return(0,F.jsxs)(F.Fragment,{children:[e&&(0,F.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,F.jsx)(F.Fragment,{children:r?(0,F.jsx)("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:(0,F.jsx)(fr,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,F.jsx)(Im,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,F.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,F.jsx)(Im,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,F.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var hn=require("@heroicons/react/24/solid"),hr=u(require("html-react-parser"),1);var S=require("react/jsx-runtime"),ip=({testimonial:e,className:o})=>(0,S.jsx)("div",{className:i("testimonial-item relative mb-1.5 h-full w-full cursor-grab overflow-hidden rounded-xl border border-gray-100 bg-white p-5 shadow-md md:p-10",o),children:(0,S.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,S.jsx)("div",{className:"relative hidden w-56 flex-none grow-0 items-start md:flex",children:(0,S.jsx)(G,{ratio:2/3,className:"w-full",children:(0,S.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),(0,S.jsxs)("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[(0,S.jsxs)("div",{className:"flex flex-none items-end space-x-4 md:order-2 lg:space-x-6",children:[(0,S.jsxs)("div",{className:"grow",children:[e?.name&&(0,S.jsx)("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&(0,S.jsx)("div",{className:"mt-1 max-w-sm text-xs font-normal text-gray-500",children:(0,hr.default)(e.position)})]}),(0,S.jsxs)("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&(0,S.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,S.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,S.jsx)(hn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&(0,S.jsx)("div",{className:"relative w-24 flex-none grow-0 md:hidden",children:(0,S.jsx)(G,{ratio:2/3,className:"w-full",children:(0,S.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),(0,S.jsxs)("div",{className:"flex flex-1 select-none flex-col md:flex-none",children:[(0,S.jsxs)("div",{className:"flex-1",children:[e?.shortTitle&&(0,S.jsx)("div",{className:"mb-1 flex-none text-base font-medium md:text-lg",children:(0,hr.default)(e.shortTitle)}),e?.description&&(0,S.jsx)("div",{className:"relative flex-1 text-justify text-sm md:text-base",children:(0,hr.default)(e.description)})]}),(0,S.jsxs)("div",{className:i("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&(0,S.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,S.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,S.jsx)(hn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),Em=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>(0,S.jsxs)(S.Fragment,{children:[e&&(0,S.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,S.jsxs)(ke,{className:"w-full",children:[(0,S.jsx)(Se,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>(0,S.jsx)(De,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12",children:(0,S.jsx)(ip,{testimonial:a})},r))}),(o??[]).length>1&&(0,S.jsx)(qo,{className:"mt-8"})]}),t&&(0,S.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var Fm=require("@heroicons/react/24/solid"),yr=u(require("html-react-parser"),1),zm=u(require("lodash"),1);var M=require("react/jsx-runtime"),np=({avatar:e="",name:o="",index:t=0})=>{if(zm.default.isEmpty(e)){let a=vr({name:o})??"",r=xr(t,ur);return(0,M.jsx)("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",r),children:a})}return(0,M.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,M.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Hm=({testimonial:e,className:o,index:t})=>(0,M.jsx)("div",{className:i("testimonial-item",o),children:(0,M.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,M.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,M.jsx)(np,{avatar:e.avatar,name:e.name,index:t}),(0,M.jsxs)("div",{className:"flex-1 pl-1",children:[(0,M.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,M.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,yr.default)(e.position)})]})]}),(0,M.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,M.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,yr.default)(e.shortTitle)}),e?.description&&(0,M.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,yr.default)(e.description)})]}),(0,M.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,M.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,M.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>(0,M.jsx)(Fm.StarIcon,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),_m=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=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,M.jsx)(M.Fragment,{children:m.map((c,f)=>(0,M.jsx)(fr,{direction:"vertical",reverse:c.reverse,speed:c.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,g)=>(0,M.jsx)(Hm,{testimonial:d,index:g,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${f}-${g}`))},`slider-${f}`))});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}),a>0&&(0,M.jsx)(No,{children:r?(0,M.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,M.jsx)(it,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,M.jsx)(it,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,M.jsx)(it,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):(0,M.jsx)("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((m,c)=>(0,M.jsx)(Hm,{testimonial:m,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,M.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,M.jsx)("style",{children:`
273
273
  .mark-vertical-marquee {
274
274
  mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
275
275
  }
276
- `})]})};var kt=require("react/jsx-runtime"),sp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,kt.jsx)(bn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,kt.jsx)(_m,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,kt.jsx)(Em,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,kt.jsx)(bn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},lp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,kt.jsx)(kt.Fragment,{children:sp({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Bm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>(0,kt.jsx)(oe,{className:i(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,kt.jsx)(lp,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});var yn=u(require("html-react-parser"),1);var B=require("react/jsx-runtime"),wn=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>(0,B.jsx)(nt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>(0,B.jsxs)(st,{value:n.title,className:"last:border-none",children:[(0,B.jsx)(lt,{className:"md:text-lg",children:n.title}),(0,B.jsx)(mt,{className:"prose max-w-none",children:(0,yn.default)(n.description)})]},s))});return(0,B.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,B.jsx)("div",{className:"relative",children:(0,B.jsxs)("div",{className:"md:sticky md:top-14",children:[o&&(0,B.jsx)(w,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),t&&(0,B.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&(0,B.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,B.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Vm=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},m=c=>(0,B.jsx)(nt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((f,d)=>(0,B.jsxs)(st,{value:f.title,className:"last:border-none",children:[(0,B.jsx)(lt,{className:"md:text-lg",children:f.title}),(0,B.jsx)(mt,{className:"prose max-w-none",children:(0,yn.default)(f.description)})]},d))});return(0,B.jsxs)(B.Fragment,{children:[o&&(0,B.jsx)(w,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),e&&(0,B.jsxs)(vt,{defaultValue:e[0]?.title,children:[e?.length>1&&(0,B.jsxs)(pt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[(0,B.jsx)(ft,{className:"mb-3 text-center",children:(0,B.jsx)(Ze,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",size:"base",children:e.map((c,f)=>(0,B.jsx)(Ke,{value:c.title,children:c.title},c.title+f))})}),(0,B.jsx)(gt,{}),(0,B.jsx)(ut,{})]}),e.map((c,f)=>(0,B.jsx)(Je,{className:"max-w-3xl mx-auto mt-0",value:c.title,children:m(c)},c.title+f))]}),t&&(0,B.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};var $t=require("react/jsx-runtime"),mp=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return(0,$t.jsx)(wn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return(0,$t.jsx)(Vm,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return(0,$t.jsx)(wn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},cp=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>(0,$t.jsx)($t.Fragment,{children:mp({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Om=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:m=1})=>(0,$t.jsx)(oe,{className:t,idSection:r,background:a,children:(0,$t.jsx)(cp,{dataHeading:e,dataFAQ:o,template:m,dataHorizontalScroll:s,dataButtons:n})});var wr=u(require("react"),1),Wm=require("@heroicons/react/20/solid"),$m=u(require("html-react-parser"),1);var I=require("react/jsx-runtime"),dp=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,I.jsxs)("picture",{children:[(0,I.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,I.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,I.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,I.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,I.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(be,{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,I.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,I.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Nn=(0,wr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(d,g,v)=>{d?.preventDefault(),d?.stopPropagation(),a?a(g):window.open(v,"_blank")},f=(d,g)=>(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((v,y)=>(0,I.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,I.jsx)("div",{onClick:L=>c(L,v?.id,v?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:(0,I.jsx)(dp,{news:v})},v?.id)},y))}),d?.isShowBtn&&(0,I.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,I.jsxs)(Be,{action:d?.btnUrl||r&&(()=>r?.(g)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[(0,$m.default)(d.btnName||"Xem th\xEAm"),d?.isLoading?(0,I.jsx)(No,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&(0,I.jsx)(Wm.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||g);return(0,I.jsxs)(wr.default.Fragment,{children:[e&&(0,I.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?(0,I.jsxs)(vt,{defaultValue:t[0]?.title,children:[(0,I.jsxs)(pt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,I.jsx)(ft,{className:"mb-6 text-center",children:(0,I.jsx)(Ze,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,g)=>(0,I.jsx)(Ke,{value:d.title,children:d.title},d.title+g))})}),(0,I.jsx)(gt,{}),(0,I.jsx)(ut,{})]}),t.map((d,g)=>(0,I.jsx)(Je,{value:d.title,children:f(d,g)},d.title+g))]}):t?.length===1&&t[0]&&f(t[0],0)]})});var oo=require("react/jsx-runtime"),pp=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,oo.jsx)(Nn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,oo.jsx)(Nn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},fp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,oo.jsx)(oo.Fragment,{children:pp({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Gm=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,oo.jsx)(oe,{className:i(a),background:r,children:(0,oo.jsx)(fp,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:m})});var de=require("react/jsx-runtime"),jm=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,de.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,de.jsx)(w,{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,de.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),gp=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,de.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,de.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,de.jsx)(w,{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,de.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,de.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,de.jsx)(G,{ratio:4/3,children:(0,de.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),up=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return(0,de.jsx)(jm,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return(0,de.jsx)(gp,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return(0,de.jsx)(jm,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},vp=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>(0,de.jsx)(de.Fragment,{children:up({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),Um=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:m})=>(0,de.jsx)(oe,{className:t,idSection:a,background:o,children:(0,de.jsx)(vp,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:m})});var Pn=u(require("react"),1),Nr=u(require("html-react-parser"),1);var je=require("react/jsx-runtime"),xp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,je.jsxs)("div",{className:" text-center",children:[(0,je.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,Nr.default)(t??"")}),(0,je.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,Nr.default)(o??"")}),a&&(0,je.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,Nr.default)(a??"")})]})},Pr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,je.jsxs)(Pn.default.Fragment,{children:[t&&(0,je.jsx)(w,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&(0,je.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,r)=>(0,je.jsx)(Pn.default.Fragment,{children:(0,je.jsx)(xp,{metric:a})},r))}),o&&(0,je.jsx)(N,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Cn=u(require("react"),1),Cr=u(require("html-react-parser"),1);var Ue=require("react/jsx-runtime"),bp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ue.jsxs)("div",{className:" text-center md:text-left",children:[(0,Ue.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:(0,Cr.default)(t??"")}),(0,Ue.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,Cr.default)(o??"")}),a&&(0,Ue.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,Cr.default)(a??"")})]})},Rn=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ue.jsxs)(Cn.default.Fragment,{children:[t&&(0,Ue.jsx)(w,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&(0,Ue.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,r)=>(0,Ue.jsx)(Cn.default.Fragment,{children:(0,Ue.jsx)(bp,{metric:a})},r))}),o&&(0,Ue.jsx)(N,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Gt=require("react/jsx-runtime"),hp=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,Gt.jsx)(Pr,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,Gt.jsx)(Rn,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,Gt.jsx)(Pr,{dataMetrics:o,dataButtons:a,dataHeading:e})}},yp=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,Gt.jsx)(Gt.Fragment,{children:hp({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Qm=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:r,template:n})=>(0,Gt.jsx)(oe,{className:i(r),background:a,children:(0,Gt.jsx)(yp,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});var qm=require("react"),va=require("react/jsx-runtime"),Xm=(0,qm.forwardRef)(({className:e,title:o,children:t},a)=>(0,va.jsxs)("div",{className:e,ref:a,children:[(0,va.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,va.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 Zm=require("react");var Qe=require("react/jsx-runtime"),wp=()=>(0,Qe.jsx)("div",{className:"p-3 border rounded-lg",children:(0,Qe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Qe.jsx)(ga,{className:"rounded-md h-9 w-9 "}),(0,Qe.jsx)("div",{className:"flex-1",children:(0,Qe.jsx)(ga,{className:"w-48 h-5 "})}),(0,Qe.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Np(){return(0,Qe.jsx)(Qe.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,Qe.jsx)(wp,{},o))})}var Ym=Np;var ye=require("react/jsx-runtime"),Pp=({paymentMethod:e})=>(0,ye.jsx)(pa,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,ye.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,ye.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,ye.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,ye.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,ye.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,ye.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Km=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=(0,Zm.useCallback)(s=>a?.(s),[a]);return(0,ye.jsxs)(ye.Fragment,{children:[e&&(0,ye.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,ye.jsx)(Ym,{}):(0,ye.jsx)(da,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,ye.jsx)(Pp,{paymentMethod:s},s.id))})]})};var Tn=require("react");var Sn=require("react/jsx-runtime"),Cp=(0,Tn.forwardRef)(({children:e,className:o},t)=>(0,Sn.jsx)("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),kn=(0,Tn.forwardRef)(({children:e,className:o,...t},a)=>(0,Sn.jsx)(Cp,{ref:a,className:o,...t,children:e}));kn.displayName="Payment";var Jm=require("react");var xa=require("react/jsx-runtime"),ec=(0,Jm.forwardRef)(({className:e,children:o},t)=>(0,xa.jsxs)("div",{className:i("",e),ref:t,children:[(0,xa.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,xa.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var tc=require("react");var ac=require("react/jsx-runtime"),oc=(0,tc.forwardRef)(({className:e,children:o},t)=>(0,ac.jsx)("div",{className:i("pb-5",e),ref:t,children:o}));var ic=require("react");var Rr=require("@heroicons/react/20/solid");var X=require("react/jsx-runtime"),Rp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,X.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,X.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,X.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,X.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,X.jsx)(Eo,{message:o,type:"success",icon:(0,X.jsx)(Rr.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Tp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,X.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,X.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,X.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,X.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,X.jsx)(Eo,{message:o,type:"error",icon:(0,X.jsx)(Rr.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),kp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,X.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,X.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,X.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,X.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,X.jsx)(Eo,{message:o,type:"neutral"})]}),rc=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,X.jsx)(Rp,{status:e,title:o,message:t,iconPaymentResult:a||(0,X.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,X.jsx)(Tp,{status:e,title:o,message:t,iconPaymentResult:a||(0,X.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,X.jsx)(kp,{status:e,title:o,message:t,iconPaymentResult:a||(0,X.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var Tr=require("react/jsx-runtime"),nc=(0,ic.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>(0,Tr.jsxs)("div",{ref:s,className:i("rounded-lg p-4",e),children:[(0,Tr.jsx)(rc,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));var Sr=require("react");var Bo=require("react/jsx-runtime"),kr=({content:e})=>(0,Bo.jsxs)("picture",{children:[(0,Bo.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,Bo.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,Bo.jsx)(Be,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var ao=require("react/jsx-runtime"),Sp=({template:e,content:o})=>{switch(e){case 1:return(0,ao.jsx)(kr,{content:o});default:return(0,ao.jsx)(kr,{content:o})}},sc=(0,Sr.forwardRef)(({template:e,content:o},t)=>((0,Sr.useEffect)(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),(0,ao.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,ao.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,ao.jsx)("div",{className:"content",children:Sp({template:e,content:o})})}),(0,ao.jsx)("style",{children:`
276
+ `})]})};var kt=require("react/jsx-runtime"),sp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,kt.jsx)(bn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,kt.jsx)(_m,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,kt.jsx)(Em,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,kt.jsx)(bn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},lp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,kt.jsx)(kt.Fragment,{children:sp({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Bm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>(0,kt.jsx)(ae,{className:i(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,kt.jsx)(lp,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});var yn=u(require("html-react-parser"),1);var B=require("react/jsx-runtime"),Nn=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>(0,B.jsx)(nt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>(0,B.jsxs)(st,{value:n.title,className:"last:border-none",children:[(0,B.jsx)(lt,{className:"md:text-lg",children:n.title}),(0,B.jsx)(mt,{className:"prose max-w-none",children:(0,yn.default)(n.description)})]},s))});return(0,B.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,B.jsx)("div",{className:"relative",children:(0,B.jsxs)("div",{className:"md:sticky md:top-14",children:[o&&(0,B.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:i(o.className)}),t&&(0,B.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&(0,B.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,B.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Vm=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},m=c=>(0,B.jsx)(nt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((f,d)=>(0,B.jsxs)(st,{value:f.title,className:"last:border-none",children:[(0,B.jsx)(lt,{className:"md:text-lg",children:f.title}),(0,B.jsx)(mt,{className:"prose max-w-none",children:(0,yn.default)(f.description)})]},d))});return(0,B.jsxs)(B.Fragment,{children:[o&&(0,B.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:i(o.className)}),e&&(0,B.jsxs)(vt,{defaultValue:e[0]?.title,children:[e?.length>1&&(0,B.jsxs)(pt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[(0,B.jsx)(ft,{className:"mb-3 text-center",children:(0,B.jsx)(Ze,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",size:"base",children:e.map((c,f)=>(0,B.jsx)(Ke,{value:c.title,children:c.title},c.title+f))})}),(0,B.jsx)(gt,{}),(0,B.jsx)(ut,{})]}),e.map((c,f)=>(0,B.jsx)(Je,{className:"max-w-3xl mx-auto mt-0",value:c.title,children:m(c)},c.title+f))]}),t&&(0,B.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};var $t=require("react/jsx-runtime"),mp=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return(0,$t.jsx)(Nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return(0,$t.jsx)(Vm,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return(0,$t.jsx)(Nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},cp=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>(0,$t.jsx)($t.Fragment,{children:mp({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Om=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:m=1})=>(0,$t.jsx)(ae,{className:t,idSection:r,background:a,children:(0,$t.jsx)(cp,{dataHeading:e,dataFAQ:o,template:m,dataHorizontalScroll:s,dataButtons:n})});var Nr=u(require("react"),1),Wm=require("@heroicons/react/20/solid"),$m=u(require("html-react-parser"),1);var I=require("react/jsx-runtime"),dp=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,I.jsxs)("picture",{children:[(0,I.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,I.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,I.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,I.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,I.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(be,{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,I.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,I.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},wn=(0,Nr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(d,g,v)=>{d?.preventDefault(),d?.stopPropagation(),a?a(g):window.open(v,"_blank")},f=(d,g)=>(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((v,y)=>(0,I.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,I.jsx)("div",{onClick:L=>c(L,v?.id,v?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:(0,I.jsx)(dp,{news:v})},v?.id)},y))}),d?.isShowBtn&&(0,I.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,I.jsxs)(Be,{action:d?.btnUrl||r&&(()=>r?.(g)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[(0,$m.default)(d.btnName||"Xem th\xEAm"),d?.isLoading?(0,I.jsx)(wo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&(0,I.jsx)(Wm.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||g);return(0,I.jsxs)(Nr.default.Fragment,{children:[e&&(0,I.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?(0,I.jsxs)(vt,{defaultValue:t[0]?.title,children:[(0,I.jsxs)(pt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,I.jsx)(ft,{className:"mb-6 text-center",children:(0,I.jsx)(Ze,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,g)=>(0,I.jsx)(Ke,{value:d.title,children:d.title},d.title+g))})}),(0,I.jsx)(gt,{}),(0,I.jsx)(ut,{})]}),t.map((d,g)=>(0,I.jsx)(Je,{value:d.title,children:f(d,g)},d.title+g))]}):t?.length===1&&t[0]&&f(t[0],0)]})});var oo=require("react/jsx-runtime"),pp=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,oo.jsx)(wn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,oo.jsx)(wn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},fp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,oo.jsx)(oo.Fragment,{children:pp({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Gm=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,oo.jsx)(ae,{className:i(a),background:r,children:(0,oo.jsx)(fp,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:m})});var de=require("react/jsx-runtime"),jm=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,de.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,de.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,de.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),gp=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,de.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,de.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,de.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,de.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,de.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,de.jsx)(G,{ratio:4/3,children:(0,de.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),up=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return(0,de.jsx)(jm,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return(0,de.jsx)(gp,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return(0,de.jsx)(jm,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},vp=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>(0,de.jsx)(de.Fragment,{children:up({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),Um=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:m})=>(0,de.jsx)(ae,{className:t,idSection:a,background:o,children:(0,de.jsx)(vp,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:m})});var Pn=u(require("react"),1),wr=u(require("html-react-parser"),1);var je=require("react/jsx-runtime"),xp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,je.jsxs)("div",{className:" text-center",children:[(0,je.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,wr.default)(t??"")}),(0,je.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,wr.default)(o??"")}),a&&(0,je.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,wr.default)(a??"")})]})},Pr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,je.jsxs)(Pn.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:i(t?.className)}),e&&e?.length>0&&(0,je.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,r)=>(0,je.jsx)(Pn.default.Fragment,{children:(0,je.jsx)(xp,{metric:a})},r))}),o&&(0,je.jsx)(w,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Cn=u(require("react"),1),Cr=u(require("html-react-parser"),1);var Ue=require("react/jsx-runtime"),bp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ue.jsxs)("div",{className:" text-center md:text-left",children:[(0,Ue.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:(0,Cr.default)(t??"")}),(0,Ue.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,Cr.default)(o??"")}),a&&(0,Ue.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,Cr.default)(a??"")})]})},Rn=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ue.jsxs)(Cn.default.Fragment,{children:[t&&(0,Ue.jsx)(N,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&(0,Ue.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,r)=>(0,Ue.jsx)(Cn.default.Fragment,{children:(0,Ue.jsx)(bp,{metric:a})},r))}),o&&(0,Ue.jsx)(w,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Gt=require("react/jsx-runtime"),hp=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,Gt.jsx)(Pr,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,Gt.jsx)(Rn,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,Gt.jsx)(Pr,{dataMetrics:o,dataButtons:a,dataHeading:e})}},yp=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,Gt.jsx)(Gt.Fragment,{children:hp({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Qm=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:r,template:n})=>(0,Gt.jsx)(ae,{className:i(r),background:a,children:(0,Gt.jsx)(yp,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});var qm=require("react"),va=require("react/jsx-runtime"),Xm=(0,qm.forwardRef)(({className:e,title:o,children:t},a)=>(0,va.jsxs)("div",{className:e,ref:a,children:[(0,va.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,va.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 Zm=require("react");var Qe=require("react/jsx-runtime"),Np=()=>(0,Qe.jsx)("div",{className:"p-3 border rounded-lg",children:(0,Qe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Qe.jsx)(ga,{className:"rounded-md h-9 w-9 "}),(0,Qe.jsx)("div",{className:"flex-1",children:(0,Qe.jsx)(ga,{className:"w-48 h-5 "})}),(0,Qe.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function wp(){return(0,Qe.jsx)(Qe.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,Qe.jsx)(Np,{},o))})}var Ym=wp;var ye=require("react/jsx-runtime"),Pp=({paymentMethod:e})=>(0,ye.jsx)(pa,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,ye.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,ye.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,ye.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,ye.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,ye.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,ye.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Km=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=(0,Zm.useCallback)(s=>a?.(s),[a]);return(0,ye.jsxs)(ye.Fragment,{children:[e&&(0,ye.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,ye.jsx)(Ym,{}):(0,ye.jsx)(da,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,ye.jsx)(Pp,{paymentMethod:s},s.id))})]})};var Tn=require("react");var Sn=require("react/jsx-runtime"),Cp=(0,Tn.forwardRef)(({children:e,className:o},t)=>(0,Sn.jsx)("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),kn=(0,Tn.forwardRef)(({children:e,className:o,...t},a)=>(0,Sn.jsx)(Cp,{ref:a,className:o,...t,children:e}));kn.displayName="Payment";var Jm=require("react");var xa=require("react/jsx-runtime"),ec=(0,Jm.forwardRef)(({className:e,children:o},t)=>(0,xa.jsxs)("div",{className:i("",e),ref:t,children:[(0,xa.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,xa.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var tc=require("react");var ac=require("react/jsx-runtime"),oc=(0,tc.forwardRef)(({className:e,children:o},t)=>(0,ac.jsx)("div",{className:i("pb-5",e),ref:t,children:o}));var ic=require("react");var Rr=require("@heroicons/react/20/solid");var X=require("react/jsx-runtime"),Rp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,X.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,X.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,X.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,X.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,X.jsx)(Eo,{message:o,type:"success",icon:(0,X.jsx)(Rr.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Tp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,X.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,X.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,X.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,X.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,X.jsx)(Eo,{message:o,type:"error",icon:(0,X.jsx)(Rr.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),kp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,X.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,X.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,X.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,X.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,X.jsx)(Eo,{message:o,type:"neutral"})]}),rc=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,X.jsx)(Rp,{status:e,title:o,message:t,iconPaymentResult:a||(0,X.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,X.jsx)(Tp,{status:e,title:o,message:t,iconPaymentResult:a||(0,X.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,X.jsx)(kp,{status:e,title:o,message:t,iconPaymentResult:a||(0,X.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var Tr=require("react/jsx-runtime"),nc=(0,ic.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>(0,Tr.jsxs)("div",{ref:s,className:i("rounded-lg p-4",e),children:[(0,Tr.jsx)(rc,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));var Sr=require("react");var Bo=require("react/jsx-runtime"),kr=({content:e})=>(0,Bo.jsxs)("picture",{children:[(0,Bo.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,Bo.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,Bo.jsx)(Be,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var ao=require("react/jsx-runtime"),Sp=({template:e,content:o})=>{switch(e){case 1:return(0,ao.jsx)(kr,{content:o});default:return(0,ao.jsx)(kr,{content:o})}},sc=(0,Sr.forwardRef)(({template:e,content:o},t)=>((0,Sr.useEffect)(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),(0,ao.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,ao.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,ao.jsx)("div",{className:"content",children:Sp({template:e,content:o})})}),(0,ao.jsx)("style",{children:`
277
277
  .container-topbar .content {
278
278
  width: 100%;
279
279
  aspect-ratio: 1088/50;
@@ -291,7 +291,7 @@
291
291
  aspect-ratio: 720/88;
292
292
  }
293
293
  }
294
- `})]})));var Rc=u(require("color"),1),Tc=u(require("tailwindcss/plugin.js"),1);var lc={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 mc={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var cc={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var dc={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var pc={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var fc={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var gc={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var uc={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var vc={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var xc={white:"#ffffff",black:"#000000",blue:mc,green:cc,pink:dc,purple:pc,red:fc,yellow:gc,gray:vc,orange:uc};var Dn={...xc};var bc={"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 St="250ms",hc={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":St},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":St},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":St},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":St},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":St},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":St},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":St},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":St},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":St},".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":St}};var yc={".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 wc={".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 Nc={...yc,...hc,...wc};var Pc=require("flat");function Dp(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 Cc=e=>Dp((0,Pc.flatten)(e,{safe:!0,delimiter:"-"}));var Mp=e=>{let o={utilities:{},colors:{}},t=Cc(Dn),a=bc,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[m,c,f]=(0,Rc.default)(s).rgb().array(),d=`--${e}-${n}`;o.utilities[r][d]=`${m} ${c} ${f}`,o.colors[n]=`rgb(var(${d}) / <alpha-value>)`}catch(m){console.log("error",m?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let m=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,f])=>{let d=`${m}-${c}`;o.utilities[r][d]=f});else{let c=m.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][m]=c}}),o},kc=()=>{let e="mobase",o=Mp(e);return(0,Tc.default)(({addBase:t,addUtilities:a,addComponents:r})=>{r({".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({...Nc})},{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:{...Dn,...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)`},...lc}}})};var k=require("react/jsx-runtime"),Sc=(0,k.jsxs)(k.Fragment,{children:[(0,k.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,k.jsx)("meta",{name:"distribution",content:"Global"}),(0,k.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,k.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,k.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,k.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,k.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,k.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,k.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,k.jsx)("meta",{name:"language",content:"vietnamese"}),(0,k.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,k.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,k.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,k.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,k.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,k.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,k.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,k.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,k.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,k.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,k.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,k.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,k.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
294
+ `})]})));var Rc=u(require("color"),1),Tc=u(require("tailwindcss/plugin.js"),1);var lc={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 mc={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var cc={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var dc={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var pc={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var fc={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var gc={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var uc={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var vc={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var xc={white:"#ffffff",black:"#000000",blue:mc,green:cc,pink:dc,purple:pc,red:fc,yellow:gc,gray:vc,orange:uc};var Dn={...xc};var bc={"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 St="250ms",hc={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":St},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":St},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":St},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":St},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":St},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":St},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":St},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":St},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":St},".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":St}};var yc={".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 Nc={".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 wc={...yc,...hc,...Nc};var Pc=require("flat");function Dp(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 Cc=e=>Dp((0,Pc.flatten)(e,{safe:!0,delimiter:"-"}));var Mp=e=>{let o={utilities:{},colors:{}},t=Cc(Dn),a=bc,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[m,c,f]=(0,Rc.default)(s).rgb().array(),d=`--${e}-${n}`;o.utilities[r][d]=`${m} ${c} ${f}`,o.colors[n]=`rgb(var(${d}) / <alpha-value>)`}catch(m){console.log("error",m?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let m=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,f])=>{let d=`${m}-${c}`;o.utilities[r][d]=f});else{let c=m.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][m]=c}}),o},kc=()=>{let e="mobase",o=Mp(e);return(0,Tc.default)(({addBase:t,addUtilities:a,addComponents:r})=>{r({".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({...wc})},{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:{...Dn,...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)`},...lc}}})};var k=require("react/jsx-runtime"),Sc=(0,k.jsxs)(k.Fragment,{children:[(0,k.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,k.jsx)("meta",{name:"distribution",content:"Global"}),(0,k.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,k.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,k.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,k.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,k.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,k.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,k.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,k.jsx)("meta",{name:"language",content:"vietnamese"}),(0,k.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,k.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,k.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,k.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,k.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,k.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,k.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,k.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,k.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,k.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,k.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,k.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,k.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,k.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
295
295
  "@context": "https://schema.org/",
296
296
  "@type": "WebSite",
297
297
  "@id":"https://www.momo.vn/#website",