@momo-webplatform/mobase 0.2.94 → 0.2.96
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.
- package/dist/cjs/index.cjs +16 -16
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +21 -21
- package/dist/esm/index.js.map +1 -1
- package/package.json +17 -17
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Bd=Object.create;var qa=Object.defineProperty;var Od=Object.getOwnPropertyDescriptor;var Vd=Object.getOwnPropertyNames;var Wd=Object.getPrototypeOf,$d=Object.prototype.hasOwnProperty;var Gd=(e,o)=>{for(var t in o)qa(e,t,{get:o[t],enumerable:!0})},Ps=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of Vd(o))!$d.call(e,r)&&r!==t&&qa(e,r,{get:()=>o[r],enumerable:!(a=Od(o,r))||a.enumerable});return e};var v=(e,o,t)=>(t=e!=null?Bd(Wd(e)):{},Ps(o||!e||!e.__esModule?qa(t,"default",{value:e,enumerable:!0}):t,e)),jd=e=>Ps(qa({},"__esModule",{value:!0}),e);var eg={};Gd(eg,{Accordion:()=>yt,AccordionContent:()=>Pt,AccordionItem:()=>wt,AccordionTrigger:()=>Nt,ActionButton:()=>qe,AlertDialog:()=>ml,AlertDialogAction:()=>Hi,AlertDialogCancel:()=>_i,AlertDialogContent:()=>Ai,AlertDialogDescription:()=>Ei,AlertDialogFooter:()=>Fi,AlertDialogHeader:()=>Li,AlertDialogOverlay:()=>br,AlertDialogPortal:()=>Ii,AlertDialogTitle:()=>zi,AlertDialogTrigger:()=>cl,AspectRatio:()=>U,Badge:()=>fm,BlogSection:()=>Xs,Breadcrumb:()=>ui,BreadcrumbEllipsis:()=>wi,BreadcrumbItem:()=>hi,BreadcrumbLink:()=>xi,BreadcrumbList:()=>vi,BreadcrumbPage:()=>bi,BreadcrumbSeparator:()=>yi,Button:()=>_e,ButtonsBlock:()=>N,CTASection:()=>_c,Calendar:()=>ba,Callout:()=>ta,Card:()=>pn,CardContent:()=>vn,CardDescription:()=>un,CardFooter:()=>hn,CardHeader:()=>fn,CardTitle:()=>gn,Carousel:()=>Ce,CarouselContent:()=>Re,CarouselDots:()=>ko,CarouselItem:()=>we,CarouselNext:()=>To,CarouselPrevious:()=>Ro,Checkbox:()=>xa,ChoiceboxGroup:()=>za,ChoiceboxGroupItem:()=>Ea,ChoiceboxMultiItem:()=>Tn,Combobox:()=>Zl,ComboboxContent:()=>Yl,ComboboxTrigger:()=>Xl,Command:()=>Ar,CommandDialog:()=>Ul,CommandEmpty:()=>yn,CommandGroup:()=>wn,CommandInput:()=>xn,CommandItem:()=>Pn,CommandList:()=>bn,CommandSeparator:()=>Nn,CommandShortcut:()=>Cn,Comment:()=>Tm,DatePicker:()=>ol,DateSelect:()=>ll,Dialog:()=>Ue,DialogBody:()=>st,DialogClose:()=>Xa,DialogContent:()=>Be,DialogDescription:()=>gi,DialogFooter:()=>fi,DialogHeader:()=>No,DialogOverlay:()=>Ya,DialogPortal:()=>pi,DialogQr:()=>so,DialogTitle:()=>Po,DialogTrigger:()=>Wo,Drawer:()=>ms,DrawerBody:()=>vs,DrawerClose:()=>od,DrawerContent:()=>ds,DrawerDescription:()=>us,DrawerFooter:()=>fs,DrawerHeader:()=>ps,DrawerOverlay:()=>si,DrawerPortal:()=>cs,DrawerTitle:()=>gs,DrawerTrigger:()=>td,DropdownMenu:()=>Om,DropdownMenuCheckboxItem:()=>Bn,DropdownMenuContent:()=>Hn,DropdownMenuGroup:()=>Wm,DropdownMenuItem:()=>_n,DropdownMenuLabel:()=>Vn,DropdownMenuPortal:()=>$m,DropdownMenuRadioGroup:()=>jm,DropdownMenuRadioItem:()=>On,DropdownMenuSeparator:()=>Wn,DropdownMenuShortcut:()=>$n,DropdownMenuSub:()=>Gm,DropdownMenuSubContent:()=>En,DropdownMenuSubTrigger:()=>zn,DropdownMenuTrigger:()=>Vm,FAQSection:()=>Lc,FeatureSection:()=>Nc,Footer:()=>Ql,Form:()=>Br,FormControl:()=>Va,FormDescription:()=>Wa,FormField:()=>Or,FormItem:()=>Ba,FormLabel:()=>Oa,FormLeadSupport:()=>vd,FormMessage:()=>$a,GuideSection:()=>vl,HeaderNavigation:()=>cn,Heading:()=>Ja,HeadingBlock:()=>w,HeadingGroup:()=>tr,HeadingSub:()=>er,HeadingTagline:()=>Ka,HeroSection:()=>oc,HorizontalContent:()=>Tt,HorizontalNext:()=>St,HorizontalPrevious:()=>kt,HorizontalScroll:()=>Rt,HowItWorksSection:()=>Xm,IconButton:()=>ve,InputOTP:()=>hs,InputOTPGroup:()=>xs,InputOTPSeparator:()=>ys,InputOTPSlot:()=>bs,LightBoxGalleryContent:()=>Fr,LightboxGallery:()=>Lr,LightboxThumbnail:()=>sm,MetricsSection:()=>Bc,NavigationMenu:()=>Ra,NavigationMenuContent:()=>Ma,NavigationMenuItem:()=>ka,NavigationMenuLink:()=>Jo,NavigationMenuList:()=>Ta,NavigationMenuTrigger:()=>Da,NewsSection:()=>Ec,Pagination:()=>$i,Payment:()=>ss,PaymentGuide:()=>mi,PaymentGuideDialog:()=>ci,PaymentInvoice:()=>Vc,PaymentMethods:()=>Gc,PaymentResult:()=>Kc,PaymentResultContent:()=>qc,PaymentResultFooter:()=>Qc,Popover:()=>Uo,PopoverContent:()=>So,PopoverTrigger:()=>qo,ProgressSteps:()=>Lm,ProgressStepsItem:()=>Am,ProgressStepsItemTrigger:()=>Im,Progressbar:()=>Mn,QRPayment:()=>cd,RadioGroup:()=>sn,RadioGroupItem:()=>ln,ReadMoreLite:()=>Er,SearchBar:()=>om,SectionBlock:()=>Y,Select:()=>Xo,SelectContent:()=>Mo,SelectGroup:()=>Zo,SelectItem:()=>Zt,SelectLabel:()=>Si,SelectScrollDownButton:()=>hr,SelectScrollUpButton:()=>vr,SelectSeparator:()=>Di,SelectTrigger:()=>Do,SelectValue:()=>Yo,SiteMeta:()=>Hd,Skeleton:()=>_a,Slider:()=>In,SocialProofSection:()=>mc,Spinner:()=>zr,Stepper:()=>an,Switch:()=>Aa,Tabs:()=>Dt,TabsContent:()=>dt,TabsList:()=>mt,TabsTrigger:()=>ct,TestimonialSection:()=>Ic,TextArea:()=>Nr,TextButton:()=>Pe,TextInput:()=>kr,ToastAction:()=>Xi,Toaster:()=>Pl,Tooltip:()=>Rl,TooltipArrow:()=>en,TooltipContent:()=>tn,TooltipProvider:()=>Cl,TooltipTrigger:()=>Tl,Topbar:()=>Jc,badgeVariants:()=>kn,buttonVariants:()=>nt,mobaseTW:()=>Ed,navigationMenuTriggerStyle:()=>Sa,textButtonVariants:()=>Pi,toast:()=>Qi,useFormField:()=>ra,useToast:()=>Tr});module.exports=jd(eg);var fa=v(require("react"),1),Ss=require("@heroicons/react/20/solid"),Qe=v(require("@radix-ui/react-accordion"),1);var Qd=v(require("react"),1),Rs=require("tailwind-merge");var Gt={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 Cs={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 pa=[{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"}],di=[{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 Se={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 Ts=require("@artsy/fresnel");function i(...e){return(0,Rs.twMerge)(e)}var ks=(0,Ts.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),ag=ks.createMediaStyle(),{Media:bt,MediaContextProvider:Oo}=ks;var jt=require("react/jsx-runtime"),yt=fa.forwardRef(({className:e,...o},t)=>(0,jt.jsx)(Qe.Root,{ref:t,...o}));yt.displayName="AccordionRoot";var wt=fa.forwardRef(({className:e,...o},t)=>(0,jt.jsx)(Qe.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));wt.displayName="AccordionItem";var Nt=fa.forwardRef(({className:e,children:o,...t},a)=>(0,jt.jsx)(Qe.Header,{className:"flex",children:(0,jt.jsxs)(Qe.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,jt.jsx)(Ss.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));Nt.displayName=Qe.Trigger.displayName;var Pt=fa.forwardRef(({className:e,children:o,...t},a)=>(0,jt.jsx)(Qe.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,jt.jsx)("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));Pt.displayName=Qe.Content.displayName;var Ds=v(require("react"),1),Ms=require("@radix-ui/react-slot"),Is=require("class-variance-authority");var De=require("react/jsx-runtime"),Ud=({className:e})=>(0,De.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,De.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,De.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,De.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,De.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,De.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,De.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,De.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,De.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,De.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,De.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,De.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,De.jsx)("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),Vo=Ud;var no=require("react/jsx-runtime"),nt=(0,Is.cva)("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),_e=Ds.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let c=a?Ms.Slot:"button",d=i(nt({variant:o,size:t,className:e}),{"cursor-wait":r});return(0,no.jsx)(no.Fragment,{children:a?(0,no.jsx)(c,{className:d,type:"button",disabled:n,ref:l,...s,children:s.children}):(0,no.jsxs)(c,{className:d,type:"button",disabled:n,ref:l,...s,children:[r&&(0,no.jsx)(Vo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});_e.displayName="Button";var Ls=require("qrcode.react");var ga=v(require("react"),1),As=require("@heroicons/react/16/solid"),me=v(require("@radix-ui/react-dialog"),1);var Ae=require("react/jsx-runtime"),Ue=me.Root,Wo=me.Trigger,pi=me.Portal,Xa=me.Close,Ya=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(me.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}));Ya.displayName=me.Overlay.displayName;var Be=ga.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:n="auto",isFull:s=!1,children:l,...c},d)=>{let p={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},f={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},b=[p.base,p[r],f[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,Ae.jsxs)(pi,{children:[(0,Ae.jsx)(Ya,{}),(0,Ae.jsxs)(me.Content,{ref:d,className:i(...b),...c,children:[l,!t&&(0,Ae.jsxs)(me.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,Ae.jsx)(As.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Ae.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Be.displayName=me.Content.displayName;var No=({className:e,...o})=>(0,Ae.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});No.displayName="DialogHeader";var st=({className:e,isCondensed:o=!1,...t})=>(0,Ae.jsx)("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});st.displayName="DialogBody";var fi=({className:e,isDivider:o=!0,...t})=>(0,Ae.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});fi.displayName="DialogFooter";var Po=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(me.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Po.displayName=me.Title.displayName;var gi=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(me.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));gi.displayName=me.Description.displayName;var y=require("react/jsx-runtime"),qd=({img:e="",children:o,isQrForAll:t})=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"qrcode__scan__container",children:(0,y.jsxs)("div",{className:"qrcode__scan",children:[(0,y.jsx)("div",{className:"qrcode__gradient",children:(0,y.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,y.jsx)("div",{className:"qrcode__border",children:(0,y.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,y.jsx)("div",{className:"p-4 qrcode__image",children:e?(0,y.jsx)("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),(0,y.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,y.jsxs)(y.Fragment,{children:[(0,y.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,y.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,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,y.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,y.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,y.jsx)("style",{children:`
|
|
1
|
+
"use strict";var Bd=Object.create;var qa=Object.defineProperty;var Od=Object.getOwnPropertyDescriptor;var Vd=Object.getOwnPropertyNames;var Wd=Object.getPrototypeOf,$d=Object.prototype.hasOwnProperty;var Gd=(e,o)=>{for(var t in o)qa(e,t,{get:o[t],enumerable:!0})},Ns=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of Vd(o))!$d.call(e,r)&&r!==t&&qa(e,r,{get:()=>o[r],enumerable:!(a=Od(o,r))||a.enumerable});return e};var v=(e,o,t)=>(t=e!=null?Bd(Wd(e)):{},Ns(o||!e||!e.__esModule?qa(t,"default",{value:e,enumerable:!0}):t,e)),jd=e=>Ns(qa({},"__esModule",{value:!0}),e);var eg={};Gd(eg,{Accordion:()=>yt,AccordionContent:()=>Pt,AccordionItem:()=>wt,AccordionTrigger:()=>Nt,ActionButton:()=>qe,AlertDialog:()=>ll,AlertDialogAction:()=>Hi,AlertDialogCancel:()=>_i,AlertDialogContent:()=>Ai,AlertDialogDescription:()=>Ei,AlertDialogFooter:()=>Fi,AlertDialogHeader:()=>Li,AlertDialogOverlay:()=>br,AlertDialogPortal:()=>Ii,AlertDialogTitle:()=>zi,AlertDialogTrigger:()=>ml,AspectRatio:()=>U,Badge:()=>fm,BlogSection:()=>qs,Breadcrumb:()=>ui,BreadcrumbEllipsis:()=>wi,BreadcrumbItem:()=>hi,BreadcrumbLink:()=>xi,BreadcrumbList:()=>vi,BreadcrumbPage:()=>bi,BreadcrumbSeparator:()=>yi,Button:()=>_e,ButtonsBlock:()=>N,CTASection:()=>_c,Calendar:()=>ba,Callout:()=>ta,Card:()=>dn,CardContent:()=>un,CardDescription:()=>gn,CardFooter:()=>vn,CardHeader:()=>pn,CardTitle:()=>fn,Carousel:()=>Ce,CarouselContent:()=>Re,CarouselDots:()=>ko,CarouselItem:()=>we,CarouselNext:()=>To,CarouselPrevious:()=>Ro,Checkbox:()=>xa,ChoiceboxGroup:()=>za,ChoiceboxGroupItem:()=>Ea,ChoiceboxMultiItem:()=>Rn,Combobox:()=>Yl,ComboboxContent:()=>Xl,ComboboxTrigger:()=>ql,Command:()=>Ar,CommandDialog:()=>Ql,CommandEmpty:()=>bn,CommandGroup:()=>yn,CommandInput:()=>hn,CommandItem:()=>Nn,CommandList:()=>xn,CommandSeparator:()=>wn,CommandShortcut:()=>Pn,Comment:()=>Tm,DatePicker:()=>tl,DateSelect:()=>sl,Dialog:()=>Ue,DialogBody:()=>st,DialogClose:()=>Xa,DialogContent:()=>Be,DialogDescription:()=>gi,DialogFooter:()=>fi,DialogHeader:()=>No,DialogOverlay:()=>Ya,DialogPortal:()=>pi,DialogQr:()=>so,DialogTitle:()=>Po,DialogTrigger:()=>Wo,Drawer:()=>ls,DrawerBody:()=>us,DrawerClose:()=>od,DrawerContent:()=>cs,DrawerDescription:()=>gs,DrawerFooter:()=>ps,DrawerHeader:()=>ds,DrawerOverlay:()=>si,DrawerPortal:()=>ms,DrawerTitle:()=>fs,DrawerTrigger:()=>td,DropdownMenu:()=>Om,DropdownMenuCheckboxItem:()=>_n,DropdownMenuContent:()=>En,DropdownMenuGroup:()=>Wm,DropdownMenuItem:()=>Hn,DropdownMenuLabel:()=>On,DropdownMenuPortal:()=>$m,DropdownMenuRadioGroup:()=>jm,DropdownMenuRadioItem:()=>Bn,DropdownMenuSeparator:()=>Vn,DropdownMenuShortcut:()=>Wn,DropdownMenuSub:()=>Gm,DropdownMenuSubContent:()=>zn,DropdownMenuSubTrigger:()=>Fn,DropdownMenuTrigger:()=>Vm,FAQSection:()=>Lc,FeatureSection:()=>Nc,Footer:()=>jl,Form:()=>Br,FormControl:()=>Va,FormDescription:()=>Wa,FormField:()=>Or,FormItem:()=>Ba,FormLabel:()=>Oa,FormLeadSupport:()=>vd,FormMessage:()=>$a,GuideSection:()=>ul,HeaderNavigation:()=>mn,Heading:()=>Ja,HeadingBlock:()=>w,HeadingGroup:()=>tr,HeadingSub:()=>er,HeadingTagline:()=>Ka,HeroSection:()=>oc,HorizontalContent:()=>Tt,HorizontalNext:()=>St,HorizontalPrevious:()=>kt,HorizontalScroll:()=>Rt,HowItWorksSection:()=>Xm,IconButton:()=>ve,InputOTP:()=>vs,InputOTPGroup:()=>hs,InputOTPSeparator:()=>bs,InputOTPSlot:()=>xs,LightBoxGalleryContent:()=>Fr,LightboxGallery:()=>Lr,LightboxThumbnail:()=>sm,MetricsSection:()=>Bc,NavigationMenu:()=>Ra,NavigationMenuContent:()=>Ma,NavigationMenuItem:()=>ka,NavigationMenuLink:()=>Jo,NavigationMenuList:()=>Ta,NavigationMenuTrigger:()=>Da,NewsSection:()=>Ec,Pagination:()=>$i,Payment:()=>ns,PaymentGuide:()=>mi,PaymentGuideDialog:()=>ci,PaymentInvoice:()=>Vc,PaymentMethods:()=>Gc,PaymentResult:()=>Kc,PaymentResultContent:()=>qc,PaymentResultFooter:()=>Qc,Popover:()=>Uo,PopoverContent:()=>So,PopoverTrigger:()=>qo,ProgressSteps:()=>Lm,ProgressStepsItem:()=>Am,ProgressStepsItemTrigger:()=>Im,Progressbar:()=>Dn,QRPayment:()=>cd,RadioGroup:()=>sn,RadioGroupItem:()=>ln,ReadMoreLite:()=>Er,SearchBar:()=>om,SectionBlock:()=>Y,Select:()=>Xo,SelectContent:()=>Mo,SelectGroup:()=>Zo,SelectItem:()=>Zt,SelectLabel:()=>Si,SelectScrollDownButton:()=>hr,SelectScrollUpButton:()=>vr,SelectSeparator:()=>Di,SelectTrigger:()=>Do,SelectValue:()=>Yo,SiteMeta:()=>Hd,Skeleton:()=>_a,Slider:()=>Mn,SocialProofSection:()=>mc,Spinner:()=>zr,Stepper:()=>an,Switch:()=>Aa,Tabs:()=>Dt,TabsContent:()=>dt,TabsList:()=>mt,TabsTrigger:()=>ct,TestimonialSection:()=>Ic,TextArea:()=>Nr,TextButton:()=>Pe,TextInput:()=>kr,ToastAction:()=>Xi,Toaster:()=>Nl,Tooltip:()=>Cl,TooltipArrow:()=>en,TooltipContent:()=>tn,TooltipProvider:()=>Pl,TooltipTrigger:()=>Rl,Topbar:()=>Jc,badgeVariants:()=>Tn,buttonVariants:()=>nt,mobaseTW:()=>Ed,navigationMenuTriggerStyle:()=>Sa,textButtonVariants:()=>Pi,toast:()=>Qi,useFormField:()=>ra,useToast:()=>Tr});module.exports=jd(eg);var fa=v(require("react"),1),ks=require("@heroicons/react/20/solid"),Qe=v(require("@radix-ui/react-accordion"),1);var Qd=v(require("react"),1),Cs=require("tailwind-merge");var Gt={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 Ps={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 pa=[{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"}],di=[{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 Se={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 Rs=require("@artsy/fresnel");function i(...e){return(0,Cs.twMerge)(e)}var Ts=(0,Rs.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),ag=Ts.createMediaStyle(),{Media:bt,MediaContextProvider:Oo}=Ts;var jt=require("react/jsx-runtime"),yt=fa.forwardRef(({className:e,...o},t)=>(0,jt.jsx)(Qe.Root,{ref:t,...o}));yt.displayName="AccordionRoot";var wt=fa.forwardRef(({className:e,...o},t)=>(0,jt.jsx)(Qe.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));wt.displayName="AccordionItem";var Nt=fa.forwardRef(({className:e,children:o,...t},a)=>(0,jt.jsx)(Qe.Header,{className:"flex",children:(0,jt.jsxs)(Qe.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,jt.jsx)(ks.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));Nt.displayName=Qe.Trigger.displayName;var Pt=fa.forwardRef(({className:e,children:o,...t},a)=>(0,jt.jsx)(Qe.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,jt.jsx)("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));Pt.displayName=Qe.Content.displayName;var Ss=v(require("react"),1),Ds=require("@radix-ui/react-slot"),Ms=require("class-variance-authority");var De=require("react/jsx-runtime"),Ud=({className:e})=>(0,De.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,De.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,De.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,De.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,De.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,De.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,De.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,De.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,De.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,De.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,De.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,De.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,De.jsx)("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),Vo=Ud;var no=require("react/jsx-runtime"),nt=(0,Ms.cva)("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),_e=Ss.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let c=a?Ds.Slot:"button",d=i(nt({variant:o,size:t,className:e}),{"cursor-wait":r});return(0,no.jsx)(no.Fragment,{children:a?(0,no.jsx)(c,{className:d,type:"button",disabled:n,ref:l,...s,children:s.children}):(0,no.jsxs)(c,{className:d,type:"button",disabled:n,ref:l,...s,children:[r&&(0,no.jsx)(Vo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});_e.displayName="Button";var As=require("qrcode.react");var ga=v(require("react"),1),Is=require("@heroicons/react/16/solid"),me=v(require("@radix-ui/react-dialog"),1);var Ae=require("react/jsx-runtime"),Ue=me.Root,Wo=me.Trigger,pi=me.Portal,Xa=me.Close,Ya=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(me.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}));Ya.displayName=me.Overlay.displayName;var Be=ga.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:n="auto",isFull:s=!1,children:l,...c},d)=>{let p={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},f={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},b=[p.base,p[r],f[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,Ae.jsxs)(pi,{children:[(0,Ae.jsx)(Ya,{}),(0,Ae.jsxs)(me.Content,{ref:d,className:i(...b),...c,children:[l,!t&&(0,Ae.jsxs)(me.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,Ae.jsx)(Is.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Ae.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Be.displayName=me.Content.displayName;var No=({className:e,...o})=>(0,Ae.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});No.displayName="DialogHeader";var st=({className:e,isCondensed:o=!1,...t})=>(0,Ae.jsx)("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});st.displayName="DialogBody";var fi=({className:e,isDivider:o=!0,...t})=>(0,Ae.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});fi.displayName="DialogFooter";var Po=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(me.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Po.displayName=me.Title.displayName;var gi=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(me.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));gi.displayName=me.Description.displayName;var y=require("react/jsx-runtime"),qd=({img:e="",children:o,isQrForAll:t})=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"qrcode__scan__container",children:(0,y.jsxs)("div",{className:"qrcode__scan",children:[(0,y.jsx)("div",{className:"qrcode__gradient",children:(0,y.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,y.jsx)("div",{className:"qrcode__border",children:(0,y.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,y.jsx)("div",{className:"p-4 qrcode__image",children:e?(0,y.jsx)("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),(0,y.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,y.jsxs)(y.Fragment,{children:[(0,y.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,y.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,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,y.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,y.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,y.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
|
-
`})]}),so=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...c})=>(0,y.jsx)(Ue,{...c,children:(0,y.jsx)(Be,{className:i("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:(0,y.jsx)(st,{className:"p-0",children:(0,y.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,y.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,y.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,y.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,y.jsx)("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,y.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,y.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,y.jsxs)("div",{className:"relative",children:[l&&(0,y.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,y.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,y.jsx)(qd,{img:r,isQrForAll:l,children:n&&(0,y.jsx)(Ls.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 zs=require("react");var $o=require("react"),Fs=v(require("ua-parser-js"),1),Xd=()=>(0,Fs.default)().device.type==="mobile",Yd=typeof window<"u"?$o.useLayoutEffect:$o.useEffect,Go=()=>{let[e,o]=(0,$o.useState)(!1);return Yd(()=>{o(Xd())},[]),e};var Qt=require("react/jsx-runtime"),qe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,c]=(0,zs.useState)(!1),d=Go(),p=!!a?.qrLink,f=()=>{let X=p?a?.qrLink:e;return typeof X=="string"?X.trim():""},u=()=>{let X=f();!X&&typeof e!="function"||(typeof e=="function"?e():window.open(X,o?"_blank":"_self"))},b=(X,te=0)=>{let Q=document.querySelector(X);if(!Q)return;let R=Q.getBoundingClientRect().top+window.scrollY-te;window.scrollTo({top:R,behavior:"smooth"})},I=()=>{typeof e=="string"&&e.startsWith("#")?b(e,t):u()},z=()=>(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(_e,{...s,className:r,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Qt.jsx)(so,{...a,open:l,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?z():(0,Qt.jsx)(_e,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):z():(0,Qt.jsx)(_e,{...s,onClick:I,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var jo=v(require("react"),1),Za=require("@radix-ui/react-icons"),Es=require("@radix-ui/react-slot");var Xe=require("react/jsx-runtime"),ui=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));ui.displayName="Breadcrumb";var vi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.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}));vi.displayName="BreadcrumbList";var hi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));hi.displayName="BreadcrumbItem";var xi=jo.forwardRef(({asChild:e,className:o,...t},a)=>(0,Xe.jsx)(e?Es.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));xi.displayName="BreadcrumbLink";var bi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));bi.displayName="BreadcrumbPage";var yi=({children:e,className:o,...t})=>(0,Xe.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,Xe.jsx)(Za.ChevronRightIcon,{className:"w-2 h-2"})});yi.displayName="BreadcrumbSeparator";var wi=({className:e,...o})=>(0,Xe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Xe.jsx)(Za.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Xe.jsx)("span",{className:"sr-only",children:"More"})]});wi.displayName="BreadcrumbElipssis";var or=v(require("html-react-parser"),1);var ua=require("react");var Qo=require("react/jsx-runtime"),Ni=(0,ua.createContext)({align:"center"}),Ka=({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,Qo.jsx)("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Ja=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=(0,ua.useContext)(Ni);return(0,Qo.jsx)(s,{className:i("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",l[t],c[o],a&&"truncate",r),children:n})},er=({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"},l={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=(0,ua.useContext)(Ni);return(0,Qo.jsx)("div",{className:i(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],c[t],a&&"truncate",r),children:n})},tr=({className:e,align:o="center",children:t})=>(0,Qo.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Qo.jsx)(Ni.Provider,{value:{align:o},children:t})});var Ct=require("react/jsx-runtime"),Y=({idSection:e,className:o,background:t,children:a})=>(0,Ct.jsx)("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,Ct.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:l})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",p=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,Ct.jsxs)(tr,{align:e,className:l,children:[o&&(0,Ct.jsx)(Ka,{color:c,children:o}),t&&(0,Ct.jsx)(Ja,{tagHeading:r,color:d,size:s,children:(0,or.default)(t)}),a&&(0,Ct.jsx)(er,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,or.default)(a)})]})},N=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,Ct.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,...l}=r;return(0,Ct.jsx)(qe,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:(0,or.default)(s)},n)})});var sr=v(require("react"),1),js=require("@heroicons/react/20/solid"),Qs=v(require("html-react-parser"),1);var Fe=require("react"),ar=require("lucide-react");var Hs=v(require("react"),1),_s=require("@radix-ui/react-slot"),Bs=require("class-variance-authority");var Os=require("react/jsx-runtime"),Co=(0,Bs.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"}}),ve=Hs.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?_s.Slot:"button",c=i(Co({variant:o,size:t,className:e}));return(0,Os.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});ve.displayName="IconButton";var Le=require("react/jsx-runtime"),rr=(0,Fe.createContext)(void 0),Rt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=(0,Fe.useRef)(null),[n,s]=(0,Fe.useState)({left:!1,right:!1}),l=(0,Fe.useCallback)(()=>{let d=r.current;if(d){let{scrollLeft:p,scrollWidth:f,clientWidth:u}=d;s({left:p>0,right:Math.ceil(p+u)<f})}},[]);(0,Fe.useEffect)(()=>{let d=r.current;if(d)return l(),window.addEventListener("resize",l),d.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),d.removeEventListener("scroll",l)}},[l]);let c=d=>{let p=r.current;if(p){let{scrollLeft:f,clientWidth:u,scrollWidth:b}=p,I=u*.7*(d==="left"?-1:1),z=f+I;z<0?z=0:z>b-u&&(z=b-u),p.scrollTo({left:z,behavior:"smooth"})}};return(0,Le.jsx)(rr.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Le.jsxs)("div",{className:i("relative w-full",t),children:[e&&(0,Le.jsxs)(Le.Fragment,{children:[n.left&&(0,Le.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,Le.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]})})},Tt=({className:e,children:o})=>{let t=(0,Fe.useContext)(rr);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Le.jsx)("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},kt=({className:e,children:o,...t})=>{let a=(0,Fe.useContext)(rr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Le.jsx)(ve,{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,Le.jsx)(ar.ChevronLeft,{className:"h-4 w-4"})}):null},St=({className:e,children:o,...t})=>{let a=(0,Fe.useContext)(rr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Le.jsx)(ve,{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,Le.jsx)(ar.ChevronRight,{className:"h-4 w-4"})}):null};var ir=v(require("react"),1),lt=v(require("@radix-ui/react-tabs"),1);var nr=require("react/jsx-runtime"),Dt=lt.Root,mt=ir.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,nr.jsx)(lt.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}));mt.displayName=lt.List.displayName;var ct=ir.forwardRef(({className:e,...o},t)=>(0,nr.jsx)(lt.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}));ct.displayName=lt.Trigger.displayName;var dt=ir.forwardRef(({className:e,...o},t)=>(0,nr.jsx)(lt.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}));dt.displayName=lt.Content.displayName;var Vs=v(require("react"),1),Ws=require("@radix-ui/react-slot"),$s=require("class-variance-authority");var Gs=require("react/jsx-runtime"),Pi=(0,$s.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"}}),Pe=Vs.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Ws.Slot:"button",c=i(Pi({variant:o,size:t,className:e}));return(0,Gs.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});Pe.displayName="TextButton";var D=require("react/jsx-runtime"),Zd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,D.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,D.jsxs)("picture",{children:[(0,D.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,D.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,D.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,D.jsx)(Pe,{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,D.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,D.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Pe,{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,D.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,D.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},lr=(0,sr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,f,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(p,f)=>(0,D.jsxs)("div",{children:[(0,D.jsx)("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",p?.blogList?.length<3?"md:justify-center":""),children:p?.blogList?.map((u,b)=>(0,D.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,D.jsx)("div",{onClick:I=>c(I,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,D.jsx)(Zd,{blog:u})},u?.id)},b))}),p?.isShowBtn&&(0,D.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,D.jsxs)(qe,{action:r?()=>r?.(f):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[(0,Qs.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,D.jsx)(Vo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!p?.btnUrl&&(0,D.jsx)(js.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},p?.title||f);return(0,D.jsxs)(sr.default.Fragment,{children:[e&&(0,D.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,D.jsxs)(Dt,{defaultValue:t[0]?.title,children:[(0,D.jsxs)(Rt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,D.jsx)(Tt,{className:"mb-6 text-center",children:(0,D.jsx)(mt,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((p,f)=>(0,D.jsx)(ct,{value:p.title,children:p.title},p.title+f))})}),(0,D.jsx)(kt,{}),(0,D.jsx)(St,{})]}),t.map((p,f)=>(0,D.jsx)(dt,{value:p.title,children:d(p,f)},p.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Ut=v(require("react"),1),cr=require("@heroicons/react/20/solid"),Ci=v(require("html-react-parser"),1);var K=v(require("react"),1),mr=require("@heroicons/react/20/solid"),Us=v(require("embla-carousel-react"),1);var he=require("react/jsx-runtime"),qs=K.createContext(null);function va(){let e=K.useContext(qs);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Ce=K.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[c,d]=(0,Us.default)({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[p,f]=K.useState(!1),[u,b]=K.useState(!1),I=K.useCallback(te=>{te&&(f(te.canScrollPrev()),b(te.canScrollNext()))},[]),z=K.useCallback(()=>{d?.scrollPrev()},[d]),E=K.useCallback(()=>{d?.scrollNext()},[d]),X=K.useCallback(te=>{te.key==="ArrowLeft"?(te.preventDefault(),z()):te.key==="ArrowRight"&&(te.preventDefault(),E())},[z,E]);return K.useEffect(()=>{!d||!t||t(d)},[d,t]),K.useEffect(()=>{if(d)return I(d),d.on("reInit",I),d.on("select",I),()=>{d?.off("select",I)}},[d,I]),(0,he.jsx)(qs.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:z,scrollNext:E,canScrollPrev:p,canScrollNext:u},children:(0,he.jsx)("div",{ref:l,onKeyDownCapture:X,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});Ce.displayName="Carousel";var Re=K.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=va();return(0,he.jsx)("div",{ref:r,className:i("overflow-hidden",o),children:(0,he.jsx)("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Re.displayName="CarouselContent";var we=K.forwardRef(({className:e,...o},t)=>{let{orientation:a}=va();return(0,he.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})});we.displayName="CarouselItem";var Ro=K.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=va();return(0,he.jsxs)(ve,{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:!l,onClick:s,...a,children:[(0,he.jsx)(mr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,he.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});Ro.displayName="CarouselPrevious";var To=K.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=va();return(0,he.jsxs)(ve,{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:!l,onClick:s,...a,children:[(0,he.jsx)(mr.ChevronRightIcon,{className:"h-6 w-6"}),(0,he.jsx)("span",{className:"sr-only",children:"Next slide"})]})});To.displayName="CarouselNext";var ko=K.forwardRef((e,o)=>{let{api:t}=va(),[,a]=K.useState(!1),r=K.useCallback(()=>a(l=>!l),[]);K.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,he.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,c)=>(0,he.jsx)(ve,{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,he.jsx)(he.Fragment,{})});ko.displayName="CarouselDots";var T=require("react/jsx-runtime"),Kd=({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:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,T.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,T.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,T.jsx)("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&(0,T.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Ci.default)(e?.description??"")}),(0,T.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Pe,{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,T.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,T.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Jd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,Ut.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Ce,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,T.jsx)(Re,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>(0,T.jsx)(we,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,T.jsx)("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",p),children:(0,T.jsx)(Kd,{blog:f})},f?.id)},f?.id))})}),s&&(0,T.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,T.jsxs)(qe,{action:c&&c,newTab:d,variant:"outline",children:[(0,Ci.default)(l||"Xem th\xEAm")," "]})})]})},ep=({carouselRef:e})=>(0,T.jsxs)(ve,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,T.jsx)(cr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,T.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),tp=({carouselRef:e})=>(0,T.jsxs)(ve,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,T.jsx)(cr.ChevronRightIcon,{className:"h-6 w-6"}),(0,T.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Ri=(0,Ut.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(d,p,f)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(f,"_blank")},[n,s]=(0,Ut.useState)(null),[,l]=(0,Ut.useState)(0),c=()=>n?(0,T.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,T.jsx)(ep,{carouselRef:n}),(0,T.jsx)(tp,{carouselRef:n})]}):(0,T.jsx)(T.Fragment,{});return(0,T.jsxs)(Ut.default.Fragment,{children:[(0,T.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,T.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,T.jsx)(c,{})]}),(0,T.jsx)(Jd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});var qt=require("react/jsx-runtime"),op=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,qt.jsx)(lr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return(0,qt.jsx)(Ri,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,qt.jsx)(lr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},ap=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,qt.jsx)(qt.Fragment,{children:op({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),Xs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,qt.jsx)(Y,{className:i("overflow-hidden",r),idSection:a,background:n,children:(0,qt.jsx)(ap,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:c})});var pr=v(require("react"),1),fr=require("date-fns/locale"),gr=require("lucide-react"),Ks=v(require("lunisolar"),1),Js=require("react-day-picker");var Ys=v(require("react"),1),ha=v(require("@radix-ui/react-checkbox"),1),Zs=require("@heroicons/react/16/solid"),Ti=require("class-variance-authority");var dr=require("react/jsx-runtime"),rp=(0,Ti.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"}}),ip=(0,Ti.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),xa=Ys.forwardRef(({className:e,size:o,...t},a)=>(0,dr.jsx)(ha.Root,{ref:a,className:i(rp({size:o}),e),...t,children:(0,dr.jsx)(ha.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,dr.jsx)(Zs.CheckIcon,{className:i(ip({size:o}))})})}));xa.displayName=ha.Root.displayName;var Ne=require("react/jsx-runtime"),np=({date:e,cusContent:o})=>{let t=null;return t=(0,Ks.default)(e).lunar,(0,Ne.jsxs)(Ne.Fragment,{children:[o?o(e):e.getDate(),t&&(0,Ne.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},sp={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 lp({isShow:e,setIsShow:o,lang:t}){let a=pr.useId();return(0,Ne.jsx)("div",{className:"w-full p-3 pt-0",children:(0,Ne.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,Ne.jsx)(xa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,Ne.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var mp=e=>e.getDay()===0||e.getDay()===6;function ba({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,c]=pr.useState(!0);return(0,Ne.jsx)(Js.DayPicker,{locale:r==="vi"?fr.vi:fr.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(nt({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(nt({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle: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:mp},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,Ne.jsx)(gr.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,Ne.jsx)(gr.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,Ne.jsx)(np,{date:d.date,cusContent:n}),Months:({children:d})=>(0,Ne.jsxs)("div",{className:"w-full",children:[(0,Ne.jsx)("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,Ne.jsx)(lp,{isShow:l,setIsShow:c,lang:r})]})},formatters:r==="vi"?sp:{},...s})}ba.displayName="Calendar";var ur=require("@heroicons/react/16/solid"),ya=require("date-fns"),tl=require("lucide-react");var el=v(require("react"),1),Xt=v(require("@radix-ui/react-popover"),1);var ki=require("react/jsx-runtime"),Uo=Xt.Root,qo=Xt.Trigger,So=el.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,ki.jsx)(Xt.Portal,{children:(0,ki.jsx)(Xt.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})}));So.displayName=Xt.Content.displayName;var ae=require("react/jsx-runtime"),ol=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:c,calendarProps:d,popoverContentProps:p})=>{let f=d?.selected||null;return(0,ae.jsxs)("div",{children:[(0,ae.jsxs)(Uo,{...c,children:[(0,ae.jsx)(qo,{asChild:!0,children:(0,ae.jsxs)(_e,{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",(!f||!(f instanceof Date)&&typeof f=="object"&&(!("from"in f)||!f.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[(0,ae.jsx)("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?(0,ya.format)(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?(0,ae.jsx)(ae.Fragment,{children:f.from?f.to?(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)("span",{className:"date-from",children:(0,ya.format)(f.from,s)})," ",(0,ae.jsx)("span",{className:"date-separator",children:"-"}),(0,ae.jsx)("span",{className:"date-to",children:(0,ya.format)(f.to,s)})]}):(0,ya.format)(f.from,s):o}):o}),e&&(0,ae.jsx)("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),(0,ae.jsx)(tl.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,ae.jsx)(So,{className:"w-auto border-none !p-0",...p,children:(0,ae.jsx)(ba,{...d,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&(0,ae.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?(0,ae.jsx)(ur.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ae.jsx)(ur.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ae.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var wa=require("react"),xr=require("@heroicons/react/16/solid"),sl=require("date-fns");var Mt=v(require("react"),1),Yt=require("@heroicons/react/16/solid"),al=require("@heroicons/react/24/outline"),A=v(require("@radix-ui/react-select"),1);var V=require("react/jsx-runtime"),Xo=Mt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},c)=>(0,V.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,V.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,V.jsx)(A.Root,{disabled:s,...l,children:o}),a&&(0,V.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,V.jsx)(Yt.XCircleIcon,{width:16,height:16}):(0,V.jsx)(al.QuestionMarkCircleIcon,{width:16,height:16}),(0,V.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Yo=A.Value,Do=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(A.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,V.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,V.jsx)(A.Icon,{asChild:!0,children:(0,V.jsx)(Yt.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Do.displayName=A.Trigger.displayName;var vr=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(A.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,V.jsx)(Yt.ChevronUpIcon,{className:"h-5 w-5"})}));vr.displayName=A.ScrollUpButton.displayName;var hr=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(A.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,V.jsx)(Yt.ChevronDownIcon,{className:"h-5 w-5"})}));hr.displayName=A.ScrollDownButton.displayName;var Mo=Mt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,V.jsx)(A.Portal,{children:(0,V.jsxs)(A.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,V.jsx)(vr,{}),(0,V.jsx)(A.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,V.jsx)(hr,{})]})}));Mo.displayName=A.Content.displayName;var Zo=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsx)(A.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Si=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(A.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Si.displayName=A.Label.displayName;var Zt=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(A.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,V.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,V.jsx)(A.ItemIndicator,{children:(0,V.jsx)(Yt.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,V.jsx)(A.ItemText,{children:o})]})),Di=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(A.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));Di.displayName=A.Separator.displayName;var rl=["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"],il=["January","February","March","April","May","June","July","August","September","October","November","December"],Mi=(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}},nl=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};var _=require("react/jsx-runtime"),ll=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:f=!1})=>{let[u,b]=(0,wa.useState)(o??null),I=Math.min(d,p),z=Math.max(d,p),E=l==="MM/yyyy",X=(R,Z)=>{if(Z===0){b(void 0),t?.(void 0);return}let O=u?.getFullYear()||new Date().getFullYear(),rt=u?.getMonth()??0,it=u?.getDate()??1;R==="month"&&Z!==null&&(rt=Z-1),R==="year"&&Z!==null&&(O=Z),E?it=1:R==="day"&&Z!==null&&(it=Z);let Ua=Mi(O,rt+1).daysInMonth;it>Ua&&(it=1);let da=new Date(O,rt,it);(0,sl.isValid)(da)&&(b(da),t?.(da))},[te,Q]=(0,wa.useState)(!1),$t=R=>{Q(R)};return(0,wa.useEffect)(()=>{b(o??null)},[o]),(0,_.jsxs)("div",{className:i("relative",s&&"cursor-no-drop"),children:[(0,_.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",u?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,_.jsx)("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,_.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!E&&(0,_.jsxs)(Xo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:R=>X("day",parseInt(R,10)),onOpenChange:$t,className:"w-[30%]",children:[(0,_.jsx)(Do,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:R=>R.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Mi(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(R,Z)=>(Z+1).toString().padStart(2,"0")).map(R=>(0,_.jsx)(Zt,{value:R,children:R},R))]})})]}),(0,_.jsxs)(Xo,{value:u?(u.getMonth()+1).toString():"",onValueChange:R=>X("month",parseInt(R,10)),onOpenChange:$t,className:i(E?"w-1/2":"w-2/5"),children:[(0,_.jsx)(Do,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:R=>R.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(R,Z)=>Z+1).map(R=>(0,_.jsx)(Zt,{value:R.toString(),children:c==="vi"?rl[R-1]:il[R-1]},R))]})})]}),(0,_.jsxs)(Xo,{value:u?u.getFullYear().toString():"",onValueChange:R=>X("year",parseInt(R,10)),onOpenChange:$t,className:i(E?"w-1/2":"w-[30%]"),children:[(0,_.jsx)(Do,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:R=>R.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),nl(I,z).map(R=>(0,_.jsx)(Zt,{value:R.toString(),children:R},R))]})})]})]})]}),r&&(0,_.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,_.jsx)(xr.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,_.jsx)(xr.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,_.jsx)("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};var Io=v(require("react"),1),oe=v(require("@radix-ui/react-alert-dialog"),1);var Ye=require("react/jsx-runtime"),ml=oe.Root,cl=oe.Trigger,Ii=oe.Portal,br=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.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}));br.displayName=oe.Overlay.displayName;var Ai=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsxs)(Ii,{children:[(0,Ye.jsx)(br,{}),(0,Ye.jsx)(oe.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})]}));Ai.displayName=oe.Content.displayName;var Li=({className:e,...o})=>(0,Ye.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Li.displayName="AlertDialogHeader";var Fi=({className:e,...o})=>(0,Ye.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Fi.displayName="AlertDialogFooter";var zi=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));zi.displayName=oe.Title.displayName;var Ei=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ei.displayName=oe.Description.displayName;var Hi=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Action,{ref:t,className:i(nt({variant:"primary"}),"",e),...o}));Hi.displayName=oe.Action.displayName;var _i=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Cancel,{ref:t,className:i(nt({variant:"secondary"}),e),...o}));_i.displayName=oe.Cancel.displayName;var yr=require("react");var Na=require("react"),Bi=v(require("html-react-parser"),1),pl=require("motion/react");var dl=v(require("@radix-ui/react-aspect-ratio"),1),U=dl.Root;var G=require("react/jsx-runtime"),cp=({guideGroup:e,mockup:o})=>{let[t,a]=(0,Na.useState)(),[r,n]=(0,Na.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,Na.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,G.jsx)(G.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,G.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,G.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,G.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,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,G.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,G.jsxs)(Ce,{setApi:a,children:[(0,G.jsx)(Re,{className:"ml-0",children:e?.stepList.map((l,c)=>(0,G.jsx)(we,{className:"pl-0",children:(0,G.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:l?.image&&(0,G.jsx)("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},c))}),(0,G.jsx)(Ro,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,G.jsx)(To,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,G.jsx)("div",{className:"flex flex-auto pl-12 pt-4",children:(0,G.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((l,c)=>(0,G.jsxs)("li",{className:i("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",c+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[(0,G.jsx)("div",{className:i("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),(0,G.jsx)("div",{className:i(" text-sm font-medium",c+1===r?"text-pink-500":"text-gray-900"),children:(0,Bi.default)(l.title)}),l.content&&(0,G.jsx)(pl.motion.div,{initial:"closed",animate:c+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,G.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,Bi.default)(l.content)})})]},c))})})]})})},Oi=cp;var Kt=require("react"),Vi=require("@heroicons/react/20/solid"),fl=v(require("embla-carousel-autoplay"),1),Pa=v(require("html-react-parser"),1);var h=require("react/jsx-runtime"),dp=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=(0,Kt.useState)(0),[s,l]=(0,Kt.useState)();return(0,Kt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,h.jsx)(Ue,{open:e,onOpenChange:o,children:(0,h.jsxs)(Be,{position:"bottom",height:"full",children:[(0,h.jsx)(No,{children:(0,h.jsx)(Po,{className:"line-clamp-1",children:t?.title})}),(0,h.jsxs)(st,{className:"grid overflow-hidden p-0 ",children:[(0,h.jsx)(Ce,{setApi:l,className:" grid overflow-hidden",children:(0,h.jsx)(Re,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,h.jsx)(we,{className:"h-full w-full pl-0",children:(0,h.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,h.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,h.jsx)("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:(0,h.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,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,h.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,h.jsx)(U,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,h.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,h.jsxs)("div",{className:"p-5 pb-12",children:[(0,h.jsx)("div",{className:"font-semibold",children:(0,Pa.default)(c.title)}),c?.content&&(0,h.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,Pa.default)(c.content)})]})]})},d))})}),(0,h.jsx)("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((c,d)=>(0,h.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},pp=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=(0,Kt.useState)(!1),[n,s]=(0,Kt.useState)(null),l=(0,Kt.useRef)((0,fl.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),r(!0)};return e?.length===0?null:(0,h.jsxs)(h.Fragment,{children:[e?.length>1?(0,h.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,p)=>(0,h.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(p),children:[(0,h.jsx)("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,h.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:d.title})}),(0,h.jsxs)("div",{className:i("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",p+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[(0,h.jsxs)("div",{className:"py-2",children:[t&&(0,h.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,h.jsx)("div",{className:"font-semibold",children:(0,Pa.default)(d.title)}),d?.description&&(0,h.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,Pa.default)(d.description)})]}),(0,h.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,h.jsx)(Vi.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,h.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,h.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,h.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,h.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,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,h.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,h.jsx)(Ce,{plugins:[l.current],children:(0,h.jsx)(Re,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,h.jsx)(we,{className:"pl-0",onClick:()=>c(0),children:(0,h.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,h.jsx)("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},p))})})})]})})}),(0,h.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,h.jsxs)(Pe,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,h.jsx)(Vi.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,h.jsx)(dp,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},gl=pp;var J=require("react/jsx-runtime"),ul=({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,J.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,J.jsx)("path",{d:t.d,fill:"currentColor"})})},Wi=(0,yr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:c}=o||{},[d,p]=(0,yr.useState)(t?.[0]?.title||"");return(0,J.jsxs)(J.Fragment,{children:[e&&(0,J.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,J.jsxs)(Oo,{children:[(0,J.jsx)(bt,{lessThan:"md",children:(0,J.jsx)(gl,{dataGuide:t,mockup:r,isStep:n})}),(0,J.jsx)(bt,{greaterThan:"sm",children:t?.length>1?(0,J.jsxs)(Dt,{defaultValue:t[0]?.title,onValueChange:f=>p(f),children:[(0,J.jsxs)(Rt,{showGradientOverlay:s,gradientOverlayColor:l,className:c,children:[(0,J.jsx)(Tt,{className:"mb-6 text-center",children:(0,J.jsx)(mt,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let b=u===t.length-1,I=d===f?.title||"";return(0,J.jsxs)(ct,{value:f.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":"",I&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&(0,J.jsx)(ul,{direction:"left",className:i("right-full top-0",I?"text-pink-500":"text-pink-100")}),f.title,n&&!b&&(0,J.jsx)(ul,{direction:"right",className:i("left-full top-0",I?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),(0,J.jsx)(kt,{}),(0,J.jsx)(St,{})]}),t.map((f,u)=>(0,J.jsx)(dt,{value:f.title,children:(0,J.jsx)(Oi,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&(0,J.jsx)(Oi,{guideGroup:t[0],mockup:r})})]}),a&&(0,J.jsx)(N,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var lo=require("react/jsx-runtime"),fp=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return(0,lo.jsx)(Wi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return(0,lo.jsx)(Wi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},gp=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>(0,lo.jsx)(lo.Fragment,{children:fp({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),vl=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:c="default",isStep:d=!1})=>(0,lo.jsx)(Y,{className:i(n),background:s,idSection:e,children:(0,lo.jsx)(gp,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:c,isStep:d})});var wr=require("lucide-react");var xe=require("react/jsx-runtime");function $i({current:e,total:o,onChange:t}){let a=r=>(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,xe.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,xe.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,xe.jsx)(wr.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):(0,xe.jsxs)(xe.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({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,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,xe.jsx)(wr.ChevronRight,{className:"h-4 w-4"})})})]})})}var hl=require("react"),xl=require("@heroicons/react/24/outline"),bl=require("@heroicons/react/24/solid");var It=require("react/jsx-runtime"),Nr=(0,hl.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...c},d)=>(0,It.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,It.jsx)("span",{className:i("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,It.jsx)("textarea",{disabled:e,ref:d,className:i("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...c}),t&&(0,It.jsxs)("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?(0,It.jsx)(bl.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,It.jsx)(xl.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,It.jsx)("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,It.jsx)("style",{children:`
|
|
70
|
+
`})]}),so=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...c})=>(0,y.jsx)(Ue,{...c,children:(0,y.jsx)(Be,{className:i("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:(0,y.jsx)(st,{className:"p-0",children:(0,y.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,y.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,y.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,y.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,y.jsx)("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,y.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,y.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,y.jsxs)("div",{className:"relative",children:[l&&(0,y.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,y.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,y.jsx)(qd,{img:r,isQrForAll:l,children:n&&(0,y.jsx)(As.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 Fs=require("react");var $o=require("react"),Ls=v(require("ua-parser-js"),1),Xd=()=>(0,Ls.default)().device.type==="mobile",Yd=typeof window<"u"?$o.useLayoutEffect:$o.useEffect,Go=()=>{let[e,o]=(0,$o.useState)(!1);return Yd(()=>{o(Xd())},[]),e};var Qt=require("react/jsx-runtime"),qe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,c]=(0,Fs.useState)(!1),d=Go(),p=!!a?.qrLink,f=()=>{let q=p?a?.qrLink:e;return typeof q=="string"?q.trim():""},u=()=>{let q=f();!q&&typeof e!="function"||(typeof e=="function"?e():window.open(q,o?"_blank":"_self"))},b=(q,Z=0)=>{let Q=document.querySelector(q);if(!Q)return;let T=Q.getBoundingClientRect().top+window.scrollY-Z;window.scrollTo({top:T,behavior:"smooth"})},D=()=>{typeof e=="string"&&e.startsWith("#")?b(e,t):u()},R=()=>(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(_e,{...s,className:r,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Qt.jsx)(so,{...a,open:l,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?R():(0,Qt.jsx)(_e,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):R():(0,Qt.jsx)(_e,{...s,onClick:D,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var jo=v(require("react"),1),Za=require("@radix-ui/react-icons"),zs=require("@radix-ui/react-slot");var Xe=require("react/jsx-runtime"),ui=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));ui.displayName="Breadcrumb";var vi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.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}));vi.displayName="BreadcrumbList";var hi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));hi.displayName="BreadcrumbItem";var xi=jo.forwardRef(({asChild:e,className:o,...t},a)=>(0,Xe.jsx)(e?zs.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));xi.displayName="BreadcrumbLink";var bi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));bi.displayName="BreadcrumbPage";var yi=({children:e,className:o,...t})=>(0,Xe.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,Xe.jsx)(Za.ChevronRightIcon,{className:"w-2 h-2"})});yi.displayName="BreadcrumbSeparator";var wi=({className:e,...o})=>(0,Xe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Xe.jsx)(Za.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Xe.jsx)("span",{className:"sr-only",children:"More"})]});wi.displayName="BreadcrumbElipssis";var or=v(require("html-react-parser"),1);var ua=require("react");var Qo=require("react/jsx-runtime"),Ni=(0,ua.createContext)({align:"center"}),Ka=({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,Qo.jsx)("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Ja=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=(0,ua.useContext)(Ni);return(0,Qo.jsx)(s,{className:i("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",l[t],c[o],a&&"truncate",r),children:n})},er=({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"},l={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=(0,ua.useContext)(Ni);return(0,Qo.jsx)("div",{className:i(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],c[t],a&&"truncate",r),children:n})},tr=({className:e,align:o="center",children:t})=>(0,Qo.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Qo.jsx)(Ni.Provider,{value:{align:o},children:t})});var Ct=require("react/jsx-runtime"),Y=({idSection:e,className:o,background:t,children:a})=>(0,Ct.jsx)("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,Ct.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:l})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",p=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,Ct.jsxs)(tr,{align:e,className:l,children:[o&&(0,Ct.jsx)(Ka,{color:c,children:o}),t&&(0,Ct.jsx)(Ja,{tagHeading:r,color:d,size:s,children:(0,or.default)(t)}),a&&(0,Ct.jsx)(er,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,or.default)(a)})]})},N=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,Ct.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,...l}=r;return(0,Ct.jsx)(qe,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:(0,or.default)(s)},n)})});var sr=v(require("react"),1),Gs=require("@heroicons/react/20/solid"),js=v(require("html-react-parser"),1);var Fe=require("react"),ar=require("lucide-react");var Es=v(require("react"),1),Hs=require("@radix-ui/react-slot"),_s=require("class-variance-authority");var Bs=require("react/jsx-runtime"),Co=(0,_s.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"}}),ve=Es.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Hs.Slot:"button",c=i(Co({variant:o,size:t,className:e}));return(0,Bs.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});ve.displayName="IconButton";var Le=require("react/jsx-runtime"),rr=(0,Fe.createContext)(void 0),Rt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=(0,Fe.useRef)(null),[n,s]=(0,Fe.useState)({left:!1,right:!1}),l=(0,Fe.useCallback)(()=>{let d=r.current;if(d){let{scrollLeft:p,scrollWidth:f,clientWidth:u}=d;s({left:p>0,right:Math.ceil(p+u)<f})}},[]);(0,Fe.useEffect)(()=>{let d=r.current;if(d)return l(),window.addEventListener("resize",l),d.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),d.removeEventListener("scroll",l)}},[l]);let c=d=>{let p=r.current;if(p){let{scrollLeft:f,clientWidth:u,scrollWidth:b}=p,D=u*.7*(d==="left"?-1:1),R=f+D;R<0?R=0:R>b-u&&(R=b-u),p.scrollTo({left:R,behavior:"smooth"})}};return(0,Le.jsx)(rr.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Le.jsxs)("div",{className:i("relative w-full",t),children:[e&&(0,Le.jsxs)(Le.Fragment,{children:[n.left&&(0,Le.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,Le.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]})})},Tt=({className:e,children:o})=>{let t=(0,Fe.useContext)(rr);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Le.jsx)("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},kt=({className:e,children:o,...t})=>{let a=(0,Fe.useContext)(rr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Le.jsx)(ve,{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,Le.jsx)(ar.ChevronLeft,{className:"h-4 w-4"})}):null},St=({className:e,children:o,...t})=>{let a=(0,Fe.useContext)(rr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Le.jsx)(ve,{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,Le.jsx)(ar.ChevronRight,{className:"h-4 w-4"})}):null};var ir=v(require("react"),1),lt=v(require("@radix-ui/react-tabs"),1);var nr=require("react/jsx-runtime"),Dt=lt.Root,mt=ir.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,nr.jsx)(lt.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}));mt.displayName=lt.List.displayName;var ct=ir.forwardRef(({className:e,...o},t)=>(0,nr.jsx)(lt.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}));ct.displayName=lt.Trigger.displayName;var dt=ir.forwardRef(({className:e,...o},t)=>(0,nr.jsx)(lt.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}));dt.displayName=lt.Content.displayName;var Os=v(require("react"),1),Vs=require("@radix-ui/react-slot"),Ws=require("class-variance-authority");var $s=require("react/jsx-runtime"),Pi=(0,Ws.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"}}),Pe=Os.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Vs.Slot:"button",c=i(Pi({variant:o,size:t,className:e}));return(0,$s.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});Pe.displayName="TextButton";var A=require("react/jsx-runtime"),Zd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,A.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,A.jsxs)("picture",{children:[(0,A.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,A.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,A.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,A.jsx)(Pe,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),(0,A.jsx)("div",{className:"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,A.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Pe,{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,A.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,A.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},lr=(0,sr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,f,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(p,f)=>(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",p?.blogList?.length<3?"md:justify-center":""),children:p?.blogList?.map((u,b)=>(0,A.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,A.jsx)("div",{onClick:D=>c(D,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,A.jsx)(Zd,{blog:u})},u?.id)},b))}),p?.isShowBtn&&(0,A.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,A.jsxs)(qe,{action:r?()=>r?.(f):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[(0,js.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,A.jsx)(Vo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!p?.btnUrl&&(0,A.jsx)(Gs.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},p?.title||f);return(0,A.jsxs)(sr.default.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:i(e?.className)}),t?.length>1?(0,A.jsxs)(Dt,{defaultValue:t[0]?.title,children:[(0,A.jsxs)(Rt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,A.jsx)(Tt,{className:"mb-6 text-center",children:(0,A.jsx)(mt,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((p,f)=>(0,A.jsx)(ct,{value:p.title,children:p.title},p.title+f))})}),(0,A.jsx)(kt,{}),(0,A.jsx)(St,{})]}),t.map((p,f)=>(0,A.jsx)(dt,{value:p.title,children:d(p,f)},p.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Ut=v(require("react"),1),cr=require("@heroicons/react/20/solid"),Ci=v(require("html-react-parser"),1);var J=v(require("react"),1),mr=require("@heroicons/react/20/solid"),Qs=v(require("embla-carousel-react"),1);var he=require("react/jsx-runtime"),Us=J.createContext(null);function va(){let e=J.useContext(Us);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Ce=J.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[c,d]=(0,Qs.default)({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[p,f]=J.useState(!1),[u,b]=J.useState(!1),D=J.useCallback(Z=>{Z&&(f(Z.canScrollPrev()),b(Z.canScrollNext()))},[]),R=J.useCallback(()=>{d?.scrollPrev()},[d]),M=J.useCallback(()=>{d?.scrollNext()},[d]),q=J.useCallback(Z=>{Z.key==="ArrowLeft"?(Z.preventDefault(),R()):Z.key==="ArrowRight"&&(Z.preventDefault(),M())},[R,M]);return J.useEffect(()=>{!d||!t||t(d)},[d,t]),J.useEffect(()=>{if(d)return D(d),d.on("reInit",D),d.on("select",D),()=>{d?.off("select",D)}},[d,D]),(0,he.jsx)(Us.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:R,scrollNext:M,canScrollPrev:p,canScrollNext:u},children:(0,he.jsx)("div",{ref:l,onKeyDownCapture:q,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});Ce.displayName="Carousel";var Re=J.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=va();return(0,he.jsx)("div",{ref:r,className:i("overflow-hidden",o),children:(0,he.jsx)("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Re.displayName="CarouselContent";var we=J.forwardRef(({className:e,...o},t)=>{let{orientation:a}=va();return(0,he.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})});we.displayName="CarouselItem";var Ro=J.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=va();return(0,he.jsxs)(ve,{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:!l,onClick:s,...a,children:[(0,he.jsx)(mr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,he.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});Ro.displayName="CarouselPrevious";var To=J.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=va();return(0,he.jsxs)(ve,{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:!l,onClick:s,...a,children:[(0,he.jsx)(mr.ChevronRightIcon,{className:"h-6 w-6"}),(0,he.jsx)("span",{className:"sr-only",children:"Next slide"})]})});To.displayName="CarouselNext";var ko=J.forwardRef((e,o)=>{let{api:t}=va(),[,a]=J.useState(!1),r=J.useCallback(()=>a(l=>!l),[]);J.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,he.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,c)=>(0,he.jsx)(ve,{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,he.jsx)(he.Fragment,{})});ko.displayName="CarouselDots";var k=require("react/jsx-runtime"),Kd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,k.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,k.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,k.jsx)("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&(0,k.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Ci.default)(e?.description??"")}),(0,k.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Pe,{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,k.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,k.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Jd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,Ut.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Ce,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,k.jsx)(Re,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>(0,k.jsx)(we,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,k.jsx)("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",p),children:(0,k.jsx)(Kd,{blog:f})},f?.id)},f?.id))})}),s&&(0,k.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,k.jsxs)(qe,{action:c&&c,newTab:d,variant:"outline",children:[(0,Ci.default)(l||"Xem th\xEAm")," "]})})]})},ep=({carouselRef:e})=>(0,k.jsxs)(ve,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,k.jsx)(cr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,k.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),tp=({carouselRef:e})=>(0,k.jsxs)(ve,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,k.jsx)(cr.ChevronRightIcon,{className:"h-6 w-6"}),(0,k.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Ri=(0,Ut.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(d,p,f)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(f,"_blank")},[n,s]=(0,Ut.useState)(null),[,l]=(0,Ut.useState)(0),c=()=>n?(0,k.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,k.jsx)(ep,{carouselRef:n}),(0,k.jsx)(tp,{carouselRef:n})]}):(0,k.jsx)(k.Fragment,{});return(0,k.jsxs)(Ut.default.Fragment,{children:[(0,k.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,k.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,k.jsx)(c,{})]}),(0,k.jsx)(Jd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});var qt=require("react/jsx-runtime"),op=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,qt.jsx)(lr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return(0,qt.jsx)(Ri,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,qt.jsx)(lr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},ap=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,qt.jsx)(qt.Fragment,{children:op({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),qs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,qt.jsx)(Y,{className:i("overflow-hidden",r),idSection:a,background:n,children:(0,qt.jsx)(ap,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:c})});var pr=v(require("react"),1),fr=require("date-fns/locale"),gr=require("lucide-react"),Zs=v(require("lunisolar"),1),Ks=require("react-day-picker");var Xs=v(require("react"),1),ha=v(require("@radix-ui/react-checkbox"),1),Ys=require("@heroicons/react/16/solid"),Ti=require("class-variance-authority");var dr=require("react/jsx-runtime"),rp=(0,Ti.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"}}),ip=(0,Ti.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),xa=Xs.forwardRef(({className:e,size:o,...t},a)=>(0,dr.jsx)(ha.Root,{ref:a,className:i(rp({size:o}),e),...t,children:(0,dr.jsx)(ha.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,dr.jsx)(Ys.CheckIcon,{className:i(ip({size:o}))})})}));xa.displayName=ha.Root.displayName;var Ne=require("react/jsx-runtime"),np=({date:e,cusContent:o})=>{let t=null;return t=(0,Zs.default)(e).lunar,(0,Ne.jsxs)(Ne.Fragment,{children:[o?o(e):e.getDate(),t&&(0,Ne.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},sp={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 lp({isShow:e,setIsShow:o,lang:t}){let a=pr.useId();return(0,Ne.jsx)("div",{className:"w-full p-3 pt-0",children:(0,Ne.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,Ne.jsx)(xa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,Ne.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var mp=e=>e.getDay()===0||e.getDay()===6;function ba({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,c]=pr.useState(!0);return(0,Ne.jsx)(Ks.DayPicker,{locale:r==="vi"?fr.vi:fr.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(nt({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(nt({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle: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:mp},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,Ne.jsx)(gr.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,Ne.jsx)(gr.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,Ne.jsx)(np,{date:d.date,cusContent:n}),Months:({children:d})=>(0,Ne.jsxs)("div",{className:"w-full",children:[(0,Ne.jsx)("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,Ne.jsx)(lp,{isShow:l,setIsShow:c,lang:r})]})},formatters:r==="vi"?sp:{},...s})}ba.displayName="Calendar";var ur=require("@heroicons/react/16/solid"),ya=require("date-fns"),el=require("lucide-react");var Js=v(require("react"),1),Xt=v(require("@radix-ui/react-popover"),1);var ki=require("react/jsx-runtime"),Uo=Xt.Root,qo=Xt.Trigger,So=Js.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,ki.jsx)(Xt.Portal,{children:(0,ki.jsx)(Xt.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})}));So.displayName=Xt.Content.displayName;var ae=require("react/jsx-runtime"),tl=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:c,calendarProps:d,popoverContentProps:p})=>{let f=d?.selected||null;return(0,ae.jsxs)("div",{children:[(0,ae.jsxs)(Uo,{...c,children:[(0,ae.jsx)(qo,{asChild:!0,children:(0,ae.jsxs)(_e,{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",(!f||!(f instanceof Date)&&typeof f=="object"&&(!("from"in f)||!f.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[(0,ae.jsx)("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?(0,ya.format)(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?(0,ae.jsx)(ae.Fragment,{children:f.from?f.to?(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)("span",{className:"date-from",children:(0,ya.format)(f.from,s)})," ",(0,ae.jsx)("span",{className:"date-separator",children:"-"}),(0,ae.jsx)("span",{className:"date-to",children:(0,ya.format)(f.to,s)})]}):(0,ya.format)(f.from,s):o}):o}),e&&(0,ae.jsx)("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),(0,ae.jsx)(el.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,ae.jsx)(So,{className:"w-auto border-none !p-0",...p,children:(0,ae.jsx)(ba,{...d,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&(0,ae.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?(0,ae.jsx)(ur.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ae.jsx)(ur.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ae.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var wa=require("react"),xr=require("@heroicons/react/16/solid"),nl=require("date-fns");var Mt=v(require("react"),1),Yt=require("@heroicons/react/16/solid"),ol=require("@heroicons/react/24/outline"),F=v(require("@radix-ui/react-select"),1);var V=require("react/jsx-runtime"),Xo=Mt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},c)=>(0,V.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,V.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,V.jsx)(F.Root,{disabled:s,...l,children:o}),a&&(0,V.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,V.jsx)(Yt.XCircleIcon,{width:16,height:16}):(0,V.jsx)(ol.QuestionMarkCircleIcon,{width:16,height:16}),(0,V.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Yo=F.Value,Do=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(F.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,V.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,V.jsx)(F.Icon,{asChild:!0,children:(0,V.jsx)(Yt.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Do.displayName=F.Trigger.displayName;var vr=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,V.jsx)(Yt.ChevronUpIcon,{className:"h-5 w-5"})}));vr.displayName=F.ScrollUpButton.displayName;var hr=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.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,V.jsx)(Yt.ChevronDownIcon,{className:"h-5 w-5"})}));hr.displayName=F.ScrollDownButton.displayName;var Mo=Mt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,V.jsx)(F.Portal,{children:(0,V.jsxs)(F.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,V.jsx)(vr,{}),(0,V.jsx)(F.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,V.jsx)(hr,{})]})}));Mo.displayName=F.Content.displayName;var Zo=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsx)(F.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Si=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Si.displayName=F.Label.displayName;var Zt=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(F.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,V.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,V.jsx)(F.ItemIndicator,{children:(0,V.jsx)(Yt.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,V.jsx)(F.ItemText,{children:o})]})),Di=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));Di.displayName=F.Separator.displayName;var al=["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"],rl=["January","February","March","April","May","June","July","August","September","October","November","December"],Mi=(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}},il=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};var _=require("react/jsx-runtime"),sl=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:f=!1})=>{let[u,b]=(0,wa.useState)(o??null),D=Math.min(d,p),R=Math.max(d,p),M=l==="MM/yyyy",q=(T,K)=>{if(K===0){b(void 0),t?.(void 0);return}let O=u?.getFullYear()||new Date().getFullYear(),rt=u?.getMonth()??0,it=u?.getDate()??1;T==="month"&&K!==null&&(rt=K-1),T==="year"&&K!==null&&(O=K),M?it=1:T==="day"&&K!==null&&(it=K);let Ua=Mi(O,rt+1).daysInMonth;it>Ua&&(it=1);let da=new Date(O,rt,it);(0,nl.isValid)(da)&&(b(da),t?.(da))},[Z,Q]=(0,wa.useState)(!1),$t=T=>{Q(T)};return(0,wa.useEffect)(()=>{b(o??null)},[o]),(0,_.jsxs)("div",{className:i("relative",s&&"cursor-no-drop"),children:[(0,_.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",Z&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",u?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,_.jsx)("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,_.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!M&&(0,_.jsxs)(Xo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:T=>q("day",parseInt(T,10)),onOpenChange:$t,className:"w-[30%]",children:[(0,_.jsx)(Do,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Mi(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(T,K)=>(K+1).toString().padStart(2,"0")).map(T=>(0,_.jsx)(Zt,{value:T,children:T},T))]})})]}),(0,_.jsxs)(Xo,{value:u?(u.getMonth()+1).toString():"",onValueChange:T=>q("month",parseInt(T,10)),onOpenChange:$t,className:i(M?"w-1/2":"w-2/5"),children:[(0,_.jsx)(Do,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(T,K)=>K+1).map(T=>(0,_.jsx)(Zt,{value:T.toString(),children:c==="vi"?al[T-1]:rl[T-1]},T))]})})]}),(0,_.jsxs)(Xo,{value:u?u.getFullYear().toString():"",onValueChange:T=>q("year",parseInt(T,10)),onOpenChange:$t,className:i(M?"w-1/2":"w-[30%]"),children:[(0,_.jsx)(Do,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),il(D,R).map(T=>(0,_.jsx)(Zt,{value:T.toString(),children:T},T))]})})]})]})]}),r&&(0,_.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,_.jsx)(xr.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,_.jsx)(xr.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,_.jsx)("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};var Io=v(require("react"),1),oe=v(require("@radix-ui/react-alert-dialog"),1);var Ye=require("react/jsx-runtime"),ll=oe.Root,ml=oe.Trigger,Ii=oe.Portal,br=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.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}));br.displayName=oe.Overlay.displayName;var Ai=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsxs)(Ii,{children:[(0,Ye.jsx)(br,{}),(0,Ye.jsx)(oe.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})]}));Ai.displayName=oe.Content.displayName;var Li=({className:e,...o})=>(0,Ye.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Li.displayName="AlertDialogHeader";var Fi=({className:e,...o})=>(0,Ye.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Fi.displayName="AlertDialogFooter";var zi=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));zi.displayName=oe.Title.displayName;var Ei=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ei.displayName=oe.Description.displayName;var Hi=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Action,{ref:t,className:i(nt({variant:"primary"}),"",e),...o}));Hi.displayName=oe.Action.displayName;var _i=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Cancel,{ref:t,className:i(nt({variant:"secondary"}),e),...o}));_i.displayName=oe.Cancel.displayName;var yr=require("react");var Na=require("react"),Bi=v(require("html-react-parser"),1),dl=require("motion/react");var cl=v(require("@radix-ui/react-aspect-ratio"),1),U=cl.Root;var G=require("react/jsx-runtime"),cp=({guideGroup:e,mockup:o})=>{let[t,a]=(0,Na.useState)(),[r,n]=(0,Na.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,Na.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,G.jsx)(G.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,G.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,G.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,G.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,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,G.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,G.jsxs)(Ce,{setApi:a,children:[(0,G.jsx)(Re,{className:"ml-0",children:e?.stepList.map((l,c)=>(0,G.jsx)(we,{className:"pl-0",children:(0,G.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:l?.image&&(0,G.jsx)("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},c))}),(0,G.jsx)(Ro,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,G.jsx)(To,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,G.jsx)("div",{className:"flex flex-auto pl-12 pt-4",children:(0,G.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((l,c)=>(0,G.jsxs)("li",{className:i("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",c+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[(0,G.jsx)("div",{className:i("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),(0,G.jsx)("div",{className:i(" text-sm font-medium",c+1===r?"text-pink-500":"text-gray-900"),children:(0,Bi.default)(l.title)}),l.content&&(0,G.jsx)(dl.motion.div,{initial:"closed",animate:c+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,G.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,Bi.default)(l.content)})})]},c))})})]})})},Oi=cp;var Kt=require("react"),Vi=require("@heroicons/react/20/solid"),pl=v(require("embla-carousel-autoplay"),1),Pa=v(require("html-react-parser"),1);var h=require("react/jsx-runtime"),dp=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=(0,Kt.useState)(0),[s,l]=(0,Kt.useState)();return(0,Kt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,h.jsx)(Ue,{open:e,onOpenChange:o,children:(0,h.jsxs)(Be,{position:"bottom",height:"full",children:[(0,h.jsx)(No,{children:(0,h.jsx)(Po,{className:"line-clamp-1",children:t?.title})}),(0,h.jsxs)(st,{className:"grid overflow-hidden p-0 ",children:[(0,h.jsx)(Ce,{setApi:l,className:" grid overflow-hidden",children:(0,h.jsx)(Re,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,h.jsx)(we,{className:"h-full w-full pl-0",children:(0,h.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,h.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,h.jsx)("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:(0,h.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,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,h.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,h.jsx)(U,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,h.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,h.jsxs)("div",{className:"p-5 pb-12",children:[(0,h.jsx)("div",{className:"font-semibold",children:(0,Pa.default)(c.title)}),c?.content&&(0,h.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,Pa.default)(c.content)})]})]})},d))})}),(0,h.jsx)("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((c,d)=>(0,h.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},pp=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=(0,Kt.useState)(!1),[n,s]=(0,Kt.useState)(null),l=(0,Kt.useRef)((0,pl.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),r(!0)};return e?.length===0?null:(0,h.jsxs)(h.Fragment,{children:[e?.length>1?(0,h.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,p)=>(0,h.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(p),children:[(0,h.jsx)("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,h.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:d.title})}),(0,h.jsxs)("div",{className:i("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",p+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[(0,h.jsxs)("div",{className:"py-2",children:[t&&(0,h.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,h.jsx)("div",{className:"font-semibold",children:(0,Pa.default)(d.title)}),d?.description&&(0,h.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,Pa.default)(d.description)})]}),(0,h.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,h.jsx)(Vi.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,h.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,h.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,h.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,h.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,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,h.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,h.jsx)(Ce,{plugins:[l.current],children:(0,h.jsx)(Re,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,h.jsx)(we,{className:"pl-0",onClick:()=>c(0),children:(0,h.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,h.jsx)("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},p))})})})]})})}),(0,h.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,h.jsxs)(Pe,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,h.jsx)(Vi.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,h.jsx)(dp,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},fl=pp;var ee=require("react/jsx-runtime"),gl=({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,ee.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,ee.jsx)("path",{d:t.d,fill:"currentColor"})})},Wi=(0,yr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:c}=o||{},[d,p]=(0,yr.useState)(t?.[0]?.title||"");return(0,ee.jsxs)(ee.Fragment,{children:[e&&(0,ee.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,ee.jsxs)(Oo,{children:[(0,ee.jsx)(bt,{lessThan:"md",children:(0,ee.jsx)(fl,{dataGuide:t,mockup:r,isStep:n})}),(0,ee.jsx)(bt,{greaterThan:"sm",children:t?.length>1?(0,ee.jsxs)(Dt,{defaultValue:t[0]?.title,onValueChange:f=>p(f),children:[(0,ee.jsxs)(Rt,{showGradientOverlay:s,gradientOverlayColor:l,className:c,children:[(0,ee.jsx)(Tt,{className:"mb-6 text-center",children:(0,ee.jsx)(mt,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let b=u===t.length-1,D=d===f?.title||"";return(0,ee.jsxs)(ct,{value:f.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":"",D&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&(0,ee.jsx)(gl,{direction:"left",className:i("right-full top-0",D?"text-pink-500":"text-pink-100")}),f.title,n&&!b&&(0,ee.jsx)(gl,{direction:"right",className:i("left-full top-0",D?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),(0,ee.jsx)(kt,{}),(0,ee.jsx)(St,{})]}),t.map((f,u)=>(0,ee.jsx)(dt,{value:f.title,children:(0,ee.jsx)(Oi,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&(0,ee.jsx)(Oi,{guideGroup:t[0],mockup:r})})]}),a&&(0,ee.jsx)(N,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var lo=require("react/jsx-runtime"),fp=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return(0,lo.jsx)(Wi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return(0,lo.jsx)(Wi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},gp=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>(0,lo.jsx)(lo.Fragment,{children:fp({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),ul=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:c="default",isStep:d=!1})=>(0,lo.jsx)(Y,{className:i(n),background:s,idSection:e,children:(0,lo.jsx)(gp,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:c,isStep:d})});var wr=require("lucide-react");var xe=require("react/jsx-runtime");function $i({current:e,total:o,onChange:t}){let a=r=>(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,xe.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,xe.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,xe.jsx)(wr.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):(0,xe.jsxs)(xe.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({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,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,xe.jsx)(wr.ChevronRight,{className:"h-4 w-4"})})})]})})}var vl=require("react"),hl=require("@heroicons/react/24/outline"),xl=require("@heroicons/react/24/solid");var It=require("react/jsx-runtime"),Nr=(0,vl.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...c},d)=>(0,It.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,It.jsx)("span",{className:i("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,It.jsx)("textarea",{disabled:e,ref:d,className:i("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...c}),t&&(0,It.jsxs)("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?(0,It.jsx)(xl.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,It.jsx)(hl.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,It.jsx)("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,It.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 Rr=v(require("react"),1),up=1,vp=1e6;var Gi=0;function hp(){return Gi=(Gi+1)%Number.MAX_SAFE_INTEGER,Gi.toString()}var ji=new Map,
|
|
97
|
+
`})]}));var Rr=v(require("react"),1),up=1,vp=1e6;var Gi=0;function hp(){return Gi=(Gi+1)%Number.MAX_SAFE_INTEGER,Gi.toString()}var ji=new Map,bl=e=>{if(ji.has(e))return;let o=setTimeout(()=>{ji.delete(e),Ca({type:"REMOVE_TOAST",toastId:e})},vp);ji.set(e,o)},xp=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,up)};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?bl(t):e.toasts.forEach(a=>{bl(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}},Pr=[],Cr={toasts:[]};function Ca(e){Cr=xp(Cr,e),Pr.forEach(o=>{o(Cr)})}function Qi({...e}){let o=hp(),t=r=>Ca({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>Ca({type:"DISMISS_TOAST",toastId:o});return Ca({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function Tr(){let[e,o]=Rr.useState(Cr);return Rr.useEffect(()=>(Pr.push(o),()=>{let t=Pr.indexOf(o);t>-1&&Pr.splice(t,1)}),[e]),{...e,toast:Qi,dismiss:t=>Ca({type:"DISMISS_TOAST",toastId:t})}}var Ao=v(require("react"),1),mo=require("@heroicons/react/20/solid"),ce=v(require("@radix-ui/react-toast"),1),yl=require("class-variance-authority");var Oe=require("react/jsx-runtime"),wl=ce.Provider,Ui=Ao.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(ce.Viewport,{ref:t,className:i("fixed bottom-0 left-0 z-[300] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));Ui.displayName=ce.Viewport.displayName;var bp=(0,yl.cva)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),qi=Ao.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>(0,Oe.jsxs)(ce.Root,{ref:r,className:i(bp({variant:o}),e),...a,children:[(0,Oe.jsxs)("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&(0,Oe.jsx)(mo.CheckCircleIcon,{className:"h-5 w-5 text-green-500"}),o==="warning"&&(0,Oe.jsx)(mo.ExclamationTriangleIcon,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&(0,Oe.jsx)(mo.InformationCircleIcon,{className:"h-5 w-5 text-red-500"})]}),t]}));qi.displayName=ce.Root.displayName;var Xi=Ao.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(ce.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}));Xi.displayName=ce.Action.displayName;var Yi=Ao.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(ce.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,Oe.jsx)(mo.XMarkIcon,{className:"h-5 w-5"})}));Yi.displayName=ce.Close.displayName;var Zi=Ao.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(ce.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));Zi.displayName=ce.Title.displayName;var Ki=Ao.forwardRef(({className:e,...o},t)=>(0,Oe.jsx)(ce.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));Ki.displayName=ce.Description.displayName;var Jt=require("react/jsx-runtime");function Nl(){let{toasts:e}=Tr();return(0,Jt.jsxs)(wl,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return(0,Jt.jsxs)(qi,{...n,children:[(0,Jt.jsxs)("div",{className:"grid gap-2",children:[t&&(0,Jt.jsx)(Zi,{children:t}),a&&(0,Jt.jsx)(Ki,{children:a})]}),r,(0,Jt.jsx)(Yi,{})]},o)}),(0,Jt.jsx)(Ui,{})]})}var Ji=v(require("react"),1),Ze=v(require("@radix-ui/react-tooltip"),1);var on=require("react/jsx-runtime"),Pl=Ze.Provider,Cl=Ze.Root,Rl=Ze.Trigger,en=Ji.forwardRef((e,o)=>(0,on.jsx)(Ze.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));en.displayName=Ze.Arrow.displayName;var tn=Ji.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>(0,on.jsx)(Ze.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}));tn.displayName=Ze.Content.displayName;var co=require("react"),Ko=require("@heroicons/react/16/solid");var Ve=require("react/jsx-runtime"),kr=(0,co.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:l,onChange:c,onFocus:d,onClickClear:p,value:f,defaultValue:u,type:b="text",...D},R)=>{let[M,q]=(0,co.useState)(!1),Z=(0,co.useRef)(null),Q=O=>{O&&!M&&q(!0),!O&&M&&q(!1)},$t=O=>{s&&Q(O.target.value),c?.(O)},T=O=>{s&&Q(O.target.value),d?.(O)},K=()=>{let O=Z.current?.querySelector("input");O&&(p?.(O.value),O.value="",O.focus(),q(!1))};return(0,co.useEffect)(()=>{Q(u||f)},[f,u]),(0,Ve.jsxs)("div",{className:i(r,o&&"mobase-text-input-error"),ref:Z,children:[(0,Ve.jsxs)("div",{className:"relative",children:[a&&(0,Ve.jsx)("span",{className:i("mobase-text-input-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),(0,Ve.jsx)("input",{disabled:e,type:b,ref:R,className:i("mobase-text-input-box block h-11 w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",l===2&&"h-12 text-base",n),onChange:$t,onFocus:T,value:f,defaultValue:u,...D}),s&&M&&(0,Ve.jsx)("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 shrink-0 -translate-y-1/2 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:K,children:(0,Ve.jsx)(Ko.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,Ve.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?(0,Ve.jsx)(Ko.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Ve.jsx)(Ko.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Ve.jsx)("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),(0,Ve.jsx)("style",{children:`
|
|
98
98
|
.mobase-text-input-box:hover {
|
|
99
99
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
100
100
|
}
|
|
@@ -117,11 +117,11 @@
|
|
|
117
117
|
color: rgb(var(--mobase-red-500) / 1);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`})]})});var Sr=require("@heroicons/react/24/outline");var Dr=require("react");var At=require("react/jsx-runtime"),an=(0,Dr.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:c=!1,...d},p)=>{let[f,u]=(0,Dr.useState)(r),b=()=>{let E=Math.min(f+a,t);u(E),n?.(E),l?.(E)},I=()=>{let E=Math.max(f-a,o);u(E),n?.(E),s?.(E)},z=E=>{let X=parseFloat(E.target.value);if(!isNaN(X)){let te=Math.max(Math.min(X,t),o);u(te),n?.(te)}};return(0,At.jsxs)("div",{ref:p,className:i("flex items-center ",e),children:[(0,At.jsxs)(ve,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:I,disabled:c||f<=o,children:[(0,At.jsx)(Sr.MinusCircleIcon,{className:"w-7 h-7 "}),(0,At.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,At.jsx)("input",{type:"number",value:f,onChange:z,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:c,...d}),(0,At.jsxs)(ve,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:b,disabled:c||f>=t,children:[(0,At.jsx)(Sr.PlusCircleIcon,{className:"w-7 h-7 "}),(0,At.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});an.displayName="Stepper";var pt=v(require("react"),1),ne=v(require("@radix-ui/react-navigation-menu"),1),kl=require("class-variance-authority"),Sl=require("@heroicons/react/16/solid");var We=require("react/jsx-runtime"),Dl=pt.createContext(null),yp=({value:e,children:o})=>(0,We.jsx)(Dl.Provider,{value:e,children:o}),wp=()=>{let e=pt.useContext(Dl);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Ra=pt.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>(0,We.jsx)(yp,{value:{alignDropdown:t},children:(0,We.jsx)(ne.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Ra.displayName=ne.Root.displayName;var Ta=pt.forwardRef(({className:e,...o},t)=>(0,We.jsx)(ne.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ta.displayName=ne.List.displayName;var ka=ne.Item,Sa=(0,kl.cva)(nt({variant:"transparent",size:"sm"})),Da=pt.forwardRef(({className:e,children:o,...t},a)=>(0,We.jsxs)(ne.Trigger,{ref:a,className:i(Sa(),"group px-2",e),...t,children:[o," ",(0,We.jsx)(Sl.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Da.displayName=ne.Trigger.displayName;var Ma=pt.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=wp();return(0,We.jsx)(ne.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})});Ma.displayName=ne.Content.displayName;var Jo=ne.Link,Np=pt.forwardRef(({className:e,...o},t)=>(0,We.jsx)("div",{className:i("absolute left-0 top-full flex justify-center"),children:(0,We.jsx)(ne.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})}));Np.displayName=ne.Viewport.displayName;var Pp=pt.forwardRef(({className:e,...o},t)=>(0,We.jsx)(ne.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,We.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Pp.displayName=ne.Indicator.displayName;var Ml=v(require("react"),1),Ia=v(require("@radix-ui/react-switch"),1);var rn=require("react/jsx-runtime"),Aa=Ml.forwardRef(({className:e,...o},t)=>(0,rn.jsx)(Ia.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,rn.jsx)(Ia.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")})}));Aa.displayName=Ia.Root.displayName;var Lo=v(require("react"),1),po=v(require("@radix-ui/react-radio-group"),1),Il=require("lucide-react"),nn=require("class-variance-authority");var ea=require("react/jsx-runtime"),Cp=(0,nn.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"}}),Rp=(0,nn.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Al=Lo.createContext({size:"medium"});function Tp(){let e=Lo.useContext(Al);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var sn=Lo.forwardRef(({className:e,size:o,...t},a)=>(0,ea.jsx)(Al.Provider,{value:{size:o},children:(0,ea.jsx)(po.Root,{className:i("grid gap-2",e),...t,ref:a})}));sn.displayName=po.Root.displayName;var ln=Lo.forwardRef(({className:e,...o},t)=>{let a=Tp(),{size:r}=a??{};return(0,ea.jsx)(po.Item,{ref:t,className:i(Cp({size:r}),e),...o,children:(0,ea.jsx)(po.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,ea.jsx)(Il.Circle,{className:i(Rp({size:r}))})})})});ln.displayName=po.Item.displayName;var Ol=require("react"),Vl=require("@heroicons/react/16/solid"),Wl=v(require("html-react-parser"),1);var La=require("react"),mn=v(require("next/router"),1),Ft=require("motion/react"),El=require("react-use");var Mr=[.24,.25,.05,1];var Fl=require("motion/react");var eo=require("react/jsx-runtime"),kp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,eo.jsx)("li",{className:"min-h-8",children:(0,eo.jsxs)("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&(0,eo.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,eo.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,eo.jsxs)("div",{className:" ",children:[(0,eo.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,eo.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ll=kp;var Lt=require("react/jsx-runtime"),Sp={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Mr}},exit:{opacity:0,transition:{duration:.05}}},Dp=({data:e})=>(0,Lt.jsx)(yt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Lt.jsx)(Fl.motion.div,{variants:Sp,children:o.hasDropdown?(0,Lt.jsxs)(wt,{value:o.id,children:[(0,Lt.jsx)(Nt,{className:"py-3",children:o.title}),(0,Lt.jsx)(Pt,{children:(0,Lt.jsx)("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,Lt.jsx)(Ll,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,Lt.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)})}),zl=Dp;var P=require("react/jsx-runtime"),Mp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Ip=({data:e,className:o})=>{let[t,a]=(0,La.useState)(!1),[r,n]=(0,La.useState)(!1);(0,El.useKey)("Escape",()=>a(!1)),(0,La.useEffect)(()=>{if(!t)return;let c=Mp();function d(){a(!1)}function p(){a(!1),n(!0)}function f(u){let b=u.target;b.tagName==="A"&&b.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",mn.default.events.on("routeChangeComplete",d),window.addEventListener("hashchange",p),window.addEventListener("click",f),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:c||0,behavior:"instant"})),n(!1),mn.default.events.off("routeChangeComplete",d),window.removeEventListener("hashchange",p),window.removeEventListener("click",f)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Mr}},exit:{opacity:0,transition:{duration:.15}}};return(0,P.jsxs)("div",{className:i(o),children:[(0,P.jsxs)("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,P.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,P.jsx)(Ft.motion.div,{animate:t?"hidden":"visible",variants:s,children:(0,P.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,P.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,P.jsx)(Ft.motion.div,{animate:t?"visible":"hidden",variants:s,children:(0,P.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,P.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,P.jsx)(Ft.LazyMotion,{features:Ft.domAnimation,children:(0,P.jsx)(Ft.AnimatePresence,{mode:"wait",children:t&&(0,P.jsxs)(Ft.motion.nav,{variants:l,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,P.jsx)(zl,{data:e}),(0,P.jsxs)("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,P.jsxs)("div",{className:"flex flex-nowrap",children:[(0,P.jsx)("div",{className:"flex-initial",children:(0,P.jsx)("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:(0,P.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,P.jsx)("div",{className:"ml-3 flex-initial",children:(0,P.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:(0,P.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,P.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,P.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,P.jsx)("a",{href:`tel:${Gt.Support.Hotline}`,className:"text-gray-600",children:Gt.Support.Hotline_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsx)("a",{href:`mailto:${Gt.Support.Email}`,className:"text-gray-600",children:Gt.Support.Email})]})]}),(0,P.jsx)("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,P.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[(0,P.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,P.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,P.jsxs)("g",{children:[(0,P.jsx)("title",{children:"Asset 1"}),(0,P.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
120
|
+
`})]})});var Sr=require("@heroicons/react/24/outline");var Dr=require("react");var At=require("react/jsx-runtime"),an=(0,Dr.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:c=!1,...d},p)=>{let[f,u]=(0,Dr.useState)(r),b=()=>{let M=Math.min(f+a,t);u(M),n?.(M),l?.(M)},D=()=>{let M=Math.max(f-a,o);u(M),n?.(M),s?.(M)},R=M=>{let q=parseFloat(M.target.value);if(!isNaN(q)){let Z=Math.max(Math.min(q,t),o);u(Z),n?.(Z)}};return(0,At.jsxs)("div",{ref:p,className:i("flex items-center ",e),children:[(0,At.jsxs)(ve,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:D,disabled:c||f<=o,children:[(0,At.jsx)(Sr.MinusCircleIcon,{className:"w-7 h-7 "}),(0,At.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,At.jsx)("input",{type:"number",value:f,onChange:R,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:c,...d}),(0,At.jsxs)(ve,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:b,disabled:c||f>=t,children:[(0,At.jsx)(Sr.PlusCircleIcon,{className:"w-7 h-7 "}),(0,At.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});an.displayName="Stepper";var pt=v(require("react"),1),ne=v(require("@radix-ui/react-navigation-menu"),1),Tl=require("class-variance-authority"),kl=require("@heroicons/react/16/solid");var We=require("react/jsx-runtime"),Sl=pt.createContext(null),yp=({value:e,children:o})=>(0,We.jsx)(Sl.Provider,{value:e,children:o}),wp=()=>{let e=pt.useContext(Sl);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Ra=pt.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>(0,We.jsx)(yp,{value:{alignDropdown:t},children:(0,We.jsx)(ne.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Ra.displayName=ne.Root.displayName;var Ta=pt.forwardRef(({className:e,...o},t)=>(0,We.jsx)(ne.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ta.displayName=ne.List.displayName;var ka=ne.Item,Sa=(0,Tl.cva)(nt({variant:"transparent",size:"sm"})),Da=pt.forwardRef(({className:e,children:o,...t},a)=>(0,We.jsxs)(ne.Trigger,{ref:a,className:i(Sa(),"group px-2",e),...t,children:[o," ",(0,We.jsx)(kl.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Da.displayName=ne.Trigger.displayName;var Ma=pt.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=wp();return(0,We.jsx)(ne.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})});Ma.displayName=ne.Content.displayName;var Jo=ne.Link,Np=pt.forwardRef(({className:e,...o},t)=>(0,We.jsx)("div",{className:i("absolute left-0 top-full flex justify-center"),children:(0,We.jsx)(ne.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})}));Np.displayName=ne.Viewport.displayName;var Pp=pt.forwardRef(({className:e,...o},t)=>(0,We.jsx)(ne.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,We.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Pp.displayName=ne.Indicator.displayName;var Dl=v(require("react"),1),Ia=v(require("@radix-ui/react-switch"),1);var rn=require("react/jsx-runtime"),Aa=Dl.forwardRef(({className:e,...o},t)=>(0,rn.jsx)(Ia.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,rn.jsx)(Ia.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")})}));Aa.displayName=Ia.Root.displayName;var Lo=v(require("react"),1),po=v(require("@radix-ui/react-radio-group"),1),Ml=require("lucide-react"),nn=require("class-variance-authority");var ea=require("react/jsx-runtime"),Cp=(0,nn.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"}}),Rp=(0,nn.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Il=Lo.createContext({size:"medium"});function Tp(){let e=Lo.useContext(Il);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var sn=Lo.forwardRef(({className:e,size:o,...t},a)=>(0,ea.jsx)(Il.Provider,{value:{size:o},children:(0,ea.jsx)(po.Root,{className:i("grid gap-2",e),...t,ref:a})}));sn.displayName=po.Root.displayName;var ln=Lo.forwardRef(({className:e,...o},t)=>{let a=Tp(),{size:r}=a??{};return(0,ea.jsx)(po.Item,{ref:t,className:i(Cp({size:r}),e),...o,children:(0,ea.jsx)(po.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,ea.jsx)(Ml.Circle,{className:i(Rp({size:r}))})})})});ln.displayName=po.Item.displayName;var Bl=require("react"),Ol=require("@heroicons/react/16/solid"),Vl=v(require("html-react-parser"),1);var La=require("react"),Ft=require("motion/react"),zl=require("react-use");var Mr=[.24,.25,.05,1];var Ll=require("motion/react");var eo=require("react/jsx-runtime"),kp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,eo.jsx)("li",{className:"min-h-8",children:(0,eo.jsxs)("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&(0,eo.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,eo.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,eo.jsxs)("div",{className:" ",children:[(0,eo.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,eo.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Al=kp;var Lt=require("react/jsx-runtime"),Sp={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Mr}},exit:{opacity:0,transition:{duration:.05}}},Dp=({data:e})=>(0,Lt.jsx)(yt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Lt.jsx)(Ll.motion.div,{variants:Sp,children:o.hasDropdown?(0,Lt.jsxs)(wt,{value:o.id,children:[(0,Lt.jsx)(Nt,{className:"py-3",children:o.title}),(0,Lt.jsx)(Pt,{children:(0,Lt.jsx)("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,Lt.jsx)(Al,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,Lt.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)})}),Fl=Dp;var P=require("react/jsx-runtime"),Mp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Ip=({data:e,className:o})=>{let[t,a]=(0,La.useState)(!1),[r,n]=(0,La.useState)(!1);(0,zl.useKey)("Escape",()=>a(!1)),(0,La.useEffect)(()=>{if(!t)return;let c=Mp();function d(){a(!1)}function p(){a(!1),n(!0)}function f(R){let M=R.target;((M.closest&&M.closest("a"))?.getAttribute("href")||M.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let u=()=>{d()},b=history.pushState,D=history.replaceState;return history.pushState=((...R)=>{let M=b.apply(history,R);return u(),M}),history.replaceState=((...R)=>{let M=D.apply(history,R);return u(),M}),window.addEventListener("popstate",u),window.addEventListener("hashchange",p),window.addEventListener("click",f,!0),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:c||0,behavior:"instant"})),n(!1),history.pushState=b,history.replaceState=D,window.removeEventListener("popstate",u),window.removeEventListener("hashchange",p),window.removeEventListener("click",f,!0)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Mr}},exit:{opacity:0,transition:{duration:.15}}};return(0,P.jsxs)("div",{className:i(o),children:[(0,P.jsxs)("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,P.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,P.jsx)(Ft.motion.div,{animate:t?"hidden":"visible",variants:s,children:(0,P.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,P.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,P.jsx)(Ft.motion.div,{animate:t?"visible":"hidden",variants:s,children:(0,P.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,P.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,P.jsx)(Ft.LazyMotion,{features:Ft.domAnimation,children:(0,P.jsx)(Ft.AnimatePresence,{mode:"wait",children:t&&(0,P.jsxs)(Ft.motion.nav,{variants:l,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,P.jsx)(Fl,{data:e}),(0,P.jsxs)("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,P.jsxs)("div",{className:"flex flex-nowrap",children:[(0,P.jsx)("div",{className:"flex-initial",children:(0,P.jsx)("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:(0,P.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,P.jsx)("div",{className:"ml-3 flex-initial",children:(0,P.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:(0,P.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,P.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,P.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,P.jsx)("a",{href:`tel:${Gt.Support.Hotline}`,className:"text-gray-600",children:Gt.Support.Hotline_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsx)("a",{href:`mailto:${Gt.Support.Email}`,className:"text-gray-600",children:Gt.Support.Email})]})]}),(0,P.jsx)("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,P.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[(0,P.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,P.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,P.jsxs)("g",{children:[(0,P.jsx)("title",{children:"Asset 1"}),(0,P.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
121
121
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
122
122
|
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,P.jsx)("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
123
123
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
124
|
-
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,P.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,P.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,P.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,P.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,P.jsx)("a",{className:"text-gray-600",href:`tel:${Gt.Business.Phome}`,children:Gt.Business.Phome_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsxs)("a",{href:`mailto:${Gt.Business.Email}`,className:"text-gray-600",children:[" ",Gt.Business.Email]})]})]}),(0,P.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,P.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[(0,P.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,P.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,P.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,P.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},Hl=Ip;var zt=require("react/jsx-runtime"),Ap=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,zt.jsx)("li",{className:"",children:(0,zt.jsx)(Jo,{asChild:!0,children:(0,zt.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,zt.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,zt.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,zt.jsxs)("div",{className:" ",children:[(0,zt.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,zt.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},_l=Ap;var ft=require("react/jsx-runtime"),Lp=({data:e,alignDropdown:o})=>(0,ft.jsx)(Ra,{alignDropdown:o,children:(0,ft.jsx)(Ta,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,ft.jsxs)(ka,{className:"relative",children:[(0,ft.jsx)(Da,{children:t.title}),(0,ft.jsx)(Ma,{children:(0,ft.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,ft.jsx)(_l,{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,ft.jsx)(ka,{className:"relative",children:(0,ft.jsx)(Jo,{href:t.url,className:Sa(),...a,children:t.title})},t.id)})})}),Bl=Lp;var de=require("react/jsx-runtime"),cn=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:r,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:c,name:d,url:p}=t||{},[f,u]=(0,Ol.useState)(!1);return(0,de.jsxs)("div",{className:i(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[(0,de.jsx)("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,de.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,de.jsxs)("div",{className:"relative flex items-center ",children:[l&&(0,de.jsxs)("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[(0,de.jsx)("span",{className:"sr-only",children:"MoMo home page"}),(0,de.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&(0,de.jsxs)("a",{href:p,title:d,className:i("relative flex flex-none items-center space-x-1 rounded-none hover:opacity-80",l&&"pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-['']"),children:[(0,de.jsx)("img",{src:c,className:"h-9 w-9",alt:"MoMo"}),(0,de.jsx)("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:d&&(0,Wl.default)(d)})]}),(0,de.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,de.jsx)(Bl,{data:o,alignDropdown:s})}),(0,de.jsxs)("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&" lg:ml-0"),children:[r&&r,a&&(0,de.jsxs)("div",{className:" hidden sm:flex",children:[(0,de.jsxs)(_e,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>u(!0),children:[" ",(0,de.jsx)(Vl.ArrowDownTrayIcon,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),(0,de.jsx)(so,{open:f,onOpenChange:()=>u(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),(0,de.jsx)(Hl,{data:o,className:"lg:hidden "})]})]})})]})};cn.displayName="HeaderNavigation";var Gl=require("react");var g=require("react/jsx-runtime"),$l=({item:e})=>(0,g.jsx)("div",{className:"mt-3 flex w-full text-sm",children:(0,g.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,g.jsx)("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:(0,g.jsx)("img",{src:e.icon,className:"absolute inset-0"})}),(0,g.jsx)("span",{className:"block ",children:e.title})]})}),Fp=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=(0,Gl.useState)(null);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:(0,g.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,g.jsxs)("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[(0,g.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>(0,g.jsx)($l,{item:r},n))]}),(0,g.jsxs)("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[(0,g.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),(0,g.jsx)("div",{className:"flex flex-wrap",children:o?.lists?.map((r,n)=>(0,g.jsx)($l,{item:r},n))})]}),(0,g.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,g.jsxs)("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[(0,g.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,g.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,g.jsx)("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),(0,g.jsx)("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:Cs.Address})]}),(0,g.jsxs)("div",{className:"mt-1 text-sm",children:[(0,g.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,g.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Se.Support.Hotline}`,children:Se.Support.Hotline_Format}),(0,g.jsxs)("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),(0,g.jsxs)("div",{className:"mt-1 text-sm",children:[(0,g.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,g.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${Se.Support.Email}`,children:Se.Support.Email})]}),(0,g.jsxs)("div",{className:"mt-1 text-sm",children:[(0,g.jsx)("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),(0,g.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Se.Support.Phone_Ext_1}`,children:Se.Support.Phone_Ext_1_Format}),(0,g.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,g.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Se.Support.Phone_Ext_2}`,children:Se.Support.Phone_Ext_2_Format}),(0,g.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,g.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Se.Support.Phone_Ext_3}`,children:Se.Support.Phone_Ext_3_Format}),(0,g.jsx)("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),(0,g.jsx)("div",{className:"mt-3 flex",children:(0,g.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,g.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[(0,g.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,g.jsx)("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,g.jsxs)("g",{children:[(0,g.jsx)("title",{children:"Asset 1"}),(0,g.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,P.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,P.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,P.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,P.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,P.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,P.jsx)("a",{className:"text-gray-600",href:`tel:${Gt.Business.Phome}`,children:Gt.Business.Phome_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsxs)("a",{href:`mailto:${Gt.Business.Email}`,className:"text-gray-600",children:[" ",Gt.Business.Email]})]})]}),(0,P.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,P.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[(0,P.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,P.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,P.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,P.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},El=Ip;var zt=require("react/jsx-runtime"),Ap=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,zt.jsx)("li",{className:"",children:(0,zt.jsx)(Jo,{asChild:!0,children:(0,zt.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,zt.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,zt.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,zt.jsxs)("div",{className:" ",children:[(0,zt.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,zt.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Hl=Ap;var ft=require("react/jsx-runtime"),Lp=({data:e,alignDropdown:o})=>(0,ft.jsx)(Ra,{alignDropdown:o,children:(0,ft.jsx)(Ta,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,ft.jsxs)(ka,{className:"relative",children:[(0,ft.jsx)(Da,{children:t.title}),(0,ft.jsx)(Ma,{children:(0,ft.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,ft.jsx)(Hl,{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,ft.jsx)(ka,{className:"relative",children:(0,ft.jsx)(Jo,{href:t.url,className:Sa(),...a,children:t.title})},t.id)})})}),_l=Lp;var de=require("react/jsx-runtime"),mn=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:r,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:c,name:d,url:p}=t||{},[f,u]=(0,Bl.useState)(!1);return(0,de.jsxs)("div",{className:i(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[(0,de.jsx)("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,de.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,de.jsxs)("div",{className:"relative flex items-center ",children:[l&&(0,de.jsxs)("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[(0,de.jsx)("span",{className:"sr-only",children:"MoMo home page"}),(0,de.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&(0,de.jsxs)("a",{href:p,title:d,className:i("relative flex flex-none items-center space-x-1 rounded-none hover:opacity-80",l&&"pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-['']"),children:[(0,de.jsx)("img",{src:c,className:"h-9 w-9",alt:"MoMo"}),(0,de.jsx)("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:d&&(0,Vl.default)(d)})]}),(0,de.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,de.jsx)(_l,{data:o,alignDropdown:s})}),(0,de.jsxs)("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&" lg:ml-0"),children:[r&&r,a&&(0,de.jsxs)("div",{className:" hidden sm:flex",children:[(0,de.jsxs)(_e,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>u(!0),children:[" ",(0,de.jsx)(Ol.ArrowDownTrayIcon,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),(0,de.jsx)(so,{open:f,onOpenChange:()=>u(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),(0,de.jsx)(El,{data:o,className:"lg:hidden "})]})]})})]})};mn.displayName="HeaderNavigation";var $l=require("react");var g=require("react/jsx-runtime"),Wl=({item:e})=>(0,g.jsx)("div",{className:"mt-3 flex w-full text-sm",children:(0,g.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,g.jsx)("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:(0,g.jsx)("img",{src:e.icon,className:"absolute inset-0"})}),(0,g.jsx)("span",{className:"block ",children:e.title})]})}),Fp=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=(0,$l.useState)(null);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:(0,g.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,g.jsxs)("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[(0,g.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>(0,g.jsx)(Wl,{item:r},n))]}),(0,g.jsxs)("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[(0,g.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),(0,g.jsx)("div",{className:"flex flex-wrap",children:o?.lists?.map((r,n)=>(0,g.jsx)(Wl,{item:r},n))})]}),(0,g.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,g.jsxs)("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[(0,g.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,g.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,g.jsx)("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),(0,g.jsx)("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:Ps.Address})]}),(0,g.jsxs)("div",{className:"mt-1 text-sm",children:[(0,g.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,g.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Se.Support.Hotline}`,children:Se.Support.Hotline_Format}),(0,g.jsxs)("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),(0,g.jsxs)("div",{className:"mt-1 text-sm",children:[(0,g.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,g.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${Se.Support.Email}`,children:Se.Support.Email})]}),(0,g.jsxs)("div",{className:"mt-1 text-sm",children:[(0,g.jsx)("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),(0,g.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Se.Support.Phone_Ext_1}`,children:Se.Support.Phone_Ext_1_Format}),(0,g.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,g.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Se.Support.Phone_Ext_2}`,children:Se.Support.Phone_Ext_2_Format}),(0,g.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,g.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Se.Support.Phone_Ext_3}`,children:Se.Support.Phone_Ext_3_Format}),(0,g.jsx)("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),(0,g.jsx)("div",{className:"mt-3 flex",children:(0,g.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,g.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[(0,g.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,g.jsx)("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,g.jsxs)("g",{children:[(0,g.jsx)("title",{children:"Asset 1"}),(0,g.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,g.jsx)("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
127
127
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
@@ -129,14 +129,14 @@
|
|
|
129
129
|
footer .button-download {
|
|
130
130
|
max-width: 150px;
|
|
131
131
|
}
|
|
132
|
-
`})]})},
|
|
132
|
+
`})]})},Gl=Fp;var cn=require("react/jsx-runtime"),jl=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,cn.jsx)("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,cn.jsx)(Gl,{primaryMenu:o,secondaryMenu:t})});var Fo=v(require("react"),1);var zo=require("react/jsx-runtime"),dn=Fo.forwardRef(({className:e,...o},t)=>(0,zo.jsx)("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));dn.displayName="Card";var pn=Fo.forwardRef(({className:e,...o},t)=>(0,zo.jsx)("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));pn.displayName="CardHeader";var fn=Fo.forwardRef(({className:e,...o},t)=>(0,zo.jsx)("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));fn.displayName="CardTitle";var gn=Fo.forwardRef(({className:e,...o},t)=>(0,zo.jsx)("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));gn.displayName="CardDescription";var un=Fo.forwardRef(({className:e,...o},t)=>(0,zo.jsx)("div",{ref:t,className:i("p-6 pt-0",e),...o}));un.displayName="CardContent";var vn=Fo.forwardRef(({className:e,...o},t)=>(0,zo.jsx)("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));vn.displayName="CardFooter";var Ke=v(require("react"),1),Me=require("cmdk");var Ir=require("@heroicons/react/16/solid"),Te=require("react/jsx-runtime"),Ar=Ke.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Me.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=Me.Command.displayName;var Ql=({children:e,...o})=>(0,Te.jsx)(Ue,{...o,children:(0,Te.jsx)(Be,{className:"overflow-hidden p-0 shadow-lg",children:(0,Te.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})})}),hn=Ke.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=Ke.useRef(null),[s,l]=Ke.useState(""),c=()=>{!s||s?.length<=0||(l(""),o?.(s))};return(0,Te.jsxs)("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[(0,Te.jsx)(Ir.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,Te.jsx)(Me.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:l,...a}),(0,Te.jsx)(Ir.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")})]})});hn.displayName=Me.Command.Input.displayName;var xn=Ke.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Me.Command.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));xn.displayName=Me.Command.List.displayName;var bn=Ke.forwardRef((e,o)=>(0,Te.jsx)(Me.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));bn.displayName=Me.Command.Empty.displayName;var yn=Ke.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Me.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}));yn.displayName=Me.Command.Group.displayName;var wn=Ke.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Me.Command.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));wn.displayName=Me.Command.Separator.displayName;var Nn=Ke.forwardRef(({className:e,children:o,...t},a)=>(0,Te.jsx)(Me.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}));Nn.displayName=Me.Command.Item.displayName;var Pn=({className:e,...o})=>(0,Te.jsx)("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Pn.displayName="CommandShortcut";var Ul=require("@heroicons/react/16/solid");var fo=require("react/jsx-runtime"),ql=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>(0,fo.jsxs)("div",{className:"relative",children:[(0,fo.jsxs)(qo,{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,fo.jsx)(Ul.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&(0,fo.jsx)("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Xl=({children:e,className:o,...t})=>(0,fo.jsx)(So,{className:i("border-none !p-0",o),...t,children:e}),Yl=({open:e,onOpenChange:o,children:t,...a})=>(0,fo.jsx)(Uo,{open:e,onOpenChange:o,...a,children:t});var Zl=require("react"),Kl=require("@heroicons/react/24/outline"),Cn=require("class-variance-authority"),Jl=v(require("html-react-parser"),1);var Eo=require("react/jsx-runtime"),zp=(0,Cn.cva)("flex items-center space-x-2 rounded-md border px-3 py-2 text-sm text-gray-700 ",{variants:{typeDiv:{neutral:"border-gray-300 bg-gray-50 ",error:"border-red-300 bg-red-50",success:"border-green-300 bg-green-50",warning:"border-yellow-300 bg-yellow-50",info:"border-blue-300 bg-blue-50"},disabled:{true:"pointer-events-none border-gray-300 bg-gray-50 text-gray-400 opacity-55"}},defaultVariants:{typeDiv:"neutral"}}),Ep=(0,Cn.cva)("h-5 w-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),ta=(0,Zl.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...c},d)=>(0,Eo.jsxs)("div",{ref:d,className:i("",r,zp({typeDiv:e,disabled:n})),...c,children:[(0,Eo.jsxs)("div",{className:"flex items-center space-x-2",children:[l||(0,Eo.jsx)(Kl.InformationCircleIcon,{className:i(Ep({typeIcon:e,disabled:n})),width:20,height:20}),o&&(0,Eo.jsx)("div",{children:(0,Jl.default)(o)})]}),t&&(0,Eo.jsx)(Pe,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));var go=require("react"),em=require("@heroicons/react/20/solid"),tm=require("@heroicons/react/24/outline");var Et=require("react/jsx-runtime"),om=(0,go.forwardRef)(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:n,onClickClear:s,value:l,defaultValue:c,type:d="text",...p},f)=>{let[u,b]=(0,go.useState)(!1),D=(0,go.useRef)(null),R=Q=>{Q&&!u&&b(!0),!Q&&u&&b(!1)},M=Q=>{R(Q.target.value),r?.(Q)},q=Q=>{R(Q.target.value),n?.(Q)},Z=()=>{let Q=D.current?.querySelector("input");Q&&(s?.(Q.value),Q.value="",Q.focus(),b(!1))};return(0,go.useEffect)(()=>{R(c||l)},[l,c]),(0,Et.jsxs)("div",{className:i(o),ref:D,children:[(0,Et.jsxs)("div",{className:"relative flex items-center",children:[(0,Et.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,Et.jsx)(em.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,Et.jsx)("input",{disabled:e,type:d,ref:f,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:M,onFocus:q,value:l,defaultValue:c,...p}),u&&(0,Et.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:Z,children:(0,Et.jsx)(tm.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,Et.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 $e=v(require("@radix-ui/react-dialog"),1),Je=v(require("react"),1);var am=require("lucide-react"),rm=v(require("lodash"),1);var j=require("react/jsx-runtime"),im=Je.default.createContext(void 0);function nm(){let e=(0,Je.useContext)(im);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Lr=({children:e,open:o,onOpenChange:t,className:a})=>(0,j.jsx)(im.Provider,{value:{open:o,onOpenChange:t},children:(0,j.jsx)($e.Root,{open:o,onOpenChange:t,children:(0,j.jsx)("div",{className:i("lightbox-gallery",a),children:e})})}),sm=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=nm(),c=()=>{n?.(),l&&l(!0)};return(0,j.jsxs)($e.Trigger,{className:i("",a),onClick:c,children:[e,(0,j.jsx)(U,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,j.jsx)("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},lm=Je.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=nm(),n=()=>{r&&r(!1)};return(0,j.jsxs)($e.Portal,{children:[(0,j.jsx)($e.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,j.jsxs)($e.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,j.jsxs)($e.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[(0,j.jsx)(am.X,{className:"h-4 w-4 mt-0.5"}),(0,j.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});lm.displayName=$e.Content.displayName;var Fr=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=(0,Je.useState)(""),[l,c]=(0,Je.useState)(),[d,p]=(0,Je.useState)(0);(0,Je.useEffect)(()=>{l&&(p(l.selectedScrollSnap()+1),l.on("select",()=>{p(l.selectedScrollSnap()+1)}))},[l]);let f=u=>{let b=rm.default.filter(e,(
|
|
139
|
+
`})]})});var $e=v(require("@radix-ui/react-dialog"),1),Je=v(require("react"),1);var am=require("lucide-react"),rm=v(require("lodash"),1);var j=require("react/jsx-runtime"),im=Je.default.createContext(void 0);function nm(){let e=(0,Je.useContext)(im);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Lr=({children:e,open:o,onOpenChange:t,className:a})=>(0,j.jsx)(im.Provider,{value:{open:o,onOpenChange:t},children:(0,j.jsx)($e.Root,{open:o,onOpenChange:t,children:(0,j.jsx)("div",{className:i("lightbox-gallery",a),children:e})})}),sm=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=nm(),c=()=>{n?.(),l&&l(!0)};return(0,j.jsxs)($e.Trigger,{className:i("",a),onClick:c,children:[e,(0,j.jsx)(U,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,j.jsx)("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},lm=Je.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=nm(),n=()=>{r&&r(!1)};return(0,j.jsxs)($e.Portal,{children:[(0,j.jsx)($e.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,j.jsxs)($e.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,j.jsxs)($e.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[(0,j.jsx)(am.X,{className:"h-4 w-4 mt-0.5"}),(0,j.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});lm.displayName=$e.Content.displayName;var Fr=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=(0,Je.useState)(""),[l,c]=(0,Je.useState)(),[d,p]=(0,Je.useState)(0);(0,Je.useEffect)(()=>{l&&(p(l.selectedScrollSnap()+1),l.on("select",()=>{p(l.selectedScrollSnap()+1)}))},[l]);let f=u=>{let b=rm.default.filter(e,(R,M)=>M===(u>0?u-1:u)),D=b.length>0?b[0]?.titleImage:"";s(D)};return(0,Je.useEffect)(()=>{f(d)},[d]),(0,j.jsxs)(lm,{className:"flex py-0",children:[(0,j.jsxs)("div",{className:" flex-1 relative",children:[(0,j.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[d||1," / ",e?.length]}),(0,j.jsxs)(Ce,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[(0,j.jsx)(Re,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,b)=>(0,j.jsx)(we,{className:"pl-6 md:pl-4",children:(0,j.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,j.jsx)("div",{className:"flex-1 relative",children:(0,j.jsx)("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,j.jsx)("div",{className:"flex-0",children:(0,j.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,j.jsx)("div",{className:"line-clamp-3",children:n})})})]})},b))}),(0,j.jsx)(Ro,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,j.jsx)(To,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&(0,j.jsx)("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};var uo=v(require("react"),1),mm=require("@heroicons/react/16/solid"),Fa=v(require("@radix-ui/react-checkbox"),1),vo=v(require("@radix-ui/react-radio-group"),1),cm=require("lucide-react");var ze=require("react/jsx-runtime"),dm=uo.createContext({hideIndicator:!1});function Hp(){let e=uo.useContext(dm);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var za=uo.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,ze.jsx)(dm.Provider,{value:{hideIndicator:o},children:(0,ze.jsx)(vo.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));za.displayName=vo.Root.displayName;var Ea=uo.forwardRef(({className:e,children:o,...t},a)=>{let r=Hp(),{hideIndicator:n}=r??{};return(0,ze.jsxs)(vo.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,ze.jsx)("div",{className:"min-w-0 flex-1",children:o}),!n&&(0,ze.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,ze.jsx)(vo.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:(0,ze.jsx)(cm.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Ea.displayName=vo.Item.displayName;var Rn=uo.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>(0,ze.jsxs)(Fa.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,ze.jsx)("div",{className:"min-w-0 flex-1",children:o}),!t&&(0,ze.jsx)("div",{className:"ring-offset-background h-4 w-4 shrink-0 rounded border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-300 group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:(0,ze.jsx)(Fa.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,ze.jsx)(mm.CheckIcon,{className:"h-4 w-4"})})})]}));Rn.displayName=Fa.Root.displayName;var pm=require("class-variance-authority");var gm=require("react/jsx-runtime"),Tn=(0,pm.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 fm({className:e,variant:o,...t}){return(0,gm.jsx)("div",{className:i(Tn({variant:o}),e),...t})}var um=v(require("react"),1),Ha=v(require("@radix-ui/react-progress"),1),Sn=require("class-variance-authority");var kn=require("react/jsx-runtime"),_p=(0,Sn.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"}}),Bp=(0,Sn.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"}}),Dn=um.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>(0,kn.jsx)(Ha.Root,{ref:s,className:i("",Bp({size:a}),e),...n,children:(0,kn.jsx)(Ha.Indicator,{className:i("",_p({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Dn.displayName=Ha.Root.displayName;var vm=require("react/jsx-runtime");function _a({className:e,...o}){return(0,vm.jsx)("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}var Ge=require("react/jsx-runtime");function zr({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,Ge.jsx)("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return(0,Ge.jsxs)("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,c)=>(0,Ge.jsx)("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),(0,Ge.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 hm=v(require("react"),1),Ht=v(require("@radix-ui/react-slider"),1);var gt=require("react/jsx-runtime"),In=hm.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>(0,gt.jsxs)(Ht.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,gt.jsx)(Ht.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,gt.jsx)(Ht.Range,{className:"absolute h-full bg-pink-500"})}),(0,gt.jsx)(Ht.Thumb,{className:"group relative",children:(0,gt.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,gt.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,gt.jsx)(Ht.Thumb,{className:"group relative",children:(0,gt.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,gt.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})})})]}));In.displayName=Ht.Root.displayName;var Rm=require("react");var pe=require("react/jsx-runtime"),Op=({author:e=""})=>(0,pe.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Vp=({author:e,avatar:o})=>(0,pe.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,pe.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,pe.jsx)(Op,{author:e})});function Wp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return(0,pe.jsx)(pe.Fragment,{children:(0,pe.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,pe.jsx)(Vp,{avatar:e,author:o}),(0,pe.jsxs)("div",{className:"flex flex-col",children:[o&&(0,pe.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,pe.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,pe.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,pe.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pe.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,pe.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&(0,pe.jsx)("div",{className:"absolute right-1 top-0",children:(0,pe.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var xm=Wp;var Ln=require("react");var bm=require("@heroicons/react/20/solid"),oa=require("react/jsx-runtime"),$p={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!"},Gp={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 jp({point:e,max:o,className:t}){let a=o>5?$p[e||10]:Gp[e||5];return(0,oa.jsxs)("div",{className:i("flex items-center space-x-1",t),children:[(0,oa.jsx)(bm.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,oa.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,oa.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var ym=jp;var wm=require("react"),An=v(require("html-react-parser"),1);var Hr=require("react/jsx-runtime"),Er=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,l]=(0,wm.useState)(!0),c=()=>{l(!s)},d=(p,f,u=" ")=>p.length<=f?p:p.substring(0,p.lastIndexOf(u,f));return(0,Hr.jsxs)("div",{className:i(n),children:[s?(0,An.default)(d(e,o)):(0,An.default)(e),e.length>o&&(0,Hr.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 ut=require("react/jsx-runtime");function Qp({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=(0,Ln.useState)(0),[c,d]=(0,Ln.useState)(!1),p=f=>{d(!0),l(f)};return(0,ut.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&(0,ut.jsx)(ym,{className:"mb-0.5",point:r.point,max:r.max}),e&&(0,ut.jsx)(Er,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,ut.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(f=>(0,ut.jsx)("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:f}))}),o?.length>0&&(0,ut.jsxs)(Lr,{open:c,onOpenChange:d,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((f,u)=>(0,ut.jsx)(U,{onClick:()=>p(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,ut.jsx)("img",{src:f.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),(0,ut.jsx)(Fr,{activeSlideIndex:s,images:o?.map((f,u)=>({url:f.url,titleImage:f.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Nm=Qp;var Cm=require("react/jsx-runtime");function Up({actions:e=[]}){return(0,Cm.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Pm=Up;var Ho=require("react/jsx-runtime"),Tm=(0,Rm.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:l=[],statusMessage:c,isReply:d,children:p,commentSideBar:f,isOutStanding:u,limitContent:b=260},I)=>(0,Ho.jsxs)("div",{ref:I,className:i("",d?"ml-4 py-4":"py-5"),children:[(0,Ho.jsx)(xm,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),(0,Ho.jsx)(Nm,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:f,limitContent:b}),l&&l?.filter(Boolean)?.length>0&&(0,Ho.jsx)(Pm,{actions:l.filter(Boolean)}),p&&(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:p})]}));var ho=v(require("react"),1),km=require("class-variance-authority");var Sm=require("@heroicons/react/16/solid"),Dm=require("lucide-react"),fe=require("react/jsx-runtime"),qp=(0,km.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"}}),Mm=ho.createContext("default");function Xp(){let e=ho.useContext(Mm);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Yp=ho.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,fe.jsx)(Dm.XIcon,{className:s}):(0,fe.jsxs)("div",{children:[e==="iconStep"&&(0,fe.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,fe.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,fe.jsx)(Sm.CheckIcon,{className:s}):(0,fe.jsx)("div",{children:t}))]})}),Im=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=ho.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,fe.jsx)("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Am=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:l,fristStep:c,icon:d,isError:p,onValueChangeStep:f,...u})=>{let b=Xp();return(0,fe.jsxs)("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[(0,fe.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,fe.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,fe.jsx)("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",qp({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",r),...u,children:(0,fe.jsx)(Yp,{type:b,icon:d,stepNumber:e,size:t,isError:p,state:o})}),(0,fe.jsx)("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,fe.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,fe.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,fe.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Lm=({children:e,className:o,type:t="numberStep",...a})=>(0,fe.jsx)(Mm.Provider,{value:t,children:(0,fe.jsx)("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});var Ee=v(require("react"),1),Hm=require("@radix-ui/react-slot"),aa=require("react-hook-form");var Fm=v(require("react"),1),Fn=v(require("@radix-ui/react-label"),1),zm=require("class-variance-authority");var Em=require("react/jsx-runtime"),Zp=(0,zm.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),_r=Fm.forwardRef(({className:e,...o},t)=>(0,Em.jsx)(Fn.Root,{ref:t,className:i(Zp(),e),...o}));_r.displayName=Fn.Root.displayName;var to=require("react/jsx-runtime"),Br=aa.FormProvider,_m=Ee.createContext({}),Or=({...e})=>(0,to.jsx)(_m.Provider,{value:{name:e.name},children:(0,to.jsx)(aa.Controller,{...e})}),ra=()=>{let e=Ee.useContext(_m),o=Ee.useContext(Bm),{getFieldState:t,formState:a}=(0,aa.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}},Bm=Ee.createContext({}),Ba=Ee.forwardRef(({className:e,...o},t)=>{let a=Ee.useId();return(0,to.jsx)(Bm.Provider,{value:{id:a},children:(0,to.jsx)("div",{ref:t,className:i("space-y-2",e),...o})})});Ba.displayName="FormItem";var Oa=Ee.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=ra();return(0,to.jsx)(_r,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});Oa.displayName="FormLabel";var Va=Ee.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=ra();return(0,to.jsx)(Hm.Slot,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});Va.displayName="FormControl";var Wa=Ee.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=ra();return(0,to.jsx)("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});Wa.displayName="FormDescription";var $a=Ee.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=ra(),s=r?String(r?.message):o;return s?(0,to.jsx)("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});$a.displayName="FormMessage";var oo=v(require("react"),1),S=v(require("@radix-ui/react-dropdown-menu"),1),Vr=require("lucide-react");var se=require("react/jsx-runtime"),Om=S.Root,Vm=S.Trigger,Wm=S.Group,$m=S.Portal,Gm=S.Sub,jm=S.RadioGroup,zn=oo.forwardRef(({className:e,inset:o,children:t,...a},r)=>(0,se.jsxs)(S.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,se.jsx)(Vr.ChevronRight,{className:"ml-auto"})]}));zn.displayName=S.SubTrigger.displayName;var En=oo.forwardRef(({className:e,...o},t)=>(0,se.jsx)(S.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}));En.displayName=S.SubContent.displayName;var Hn=oo.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,se.jsx)(S.Portal,{children:(0,se.jsx)(S.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})}));Hn.displayName=S.Content.displayName;var _n=oo.forwardRef(({className:e,inset:o,...t},a)=>(0,se.jsx)(S.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}));_n.displayName=S.Item.displayName;var Bn=oo.forwardRef(({className:e,children:o,checked:t,...a},r)=>(0,se.jsxs)(S.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,se.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,se.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,se.jsx)(S.ItemIndicator,{children:(0,se.jsx)("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:(0,se.jsx)(Vr.Check,{size:16,strokeWidth:3})})})]}),o]}));Bn.displayName=S.CheckboxItem.displayName;var On=oo.forwardRef(({className:e,children:o,...t},a)=>(0,se.jsxs)(S.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,se.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,se.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,se.jsx)(S.ItemIndicator,{children:(0,se.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));On.displayName=S.RadioItem.displayName;var Vn=oo.forwardRef(({className:e,inset:o,...t},a)=>(0,se.jsx)(S.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Vn.displayName=S.Label.displayName;var Wn=oo.forwardRef(({className:e,...o},t)=>(0,se.jsx)(S.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));Wn.displayName=S.Separator.displayName;var $n=({className:e,...o})=>(0,se.jsx)("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});$n.displayName="DropdownMenuShortcut";var qm=require("@radix-ui/react-slot"),xo=v(require("html-react-parser"),1);var Qm=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};var C=require("react/jsx-runtime"),Um=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.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,C.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>(0,C.jsx)("div",{className:i("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:(0,C.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,C.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,C.jsxs)("div",{className:"mt-6 w-full",children:[(0,C.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,xo.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,xo.default)(a.description)})]})]})},r))}),t&&(0,C.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Kp=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.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,C.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>(0,C.jsxs)("div",{className:i("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[(0,C.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,C.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,C.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,C.jsx)(U,{ratio:1,children:(0,C.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,C.jsxs)("div",{className:"mt-6 w-full",children:[(0,C.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,xo.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,xo.default)(a.description)})]})]},r))}),t&&(0,C.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Jp=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.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,C.jsx)("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4 ",children:o.map((a,r)=>(0,C.jsxs)("div",{className:i("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&(0,C.jsx)("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?Qm(a.image)?(0,C.jsx)("img",{src:a.image,className:"block object-cover"}):(0,C.jsx)(qm.Slot,{className:"h-6 w-6 stroke-white stroke-2",children:(0,xo.default)(a.image.replace(/\n|\r/g,""))}):a.image}),(0,C.jsxs)("div",{className:"mt-4 w-full md:mt-6",children:[(0,C.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,xo.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,xo.default)(a.description)})]})]},r))}),t&&(0,C.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ef=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,C.jsx)(Um,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,C.jsx)(Kp,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return(0,C.jsx)(Jp,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,C.jsx)(Um,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},tf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,C.jsx)(C.Fragment,{children:ef({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Xm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>(0,C.jsx)(Y,{className:t,idSection:a,background:o,children:(0,C.jsx)(tf,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});var Ym=require("class-variance-authority"),Gn=v(require("html-react-parser"),1),jn=require("lucide-react");var re=require("react/jsx-runtime"),of=(0,Ym.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}}),af=({template:e,name:o,image:t,isFeatures:a})=>(0,re.jsx)(re.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,re.jsx)(re.Fragment,{children:(0,re.jsxs)("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?(0,re.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,re.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,re.jsx)("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:(0,re.jsx)(jn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,re.jsx)("div",{className:"ml-2 ",children:(0,Gn.default)(o)})]})});case 3:return(0,re.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,re.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,re.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,re.jsx)("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:(0,re.jsx)(jn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,re.jsx)("div",{className:"my-auto ml-2 md:my-0",children:(0,Gn.default)(o)})]});default:return null}})()}),Wr=({dataFeatures:e,template:o=1})=>(0,re.jsx)(re.Fragment,{children:(e?.length??0)>0&&(0,re.jsx)("ul",{className:i("",of({template:o})),children:e?.map((t,a)=>(0,re.jsx)(af,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var Zm=require("lucide-react");var q=require("react/jsx-runtime"),Km=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,rf=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>(0,q.jsxs)(Oo,{children:[(0,q.jsx)(bt,{greaterThan:"sm",children:(0,q.jsxs)(U,{className:i(""),ratio:Km(o),children:[(0,q.jsx)("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,q.jsxs)(Ue,{children:[(0,q.jsx)(Wo,{onClick:r,children:(0,q.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,q.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,q.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,q.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,q.jsx)("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),(0,q.jsx)(Be,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:(0,q.jsxs)(st,{className:"relative bg-transparent p-4 text-center",children:[(0,q.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,q.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),(0,q.jsx)(Xa,{asChild:!0,children:(0,q.jsx)(ve,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,q.jsx)(Zm.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,q.jsx)(bt,{lessThan:"md",children:(0,q.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,q.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),$r=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>(0,q.jsx)("div",{className:a,children:n?(0,q.jsx)(rf,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,q.jsx)(U,{ratio:Km(t),children:(0,q.jsx)("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});var Jm=v(require("html-react-parser"),1);var vt=require("react/jsx-runtime"),nf=({value:e,suffix:o,unit:t,description:a,idx:r})=>(0,vt.jsxs)("div",{className:i(""),children:[e&&(0,vt.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,vt.jsxs)("span",{children:[o," ",t]})]}),a&&(0,vt.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,Jm.default)(a)})]}),Gr=({dataStats:e})=>(0,vt.jsx)(vt.Fragment,{children:(e?.length??0)>0&&(0,vt.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,vt.jsx)(nf,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var W=require("react/jsx-runtime"),Qn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,W.jsxs)("div",{className:"col-span-1 ",children:[(0,W.jsx)(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,W.jsx)(Wr,{dataFeatures:t,template:a}),o&&(0,W.jsx)(N,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,W.jsx)(Gr,{dataStats:r})]}),(0,W.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,W.jsx)($r,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),ec=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,W.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,W.jsx)($r,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,W.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,W.jsx)(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,W.jsx)(Wr,{dataFeatures:t,template:a}),o&&(0,W.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,W.jsx)(N,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,W.jsx)(Gr,{dataStats:r})]})]}),tc=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)(W.Fragment,{children:[(0,W.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,W.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,W.jsx)(Wr,{dataFeatures:t,template:a}),(0,W.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,W.jsx)(Gr,{dataStats:r})}),s||(0,W.jsx)(W.Fragment,{children:n?.src&&(0,W.jsx)($r,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var _t=require("react/jsx-runtime"),sf=`var(
|
|
246
|
+
`})]})}})()})}var hm=v(require("react"),1),Ht=v(require("@radix-ui/react-slider"),1);var gt=require("react/jsx-runtime"),Mn=hm.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>(0,gt.jsxs)(Ht.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,gt.jsx)(Ht.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,gt.jsx)(Ht.Range,{className:"absolute h-full bg-pink-500"})}),(0,gt.jsx)(Ht.Thumb,{className:"group relative",children:(0,gt.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,gt.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,gt.jsx)(Ht.Thumb,{className:"group relative",children:(0,gt.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,gt.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})})})]}));Mn.displayName=Ht.Root.displayName;var Rm=require("react");var pe=require("react/jsx-runtime"),Op=({author:e=""})=>(0,pe.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Vp=({author:e,avatar:o})=>(0,pe.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,pe.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,pe.jsx)(Op,{author:e})});function Wp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return(0,pe.jsx)(pe.Fragment,{children:(0,pe.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,pe.jsx)(Vp,{avatar:e,author:o}),(0,pe.jsxs)("div",{className:"flex flex-col",children:[o&&(0,pe.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,pe.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,pe.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,pe.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pe.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,pe.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&(0,pe.jsx)("div",{className:"absolute right-1 top-0",children:(0,pe.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var xm=Wp;var An=require("react");var bm=require("@heroicons/react/20/solid"),oa=require("react/jsx-runtime"),$p={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!"},Gp={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 jp({point:e,max:o,className:t}){let a=o>5?$p[e||10]:Gp[e||5];return(0,oa.jsxs)("div",{className:i("flex items-center space-x-1",t),children:[(0,oa.jsx)(bm.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,oa.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,oa.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var ym=jp;var wm=require("react"),In=v(require("html-react-parser"),1);var Hr=require("react/jsx-runtime"),Er=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,l]=(0,wm.useState)(!0),c=()=>{l(!s)},d=(p,f,u=" ")=>p.length<=f?p:p.substring(0,p.lastIndexOf(u,f));return(0,Hr.jsxs)("div",{className:i(n),children:[s?(0,In.default)(d(e,o)):(0,In.default)(e),e.length>o&&(0,Hr.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 ut=require("react/jsx-runtime");function Qp({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=(0,An.useState)(0),[c,d]=(0,An.useState)(!1),p=f=>{d(!0),l(f)};return(0,ut.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&(0,ut.jsx)(ym,{className:"mb-0.5",point:r.point,max:r.max}),e&&(0,ut.jsx)(Er,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,ut.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(f=>(0,ut.jsx)("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:f}))}),o?.length>0&&(0,ut.jsxs)(Lr,{open:c,onOpenChange:d,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((f,u)=>(0,ut.jsx)(U,{onClick:()=>p(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,ut.jsx)("img",{src:f.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),(0,ut.jsx)(Fr,{activeSlideIndex:s,images:o?.map((f,u)=>({url:f.url,titleImage:f.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Nm=Qp;var Cm=require("react/jsx-runtime");function Up({actions:e=[]}){return(0,Cm.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Pm=Up;var Ho=require("react/jsx-runtime"),Tm=(0,Rm.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:l=[],statusMessage:c,isReply:d,children:p,commentSideBar:f,isOutStanding:u,limitContent:b=260},D)=>(0,Ho.jsxs)("div",{ref:D,className:i("",d?"ml-4 py-4":"py-5"),children:[(0,Ho.jsx)(xm,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),(0,Ho.jsx)(Nm,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:f,limitContent:b}),l&&l?.filter(Boolean)?.length>0&&(0,Ho.jsx)(Pm,{actions:l.filter(Boolean)}),p&&(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:p})]}));var ho=v(require("react"),1),km=require("class-variance-authority");var Sm=require("@heroicons/react/16/solid"),Dm=require("lucide-react"),fe=require("react/jsx-runtime"),qp=(0,km.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"}}),Mm=ho.createContext("default");function Xp(){let e=ho.useContext(Mm);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Yp=ho.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,fe.jsx)(Dm.XIcon,{className:s}):(0,fe.jsxs)("div",{children:[e==="iconStep"&&(0,fe.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,fe.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,fe.jsx)(Sm.CheckIcon,{className:s}):(0,fe.jsx)("div",{children:t}))]})}),Im=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=ho.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,fe.jsx)("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Am=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:l,fristStep:c,icon:d,isError:p,onValueChangeStep:f,...u})=>{let b=Xp();return(0,fe.jsxs)("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[(0,fe.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,fe.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,fe.jsx)("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",qp({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",r),...u,children:(0,fe.jsx)(Yp,{type:b,icon:d,stepNumber:e,size:t,isError:p,state:o})}),(0,fe.jsx)("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,fe.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,fe.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,fe.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Lm=({children:e,className:o,type:t="numberStep",...a})=>(0,fe.jsx)(Mm.Provider,{value:t,children:(0,fe.jsx)("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});var Ee=v(require("react"),1),Hm=require("@radix-ui/react-slot"),aa=require("react-hook-form");var Fm=v(require("react"),1),Ln=v(require("@radix-ui/react-label"),1),zm=require("class-variance-authority");var Em=require("react/jsx-runtime"),Zp=(0,zm.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),_r=Fm.forwardRef(({className:e,...o},t)=>(0,Em.jsx)(Ln.Root,{ref:t,className:i(Zp(),e),...o}));_r.displayName=Ln.Root.displayName;var to=require("react/jsx-runtime"),Br=aa.FormProvider,_m=Ee.createContext({}),Or=({...e})=>(0,to.jsx)(_m.Provider,{value:{name:e.name},children:(0,to.jsx)(aa.Controller,{...e})}),ra=()=>{let e=Ee.useContext(_m),o=Ee.useContext(Bm),{getFieldState:t,formState:a}=(0,aa.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}},Bm=Ee.createContext({}),Ba=Ee.forwardRef(({className:e,...o},t)=>{let a=Ee.useId();return(0,to.jsx)(Bm.Provider,{value:{id:a},children:(0,to.jsx)("div",{ref:t,className:i("space-y-2",e),...o})})});Ba.displayName="FormItem";var Oa=Ee.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=ra();return(0,to.jsx)(_r,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});Oa.displayName="FormLabel";var Va=Ee.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=ra();return(0,to.jsx)(Hm.Slot,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});Va.displayName="FormControl";var Wa=Ee.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=ra();return(0,to.jsx)("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});Wa.displayName="FormDescription";var $a=Ee.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=ra(),s=r?String(r?.message):o;return s?(0,to.jsx)("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});$a.displayName="FormMessage";var oo=v(require("react"),1),I=v(require("@radix-ui/react-dropdown-menu"),1),Vr=require("lucide-react");var se=require("react/jsx-runtime"),Om=I.Root,Vm=I.Trigger,Wm=I.Group,$m=I.Portal,Gm=I.Sub,jm=I.RadioGroup,Fn=oo.forwardRef(({className:e,inset:o,children:t,...a},r)=>(0,se.jsxs)(I.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,se.jsx)(Vr.ChevronRight,{className:"ml-auto"})]}));Fn.displayName=I.SubTrigger.displayName;var zn=oo.forwardRef(({className:e,...o},t)=>(0,se.jsx)(I.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}));zn.displayName=I.SubContent.displayName;var En=oo.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,se.jsx)(I.Portal,{children:(0,se.jsx)(I.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})}));En.displayName=I.Content.displayName;var Hn=oo.forwardRef(({className:e,inset:o,...t},a)=>(0,se.jsx)(I.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}));Hn.displayName=I.Item.displayName;var _n=oo.forwardRef(({className:e,children:o,checked:t,...a},r)=>(0,se.jsxs)(I.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,se.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,se.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,se.jsx)(I.ItemIndicator,{children:(0,se.jsx)("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:(0,se.jsx)(Vr.Check,{size:16,strokeWidth:3})})})]}),o]}));_n.displayName=I.CheckboxItem.displayName;var Bn=oo.forwardRef(({className:e,children:o,...t},a)=>(0,se.jsxs)(I.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,se.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,se.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,se.jsx)(I.ItemIndicator,{children:(0,se.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));Bn.displayName=I.RadioItem.displayName;var On=oo.forwardRef(({className:e,inset:o,...t},a)=>(0,se.jsx)(I.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));On.displayName=I.Label.displayName;var Vn=oo.forwardRef(({className:e,...o},t)=>(0,se.jsx)(I.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));Vn.displayName=I.Separator.displayName;var Wn=({className:e,...o})=>(0,se.jsx)("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});Wn.displayName="DropdownMenuShortcut";var qm=require("@radix-ui/react-slot"),xo=v(require("html-react-parser"),1);var Qm=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};var C=require("react/jsx-runtime"),Um=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.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,C.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>(0,C.jsx)("div",{className:i("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:(0,C.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,C.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,C.jsxs)("div",{className:"mt-6 w-full",children:[(0,C.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,xo.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,xo.default)(a.description)})]})]})},r))}),t&&(0,C.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Kp=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.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,C.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>(0,C.jsxs)("div",{className:i("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[(0,C.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,C.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,C.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,C.jsx)(U,{ratio:1,children:(0,C.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,C.jsxs)("div",{className:"mt-6 w-full",children:[(0,C.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,xo.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,xo.default)(a.description)})]})]},r))}),t&&(0,C.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Jp=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.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,C.jsx)("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4 ",children:o.map((a,r)=>(0,C.jsxs)("div",{className:i("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&(0,C.jsx)("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?Qm(a.image)?(0,C.jsx)("img",{src:a.image,className:"block object-cover"}):(0,C.jsx)(qm.Slot,{className:"h-6 w-6 stroke-white stroke-2",children:(0,xo.default)(a.image.replace(/\n|\r/g,""))}):a.image}),(0,C.jsxs)("div",{className:"mt-4 w-full md:mt-6",children:[(0,C.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,xo.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,xo.default)(a.description)})]})]},r))}),t&&(0,C.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ef=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,C.jsx)(Um,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,C.jsx)(Kp,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return(0,C.jsx)(Jp,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,C.jsx)(Um,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},tf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,C.jsx)(C.Fragment,{children:ef({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Xm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>(0,C.jsx)(Y,{className:t,idSection:a,background:o,children:(0,C.jsx)(tf,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});var Ym=require("class-variance-authority"),$n=v(require("html-react-parser"),1),Gn=require("lucide-react");var re=require("react/jsx-runtime"),of=(0,Ym.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}}),af=({template:e,name:o,image:t,isFeatures:a})=>(0,re.jsx)(re.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,re.jsx)(re.Fragment,{children:(0,re.jsxs)("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?(0,re.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,re.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,re.jsx)("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:(0,re.jsx)(Gn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,re.jsx)("div",{className:"ml-2 ",children:(0,$n.default)(o)})]})});case 3:return(0,re.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,re.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,re.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,re.jsx)("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:(0,re.jsx)(Gn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,re.jsx)("div",{className:"my-auto ml-2 md:my-0",children:(0,$n.default)(o)})]});default:return null}})()}),Wr=({dataFeatures:e,template:o=1})=>(0,re.jsx)(re.Fragment,{children:(e?.length??0)>0&&(0,re.jsx)("ul",{className:i("",of({template:o})),children:e?.map((t,a)=>(0,re.jsx)(af,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var Zm=require("lucide-react");var X=require("react/jsx-runtime"),Km=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,rf=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>(0,X.jsxs)(Oo,{children:[(0,X.jsx)(bt,{greaterThan:"sm",children:(0,X.jsxs)(U,{className:i(""),ratio:Km(o),children:[(0,X.jsx)("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,X.jsxs)(Ue,{children:[(0,X.jsx)(Wo,{onClick:r,children:(0,X.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,X.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,X.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,X.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,X.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,X.jsx)(Be,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:(0,X.jsxs)(st,{className:"relative bg-transparent p-4 text-center",children:[(0,X.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,X.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,X.jsx)(Xa,{asChild:!0,children:(0,X.jsx)(ve,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,X.jsx)(Zm.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,X.jsx)(bt,{lessThan:"md",children:(0,X.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,X.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"})})})]}),$r=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>(0,X.jsx)("div",{className:a,children:n?(0,X.jsx)(rf,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,X.jsx)(U,{ratio:Km(t),children:(0,X.jsx)("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});var Jm=v(require("html-react-parser"),1);var vt=require("react/jsx-runtime"),nf=({value:e,suffix:o,unit:t,description:a,idx:r})=>(0,vt.jsxs)("div",{className:i(""),children:[e&&(0,vt.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,vt.jsxs)("span",{children:[o," ",t]})]}),a&&(0,vt.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,Jm.default)(a)})]}),Gr=({dataStats:e})=>(0,vt.jsx)(vt.Fragment,{children:(e?.length??0)>0&&(0,vt.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,vt.jsx)(nf,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var W=require("react/jsx-runtime"),jn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,W.jsxs)("div",{className:"col-span-1 ",children:[(0,W.jsx)(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,W.jsx)(Wr,{dataFeatures:t,template:a}),o&&(0,W.jsx)(N,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,W.jsx)(Gr,{dataStats:r})]}),(0,W.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,W.jsx)($r,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),ec=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,W.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,W.jsx)($r,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,W.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,W.jsx)(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,W.jsx)(Wr,{dataFeatures:t,template:a}),o&&(0,W.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,W.jsx)(N,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,W.jsx)(Gr,{dataStats:r})]})]}),tc=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,W.jsxs)(W.Fragment,{children:[(0,W.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,W.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,W.jsx)(Wr,{dataFeatures:t,template:a}),(0,W.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,W.jsx)(Gr,{dataStats:r})}),s||(0,W.jsx)(W.Fragment,{children:n?.src&&(0,W.jsx)($r,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var _t=require("react/jsx-runtime"),sf=`var(
|
|
247
247
|
--gradient-pink-1,
|
|
248
248
|
linear-gradient(
|
|
249
249
|
38deg,
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
rgba(255, 255, 255, 0) 80%
|
|
266
266
|
),
|
|
267
267
|
#fff
|
|
268
|
-
)`,lf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,_t.jsx)(
|
|
268
|
+
)`,lf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,_t.jsx)(jn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return(0,_t.jsx)(ec,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return(0,_t.jsx)(tc,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return(0,_t.jsx)(jn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},mf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_t.jsx)(_t.Fragment,{children:lf({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),oc=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:c,advancedComponent:d=null})=>(0,_t.jsx)(Y,{className:i(l),background:c??sf,idSection:o,children:(0,_t.jsx)(mf,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:d})});var ac=require("react");var ht=require("react/jsx-runtime"),jr=(0,ac.memo)(({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","40px":"md:gap-x-10","48px":"md:gap-x-12","56px":"md:gap-x-14","64px":"md:gap-x-16","80px":"md:gap-x-20"};return(0,ht.jsxs)(ht.Fragment,{children:[e&&(0,ht.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,ht.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:mx-0 md:space-x-0 md:px-0":"mx-auto max-w-xs flex-wrap justify-center md:max-w-full"),children:o?.map((s,l)=>{let c=s?.url?"a":"div",d=s?.url?{href:s.url,title:s.name,target:s.newTab?"_blank":"_self"}:{};return(0,ht.jsx)("div",{className:i("flex max-h-28 w-auto items-center justify-center md:max-w-36 md:basis-auto md:px-0",r?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-3"),children:(0,ht.jsx)(c,{...d,className:"group flex h-full w-full items-center justify-center",children:(0,ht.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:i("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105")})})},l)})}),t&&(0,ht.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});var rc=require("react");var et=require("react/jsx-runtime"),Qn=(0,rc.memo)(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>(0,et.jsxs)(et.Fragment,{children:[e&&(0,et.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,et.jsx)("div",{className:i("list-brands flex md:flex-wrap md:justify-center md:gap-y-6",a?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"-mx-2.5 flex-wrap gap-y-5 md:-mx-3"),children:o.map((r,n)=>{let s=r?.url?"a":"div",l=r?.url?{href:r.url,title:r.name,target:r.newTab?"_blank":"_self"}:{};return(0,et.jsx)("div",{className:i("flex items-center justify-center text-center md:basis-1/4 md:px-3",a?"shrink-0 basis-5/12 snap-center":"basis-1/2 px-2.5"),children:(0,et.jsx)(s,{...l,className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3 duration-300 hover:border-pink-500",children:(0,et.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,et.jsx)("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain"})})})},n)})}),t&&(0,et.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));var ic=require("react");var be=require("react/jsx-runtime"),Un=(e,o)=>{if(!e)return(0,be.jsx)("div",{className:i("h-full w-full",o)});let t=e.url?"a":"div";return(0,be.jsx)("div",{className:i("h-full w-full",o),children:(0,be.jsx)(t,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:i("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e.url&&"duration-300 hover:border-pink-500"),children:(0,be.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,be.jsx)("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},qn=(0,ic.memo)(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=Go(),r=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);r.push(...o.slice(0,s)),n.push(...o.slice(s))}return(0,be.jsxs)(be.Fragment,{children:[e&&(0,be.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,be.jsxs)(Ce,{opts:{align:a?"center":"start"},className:"w-full",children:[(0,be.jsx)(Re,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?r.map((s,l)=>(0,be.jsxs)(we,{className:"flex shrink-0 basis-5/12 flex-col items-center justify-between gap-3 pl-3 md:basis-1/4 md:gap-4 md:pl-4 lg:basis-1/6",children:[Un(s,"min-h-0 flex-1"),n[l]?Un(n[l],"min-h-0 flex-1"):(0,be.jsx)("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>(0,be.jsx)(we,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:Un(s)},l))}),(0,be.jsx)(ko,{className:"mt-5"})]}),t&&(0,be.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});var lc=require("react");var ia=require("react"),_o=require("motion/react"),nc=v(require("react-use-measure"),1);var Qr=require("react/jsx-runtime");function na({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[c,d]=(0,ia.useState)(t),[p,{width:f,height:u}]=(0,nc.default)(),b=(0,_o.useMotionValue)(0),[D,R]=(0,ia.useState)(!1),[M,q]=(0,ia.useState)(0);(0,ia.useEffect)(()=>{let Q,T=(r==="horizontal"?f:u)+o,K=n?-T/2:0,O=n?0:-T/2,it=Math.abs(O-K)/c;if(D){let da=Math.abs(b.get()-O)/c;Q=(0,_o.animate)(b,[b.get(),O],{ease:"linear",duration:da,onComplete:()=>{R(!1),q(_d=>_d+1)}})}else Q=(0,_o.animate)(b,[K,O],{ease:"linear",duration:it,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{b.set(K)}});return Q?.stop},[M,b,c,f,u,o,D,r,n]);let Z=a?{onHoverStart:()=>{R(!0),d(a)},onHoverEnd:()=>{R(!0),d(t)},onTouchStart:()=>{R(!0),d(a)},onTouchEnd:()=>{R(!0),d(t)}}:{};return(0,Qr.jsx)("div",{className:i("overflow-hidden",s),children:(0,Qr.jsxs)(_o.motion.div,{className:i("flex w-max",l),style:{...r==="horizontal"?{x:b,paddingLeft:o}:{y:b},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:p,...Z,children:[e,e]})})}var ue=require("react/jsx-runtime"),sc=(e,o)=>{let t=e?.url?"a":"div";return(0,ue.jsx)("div",{className:i("h-full w-full",o),children:(0,ue.jsx)(t,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:i("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e?.url&&"duration-300 hover:border-pink-500"),children:(0,ue.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,ue.jsx)("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},Xn=(0,lc.memo)(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,r=a>6;return(0,ue.jsxs)(ue.Fragment,{children:[e&&(0,ue.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,ue.jsx)(ue.Fragment,{children:r?(0,ue.jsx)("div",{className:"mark-horizontal-slider relative overflow-hidden",children:(0,ue.jsx)(na,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>(0,ue.jsx)("div",{className:"w-32 md:w-40",children:sc(n)},s))})}):(0,ue.jsx)("div",{className:i("list-brands -mx-5 flex snap-x snap-mandatory flex-nowrap space-x-3 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:flex-wrap md:justify-center md:gap-y-6 md:space-x-0 md:px-0"),children:o?.map((n,s)=>(0,ue.jsx)("div",{className:"flex shrink-0 basis-5/12 snap-center items-center justify-center md:basis-1/4 md:px-3 lg:basis-1/6",children:sc(n)},s))})}),t&&(0,ue.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,ue.jsx)("style",{children:`
|
|
269
269
|
.mark-horizontal-slider {
|
|
270
270
|
mask-image: linear-gradient(
|
|
271
271
|
to right,
|
|
@@ -282,15 +282,15 @@
|
|
|
282
282
|
transparent 100%
|
|
283
283
|
);
|
|
284
284
|
}
|
|
285
|
-
`})]})});var xt=require("react/jsx-runtime"),cf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return(0,xt.jsx)(jr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return(0,xt.jsx)(
|
|
285
|
+
`})]})});var xt=require("react/jsx-runtime"),cf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return(0,xt.jsx)(jr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return(0,xt.jsx)(Qn,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return(0,xt.jsx)(qn,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return(0,xt.jsx)(Xn,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return(0,xt.jsx)(jr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},df=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>(0,xt.jsx)(xt.Fragment,{children:cf({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),mc=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:c})=>(0,xt.jsx)(Y,{className:i(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:(0,xt.jsx)(df,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:c})});var cc=require("react"),dc=require("@heroicons/react/16/solid"),ie=v(require("html-react-parser"),1);var m=require("react/jsx-runtime"),Bt=({btnLink:e,btnName:o,newTab:t})=>(0,m.jsx)(Pe,{variant:"primary",asChild:!0,children:(0,m.jsxs)("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",(0,m.jsx)(dc.ChevronRightIcon,{className:"h-4 w-4"})]})}),Yn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(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}),o&&(0,m.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>(0,m.jsxs)("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&(0,m.jsx)("div",{className:"mx-auto h-16 w-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),pc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(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}),o&&(0,m.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,m.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,m.jsx)("div",{className:"h-16 w-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,m.jsx)("style",{children:`
|
|
286
286
|
.list-features-2 .feature-item {
|
|
287
287
|
background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
|
|
288
288
|
}
|
|
289
|
-
`})]}),fc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(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}),o&&(0,m.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>(0,m.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&(0,m.jsx)("div",{className:"h-16 w-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-4 w-full flex-1",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),gc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[(0,m.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,m.jsx)(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,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,m.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,m.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>(0,m.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,m.jsx)("div",{className:"h-16 w-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),uc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(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}),o&&(0,m.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,m.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,m.jsx)("div",{className:"h-16 w-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),vc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(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}),o&&(0,m.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,m.jsxs)("div",{className:"feature-item relative w-full",children:[a?.image&&(0,m.jsx)("div",{className:"h-12 w-12",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),hc=({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},l=a>=1&&a<=4||[6,7,8].includes(a)?r.special:r.default,c=n[a]??-1,d=(p,f)=>{let u=p?.btnLink?"a":"div",b=p?.btnLink?{href:p.btnLink,target:p?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:p?.btnName}:{};return(0,m.jsx)("div",{className:i("basis-1/2 px-2 lg:px-5",l,f===c&&"md:break-after-row",p?.btnLink&&"group cursor-pointer"),children:(0,m.jsxs)(u,{...b,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[p?.image&&(0,m.jsx)("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:(0,m.jsx)("img",{src:p?.image,alt:p?.name,className:"h-full w-full object-contain",loading:"lazy"})}),(0,m.jsxs)("div",{className:"w-full flex-1 text-center",children:[p?.name&&(0,m.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:(0,ie.default)(p.name)}),p?.description&&(0,m.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ie.default)(p.description)})]})]})},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}),o&&(0,m.jsx)("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((p,f)=>d(p,f))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},xc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(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}),o&&(0,m.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>(0,m.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[(0,m.jsxs)("div",{className:"flex w-full flex-1 flex-col p-5",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&(0,m.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),bc=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,m.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[(0,m.jsx)("div",{className:"flex items-center lg:col-span-6",children:(0,m.jsxs)("div",{className:"w-full",children:[e&&(0,m.jsx)(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,m.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,m.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&(0,m.jsx)("div",{className:"h-10 w-10",children:(0,m.jsx)("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,m.jsxs)("div",{className:"flex-1",children:[r?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(r.name)}),r?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(r.description)})]}),r?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&(0,m.jsx)("div",{className:"flex items-center lg:col-span-4",children:(0,m.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:(0,m.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,m.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),yc=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(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}),(0,m.jsx)("div",{className:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,m.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,m.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,m.jsx)("div",{className:"h-12 w-12",children:(0,m.jsx)("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,m.jsxs)("div",{className:"flex-1",children:[r?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(r.name)}),r?.description&&(0,m.jsx)("div",{className:"mt-2 text-gray-500",children:(0,ie.default)(r.description)})]}),r?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&(0,m.jsxs)("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[(0,m.jsx)("div",{className:"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,m.jsx)("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:(0,m.jsx)("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&(0,m.jsx)(N,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),wc=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=(0,cc.useState)(0),s=Go();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}),o&&(0,m.jsxs)("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[(0,m.jsx)("div",{children:(0,m.jsx)("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:(0,m.jsx)(yt,{type:"single",collapsible:s,onValueChange:l=>{let c=parseInt(l);isNaN(c)||n(c)},defaultValue:r.toString(),children:o?.map((l,c)=>(0,m.jsxs)(wt,{value:c.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[(0,m.jsx)(Nt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:(0,ie.default)(l.name||"")}),(0,m.jsxs)(Pt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&(0,m.jsx)("div",{className:"text-muted-foreground",children:(0,ie.default)(l.description||"")}),l?.btnLink&&(0,m.jsx)("div",{className:"",children:(0,m.jsx)(Bt,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&(0,m.jsx)("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:(0,m.jsx)(U,{ratio:1,className:"w-full",children:(0,m.jsx)("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},c))})})}),(0,m.jsx)("div",{className:i(a?.src?"flex":"hidden md:flex"),children:(0,m.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?(0,m.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,m.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):(0,m.jsx)("div",{className:"hidden md:flex",children:o?.[r]?.image?(0,m.jsx)(U,{ratio:1,className:"w-full",children:(0,m.jsx)("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):(0,m.jsx)("div",{className:"h-0 w-0"})})})})]}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var ye=require("react/jsx-runtime"),pf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return(0,ye.jsx)(Zn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,ye.jsx)(pc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,ye.jsx)(fc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,ye.jsx)(gc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,ye.jsx)(uc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,ye.jsx)(vc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,ye.jsx)(hc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,ye.jsx)(xc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,ye.jsx)(bc,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return(0,ye.jsx)(yc,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return(0,ye.jsx)(wc,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return(0,ye.jsx)(Zn,{dataHeading:o,dataFeatures:t,dataButtons:a})}},ff=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>(0,ye.jsx)(ye.Fragment,{children:pf({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Nc=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>(0,ye.jsx)(Y,{className:t,idSection:a,background:o,children:(0,ye.jsx)(ff,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});var Cc=require("@heroicons/react/24/solid"),Yr=v(require("html-react-parser"),1),Rc=v(require("lodash"),1);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"],qr=({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 B=require("react/jsx-runtime"),gf=({avatar:e="",name:o="",index:t=0})=>{if(Rc.default.isEmpty(e)){let a=qr({name:o})??"",r=Xr(t,Ur);return(0,B.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,B.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,B.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Pc=({testimonial:e,className:o,index:t})=>(0,B.jsx)("div",{className:i("testimonial-item",o),children:(0,B.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,B.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,B.jsx)(gf,{avatar:e.avatar,name:e.name,index:t}),(0,B.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,B.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,B.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Yr.default)(e.position)})]})]}),(0,B.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,B.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Yr.default)(e.shortTitle)}),e?.description&&(0,B.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,B.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,B.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,B.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>(0,B.jsx)(Cc.StarIcon,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Kn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return(0,B.jsxs)(B.Fragment,{children:[e&&(0,B.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,B.jsx)(B.Fragment,{children:r?(0,B.jsx)("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:(0,B.jsx)(na,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,B.jsx)(Pc,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,B.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,B.jsx)(Pc,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,B.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var Jn=require("@heroicons/react/24/solid"),Zr=v(require("html-react-parser"),1);var k=require("react/jsx-runtime"),uf=({className:e})=>(0,k.jsx)("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),vf=({testimonial:e,className:o})=>(0,k.jsx)("div",{className:i("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:(0,k.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,k.jsx)("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:(0,k.jsx)(U,{ratio:2/3,className:"w-full",children:(0,k.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),(0,k.jsxs)("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[(0,k.jsxs)("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[(0,k.jsxs)("div",{className:"grow",children:[e?.name&&(0,k.jsx)("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&(0,k.jsx)("div",{className:"mt-1 text-xs font-normal text-gray-500",children:(0,Zr.default)(e.position)})]}),(e?.date||Number(e?.rating)>0)&&(0,k.jsxs)("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&(0,k.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,k.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,k.jsx)(Jn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&(0,k.jsx)("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:(0,k.jsx)(U,{ratio:2/3,className:"w-full",children:(0,k.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),(0,k.jsxs)("div",{className:"flex flex-1 flex-col md:flex-none",children:[(0,k.jsxs)("div",{className:"flex-1",children:[(0,k.jsxs)("div",{className:"mb-1.5 flex flex-none space-x-3",children:[(0,k.jsx)(uf,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&(0,k.jsx)("div",{className:"flex-none text-base font-medium md:text-lg",children:(0,Zr.default)(e.shortTitle)})]}),e?.description&&(0,k.jsx)("blockquote",{className:"relative flex-1 text-justify text-base",children:(0,Zr.default)(e.description)})]}),(e?.date||Number(e?.rating)>0)&&(0,k.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,k.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,k.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,k.jsx)(Jn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),Tc=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.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,k.jsxs)(Ce,{className:"w-full",children:[(0,k.jsx)(Re,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>(0,k.jsx)(we,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:(0,k.jsx)(vf,{testimonial:a})},r))}),(o??[]).length>1&&(0,k.jsx)(ko,{className:"mt-8"})]}),t&&(0,k.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var Sc=require("@heroicons/react/24/solid"),Kr=v(require("html-react-parser"),1),Dc=v(require("lodash"),1);var L=require("react/jsx-runtime"),hf=({avatar:e="",name:o="",index:t=0})=>{if(Dc.default.isEmpty(e)){let a=qr({name:o})??"",r=Xr(t,Ur);return(0,L.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,L.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,L.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},kc=({testimonial:e,className:o,index:t})=>(0,L.jsx)("div",{className:i("testimonial-item",o),children:(0,L.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,L.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,L.jsx)(hf,{avatar:e.avatar,name:e.name,index:t}),(0,L.jsxs)("div",{className:"flex-1 pl-1",children:[(0,L.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,L.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Kr.default)(e.position)})]})]}),(0,L.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,L.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Kr.default)(e.shortTitle)}),e?.description&&(0,L.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,Kr.default)(e.description)})]}),(0,L.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,L.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,L.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>(0,L.jsx)(Sc.StarIcon,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Mc=({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=l=>(0,L.jsx)(L.Fragment,{children:l.map((c,d)=>(0,L.jsx)(na,{direction:"vertical",reverse:c.reverse,speed:c.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((p,f)=>(0,L.jsx)(kc,{testimonial:p,index:f,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${d}-${f}`))},`slider-${d}`))});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}),a>0&&(0,L.jsx)(Oo,{children:r?(0,L.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,L.jsx)(bt,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,L.jsx)(bt,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,L.jsx)(bt,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):(0,L.jsx)("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,c)=>(0,L.jsx)(kc,{testimonial:l,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,L.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,L.jsx)("style",{children:`
|
|
289
|
+
`})]}),fc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(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}),o&&(0,m.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>(0,m.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&(0,m.jsx)("div",{className:"h-16 w-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-4 w-full flex-1",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),gc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[(0,m.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,m.jsx)(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,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,m.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,m.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>(0,m.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,m.jsx)("div",{className:"h-16 w-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),uc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(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}),o&&(0,m.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,m.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,m.jsx)("div",{className:"h-16 w-16",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),vc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(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}),o&&(0,m.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,m.jsxs)("div",{className:"feature-item relative w-full",children:[a?.image&&(0,m.jsx)("div",{className:"h-12 w-12",children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),hc=({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},l=a>=1&&a<=4||[6,7,8].includes(a)?r.special:r.default,c=n[a]??-1,d=(p,f)=>{let u=p?.btnLink?"a":"div",b=p?.btnLink?{href:p.btnLink,target:p?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:p?.btnName}:{};return(0,m.jsx)("div",{className:i("basis-1/2 px-2 lg:px-5",l,f===c&&"md:break-after-row",p?.btnLink&&"group cursor-pointer"),children:(0,m.jsxs)(u,{...b,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[p?.image&&(0,m.jsx)("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:(0,m.jsx)("img",{src:p?.image,alt:p?.name,className:"h-full w-full object-contain",loading:"lazy"})}),(0,m.jsxs)("div",{className:"w-full flex-1 text-center",children:[p?.name&&(0,m.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:(0,ie.default)(p.name)}),p?.description&&(0,m.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ie.default)(p.description)})]})]})},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}),o&&(0,m.jsx)("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((p,f)=>d(p,f))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},xc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(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}),o&&(0,m.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>(0,m.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[(0,m.jsxs)("div",{className:"flex w-full flex-1 flex-col p-5",children:[(0,m.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&(0,m.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,m.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),bc=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,m.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[(0,m.jsx)("div",{className:"flex items-center lg:col-span-6",children:(0,m.jsxs)("div",{className:"w-full",children:[e&&(0,m.jsx)(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,m.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,m.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&(0,m.jsx)("div",{className:"h-10 w-10",children:(0,m.jsx)("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,m.jsxs)("div",{className:"flex-1",children:[r?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(r.name)}),r?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ie.default)(r.description)})]}),r?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&(0,m.jsx)("div",{className:"flex items-center lg:col-span-4",children:(0,m.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:(0,m.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,m.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),yc=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(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}),(0,m.jsx)("div",{className:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,m.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,m.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,m.jsx)("div",{className:"h-12 w-12",children:(0,m.jsx)("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),(0,m.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,m.jsxs)("div",{className:"flex-1",children:[r?.name&&(0,m.jsx)("h3",{className:"text-lg font-semibold",children:(0,ie.default)(r.name)}),r?.description&&(0,m.jsx)("div",{className:"mt-2 text-gray-500",children:(0,ie.default)(r.description)})]}),r?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Bt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&(0,m.jsxs)("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[(0,m.jsx)("div",{className:"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,m.jsx)("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:(0,m.jsx)("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&(0,m.jsx)(N,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),wc=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=(0,cc.useState)(0),s=Go();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}),o&&(0,m.jsxs)("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[(0,m.jsx)("div",{children:(0,m.jsx)("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:(0,m.jsx)(yt,{type:"single",collapsible:s,onValueChange:l=>{let c=parseInt(l);isNaN(c)||n(c)},defaultValue:r.toString(),children:o?.map((l,c)=>(0,m.jsxs)(wt,{value:c.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[(0,m.jsx)(Nt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:(0,ie.default)(l.name||"")}),(0,m.jsxs)(Pt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&(0,m.jsx)("div",{className:"text-muted-foreground",children:(0,ie.default)(l.description||"")}),l?.btnLink&&(0,m.jsx)("div",{className:"",children:(0,m.jsx)(Bt,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&(0,m.jsx)("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:(0,m.jsx)(U,{ratio:1,className:"w-full",children:(0,m.jsx)("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},c))})})}),(0,m.jsx)("div",{className:i(a?.src?"flex":"hidden md:flex"),children:(0,m.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?(0,m.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,m.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):(0,m.jsx)("div",{className:"hidden md:flex",children:o?.[r]?.image?(0,m.jsx)(U,{ratio:1,className:"w-full",children:(0,m.jsx)("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):(0,m.jsx)("div",{className:"h-0 w-0"})})})})]}),t&&(0,m.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var ye=require("react/jsx-runtime"),pf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return(0,ye.jsx)(Yn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,ye.jsx)(pc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,ye.jsx)(fc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,ye.jsx)(gc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,ye.jsx)(uc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,ye.jsx)(vc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,ye.jsx)(hc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,ye.jsx)(xc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,ye.jsx)(bc,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return(0,ye.jsx)(yc,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return(0,ye.jsx)(wc,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return(0,ye.jsx)(Yn,{dataHeading:o,dataFeatures:t,dataButtons:a})}},ff=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>(0,ye.jsx)(ye.Fragment,{children:pf({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Nc=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>(0,ye.jsx)(Y,{className:t,idSection:a,background:o,children:(0,ye.jsx)(ff,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});var Cc=require("@heroicons/react/24/solid"),Yr=v(require("html-react-parser"),1),Rc=v(require("lodash"),1);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"],qr=({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 B=require("react/jsx-runtime"),gf=({avatar:e="",name:o="",index:t=0})=>{if(Rc.default.isEmpty(e)){let a=qr({name:o})??"",r=Xr(t,Ur);return(0,B.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,B.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,B.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Pc=({testimonial:e,className:o,index:t})=>(0,B.jsx)("div",{className:i("testimonial-item",o),children:(0,B.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,B.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,B.jsx)(gf,{avatar:e.avatar,name:e.name,index:t}),(0,B.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,B.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,B.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Yr.default)(e.position)})]})]}),(0,B.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,B.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Yr.default)(e.shortTitle)}),e?.description&&(0,B.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,B.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,B.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,B.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>(0,B.jsx)(Cc.StarIcon,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Zn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return(0,B.jsxs)(B.Fragment,{children:[e&&(0,B.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,B.jsx)(B.Fragment,{children:r?(0,B.jsx)("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:(0,B.jsx)(na,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,B.jsx)(Pc,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,B.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,B.jsx)(Pc,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,B.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var Kn=require("@heroicons/react/24/solid"),Zr=v(require("html-react-parser"),1);var S=require("react/jsx-runtime"),uf=({className:e})=>(0,S.jsx)("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsx)("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),vf=({testimonial:e,className:o})=>(0,S.jsx)("div",{className:i("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:(0,S.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,S.jsx)("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:(0,S.jsx)(U,{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-2 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 text-xs font-normal text-gray-500",children:(0,Zr.default)(e.position)})]}),(e?.date||Number(e?.rating)>0)&&(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)(Kn.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-28 flex-none grow-0 md:hidden",children:(0,S.jsx)(U,{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 flex-col md:flex-none",children:[(0,S.jsxs)("div",{className:"flex-1",children:[(0,S.jsxs)("div",{className:"mb-1.5 flex flex-none space-x-3",children:[(0,S.jsx)(uf,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&(0,S.jsx)("div",{className:"flex-none text-base font-medium md:text-lg",children:(0,Zr.default)(e.shortTitle)})]}),e?.description&&(0,S.jsx)("blockquote",{className:"relative flex-1 text-justify text-base",children:(0,Zr.default)(e.description)})]}),(e?.date||Number(e?.rating)>0)&&(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)(Kn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),Tc=({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)(Ce,{className:"w-full",children:[(0,S.jsx)(Re,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>(0,S.jsx)(we,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:(0,S.jsx)(vf,{testimonial:a})},r))}),(o??[]).length>1&&(0,S.jsx)(ko,{className:"mt-8"})]}),t&&(0,S.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var Sc=require("@heroicons/react/24/solid"),Kr=v(require("html-react-parser"),1),Dc=v(require("lodash"),1);var z=require("react/jsx-runtime"),hf=({avatar:e="",name:o="",index:t=0})=>{if(Dc.default.isEmpty(e)){let a=qr({name:o})??"",r=Xr(t,Ur);return(0,z.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,z.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,z.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},kc=({testimonial:e,className:o,index:t})=>(0,z.jsx)("div",{className:i("testimonial-item",o),children:(0,z.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,z.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,z.jsx)(hf,{avatar:e.avatar,name:e.name,index:t}),(0,z.jsxs)("div",{className:"flex-1 pl-1",children:[(0,z.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,z.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Kr.default)(e.position)})]})]}),(0,z.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,z.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Kr.default)(e.shortTitle)}),e?.description&&(0,z.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,Kr.default)(e.description)})]}),(0,z.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,z.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,z.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>(0,z.jsx)(Sc.StarIcon,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Mc=({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=l=>(0,z.jsx)(z.Fragment,{children:l.map((c,d)=>(0,z.jsx)(na,{direction:"vertical",reverse:c.reverse,speed:c.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((p,f)=>(0,z.jsx)(kc,{testimonial:p,index:f,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${d}-${f}`))},`slider-${d}`))});return(0,z.jsxs)(z.Fragment,{children:[e&&(0,z.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,z.jsx)(Oo,{children:r?(0,z.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,z.jsx)(bt,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,z.jsx)(bt,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,z.jsx)(bt,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):(0,z.jsx)("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,c)=>(0,z.jsx)(kc,{testimonial:l,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,z.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,z.jsx)("style",{children:`
|
|
290
290
|
.mark-vertical-marquee {
|
|
291
291
|
mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
|
|
292
292
|
}
|
|
293
|
-
`})]})};var Ot=require("react/jsx-runtime"),xf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,Ot.jsx)(Kn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,Ot.jsx)(Mc,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,Ot.jsx)(Tc,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,Ot.jsx)(Kn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},bf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,Ot.jsx)(Ot.Fragment,{children:xf({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Ic=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>(0,Ot.jsx)(Y,{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,Ot.jsx)(bf,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});var es=v(require("html-react-parser"),1);var $=require("react/jsx-runtime"),ts=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>(0,$.jsx)(yt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>(0,$.jsxs)(wt,{value:n.title,className:"last:border-none",children:[(0,$.jsx)(Nt,{className:"md:text-lg",children:n.title}),(0,$.jsx)(Pt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,es.default)(n.description)})]},s))});return(0,$.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,$.jsx)("div",{className:"relative",children:(0,$.jsxs)("div",{className:"md:sticky md:top-16",children:[o&&(0,$.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,$.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,$.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,$.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Ac=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=c=>(0,$.jsx)(yt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((d,p)=>(0,$.jsxs)(wt,{value:d.title,className:"last:border-none",children:[(0,$.jsx)(Nt,{className:"md:text-lg",children:d.title}),(0,$.jsx)(Pt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,es.default)(d.description)})]},p))});return(0,$.jsxs)($.Fragment,{children:[o&&(0,$.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,$.jsxs)(Dt,{defaultValue:e[0]?.title,children:[e?.length>1&&(0,$.jsxs)(Rt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[(0,$.jsx)(Tt,{className:"mb-3 text-center",children:(0,$.jsx)(mt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,d)=>(0,$.jsx)(ct,{value:c.title,children:c.title},c.title+d))})}),(0,$.jsx)(kt,{}),(0,$.jsx)(St,{})]}),e.map((c,d)=>(0,$.jsx)(dt,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:l(c)},c.title+d))]}),t&&(0,$.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};var ao=require("react/jsx-runtime"),yf=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return(0,ao.jsx)(ts,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return(0,ao.jsx)(Ac,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return(0,ao.jsx)(ts,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},wf=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>(0,ao.jsx)(ao.Fragment,{children:yf({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Lc=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>(0,ao.jsx)(Y,{className:t,idSection:r,background:a,children:(0,ao.jsx)(wf,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});var Jr=v(require("react"),1),Fc=require("@heroicons/react/20/solid"),zc=v(require("html-react-parser"),1);var F=require("react/jsx-runtime"),Nf=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,F.jsxs)("picture",{children:[(0,F.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,F.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,F.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,F.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,F.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Pe,{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,F.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,F.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},os=(0,Jr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,f,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(p,f)=>(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",p?.newsList?.length<4?"md:justify-center":""),children:p?.newsList?.map((u,b)=>(0,F.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,F.jsx)("div",{onClick:I=>c(I,u?.id,u?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",p?.classNameItem),children:(0,F.jsx)(Nf,{news:u})},u?.id)},b))}),p?.isShowBtn&&(0,F.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,F.jsxs)(qe,{action:p?.btnUrl||r&&(()=>r?.(f)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[(0,zc.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,F.jsx)(Vo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!p?.btnUrl&&(0,F.jsx)(Fc.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||f);return(0,F.jsxs)(Jr.default.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:i(e?.className)}),t?.length>1?(0,F.jsxs)(Dt,{defaultValue:t[0]?.title,children:[(0,F.jsxs)(Rt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,F.jsx)(Tt,{className:"mb-6 text-center",children:(0,F.jsx)(mt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,f)=>(0,F.jsx)(ct,{value:p.title,children:p.title},p.title+f))})}),(0,F.jsx)(kt,{}),(0,F.jsx)(St,{})]}),t.map((p,f)=>(0,F.jsx)(dt,{value:p.title,children:d(p,f)},p.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var bo=require("react/jsx-runtime"),Pf=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,bo.jsx)(os,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,bo.jsx)(os,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Cf=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,bo.jsx)(bo.Fragment,{children:Pf({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ec=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,bo.jsx)(Y,{className:i(r),background:n,idSection:e,children:(0,bo.jsx)(Cf,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:c})});var ge=require("react/jsx-runtime"),Hc=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,ge.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,ge.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,ge.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Rf=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,ge.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,ge.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,ge.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,ge.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,ge.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,ge.jsx)(U,{ratio:4/3,children:(0,ge.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Tf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return(0,ge.jsx)(Hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return(0,ge.jsx)(Rf,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return(0,ge.jsx)(Hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},kf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>(0,ge.jsx)(ge.Fragment,{children:Tf({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),_c=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>(0,ge.jsx)(Y,{className:t,idSection:a,background:o,children:(0,ge.jsx)(kf,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});var as=v(require("react"),1),ei=v(require("html-react-parser"),1);var tt=require("react/jsx-runtime"),Sf=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,tt.jsxs)("div",{className:" text-center",children:[(0,tt.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,ei.default)(t??"")}),(0,tt.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,ei.default)(o??"")}),a&&(0,tt.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ei.default)(a??"")})]})},ti=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,tt.jsxs)(as.default.Fragment,{children:[t&&(0,tt.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,tt.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,tt.jsx)(as.default.Fragment,{children:(0,tt.jsx)(Sf,{metric:a})},r))}),o&&(0,tt.jsx)(N,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var rs=v(require("react"),1),oi=v(require("html-react-parser"),1);var ot=require("react/jsx-runtime"),Df=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,ot.jsxs)("div",{className:" text-center md:text-left",children:[(0,ot.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:(0,oi.default)(t??"")}),(0,ot.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,oi.default)(o??"")}),a&&(0,ot.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,oi.default)(a??"")})]})},is=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,ot.jsxs)(rs.default.Fragment,{children:[t&&(0,ot.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,ot.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,ot.jsx)(rs.default.Fragment,{children:(0,ot.jsx)(Df,{metric:a})},r))}),o&&(0,ot.jsx)(N,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var ro=require("react/jsx-runtime"),Mf=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,ro.jsx)(ti,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,ro.jsx)(is,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,ro.jsx)(ti,{dataMetrics:o,dataButtons:a,dataHeading:e})}},If=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,ro.jsx)(ro.Fragment,{children:Mf({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Bc=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>(0,ro.jsx)(Y,{className:i(n),background:r,idSection:e,children:(0,ro.jsx)(If,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});var Oc=require("react"),Ga=require("react/jsx-runtime"),Vc=(0,Oc.forwardRef)(({className:e,title:o,children:t},a)=>(0,Ga.jsxs)("div",{className:e,ref:a,children:[(0,Ga.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,Ga.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 $c=require("react");var at=require("react/jsx-runtime"),Af=()=>(0,at.jsx)("div",{className:"p-3 border rounded-lg",children:(0,at.jsxs)("div",{className:"flex items-center gap-3",children:[(0,at.jsx)(_a,{className:"rounded-md h-9 w-9 "}),(0,at.jsx)("div",{className:"flex-1",children:(0,at.jsx)(_a,{className:"w-48 h-5 "})}),(0,at.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Lf(){return(0,at.jsx)(at.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,at.jsx)(Af,{},o))})}var Wc=Lf;var ke=require("react/jsx-runtime"),Ff=({paymentMethod:e})=>(0,ke.jsx)(Ea,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,ke.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,ke.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,ke.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,ke.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,ke.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,ke.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Gc=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=(0,$c.useCallback)(s=>a?.(s),[a]);return(0,ke.jsxs)(ke.Fragment,{children:[e&&(0,ke.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,ke.jsx)(Wc,{}):(0,ke.jsx)(za,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,ke.jsx)(Ff,{paymentMethod:s},s.id))})]})};var ns=require("react");var ls=require("react/jsx-runtime"),zf=(0,ns.forwardRef)(({children:e,className:o},t)=>(0,ls.jsx)("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),ss=(0,ns.forwardRef)(({children:e,className:o,...t},a)=>(0,ls.jsx)(zf,{ref:a,className:o,...t,children:e}));ss.displayName="Payment";var jc=require("react");var ja=require("react/jsx-runtime"),Qc=(0,jc.forwardRef)(({className:e,children:o},t)=>(0,ja.jsxs)("div",{className:i("",e),ref:t,children:[(0,ja.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,ja.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var Uc=require("react");var Xc=require("react/jsx-runtime"),qc=(0,Uc.forwardRef)(({className:e,children:o},t)=>(0,Xc.jsx)("div",{className:i("pb-5",e),ref:t,children:o}));var Zc=require("react");var ai=require("@heroicons/react/20/solid");var ee=require("react/jsx-runtime"),Ef=({iconPaymentResult:e,message:o="",title:t=""})=>(0,ee.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,ee.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,ee.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,ee.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,ee.jsx)(ta,{message:o,type:"success",icon:(0,ee.jsx)(ai.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Hf=({iconPaymentResult:e,message:o="",title:t=""})=>(0,ee.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,ee.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,ee.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,ee.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,ee.jsx)(ta,{message:o,type:"error",icon:(0,ee.jsx)(ai.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),_f=({iconPaymentResult:e,message:o="",title:t=""})=>(0,ee.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,ee.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,ee.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,ee.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,ee.jsx)(ta,{message:o,type:"neutral"})]}),Yc=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,ee.jsx)(Ef,{status:e,title:o,message:t,iconPaymentResult:a||(0,ee.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,ee.jsx)(Hf,{status:e,title:o,message:t,iconPaymentResult:a||(0,ee.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,ee.jsx)(_f,{status:e,title:o,message:t,iconPaymentResult:a||(0,ee.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var ri=require("react/jsx-runtime"),Kc=(0,Zc.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>(0,ri.jsxs)("div",{ref:s,className:i("rounded-lg p-4",e),children:[(0,ri.jsx)(Yc,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));var ni=require("react");var sa=require("react/jsx-runtime"),ii=({content:e})=>(0,sa.jsxs)("picture",{children:[(0,sa.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,sa.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,sa.jsx)(qe,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var yo=require("react/jsx-runtime"),Bf=({template:e,content:o})=>{switch(e){case 1:return(0,yo.jsx)(ii,{content:o});default:return(0,yo.jsx)(ii,{content:o})}},Jc=(0,ni.forwardRef)(({template:e,content:o},t)=>((0,ni.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,yo.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,yo.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,yo.jsx)("div",{className:"content",children:Bf({template:e,content:o})})}),(0,yo.jsx)("style",{children:`
|
|
293
|
+
`})]})};var Ot=require("react/jsx-runtime"),xf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,Ot.jsx)(Zn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,Ot.jsx)(Mc,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,Ot.jsx)(Tc,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,Ot.jsx)(Zn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},bf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,Ot.jsx)(Ot.Fragment,{children:xf({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Ic=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>(0,Ot.jsx)(Y,{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,Ot.jsx)(bf,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});var Jn=v(require("html-react-parser"),1);var $=require("react/jsx-runtime"),es=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>(0,$.jsx)(yt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>(0,$.jsxs)(wt,{value:n.title,className:"last:border-none",children:[(0,$.jsx)(Nt,{className:"md:text-lg",children:n.title}),(0,$.jsx)(Pt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,Jn.default)(n.description)})]},s))});return(0,$.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,$.jsx)("div",{className:"relative",children:(0,$.jsxs)("div",{className:"md:sticky md:top-16",children:[o&&(0,$.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,$.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,$.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,$.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Ac=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=c=>(0,$.jsx)(yt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((d,p)=>(0,$.jsxs)(wt,{value:d.title,className:"last:border-none",children:[(0,$.jsx)(Nt,{className:"md:text-lg",children:d.title}),(0,$.jsx)(Pt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,Jn.default)(d.description)})]},p))});return(0,$.jsxs)($.Fragment,{children:[o&&(0,$.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,$.jsxs)(Dt,{defaultValue:e[0]?.title,children:[e?.length>1&&(0,$.jsxs)(Rt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[(0,$.jsx)(Tt,{className:"mb-3 text-center",children:(0,$.jsx)(mt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,d)=>(0,$.jsx)(ct,{value:c.title,children:c.title},c.title+d))})}),(0,$.jsx)(kt,{}),(0,$.jsx)(St,{})]}),e.map((c,d)=>(0,$.jsx)(dt,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:l(c)},c.title+d))]}),t&&(0,$.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};var ao=require("react/jsx-runtime"),yf=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return(0,ao.jsx)(es,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return(0,ao.jsx)(Ac,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return(0,ao.jsx)(es,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},wf=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>(0,ao.jsx)(ao.Fragment,{children:yf({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Lc=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>(0,ao.jsx)(Y,{className:t,idSection:r,background:a,children:(0,ao.jsx)(wf,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});var Jr=v(require("react"),1),Fc=require("@heroicons/react/20/solid"),zc=v(require("html-react-parser"),1);var E=require("react/jsx-runtime"),Nf=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,E.jsxs)("picture",{children:[(0,E.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,E.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,E.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,E.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,E.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Pe,{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,E.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,E.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},ts=(0,Jr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,f,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(p,f)=>(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",p?.newsList?.length<4?"md:justify-center":""),children:p?.newsList?.map((u,b)=>(0,E.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,E.jsx)("div",{onClick:D=>c(D,u?.id,u?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",p?.classNameItem),children:(0,E.jsx)(Nf,{news:u})},u?.id)},b))}),p?.isShowBtn&&(0,E.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,E.jsxs)(qe,{action:p?.btnUrl||r&&(()=>r?.(f)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[(0,zc.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,E.jsx)(Vo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!p?.btnUrl&&(0,E.jsx)(Fc.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||f);return(0,E.jsxs)(Jr.default.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:i(e?.className)}),t?.length>1?(0,E.jsxs)(Dt,{defaultValue:t[0]?.title,children:[(0,E.jsxs)(Rt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,E.jsx)(Tt,{className:"mb-6 text-center",children:(0,E.jsx)(mt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,f)=>(0,E.jsx)(ct,{value:p.title,children:p.title},p.title+f))})}),(0,E.jsx)(kt,{}),(0,E.jsx)(St,{})]}),t.map((p,f)=>(0,E.jsx)(dt,{value:p.title,children:d(p,f)},p.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var bo=require("react/jsx-runtime"),Pf=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,bo.jsx)(ts,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,bo.jsx)(ts,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Cf=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,bo.jsx)(bo.Fragment,{children:Pf({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ec=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,bo.jsx)(Y,{className:i(r),background:n,idSection:e,children:(0,bo.jsx)(Cf,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:c})});var ge=require("react/jsx-runtime"),Hc=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,ge.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,ge.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,ge.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Rf=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,ge.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,ge.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,ge.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,ge.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,ge.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,ge.jsx)(U,{ratio:4/3,children:(0,ge.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Tf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return(0,ge.jsx)(Hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return(0,ge.jsx)(Rf,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return(0,ge.jsx)(Hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},kf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>(0,ge.jsx)(ge.Fragment,{children:Tf({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),_c=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>(0,ge.jsx)(Y,{className:t,idSection:a,background:o,children:(0,ge.jsx)(kf,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});var os=v(require("react"),1),ei=v(require("html-react-parser"),1);var tt=require("react/jsx-runtime"),Sf=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,tt.jsxs)("div",{className:" text-center",children:[(0,tt.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,ei.default)(t??"")}),(0,tt.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,ei.default)(o??"")}),a&&(0,tt.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ei.default)(a??"")})]})},ti=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,tt.jsxs)(os.default.Fragment,{children:[t&&(0,tt.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,tt.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,tt.jsx)(os.default.Fragment,{children:(0,tt.jsx)(Sf,{metric:a})},r))}),o&&(0,tt.jsx)(N,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var as=v(require("react"),1),oi=v(require("html-react-parser"),1);var ot=require("react/jsx-runtime"),Df=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,ot.jsxs)("div",{className:" text-center md:text-left",children:[(0,ot.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:(0,oi.default)(t??"")}),(0,ot.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,oi.default)(o??"")}),a&&(0,ot.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,oi.default)(a??"")})]})},rs=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,ot.jsxs)(as.default.Fragment,{children:[t&&(0,ot.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,ot.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,ot.jsx)(as.default.Fragment,{children:(0,ot.jsx)(Df,{metric:a})},r))}),o&&(0,ot.jsx)(N,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var ro=require("react/jsx-runtime"),Mf=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,ro.jsx)(ti,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,ro.jsx)(rs,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,ro.jsx)(ti,{dataMetrics:o,dataButtons:a,dataHeading:e})}},If=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,ro.jsx)(ro.Fragment,{children:Mf({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Bc=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>(0,ro.jsx)(Y,{className:i(n),background:r,idSection:e,children:(0,ro.jsx)(If,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});var Oc=require("react"),Ga=require("react/jsx-runtime"),Vc=(0,Oc.forwardRef)(({className:e,title:o,children:t},a)=>(0,Ga.jsxs)("div",{className:e,ref:a,children:[(0,Ga.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,Ga.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 $c=require("react");var at=require("react/jsx-runtime"),Af=()=>(0,at.jsx)("div",{className:"p-3 border rounded-lg",children:(0,at.jsxs)("div",{className:"flex items-center gap-3",children:[(0,at.jsx)(_a,{className:"rounded-md h-9 w-9 "}),(0,at.jsx)("div",{className:"flex-1",children:(0,at.jsx)(_a,{className:"w-48 h-5 "})}),(0,at.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Lf(){return(0,at.jsx)(at.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,at.jsx)(Af,{},o))})}var Wc=Lf;var ke=require("react/jsx-runtime"),Ff=({paymentMethod:e})=>(0,ke.jsx)(Ea,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,ke.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,ke.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,ke.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,ke.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,ke.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,ke.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Gc=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=(0,$c.useCallback)(s=>a?.(s),[a]);return(0,ke.jsxs)(ke.Fragment,{children:[e&&(0,ke.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,ke.jsx)(Wc,{}):(0,ke.jsx)(za,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,ke.jsx)(Ff,{paymentMethod:s},s.id))})]})};var is=require("react");var ss=require("react/jsx-runtime"),zf=(0,is.forwardRef)(({children:e,className:o},t)=>(0,ss.jsx)("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),ns=(0,is.forwardRef)(({children:e,className:o,...t},a)=>(0,ss.jsx)(zf,{ref:a,className:o,...t,children:e}));ns.displayName="Payment";var jc=require("react");var ja=require("react/jsx-runtime"),Qc=(0,jc.forwardRef)(({className:e,children:o},t)=>(0,ja.jsxs)("div",{className:i("",e),ref:t,children:[(0,ja.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,ja.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var Uc=require("react");var Xc=require("react/jsx-runtime"),qc=(0,Uc.forwardRef)(({className:e,children:o},t)=>(0,Xc.jsx)("div",{className:i("pb-5",e),ref:t,children:o}));var Zc=require("react");var ai=require("@heroicons/react/20/solid");var te=require("react/jsx-runtime"),Ef=({iconPaymentResult:e,message:o="",title:t=""})=>(0,te.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,te.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,te.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,te.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,te.jsx)(ta,{message:o,type:"success",icon:(0,te.jsx)(ai.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Hf=({iconPaymentResult:e,message:o="",title:t=""})=>(0,te.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,te.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,te.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,te.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,te.jsx)(ta,{message:o,type:"error",icon:(0,te.jsx)(ai.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),_f=({iconPaymentResult:e,message:o="",title:t=""})=>(0,te.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,te.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,te.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,te.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,te.jsx)(ta,{message:o,type:"neutral"})]}),Yc=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,te.jsx)(Ef,{status:e,title:o,message:t,iconPaymentResult:a||(0,te.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,te.jsx)(Hf,{status:e,title:o,message:t,iconPaymentResult:a||(0,te.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,te.jsx)(_f,{status:e,title:o,message:t,iconPaymentResult:a||(0,te.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var ri=require("react/jsx-runtime"),Kc=(0,Zc.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>(0,ri.jsxs)("div",{ref:s,className:i("rounded-lg p-4",e),children:[(0,ri.jsx)(Yc,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));var ni=require("react");var sa=require("react/jsx-runtime"),ii=({content:e})=>(0,sa.jsxs)("picture",{children:[(0,sa.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,sa.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,sa.jsx)(qe,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var yo=require("react/jsx-runtime"),Bf=({template:e,content:o})=>{switch(e){case 1:return(0,yo.jsx)(ii,{content:o});default:return(0,yo.jsx)(ii,{content:o})}},Jc=(0,ni.forwardRef)(({template:e,content:o},t)=>((0,ni.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,yo.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,yo.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,yo.jsx)("div",{className:"content",children:Bf({template:e,content:o})})}),(0,yo.jsx)("style",{children:`
|
|
294
294
|
.container-topbar .content {
|
|
295
295
|
width: 100%;
|
|
296
296
|
aspect-ratio: 1088/50;
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
aspect-ratio: 720/88;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
`})]})));var Qa=v(require("react"),1),ed=require("lucide-react"),je=require("vaul");var Ie=require("react/jsx-runtime"),
|
|
311
|
+
`})]})));var Qa=v(require("react"),1),ed=require("lucide-react"),je=require("vaul");var Ie=require("react/jsx-runtime"),ls=({shouldScaleBackground:e=!0,...o})=>(0,Ie.jsx)(je.Drawer.Root,{shouldScaleBackground:e,...o});ls.displayName="Drawer";var td=je.Drawer.Trigger,ms=je.Drawer.Portal,od=je.Drawer.Close,si=Qa.forwardRef(({className:e,...o},t)=>(0,Ie.jsx)(je.Drawer.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));si.displayName=je.Drawer.Overlay.displayName;var cs=Qa.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>(0,Ie.jsxs)(ms,{children:[(0,Ie.jsx)(si,{}),(0,Ie.jsxs)(je.Drawer.Content,{ref:r,className:i("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90dvh] flex-col rounded-t-xl border bg-white",e),...a,children:[!t&&(0,Ie.jsxs)(je.Drawer.Close,{className:i("data-[state=open]:outline-focus absolute right-2 top-2 select-none appearance-none rounded-full p-2 text-gray-700 outline-none hover:bg-gray-100 active:bg-gray-200 data-[state=open]:z-10 data-[state=open]:outline-2 data-[state=open]:outline-offset-2"),title:"\u0110\xF3ng",children:[(0,Ie.jsx)(ed.XIcon,{className:"h-5 w-5"}),(0,Ie.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]}));cs.displayName="DrawerContent";var ds=({className:e,...o})=>(0,Ie.jsx)("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});ds.displayName="DrawerHeader";var ps=({className:e,...o})=>(0,Ie.jsx)("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});ps.displayName="DrawerFooter";var fs=Qa.forwardRef(({className:e,...o},t)=>(0,Ie.jsx)(je.Drawer.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));fs.displayName=je.Drawer.Title.displayName;var gs=Qa.forwardRef(({className:e,...o},t)=>(0,Ie.jsx)(je.Drawer.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));gs.displayName=je.Drawer.Description.displayName;var us=({children:e,className:o,...t})=>(0,Ie.jsx)("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});us.displayName="DrawerBody";var Bo=v(require("react"),1),li=require("input-otp"),ad=require("lucide-react");var Vt=require("react/jsx-runtime"),vs=Bo.forwardRef(({className:e,containerClassName:o,...t},a)=>(0,Vt.jsx)(li.OTPInput,{ref:a,containerClassName:i("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:i("disabled:cursor-not-allowed",e),...t}));vs.displayName="InputOTP";var hs=Bo.forwardRef(({className:e,...o},t)=>(0,Vt.jsx)("div",{ref:t,className:i("flex items-center",e),...o}));hs.displayName="InputOTPGroup";var xs=Bo.forwardRef(({index:e,className:o,...t},a)=>{let r=Bo.useContext(li.OTPInputContext),{char:n,hasFakeCaret:s,isActive:l}=r.slots[e]??{};return(0,Vt.jsxs)("div",{ref:a,className:i("border-input relative flex h-9 w-9 items-center justify-center border-y border-r border-gray-400 text-sm text-gray-900 shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"ring-ring z-10 ring-1",o),...t,children:[n,s&&(0,Vt.jsxs)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[(0,Vt.jsx)("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),(0,Vt.jsx)("style",{children:`
|
|
312
312
|
@keyframes caret-blink {
|
|
313
313
|
0%, 70%, 100% {
|
|
314
314
|
opacity: 1;
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
.animate-caret-blink {
|
|
322
322
|
animation: caret-blink 1.25s ease-out infinite;
|
|
323
323
|
}
|
|
324
|
-
`})]})]})});
|
|
324
|
+
`})]})]})});xs.displayName="InputOTPSlot";var bs=Bo.forwardRef(({...e},o)=>(0,Vt.jsx)("div",{ref:o,role:"separator",...e,children:(0,Vt.jsx)(ad.Minus,{className:"text-gray-400"})}));bs.displayName="InputOTPSeparator";var wo=require("react"),md=require("html-to-image");var la=v(require("react"),1),nd=require("lucide-react"),sd=require("qrcode.react");async function rd(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let r=document.createElement("canvas");r.width=a.width,r.height=a.height;let n=r.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=r.toDataURL("image/png");o(s)},a.onerror=function(r){t(r)},a.src=e})}var id=v(require("html-react-parser"),1),H=require("react/jsx-runtime"),Of=()=>{let e=[{text:"Ng\u01B0\u1EDDi d\xF9ng l\u01B0u m\xE3 QR v\u1EC1 m\xE1y (nh\u1EA5n gi\u1EEF \u1EA3nh ho\u1EB7c ch\u1EE5p m\xE0n h\xECnh)."},{text:"M\u1EDF \u1EE9ng d\u1EE5ng Ng\xE2n h\xE0ng ho\u1EB7c V\xED \u0111i\u1EC7n t\u1EED"},{text:'Trong app, ch\u1ECDn ch\u1EE9c n\u0103ng "Qu\xE9t QR" (th\u01B0\u1EDDng l\xE0 bi\u1EC3u t\u01B0\u1EE3ng camera/scan) \u0111\u1EC3 t\u1EA3i \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'},{text:'"Ch\u1ECDn \u1EA3nh t\u1EEB th\u01B0 vi\u1EC7n" / "T\u1EA3i \u1EA3nh QR" ch\u1ECDn \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'}];return(0,H.jsx)("ul",{className:"grid grid-cols-1 gap-y-6 -ml-3 list-decimal md:hidden",children:e.map((o,t)=>(0,H.jsxs)("li",{className:"flex relative gap-4 items-center",children:[(0,H.jsx)("div",{className:"flex relative z-20 flex-shrink-0 justify-center items-center w-8 h-8 text-sm font-semibold text-gray-700 bg-gray-100 rounded-full",children:t+1}),(0,H.jsxs)("div",{className:"flex flex-1 gap-2 items-start",children:[(0,H.jsx)("p",{className:"text-sm leading-relaxed text-gray-700",children:(0,id.default)(o.text)}),t<e.length-1&&(0,H.jsx)("div",{className:"absolute left-4 top-8 w-px h-12 bg-gray-400 transform -translate-x-1/2"})]})]},t))})},Vf=({isQrForAll:e,shortTitle:o,className:t})=>(0,H.jsxs)("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[(0,H.jsxs)("div",{className:"flex flex-nowrap items-start",children:[(0,H.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,H.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,H.jsxs)("div",{className:"flex-1 pl-4",children:[(0,H.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,H.jsx)("div",{className:"mt-1 text-gray-500",children:e?"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,H.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,H.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,H.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,H.jsxs)("div",{className:"flex-1 pl-4",children:[(0,H.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,H.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,H.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,H.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,H.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,H.jsxs)("div",{className:"flex-1 pl-4",children:[(0,H.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,H.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 ",o||"Truy c\u1EADp ngay"]})]})]})]}),Wf=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Vf,{isQrForAll:e,shortTitle:o,className:t}),(0,H.jsx)(Of,{})]}),mi=Wf;var io=require("react/jsx-runtime"),$f=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:r,onOpenChange:n})=>(0,io.jsxs)(Ue,{open:r,onOpenChange:n,children:[(0,io.jsx)(Wo,{asChild:!0,children:e}),(0,io.jsxs)(Be,{position:"bottom",children:[(0,io.jsx)(No,{children:(0,io.jsx)(Po,{children:o})}),(0,io.jsx)(st,{children:(0,io.jsx)(mi,{isQrForAll:t,shortTitle:a})})]})]}),ci=$f;var x=require("react/jsx-runtime"),Gf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"relative select-none qrcode__scan__container",children:[(0,x.jsxs)("div",{className:"flex justify-center items-center space-x-2 w-full md:hidden",children:[(0,x.jsx)("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"select-none shrink-0"}),(0,x.jsx)("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),(0,x.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"select-none shrink-0"})]}),(0,x.jsxs)("div",{className:"select-none qrcode__scan",children:[(0,x.jsx)("div",{className:"invisible opacity-0 select-none qrcode__gradient md:visible md:opacity-100",children:(0,x.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,x.jsx)("div",{className:"invisible opacity-0 select-none qrcode__border md:visible md:opacity-100",children:(0,x.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,x.jsx)("div",{className:"p-4 select-none qrcode__image",children:e?(0,x.jsx)("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy",onLoad:a}):la.default.Children.map(o,s=>(la.default.isValidElement(s),s))})]}),n&&(0,x.jsxs)("div",{className:"text-sm text-gray-900 md:hidden",children:[(0,x.jsx)("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),(0,x.jsx)("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),r&&(0,x.jsxs)("div",{className:i("mt-3 text-sm text-gray-900 md:hidden"),children:[(0,x.jsx)("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),(0,x.jsx)("span",{className:"font-semibold",children:r})]}),(0,x.jsx)("div",{className:"hidden mt-4 text-sm font-semibold text-gray-900 md:block",children:t?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250710143736-638877550567721225.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),(0,x.jsx)("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,x.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",(0,x.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),jf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,className:s=""})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:i(s),children:(0,x.jsx)(Gf,{dateExpired:r,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,children:o})}),(0,x.jsx)("style",{children:`
|
|
325
325
|
.qrcode__scan__container {
|
|
326
326
|
padding: 15px;
|
|
327
327
|
background-color: white;
|
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
transform: scale(1) translateY(0);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
`})]})]})},ld=Qf;var ma=require("react/jsx-runtime"),Uf=["qrcode__gradient","qrcode__guide","qrcode__title"],qf=e=>!Uf.some(o=>e.classList?.contains(o)),cd=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:c})=>{let d=(0,wo.useRef)(null),[p,f]=(0,wo.useState)(null),[u,b]=(0,wo.useState)(!1);return(0,wo.useEffect)(()=>{if(u&&d.current){let I=setTimeout(()=>{d.current&&(0,md.toPng)(d.current,{filter:qf}).then(z=>{f(z)}).catch(z=>{console.error("Error generating QR image:",z)})},2e3);return()=>clearTimeout(I)}},[u,t]),(0,wo.useEffect)(()=>{e&&b(!1)},[e]),(0,ma.jsx)(ma.Fragment,{children:(0,ma.jsx)("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",c),children:(0,ma.jsx)(ld,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:r,expired:o,loading:e,qrCodeRef:d,titleOrder:l,onQrLoaded:()=>{b(!0)},qrImageBase64:p,dateExpired:n,priceOrder:s})})})};var He=require("react/jsx-runtime"),Xf=e=>{switch(e){case"email":return{type:"email",inputMode:"email",autoComplete:"email"};case"phone":return{type:"tel",inputMode:"tel",pattern:"[0-9+\\-\\s\\(\\)]*",autoComplete:"tel"};case"number":return{type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off"};case"password":return{type:"password",autoComplete:"current-password"};case"text":default:return{type:"text",autoComplete:"off"}}},dd=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return(0,He.jsx)(Nr,{placeholder:e.placeholder,value:n||"",onChange:p=>s(p.target.value),onBlur:l,disabled:e.disabled,className:t,maxLength:e.maxLength,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"});case"boolean":let c=n!==void 0?!!n:!!e.defaultChecked;return(0,He.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,He.jsx)(Aa,{checked:c,onCheckedChange:p=>{s(p)},disabled:e.disabled,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"}),e.switchLabel&&(0,He.jsx)("span",{className:"text-sm text-gray-700",children:e.switchLabel})]});default:let d=Xf(e.type);return(0,He.jsx)(kr,{...d,placeholder:e.placeholder,value:n||"",isError:r.error,onChange:p=>{let f=p.target.value;e.type==="number"&&(f=f.replace(/[^0-9]/g,"")),e.type==="phone"&&(f=f.replace(/[^0-9+\-\s()]/g,"")),s(f)},onBlur:l,disabled:e.disabled,className:t,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false",maxLength:e.maxLength})}};return(0,He.jsx)(Or,{control:o,name:e.name,render:({field:r,fieldState:n})=>(0,He.jsxs)(Ba,{className:e.className,children:[e.label&&(0,He.jsxs)(Oa,{htmlFor:e.name,children:[e.label,e.required&&(0,He.jsx)("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),(0,He.jsx)(Va,{children:a({...r,error:n.error})}),e.description&&(0,He.jsx)(Wa,{id:`${e.name}-description`,children:e.description}),(0,He.jsx)($a,{})]})})};var ws=require("react"),fd=require("@hookform/resolvers/zod"),gd=require("react-hook-form");var ca=require("zod"),pd=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=ca.z.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=ca.z.string().regex(/^[a-zA-ZÀ-ỹ0-9\s\-_.]*$/,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t`);break;case"boolean":a=ca.z.boolean();break;case"phone":case"number":case"password":case"textarea":default:a=ca.z.string()}t.type==="boolean"?t.required&&(a=a.refine(r=>r===!0,{message:`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`})):(t.required&&(a=a.min(1,`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`)),t.minLength&&t.minLength>0&&(a=a.min(t.minLength,`${t.label||t.name} ph\u1EA3i c\xF3 \xEDt nh\u1EA5t ${t.minLength} k\xFD t\u1EF1`)),t.maxLength&&t.maxLength>0&&(a=a.max(t.maxLength,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 ${t.maxLength} k\xFD t\u1EF1`)),t.type==="phone"&&t.required&&(a=a.min(10,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`).max(15,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.pattern&&(a=a.regex(t.pattern,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.customValidation&&(a=a.refine(t.customValidation,{message:"Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7"})),t.required||(a=a.optional())),o[t.name]=a}),ca.z.object(o)};var ud=e=>{let o=(0,ws.useMemo)(()=>pd(e),[e]),t=(0,ws.useMemo)(()=>{let r={};return e.forEach(n=>{switch(n.type){case"boolean":n.value!==void 0?r[n.name]=!!n.value:r[n.name]=!!n.defaultChecked;break;default:n.value!==void 0?r[n.name]=n.value:r[n.name]=""}}),r},[e]),a=(0,gd.useForm)({resolver:(0,fd.zodResolver)(o),defaultValues:t,mode:"onSubmit"});return{form:a,formData:a.watch(),errors:a.formState.errors,isValid:a.formState.isValid,isSubmitting:a.formState.isSubmitting,reset:a.reset,setValue:a.setValue,trigger:a.trigger}};var le=require("react/jsx-runtime"),Yf=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,Zf=({dataHeading:e,dataMedia:o,captchaComponent:t,onSubmit:a,fieldsSchema:r,loading:n=!1,onFieldChange:s,onValidationError:l,dataButtons:c,classNameMedia:d,classNameFormLead:p,classNameWrapper:f,classNameCaptcha:u})=>{let{form:b,errors:I,reset:z}=ud(r),E=async Z=>{try{s&&Object.entries(Z).forEach(([O,rt])=>{s(O,rt)}),a&&await a(Z,z)}catch(O){if(console.error("Form submission error:",O),l){let rt={};Object.entries(I).forEach(([it,Ua])=>{rt[it]={message:Ua?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(rt)}}},X=()=>{b.handleSubmit(E)()},te=()=>{let Z=(c.buttons||[]).map((O,rt)=>{let it=O.variant==="primary";return rt===0||it?{...O,action:X,isLoading:n,isDisabled:n}:O});return{...c,buttons:Z}},Q=()=>"space-y-4",$t=()=>(0,le.jsx)(le.Fragment,{children:o&&(0,le.jsx)(U,{className:i("mb-6 shrink-0",d),ratio:Yf(o?.ratio),children:(0,le.jsx)("img",{src:o?.src,alt:o?.alt||"Avatar",className:"object-cover w-full h-full shrink-0"})})}),R=()=>(0,le.jsxs)("div",{className:i("p-8 bg-white shadow-small",p),children:[e&&(0,le.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h2",align:e?.align||"center",sizeHeading:e?.sizeHeading||"small",colorScheme:e?.colorScheme||"black",className:"mb-6"}),(0,le.jsx)(Br,{...b,children:(0,le.jsxs)("form",{onSubmit:b.handleSubmit(E),className:"space-y-6",children:[(0,le.jsx)("div",{className:Q(),children:r.map(Z=>(0,le.jsx)(dd,{field:Z,control:b.control},Z.name))}),t&&(0,le.jsx)("div",{className:i("flex",u),children:t}),(0,le.jsx)(N,{...te()})]})})]});return(0,le.jsx)(le.Fragment,{children:(0,le.jsxs)("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",f),children:[o&&(0,le.jsx)("div",{className:"shrink-0",children:$t()}),(0,le.jsx)("div",{className:"overflow-hidden relative mx-auto max-w-xl rounded-lg",children:R()})]})})},vd=({idSection:e,background:o,className:t,...a})=>(0,le.jsx)(Y,{className:t,idSection:e,background:o,children:(0,le.jsx)(Zf,{...a})});var Fd=v(require("color"),1),zd=v(require("tailwindcss/plugin.js"),1);var hd={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 xd={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var bd={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var yd={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var wd={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Nd={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Pd={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Cd={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Rd={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Td={white:"#ffffff",black:"#000000",blue:xd,green:bd,pink:yd,purple:wd,red:Nd,yellow:Pd,gray:Rd,orange:Cd};var Ns={...Td};var kd={"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 Wt="250ms",Sd={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Wt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Wt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Wt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Wt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Wt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Wt},".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":Wt}};var Dd={".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 Md={".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 Id={...Dd,...Sd,...Md};var Ad=require("flat");function Kf(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 Ld=e=>Kf((0,Ad.flatten)(e,{safe:!0,delimiter:"-"}));var Jf=e=>{let o={utilities:{},colors:{}},t=Ld(Ns),a=kd,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,c,d]=(0,Fd.default)(s).rgb().array(),p=`--${e}-${n}`;o.utilities[r][p]=`${l} ${c} ${d}`,o.colors[n]=`rgb(var(${p}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,d])=>{let p=`${l}-${c}`;o.utilities[r][p]=d});else{let c=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][l]=c}}),o},Ed=()=>{let e="mobase",o=Jf(e);return(0,zd.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({...Id})},{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:{...Ns,...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)`},...hd}}})};var M=require("react/jsx-runtime"),Hd=(0,M.jsxs)(M.Fragment,{children:[(0,M.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,M.jsx)("meta",{name:"distribution",content:"Global"}),(0,M.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,M.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,M.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,M.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,M.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,M.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,M.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,M.jsx)("meta",{name:"language",content:"vietnamese"}),(0,M.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,M.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,M.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,M.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,M.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,M.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,M.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,M.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,M.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,M.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,M.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,M.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,M.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
448
|
+
`})]})]})},ld=Qf;var ma=require("react/jsx-runtime"),Uf=["qrcode__gradient","qrcode__guide","qrcode__title"],qf=e=>!Uf.some(o=>e.classList?.contains(o)),cd=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:c})=>{let d=(0,wo.useRef)(null),[p,f]=(0,wo.useState)(null),[u,b]=(0,wo.useState)(!1);return(0,wo.useEffect)(()=>{if(u&&d.current){let D=setTimeout(()=>{d.current&&(0,md.toPng)(d.current,{filter:qf}).then(R=>{f(R)}).catch(R=>{console.error("Error generating QR image:",R)})},2e3);return()=>clearTimeout(D)}},[u,t]),(0,wo.useEffect)(()=>{e&&b(!1)},[e]),(0,ma.jsx)(ma.Fragment,{children:(0,ma.jsx)("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",c),children:(0,ma.jsx)(ld,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:r,expired:o,loading:e,qrCodeRef:d,titleOrder:l,onQrLoaded:()=>{b(!0)},qrImageBase64:p,dateExpired:n,priceOrder:s})})})};var He=require("react/jsx-runtime"),Xf=e=>{switch(e){case"email":return{type:"email",inputMode:"email",autoComplete:"email"};case"phone":return{type:"tel",inputMode:"tel",pattern:"[0-9+\\-\\s\\(\\)]*",autoComplete:"tel"};case"number":return{type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off"};case"password":return{type:"password",autoComplete:"current-password"};case"text":default:return{type:"text",autoComplete:"off"}}},dd=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return(0,He.jsx)(Nr,{placeholder:e.placeholder,value:n||"",onChange:p=>s(p.target.value),onBlur:l,disabled:e.disabled,className:t,maxLength:e.maxLength,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"});case"boolean":let c=n!==void 0?!!n:!!e.defaultChecked;return(0,He.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,He.jsx)(Aa,{checked:c,onCheckedChange:p=>{s(p)},disabled:e.disabled,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"}),e.switchLabel&&(0,He.jsx)("span",{className:"text-sm text-gray-700",children:e.switchLabel})]});default:let d=Xf(e.type);return(0,He.jsx)(kr,{...d,placeholder:e.placeholder,value:n||"",isError:r.error,onChange:p=>{let f=p.target.value;e.type==="number"&&(f=f.replace(/[^0-9]/g,"")),e.type==="phone"&&(f=f.replace(/[^0-9+\-\s()]/g,"")),s(f)},onBlur:l,disabled:e.disabled,className:t,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false",maxLength:e.maxLength})}};return(0,He.jsx)(Or,{control:o,name:e.name,render:({field:r,fieldState:n})=>(0,He.jsxs)(Ba,{className:e.className,children:[e.label&&(0,He.jsxs)(Oa,{htmlFor:e.name,children:[e.label,e.required&&(0,He.jsx)("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),(0,He.jsx)(Va,{children:a({...r,error:n.error})}),e.description&&(0,He.jsx)(Wa,{id:`${e.name}-description`,children:e.description}),(0,He.jsx)($a,{})]})})};var ys=require("react"),fd=require("@hookform/resolvers/zod"),gd=require("react-hook-form");var ca=require("zod"),pd=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=ca.z.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=ca.z.string().regex(/^[a-zA-ZÀ-ỹ0-9\s\-_.]*$/,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t`);break;case"boolean":a=ca.z.boolean();break;case"phone":case"number":case"password":case"textarea":default:a=ca.z.string()}t.type==="boolean"?t.required&&(a=a.refine(r=>r===!0,{message:`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`})):(t.required&&(a=a.min(1,`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`)),t.minLength&&t.minLength>0&&(a=a.min(t.minLength,`${t.label||t.name} ph\u1EA3i c\xF3 \xEDt nh\u1EA5t ${t.minLength} k\xFD t\u1EF1`)),t.maxLength&&t.maxLength>0&&(a=a.max(t.maxLength,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 ${t.maxLength} k\xFD t\u1EF1`)),t.type==="phone"&&t.required&&(a=a.min(10,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`).max(15,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.pattern&&(a=a.regex(t.pattern,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.customValidation&&(a=a.refine(t.customValidation,{message:"Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7"})),t.required||(a=a.optional())),o[t.name]=a}),ca.z.object(o)};var ud=e=>{let o=(0,ys.useMemo)(()=>pd(e),[e]),t=(0,ys.useMemo)(()=>{let r={};return e.forEach(n=>{switch(n.type){case"boolean":n.value!==void 0?r[n.name]=!!n.value:r[n.name]=!!n.defaultChecked;break;default:n.value!==void 0?r[n.name]=n.value:r[n.name]=""}}),r},[e]),a=(0,gd.useForm)({resolver:(0,fd.zodResolver)(o),defaultValues:t,mode:"onSubmit"});return{form:a,formData:a.watch(),errors:a.formState.errors,isValid:a.formState.isValid,isSubmitting:a.formState.isSubmitting,reset:a.reset,setValue:a.setValue,trigger:a.trigger}};var le=require("react/jsx-runtime"),Yf=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,Zf=({dataHeading:e,dataMedia:o,captchaComponent:t,onSubmit:a,fieldsSchema:r,loading:n=!1,onFieldChange:s,onValidationError:l,dataButtons:c,classNameMedia:d,classNameFormLead:p,classNameWrapper:f,classNameCaptcha:u})=>{let{form:b,errors:D,reset:R}=ud(r),M=async K=>{try{s&&Object.entries(K).forEach(([O,rt])=>{s(O,rt)}),a&&await a(K,R)}catch(O){if(console.error("Form submission error:",O),l){let rt={};Object.entries(D).forEach(([it,Ua])=>{rt[it]={message:Ua?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(rt)}}},q=()=>{b?.handleSubmit(M)()},Z=()=>{let K=(c?.buttons||[]).map((O,rt)=>{let it=O?.variant==="primary";return rt===0||it?{...O,action:q,isLoading:n,isDisabled:n}:O});return{...c,buttons:K}},Q=()=>"space-y-4",$t=()=>(0,le.jsx)(le.Fragment,{children:o&&(0,le.jsx)(U,{className:i("mb-6 shrink-0",d),ratio:Yf(o?.ratio),children:(0,le.jsx)("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})}),T=()=>(0,le.jsxs)("div",{className:i("shadow-small bg-white p-8",p),children:[e&&(0,le.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h2",align:e?.align||"center",sizeHeading:e?.sizeHeading||"small",colorScheme:e?.colorScheme||"black",className:"mb-6"}),r?.length>0&&r&&(0,le.jsx)(Br,{...b,children:(0,le.jsxs)("form",{onSubmit:b.handleSubmit(M),className:"space-y-6",children:[(0,le.jsx)("div",{className:Q(),children:r?.map(K=>(0,le.jsx)(dd,{field:K,control:b.control},K.name))}),t&&(0,le.jsx)("div",{className:i("flex",u),children:t}),c&&(0,le.jsx)(N,{...Z()})]})})]});return(0,le.jsx)(le.Fragment,{children:(0,le.jsxs)("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",f),children:[o&&(0,le.jsx)("div",{className:"shrink-0",children:$t()}),(0,le.jsx)("div",{className:"relative mx-auto max-w-xl overflow-hidden rounded-lg",children:T()})]})})},vd=({idSection:e,background:o,className:t,...a})=>(0,le.jsx)(Y,{className:t,idSection:e,background:o,children:(0,le.jsx)(Zf,{...a})});var Fd=v(require("color"),1),zd=v(require("tailwindcss/plugin.js"),1);var hd={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 xd={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var bd={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var yd={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var wd={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Nd={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Pd={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Cd={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Rd={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Td={white:"#ffffff",black:"#000000",blue:xd,green:bd,pink:yd,purple:wd,red:Nd,yellow:Pd,gray:Rd,orange:Cd};var ws={...Td};var kd={"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 Wt="250ms",Sd={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Wt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Wt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Wt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Wt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Wt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Wt},".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":Wt}};var Dd={".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 Md={".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 Id={...Dd,...Sd,...Md};var Ad=require("flat");function Kf(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 Ld=e=>Kf((0,Ad.flatten)(e,{safe:!0,delimiter:"-"}));var Jf=e=>{let o={utilities:{},colors:{}},t=Ld(ws),a=kd,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,c,d]=(0,Fd.default)(s).rgb().array(),p=`--${e}-${n}`;o.utilities[r][p]=`${l} ${c} ${d}`,o.colors[n]=`rgb(var(${p}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,d])=>{let p=`${l}-${c}`;o.utilities[r][p]=d});else{let c=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][l]=c}}),o},Ed=()=>{let e="mobase",o=Jf(e);return(0,zd.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({...Id})},{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:{...ws,...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)`},...hd}}})};var L=require("react/jsx-runtime"),Hd=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("meta",{name:"abstract",content:"V\xED \u0111i\u1EC7n t\u1EED MoMo - Si\xEAu \u1EE9ng d\u1EE5ng thanh to\xE1n s\u1ED1 1 Vi\u1EC7t Nam"}),(0,L.jsx)("meta",{name:"distribution",content:"Global"}),(0,L.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,L.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,L.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,L.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,L.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,L.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,L.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,L.jsx)("meta",{name:"language",content:"vietnamese"}),(0,L.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,L.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,L.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,L.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,L.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
449
449
|
"@context": "https://schema.org/",
|
|
450
450
|
"@type": "WebSite",
|
|
451
451
|
"@id":"https://www.momo.vn/#website",
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
"@type": "SearchAction",
|
|
456
456
|
"target": "https://www.momo.vn/tim-kiem?q={search_term_string}",
|
|
457
457
|
"query-input": "required name=search_term_string"
|
|
458
|
-
}}`}}),(0,
|
|
458
|
+
}}`}}),(0,L.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
459
459
|
"@context": "https://schema.org",
|
|
460
460
|
"@type": "Organization",
|
|
461
461
|
"name": "Si\xEAu \u1EE9ng d\u1EE5ng MoMo",
|