@momo-webplatform/mobase 0.2.108 → 0.2.109
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/cjs/index.d.cts +2 -1
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +17 -17
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ud=Object.create;var Ka=Object.defineProperty;var qd=Object.getOwnPropertyDescriptor;var Xd=Object.getOwnPropertyNames;var Yd=Object.getPrototypeOf,Zd=Object.prototype.hasOwnProperty;var Kd=(e,o)=>{for(var t in o)Ka(e,t,{get:o[t],enumerable:!0})},Ss=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of Xd(o))!Zd.call(e,r)&&r!==t&&Ka(e,r,{get:()=>o[r],enumerable:!(a=qd(o,r))||a.enumerable});return e};var v=(e,o,t)=>(t=e!=null?Ud(Yd(e)):{},Ss(o||!e||!e.__esModule?Ka(t,"default",{value:e,enumerable:!0}):t,e)),Jd=e=>Ss(Ka({},"__esModule",{value:!0}),e);var dg={};Kd(dg,{Accordion:()=>Nt,AccordionContent:()=>Ct,AccordionItem:()=>wt,AccordionTrigger:()=>Pt,ActionButton:()=>Ye,AlertDialog:()=>gl,AlertDialogAction:()=>Wi,AlertDialogCancel:()=>Gi,AlertDialogContent:()=>Hi,AlertDialogDescription:()=>Vi,AlertDialogFooter:()=>Bi,AlertDialogHeader:()=>_i,AlertDialogOverlay:()=>Pr,AlertDialogPortal:()=>zi,AlertDialogTitle:()=>Oi,AlertDialogTrigger:()=>ul,AspectRatio:()=>$,Badge:()=>Nm,BlogSection:()=>el,Breadcrumb:()=>yi,BreadcrumbEllipsis:()=>ki,BreadcrumbItem:()=>wi,BreadcrumbLink:()=>Pi,BreadcrumbList:()=>Ni,BreadcrumbPage:()=>Ci,BreadcrumbSeparator:()=>Ri,Button:()=>Ie,ButtonsBlock:()=>w,CTASection:()=>Qc,Calendar:()=>Pa,Callout:()=>ra,Card:()=>hn,CardContent:()=>Nn,CardDescription:()=>yn,CardFooter:()=>wn,CardHeader:()=>xn,CardTitle:()=>bn,Carousel:()=>Re,CarouselContent:()=>ke,CarouselDots:()=>Mo,CarouselItem:()=>Pe,CarouselNext:()=>Do,CarouselPrevious:()=>So,Checkbox:()=>wa,ChoiceboxGroup:()=>Ba,ChoiceboxGroupItem:()=>Oa,ChoiceboxMultiItem:()=>In,Combobox:()=>rm,ComboboxContent:()=>am,ComboboxTrigger:()=>om,Command:()=>_r,CommandDialog:()=>em,CommandEmpty:()=>Rn,CommandGroup:()=>kn,CommandInput:()=>Pn,CommandItem:()=>Sn,CommandList:()=>Cn,CommandSeparator:()=>Tn,CommandShortcut:()=>Dn,Comment:()=>Fm,DatePicker:()=>sl,DateSelect:()=>fl,Dialog:()=>ze,DialogBody:()=>We,DialogClose:()=>Ja,DialogContent:()=>Ae,DialogDescription:()=>bi,DialogFooter:()=>xa,DialogHeader:()=>qt,DialogOverlay:()=>er,DialogPortal:()=>xi,DialogQr:()=>fo,DialogTitle:()=>Xt,DialogTrigger:()=>jo,Drawer:()=>gs,DrawerBody:()=>Ns,DrawerClose:()=>cd,DrawerContent:()=>vs,DrawerDescription:()=>ys,DrawerFooter:()=>xs,DrawerHeader:()=>hs,DrawerOverlay:()=>fi,DrawerPortal:()=>us,DrawerTitle:()=>bs,DrawerTrigger:()=>md,DropdownMenu:()=>qm,DropdownMenuCheckboxItem:()=>$n,DropdownMenuContent:()=>Wn,DropdownMenuGroup:()=>Ym,DropdownMenuItem:()=>Gn,DropdownMenuLabel:()=>Qn,DropdownMenuPortal:()=>Zm,DropdownMenuRadioGroup:()=>Jm,DropdownMenuRadioItem:()=>jn,DropdownMenuSeparator:()=>Un,DropdownMenuShortcut:()=>qn,DropdownMenuSub:()=>Km,DropdownMenuSubContent:()=>Vn,DropdownMenuSubTrigger:()=>On,DropdownMenuTrigger:()=>Xm,FAQSection:()=>Vc,FeatureSection:()=>Mc,Footer:()=>Jl,Form:()=>jr,FormControl:()=>ja,FormDescription:()=>Qa,FormField:()=>Qr,FormItem:()=>Ga,FormLabel:()=>$a,FormLeadSupport:()=>Cd,FormMessage:()=>Ua,GiftListSection:()=>Pl,GuideSection:()=>Nl,HeaderNavigation:()=>un,Heading:()=>ar,HeadingBlock:()=>y,HeadingGroup:()=>ir,HeadingSub:()=>rr,HeadingTagline:()=>or,HeroSection:()=>cc,HorizontalContent:()=>Tt,HorizontalNext:()=>Dt,HorizontalPrevious:()=>St,HorizontalScroll:()=>kt,HowItWorksSection:()=>ac,IconButton:()=>xe,InputOTP:()=>ws,InputOTPGroup:()=>Ps,InputOTPSeparator:()=>Rs,InputOTPSlot:()=>Cs,LightBoxGalleryContent:()=>Or,LightboxGallery:()=>Br,LightboxThumbnail:()=>um,MetricsSection:()=>Uc,NavigationMenu:()=>Da,NavigationMenuContent:()=>Fa,NavigationMenuItem:()=>Ia,NavigationMenuLink:()=>oa,NavigationMenuList:()=>Ma,NavigationMenuTrigger:()=>La,NewsSection:()=>$c,Pagination:()=>Xi,Payment:()=>ps,PaymentGuide:()=>ui,PaymentGuideDialog:()=>vi,PaymentInvoice:()=>Xc,PaymentMethods:()=>Kc,PaymentResult:()=>nd,PaymentResultContent:()=>od,PaymentResultFooter:()=>ed,Popover:()=>Yo,PopoverContent:()=>Io,PopoverTrigger:()=>Zo,ProgressSteps:()=>Vm,ProgressStepsItem:()=>Om,ProgressStepsItemTrigger:()=>Bm,Progressbar:()=>En,QRPayment:()=>xd,RadioGroup:()=>fn,RadioGroupItem:()=>gn,ReadMoreLite:()=>Wr,SearchBar:()=>cm,SectionBlock:()=>Y,Select:()=>Ko,SelectContent:()=>Lo,SelectGroup:()=>ea,SelectItem:()=>to,SelectLabel:()=>Li,SelectScrollDownButton:()=>Nr,SelectScrollUpButton:()=>yr,SelectSeparator:()=>Fi,SelectTrigger:()=>Ao,SelectValue:()=>Jo,SiteMeta:()=>jd,Skeleton:()=>Wa,Slider:()=>zn,SocialProofSection:()=>hc,Spinner:()=>Vr,Stepper:()=>cn,Switch:()=>za,Tabs:()=>Mt,TabsContent:()=>pt,TabsList:()=>ct,TabsTrigger:()=>dt,TestimonialSection:()=>Bc,TextArea:()=>Sr,TextButton:()=>ve,TextInput:()=>Lr,ToastAction:()=>tn,Toaster:()=>Ml,Tooltip:()=>Al,TooltipArrow:()=>sn,TooltipContent:()=>ln,TooltipProvider:()=>Il,TooltipTrigger:()=>Ll,Topbar:()=>sd,badgeVariants:()=>An,buttonVariants:()=>lt,mobaseTW:()=>$d,navigationMenuTriggerStyle:()=>Aa,textButtonVariants:()=>Si,toast:()=>Ki,useFormField:()=>sa,useToast:()=>Ar});module.exports=Jd(dg);var va=v(require("react"),1),Ls=require("@heroicons/react/20/solid"),Xe=v(require("@radix-ui/react-accordion"),1);var ep=v(require("react"),1),Ms=require("tailwind-merge");var Qt={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 Ds={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 ua=[{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"}],hi=[{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 De={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 Is=require("@artsy/fresnel");function i(...e){return(0,Ms.twMerge)(e)}var As=(0,Is.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),gg=As.createMediaStyle(),{Media:yt,MediaContextProvider:Go}=As,co=e=>!e||typeof e!="string"?"":e.replace(/<[^>]*>/g,"").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").trim();var Ut=require("react/jsx-runtime"),Nt=va.forwardRef(({className:e,...o},t)=>(0,Ut.jsx)(Xe.Root,{ref:t,...o}));Nt.displayName="AccordionRoot";var wt=va.forwardRef(({className:e,...o},t)=>(0,Ut.jsx)(Xe.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));wt.displayName="AccordionItem";var Pt=va.forwardRef(({className:e,children:o,...t},a)=>(0,Ut.jsx)(Xe.Header,{className:"flex",children:(0,Ut.jsxs)(Xe.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,Ut.jsx)(Ls.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));Pt.displayName=Xe.Trigger.displayName;var Ct=va.forwardRef(({className:e,children:o,...t},a)=>(0,Ut.jsx)(Xe.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,Ut.jsx)("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));Ct.displayName=Xe.Content.displayName;var Fs=v(require("react"),1),Es=require("@radix-ui/react-slot"),zs=require("class-variance-authority");var Me=require("react/jsx-runtime"),tp=({className:e})=>(0,Me.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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"})]}),$o=tp;var po=require("react/jsx-runtime"),lt=(0,zs.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"}}),Ie=Fs.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,dataUmamiEvent:s="",dataUmamiEventText:l,...c},p)=>{let d=a?Es.Slot:"button",f=i(lt({variant:o,size:t,className:e}),{"cursor-wait":r});return(0,po.jsx)(po.Fragment,{children:a?(0,po.jsx)(d,{className:f,type:"button",disabled:n,ref:p,"data-umami-event":s||void 0,"data-umami-event-text":l||void 0,...c,children:c.children}):(0,po.jsxs)(d,{className:f,type:"button",disabled:n,ref:p,"data-umami-event":s||void 0,"data-umami-event-text":l||void 0,...c,children:[r&&(0,po.jsx)($o,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),c.children]})})});Ie.displayName="Button";var _s=require("qrcode.react");var ha=v(require("react"),1),Hs=require("@heroicons/react/16/solid"),de=v(require("@radix-ui/react-dialog"),1);var Ee=require("react/jsx-runtime"),ze=de.Root,jo=de.Trigger,xi=de.Portal,Ja=de.Close,er=ha.forwardRef(({className:e,...o},t)=>(0,Ee.jsx)(de.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}));er.displayName=de.Overlay.displayName;var Ae=ha.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:n="auto",isFull:s=!1,children:l,...c},p)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},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=[d.base,d[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,Ee.jsxs)(xi,{children:[(0,Ee.jsx)(er,{}),(0,Ee.jsxs)(de.Content,{ref:p,className:i(...b),...c,children:[l,!t&&(0,Ee.jsxs)(de.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,Ee.jsx)(Hs.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Ee.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Ae.displayName=de.Content.displayName;var qt=({className:e,...o})=>(0,Ee.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});qt.displayName="DialogHeader";var We=({className:e,isCondensed:o=!1,...t})=>(0,Ee.jsx)("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});We.displayName="DialogBody";var xa=({className:e,isDivider:o=!0,...t})=>(0,Ee.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});xa.displayName="DialogFooter";var Xt=ha.forwardRef(({className:e,...o},t)=>(0,Ee.jsx)(de.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Xt.displayName=de.Title.displayName;var bi=ha.forwardRef(({className:e,...o},t)=>(0,Ee.jsx)(de.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));bi.displayName=de.Description.displayName;var N=require("react/jsx-runtime"),op=({img:e="",children:o,isQrForAll:t})=>(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"qrcode__scan__container",children:(0,N.jsxs)("div",{className:"qrcode__scan",children:[(0,N.jsx)("div",{className:"qrcode__gradient",children:(0,N.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,N.jsx)("div",{className:"qrcode__border",children:(0,N.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,N.jsx)("div",{className:"p-4 qrcode__image",children:e?(0,N.jsx)("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),(0,N.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,N.jsxs)(N.Fragment,{children:[(0,N.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,N.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,N.jsxs)(N.Fragment,{children:[(0,N.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,N.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,N.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,N.jsx)("style",{children:`
|
|
1
|
+
"use strict";var Ud=Object.create;var Ka=Object.defineProperty;var qd=Object.getOwnPropertyDescriptor;var Xd=Object.getOwnPropertyNames;var Yd=Object.getPrototypeOf,Zd=Object.prototype.hasOwnProperty;var Kd=(e,o)=>{for(var t in o)Ka(e,t,{get:o[t],enumerable:!0})},Ss=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of Xd(o))!Zd.call(e,r)&&r!==t&&Ka(e,r,{get:()=>o[r],enumerable:!(a=qd(o,r))||a.enumerable});return e};var v=(e,o,t)=>(t=e!=null?Ud(Yd(e)):{},Ss(o||!e||!e.__esModule?Ka(t,"default",{value:e,enumerable:!0}):t,e)),Jd=e=>Ss(Ka({},"__esModule",{value:!0}),e);var dg={};Kd(dg,{Accordion:()=>wt,AccordionContent:()=>Rt,AccordionItem:()=>Pt,AccordionTrigger:()=>Ct,ActionButton:()=>Ye,AlertDialog:()=>gl,AlertDialogAction:()=>Wi,AlertDialogCancel:()=>Gi,AlertDialogContent:()=>Hi,AlertDialogDescription:()=>Vi,AlertDialogFooter:()=>Bi,AlertDialogHeader:()=>_i,AlertDialogOverlay:()=>Pr,AlertDialogPortal:()=>zi,AlertDialogTitle:()=>Oi,AlertDialogTrigger:()=>ul,AspectRatio:()=>$,Badge:()=>Nm,BlogSection:()=>el,Breadcrumb:()=>yi,BreadcrumbEllipsis:()=>ki,BreadcrumbItem:()=>wi,BreadcrumbLink:()=>Pi,BreadcrumbList:()=>Ni,BreadcrumbPage:()=>Ci,BreadcrumbSeparator:()=>Ri,Button:()=>Ie,ButtonsBlock:()=>w,CTASection:()=>Qc,Calendar:()=>Pa,Callout:()=>ra,Card:()=>hn,CardContent:()=>Nn,CardDescription:()=>yn,CardFooter:()=>wn,CardHeader:()=>xn,CardTitle:()=>bn,Carousel:()=>Re,CarouselContent:()=>ke,CarouselDots:()=>Mo,CarouselItem:()=>Pe,CarouselNext:()=>Do,CarouselPrevious:()=>So,Checkbox:()=>wa,ChoiceboxGroup:()=>Ba,ChoiceboxGroupItem:()=>Oa,ChoiceboxMultiItem:()=>In,Combobox:()=>rm,ComboboxContent:()=>am,ComboboxTrigger:()=>om,Command:()=>_r,CommandDialog:()=>em,CommandEmpty:()=>Rn,CommandGroup:()=>kn,CommandInput:()=>Pn,CommandItem:()=>Sn,CommandList:()=>Cn,CommandSeparator:()=>Tn,CommandShortcut:()=>Dn,Comment:()=>Fm,DatePicker:()=>sl,DateSelect:()=>fl,Dialog:()=>ze,DialogBody:()=>We,DialogClose:()=>Ja,DialogContent:()=>Ae,DialogDescription:()=>bi,DialogFooter:()=>xa,DialogHeader:()=>qt,DialogOverlay:()=>er,DialogPortal:()=>xi,DialogQr:()=>fo,DialogTitle:()=>Xt,DialogTrigger:()=>jo,Drawer:()=>gs,DrawerBody:()=>Ns,DrawerClose:()=>cd,DrawerContent:()=>vs,DrawerDescription:()=>ys,DrawerFooter:()=>xs,DrawerHeader:()=>hs,DrawerOverlay:()=>fi,DrawerPortal:()=>us,DrawerTitle:()=>bs,DrawerTrigger:()=>md,DropdownMenu:()=>qm,DropdownMenuCheckboxItem:()=>$n,DropdownMenuContent:()=>Wn,DropdownMenuGroup:()=>Ym,DropdownMenuItem:()=>Gn,DropdownMenuLabel:()=>Qn,DropdownMenuPortal:()=>Zm,DropdownMenuRadioGroup:()=>Jm,DropdownMenuRadioItem:()=>jn,DropdownMenuSeparator:()=>Un,DropdownMenuShortcut:()=>qn,DropdownMenuSub:()=>Km,DropdownMenuSubContent:()=>Vn,DropdownMenuSubTrigger:()=>On,DropdownMenuTrigger:()=>Xm,FAQSection:()=>Vc,FeatureSection:()=>Mc,Footer:()=>Jl,Form:()=>jr,FormControl:()=>ja,FormDescription:()=>Qa,FormField:()=>Qr,FormItem:()=>Ga,FormLabel:()=>$a,FormLeadSupport:()=>Cd,FormMessage:()=>Ua,GiftListSection:()=>Pl,GuideSection:()=>Nl,HeaderNavigation:()=>un,Heading:()=>ar,HeadingBlock:()=>y,HeadingGroup:()=>ir,HeadingSub:()=>rr,HeadingTagline:()=>or,HeroSection:()=>cc,HorizontalContent:()=>St,HorizontalNext:()=>Mt,HorizontalPrevious:()=>Dt,HorizontalScroll:()=>Tt,HowItWorksSection:()=>ac,IconButton:()=>xe,InputOTP:()=>ws,InputOTPGroup:()=>Ps,InputOTPSeparator:()=>Rs,InputOTPSlot:()=>Cs,LightBoxGalleryContent:()=>Or,LightboxGallery:()=>Br,LightboxThumbnail:()=>um,MetricsSection:()=>Uc,NavigationMenu:()=>Da,NavigationMenuContent:()=>Fa,NavigationMenuItem:()=>Ia,NavigationMenuLink:()=>oa,NavigationMenuList:()=>Ma,NavigationMenuTrigger:()=>La,NewsSection:()=>$c,Pagination:()=>Xi,Payment:()=>ps,PaymentGuide:()=>ui,PaymentGuideDialog:()=>vi,PaymentInvoice:()=>Xc,PaymentMethods:()=>Kc,PaymentResult:()=>nd,PaymentResultContent:()=>od,PaymentResultFooter:()=>ed,Popover:()=>Yo,PopoverContent:()=>Io,PopoverTrigger:()=>Zo,ProgressSteps:()=>Vm,ProgressStepsItem:()=>Om,ProgressStepsItemTrigger:()=>Bm,Progressbar:()=>En,QRPayment:()=>xd,RadioGroup:()=>fn,RadioGroupItem:()=>gn,ReadMoreLite:()=>Wr,SearchBar:()=>cm,SectionBlock:()=>X,Select:()=>Ko,SelectContent:()=>Lo,SelectGroup:()=>ea,SelectItem:()=>to,SelectLabel:()=>Li,SelectScrollDownButton:()=>Nr,SelectScrollUpButton:()=>yr,SelectSeparator:()=>Fi,SelectTrigger:()=>Ao,SelectValue:()=>Jo,SiteMeta:()=>jd,Skeleton:()=>Wa,Slider:()=>zn,SocialProofSection:()=>hc,Spinner:()=>Vr,Stepper:()=>cn,Switch:()=>za,Tabs:()=>It,TabsContent:()=>ft,TabsList:()=>dt,TabsTrigger:()=>pt,TestimonialSection:()=>Bc,TextArea:()=>Sr,TextButton:()=>ve,TextInput:()=>Lr,ToastAction:()=>tn,Toaster:()=>Ml,Tooltip:()=>Al,TooltipArrow:()=>sn,TooltipContent:()=>ln,TooltipProvider:()=>Il,TooltipTrigger:()=>Ll,Topbar:()=>sd,badgeVariants:()=>An,buttonVariants:()=>mt,mobaseTW:()=>$d,navigationMenuTriggerStyle:()=>Aa,textButtonVariants:()=>Si,toast:()=>Ki,useFormField:()=>sa,useToast:()=>Ar});module.exports=Jd(dg);var va=v(require("react"),1),Ls=require("@heroicons/react/20/solid"),Xe=v(require("@radix-ui/react-accordion"),1);var ep=v(require("react"),1),Ms=require("tailwind-merge");var Qt={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 Ds={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 ua=[{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"}],hi=[{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 De={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 Is=require("@artsy/fresnel");function i(...e){return(0,Ms.twMerge)(e)}var As=(0,Is.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),gg=As.createMediaStyle(),{Media:Nt,MediaContextProvider:Go}=As,co=e=>!e||typeof e!="string"?"":e.replace(/<[^>]*>/g,"").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").trim();var Ut=require("react/jsx-runtime"),wt=va.forwardRef(({className:e,...o},t)=>(0,Ut.jsx)(Xe.Root,{ref:t,...o}));wt.displayName="AccordionRoot";var Pt=va.forwardRef(({className:e,...o},t)=>(0,Ut.jsx)(Xe.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));Pt.displayName="AccordionItem";var Ct=va.forwardRef(({className:e,children:o,...t},a)=>(0,Ut.jsx)(Xe.Header,{className:"flex",children:(0,Ut.jsxs)(Xe.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,Ut.jsx)(Ls.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));Ct.displayName=Xe.Trigger.displayName;var Rt=va.forwardRef(({className:e,children:o,...t},a)=>(0,Ut.jsx)(Xe.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,Ut.jsx)("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));Rt.displayName=Xe.Content.displayName;var Os=require("react");var Fs=v(require("react"),1),Es=require("@radix-ui/react-slot"),zs=require("class-variance-authority");var Me=require("react/jsx-runtime"),tp=({className:e})=>(0,Me.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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,Me.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"})]}),$o=tp;var po=require("react/jsx-runtime"),mt=(0,zs.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"}}),Ie=Fs.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,dataUmamiEvent:s="",dataUmamiEventText:l,...c},d)=>{let p=a?Es.Slot:"button",f=i(mt({variant:o,size:t,className:e}),{"cursor-wait":r});return(0,po.jsx)(po.Fragment,{children:a?(0,po.jsx)(p,{className:f,type:"button",disabled:n,ref:d,"data-umami-event":s||void 0,"data-umami-event-text":l||void 0,...c,children:c.children}):(0,po.jsxs)(p,{className:f,type:"button",disabled:n,ref:d,"data-umami-event":s||void 0,"data-umami-event-text":l||void 0,...c,children:[r&&(0,po.jsx)($o,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),c.children]})})});Ie.displayName="Button";var _s=require("qrcode.react");var ha=v(require("react"),1),Hs=require("@heroicons/react/16/solid"),de=v(require("@radix-ui/react-dialog"),1);var Ee=require("react/jsx-runtime"),ze=de.Root,jo=de.Trigger,xi=de.Portal,Ja=de.Close,er=ha.forwardRef(({className:e,...o},t)=>(0,Ee.jsx)(de.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}));er.displayName=de.Overlay.displayName;var Ae=ha.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"},x=[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,Ee.jsxs)(xi,{children:[(0,Ee.jsx)(er,{}),(0,Ee.jsxs)(de.Content,{ref:d,className:i(...x),...c,children:[l,!t&&(0,Ee.jsxs)(de.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,Ee.jsx)(Hs.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Ee.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Ae.displayName=de.Content.displayName;var qt=({className:e,...o})=>(0,Ee.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});qt.displayName="DialogHeader";var We=({className:e,isCondensed:o=!1,...t})=>(0,Ee.jsx)("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});We.displayName="DialogBody";var xa=({className:e,isDivider:o=!0,...t})=>(0,Ee.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});xa.displayName="DialogFooter";var Xt=ha.forwardRef(({className:e,...o},t)=>(0,Ee.jsx)(de.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Xt.displayName=de.Title.displayName;var bi=ha.forwardRef(({className:e,...o},t)=>(0,Ee.jsx)(de.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));bi.displayName=de.Description.displayName;var N=require("react/jsx-runtime"),op=({img:e="",children:o,isQrForAll:t})=>(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{className:"qrcode__scan__container",children:(0,N.jsxs)("div",{className:"qrcode__scan",children:[(0,N.jsx)("div",{className:"qrcode__gradient",children:(0,N.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,N.jsx)("div",{className:"qrcode__border",children:(0,N.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,N.jsx)("div",{className:"p-4 qrcode__image",children:e?(0,N.jsx)("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),(0,N.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,N.jsxs)(N.Fragment,{children:[(0,N.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,N.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,N.jsxs)(N.Fragment,{children:[(0,N.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,N.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,N.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,N.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
|
-
`})]}),fo=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...c})=>(0,N.jsx)(ze,{...c,children:(0,N.jsx)(Ae,{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,N.jsx)(We,{className:"p-0",children:(0,N.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,N.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,N.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,N.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,N.jsx)("div",{className:"flex-none",children:(0,N.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,N.jsxs)("div",{className:"flex-1 pl-4",children:[(0,N.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,N.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,N.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,N.jsx)("div",{className:"flex-none",children:(0,N.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,N.jsxs)("div",{className:"flex-1 pl-4",children:[(0,N.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,N.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,N.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,N.jsx)("div",{className:"flex-none",children:(0,N.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,N.jsxs)("div",{className:"flex-1 pl-4",children:[(0,N.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,N.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,N.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,N.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,N.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,N.jsxs)("div",{className:"relative",children:[l&&(0,N.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,N.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,N.jsx)(op,{img:r,isQrForAll:l,children:n&&(0,N.jsx)(_s.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 Os=require("react");var Qo=require("react"),Bs=v(require("ua-parser-js"),1),ap=()=>(0,Bs.default)().device.type==="mobile",rp=typeof window<"u"?Qo.useLayoutEffect:Qo.useEffect,Uo=()=>{let[e,o]=(0,Qo.useState)(!1);return rp(()=>{o(ap())},[]),e};var Yt=require("react/jsx-runtime"),Ye=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,c]=(0,Os.useState)(!1),p=Uo(),d=!!a?.qrLink,f=()=>{let B=d?a?.qrLink:e;return typeof B=="string"?B.trim():""},u=()=>{let B=f();!B&&typeof e!="function"||(typeof e=="function"?e():window.open(B,o?"_blank":"_self"))},b=(B,K=0)=>{let X=document.querySelector(B);if(!X)return;let S=X.getBoundingClientRect().top+window.scrollY-K;window.scrollTo({top:S,behavior:"smooth"})},R=()=>{typeof e=="string"&&e.startsWith("#")?b(e,t):u()},I=()=>(0,Yt.jsxs)(Yt.Fragment,{children:[(0,Yt.jsx)(Ie,{...s,className:r,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Yt.jsx)(fo,{...a,open:l,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return d?p?a?.isQrForAll?I():(0,Yt.jsx)(Ie,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):I():(0,Yt.jsx)(Ie,{...s,onClick:R,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var qo=v(require("react"),1),tr=require("@radix-ui/react-icons"),Vs=require("@radix-ui/react-slot");var Ze=require("react/jsx-runtime"),yi=qo.forwardRef(({className:e,...o},t)=>(0,Ze.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));yi.displayName="Breadcrumb";var Ni=qo.forwardRef(({className:e,...o},t)=>(0,Ze.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}));Ni.displayName="BreadcrumbList";var wi=qo.forwardRef(({className:e,...o},t)=>(0,Ze.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));wi.displayName="BreadcrumbItem";var Pi=qo.forwardRef(({asChild:e,className:o,...t},a)=>(0,Ze.jsx)(e?Vs.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Pi.displayName="BreadcrumbLink";var Ci=qo.forwardRef(({className:e,...o},t)=>(0,Ze.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));Ci.displayName="BreadcrumbPage";var Ri=({children:e,className:o,...t})=>(0,Ze.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,Ze.jsx)(tr.ChevronRightIcon,{className:"w-2 h-2"})});Ri.displayName="BreadcrumbSeparator";var ki=({className:e,...o})=>(0,Ze.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Ze.jsx)(tr.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Ze.jsx)("span",{className:"sr-only",children:"More"})]});ki.displayName="BreadcrumbElipssis";var nr=v(require("html-react-parser"),1);var ba=require("react");var Xo=require("react/jsx-runtime"),Ti=(0,ba.createContext)({align:"center"}),or=({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,Xo.jsx)("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},ar=({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:p}=(0,ba.useContext)(Ti);return(0,Xo.jsx)(s,{className:i("max-w-4xl font-bold",p==="center"?"mx-auto":p==="right"?"ml-auto":"",l[t],c[o],a&&"truncate",r),children:n})},rr=({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:p}=(0,ba.useContext)(Ti);return(0,Xo.jsx)("div",{className:i(p==="center"?"mx-auto max-w-2xl":p==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],c[t],a&&"truncate",r),children:n})},ir=({className:e,align:o="center",children:t})=>(0,Xo.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Xo.jsx)(Ti.Provider,{value:{align:o},children:t})});var Rt=require("react/jsx-runtime"),Y=({idSection:e,className:o,background:t,children:a})=>(0,Rt.jsx)("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,Rt.jsx)("div",{className:"wrapper relative",children:a})}),y=({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",p=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,Rt.jsxs)(ir,{align:e,className:l,children:[o&&(0,Rt.jsx)(or,{color:c,children:o}),t&&(0,Rt.jsx)(ar,{tagHeading:r,color:p,size:s,children:(0,nr.default)(t)}),a&&(0,Rt.jsx)(rr,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,nr.default)(a)})]})},w=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,Rt.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,Rt.jsx)(Ye,{...l,dataUmamiEventText:co(s),className:i(o&&"w-full md:w-auto",r?.className),children:(0,nr.default)(s)},n)})});var dr=v(require("react"),1),Ys=require("@heroicons/react/20/solid"),Zs=v(require("html-react-parser"),1);var _e=require("react"),sr=require("lucide-react");var Ws=v(require("react"),1),Gs=require("@radix-ui/react-slot"),$s=require("class-variance-authority");var js=require("react/jsx-runtime"),To=(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"}}),xe=Ws.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Gs.Slot:"button",c=i(To({variant:o,size:t,className:e}));return(0,js.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});xe.displayName="IconButton";var He=require("react/jsx-runtime"),lr=(0,_e.createContext)(void 0),kt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=(0,_e.useRef)(null),[n,s]=(0,_e.useState)({left:!1,right:!1}),l=(0,_e.useCallback)(()=>{let p=r.current;if(p){let{scrollLeft:d,scrollWidth:f,clientWidth:u}=p;s({left:d>0,right:Math.ceil(d+u)<f})}},[]);(0,_e.useEffect)(()=>{let p=r.current;if(p)return l(),window.addEventListener("resize",l),p.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),p.removeEventListener("scroll",l)}},[l]);let c=p=>{let d=r.current;if(d){let{scrollLeft:f,clientWidth:u,scrollWidth:b}=d,R=u*.7*(p==="left"?-1:1),I=f+R;I<0?I=0:I>b-u&&(I=b-u),d.scrollTo({left:I,behavior:"smooth"})}};return(0,He.jsx)(lr.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,He.jsxs)("div",{className:i("relative w-full",t),children:[e&&(0,He.jsxs)(He.Fragment,{children:[n.left&&(0,He.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,He.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,_e.useContext)(lr);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,He.jsx)("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},St=({className:e,children:o,...t})=>{let a=(0,_e.useContext)(lr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,He.jsx)(xe,{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,He.jsx)(sr.ChevronLeft,{className:"h-4 w-4"})}):null},Dt=({className:e,children:o,...t})=>{let a=(0,_e.useContext)(lr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,He.jsx)(xe,{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,He.jsx)(sr.ChevronRight,{className:"h-4 w-4"})}):null};var mr=v(require("react"),1),mt=v(require("@radix-ui/react-tabs"),1);var cr=require("react/jsx-runtime"),Mt=mt.Root,ct=mr.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,cr.jsx)(mt.List,{ref:r,className:i("inline-flex w-full flex-row items-center space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));ct.displayName=mt.List.displayName;var dt=mr.forwardRef(({className:e,...o},t)=>(0,cr.jsx)(mt.Trigger,{ref:t,className:i("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap border-b-2 border-transparent py-3 font-semibold text-gray-900 transition-all hover:text-pink-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-pink-500 data-[state=active]:text-pink-500",e),...o}));dt.displayName=mt.Trigger.displayName;var pt=mr.forwardRef(({className:e,...o},t)=>(0,cr.jsx)(mt.Content,{ref:t,className:i("ring-offset-background focus-visible:ring-ring mt-3 text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e),...o}));pt.displayName=mt.Content.displayName;var Qs=v(require("react"),1),Us=require("@radix-ui/react-slot"),qs=require("class-variance-authority");var Xs=require("react/jsx-runtime"),Si=(0,qs.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"}}),ve=Qs.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Us.Slot:"button",c=i(Si({variant:o,size:t,className:e}));return(0,Xs.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});ve.displayName="TextButton";var L=require("react/jsx-runtime"),ip=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,L.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,L.jsxs)("picture",{children:[(0,L.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,L.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,L.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,L.jsx)(ve,{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,L.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,L.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ve,{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,L.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,L.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},pr=(0,dr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(d,f,u)=>{d?.preventDefault(),d?.stopPropagation(),a?a(f):window.open(u,"_blank")},p=(d,f)=>(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((u,b)=>(0,L.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,L.jsx)("div",{onClick:R=>c(R,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:(0,L.jsx)(ip,{blog:u})},u?.id)},b))}),d?.isShowBtn&&(0,L.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,L.jsxs)(Ye,{action:r?()=>r?.(f):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",dataUmamiEvent:d?.dataUmamiEvent,dataUmamiEventText:co(d?.btnName)||"Xem th\xEAm",children:[(0,Zs.default)(d.btnName||"Xem th\xEAm"),d?.isLoading?(0,L.jsx)($o,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&(0,L.jsx)(Ys.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||f);return(0,L.jsxs)(dr.default.Fragment,{children:[e&&(0,L.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?(0,L.jsxs)(Mt,{defaultValue:t[0]?.title,children:[(0,L.jsxs)(kt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,L.jsx)(Tt,{className:"mb-6 text-center",children:(0,L.jsx)(ct,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,f)=>(0,L.jsx)(dt,{value:d.title,children:d.title},d.title+f))})}),(0,L.jsx)(St,{}),(0,L.jsx)(Dt,{})]}),t.map((d,f)=>(0,L.jsx)(pt,{value:d.title,children:p(d,f)},d.title+f))]}):t?.length===1&&t[0]&&p(t[0],0)]})});var Zt=v(require("react"),1),gr=require("@heroicons/react/20/solid"),Di=v(require("html-react-parser"),1);var ee=v(require("react"),1),fr=require("@heroicons/react/20/solid"),Ks=v(require("embla-carousel-react"),1);var be=require("react/jsx-runtime"),Js=ee.createContext(null);function ya(){let e=ee.useContext(Js);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Re=ee.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[c,p]=(0,Ks.default)({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,f]=ee.useState(!1),[u,b]=ee.useState(!1),R=ee.useCallback(K=>{K&&(f(K.canScrollPrev()),b(K.canScrollNext()))},[]),I=ee.useCallback(()=>{p?.scrollPrev()},[p]),T=ee.useCallback(()=>{p?.scrollNext()},[p]),B=ee.useCallback(K=>{K.key==="ArrowLeft"?(K.preventDefault(),I()):K.key==="ArrowRight"&&(K.preventDefault(),T())},[I,T]);return ee.useEffect(()=>{!p||!t||t(p)},[p,t]),ee.useEffect(()=>{if(p)return R(p),p.on("reInit",R),p.on("select",R),()=>{p?.off("select",R)}},[p,R]),(0,be.jsx)(Js.Provider,{value:{carouselRef:c,api:p,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:I,scrollNext:T,canScrollPrev:d,canScrollNext:u},children:(0,be.jsx)("div",{ref:l,onKeyDownCapture:B,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});Re.displayName="Carousel";var ke=ee.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=ya();return(0,be.jsx)("div",{ref:r,className:i("overflow-hidden",o),children:(0,be.jsx)("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ke.displayName="CarouselContent";var Pe=ee.forwardRef(({className:e,...o},t)=>{let{orientation:a}=ya();return(0,be.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})});Pe.displayName="CarouselItem";var So=ee.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=ya();return(0,be.jsxs)(xe,{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,be.jsx)(fr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,be.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});So.displayName="CarouselPrevious";var Do=ee.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=ya();return(0,be.jsxs)(xe,{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,be.jsx)(fr.ChevronRightIcon,{className:"h-6 w-6"}),(0,be.jsx)("span",{className:"sr-only",children:"Next slide"})]})});Do.displayName="CarouselNext";var Mo=ee.forwardRef((e,o)=>{let{api:t}=ya(),[,a]=ee.useState(!1),r=ee.useCallback(()=>a(l=>!l),[]);ee.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,be.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,c)=>(0,be.jsx)(xe,{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,be.jsx)(be.Fragment,{})});Mo.displayName="CarouselDots";var D=require("react/jsx-runtime"),np=({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:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,D.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,D.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,D.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,D.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Di.default)(e?.description??"")}),(0,D.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(ve,{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,D.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,D.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},sp=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:c="#",isNewTab:p,classNameItem:d}=e??{};return(0,Zt.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Re,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,D.jsx)(ke,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>(0,D.jsx)(Pe,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,D.jsx)("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",d),children:(0,D.jsx)(np,{blog:f})},f?.id)},f?.id))})}),s&&(0,D.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,D.jsxs)(Ye,{action:c&&c,newTab:p,variant:"outline",dataUmamiEvent:e?.dataUmamiEvent,dataUmamiEventText:co(e?.btnName)||"Xem th\xEAm",children:[(0,Di.default)(l||"Xem th\xEAm")," "]})})]})},lp=({carouselRef:e})=>(0,D.jsxs)(xe,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,D.jsx)(gr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,D.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),mp=({carouselRef:e})=>(0,D.jsxs)(xe,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,D.jsx)(gr.ChevronRightIcon,{className:"h-6 w-6"}),(0,D.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Mi=(0,Zt.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(p,d,f)=>{p?.preventDefault(),p?.stopPropagation(),t?t(d):window.open(f,"_blank")},[n,s]=(0,Zt.useState)(null),[,l]=(0,Zt.useState)(0),c=()=>n?(0,D.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,D.jsx)(lp,{carouselRef:n}),(0,D.jsx)(mp,{carouselRef:n})]}):(0,D.jsx)(D.Fragment,{});return(0,D.jsxs)(Zt.default.Fragment,{children:[(0,D.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,D.jsx)(y,{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,D.jsx)(c,{})]}),(0,D.jsx)(sp,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});var Kt=require("react/jsx-runtime"),cp=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,Kt.jsx)(pr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return(0,Kt.jsx)(Mi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,Kt.jsx)(pr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},dp=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,Kt.jsx)(Kt.Fragment,{children:cp({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),el=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,Kt.jsx)(Y,{className:i("overflow-hidden",r),idSection:a,background:n,children:(0,Kt.jsx)(dp,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:c})});var vr=v(require("react"),1),hr=require("date-fns/locale"),xr=require("lucide-react"),al=v(require("lunisolar"),1),rl=require("react-day-picker");var tl=v(require("react"),1),Na=v(require("@radix-ui/react-checkbox"),1),ol=require("@heroicons/react/16/solid"),Ii=require("class-variance-authority");var ur=require("react/jsx-runtime"),pp=(0,Ii.cva)("peer shrink-0 rounded border-2 disabled:bg-gray-300 border-gray-300 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:bg-gray-100 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-400 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),fp=(0,Ii.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),wa=tl.forwardRef(({className:e,size:o,...t},a)=>(0,ur.jsx)(Na.Root,{ref:a,className:i(pp({size:o}),e),...t,children:(0,ur.jsx)(Na.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,ur.jsx)(ol.CheckIcon,{className:i(fp({size:o}))})})}));wa.displayName=Na.Root.displayName;var Ce=require("react/jsx-runtime"),gp=({date:e,cusContent:o})=>{let t=null;return t=(0,al.default)(e).lunar,(0,Ce.jsxs)(Ce.Fragment,{children:[o?o(e):e.getDate(),t&&(0,Ce.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},up={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 vp({isShow:e,setIsShow:o,lang:t}){let a=vr.useId();return(0,Ce.jsx)("div",{className:"w-full p-3 pt-0",children:(0,Ce.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,Ce.jsx)(wa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,Ce.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 hp=e=>e.getDay()===0||e.getDay()===6;function Pa({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,c]=vr.useState(!0);return(0,Ce.jsx)(rl.DayPicker,{locale:r==="vi"?hr.vi:hr.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(lt({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(lt({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:hp},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,Ce.jsx)(xr.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,Ce.jsx)(xr.ChevronRight,{className:"h-6 w-6"}),DayContent:p=>(0,Ce.jsx)(gp,{date:p.date,cusContent:n}),Months:({children:p})=>(0,Ce.jsxs)("div",{className:"w-full",children:[(0,Ce.jsx)("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:p}),a&&(0,Ce.jsx)(vp,{isShow:l,setIsShow:c,lang:r})]})},formatters:r==="vi"?up:{},...s})}Pa.displayName="Calendar";var br=require("@heroicons/react/16/solid"),Ca=require("date-fns"),nl=require("lucide-react");var il=v(require("react"),1),Jt=v(require("@radix-ui/react-popover"),1);var Ai=require("react/jsx-runtime"),Yo=Jt.Root,Zo=Jt.Trigger,Io=il.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,Ai.jsx)(Jt.Portal,{children:(0,Ai.jsx)(Jt.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})}));Io.displayName=Jt.Content.displayName;var ie=require("react/jsx-runtime"),sl=({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:p,popoverContentProps:d})=>{let f=p?.selected||null;return(0,ie.jsxs)("div",{children:[(0,ie.jsxs)(Yo,{...c,children:[(0,ie.jsx)(Zo,{asChild:!0,children:(0,ie.jsxs)(Ie,{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,ie.jsx)("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?(0,Ca.format)(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?(0,ie.jsx)(ie.Fragment,{children:f.from?f.to?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)("span",{className:"date-from",children:(0,Ca.format)(f.from,s)})," ",(0,ie.jsx)("span",{className:"date-separator",children:"-"}),(0,ie.jsx)("span",{className:"date-to",children:(0,Ca.format)(f.to,s)})]}):(0,Ca.format)(f.from,s):o}):o}),e&&(0,ie.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,ie.jsx)(nl.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,ie.jsx)(Io,{className:"w-auto border-none !p-0",...d,children:(0,ie.jsx)(Pa,{...p,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&(0,ie.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?(0,ie.jsx)(br.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ie.jsx)(br.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ie.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var Ra=require("react"),wr=require("@heroicons/react/16/solid"),pl=require("date-fns");var It=v(require("react"),1),eo=require("@heroicons/react/16/solid"),ll=require("@heroicons/react/24/outline"),E=v(require("@radix-ui/react-select"),1);var G=require("react/jsx-runtime"),Ko=It.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},c)=>(0,G.jsxs)("div",{ref:c,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-1 [&>.select-mobase-button]:ring-red-500":"",r===2?"[&>.select-mobase-button]:h-12 [&>.select-mobase-button]:text-base":""),children:[t&&(0,G.jsx)("span",{className:i("mobase-select-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",r===2&&"-top-2.5 text-sm",n&&"text-red-500"),children:t}),(0,G.jsx)(E.Root,{disabled:s,...l,children:o}),a&&(0,G.jsxs)("div",{className:i("mobase-select-message mt-1 flex items-center space-x-1 text-gray-500",n&&"text-red-500"),children:[n?(0,G.jsx)(eo.XCircleIcon,{width:16,height:16}):(0,G.jsx)(ll.QuestionMarkCircleIcon,{width:16,height:16}),(0,G.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Jo=E.Value,Ao=It.forwardRef(({className:e,children:o,...t},a)=>(0,G.jsxs)(E.Trigger,{ref:a,className:i("select-mobase-button flex h-11 w-full 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-visible:border-pink-500 focus-visible:ring-1 focus-visible:!ring-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent 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",e),...t,children:[(0,G.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,G.jsx)(E.Icon,{asChild:!0,children:(0,G.jsx)(eo.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-500"})})]}));Ao.displayName=E.Trigger.displayName;var yr=It.forwardRef(({className:e,...o},t)=>(0,G.jsx)(E.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,G.jsx)(eo.ChevronUpIcon,{className:"h-5 w-5"})}));yr.displayName=E.ScrollUpButton.displayName;var Nr=It.forwardRef(({className:e,...o},t)=>(0,G.jsx)(E.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center bg-gradient-to-t from-white to-transparent py-1",e),...o,children:(0,G.jsx)(eo.ChevronDownIcon,{className:"h-5 w-5"})}));Nr.displayName=E.ScrollDownButton.displayName;var Lo=It.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,G.jsx)(E.Portal,{children:(0,G.jsxs)(E.Content,{ref:r,className:i("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 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900",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,G.jsx)(yr,{}),(0,G.jsx)(E.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,G.jsx)(Nr,{})]})}));Lo.displayName=E.Content.displayName;var ea=It.forwardRef(({className:e,children:o,...t},a)=>(0,G.jsx)(E.Group,{ref:a,className:i("relative border-b border-gray-200 p-1 after:w-full last:border-0",e),...t,children:o})),Li=It.forwardRef(({className:e,...o},t)=>(0,G.jsx)(E.Label,{ref:t,className:i("z-[1] py-1.5 pl-7 pr-2 text-sm font-semibold",e),...o}));Li.displayName=E.Label.displayName;var to=It.forwardRef(({className:e,children:o,...t},a)=>(0,G.jsxs)(E.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,G.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,G.jsx)(E.ItemIndicator,{children:(0,G.jsx)(eo.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,G.jsx)(E.ItemText,{children:o})]})),Fi=It.forwardRef(({className:e,...o},t)=>(0,G.jsx)(E.Separator,{ref:t,className:i("-mx-1 my-1 h-px",e),...o}));Fi.displayName=E.Separator.displayName;var ml=["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"],cl=["January","February","March","April","May","June","July","August","September","October","November","December"],Ei=(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}},dl=(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 O=require("react/jsx-runtime"),fl=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:c="vi",fromYear:p=1900,toYear:d=new Date().getFullYear(),disableUnselect:f=!1})=>{let[u,b]=(0,Ra.useState)(o??null),R=Math.min(p,d),I=Math.max(p,d),T=l==="MM/yyyy",B=(S,J)=>{if(J===0){b(void 0),t?.(void 0);return}let W=u?.getFullYear()||new Date().getFullYear(),nt=u?.getMonth()??0,st=u?.getDate()??1;S==="month"&&J!==null&&(nt=J-1),S==="year"&&J!==null&&(W=J),T?st=1:S==="day"&&J!==null&&(st=J);let Za=Ei(W,nt+1).daysInMonth;st>Za&&(st=1);let ga=new Date(W,nt,st);(0,pl.isValid)(ga)&&(b(ga),t?.(ga))},[K,X]=(0,Ra.useState)(!1),jt=S=>{X(S)};return(0,Ra.useEffect)(()=>{b(o??null)},[o]),(0,O.jsxs)("div",{className:i("relative",s&&"cursor-no-drop"),children:[(0,O.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",K&&"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,O.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,O.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!T&&(0,O.jsxs)(Ko,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:S=>B("day",parseInt(S,10)),onOpenChange:jt,className:"w-[30%]",children:[(0,O.jsx)(Ao,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,O.jsx)(Jo,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,O.jsx)(Lo,{onCloseAutoFocus:S=>S.preventDefault(),children:(0,O.jsxs)(ea,{children:[!f&&(0,O.jsx)(to,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Ei(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(S,J)=>(J+1).toString().padStart(2,"0")).map(S=>(0,O.jsx)(to,{value:S,children:S},S))]})})]}),(0,O.jsxs)(Ko,{value:u?(u.getMonth()+1).toString():"",onValueChange:S=>B("month",parseInt(S,10)),onOpenChange:jt,className:i(T?"w-1/2":"w-2/5"),children:[(0,O.jsx)(Ao,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,O.jsx)(Jo,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,O.jsx)(Lo,{onCloseAutoFocus:S=>S.preventDefault(),children:(0,O.jsxs)(ea,{children:[!f&&(0,O.jsx)(to,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(S,J)=>J+1).map(S=>(0,O.jsx)(to,{value:S.toString(),children:c==="vi"?ml[S-1]:cl[S-1]},S))]})})]}),(0,O.jsxs)(Ko,{value:u?u.getFullYear().toString():"",onValueChange:S=>B("year",parseInt(S,10)),onOpenChange:jt,className:i(T?"w-1/2":"w-[30%]"),children:[(0,O.jsx)(Ao,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,O.jsx)(Jo,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,O.jsx)(Lo,{onCloseAutoFocus:S=>S.preventDefault(),children:(0,O.jsxs)(ea,{children:[!f&&(0,O.jsx)(to,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),dl(R,I).map(S=>(0,O.jsx)(to,{value:S.toString(),children:S},S))]})})]})]})]}),r&&(0,O.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,O.jsx)(wr.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,O.jsx)(wr.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,O.jsx)("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};var Fo=v(require("react"),1),ae=v(require("@radix-ui/react-alert-dialog"),1);var Ke=require("react/jsx-runtime"),gl=ae.Root,ul=ae.Trigger,zi=ae.Portal,Pr=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsx)(ae.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}));Pr.displayName=ae.Overlay.displayName;var Hi=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsxs)(zi,{children:[(0,Ke.jsx)(Pr,{}),(0,Ke.jsx)(ae.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})]}));Hi.displayName=ae.Content.displayName;var _i=({className:e,...o})=>(0,Ke.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});_i.displayName="AlertDialogHeader";var Bi=({className:e,...o})=>(0,Ke.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Bi.displayName="AlertDialogFooter";var Oi=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsx)(ae.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Oi.displayName=ae.Title.displayName;var Vi=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsx)(ae.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Vi.displayName=ae.Description.displayName;var Wi=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsx)(ae.Action,{ref:t,className:i(lt({variant:"primary"}),"",e),...o}));Wi.displayName=ae.Action.displayName;var Gi=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsx)(ae.Cancel,{ref:t,className:i(lt({variant:"secondary"}),e),...o}));Gi.displayName=ae.Cancel.displayName;var Cr=require("react");var ka=require("react"),$i=v(require("html-react-parser"),1),hl=require("motion/react");var vl=v(require("@radix-ui/react-aspect-ratio"),1),$=vl.Root;var U=require("react/jsx-runtime"),xp=({guideGroup:e,mockup:o})=>{let[t,a]=(0,ka.useState)(),[r,n]=(0,ka.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,ka.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,U.jsx)(U.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,U.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,U.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,U.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,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,U.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,U.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,U.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,U.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,U.jsxs)(Re,{setApi:a,children:[(0,U.jsx)(ke,{className:"ml-0",children:e?.stepList.map((l,c)=>(0,U.jsx)(Pe,{className:"pl-0",children:(0,U.jsx)($,{ratio:o==="small"?540/960:540/1168,children:l?.image&&(0,U.jsx)("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},c))}),(0,U.jsx)(So,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,U.jsx)(Do,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,U.jsx)("div",{className:"flex flex-auto pl-12 pt-4",children:(0,U.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((l,c)=>(0,U.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,U.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,U.jsx)("div",{className:i(" text-sm font-medium",c+1===r?"text-pink-500":"text-gray-900"),children:(0,$i.default)(l.title)}),l.content&&(0,U.jsx)(hl.motion.div,{initial:"closed",animate:c+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,U.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,$i.default)(l.content)})})]},c))})})]})})},ji=xp;var oo=require("react"),Qi=require("@heroicons/react/20/solid"),xl=v(require("embla-carousel-autoplay"),1),Ta=v(require("html-react-parser"),1);var x=require("react/jsx-runtime"),bp=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=(0,oo.useState)(0),[s,l]=(0,oo.useState)();return(0,oo.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,x.jsx)(ze,{open:e,onOpenChange:o,children:(0,x.jsxs)(Ae,{position:"bottom",height:"full",children:[(0,x.jsx)(qt,{children:(0,x.jsx)(Xt,{className:"line-clamp-1",children:t?.title})}),(0,x.jsxs)(We,{className:"grid overflow-hidden p-0 ",children:[(0,x.jsx)(Re,{setApi:l,className:" grid overflow-hidden",children:(0,x.jsx)(ke,{className:"ml-0 h-full",children:t.stepList.map((c,p)=>(0,x.jsx)(Pe,{className:"h-full w-full pl-0",children:(0,x.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,x.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,x.jsx)("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:(0,x.jsxs)("div",{className:i("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,x.jsx)($,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,x.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,x.jsxs)("div",{className:"p-5 pb-12",children:[(0,x.jsx)("div",{className:"font-semibold",children:(0,Ta.default)(c.title)}),c?.content&&(0,x.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,Ta.default)(c.content)})]})]})},p))})}),(0,x.jsx)("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((c,p)=>(0,x.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${p+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(p)},p))})]})]})})},yp=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=(0,oo.useState)(!1),[n,s]=(0,oo.useState)(null),l=(0,oo.useRef)((0,xl.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=p=>{s(e?.[p]||null),r(!0)};return e?.length===0?null:(0,x.jsxs)(x.Fragment,{children:[e?.length>1?(0,x.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((p,d)=>(0,x.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(d),children:[(0,x.jsx)("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(p?.avatar||p?.stepList?.[0]?.image)&&(0,x.jsx)("img",{src:p.avatar||p?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:p.title})}),(0,x.jsxs)("div",{className:i("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",d+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[(0,x.jsxs)("div",{className:"py-2",children:[t&&(0,x.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),(0,x.jsx)("div",{className:"font-semibold",children:(0,Ta.default)(p.title)}),p?.description&&(0,x.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,Ta.default)(p.description)})]}),(0,x.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,x.jsx)(Qi.ChevronRightIcon,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&(0,x.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,x.jsx)("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:(0,x.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,x.jsxs)("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,x.jsx)(Re,{plugins:[l.current],children:(0,x.jsx)(ke,{className:"ml-0",children:e[0]?.stepList.map((p,d)=>(0,x.jsx)(Pe,{className:"pl-0",onClick:()=>c(0),children:(0,x.jsx)($,{ratio:o==="small"?540/960:540/1168,children:p?.image&&(0,x.jsx)("img",{src:p.image,className:"size-full object-contain",alt:p.title})})},d))})})})]})})}),(0,x.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,x.jsxs)(ve,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,x.jsx)(Qi.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,x.jsx)(bp,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},bl=yp;var te=require("react/jsx-runtime"),yl=({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,te.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,te.jsx)("path",{d:t.d,fill:"currentColor"})})},Ui=(0,Cr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:c}=o||{},[p,d]=(0,Cr.useState)(t?.[0]?.title||"");return(0,te.jsxs)(te.Fragment,{children:[e&&(0,te.jsx)(y,{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,te.jsxs)(Go,{children:[(0,te.jsx)(yt,{lessThan:"md",children:(0,te.jsx)(bl,{dataGuide:t,mockup:r,isStep:n})}),(0,te.jsx)(yt,{greaterThan:"sm",children:t?.length>1?(0,te.jsxs)(Mt,{defaultValue:t[0]?.title,onValueChange:f=>d(f),children:[(0,te.jsxs)(kt,{showGradientOverlay:s,gradientOverlayColor:l,className:c,children:[(0,te.jsx)(Tt,{className:"mb-6 text-center",children:(0,te.jsx)(ct,{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,R=p===f?.title||"";return(0,te.jsxs)(dt,{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":"",R&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&(0,te.jsx)(yl,{direction:"left",className:i("right-full top-0",R?"text-pink-500":"text-pink-100")}),f.title,n&&!b&&(0,te.jsx)(yl,{direction:"right",className:i("left-full top-0",R?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),(0,te.jsx)(St,{}),(0,te.jsx)(Dt,{})]}),t.map((f,u)=>(0,te.jsx)(pt,{value:f.title,children:(0,te.jsx)(ji,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&(0,te.jsx)(ji,{guideGroup:t[0],mockup:r})})]}),a&&(0,te.jsx)(w,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var go=require("react/jsx-runtime"),Np=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return(0,go.jsx)(Ui,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return(0,go.jsx)(Ui,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},wp=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>(0,go.jsx)(go.Fragment,{children:Np({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Nl=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:c="default",isStep:p=!1})=>(0,go.jsx)(Y,{className:i(n),background:s,idSection:e,children:(0,go.jsx)(wp,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:c,isStep:p})});var qi=require("react"),At=v(require("html-react-parser"),1);var k=require("react/jsx-runtime"),wl="text-xs font-medium md:text-sm",Pp=({gift:e,onOpenModal:o})=>{let t=!!e.useModal,a=!!e.btnLink?.trim(),r=e.btnName?(0,At.default)(e.btnName||"Xem chi ti\u1EBFt"):null,n=s=>{s.stopPropagation(),o(e)};return(0,k.jsx)("div",{className:"w-full px-2.5 md:w-1/2 lg:w-1/3",children:(0,k.jsxs)("div",{className:i("relative h-full rounded-xl border border-gray-200 bg-white p-2 transition-all duration-300",e.isFeatured&&"border-pink-500",t&&"cursor-pointer ring-inset hover:border-pink-500 hover:shadow-lg hover:shadow-pink-500/20 hover:ring-1 hover:ring-pink-500"),role:t?"button":void 0,tabIndex:t?0:void 0,onClick:()=>t&&o(e),children:[e.tag&&(0,k.jsxs)("span",{className:"absolute -top-2 right-2 z-10 inline-flex",children:[(0,k.jsx)("span",{className:"rounded-bl-md rounded-br-md bg-red-600 px-2 py-0.5 text-xs font-semibold uppercase text-white shadow-sm",children:(0,At.default)(e.tag)}),(0,k.jsx)("span",{"aria-hidden":!0,className:"absolute right-full top-0 h-0 w-0 border-r-8 border-t-8 border-r-red-800 border-t-transparent"})]}),(0,k.jsxs)("div",{className:"relative z-10 flex h-full flex-row items-stretch gap-3",children:[e.thumbnail&&(0,k.jsx)("div",{className:"w-28 flex-none shrink-0 md:w-32",children:(0,k.jsx)($,{ratio:1,className:"w-full",children:(0,k.jsx)("img",{src:e.thumbnail,alt:e.title||"Gift image",className:"h-full w-full rounded-md object-contain"})})}),(0,k.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,k.jsxs)("div",{className:"flex-1",children:[e.serviceName?(0,k.jsx)("span",{className:"mb-1.5 mt-1 block text-xs font-medium text-gray-700 md:mb-2",children:(0,At.default)(e.serviceName)}):(0,k.jsx)(k.Fragment,{}),(0,k.jsx)("h3",{className:"text-base font-semibold text-gray-900 md:text-lg",children:(0,At.default)(e.title)}),e.description&&(0,k.jsx)("p",{className:"line-clamp-2 text-sm text-gray-600",children:(0,At.default)(e.description)})]}),(0,k.jsx)("div",{className:"mt-auto flex flex-none justify-end pt-1 md:pt-2",children:r&&(a?(0,k.jsx)(ve,{variant:"primary",className:wl,asChild:!0,children:(0,k.jsx)("a",{href:e.btnLink,target:e.newTab?"_blank":"_self",rel:"noreferrer",onClick:s=>s.stopPropagation(),children:r})}):(0,k.jsx)(ve,{variant:"primary",size:"default",className:wl,type:"button",onClick:n,children:r}))})]})]})]})})},Rr=({dataHeading:e,dataButtons:o,dataGiftList:t})=>{let[a,r]=(0,qi.useState)(null),[n,s]=(0,qi.useState)(!1),l=c=>{r(c),s(!0)};return(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsx)(y,{align:e.align||"center",tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),t&&t.length>0&&(0,k.jsx)("div",{className:"-mx-2.5 mt-8 flex flex-wrap justify-center gap-y-5 md:mt-10",children:t.map((c,p)=>(0,k.jsx)(Pp,{gift:c,onOpenModal:l},p))}),o&&(0,k.jsx)(w,{isFullInMobile:o.isFullInMobile,buttons:o.buttons,className:o.className,align:o.align||"center"}),n&&(0,k.jsx)(ze,{open:n,onOpenChange:s,children:(0,k.jsxs)(Ae,{size:"lg",position:"bottom",children:[(0,k.jsx)(qt,{children:(0,k.jsx)(Xt,{children:"Th\xF4ng tin chi ti\u1EBFt th\u1EBB qu\xE0"})}),(0,k.jsxs)(We,{children:[(0,k.jsxs)("div",{className:"text-center",children:[a?.serviceName&&(0,k.jsx)("span",{className:"mb-1 block text-xs font-medium text-gray-500",children:(0,At.default)(a.serviceName)}),a?.title&&(0,k.jsx)("h3",{className:"text-xl font-bold md:text-2xl",children:(0,At.default)(a.title)}),a?.description&&(0,k.jsx)("p",{className:"mt-1 text-sm text-gray-700",children:(0,At.default)(a.description||"")})]}),a?.content?(0,k.jsx)("div",{className:"prose prose-sm mt-6 max-w-none",children:(0,At.default)(a.content)}):(0,k.jsx)(k.Fragment,{})]}),(0,k.jsx)(xa,{children:(0,k.jsx)(Ie,{variant:"primary",size:"default",onClick:()=>s(!1),children:"\u0110\xF3ng"})})]})})]})};var kr=require("react/jsx-runtime"),Cp=({template:e,dataHeading:o,dataButtons:t,dataGiftList:a})=>{switch(e){case 1:return(0,kr.jsx)(Rr,{dataHeading:o,dataButtons:t,dataGiftList:a});default:return(0,kr.jsx)(Rr,{dataHeading:o,dataButtons:t,dataGiftList:a})}},Pl=({template:e=1,className:o,idSection:t,background:a,dataHeading:r,dataButtons:n,dataGiftList:s})=>(0,kr.jsx)(Y,{idSection:t,className:o,background:a,children:Cp({template:e,dataHeading:r,dataButtons:n,dataGiftList:s})});var Tr=require("lucide-react");var ye=require("react/jsx-runtime");function Xi({current:e,total:o,onChange:t}){let a=r=>(0,ye.jsx)("li",{children:(0,ye.jsx)("button",{className:i(To({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,ye.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,ye.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,ye.jsx)("li",{children:(0,ye.jsx)("button",{className:i(To({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ye.jsx)(Tr.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):(0,ye.jsxs)(ye.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,ye.jsx)("li",{children:(0,ye.jsx)("button",{className:i(To({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,ye.jsx)("button",{className:i(To({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,ye.jsx)("li",{children:(0,ye.jsx)("button",{className:i(To({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ye.jsx)(Tr.ChevronRight,{className:"h-4 w-4"})})})]})})}var Cl=require("react"),Rl=require("@heroicons/react/24/outline"),kl=require("@heroicons/react/24/solid");var Lt=require("react/jsx-runtime"),Sr=(0,Cl.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...c},p)=>(0,Lt.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,Lt.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,Lt.jsx)("textarea",{disabled:e,ref:p,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,Lt.jsxs)("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?(0,Lt.jsx)(kl.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Lt.jsx)(Rl.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Lt.jsx)("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,Lt.jsx)("style",{children:`
|
|
70
|
+
`})]}),fo=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...c})=>(0,N.jsx)(ze,{...c,children:(0,N.jsx)(Ae,{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,N.jsx)(We,{className:"p-0",children:(0,N.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,N.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,N.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,N.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,N.jsx)("div",{className:"flex-none",children:(0,N.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,N.jsxs)("div",{className:"flex-1 pl-4",children:[(0,N.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,N.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,N.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,N.jsx)("div",{className:"flex-none",children:(0,N.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,N.jsxs)("div",{className:"flex-1 pl-4",children:[(0,N.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,N.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,N.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,N.jsx)("div",{className:"flex-none",children:(0,N.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,N.jsxs)("div",{className:"flex-1 pl-4",children:[(0,N.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,N.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,N.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,N.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,N.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,N.jsxs)("div",{className:"relative",children:[l&&(0,N.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,N.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,N.jsx)(op,{img:r,isQrForAll:l,children:n&&(0,N.jsx)(_s.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 Qo=require("react"),Bs=v(require("ua-parser-js"),1),ap=()=>(0,Bs.default)().device.type==="mobile",rp=typeof window<"u"?Qo.useLayoutEffect:Qo.useEffect,Uo=()=>{let[e,o]=(0,Qo.useState)(!1);return rp(()=>{o(ap())},[]),e};var Yt=require("react/jsx-runtime"),Ye=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,onPushTrackingEvent:s,...l})=>{let[c,d]=(0,Os.useState)(!1),p=Uo(),f=!!a?.qrLink,u=()=>{let B=f?a?.qrLink:e;return typeof B=="string"?B.trim():""},x=()=>{let B=u();!B&&typeof e!="function"||(typeof e=="function"?e():window.open(B,o?"_blank":"_self"))},R=(B,Y=0)=>{let nt=document.querySelector(B);if(!nt)return;let Z=nt.getBoundingClientRect().top+window.scrollY-Y;window.scrollTo({top:Z,behavior:"smooth"})},A=()=>{s?.(),typeof e=="string"&&e.startsWith("#")?R(e,t):x()},k=()=>(0,Yt.jsxs)(Yt.Fragment,{children:[(0,Yt.jsx)(Ie,{...l,className:r,onClick:()=>d(!0),"data-name":"button-action-with-qr",children:n}),(0,Yt.jsx)(fo,{...a,open:c,onOpenChange:()=>d(!1),qrLink:a?.qrLink||""})]});return f?p?a?.isQrForAll?k():(0,Yt.jsx)(Ie,{...l,className:r,onClick:x,"data-name":"button-action-with-qr",children:n}):k():(0,Yt.jsx)(Ie,{...l,onClick:A,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var qo=v(require("react"),1),tr=require("@radix-ui/react-icons"),Vs=require("@radix-ui/react-slot");var Ze=require("react/jsx-runtime"),yi=qo.forwardRef(({className:e,...o},t)=>(0,Ze.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));yi.displayName="Breadcrumb";var Ni=qo.forwardRef(({className:e,...o},t)=>(0,Ze.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}));Ni.displayName="BreadcrumbList";var wi=qo.forwardRef(({className:e,...o},t)=>(0,Ze.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));wi.displayName="BreadcrumbItem";var Pi=qo.forwardRef(({asChild:e,className:o,...t},a)=>(0,Ze.jsx)(e?Vs.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Pi.displayName="BreadcrumbLink";var Ci=qo.forwardRef(({className:e,...o},t)=>(0,Ze.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));Ci.displayName="BreadcrumbPage";var Ri=({children:e,className:o,...t})=>(0,Ze.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,Ze.jsx)(tr.ChevronRightIcon,{className:"w-2 h-2"})});Ri.displayName="BreadcrumbSeparator";var ki=({className:e,...o})=>(0,Ze.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Ze.jsx)(tr.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Ze.jsx)("span",{className:"sr-only",children:"More"})]});ki.displayName="BreadcrumbElipssis";var nr=v(require("html-react-parser"),1);var ba=require("react");var Xo=require("react/jsx-runtime"),Ti=(0,ba.createContext)({align:"center"}),or=({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,Xo.jsx)("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},ar=({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,ba.useContext)(Ti);return(0,Xo.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})},rr=({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,ba.useContext)(Ti);return(0,Xo.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})},ir=({className:e,align:o="center",children:t})=>(0,Xo.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Xo.jsx)(Ti.Provider,{value:{align:o},children:t})});var kt=require("react/jsx-runtime"),X=({idSection:e,className:o,background:t,children:a})=>(0,kt.jsx)("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,kt.jsx)("div",{className:"wrapper relative",children:a})}),y=({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,kt.jsxs)(ir,{align:e,className:l,children:[o&&(0,kt.jsx)(or,{color:c,children:o}),t&&(0,kt.jsx)(ar,{tagHeading:r,color:d,size:s,children:(0,nr.default)(t)}),a&&(0,kt.jsx)(rr,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,nr.default)(a)})]})},w=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,kt.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,kt.jsx)(Ye,{...l,dataUmamiEventText:co(s),className:i(o&&"w-full md:w-auto",r?.className),children:(0,nr.default)(s)},n)})});var dr=v(require("react"),1),Ys=require("@heroicons/react/20/solid"),Zs=v(require("html-react-parser"),1);var _e=require("react"),sr=require("lucide-react");var Ws=v(require("react"),1),Gs=require("@radix-ui/react-slot"),$s=require("class-variance-authority");var js=require("react/jsx-runtime"),To=(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"}}),xe=Ws.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Gs.Slot:"button",c=i(To({variant:o,size:t,className:e}));return(0,js.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});xe.displayName="IconButton";var He=require("react/jsx-runtime"),lr=(0,_e.createContext)(void 0),Tt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=(0,_e.useRef)(null),[n,s]=(0,_e.useState)({left:!1,right:!1}),l=(0,_e.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,_e.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:x}=p,R=u*.7*(d==="left"?-1:1),A=f+R;A<0?A=0:A>x-u&&(A=x-u),p.scrollTo({left:A,behavior:"smooth"})}};return(0,He.jsx)(lr.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,He.jsxs)("div",{className:i("relative w-full",t),children:[e&&(0,He.jsxs)(He.Fragment,{children:[n.left&&(0,He.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,He.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]})})},St=({className:e,children:o})=>{let t=(0,_e.useContext)(lr);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,He.jsx)("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},Dt=({className:e,children:o,...t})=>{let a=(0,_e.useContext)(lr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,He.jsx)(xe,{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,He.jsx)(sr.ChevronLeft,{className:"h-4 w-4"})}):null},Mt=({className:e,children:o,...t})=>{let a=(0,_e.useContext)(lr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,He.jsx)(xe,{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,He.jsx)(sr.ChevronRight,{className:"h-4 w-4"})}):null};var mr=v(require("react"),1),ct=v(require("@radix-ui/react-tabs"),1);var cr=require("react/jsx-runtime"),It=ct.Root,dt=mr.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,cr.jsx)(ct.List,{ref:r,className:i("inline-flex w-full flex-row items-center space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));dt.displayName=ct.List.displayName;var pt=mr.forwardRef(({className:e,...o},t)=>(0,cr.jsx)(ct.Trigger,{ref:t,className:i("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap border-b-2 border-transparent py-3 font-semibold text-gray-900 transition-all hover:text-pink-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-pink-500 data-[state=active]:text-pink-500",e),...o}));pt.displayName=ct.Trigger.displayName;var ft=mr.forwardRef(({className:e,...o},t)=>(0,cr.jsx)(ct.Content,{ref:t,className:i("ring-offset-background focus-visible:ring-ring mt-3 text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e),...o}));ft.displayName=ct.Content.displayName;var Qs=v(require("react"),1),Us=require("@radix-ui/react-slot"),qs=require("class-variance-authority");var Xs=require("react/jsx-runtime"),Si=(0,qs.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"}}),ve=Qs.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Us.Slot:"button",c=i(Si({variant:o,size:t,className:e}));return(0,Xs.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});ve.displayName="TextButton";var L=require("react/jsx-runtime"),ip=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,L.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,L.jsxs)("picture",{children:[(0,L.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,L.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,L.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,L.jsx)(ve,{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,L.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,L.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ve,{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,L.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,L.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},pr=(0,dr.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,L.jsxs)("div",{children:[(0,L.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,x)=>(0,L.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,L.jsx)("div",{onClick:R=>c(R,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,L.jsx)(ip,{blog:u})},u?.id)},x))}),p?.isShowBtn&&(0,L.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,L.jsxs)(Ye,{action:r?()=>r?.(f):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",dataUmamiEvent:p?.dataUmamiEvent,dataUmamiEventText:co(p?.btnName)||"Xem th\xEAm",children:[(0,Zs.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,L.jsx)($o,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!p?.btnUrl&&(0,L.jsx)(Ys.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},p?.title||f);return(0,L.jsxs)(dr.default.Fragment,{children:[e&&(0,L.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?(0,L.jsxs)(It,{defaultValue:t[0]?.title,children:[(0,L.jsxs)(Tt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,L.jsx)(St,{className:"mb-6 text-center",children:(0,L.jsx)(dt,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((p,f)=>(0,L.jsx)(pt,{value:p.title,children:p.title},p.title+f))})}),(0,L.jsx)(Dt,{}),(0,L.jsx)(Mt,{})]}),t.map((p,f)=>(0,L.jsx)(ft,{value:p.title,children:d(p,f)},p.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Zt=v(require("react"),1),gr=require("@heroicons/react/20/solid"),Di=v(require("html-react-parser"),1);var J=v(require("react"),1),fr=require("@heroicons/react/20/solid"),Ks=v(require("embla-carousel-react"),1);var be=require("react/jsx-runtime"),Js=J.createContext(null);function ya(){let e=J.useContext(Js);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Re=J.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[c,d]=(0,Ks.default)({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[p,f]=J.useState(!1),[u,x]=J.useState(!1),R=J.useCallback(B=>{B&&(f(B.canScrollPrev()),x(B.canScrollNext()))},[]),A=J.useCallback(()=>{d?.scrollPrev()},[d]),k=J.useCallback(()=>{d?.scrollNext()},[d]),oe=J.useCallback(B=>{B.key==="ArrowLeft"?(B.preventDefault(),A()):B.key==="ArrowRight"&&(B.preventDefault(),k())},[A,k]);return J.useEffect(()=>{!d||!t||t(d)},[d,t]),J.useEffect(()=>{if(d)return R(d),d.on("reInit",R),d.on("select",R),()=>{d?.off("select",R)}},[d,R]),(0,be.jsx)(Js.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:A,scrollNext:k,canScrollPrev:p,canScrollNext:u},children:(0,be.jsx)("div",{ref:l,onKeyDownCapture:oe,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});Re.displayName="Carousel";var ke=J.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=ya();return(0,be.jsx)("div",{ref:r,className:i("overflow-hidden",o),children:(0,be.jsx)("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ke.displayName="CarouselContent";var Pe=J.forwardRef(({className:e,...o},t)=>{let{orientation:a}=ya();return(0,be.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})});Pe.displayName="CarouselItem";var So=J.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=ya();return(0,be.jsxs)(xe,{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,be.jsx)(fr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,be.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});So.displayName="CarouselPrevious";var Do=J.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=ya();return(0,be.jsxs)(xe,{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,be.jsx)(fr.ChevronRightIcon,{className:"h-6 w-6"}),(0,be.jsx)("span",{className:"sr-only",children:"Next slide"})]})});Do.displayName="CarouselNext";var Mo=J.forwardRef((e,o)=>{let{api:t}=ya(),[,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,be.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,c)=>(0,be.jsx)(xe,{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,be.jsx)(be.Fragment,{})});Mo.displayName="CarouselDots";var S=require("react/jsx-runtime"),np=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,S.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,S.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,S.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,S.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Di.default)(e?.description??"")}),(0,S.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(ve,{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,S.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,S.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},sp=({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,Zt.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Re,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,S.jsx)(ke,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>(0,S.jsx)(Pe,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,S.jsx)("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",p),children:(0,S.jsx)(np,{blog:f})},f?.id)},f?.id))})}),s&&(0,S.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,S.jsxs)(Ye,{action:c&&c,newTab:d,variant:"outline",dataUmamiEvent:e?.dataUmamiEvent,dataUmamiEventText:co(e?.btnName)||"Xem th\xEAm",children:[(0,Di.default)(l||"Xem th\xEAm")," "]})})]})},lp=({carouselRef:e})=>(0,S.jsxs)(xe,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,S.jsx)(gr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,S.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),mp=({carouselRef:e})=>(0,S.jsxs)(xe,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,S.jsx)(gr.ChevronRightIcon,{className:"h-6 w-6"}),(0,S.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Mi=(0,Zt.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,Zt.useState)(null),[,l]=(0,Zt.useState)(0),c=()=>n?(0,S.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,S.jsx)(lp,{carouselRef:n}),(0,S.jsx)(mp,{carouselRef:n})]}):(0,S.jsx)(S.Fragment,{});return(0,S.jsxs)(Zt.default.Fragment,{children:[(0,S.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,S.jsx)(y,{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,S.jsx)(c,{})]}),(0,S.jsx)(sp,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});var Kt=require("react/jsx-runtime"),cp=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,Kt.jsx)(pr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return(0,Kt.jsx)(Mi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,Kt.jsx)(pr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},dp=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,Kt.jsx)(Kt.Fragment,{children:cp({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),el=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,Kt.jsx)(X,{className:i("overflow-hidden",r),idSection:a,background:n,children:(0,Kt.jsx)(dp,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:c})});var vr=v(require("react"),1),hr=require("date-fns/locale"),xr=require("lucide-react"),al=v(require("lunisolar"),1),rl=require("react-day-picker");var tl=v(require("react"),1),Na=v(require("@radix-ui/react-checkbox"),1),ol=require("@heroicons/react/16/solid"),Ii=require("class-variance-authority");var ur=require("react/jsx-runtime"),pp=(0,Ii.cva)("peer shrink-0 rounded border-2 disabled:bg-gray-300 border-gray-300 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:bg-gray-100 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-400 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),fp=(0,Ii.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),wa=tl.forwardRef(({className:e,size:o,...t},a)=>(0,ur.jsx)(Na.Root,{ref:a,className:i(pp({size:o}),e),...t,children:(0,ur.jsx)(Na.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,ur.jsx)(ol.CheckIcon,{className:i(fp({size:o}))})})}));wa.displayName=Na.Root.displayName;var Ce=require("react/jsx-runtime"),gp=({date:e,cusContent:o})=>{let t=null;return t=(0,al.default)(e).lunar,(0,Ce.jsxs)(Ce.Fragment,{children:[o?o(e):e.getDate(),t&&(0,Ce.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},up={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 vp({isShow:e,setIsShow:o,lang:t}){let a=vr.useId();return(0,Ce.jsx)("div",{className:"w-full p-3 pt-0",children:(0,Ce.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,Ce.jsx)(wa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,Ce.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 hp=e=>e.getDay()===0||e.getDay()===6;function Pa({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,c]=vr.useState(!0);return(0,Ce.jsx)(rl.DayPicker,{locale:r==="vi"?hr.vi:hr.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(mt({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(mt({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:hp},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,Ce.jsx)(xr.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,Ce.jsx)(xr.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,Ce.jsx)(gp,{date:d.date,cusContent:n}),Months:({children:d})=>(0,Ce.jsxs)("div",{className:"w-full",children:[(0,Ce.jsx)("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,Ce.jsx)(vp,{isShow:l,setIsShow:c,lang:r})]})},formatters:r==="vi"?up:{},...s})}Pa.displayName="Calendar";var br=require("@heroicons/react/16/solid"),Ca=require("date-fns"),nl=require("lucide-react");var il=v(require("react"),1),Jt=v(require("@radix-ui/react-popover"),1);var Ai=require("react/jsx-runtime"),Yo=Jt.Root,Zo=Jt.Trigger,Io=il.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,Ai.jsx)(Jt.Portal,{children:(0,Ai.jsx)(Jt.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})}));Io.displayName=Jt.Content.displayName;var ie=require("react/jsx-runtime"),sl=({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,ie.jsxs)("div",{children:[(0,ie.jsxs)(Yo,{...c,children:[(0,ie.jsx)(Zo,{asChild:!0,children:(0,ie.jsxs)(Ie,{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,ie.jsx)("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?(0,Ca.format)(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?(0,ie.jsx)(ie.Fragment,{children:f.from?f.to?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)("span",{className:"date-from",children:(0,Ca.format)(f.from,s)})," ",(0,ie.jsx)("span",{className:"date-separator",children:"-"}),(0,ie.jsx)("span",{className:"date-to",children:(0,Ca.format)(f.to,s)})]}):(0,Ca.format)(f.from,s):o}):o}),e&&(0,ie.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,ie.jsx)(nl.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,ie.jsx)(Io,{className:"w-auto border-none !p-0",...p,children:(0,ie.jsx)(Pa,{...d,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&(0,ie.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?(0,ie.jsx)(br.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ie.jsx)(br.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ie.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var Ra=require("react"),wr=require("@heroicons/react/16/solid"),pl=require("date-fns");var At=v(require("react"),1),eo=require("@heroicons/react/16/solid"),ll=require("@heroicons/react/24/outline"),E=v(require("@radix-ui/react-select"),1);var G=require("react/jsx-runtime"),Ko=At.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},c)=>(0,G.jsxs)("div",{ref:c,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-1 [&>.select-mobase-button]:ring-red-500":"",r===2?"[&>.select-mobase-button]:h-12 [&>.select-mobase-button]:text-base":""),children:[t&&(0,G.jsx)("span",{className:i("mobase-select-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",r===2&&"-top-2.5 text-sm",n&&"text-red-500"),children:t}),(0,G.jsx)(E.Root,{disabled:s,...l,children:o}),a&&(0,G.jsxs)("div",{className:i("mobase-select-message mt-1 flex items-center space-x-1 text-gray-500",n&&"text-red-500"),children:[n?(0,G.jsx)(eo.XCircleIcon,{width:16,height:16}):(0,G.jsx)(ll.QuestionMarkCircleIcon,{width:16,height:16}),(0,G.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Jo=E.Value,Ao=At.forwardRef(({className:e,children:o,...t},a)=>(0,G.jsxs)(E.Trigger,{ref:a,className:i("select-mobase-button flex h-11 w-full 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-visible:border-pink-500 focus-visible:ring-1 focus-visible:!ring-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent 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",e),...t,children:[(0,G.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,G.jsx)(E.Icon,{asChild:!0,children:(0,G.jsx)(eo.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-500"})})]}));Ao.displayName=E.Trigger.displayName;var yr=At.forwardRef(({className:e,...o},t)=>(0,G.jsx)(E.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,G.jsx)(eo.ChevronUpIcon,{className:"h-5 w-5"})}));yr.displayName=E.ScrollUpButton.displayName;var Nr=At.forwardRef(({className:e,...o},t)=>(0,G.jsx)(E.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center bg-gradient-to-t from-white to-transparent py-1",e),...o,children:(0,G.jsx)(eo.ChevronDownIcon,{className:"h-5 w-5"})}));Nr.displayName=E.ScrollDownButton.displayName;var Lo=At.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,G.jsx)(E.Portal,{children:(0,G.jsxs)(E.Content,{ref:r,className:i("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 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900",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,G.jsx)(yr,{}),(0,G.jsx)(E.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,G.jsx)(Nr,{})]})}));Lo.displayName=E.Content.displayName;var ea=At.forwardRef(({className:e,children:o,...t},a)=>(0,G.jsx)(E.Group,{ref:a,className:i("relative border-b border-gray-200 p-1 after:w-full last:border-0",e),...t,children:o})),Li=At.forwardRef(({className:e,...o},t)=>(0,G.jsx)(E.Label,{ref:t,className:i("z-[1] py-1.5 pl-7 pr-2 text-sm font-semibold",e),...o}));Li.displayName=E.Label.displayName;var to=At.forwardRef(({className:e,children:o,...t},a)=>(0,G.jsxs)(E.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,G.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,G.jsx)(E.ItemIndicator,{children:(0,G.jsx)(eo.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,G.jsx)(E.ItemText,{children:o})]})),Fi=At.forwardRef(({className:e,...o},t)=>(0,G.jsx)(E.Separator,{ref:t,className:i("-mx-1 my-1 h-px",e),...o}));Fi.displayName=E.Separator.displayName;var ml=["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"],cl=["January","February","March","April","May","June","July","August","September","October","November","December"],Ei=(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}},dl=(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 O=require("react/jsx-runtime"),fl=({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,x]=(0,Ra.useState)(o??null),R=Math.min(d,p),A=Math.max(d,p),k=l==="MM/yyyy",oe=(M,Z)=>{if(Z===0){x(void 0),t?.(void 0);return}let W=u?.getFullYear()||new Date().getFullYear(),st=u?.getMonth()??0,lt=u?.getDate()??1;M==="month"&&Z!==null&&(st=Z-1),M==="year"&&Z!==null&&(W=Z),k?lt=1:M==="day"&&Z!==null&&(lt=Z);let Za=Ei(W,st+1).daysInMonth;lt>Za&&(lt=1);let ga=new Date(W,st,lt);(0,pl.isValid)(ga)&&(x(ga),t?.(ga))},[B,Y]=(0,Ra.useState)(!1),nt=M=>{Y(M)};return(0,Ra.useEffect)(()=>{x(o??null)},[o]),(0,O.jsxs)("div",{className:i("relative",s&&"cursor-no-drop"),children:[(0,O.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",B&&"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,O.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,O.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!k&&(0,O.jsxs)(Ko,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:M=>oe("day",parseInt(M,10)),onOpenChange:nt,className:"w-[30%]",children:[(0,O.jsx)(Ao,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,O.jsx)(Jo,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,O.jsx)(Lo,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,O.jsxs)(ea,{children:[!f&&(0,O.jsx)(to,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Ei(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(M,Z)=>(Z+1).toString().padStart(2,"0")).map(M=>(0,O.jsx)(to,{value:M,children:M},M))]})})]}),(0,O.jsxs)(Ko,{value:u?(u.getMonth()+1).toString():"",onValueChange:M=>oe("month",parseInt(M,10)),onOpenChange:nt,className:i(k?"w-1/2":"w-2/5"),children:[(0,O.jsx)(Ao,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,O.jsx)(Jo,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,O.jsx)(Lo,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,O.jsxs)(ea,{children:[!f&&(0,O.jsx)(to,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(M,Z)=>Z+1).map(M=>(0,O.jsx)(to,{value:M.toString(),children:c==="vi"?ml[M-1]:cl[M-1]},M))]})})]}),(0,O.jsxs)(Ko,{value:u?u.getFullYear().toString():"",onValueChange:M=>oe("year",parseInt(M,10)),onOpenChange:nt,className:i(k?"w-1/2":"w-[30%]"),children:[(0,O.jsx)(Ao,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,O.jsx)(Jo,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,O.jsx)(Lo,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,O.jsxs)(ea,{children:[!f&&(0,O.jsx)(to,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),dl(R,A).map(M=>(0,O.jsx)(to,{value:M.toString(),children:M},M))]})})]})]})]}),r&&(0,O.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,O.jsx)(wr.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,O.jsx)(wr.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,O.jsx)("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};var Fo=v(require("react"),1),ae=v(require("@radix-ui/react-alert-dialog"),1);var Ke=require("react/jsx-runtime"),gl=ae.Root,ul=ae.Trigger,zi=ae.Portal,Pr=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsx)(ae.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}));Pr.displayName=ae.Overlay.displayName;var Hi=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsxs)(zi,{children:[(0,Ke.jsx)(Pr,{}),(0,Ke.jsx)(ae.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})]}));Hi.displayName=ae.Content.displayName;var _i=({className:e,...o})=>(0,Ke.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});_i.displayName="AlertDialogHeader";var Bi=({className:e,...o})=>(0,Ke.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Bi.displayName="AlertDialogFooter";var Oi=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsx)(ae.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Oi.displayName=ae.Title.displayName;var Vi=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsx)(ae.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Vi.displayName=ae.Description.displayName;var Wi=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsx)(ae.Action,{ref:t,className:i(mt({variant:"primary"}),"",e),...o}));Wi.displayName=ae.Action.displayName;var Gi=Fo.forwardRef(({className:e,...o},t)=>(0,Ke.jsx)(ae.Cancel,{ref:t,className:i(mt({variant:"secondary"}),e),...o}));Gi.displayName=ae.Cancel.displayName;var Cr=require("react");var ka=require("react"),$i=v(require("html-react-parser"),1),hl=require("motion/react");var vl=v(require("@radix-ui/react-aspect-ratio"),1),$=vl.Root;var U=require("react/jsx-runtime"),xp=({guideGroup:e,mockup:o})=>{let[t,a]=(0,ka.useState)(),[r,n]=(0,ka.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,ka.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,U.jsx)(U.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,U.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,U.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,U.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,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,U.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,U.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,U.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,U.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,U.jsxs)(Re,{setApi:a,children:[(0,U.jsx)(ke,{className:"ml-0",children:e?.stepList.map((l,c)=>(0,U.jsx)(Pe,{className:"pl-0",children:(0,U.jsx)($,{ratio:o==="small"?540/960:540/1168,children:l?.image&&(0,U.jsx)("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},c))}),(0,U.jsx)(So,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,U.jsx)(Do,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,U.jsx)("div",{className:"flex flex-auto pl-12 pt-4",children:(0,U.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((l,c)=>(0,U.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,U.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,U.jsx)("div",{className:i(" text-sm font-medium",c+1===r?"text-pink-500":"text-gray-900"),children:(0,$i.default)(l.title)}),l.content&&(0,U.jsx)(hl.motion.div,{initial:"closed",animate:c+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,U.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,$i.default)(l.content)})})]},c))})})]})})},ji=xp;var oo=require("react"),Qi=require("@heroicons/react/20/solid"),xl=v(require("embla-carousel-autoplay"),1),Ta=v(require("html-react-parser"),1);var b=require("react/jsx-runtime"),bp=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=(0,oo.useState)(0),[s,l]=(0,oo.useState)();return(0,oo.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,b.jsx)(ze,{open:e,onOpenChange:o,children:(0,b.jsxs)(Ae,{position:"bottom",height:"full",children:[(0,b.jsx)(qt,{children:(0,b.jsx)(Xt,{className:"line-clamp-1",children:t?.title})}),(0,b.jsxs)(We,{className:"grid overflow-hidden p-0 ",children:[(0,b.jsx)(Re,{setApi:l,className:" grid overflow-hidden",children:(0,b.jsx)(ke,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,b.jsx)(Pe,{className:"h-full w-full pl-0",children:(0,b.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,b.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,b.jsx)("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:(0,b.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,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,b.jsx)("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,b.jsx)($,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,b.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,b.jsxs)("div",{className:"p-5 pb-12",children:[(0,b.jsx)("div",{className:"font-semibold",children:(0,Ta.default)(c.title)}),c?.content&&(0,b.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,Ta.default)(c.content)})]})]})},d))})}),(0,b.jsx)("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((c,d)=>(0,b.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))})]})]})})},yp=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=(0,oo.useState)(!1),[n,s]=(0,oo.useState)(null),l=(0,oo.useRef)((0,xl.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),r(!0)};return e?.length===0?null:(0,b.jsxs)(b.Fragment,{children:[e?.length>1?(0,b.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,p)=>(0,b.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(p),children:[(0,b.jsx)("div",{className:"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,b.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:d.title})}),(0,b.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,b.jsxs)("div",{className:"py-2",children:[t&&(0,b.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,b.jsx)("div",{className:"font-semibold",children:(0,Ta.default)(d.title)}),d?.description&&(0,b.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,Ta.default)(d.description)})]}),(0,b.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,b.jsx)(Qi.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,b.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,b.jsx)("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:(0,b.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,b.jsxs)("div",{className: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,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,b.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,b.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,b.jsx)(Re,{plugins:[l.current],children:(0,b.jsx)(ke,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,b.jsx)(Pe,{className:"pl-0",onClick:()=>c(0),children:(0,b.jsx)($,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,b.jsx)("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},p))})})})]})})}),(0,b.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,b.jsxs)(ve,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,b.jsx)(Qi.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,b.jsx)(bp,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},bl=yp;var ee=require("react/jsx-runtime"),yl=({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"})})},Ui=(0,Cr.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,Cr.useState)(t?.[0]?.title||"");return(0,ee.jsxs)(ee.Fragment,{children:[e&&(0,ee.jsx)(y,{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)(Go,{children:[(0,ee.jsx)(Nt,{lessThan:"md",children:(0,ee.jsx)(bl,{dataGuide:t,mockup:r,isStep:n})}),(0,ee.jsx)(Nt,{greaterThan:"sm",children:t?.length>1?(0,ee.jsxs)(It,{defaultValue:t[0]?.title,onValueChange:f=>p(f),children:[(0,ee.jsxs)(Tt,{showGradientOverlay:s,gradientOverlayColor:l,className:c,children:[(0,ee.jsx)(St,{className:"mb-6 text-center",children:(0,ee.jsx)(dt,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let x=u===t.length-1,R=d===f?.title||"";return(0,ee.jsxs)(pt,{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":"",R&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&(0,ee.jsx)(yl,{direction:"left",className:i("right-full top-0",R?"text-pink-500":"text-pink-100")}),f.title,n&&!x&&(0,ee.jsx)(yl,{direction:"right",className:i("left-full top-0",R?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),(0,ee.jsx)(Dt,{}),(0,ee.jsx)(Mt,{})]}),t.map((f,u)=>(0,ee.jsx)(ft,{value:f.title,children:(0,ee.jsx)(ji,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&(0,ee.jsx)(ji,{guideGroup:t[0],mockup:r})})]}),a&&(0,ee.jsx)(w,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var go=require("react/jsx-runtime"),Np=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return(0,go.jsx)(Ui,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return(0,go.jsx)(Ui,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},wp=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>(0,go.jsx)(go.Fragment,{children:Np({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Nl=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:c="default",isStep:d=!1})=>(0,go.jsx)(X,{className:i(n),background:s,idSection:e,children:(0,go.jsx)(wp,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:c,isStep:d})});var qi=require("react"),Lt=v(require("html-react-parser"),1);var T=require("react/jsx-runtime"),wl="text-xs font-medium md:text-sm",Pp=({gift:e,onOpenModal:o})=>{let t=!!e.useModal,a=!!e.btnLink?.trim(),r=e.btnName?(0,Lt.default)(e.btnName||"Xem chi ti\u1EBFt"):null,n=s=>{s.stopPropagation(),o(e)};return(0,T.jsx)("div",{className:"w-full px-2.5 md:w-1/2 lg:w-1/3",children:(0,T.jsxs)("div",{className:i("relative h-full rounded-xl border border-gray-200 bg-white p-2 transition-all duration-300",e.isFeatured&&"border-pink-500",t&&"cursor-pointer ring-inset hover:border-pink-500 hover:shadow-lg hover:shadow-pink-500/20 hover:ring-1 hover:ring-pink-500"),role:t?"button":void 0,tabIndex:t?0:void 0,onClick:()=>t&&o(e),children:[e.tag&&(0,T.jsxs)("span",{className:"absolute -top-2 right-2 z-10 inline-flex",children:[(0,T.jsx)("span",{className:"rounded-bl-md rounded-br-md bg-red-600 px-2 py-0.5 text-xs font-semibold uppercase text-white shadow-sm",children:(0,Lt.default)(e.tag)}),(0,T.jsx)("span",{"aria-hidden":!0,className:"absolute right-full top-0 h-0 w-0 border-r-8 border-t-8 border-r-red-800 border-t-transparent"})]}),(0,T.jsxs)("div",{className:"relative z-10 flex h-full flex-row items-stretch gap-3",children:[e.thumbnail&&(0,T.jsx)("div",{className:"w-28 flex-none shrink-0 md:w-32",children:(0,T.jsx)($,{ratio:1,className:"w-full",children:(0,T.jsx)("img",{src:e.thumbnail,alt:e.title||"Gift image",className:"h-full w-full rounded-md object-contain"})})}),(0,T.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,T.jsxs)("div",{className:"flex-1",children:[e.serviceName?(0,T.jsx)("span",{className:"mb-1.5 mt-1 block text-xs font-medium text-gray-700 md:mb-2",children:(0,Lt.default)(e.serviceName)}):(0,T.jsx)(T.Fragment,{}),(0,T.jsx)("h3",{className:"text-base font-semibold text-gray-900 md:text-lg",children:(0,Lt.default)(e.title)}),e.description&&(0,T.jsx)("p",{className:"line-clamp-2 text-sm text-gray-600",children:(0,Lt.default)(e.description)})]}),(0,T.jsx)("div",{className:"mt-auto flex flex-none justify-end pt-1 md:pt-2",children:r&&(a?(0,T.jsx)(ve,{variant:"primary",className:wl,asChild:!0,children:(0,T.jsx)("a",{href:e.btnLink,target:e.newTab?"_blank":"_self",rel:"noreferrer",onClick:s=>s.stopPropagation(),children:r})}):(0,T.jsx)(ve,{variant:"primary",size:"default",className:wl,type:"button",onClick:n,children:r}))})]})]})]})})},Rr=({dataHeading:e,dataButtons:o,dataGiftList:t})=>{let[a,r]=(0,qi.useState)(null),[n,s]=(0,qi.useState)(!1),l=c=>{r(c),s(!0)};return(0,T.jsxs)(T.Fragment,{children:[e&&(0,T.jsx)(y,{align:e.align||"center",tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),t&&t.length>0&&(0,T.jsx)("div",{className:"-mx-2.5 mt-8 flex flex-wrap justify-center gap-y-5 md:mt-10",children:t.map((c,d)=>(0,T.jsx)(Pp,{gift:c,onOpenModal:l},d))}),o&&(0,T.jsx)(w,{isFullInMobile:o.isFullInMobile,buttons:o.buttons,className:o.className,align:o.align||"center"}),n&&(0,T.jsx)(ze,{open:n,onOpenChange:s,children:(0,T.jsxs)(Ae,{size:"lg",position:"bottom",children:[(0,T.jsx)(qt,{children:(0,T.jsx)(Xt,{children:"Th\xF4ng tin chi ti\u1EBFt th\u1EBB qu\xE0"})}),(0,T.jsxs)(We,{children:[(0,T.jsxs)("div",{className:"text-center",children:[a?.serviceName&&(0,T.jsx)("span",{className:"mb-1 block text-xs font-medium text-gray-500",children:(0,Lt.default)(a.serviceName)}),a?.title&&(0,T.jsx)("h3",{className:"text-xl font-bold md:text-2xl",children:(0,Lt.default)(a.title)}),a?.description&&(0,T.jsx)("p",{className:"mt-1 text-sm text-gray-700",children:(0,Lt.default)(a.description||"")})]}),a?.content?(0,T.jsx)("div",{className:"prose prose-sm mt-6 max-w-none",children:(0,Lt.default)(a.content)}):(0,T.jsx)(T.Fragment,{})]}),(0,T.jsx)(xa,{children:(0,T.jsx)(Ie,{variant:"primary",size:"default",onClick:()=>s(!1),children:"\u0110\xF3ng"})})]})})]})};var kr=require("react/jsx-runtime"),Cp=({template:e,dataHeading:o,dataButtons:t,dataGiftList:a})=>{switch(e){case 1:return(0,kr.jsx)(Rr,{dataHeading:o,dataButtons:t,dataGiftList:a});default:return(0,kr.jsx)(Rr,{dataHeading:o,dataButtons:t,dataGiftList:a})}},Pl=({template:e=1,className:o,idSection:t,background:a,dataHeading:r,dataButtons:n,dataGiftList:s})=>(0,kr.jsx)(X,{idSection:t,className:o,background:a,children:Cp({template:e,dataHeading:r,dataButtons:n,dataGiftList:s})});var Tr=require("lucide-react");var ye=require("react/jsx-runtime");function Xi({current:e,total:o,onChange:t}){let a=r=>(0,ye.jsx)("li",{children:(0,ye.jsx)("button",{className:i(To({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,ye.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,ye.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,ye.jsx)("li",{children:(0,ye.jsx)("button",{className:i(To({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ye.jsx)(Tr.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):(0,ye.jsxs)(ye.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,ye.jsx)("li",{children:(0,ye.jsx)("button",{className:i(To({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,ye.jsx)("button",{className:i(To({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,ye.jsx)("li",{children:(0,ye.jsx)("button",{className:i(To({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ye.jsx)(Tr.ChevronRight,{className:"h-4 w-4"})})})]})})}var Cl=require("react"),Rl=require("@heroicons/react/24/outline"),kl=require("@heroicons/react/24/solid");var Ft=require("react/jsx-runtime"),Sr=(0,Cl.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...c},d)=>(0,Ft.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,Ft.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,Ft.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,Ft.jsxs)("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?(0,Ft.jsx)(kl.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Ft.jsx)(Rl.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Ft.jsx)("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,Ft.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 Ir=v(require("react"),1),Rp=1,kp=1e6;var Yi=0;function Tp(){return Yi=(Yi+1)%Number.MAX_SAFE_INTEGER,Yi.toString()}var Zi=new Map,Tl=e=>{if(Zi.has(e))return;let o=setTimeout(()=>{Zi.delete(e),Sa({type:"REMOVE_TOAST",toastId:e})},kp);Zi.set(e,o)},Sp=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Rp)};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?Tl(t):e.toasts.forEach(a=>{Tl(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}},Dr=[],Mr={toasts:[]};function Sa(e){Mr=Sp(Mr,e),Dr.forEach(o=>{o(Mr)})}function Ki({...e}){let o=Tp(),t=r=>Sa({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>Sa({type:"DISMISS_TOAST",toastId:o});return Sa({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function Ar(){let[e,o]=Ir.useState(Mr);return Ir.useEffect(()=>(Dr.push(o),()=>{let t=Dr.indexOf(o);t>-1&&Dr.splice(t,1)}),[e]),{...e,toast:Ki,dismiss:t=>Sa({type:"DISMISS_TOAST",toastId:t})}}var Eo=v(require("react"),1),uo=require("@heroicons/react/20/solid"),pe=v(require("@radix-ui/react-toast"),1),Sl=require("class-variance-authority");var Ge=require("react/jsx-runtime"),Dl=pe.Provider,Ji=Eo.forwardRef(({className:e,...o},t)=>(0,Ge.jsx)(pe.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}));Ji.displayName=pe.Viewport.displayName;var Dp=(0,Sl.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"}}),en=Eo.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>(0,Ge.jsxs)(pe.Root,{ref:r,className:i(Dp({variant:o}),e),...a,children:[(0,Ge.jsxs)("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&(0,Ge.jsx)(uo.CheckCircleIcon,{className:"h-5 w-5 text-green-500"}),o==="warning"&&(0,Ge.jsx)(uo.ExclamationTriangleIcon,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&(0,Ge.jsx)(uo.InformationCircleIcon,{className:"h-5 w-5 text-red-500"})]}),t]}));en.displayName=pe.Root.displayName;var tn=Eo.forwardRef(({className:e,...o},t)=>(0,Ge.jsx)(pe.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}));tn.displayName=pe.Action.displayName;var on=Eo.forwardRef(({className:e,...o},t)=>(0,Ge.jsx)(pe.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,Ge.jsx)(uo.XMarkIcon,{className:"h-5 w-5"})}));on.displayName=pe.Close.displayName;var an=Eo.forwardRef(({className:e,...o},t)=>(0,Ge.jsx)(pe.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));an.displayName=pe.Title.displayName;var rn=Eo.forwardRef(({className:e,...o},t)=>(0,Ge.jsx)(pe.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));rn.displayName=pe.Description.displayName;var ao=require("react/jsx-runtime");function Ml(){let{toasts:e}=Ar();return(0,ao.jsxs)(Dl,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return(0,ao.jsxs)(en,{...n,children:[(0,ao.jsxs)("div",{className:"grid gap-2",children:[t&&(0,ao.jsx)(an,{children:t}),a&&(0,ao.jsx)(rn,{children:a})]}),r,(0,ao.jsx)(on,{})]},o)}),(0,ao.jsx)(Ji,{})]})}var nn=v(require("react"),1),Je=v(require("@radix-ui/react-tooltip"),1);var mn=require("react/jsx-runtime"),Il=Je.Provider,Al=Je.Root,Ll=Je.Trigger,sn=nn.forwardRef((e,o)=>(0,mn.jsx)(Je.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));sn.displayName=Je.Arrow.displayName;var ln=nn.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>(0,mn.jsx)(Je.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}));ln.displayName=Je.Content.displayName;var vo=require("react"),ta=require("@heroicons/react/16/solid");var $e=require("react/jsx-runtime"),Lr=(0,vo.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:l,onChange:c,onFocus:
|
|
97
|
+
`})]}));var Ir=v(require("react"),1),Rp=1,kp=1e6;var Yi=0;function Tp(){return Yi=(Yi+1)%Number.MAX_SAFE_INTEGER,Yi.toString()}var Zi=new Map,Tl=e=>{if(Zi.has(e))return;let o=setTimeout(()=>{Zi.delete(e),Sa({type:"REMOVE_TOAST",toastId:e})},kp);Zi.set(e,o)},Sp=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Rp)};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?Tl(t):e.toasts.forEach(a=>{Tl(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}},Dr=[],Mr={toasts:[]};function Sa(e){Mr=Sp(Mr,e),Dr.forEach(o=>{o(Mr)})}function Ki({...e}){let o=Tp(),t=r=>Sa({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>Sa({type:"DISMISS_TOAST",toastId:o});return Sa({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function Ar(){let[e,o]=Ir.useState(Mr);return Ir.useEffect(()=>(Dr.push(o),()=>{let t=Dr.indexOf(o);t>-1&&Dr.splice(t,1)}),[e]),{...e,toast:Ki,dismiss:t=>Sa({type:"DISMISS_TOAST",toastId:t})}}var Eo=v(require("react"),1),uo=require("@heroicons/react/20/solid"),pe=v(require("@radix-ui/react-toast"),1),Sl=require("class-variance-authority");var Ge=require("react/jsx-runtime"),Dl=pe.Provider,Ji=Eo.forwardRef(({className:e,...o},t)=>(0,Ge.jsx)(pe.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}));Ji.displayName=pe.Viewport.displayName;var Dp=(0,Sl.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"}}),en=Eo.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>(0,Ge.jsxs)(pe.Root,{ref:r,className:i(Dp({variant:o}),e),...a,children:[(0,Ge.jsxs)("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&(0,Ge.jsx)(uo.CheckCircleIcon,{className:"h-5 w-5 text-green-500"}),o==="warning"&&(0,Ge.jsx)(uo.ExclamationTriangleIcon,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&(0,Ge.jsx)(uo.InformationCircleIcon,{className:"h-5 w-5 text-red-500"})]}),t]}));en.displayName=pe.Root.displayName;var tn=Eo.forwardRef(({className:e,...o},t)=>(0,Ge.jsx)(pe.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}));tn.displayName=pe.Action.displayName;var on=Eo.forwardRef(({className:e,...o},t)=>(0,Ge.jsx)(pe.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,Ge.jsx)(uo.XMarkIcon,{className:"h-5 w-5"})}));on.displayName=pe.Close.displayName;var an=Eo.forwardRef(({className:e,...o},t)=>(0,Ge.jsx)(pe.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));an.displayName=pe.Title.displayName;var rn=Eo.forwardRef(({className:e,...o},t)=>(0,Ge.jsx)(pe.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));rn.displayName=pe.Description.displayName;var ao=require("react/jsx-runtime");function Ml(){let{toasts:e}=Ar();return(0,ao.jsxs)(Dl,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return(0,ao.jsxs)(en,{...n,children:[(0,ao.jsxs)("div",{className:"grid gap-2",children:[t&&(0,ao.jsx)(an,{children:t}),a&&(0,ao.jsx)(rn,{children:a})]}),r,(0,ao.jsx)(on,{})]},o)}),(0,ao.jsx)(Ji,{})]})}var nn=v(require("react"),1),Je=v(require("@radix-ui/react-tooltip"),1);var mn=require("react/jsx-runtime"),Il=Je.Provider,Al=Je.Root,Ll=Je.Trigger,sn=nn.forwardRef((e,o)=>(0,mn.jsx)(Je.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));sn.displayName=Je.Arrow.displayName;var ln=nn.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>(0,mn.jsx)(Je.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}));ln.displayName=Je.Content.displayName;var vo=require("react"),ta=require("@heroicons/react/16/solid");var $e=require("react/jsx-runtime"),Lr=(0,vo.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:x="text",...R},A)=>{let[k,oe]=(0,vo.useState)(!1),B=(0,vo.useRef)(null),Y=W=>{W&&!k&&oe(!0),!W&&k&&oe(!1)},nt=W=>{s&&Y(W.target.value),c?.(W)},M=W=>{s&&Y(W.target.value),d?.(W)},Z=()=>{let W=B.current?.querySelector("input");W&&(p?.(W.value),W.value="",W.focus(),oe(!1))};return(0,vo.useEffect)(()=>{Y(u||f)},[f,u]),(0,$e.jsxs)("div",{className:i(r,o&&"mobase-text-input-error"),ref:B,children:[(0,$e.jsxs)("div",{className:"relative",children:[a&&(0,$e.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,$e.jsx)("input",{disabled:e,type:x,ref:A,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:nt,onFocus:M,value:f,defaultValue:u,...R}),s&&k&&(0,$e.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:Z,children:(0,$e.jsx)(ta.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,$e.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?(0,$e.jsx)(ta.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,$e.jsx)(ta.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,$e.jsx)("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),(0,$e.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 Fr=require("@heroicons/react/24/outline");var Er=require("react");var Ft=require("react/jsx-runtime"),cn=(0,Er.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:c=!1,...p},d)=>{let[f,u]=(0,Er.useState)(r),b=()=>{let T=Math.min(f+a,t);u(T),n?.(T),l?.(T)},R=()=>{let T=Math.max(f-a,o);u(T),n?.(T),s?.(T)},I=T=>{let B=parseFloat(T.target.value);if(!isNaN(B)){let K=Math.max(Math.min(B,t),o);u(K),n?.(K)}};return(0,Ft.jsxs)("div",{ref:d,className:i("flex items-center ",e),children:[(0,Ft.jsxs)(xe,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:R,disabled:c||f<=o,children:[(0,Ft.jsx)(Fr.MinusCircleIcon,{className:"w-7 h-7 "}),(0,Ft.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,Ft.jsx)("input",{type:"number",value:f,onChange:I,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,...p}),(0,Ft.jsxs)(xe,{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,Ft.jsx)(Fr.PlusCircleIcon,{className:"w-7 h-7 "}),(0,Ft.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});cn.displayName="Stepper";var ft=v(require("react"),1),le=v(require("@radix-ui/react-navigation-menu"),1),Fl=require("class-variance-authority"),El=require("@heroicons/react/16/solid");var je=require("react/jsx-runtime"),zl=ft.createContext(null),Mp=({value:e,children:o})=>(0,je.jsx)(zl.Provider,{value:e,children:o}),Ip=()=>{let e=ft.useContext(zl);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Da=ft.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>(0,je.jsx)(Mp,{value:{alignDropdown:t},children:(0,je.jsx)(le.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Da.displayName=le.Root.displayName;var Ma=ft.forwardRef(({className:e,...o},t)=>(0,je.jsx)(le.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ma.displayName=le.List.displayName;var Ia=le.Item,Aa=(0,Fl.cva)(lt({variant:"transparent",size:"sm"})),La=ft.forwardRef(({className:e,children:o,...t},a)=>(0,je.jsxs)(le.Trigger,{ref:a,className:i(Aa(),"group px-2",e),...t,children:[o," ",(0,je.jsx)(El.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));La.displayName=le.Trigger.displayName;var Fa=ft.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Ip();return(0,je.jsx)(le.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})});Fa.displayName=le.Content.displayName;var oa=le.Link,Ap=ft.forwardRef(({className:e,...o},t)=>(0,je.jsx)("div",{className:i("absolute left-0 top-full flex justify-center"),children:(0,je.jsx)(le.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})}));Ap.displayName=le.Viewport.displayName;var Lp=ft.forwardRef(({className:e,...o},t)=>(0,je.jsx)(le.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,je.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Lp.displayName=le.Indicator.displayName;var Hl=v(require("react"),1),Ea=v(require("@radix-ui/react-switch"),1);var dn=require("react/jsx-runtime"),za=Hl.forwardRef(({className:e,...o},t)=>(0,dn.jsx)(Ea.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,dn.jsx)(Ea.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")})}));za.displayName=Ea.Root.displayName;var zo=v(require("react"),1),ho=v(require("@radix-ui/react-radio-group"),1),_l=require("lucide-react"),pn=require("class-variance-authority");var aa=require("react/jsx-runtime"),Fp=(0,pn.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"}}),Ep=(0,pn.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Bl=zo.createContext({size:"medium"});function zp(){let e=zo.useContext(Bl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var fn=zo.forwardRef(({className:e,size:o,...t},a)=>(0,aa.jsx)(Bl.Provider,{value:{size:o},children:(0,aa.jsx)(ho.Root,{className:i("grid gap-2",e),...t,ref:a})}));fn.displayName=ho.Root.displayName;var gn=zo.forwardRef(({className:e,...o},t)=>{let a=zp(),{size:r}=a??{};return(0,aa.jsx)(ho.Item,{ref:t,className:i(Fp({size:r}),e),...o,children:(0,aa.jsx)(ho.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,aa.jsx)(_l.Circle,{className:i(Ep({size:r}))})})})});gn.displayName=ho.Item.displayName;var Ul=require("react"),ql=require("@heroicons/react/16/solid"),Xl=v(require("html-react-parser"),1);var Ha=require("react"),zt=require("motion/react"),Gl=require("react-use");var zr=[.24,.25,.05,1];var Vl=require("motion/react");var ro=require("react/jsx-runtime"),Hp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ro.jsx)("li",{className:"min-h-8",children:(0,ro.jsxs)("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&(0,ro.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,ro.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,ro.jsxs)("div",{className:" ",children:[(0,ro.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,ro.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ol=Hp;var Et=require("react/jsx-runtime"),_p={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:zr}},exit:{opacity:0,transition:{duration:.05}}},Bp=({data:e})=>(0,Et.jsx)(Nt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Et.jsx)(Vl.motion.div,{variants:_p,children:o.hasDropdown?(0,Et.jsxs)(wt,{value:o.id,children:[(0,Et.jsx)(Pt,{className:"py-3",children:o.title}),(0,Et.jsx)(Ct,{children:(0,Et.jsx)("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,Et.jsx)(Ol,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,Et.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)})}),Wl=Bp;var P=require("react/jsx-runtime"),Op=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Vp=({data:e,className:o})=>{let[t,a]=(0,Ha.useState)(!1),[r,n]=(0,Ha.useState)(!1);(0,Gl.useKey)("Escape",()=>a(!1)),(0,Ha.useEffect)(()=>{if(!t)return;let c=Op();function p(){a(!1)}function d(){a(!1),n(!0)}function f(I){let T=I.target;((T.closest&&T.closest("a"))?.getAttribute("href")||T.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let u=()=>{p()},b=history.pushState,R=history.replaceState;return history.pushState=((...I)=>{let T=b.apply(history,I);return u(),T}),history.replaceState=((...I)=>{let T=R.apply(history,I);return u(),T}),window.addEventListener("popstate",u),window.addEventListener("hashchange",d),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=R,window.removeEventListener("popstate",u),window.removeEventListener("hashchange",d),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:zr}},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)(zt.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)(zt.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)(zt.LazyMotion,{features:zt.domAnimation,children:(0,P.jsx)(zt.AnimatePresence,{mode:"wait",children:t&&(0,P.jsxs)(zt.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)(Wl,{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:${Qt.Support.Hotline}`,className:"text-gray-600",children:Qt.Support.Hotline_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsx)("a",{href:`mailto:${Qt.Support.Email}`,className:"text-gray-600",children:Qt.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 Fr=require("@heroicons/react/24/outline");var Er=require("react");var Et=require("react/jsx-runtime"),cn=(0,Er.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,Er.useState)(r),x=()=>{let k=Math.min(f+a,t);u(k),n?.(k),l?.(k)},R=()=>{let k=Math.max(f-a,o);u(k),n?.(k),s?.(k)},A=k=>{let oe=parseFloat(k.target.value);if(!isNaN(oe)){let B=Math.max(Math.min(oe,t),o);u(B),n?.(B)}};return(0,Et.jsxs)("div",{ref:p,className:i("flex items-center ",e),children:[(0,Et.jsxs)(xe,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:R,disabled:c||f<=o,children:[(0,Et.jsx)(Fr.MinusCircleIcon,{className:"w-7 h-7 "}),(0,Et.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,Et.jsx)("input",{type:"number",value:f,onChange:A,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,Et.jsxs)(xe,{className:i(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:x,disabled:c||f>=t,children:[(0,Et.jsx)(Fr.PlusCircleIcon,{className:"w-7 h-7 "}),(0,Et.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});cn.displayName="Stepper";var gt=v(require("react"),1),le=v(require("@radix-ui/react-navigation-menu"),1),Fl=require("class-variance-authority"),El=require("@heroicons/react/16/solid");var je=require("react/jsx-runtime"),zl=gt.createContext(null),Mp=({value:e,children:o})=>(0,je.jsx)(zl.Provider,{value:e,children:o}),Ip=()=>{let e=gt.useContext(zl);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Da=gt.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>(0,je.jsx)(Mp,{value:{alignDropdown:t},children:(0,je.jsx)(le.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Da.displayName=le.Root.displayName;var Ma=gt.forwardRef(({className:e,...o},t)=>(0,je.jsx)(le.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ma.displayName=le.List.displayName;var Ia=le.Item,Aa=(0,Fl.cva)(mt({variant:"transparent",size:"sm"})),La=gt.forwardRef(({className:e,children:o,...t},a)=>(0,je.jsxs)(le.Trigger,{ref:a,className:i(Aa(),"group px-2",e),...t,children:[o," ",(0,je.jsx)(El.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));La.displayName=le.Trigger.displayName;var Fa=gt.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Ip();return(0,je.jsx)(le.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})});Fa.displayName=le.Content.displayName;var oa=le.Link,Ap=gt.forwardRef(({className:e,...o},t)=>(0,je.jsx)("div",{className:i("absolute left-0 top-full flex justify-center"),children:(0,je.jsx)(le.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})}));Ap.displayName=le.Viewport.displayName;var Lp=gt.forwardRef(({className:e,...o},t)=>(0,je.jsx)(le.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,je.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Lp.displayName=le.Indicator.displayName;var Hl=v(require("react"),1),Ea=v(require("@radix-ui/react-switch"),1);var dn=require("react/jsx-runtime"),za=Hl.forwardRef(({className:e,...o},t)=>(0,dn.jsx)(Ea.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,dn.jsx)(Ea.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")})}));za.displayName=Ea.Root.displayName;var zo=v(require("react"),1),ho=v(require("@radix-ui/react-radio-group"),1),_l=require("lucide-react"),pn=require("class-variance-authority");var aa=require("react/jsx-runtime"),Fp=(0,pn.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"}}),Ep=(0,pn.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Bl=zo.createContext({size:"medium"});function zp(){let e=zo.useContext(Bl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var fn=zo.forwardRef(({className:e,size:o,...t},a)=>(0,aa.jsx)(Bl.Provider,{value:{size:o},children:(0,aa.jsx)(ho.Root,{className:i("grid gap-2",e),...t,ref:a})}));fn.displayName=ho.Root.displayName;var gn=zo.forwardRef(({className:e,...o},t)=>{let a=zp(),{size:r}=a??{};return(0,aa.jsx)(ho.Item,{ref:t,className:i(Fp({size:r}),e),...o,children:(0,aa.jsx)(ho.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,aa.jsx)(_l.Circle,{className:i(Ep({size:r}))})})})});gn.displayName=ho.Item.displayName;var Ul=require("react"),ql=require("@heroicons/react/16/solid"),Xl=v(require("html-react-parser"),1);var Ha=require("react"),Ht=require("motion/react"),Gl=require("react-use");var zr=[.24,.25,.05,1];var Vl=require("motion/react");var ro=require("react/jsx-runtime"),Hp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ro.jsx)("li",{className:"min-h-8",children:(0,ro.jsxs)("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&(0,ro.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,ro.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,ro.jsxs)("div",{className:" ",children:[(0,ro.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,ro.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ol=Hp;var zt=require("react/jsx-runtime"),_p={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:zr}},exit:{opacity:0,transition:{duration:.05}}},Bp=({data:e})=>(0,zt.jsx)(wt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,zt.jsx)(Vl.motion.div,{variants:_p,children:o.hasDropdown?(0,zt.jsxs)(Pt,{value:o.id,children:[(0,zt.jsx)(Ct,{className:"py-3",children:o.title}),(0,zt.jsx)(Rt,{children:(0,zt.jsx)("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,zt.jsx)(Ol,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,zt.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)})}),Wl=Bp;var P=require("react/jsx-runtime"),Op=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Vp=({data:e,className:o})=>{let[t,a]=(0,Ha.useState)(!1),[r,n]=(0,Ha.useState)(!1);(0,Gl.useKey)("Escape",()=>a(!1)),(0,Ha.useEffect)(()=>{if(!t)return;let c=Op();function d(){a(!1)}function p(){a(!1),n(!0)}function f(A){let k=A.target;((k.closest&&k.closest("a"))?.getAttribute("href")||k.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let u=()=>{d()},x=history.pushState,R=history.replaceState;return history.pushState=((...A)=>{let k=x.apply(history,A);return u(),k}),history.replaceState=((...A)=>{let k=R.apply(history,A);return u(),k}),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=x,history.replaceState=R,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:zr}},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)(Ht.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)(Ht.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)(Ht.LazyMotion,{features:Ht.domAnimation,children:(0,P.jsx)(Ht.AnimatePresence,{mode:"wait",children:t&&(0,P.jsxs)(Ht.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)(Wl,{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:${Qt.Support.Hotline}`,className:"text-gray-600",children:Qt.Support.Hotline_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsx)("a",{href:`mailto:${Qt.Support.Email}`,className:"text-gray-600",children:Qt.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:${Qt.Business.Phome}`,children:Qt.Business.Phome_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsxs)("a",{href:`mailto:${Qt.Business.Email}`,className:"text-gray-600",children:[" ",Qt.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"})]})})]})]})})})]})},$l=Vp;var
|
|
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:${Qt.Business.Phome}`,children:Qt.Business.Phome_Format})]}),(0,P.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,P.jsxs)("a",{href:`mailto:${Qt.Business.Email}`,className:"text-gray-600",children:[" ",Qt.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"})]})})]})]})})})]})},$l=Vp;var _t=require("react/jsx-runtime"),Wp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,_t.jsx)("li",{className:"",children:(0,_t.jsx)(oa,{asChild:!0,children:(0,_t.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,_t.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,_t.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,_t.jsxs)("div",{className:" ",children:[(0,_t.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,_t.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},jl=Wp;var ut=require("react/jsx-runtime"),Gp=({data:e,alignDropdown:o})=>(0,ut.jsx)(Da,{alignDropdown:o,children:(0,ut.jsx)(Ma,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,ut.jsxs)(Ia,{className:"relative",children:[(0,ut.jsx)(La,{children:t.title}),(0,ut.jsx)(Fa,{children:(0,ut.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,ut.jsx)(jl,{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,ut.jsx)(Ia,{className:"relative",children:(0,ut.jsx)(oa,{href:t.url,className:Aa(),...a,children:t.title})},t.id)})})}),Ql=Gp;var re=require("react/jsx-runtime"),un=({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,Ul.useState)(!1);return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)("div",{className:i(e,"z-40 w-full flex-none lg:z-50",n?"sticky top-0":"relative"),children:[(0,re.jsx)("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,re.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,re.jsxs)("div",{className:"relative flex items-center",children:[l&&(0,re.jsxs)("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[(0,re.jsx)("span",{className:"sr-only",children:"MoMo - \u1EE8ng d\u1EE5ng t\xE0i ch\xEDnh"}),(0,re.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&(0,re.jsxs)("a",{href: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,re.jsx)("img",{src:c,className:"h-9",alt:"MoMo"}),(0,re.jsx)("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:d&&(0,Xl.default)(d)})]}),(0,re.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,re.jsx)(Ql,{data:o,alignDropdown:s})}),(0,re.jsxs)("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&"lg:ml-0"),children:[r&&r,a&&(0,re.jsxs)("div",{className:"hidden sm:flex",children:[(0,re.jsxs)(Ie,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>u(!0),children:[" ",(0,re.jsx)(ql.ArrowDownTrayIcon,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),(0,re.jsx)(fo,{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,re.jsx)($l,{data:o,className:"lg:hidden"})]})]})})]}),(0,re.jsx)("style",{children:`
|
|
125
125
|
html {
|
|
126
126
|
scroll-behavior: smooth;
|
|
127
127
|
}
|
|
@@ -133,14 +133,14 @@
|
|
|
133
133
|
footer .button-download {
|
|
134
134
|
max-width: 150px;
|
|
135
135
|
}
|
|
136
|
-
`})]})},Kl=$p;var vn=require("react/jsx-runtime"),Jl=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,vn.jsx)("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,vn.jsx)(Kl,{primaryMenu:o,secondaryMenu:t})});var Ho=v(require("react"),1);var _o=require("react/jsx-runtime"),hn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));hn.displayName="Card";var xn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));xn.displayName="CardHeader";var bn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));bn.displayName="CardTitle";var yn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));yn.displayName="CardDescription";var Nn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("div",{ref:t,className:i("p-6 pt-0",e),...o}));Nn.displayName="CardContent";var wn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));wn.displayName="CardFooter";var et=v(require("react"),1),Le=require("cmdk");var Hr=require("@heroicons/react/16/solid"),Te=require("react/jsx-runtime"),_r=et.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Le.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}));_r.displayName=Le.Command.displayName;var em=({children:e,...o})=>(0,Te.jsx)(ze,{...o,children:(0,Te.jsx)(Ae,{className:"overflow-hidden p-0 shadow-lg",children:(0,Te.jsx)(_r,{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})})}),Pn=et.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=et.useRef(null),[s,l]=et.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)(Hr.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,Te.jsx)(Le.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)(Hr.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")})]})});Pn.displayName=Le.Command.Input.displayName;var Cn=et.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Le.Command.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Cn.displayName=Le.Command.List.displayName;var Rn=et.forwardRef((e,o)=>(0,Te.jsx)(Le.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Rn.displayName=Le.Command.Empty.displayName;var kn=et.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Le.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}));kn.displayName=Le.Command.Group.displayName;var Tn=et.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Le.Command.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Tn.displayName=Le.Command.Separator.displayName;var Sn=et.forwardRef(({className:e,children:o,...t},a)=>(0,Te.jsx)(Le.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}));Sn.displayName=Le.Command.Item.displayName;var Dn=({className:e,...o})=>(0,Te.jsx)("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Dn.displayName="CommandShortcut";var tm=require("@heroicons/react/16/solid");var xo=require("react/jsx-runtime"),om=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>(0,xo.jsxs)("div",{className:"relative",children:[(0,xo.jsxs)(Zo,{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,xo.jsx)(tm.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&(0,xo.jsx)("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),am=({children:e,className:o,...t})=>(0,xo.jsx)(Io,{className:i("border-none !p-0",o),...t,children:e}),rm=({open:e,onOpenChange:o,children:t,...a})=>(0,xo.jsx)(Yo,{open:e,onOpenChange:o,...a,children:t});var im=require("react"),nm=require("@heroicons/react/24/outline"),Mn=require("class-variance-authority"),sm=v(require("html-react-parser"),1);var Bo=require("react/jsx-runtime"),jp=(0,Mn.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"}}),Qp=(0,Mn.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"}}),ra=(0,im.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...c},
|
|
136
|
+
`})]})},Kl=$p;var vn=require("react/jsx-runtime"),Jl=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,vn.jsx)("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,vn.jsx)(Kl,{primaryMenu:o,secondaryMenu:t})});var Ho=v(require("react"),1);var _o=require("react/jsx-runtime"),hn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));hn.displayName="Card";var xn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));xn.displayName="CardHeader";var bn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));bn.displayName="CardTitle";var yn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));yn.displayName="CardDescription";var Nn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("div",{ref:t,className:i("p-6 pt-0",e),...o}));Nn.displayName="CardContent";var wn=Ho.forwardRef(({className:e,...o},t)=>(0,_o.jsx)("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));wn.displayName="CardFooter";var et=v(require("react"),1),Le=require("cmdk");var Hr=require("@heroicons/react/16/solid"),Te=require("react/jsx-runtime"),_r=et.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Le.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}));_r.displayName=Le.Command.displayName;var em=({children:e,...o})=>(0,Te.jsx)(ze,{...o,children:(0,Te.jsx)(Ae,{className:"overflow-hidden p-0 shadow-lg",children:(0,Te.jsx)(_r,{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})})}),Pn=et.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=et.useRef(null),[s,l]=et.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)(Hr.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,Te.jsx)(Le.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)(Hr.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")})]})});Pn.displayName=Le.Command.Input.displayName;var Cn=et.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Le.Command.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Cn.displayName=Le.Command.List.displayName;var Rn=et.forwardRef((e,o)=>(0,Te.jsx)(Le.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Rn.displayName=Le.Command.Empty.displayName;var kn=et.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Le.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}));kn.displayName=Le.Command.Group.displayName;var Tn=et.forwardRef(({className:e,...o},t)=>(0,Te.jsx)(Le.Command.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Tn.displayName=Le.Command.Separator.displayName;var Sn=et.forwardRef(({className:e,children:o,...t},a)=>(0,Te.jsx)(Le.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}));Sn.displayName=Le.Command.Item.displayName;var Dn=({className:e,...o})=>(0,Te.jsx)("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Dn.displayName="CommandShortcut";var tm=require("@heroicons/react/16/solid");var xo=require("react/jsx-runtime"),om=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>(0,xo.jsxs)("div",{className:"relative",children:[(0,xo.jsxs)(Zo,{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,xo.jsx)(tm.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&(0,xo.jsx)("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),am=({children:e,className:o,...t})=>(0,xo.jsx)(Io,{className:i("border-none !p-0",o),...t,children:e}),rm=({open:e,onOpenChange:o,children:t,...a})=>(0,xo.jsx)(Yo,{open:e,onOpenChange:o,...a,children:t});var im=require("react"),nm=require("@heroicons/react/24/outline"),Mn=require("class-variance-authority"),sm=v(require("html-react-parser"),1);var Bo=require("react/jsx-runtime"),jp=(0,Mn.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"}}),Qp=(0,Mn.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"}}),ra=(0,im.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...c},d)=>(0,Bo.jsxs)("div",{ref:d,className:i("",r,jp({typeDiv:e,disabled:n})),...c,children:[(0,Bo.jsxs)("div",{className:"flex items-center space-x-2",children:[l||(0,Bo.jsx)(nm.InformationCircleIcon,{className:i(Qp({typeIcon:e,disabled:n})),width:20,height:20}),o&&(0,Bo.jsx)("div",{children:(0,sm.default)(o)})]}),t&&(0,Bo.jsx)(ve,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));var bo=require("react"),lm=require("@heroicons/react/20/solid"),mm=require("@heroicons/react/24/outline");var Bt=require("react/jsx-runtime"),cm=(0,bo.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,x]=(0,bo.useState)(!1),R=(0,bo.useRef)(null),A=Y=>{Y&&!u&&x(!0),!Y&&u&&x(!1)},k=Y=>{A(Y.target.value),r?.(Y)},oe=Y=>{A(Y.target.value),n?.(Y)},B=()=>{let Y=R.current?.querySelector("input");Y&&(s?.(Y.value),Y.value="",Y.focus(),x(!1))};return(0,bo.useEffect)(()=>{A(c||l)},[l,c]),(0,Bt.jsxs)("div",{className:i(o),ref:R,children:[(0,Bt.jsxs)("div",{className:"relative flex items-center",children:[(0,Bt.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,Bt.jsx)(lm.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,Bt.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:k,onFocus:oe,value:l,defaultValue:c,...p}),u&&(0,Bt.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:B,children:(0,Bt.jsx)(mm.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,Bt.jsx)("style",{children:`
|
|
137
137
|
.mobase-text-input-box:hover {
|
|
138
138
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
139
139
|
}
|
|
140
140
|
.mobase-text-input-box:focus {
|
|
141
141
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
|
|
142
142
|
}
|
|
143
|
-
`})]})});var Qe=v(require("@radix-ui/react-dialog"),1),tt=v(require("react"),1);var dm=require("lucide-react"),pm=v(require("lodash"),1);var q=require("react/jsx-runtime"),fm=tt.default.createContext(void 0);function gm(){let e=(0,tt.useContext)(fm);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Br=({children:e,open:o,onOpenChange:t,className:a})=>(0,q.jsx)(fm.Provider,{value:{open:o,onOpenChange:t},children:(0,q.jsx)(Qe.Root,{open:o,onOpenChange:t,children:(0,q.jsx)("div",{className:i("lightbox-gallery",a),children:e})})}),um=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=gm(),c=()=>{n?.(),l&&l(!0)};return(0,q.jsxs)(Qe.Trigger,{className:i("",a),onClick:c,children:[e,(0,q.jsx)($,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,q.jsx)("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},vm=tt.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=gm(),n=()=>{r&&r(!1)};return(0,q.jsxs)(Qe.Portal,{children:[(0,q.jsx)(Qe.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,q.jsxs)(Qe.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,q.jsxs)(Qe.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,q.jsx)(dm.X,{className:"h-4 w-4 mt-0.5"}),(0,q.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});vm.displayName=Qe.Content.displayName;var Or=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=(0,tt.useState)(""),[l,c]=(0,tt.useState)(),[p
|
|
143
|
+
`})]})});var Qe=v(require("@radix-ui/react-dialog"),1),tt=v(require("react"),1);var dm=require("lucide-react"),pm=v(require("lodash"),1);var q=require("react/jsx-runtime"),fm=tt.default.createContext(void 0);function gm(){let e=(0,tt.useContext)(fm);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Br=({children:e,open:o,onOpenChange:t,className:a})=>(0,q.jsx)(fm.Provider,{value:{open:o,onOpenChange:t},children:(0,q.jsx)(Qe.Root,{open:o,onOpenChange:t,children:(0,q.jsx)("div",{className:i("lightbox-gallery",a),children:e})})}),um=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=gm(),c=()=>{n?.(),l&&l(!0)};return(0,q.jsxs)(Qe.Trigger,{className:i("",a),onClick:c,children:[e,(0,q.jsx)($,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,q.jsx)("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},vm=tt.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=gm(),n=()=>{r&&r(!1)};return(0,q.jsxs)(Qe.Portal,{children:[(0,q.jsx)(Qe.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,q.jsxs)(Qe.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,q.jsxs)(Qe.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,q.jsx)(dm.X,{className:"h-4 w-4 mt-0.5"}),(0,q.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});vm.displayName=Qe.Content.displayName;var Or=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=(0,tt.useState)(""),[l,c]=(0,tt.useState)(),[d,p]=(0,tt.useState)(0);(0,tt.useEffect)(()=>{l&&(p(l.selectedScrollSnap()+1),l.on("select",()=>{p(l.selectedScrollSnap()+1)}))},[l]);let f=u=>{let x=pm.default.filter(e,(A,k)=>k===(u>0?u-1:u)),R=x.length>0?x[0]?.titleImage:"";s(R)};return(0,tt.useEffect)(()=>{f(d)},[d]),(0,q.jsxs)(vm,{className:"flex py-0",children:[(0,q.jsxs)("div",{className:" flex-1 relative",children:[(0,q.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[d||1," / ",e?.length]}),(0,q.jsxs)(Re,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[(0,q.jsx)(ke,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,x)=>(0,q.jsx)(Pe,{className:"pl-6 md:pl-4",children:(0,q.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,q.jsx)("div",{className:"flex-1 relative",children:(0,q.jsx)("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,q.jsx)("div",{className:"flex-0",children:(0,q.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,q.jsx)("div",{className:"line-clamp-3",children:n})})})]})},x))}),(0,q.jsx)(So,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,q.jsx)(Do,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&(0,q.jsx)("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};var yo=v(require("react"),1),hm=require("@heroicons/react/16/solid"),_a=v(require("@radix-ui/react-checkbox"),1),No=v(require("@radix-ui/react-radio-group"),1),xm=require("lucide-react");var Be=require("react/jsx-runtime"),bm=yo.createContext({hideIndicator:!1});function Up(){let e=yo.useContext(bm);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ba=yo.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,Be.jsx)(bm.Provider,{value:{hideIndicator:o},children:(0,Be.jsx)(No.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Ba.displayName=No.Root.displayName;var Oa=yo.forwardRef(({className:e,children:o,...t},a)=>{let r=Up(),{hideIndicator:n}=r??{};return(0,Be.jsxs)(No.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,Be.jsx)("div",{className:"min-w-0 flex-1",children:o}),!n&&(0,Be.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,Be.jsx)(No.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:(0,Be.jsx)(xm.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Oa.displayName=No.Item.displayName;var In=yo.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>(0,Be.jsxs)(_a.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,Be.jsx)("div",{className:"min-w-0 flex-1",children:o}),!t&&(0,Be.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,Be.jsx)(_a.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,Be.jsx)(hm.CheckIcon,{className:"h-4 w-4"})})})]}));In.displayName=_a.Root.displayName;var ym=require("class-variance-authority");var wm=require("react/jsx-runtime"),An=(0,ym.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 Nm({className:e,variant:o,...t}){return(0,wm.jsx)("div",{className:i(An({variant:o}),e),...t})}var Pm=v(require("react"),1),Va=v(require("@radix-ui/react-progress"),1),Fn=require("class-variance-authority");var Ln=require("react/jsx-runtime"),qp=(0,Fn.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"}}),Xp=(0,Fn.cva)("relative h-4 w-full overflow-hidden rounded-full bg-gray-200",{variants:{size:{small:"h-[6px]",medium:"h-2",large:"h-[10px]"}},defaultVariants:{size:"medium"}}),En=Pm.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>(0,Ln.jsx)(Va.Root,{ref:s,className:i("",Xp({size:a}),e),...n,children:(0,Ln.jsx)(Va.Indicator,{className:i("",qp({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));En.displayName=Va.Root.displayName;var Cm=require("react/jsx-runtime");function Wa({className:e,...o}){return(0,Cm.jsx)("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}var Ue=require("react/jsx-runtime");function Vr({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,Ue.jsx)("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return(0,Ue.jsxs)("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,c)=>(0,Ue.jsx)("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),(0,Ue.jsx)("style",{children:`
|
|
144
144
|
.spinner_dots span {
|
|
145
145
|
animation-name: spinner-dots;
|
|
146
146
|
animation-duration: 1.4s;
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
opacity: 0.15;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
`})]})}})()})}var Rm=v(require("react"),1),Bt=v(require("@radix-ui/react-slider"),1);var ut=require("react/jsx-runtime"),zn=Rm.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>(0,ut.jsxs)(Bt.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,ut.jsx)(Bt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,ut.jsx)(Bt.Range,{className:"absolute h-full bg-pink-500"})}),(0,ut.jsx)(Bt.Thumb,{className:"group relative",children:(0,ut.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,ut.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,ut.jsx)(Bt.Thumb,{className:"group relative",children:(0,ut.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,ut.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})})})]}));zn.displayName=Bt.Root.displayName;var Lm=require("react");var fe=require("react/jsx-runtime"),Yp=({author:e=""})=>(0,fe.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Zp=({author:e,avatar:o})=>(0,fe.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,fe.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,fe.jsx)(Yp,{author:e})});function Kp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,fe.jsx)(Zp,{avatar:e,author:o}),(0,fe.jsxs)("div",{className:"flex flex-col",children:[o&&(0,fe.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,fe.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,fe.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,fe.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,fe.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,fe.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&(0,fe.jsx)("div",{className:"absolute right-1 top-0",children:(0,fe.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var km=Kp;var _n=require("react");var Tm=require("@heroicons/react/20/solid"),ia=require("react/jsx-runtime"),Jp={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!"},ef={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 tf({point:e,max:o,className:t}){let a=o>5?Jp[e||10]:ef[e||5];return(0,ia.jsxs)("div",{className:i("flex items-center space-x-1",t),children:[(0,ia.jsx)(Tm.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,ia.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,ia.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Sm=tf;var Dm=require("react"),Hn=v(require("html-react-parser"),1);var Gr=require("react/jsx-runtime"),Wr=({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,Dm.useState)(!0),c=()=>{l(!s)},p=(d,f,u=" ")=>d.length<=f?d:d.substring(0,d.lastIndexOf(u,f));return(0,Gr.jsxs)("div",{className:i(n),children:[s?(0,Hn.default)(p(e,o)):(0,Hn.default)(e),e.length>o&&(0,Gr.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 vt=require("react/jsx-runtime");function of({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=(0,_n.useState)(0),[c,p]=(0,_n.useState)(!1),d=f=>{p(!0),l(f)};return(0,vt.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&(0,vt.jsx)(Sm,{className:"mb-0.5",point:r.point,max:r.max}),e&&(0,vt.jsx)(Wr,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,vt.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(f=>(0,vt.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,vt.jsxs)(Br,{open:c,onOpenChange:p,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,vt.jsx)($,{onClick:()=>d(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,vt.jsx)("img",{src:f.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),(0,vt.jsx)(Or,{activeSlideIndex:s,images:o?.map((f,u)=>({url:f.url,titleImage:f.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Mm=of;var Am=require("react/jsx-runtime");function af({actions:e=[]}){return(0,Am.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Im=af;var Oo=require("react/jsx-runtime"),Fm=(0,Lm.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:l=[],statusMessage:c,isReply:p,children:d,commentSideBar:f,isOutStanding:u,limitContent:b=260},R)=>(0,Oo.jsxs)("div",{ref:R,className:i("",p?"ml-4 py-4":"py-5"),children:[(0,Oo.jsx)(km,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),(0,Oo.jsx)(Mm,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:f,limitContent:b}),l&&l?.filter(Boolean)?.length>0&&(0,Oo.jsx)(Im,{actions:l.filter(Boolean)}),d&&(0,Oo.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:d})]}));var wo=v(require("react"),1),Em=require("class-variance-authority");var zm=require("@heroicons/react/16/solid"),Hm=require("lucide-react"),ge=require("react/jsx-runtime"),rf=(0,Em.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"}}),_m=wo.createContext("default");function nf(){let e=wo.useContext(_m);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var sf=wo.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,ge.jsx)(Hm.XIcon,{className:s}):(0,ge.jsxs)("div",{children:[e==="iconStep"&&(0,ge.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,ge.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,ge.jsx)(zm.CheckIcon,{className:s}):(0,ge.jsx)("div",{children:t}))]})}),Bm=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=wo.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,ge.jsx)("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Om=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:l,fristStep:c,icon:p,isError:d,onValueChangeStep:f,...u})=>{let b=nf();return(0,ge.jsxs)("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[(0,ge.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,ge.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,ge.jsx)("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",rf({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...u,children:(0,ge.jsx)(sf,{type:b,icon:p,stepNumber:e,size:t,isError:d,state:o})}),(0,ge.jsx)("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,ge.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,ge.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,ge.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Vm=({children:e,className:o,type:t="numberStep",...a})=>(0,ge.jsx)(_m.Provider,{value:t,children:(0,ge.jsx)("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});var Oe=v(require("react"),1),jm=require("@radix-ui/react-slot"),na=require("react-hook-form");var Wm=v(require("react"),1),Bn=v(require("@radix-ui/react-label"),1),Gm=require("class-variance-authority");var $m=require("react/jsx-runtime"),lf=(0,Gm.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),$r=Wm.forwardRef(({className:e,...o},t)=>(0,$m.jsx)(Bn.Root,{ref:t,className:i(lf(),e),...o}));$r.displayName=Bn.Root.displayName;var io=require("react/jsx-runtime"),jr=na.FormProvider,Qm=Oe.createContext({}),Qr=({...e})=>(0,io.jsx)(Qm.Provider,{value:{name:e.name},children:(0,io.jsx)(na.Controller,{...e})}),sa=()=>{let e=Oe.useContext(Qm),o=Oe.useContext(Um),{getFieldState:t,formState:a}=(0,na.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}},Um=Oe.createContext({}),Ga=Oe.forwardRef(({className:e,...o},t)=>{let a=Oe.useId();return(0,io.jsx)(Um.Provider,{value:{id:a},children:(0,io.jsx)("div",{ref:t,className:i("space-y-2",e),...o})})});Ga.displayName="FormItem";var $a=Oe.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=sa();return(0,io.jsx)($r,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});$a.displayName="FormLabel";var ja=Oe.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=sa();return(0,io.jsx)(jm.Slot,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});ja.displayName="FormControl";var Qa=Oe.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=sa();return(0,io.jsx)("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});Qa.displayName="FormDescription";var Ua=Oe.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=sa(),s=r?String(r?.message):o;return s?(0,io.jsx)("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});Ua.displayName="FormMessage";var no=v(require("react"),1),A=v(require("@radix-ui/react-dropdown-menu"),1),Ur=require("lucide-react");var me=require("react/jsx-runtime"),qm=A.Root,Xm=A.Trigger,Ym=A.Group,Zm=A.Portal,Km=A.Sub,Jm=A.RadioGroup,On=no.forwardRef(({className:e,inset:o,children:t,...a},r)=>(0,me.jsxs)(A.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,me.jsx)(Ur.ChevronRight,{className:"ml-auto"})]}));On.displayName=A.SubTrigger.displayName;var Vn=no.forwardRef(({className:e,...o},t)=>(0,me.jsx)(A.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}));Vn.displayName=A.SubContent.displayName;var Wn=no.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,me.jsx)(A.Portal,{children:(0,me.jsx)(A.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})}));Wn.displayName=A.Content.displayName;var Gn=no.forwardRef(({className:e,inset:o,...t},a)=>(0,me.jsx)(A.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}));Gn.displayName=A.Item.displayName;var $n=no.forwardRef(({className:e,children:o,checked:t,...a},r)=>(0,me.jsxs)(A.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,me.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,me.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,me.jsx)(A.ItemIndicator,{children:(0,me.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,me.jsx)(Ur.Check,{size:16,strokeWidth:3})})})]}),o]}));$n.displayName=A.CheckboxItem.displayName;var jn=no.forwardRef(({className:e,children:o,...t},a)=>(0,me.jsxs)(A.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,me.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,me.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,me.jsx)(A.ItemIndicator,{children:(0,me.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));jn.displayName=A.RadioItem.displayName;var Qn=no.forwardRef(({className:e,inset:o,...t},a)=>(0,me.jsx)(A.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Qn.displayName=A.Label.displayName;var Un=no.forwardRef(({className:e,...o},t)=>(0,me.jsx)(A.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));Un.displayName=A.Separator.displayName;var qn=({className:e,...o})=>(0,me.jsx)("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});qn.displayName="DropdownMenuShortcut";var oc=require("@radix-ui/react-slot"),Po=v(require("html-react-parser"),1);var ec=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};var C=require("react/jsx-runtime"),tc=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,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,Po.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,Po.default)(a.description)})]})]})},r))}),t&&(0,C.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),mf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,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)($,{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,Po.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,Po.default)(a.description)})]})]},r))}),t&&(0,C.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),cf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&(0,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"?ec(a.image)?(0,C.jsx)("img",{src:a.image,className:"block object-cover"}):(0,C.jsx)(oc.Slot,{className:"h-6 w-6 stroke-white stroke-2",children:(0,Po.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,Po.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,Po.default)(a.description)})]})]},r))}),t&&(0,C.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),df=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,C.jsx)(tc,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,C.jsx)(mf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return(0,C.jsx)(cf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,C.jsx)(tc,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},pf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,C.jsx)(C.Fragment,{children:df({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),ac=({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)(pf,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});var rc=require("class-variance-authority"),Xn=v(require("html-react-parser"),1),Yn=require("lucide-react");var ne=require("react/jsx-runtime"),ff=(0,rc.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}}),gf=({template:e,name:o,image:t,isFeatures:a})=>(0,ne.jsx)(ne.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,ne.jsx)(ne.Fragment,{children:(0,ne.jsxs)("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?(0,ne.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,ne.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,ne.jsx)("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:(0,ne.jsx)(Yn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,ne.jsx)("div",{className:"ml-2 ",children:(0,Xn.default)(o)})]})});case 3:return(0,ne.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,ne.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,ne.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,ne.jsx)("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:(0,ne.jsx)(Yn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,ne.jsx)("div",{className:"my-auto ml-2 md:my-0",children:(0,Xn.default)(o)})]});default:return null}})()}),qr=({dataFeatures:e,template:o=1})=>(0,ne.jsx)(ne.Fragment,{children:(e?.length??0)>0&&(0,ne.jsx)("ul",{className:i("",ff({template:o})),children:e?.map((t,a)=>(0,ne.jsx)(gf,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var ic=require("lucide-react");var Z=require("react/jsx-runtime"),nc=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,uf=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>(0,Z.jsxs)(Go,{children:[(0,Z.jsx)(yt,{greaterThan:"sm",children:(0,Z.jsxs)($,{className:i(""),ratio:nc(o),children:[(0,Z.jsx)("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,Z.jsxs)(ze,{children:[(0,Z.jsx)(jo,{onClick:r,children:(0,Z.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,Z.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,Z.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Z.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,Z.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,Z.jsx)(Ae,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:(0,Z.jsxs)(We,{className:"relative bg-transparent p-4 text-center",children:[(0,Z.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,Z.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,Z.jsx)(Ja,{asChild:!0,children:(0,Z.jsx)(xe,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,Z.jsx)(ic.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,Z.jsx)(yt,{lessThan:"md",children:(0,Z.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,Z.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"})})})]}),Xr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>(0,Z.jsx)("div",{className:a,children:n?(0,Z.jsx)(uf,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,Z.jsx)($,{ratio:nc(t),children:(0,Z.jsx)("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});var sc=v(require("html-react-parser"),1);var ht=require("react/jsx-runtime"),vf=({value:e,suffix:o,unit:t,description:a,idx:r})=>(0,ht.jsxs)("div",{className:i(""),children:[e&&(0,ht.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,ht.jsxs)("span",{children:[o," ",t]})]}),a&&(0,ht.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,sc.default)(a)})]}),Yr=({dataStats:e})=>(0,ht.jsx)(ht.Fragment,{children:(e?.length??0)>0&&(0,ht.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,ht.jsx)(vf,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var j=require("react/jsx-runtime"),Zn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,j.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,j.jsxs)("div",{className:"col-span-1 ",children:[(0,j.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),(0,j.jsx)(qr,{dataFeatures:t,template:a}),o&&(0,j.jsx)(w,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,j.jsx)(Yr,{dataStats:r})]}),(0,j.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,j.jsx)(Xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),lc=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,j.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,j.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,j.jsx)(Xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,j.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,j.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),(0,j.jsx)(qr,{dataFeatures:t,template:a}),o&&(0,j.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,j.jsx)(w,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,j.jsx)(Yr,{dataStats:r})]})]}),mc=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),o&&(0,j.jsx)(w,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),(0,j.jsx)(qr,{dataFeatures:t,template:a}),(0,j.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,j.jsx)(Yr,{dataStats:r})}),s||(0,j.jsx)(j.Fragment,{children:n?.src&&(0,j.jsx)(Xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var Ot=require("react/jsx-runtime"),hf=`var(
|
|
250
|
+
`})]})}})()})}var Rm=v(require("react"),1),Ot=v(require("@radix-ui/react-slider"),1);var vt=require("react/jsx-runtime"),zn=Rm.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>(0,vt.jsxs)(Ot.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,vt.jsx)(Ot.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,vt.jsx)(Ot.Range,{className:"absolute h-full bg-pink-500"})}),(0,vt.jsx)(Ot.Thumb,{className:"group relative",children:(0,vt.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,vt.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,vt.jsx)(Ot.Thumb,{className:"group relative",children:(0,vt.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,vt.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})})})]}));zn.displayName=Ot.Root.displayName;var Lm=require("react");var fe=require("react/jsx-runtime"),Yp=({author:e=""})=>(0,fe.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Zp=({author:e,avatar:o})=>(0,fe.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,fe.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,fe.jsx)(Yp,{author:e})});function Kp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return(0,fe.jsx)(fe.Fragment,{children:(0,fe.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,fe.jsx)(Zp,{avatar:e,author:o}),(0,fe.jsxs)("div",{className:"flex flex-col",children:[o&&(0,fe.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,fe.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,fe.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,fe.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,fe.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,fe.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&(0,fe.jsx)("div",{className:"absolute right-1 top-0",children:(0,fe.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var km=Kp;var _n=require("react");var Tm=require("@heroicons/react/20/solid"),ia=require("react/jsx-runtime"),Jp={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!"},ef={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 tf({point:e,max:o,className:t}){let a=o>5?Jp[e||10]:ef[e||5];return(0,ia.jsxs)("div",{className:i("flex items-center space-x-1",t),children:[(0,ia.jsx)(Tm.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,ia.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,ia.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Sm=tf;var Dm=require("react"),Hn=v(require("html-react-parser"),1);var Gr=require("react/jsx-runtime"),Wr=({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,Dm.useState)(!0),c=()=>{l(!s)},d=(p,f,u=" ")=>p.length<=f?p:p.substring(0,p.lastIndexOf(u,f));return(0,Gr.jsxs)("div",{className:i(n),children:[s?(0,Hn.default)(d(e,o)):(0,Hn.default)(e),e.length>o&&(0,Gr.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 ht=require("react/jsx-runtime");function of({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=(0,_n.useState)(0),[c,d]=(0,_n.useState)(!1),p=f=>{d(!0),l(f)};return(0,ht.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&(0,ht.jsx)(Sm,{className:"mb-0.5",point:r.point,max:r.max}),e&&(0,ht.jsx)(Wr,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,ht.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(f=>(0,ht.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,ht.jsxs)(Br,{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,ht.jsx)($,{onClick:()=>p(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,ht.jsx)("img",{src:f.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),(0,ht.jsx)(Or,{activeSlideIndex:s,images:o?.map((f,u)=>({url:f.url,titleImage:f.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Mm=of;var Am=require("react/jsx-runtime");function af({actions:e=[]}){return(0,Am.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Im=af;var Oo=require("react/jsx-runtime"),Fm=(0,Lm.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:x=260},R)=>(0,Oo.jsxs)("div",{ref:R,className:i("",d?"ml-4 py-4":"py-5"),children:[(0,Oo.jsx)(km,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),(0,Oo.jsx)(Mm,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:f,limitContent:x}),l&&l?.filter(Boolean)?.length>0&&(0,Oo.jsx)(Im,{actions:l.filter(Boolean)}),p&&(0,Oo.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 wo=v(require("react"),1),Em=require("class-variance-authority");var zm=require("@heroicons/react/16/solid"),Hm=require("lucide-react"),ge=require("react/jsx-runtime"),rf=(0,Em.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"}}),_m=wo.createContext("default");function nf(){let e=wo.useContext(_m);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var sf=wo.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,ge.jsx)(Hm.XIcon,{className:s}):(0,ge.jsxs)("div",{children:[e==="iconStep"&&(0,ge.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,ge.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,ge.jsx)(zm.CheckIcon,{className:s}):(0,ge.jsx)("div",{children:t}))]})}),Bm=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=wo.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,ge.jsx)("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Om=({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 x=nf();return(0,ge.jsxs)("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[(0,ge.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,ge.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,ge.jsx)("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",rf({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",r),...u,children:(0,ge.jsx)(sf,{type:x,icon:d,stepNumber:e,size:t,isError:p,state:o})}),(0,ge.jsx)("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,ge.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,ge.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,ge.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Vm=({children:e,className:o,type:t="numberStep",...a})=>(0,ge.jsx)(_m.Provider,{value:t,children:(0,ge.jsx)("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});var Oe=v(require("react"),1),jm=require("@radix-ui/react-slot"),na=require("react-hook-form");var Wm=v(require("react"),1),Bn=v(require("@radix-ui/react-label"),1),Gm=require("class-variance-authority");var $m=require("react/jsx-runtime"),lf=(0,Gm.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),$r=Wm.forwardRef(({className:e,...o},t)=>(0,$m.jsx)(Bn.Root,{ref:t,className:i(lf(),e),...o}));$r.displayName=Bn.Root.displayName;var io=require("react/jsx-runtime"),jr=na.FormProvider,Qm=Oe.createContext({}),Qr=({...e})=>(0,io.jsx)(Qm.Provider,{value:{name:e.name},children:(0,io.jsx)(na.Controller,{...e})}),sa=()=>{let e=Oe.useContext(Qm),o=Oe.useContext(Um),{getFieldState:t,formState:a}=(0,na.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}},Um=Oe.createContext({}),Ga=Oe.forwardRef(({className:e,...o},t)=>{let a=Oe.useId();return(0,io.jsx)(Um.Provider,{value:{id:a},children:(0,io.jsx)("div",{ref:t,className:i("space-y-2",e),...o})})});Ga.displayName="FormItem";var $a=Oe.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=sa();return(0,io.jsx)($r,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});$a.displayName="FormLabel";var ja=Oe.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=sa();return(0,io.jsx)(jm.Slot,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});ja.displayName="FormControl";var Qa=Oe.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=sa();return(0,io.jsx)("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});Qa.displayName="FormDescription";var Ua=Oe.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=sa(),s=r?String(r?.message):o;return s?(0,io.jsx)("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});Ua.displayName="FormMessage";var no=v(require("react"),1),I=v(require("@radix-ui/react-dropdown-menu"),1),Ur=require("lucide-react");var me=require("react/jsx-runtime"),qm=I.Root,Xm=I.Trigger,Ym=I.Group,Zm=I.Portal,Km=I.Sub,Jm=I.RadioGroup,On=no.forwardRef(({className:e,inset:o,children:t,...a},r)=>(0,me.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,me.jsx)(Ur.ChevronRight,{className:"ml-auto"})]}));On.displayName=I.SubTrigger.displayName;var Vn=no.forwardRef(({className:e,...o},t)=>(0,me.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}));Vn.displayName=I.SubContent.displayName;var Wn=no.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,me.jsx)(I.Portal,{children:(0,me.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})}));Wn.displayName=I.Content.displayName;var Gn=no.forwardRef(({className:e,inset:o,...t},a)=>(0,me.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}));Gn.displayName=I.Item.displayName;var $n=no.forwardRef(({className:e,children:o,checked:t,...a},r)=>(0,me.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,me.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,me.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,me.jsx)(I.ItemIndicator,{children:(0,me.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,me.jsx)(Ur.Check,{size:16,strokeWidth:3})})})]}),o]}));$n.displayName=I.CheckboxItem.displayName;var jn=no.forwardRef(({className:e,children:o,...t},a)=>(0,me.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,me.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,me.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,me.jsx)(I.ItemIndicator,{children:(0,me.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));jn.displayName=I.RadioItem.displayName;var Qn=no.forwardRef(({className:e,inset:o,...t},a)=>(0,me.jsx)(I.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Qn.displayName=I.Label.displayName;var Un=no.forwardRef(({className:e,...o},t)=>(0,me.jsx)(I.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));Un.displayName=I.Separator.displayName;var qn=({className:e,...o})=>(0,me.jsx)("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});qn.displayName="DropdownMenuShortcut";var oc=require("@radix-ui/react-slot"),Po=v(require("html-react-parser"),1);var ec=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};var C=require("react/jsx-runtime"),tc=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,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,Po.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,Po.default)(a.description)})]})]})},r))}),t&&(0,C.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),mf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,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)($,{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,Po.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,Po.default)(a.description)})]})]},r))}),t&&(0,C.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),cf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&(0,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"?ec(a.image)?(0,C.jsx)("img",{src:a.image,className:"block object-cover"}):(0,C.jsx)(oc.Slot,{className:"h-6 w-6 stroke-white stroke-2",children:(0,Po.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,Po.default)(a.title)}),a?.description&&(0,C.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,Po.default)(a.description)})]})]},r))}),t&&(0,C.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),df=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,C.jsx)(tc,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,C.jsx)(mf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return(0,C.jsx)(cf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,C.jsx)(tc,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},pf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,C.jsx)(C.Fragment,{children:df({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),ac=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>(0,C.jsx)(X,{className:t,idSection:a,background:o,children:(0,C.jsx)(pf,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});var rc=require("class-variance-authority"),Xn=v(require("html-react-parser"),1),Yn=require("lucide-react");var ne=require("react/jsx-runtime"),ff=(0,rc.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}}),gf=({template:e,name:o,image:t,isFeatures:a})=>(0,ne.jsx)(ne.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,ne.jsx)(ne.Fragment,{children:(0,ne.jsxs)("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?(0,ne.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,ne.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,ne.jsx)("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:(0,ne.jsx)(Yn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,ne.jsx)("div",{className:"ml-2 ",children:(0,Xn.default)(o)})]})});case 3:return(0,ne.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,ne.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,ne.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,ne.jsx)("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:(0,ne.jsx)(Yn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,ne.jsx)("div",{className:"my-auto ml-2 md:my-0",children:(0,Xn.default)(o)})]});default:return null}})()}),qr=({dataFeatures:e,template:o=1})=>(0,ne.jsx)(ne.Fragment,{children:(e?.length??0)>0&&(0,ne.jsx)("ul",{className:i("",ff({template:o})),children:e?.map((t,a)=>(0,ne.jsx)(gf,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var ic=require("lucide-react");var K=require("react/jsx-runtime"),nc=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,uf=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>(0,K.jsxs)(Go,{children:[(0,K.jsx)(Nt,{greaterThan:"sm",children:(0,K.jsxs)($,{className:i(""),ratio:nc(o),children:[(0,K.jsx)("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,K.jsxs)(ze,{children:[(0,K.jsx)(jo,{onClick:r,children:(0,K.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,K.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,K.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,K.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,K.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,K.jsx)(Ae,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:(0,K.jsxs)(We,{className:"relative bg-transparent p-4 text-center",children:[(0,K.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,K.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,K.jsx)(Ja,{asChild:!0,children:(0,K.jsx)(xe,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,K.jsx)(ic.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,K.jsx)(Nt,{lessThan:"md",children:(0,K.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,K.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"})})})]}),Xr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>(0,K.jsx)("div",{className:a,children:n?(0,K.jsx)(uf,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,K.jsx)($,{ratio:nc(t),children:(0,K.jsx)("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});var sc=v(require("html-react-parser"),1);var xt=require("react/jsx-runtime"),vf=({value:e,suffix:o,unit:t,description:a,idx:r})=>(0,xt.jsxs)("div",{className:i(""),children:[e&&(0,xt.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,xt.jsxs)("span",{children:[o," ",t]})]}),a&&(0,xt.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,sc.default)(a)})]}),Yr=({dataStats:e})=>(0,xt.jsx)(xt.Fragment,{children:(e?.length??0)>0&&(0,xt.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,xt.jsx)(vf,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var j=require("react/jsx-runtime"),Zn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,j.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,j.jsxs)("div",{className:"col-span-1 ",children:[(0,j.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),(0,j.jsx)(qr,{dataFeatures:t,template:a}),o&&(0,j.jsx)(w,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,j.jsx)(Yr,{dataStats:r})]}),(0,j.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,j.jsx)(Xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),lc=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,j.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,j.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,j.jsx)(Xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,j.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,j.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),(0,j.jsx)(qr,{dataFeatures:t,template:a}),o&&(0,j.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,j.jsx)(w,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,j.jsx)(Yr,{dataStats:r})]})]}),mc=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),o&&(0,j.jsx)(w,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),(0,j.jsx)(qr,{dataFeatures:t,template:a}),(0,j.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,j.jsx)(Yr,{dataStats:r})}),s||(0,j.jsx)(j.Fragment,{children:n?.src&&(0,j.jsx)(Xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var Vt=require("react/jsx-runtime"),hf=`var(
|
|
251
251
|
--gradient-pink-1,
|
|
252
252
|
linear-gradient(
|
|
253
253
|
38deg,
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
rgba(255, 255, 255, 0) 80%
|
|
270
270
|
),
|
|
271
271
|
#fff
|
|
272
|
-
)`,xf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,
|
|
272
|
+
)`,xf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,Vt.jsx)(Zn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return(0,Vt.jsx)(lc,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return(0,Vt.jsx)(mc,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return(0,Vt.jsx)(Zn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},bf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,Vt.jsx)(Vt.Fragment,{children:xf({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),cc=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:c,advancedComponent:d=null})=>(0,Vt.jsx)(X,{className:i(l),background:c??hf,idSection:o,children:(0,Vt.jsx)(bf,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:d})});var dc=require("react");var bt=require("react/jsx-runtime"),Zr=(0,dc.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,bt.jsxs)(bt.Fragment,{children:[e&&(0,bt.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,bt.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,bt.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,bt.jsx)(c,{...d,className:"group flex h-full w-full items-center justify-center",children:(0,bt.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,bt.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});var pc=require("react");var ot=require("react/jsx-runtime"),Kn=(0,pc.memo)(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>(0,ot.jsxs)(ot.Fragment,{children:[e&&(0,ot.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,ot.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,ot.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,ot.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,ot.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,ot.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,ot.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));var fc=require("react");var Ne=require("react/jsx-runtime"),Jn=(e,o)=>{if(!e)return(0,Ne.jsx)("div",{className:i("h-full w-full",o)});let t=e.url?"a":"div";return(0,Ne.jsx)("div",{className:i("h-full w-full",o),children:(0,Ne.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,Ne.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,Ne.jsx)("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},es=(0,fc.memo)(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=Uo(),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,Ne.jsxs)(Ne.Fragment,{children:[e&&(0,Ne.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&(0,Ne.jsxs)(Re,{opts:{align:a?"center":"start"},className:"w-full",children:[(0,Ne.jsx)(ke,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?r.map((s,l)=>(0,Ne.jsxs)(Pe,{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:[Jn(s,"min-h-0 flex-1"),n[l]?Jn(n[l],"min-h-0 flex-1"):(0,Ne.jsx)("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>(0,Ne.jsx)(Pe,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:Jn(s)},l))}),(0,Ne.jsx)(Mo,{className:"mt-5"})]}),t&&(0,Ne.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});var vc=require("react");var la=require("react"),Vo=require("motion/react"),gc=v(require("react-use-measure"),1);var Kr=require("react/jsx-runtime");function ma({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[c,d]=(0,la.useState)(t),[p,{width:f,height:u}]=(0,gc.default)(),x=(0,Vo.useMotionValue)(0),[R,A]=(0,la.useState)(!1),[k,oe]=(0,la.useState)(0);(0,la.useEffect)(()=>{let Y,M=(r==="horizontal"?f:u)+o,Z=n?-M/2:0,W=n?0:-M/2,lt=Math.abs(W-Z)/c;if(R){let ga=Math.abs(x.get()-W)/c;Y=(0,Vo.animate)(x,[x.get(),W],{ease:"linear",duration:ga,onComplete:()=>{A(!1),oe(Qd=>Qd+1)}})}else Y=(0,Vo.animate)(x,[Z,W],{ease:"linear",duration:lt,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{x.set(Z)}});return Y?.stop},[k,x,c,f,u,o,R,r,n]);let B=a?{onHoverStart:()=>{A(!0),d(a)},onHoverEnd:()=>{A(!0),d(t)},onTouchStart:()=>{A(!0),d(a)},onTouchEnd:()=>{A(!0),d(t)}}:{};return(0,Kr.jsx)("div",{className:i("overflow-hidden",s),children:(0,Kr.jsxs)(Vo.motion.div,{className:i("flex w-max",l),style:{...r==="horizontal"?{x,paddingLeft:o}:{y:x},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:p,...B,children:[e,e]})})}var he=require("react/jsx-runtime"),uc=(e,o)=>{let t=e?.url?"a":"div";return(0,he.jsx)("div",{className:i("h-full w-full",o),children:(0,he.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,he.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,he.jsx)("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},ts=(0,vc.memo)(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,r=a>6;return(0,he.jsxs)(he.Fragment,{children:[e&&(0,he.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),a>0&&(0,he.jsx)(he.Fragment,{children:r?(0,he.jsx)("div",{className:"mark-horizontal-slider relative overflow-hidden",children:(0,he.jsx)(ma,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>(0,he.jsx)("div",{className:"w-32 md:w-40",children:uc(n)},s))})}):(0,he.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,he.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:uc(n)},s))})}),t&&(0,he.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,he.jsx)("style",{children:`
|
|
273
273
|
.mark-horizontal-slider {
|
|
274
274
|
mask-image: linear-gradient(
|
|
275
275
|
to right,
|
|
@@ -286,15 +286,15 @@
|
|
|
286
286
|
transparent 100%
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
|
-
`})]})});var
|
|
289
|
+
`})]})});var yt=require("react/jsx-runtime"),yf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return(0,yt.jsx)(Zr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return(0,yt.jsx)(Kn,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return(0,yt.jsx)(es,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return(0,yt.jsx)(ts,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return(0,yt.jsx)(Zr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},Nf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>(0,yt.jsx)(yt.Fragment,{children:yf({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),hc=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:c})=>(0,yt.jsx)(X,{className:i(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:(0,yt.jsx)(Nf,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:c})});var xc=require("react"),bc=require("@heroicons/react/16/solid"),se=v(require("html-react-parser"),1);var m=require("react/jsx-runtime"),Wt=({btnLink:e,btnName:o,newTab:t})=>(0,m.jsx)(ve,{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)(bc.ChevronRightIcon,{className:"h-4 w-4"})]})}),os=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Wt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),yc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Wt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,m.jsx)("style",{children:`
|
|
290
290
|
.list-features-2 .feature-item {
|
|
291
291
|
background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
|
|
292
292
|
}
|
|
293
|
-
`})]}),Nc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Vt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),wc=({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)(y,{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)(w,{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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Vt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Pc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Vt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Cc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Vt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Rc=({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,p=(d,f)=>{let u=d?.btnLink?"a":"div",b=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return(0,m.jsx)("div",{className:i("basis-1/2 px-2 lg:px-5",l,f===c&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:(0,m.jsxs)(u,{...b,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&(0,m.jsx)("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:(0,m.jsx)("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy"})}),(0,m.jsxs)("div",{className:"w-full flex-1 text-center",children:[d?.name&&(0,m.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:(0,se.default)(d.name)}),d?.description&&(0,m.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,se.default)(d.description)})]})]})},f)};return(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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((d,f)=>p(d,f))}),t&&(0,m.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},kc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Vt,{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)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Tc=({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)(y,{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,se.default)(r.name)}),r?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(r.description)})]}),r?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Vt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&(0,m.jsx)(w,{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)($,{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"})})})})]}),Sc=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(r.name)}),r?.description&&(0,m.jsx)("div",{className:"mt-2 text-gray-500",children:(0,se.default)(r.description)})]}),r?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Vt,{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)(w,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),Dc=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=(0,xc.useState)(0),s=Uo();return(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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)(Nt,{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)(Pt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:(0,se.default)(l.name||"")}),(0,m.jsxs)(Ct,{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,se.default)(l.description||"")}),l?.btnLink&&(0,m.jsx)("div",{className:"",children:(0,m.jsx)(Vt,{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)($,{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)($,{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)($,{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)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var we=require("react/jsx-runtime"),wf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return(0,we.jsx)(os,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,we.jsx)(yc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,we.jsx)(Nc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,we.jsx)(wc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,we.jsx)(Pc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,we.jsx)(Cc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,we.jsx)(Rc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,we.jsx)(kc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,we.jsx)(Tc,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return(0,we.jsx)(Sc,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return(0,we.jsx)(Dc,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return(0,we.jsx)(os,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Pf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>(0,we.jsx)(we.Fragment,{children:wf({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Mc=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>(0,we.jsx)(Y,{className:t,idSection:a,background:o,children:(0,we.jsx)(Pf,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});var Ac=require("@heroicons/react/24/solid"),oi=v(require("html-react-parser"),1),Lc=v(require("lodash"),1);var Jr=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],ei=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},ti=(e,o)=>o[e%o.length];var V=require("react/jsx-runtime"),Cf=({avatar:e="",name:o="",index:t=0})=>{if(Lc.default.isEmpty(e)){let a=ei({name:o})??"",r=ti(t,Jr);return(0,V.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,V.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,V.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Ic=({testimonial:e,className:o,index:t})=>(0,V.jsx)("div",{className:i("testimonial-item",o),children:(0,V.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,V.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,V.jsx)(Cf,{avatar:e.avatar,name:e.name,index:t}),(0,V.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,V.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,V.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,oi.default)(e.position)})]})]}),(0,V.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,V.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,oi.default)(e.shortTitle)}),e?.description&&(0,V.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,oi.default)(e.description)})]}),(0,V.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,V.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,V.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>(0,V.jsx)(Ac.StarIcon,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),as=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return(0,V.jsxs)(V.Fragment,{children:[e&&(0,V.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&(0,V.jsx)(V.Fragment,{children:r?(0,V.jsx)("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:(0,V.jsx)(ma,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,V.jsx)(Ic,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,V.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,V.jsx)(Ic,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,V.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var rs=require("@heroicons/react/24/solid"),ai=v(require("html-react-parser"),1);var M=require("react/jsx-runtime"),Rf=({className:e})=>(0,M.jsx)("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,M.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"})}),kf=({testimonial:e,className:o})=>(0,M.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,M.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,M.jsx)("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:(0,M.jsx)($,{ratio:2/3,className:"w-full",children:(0,M.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),(0,M.jsxs)("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[(0,M.jsxs)("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[(0,M.jsxs)("div",{className:"grow",children:[e?.name&&(0,M.jsx)("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&(0,M.jsx)("div",{className:"mt-1 text-xs font-normal text-gray-500",children:(0,ai.default)(e.position)})]}),(e?.date||Number(e?.rating)>0)&&(0,M.jsxs)("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&(0,M.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,M.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,M.jsx)(rs.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&(0,M.jsx)("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:(0,M.jsx)($,{ratio:2/3,className:"w-full",children:(0,M.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),(0,M.jsxs)("div",{className:"flex flex-1 flex-col md:flex-none",children:[(0,M.jsxs)("div",{className:"flex-1",children:[(0,M.jsxs)("div",{className:"mb-1.5 flex flex-none space-x-3",children:[(0,M.jsx)(Rf,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&(0,M.jsx)("div",{className:"flex-none text-base font-medium md:text-lg",children:(0,ai.default)(e.shortTitle)})]}),e?.description&&(0,M.jsx)("blockquote",{className:"relative flex-1 text-justify text-base",children:(0,ai.default)(e.description)})]}),(e?.date||Number(e?.rating)>0)&&(0,M.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,M.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,M.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,M.jsx)(rs.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),Fc=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>(0,M.jsxs)(M.Fragment,{children:[e&&(0,M.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&(0,M.jsxs)(Re,{className:"w-full",children:[(0,M.jsx)(ke,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>(0,M.jsx)(Pe,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:(0,M.jsx)(kf,{testimonial:a})},r))}),(o??[]).length>1&&(0,M.jsx)(Mo,{className:"mt-8"})]}),t&&(0,M.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var zc=require("@heroicons/react/24/solid"),ri=v(require("html-react-parser"),1),Hc=v(require("lodash"),1);var z=require("react/jsx-runtime"),Tf=({avatar:e="",name:o="",index:t=0})=>{if(Hc.default.isEmpty(e)){let a=ei({name:o})??"",r=ti(t,Jr);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})})},Ec=({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)(Tf,{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,ri.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,ri.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,ri.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)(zc.StarIcon,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),_c=({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,p)=>(0,z.jsx)(ma,{direction:"vertical",reverse:c.reverse,speed:c.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,f)=>(0,z.jsx)(Ec,{testimonial:d,index:f,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${p}-${f}`))},`slider-${p}`))});return(0,z.jsxs)(z.Fragment,{children:[e&&(0,z.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&(0,z.jsx)(Go,{children:r?(0,z.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,z.jsx)(yt,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,z.jsx)(yt,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,z.jsx)(yt,{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)(Ec,{testimonial:l,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,z.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,z.jsx)("style",{children:`
|
|
293
|
+
`})]}),Nc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Wt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),wc=({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)(y,{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)(w,{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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Wt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Pc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Wt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Cc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Wt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&(0,m.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Rc=({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",x=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,{...x,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,se.default)(p.name)}),p?.description&&(0,m.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,se.default)(p.description)})]})]})},f)};return(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},kc=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(a.name)}),a?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(a.description)})]}),a?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Wt,{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)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Tc=({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)(y,{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,se.default)(r.name)}),r?.description&&(0,m.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,se.default)(r.description)})]}),r?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Wt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&(0,m.jsx)(w,{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)($,{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"})})})})]}),Sc=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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,se.default)(r.name)}),r?.description&&(0,m.jsx)("div",{className:"mt-2 text-gray-500",children:(0,se.default)(r.description)})]}),r?.btnLink&&(0,m.jsx)("div",{className:"mt-4",children:(0,m.jsx)(Wt,{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)(w,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),Dc=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=(0,xc.useState)(0),s=Uo();return(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsx)(y,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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)(wt,{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)(Pt,{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)(Ct,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:(0,se.default)(l.name||"")}),(0,m.jsxs)(Rt,{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,se.default)(l.description||"")}),l?.btnLink&&(0,m.jsx)("div",{className:"",children:(0,m.jsx)(Wt,{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)($,{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)($,{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)($,{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)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var we=require("react/jsx-runtime"),wf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return(0,we.jsx)(os,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,we.jsx)(yc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,we.jsx)(Nc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,we.jsx)(wc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,we.jsx)(Pc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,we.jsx)(Cc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,we.jsx)(Rc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,we.jsx)(kc,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,we.jsx)(Tc,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return(0,we.jsx)(Sc,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return(0,we.jsx)(Dc,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return(0,we.jsx)(os,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Pf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>(0,we.jsx)(we.Fragment,{children:wf({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Mc=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>(0,we.jsx)(X,{className:t,idSection:a,background:o,children:(0,we.jsx)(Pf,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});var Ac=require("@heroicons/react/24/solid"),oi=v(require("html-react-parser"),1),Lc=v(require("lodash"),1);var Jr=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],ei=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},ti=(e,o)=>o[e%o.length];var V=require("react/jsx-runtime"),Cf=({avatar:e="",name:o="",index:t=0})=>{if(Lc.default.isEmpty(e)){let a=ei({name:o})??"",r=ti(t,Jr);return(0,V.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,V.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,V.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Ic=({testimonial:e,className:o,index:t})=>(0,V.jsx)("div",{className:i("testimonial-item",o),children:(0,V.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,V.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,V.jsx)(Cf,{avatar:e.avatar,name:e.name,index:t}),(0,V.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,V.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,V.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,oi.default)(e.position)})]})]}),(0,V.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,V.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,oi.default)(e.shortTitle)}),e?.description&&(0,V.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,oi.default)(e.description)})]}),(0,V.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,V.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,V.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>(0,V.jsx)(Ac.StarIcon,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),as=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return(0,V.jsxs)(V.Fragment,{children:[e&&(0,V.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&(0,V.jsx)(V.Fragment,{children:r?(0,V.jsx)("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:(0,V.jsx)(ma,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,V.jsx)(Ic,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,V.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,V.jsx)(Ic,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,V.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var rs=require("@heroicons/react/24/solid"),ai=v(require("html-react-parser"),1);var D=require("react/jsx-runtime"),Rf=({className:e})=>(0,D.jsx)("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,D.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"})}),kf=({testimonial:e,className:o})=>(0,D.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,D.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,D.jsx)("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:(0,D.jsx)($,{ratio:2/3,className:"w-full",children:(0,D.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),(0,D.jsxs)("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[(0,D.jsxs)("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[(0,D.jsxs)("div",{className:"grow",children:[e?.name&&(0,D.jsx)("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&(0,D.jsx)("div",{className:"mt-1 text-xs font-normal text-gray-500",children:(0,ai.default)(e.position)})]}),(e?.date||Number(e?.rating)>0)&&(0,D.jsxs)("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&(0,D.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,D.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,D.jsx)(rs.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&(0,D.jsx)("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:(0,D.jsx)($,{ratio:2/3,className:"w-full",children:(0,D.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),(0,D.jsxs)("div",{className:"flex flex-1 flex-col md:flex-none",children:[(0,D.jsxs)("div",{className:"flex-1",children:[(0,D.jsxs)("div",{className:"mb-1.5 flex flex-none space-x-3",children:[(0,D.jsx)(Rf,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&(0,D.jsx)("div",{className:"flex-none text-base font-medium md:text-lg",children:(0,ai.default)(e.shortTitle)})]}),e?.description&&(0,D.jsx)("blockquote",{className:"relative flex-1 text-justify text-base",children:(0,ai.default)(e.description)})]}),(e?.date||Number(e?.rating)>0)&&(0,D.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,D.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,D.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,D.jsx)(rs.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),Fc=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>(0,D.jsxs)(D.Fragment,{children:[e&&(0,D.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&(0,D.jsxs)(Re,{className:"w-full",children:[(0,D.jsx)(ke,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>(0,D.jsx)(Pe,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:(0,D.jsx)(kf,{testimonial:a})},r))}),(o??[]).length>1&&(0,D.jsx)(Mo,{className:"mt-8"})]}),t&&(0,D.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var zc=require("@heroicons/react/24/solid"),ri=v(require("html-react-parser"),1),Hc=v(require("lodash"),1);var z=require("react/jsx-runtime"),Tf=({avatar:e="",name:o="",index:t=0})=>{if(Hc.default.isEmpty(e)){let a=ei({name:o})??"",r=ti(t,Jr);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})})},Ec=({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)(Tf,{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,ri.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,ri.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,ri.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)(zc.StarIcon,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),_c=({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)(ma,{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)(Ec,{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)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&(0,z.jsx)(Go,{children:r?(0,z.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,z.jsx)(Nt,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,z.jsx)(Nt,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,z.jsx)(Nt,{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)(Ec,{testimonial:l,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,z.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,z.jsx)("style",{children:`
|
|
294
294
|
.mark-vertical-marquee {
|
|
295
295
|
mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
|
|
296
296
|
}
|
|
297
|
-
`})]})};var Wt=require("react/jsx-runtime"),Sf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,Wt.jsx)(as,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,Wt.jsx)(_c,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,Wt.jsx)(Fc,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,Wt.jsx)(as,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Df=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,Wt.jsx)(Wt.Fragment,{children:Sf({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Bc=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>(0,Wt.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,Wt.jsx)(Df,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});var is=v(require("html-react-parser"),1);var Q=require("react/jsx-runtime"),ns=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>(0,Q.jsx)(Nt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>(0,Q.jsxs)(wt,{value:n.title,className:"last:border-none",children:[(0,Q.jsx)(Pt,{className:"md:text-lg",children:n.title}),(0,Q.jsx)(Ct,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,is.default)(n.description)})]},s))});return(0,Q.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,Q.jsx)("div",{className:"relative",children:(0,Q.jsxs)("div",{className:"md:sticky md:top-16",children:[o&&(0,Q.jsx)(y,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),t&&(0,Q.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&(0,Q.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,Q.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Oc=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=c=>(0,Q.jsx)(Nt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((p,d)=>(0,Q.jsxs)(wt,{value:p.title,className:"last:border-none",children:[(0,Q.jsx)(Pt,{className:"md:text-lg",children:p.title}),(0,Q.jsx)(Ct,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,is.default)(p.description)})]},d))});return(0,Q.jsxs)(Q.Fragment,{children:[o&&(0,Q.jsx)(y,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),e&&(0,Q.jsxs)(Mt,{defaultValue:e[0]?.title,children:[e?.length>=1&&(0,Q.jsxs)(kt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[(0,Q.jsx)(Tt,{className:"mb-3 text-center",children:(0,Q.jsx)(ct,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,p)=>(0,Q.jsx)(dt,{value:c.title,children:c.title},c.title+p))})}),(0,Q.jsx)(St,{}),(0,Q.jsx)(Dt,{})]}),e.map((c,p)=>(0,Q.jsx)(pt,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:l(c)},c.title+p))]}),t&&(0,Q.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};var so=require("react/jsx-runtime"),Mf=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return(0,so.jsx)(ns,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return(0,so.jsx)(Oc,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return(0,so.jsx)(ns,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},If=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>(0,so.jsx)(so.Fragment,{children:Mf({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Vc=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>(0,so.jsx)(Y,{className:t,idSection:r,background:a,children:(0,so.jsx)(If,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});var ii=v(require("react"),1),Wc=require("@heroicons/react/20/solid"),Gc=v(require("html-react-parser"),1);var H=require("react/jsx-runtime"),Af=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,H.jsxs)("picture",{children:[(0,H.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,H.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,H.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,H.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,H.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ve,{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,H.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,H.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},ss=(0,ii.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(d,f,u)=>{d?.preventDefault(),d?.stopPropagation(),a?a(f):window.open(u,"_blank")},p=(d,f)=>(0,H.jsxs)("div",{children:[(0,H.jsx)("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((u,b)=>(0,H.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,H.jsx)("div",{onClick:R=>c(R,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",d?.classNameItem),children:(0,H.jsx)(Af,{news:u})},u?.id)},b))}),d?.isShowBtn&&(0,H.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,H.jsxs)(Ye,{action:d?.btnUrl||r&&(()=>r?.(f)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,dataUmamiEvent:d?.dataUmamiEvent,dataUmamiEventText:co(d?.btnName)||"Xem th\xEAm",children:[(0,Gc.default)(d.btnName||"Xem th\xEAm"),d?.isLoading?(0,H.jsx)($o,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&(0,H.jsx)(Wc.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||f);return(0,H.jsxs)(ii.default.Fragment,{children:[e&&(0,H.jsx)(y,{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,H.jsxs)(Mt,{defaultValue:t[0]?.title,children:[(0,H.jsxs)(kt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,H.jsx)(Tt,{className:"mb-6 text-center",children:(0,H.jsx)(ct,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,f)=>(0,H.jsx)(dt,{value:d.title,children:d.title},d.title+f))})}),(0,H.jsx)(St,{}),(0,H.jsx)(Dt,{})]}),t.map((d,f)=>(0,H.jsx)(pt,{value:d.title,children:p(d,f)},d.title+f))]}):t?.length===1&&t[0]&&p(t[0],0)]})});var Co=require("react/jsx-runtime"),Lf=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,Co.jsx)(ss,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,Co.jsx)(ss,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Ff=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,Co.jsx)(Co.Fragment,{children:Lf({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),$c=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,Co.jsx)(Y,{className:i(r),background:n,idSection:e,children:(0,Co.jsx)(Ff,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:c})});var ue=require("react/jsx-runtime"),jc=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,ue.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,ue.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&(0,ue.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Ef=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,ue.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,ue.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,ue.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&(0,ue.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,ue.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,ue.jsx)($,{ratio:4/3,children:(0,ue.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),zf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return(0,ue.jsx)(jc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return(0,ue.jsx)(Ef,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return(0,ue.jsx)(jc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},Hf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>(0,ue.jsx)(ue.Fragment,{children:zf({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),Qc=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>(0,ue.jsx)(Y,{className:t,idSection:a,background:o,children:(0,ue.jsx)(Hf,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});var ls=v(require("react"),1),ni=v(require("html-react-parser"),1);var at=require("react/jsx-runtime"),_f=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,at.jsxs)("div",{className:"text-center",children:[(0,at.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,ni.default)(t??"")}),(0,at.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,ni.default)(o??"")}),a&&(0,at.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ni.default)(a??"")})]})},si=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,at.jsxs)(ls.default.Fragment,{children:[t&&(0,at.jsx)(y,{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,at.jsx)("div",{className:i("grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",e?.length===2&&"md:grid-cols-4 md:[&>*:first-child]:col-start-2",e?.length===4&&"md:grid-cols-4"),children:e?.map((a,r)=>(0,at.jsx)(ls.default.Fragment,{children:(0,at.jsx)(_f,{metric:a})},r))}),o&&(0,at.jsx)(w,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var ms=v(require("react"),1),li=v(require("html-react-parser"),1);var rt=require("react/jsx-runtime"),Bf=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,rt.jsxs)("div",{className:"bg-gray-100 p-4 text-center md:p-8",children:[(0,rt.jsx)("div",{className:"text-2xl font-bold text-gray-900 md:text-3xl",children:(0,li.default)(t??"")}),(0,rt.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-500",children:(0,li.default)(o??"")}),a&&(0,rt.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,li.default)(a??"")})]})},cs=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,rt.jsxs)(ms.default.Fragment,{children:[t&&(0,rt.jsx)(y,{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,rt.jsx)("div",{className:i("grid grid-cols-2 gap-px overflow-hidden rounded-lg md:rounded-xl md:py-0 lg:grid-cols-4",e?.length===2&&"lg:grid-cols-2",e?.length===3&&"lg:grid-cols-3"),children:e?.map((a,r)=>(0,rt.jsx)(ms.default.Fragment,{children:(0,rt.jsx)(Bf,{metric:a})},r))}),o&&(0,rt.jsx)(w,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var lo=require("react/jsx-runtime"),Of=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,lo.jsx)(si,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,lo.jsx)(cs,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,lo.jsx)(si,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Vf=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,lo.jsx)(lo.Fragment,{children:Of({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Uc=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>(0,lo.jsx)(Y,{className:i(n),background:r,idSection:e,children:(0,lo.jsx)(Vf,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});var qc=require("react"),qa=require("react/jsx-runtime"),Xc=(0,qc.forwardRef)(({className:e,title:o,children:t},a)=>(0,qa.jsxs)("div",{className:e,ref:a,children:[(0,qa.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,qa.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 Zc=require("react");var it=require("react/jsx-runtime"),Wf=()=>(0,it.jsx)("div",{className:"p-3 border rounded-lg",children:(0,it.jsxs)("div",{className:"flex items-center gap-3",children:[(0,it.jsx)(Wa,{className:"rounded-md h-9 w-9 "}),(0,it.jsx)("div",{className:"flex-1",children:(0,it.jsx)(Wa,{className:"w-48 h-5 "})}),(0,it.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Gf(){return(0,it.jsx)(it.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,it.jsx)(Wf,{},o))})}var Yc=Gf;var Se=require("react/jsx-runtime"),$f=({paymentMethod:e})=>(0,Se.jsx)(Oa,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,Se.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Se.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,Se.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,Se.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,Se.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,Se.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Kc=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=(0,Zc.useCallback)(s=>a?.(s),[a]);return(0,Se.jsxs)(Se.Fragment,{children:[e&&(0,Se.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,Se.jsx)(Yc,{}):(0,Se.jsx)(Ba,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,Se.jsx)($f,{paymentMethod:s},s.id))})]})};var ds=require("react");var fs=require("react/jsx-runtime"),jf=(0,ds.forwardRef)(({children:e,className:o},t)=>(0,fs.jsx)("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),ps=(0,ds.forwardRef)(({children:e,className:o,...t},a)=>(0,fs.jsx)(jf,{ref:a,className:o,...t,children:e}));ps.displayName="Payment";var Jc=require("react");var Xa=require("react/jsx-runtime"),ed=(0,Jc.forwardRef)(({className:e,children:o},t)=>(0,Xa.jsxs)("div",{className:i("",e),ref:t,children:[(0,Xa.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,Xa.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var td=require("react");var ad=require("react/jsx-runtime"),od=(0,td.forwardRef)(({className:e,children:o},t)=>(0,ad.jsx)("div",{className:i("pb-5",e),ref:t,children:o}));var id=require("react");var mi=require("@heroicons/react/20/solid");var oe=require("react/jsx-runtime"),Qf=({iconPaymentResult:e,message:o="",title:t=""})=>(0,oe.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,oe.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,oe.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,oe.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,oe.jsx)(ra,{message:o,type:"success",icon:(0,oe.jsx)(mi.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Uf=({iconPaymentResult:e,message:o="",title:t=""})=>(0,oe.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,oe.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,oe.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,oe.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,oe.jsx)(ra,{message:o,type:"error",icon:(0,oe.jsx)(mi.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),qf=({iconPaymentResult:e,message:o="",title:t=""})=>(0,oe.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,oe.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,oe.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,oe.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,oe.jsx)(ra,{message:o,type:"neutral"})]}),rd=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,oe.jsx)(Qf,{status:e,title:o,message:t,iconPaymentResult:a||(0,oe.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,oe.jsx)(Uf,{status:e,title:o,message:t,iconPaymentResult:a||(0,oe.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,oe.jsx)(qf,{status:e,title:o,message:t,iconPaymentResult:a||(0,oe.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var ci=require("react/jsx-runtime"),nd=(0,id.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>(0,ci.jsxs)("div",{ref:s,className:i("rounded-lg p-4",e),children:[(0,ci.jsx)(rd,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));var pi=require("react");var ca=require("react/jsx-runtime"),di=({content:e})=>(0,ca.jsxs)("picture",{children:[(0,ca.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,ca.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,ca.jsx)(Ye,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var Ro=require("react/jsx-runtime"),Xf=({template:e,content:o})=>{switch(e){case 1:return(0,Ro.jsx)(di,{content:o});default:return(0,Ro.jsx)(di,{content:o})}},sd=(0,pi.forwardRef)(({template:e,content:o},t)=>((0,pi.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,Ro.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,Ro.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,Ro.jsx)("div",{className:"content",children:Xf({template:e,content:o})})}),(0,Ro.jsx)("style",{children:`
|
|
297
|
+
`})]})};var Gt=require("react/jsx-runtime"),Sf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,Gt.jsx)(as,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,Gt.jsx)(_c,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,Gt.jsx)(Fc,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,Gt.jsx)(as,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Df=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,Gt.jsx)(Gt.Fragment,{children:Sf({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Bc=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>(0,Gt.jsx)(X,{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,Gt.jsx)(Df,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});var is=v(require("html-react-parser"),1);var Q=require("react/jsx-runtime"),ns=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>(0,Q.jsx)(wt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>(0,Q.jsxs)(Pt,{value:n.title,className:"last:border-none",children:[(0,Q.jsx)(Ct,{className:"md:text-lg",children:n.title}),(0,Q.jsx)(Rt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,is.default)(n.description)})]},s))});return(0,Q.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,Q.jsx)("div",{className:"relative",children:(0,Q.jsxs)("div",{className:"md:sticky md:top-16",children:[o&&(0,Q.jsx)(y,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),t&&(0,Q.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&(0,Q.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,Q.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Oc=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=c=>(0,Q.jsx)(wt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((d,p)=>(0,Q.jsxs)(Pt,{value:d.title,className:"last:border-none",children:[(0,Q.jsx)(Ct,{className:"md:text-lg",children:d.title}),(0,Q.jsx)(Rt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,is.default)(d.description)})]},p))});return(0,Q.jsxs)(Q.Fragment,{children:[o&&(0,Q.jsx)(y,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),e&&(0,Q.jsxs)(It,{defaultValue:e[0]?.title,children:[e?.length>=1&&(0,Q.jsxs)(Tt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[(0,Q.jsx)(St,{className:"mb-3 text-center",children:(0,Q.jsx)(dt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,d)=>(0,Q.jsx)(pt,{value:c.title,children:c.title},c.title+d))})}),(0,Q.jsx)(Dt,{}),(0,Q.jsx)(Mt,{})]}),e.map((c,d)=>(0,Q.jsx)(ft,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:l(c)},c.title+d))]}),t&&(0,Q.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};var so=require("react/jsx-runtime"),Mf=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return(0,so.jsx)(ns,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return(0,so.jsx)(Oc,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return(0,so.jsx)(ns,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},If=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>(0,so.jsx)(so.Fragment,{children:Mf({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Vc=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>(0,so.jsx)(X,{className:t,idSection:r,background:a,children:(0,so.jsx)(If,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});var ii=v(require("react"),1),Wc=require("@heroicons/react/20/solid"),Gc=v(require("html-react-parser"),1);var H=require("react/jsx-runtime"),Af=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,H.jsxs)("picture",{children:[(0,H.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,H.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,H.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,H.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,H.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ve,{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,H.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,H.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},ss=(0,ii.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,H.jsxs)("div",{children:[(0,H.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,x)=>(0,H.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,H.jsx)("div",{onClick:R=>c(R,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,H.jsx)(Af,{news:u})},u?.id)},x))}),p?.isShowBtn&&(0,H.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,H.jsxs)(Ye,{action:p?.btnUrl||r&&(()=>r?.(f)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,dataUmamiEvent:p?.dataUmamiEvent,dataUmamiEventText:co(p?.btnName)||"Xem th\xEAm",children:[(0,Gc.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,H.jsx)($o,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!p?.btnUrl&&(0,H.jsx)(Wc.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||f);return(0,H.jsxs)(ii.default.Fragment,{children:[e&&(0,H.jsx)(y,{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,H.jsxs)(It,{defaultValue:t[0]?.title,children:[(0,H.jsxs)(Tt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,H.jsx)(St,{className:"mb-6 text-center",children:(0,H.jsx)(dt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,f)=>(0,H.jsx)(pt,{value:p.title,children:p.title},p.title+f))})}),(0,H.jsx)(Dt,{}),(0,H.jsx)(Mt,{})]}),t.map((p,f)=>(0,H.jsx)(ft,{value:p.title,children:d(p,f)},p.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Co=require("react/jsx-runtime"),Lf=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,Co.jsx)(ss,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,Co.jsx)(ss,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Ff=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,Co.jsx)(Co.Fragment,{children:Lf({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),$c=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,Co.jsx)(X,{className:i(r),background:n,idSection:e,children:(0,Co.jsx)(Ff,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:c})});var ue=require("react/jsx-runtime"),jc=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,ue.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,ue.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&(0,ue.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Ef=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,ue.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,ue.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,ue.jsx)(y,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&(0,ue.jsx)(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,ue.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,ue.jsx)($,{ratio:4/3,children:(0,ue.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),zf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return(0,ue.jsx)(jc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return(0,ue.jsx)(Ef,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return(0,ue.jsx)(jc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},Hf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>(0,ue.jsx)(ue.Fragment,{children:zf({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),Qc=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>(0,ue.jsx)(X,{className:t,idSection:a,background:o,children:(0,ue.jsx)(Hf,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});var ls=v(require("react"),1),ni=v(require("html-react-parser"),1);var at=require("react/jsx-runtime"),_f=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,at.jsxs)("div",{className:"text-center",children:[(0,at.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,ni.default)(t??"")}),(0,at.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,ni.default)(o??"")}),a&&(0,at.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ni.default)(a??"")})]})},si=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,at.jsxs)(ls.default.Fragment,{children:[t&&(0,at.jsx)(y,{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,at.jsx)("div",{className:i("grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",e?.length===2&&"md:grid-cols-4 md:[&>*:first-child]:col-start-2",e?.length===4&&"md:grid-cols-4"),children:e?.map((a,r)=>(0,at.jsx)(ls.default.Fragment,{children:(0,at.jsx)(_f,{metric:a})},r))}),o&&(0,at.jsx)(w,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var ms=v(require("react"),1),li=v(require("html-react-parser"),1);var rt=require("react/jsx-runtime"),Bf=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,rt.jsxs)("div",{className:"bg-gray-100 p-4 text-center md:p-8",children:[(0,rt.jsx)("div",{className:"text-2xl font-bold text-gray-900 md:text-3xl",children:(0,li.default)(t??"")}),(0,rt.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-500",children:(0,li.default)(o??"")}),a&&(0,rt.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,li.default)(a??"")})]})},cs=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,rt.jsxs)(ms.default.Fragment,{children:[t&&(0,rt.jsx)(y,{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,rt.jsx)("div",{className:i("grid grid-cols-2 gap-px overflow-hidden rounded-lg md:rounded-xl md:py-0 lg:grid-cols-4",e?.length===2&&"lg:grid-cols-2",e?.length===3&&"lg:grid-cols-3"),children:e?.map((a,r)=>(0,rt.jsx)(ms.default.Fragment,{children:(0,rt.jsx)(Bf,{metric:a})},r))}),o&&(0,rt.jsx)(w,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var lo=require("react/jsx-runtime"),Of=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,lo.jsx)(si,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,lo.jsx)(cs,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,lo.jsx)(si,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Vf=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,lo.jsx)(lo.Fragment,{children:Of({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Uc=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>(0,lo.jsx)(X,{className:i(n),background:r,idSection:e,children:(0,lo.jsx)(Vf,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});var qc=require("react"),qa=require("react/jsx-runtime"),Xc=(0,qc.forwardRef)(({className:e,title:o,children:t},a)=>(0,qa.jsxs)("div",{className:e,ref:a,children:[(0,qa.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,qa.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 Zc=require("react");var it=require("react/jsx-runtime"),Wf=()=>(0,it.jsx)("div",{className:"p-3 border rounded-lg",children:(0,it.jsxs)("div",{className:"flex items-center gap-3",children:[(0,it.jsx)(Wa,{className:"rounded-md h-9 w-9 "}),(0,it.jsx)("div",{className:"flex-1",children:(0,it.jsx)(Wa,{className:"w-48 h-5 "})}),(0,it.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Gf(){return(0,it.jsx)(it.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,it.jsx)(Wf,{},o))})}var Yc=Gf;var Se=require("react/jsx-runtime"),$f=({paymentMethod:e})=>(0,Se.jsx)(Oa,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,Se.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Se.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,Se.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,Se.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,Se.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,Se.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Kc=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=(0,Zc.useCallback)(s=>a?.(s),[a]);return(0,Se.jsxs)(Se.Fragment,{children:[e&&(0,Se.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,Se.jsx)(Yc,{}):(0,Se.jsx)(Ba,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,Se.jsx)($f,{paymentMethod:s},s.id))})]})};var ds=require("react");var fs=require("react/jsx-runtime"),jf=(0,ds.forwardRef)(({children:e,className:o},t)=>(0,fs.jsx)("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),ps=(0,ds.forwardRef)(({children:e,className:o,...t},a)=>(0,fs.jsx)(jf,{ref:a,className:o,...t,children:e}));ps.displayName="Payment";var Jc=require("react");var Xa=require("react/jsx-runtime"),ed=(0,Jc.forwardRef)(({className:e,children:o},t)=>(0,Xa.jsxs)("div",{className:i("",e),ref:t,children:[(0,Xa.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,Xa.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var td=require("react");var ad=require("react/jsx-runtime"),od=(0,td.forwardRef)(({className:e,children:o},t)=>(0,ad.jsx)("div",{className:i("pb-5",e),ref:t,children:o}));var id=require("react");var mi=require("@heroicons/react/20/solid");var te=require("react/jsx-runtime"),Qf=({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)(ra,{message:o,type:"success",icon:(0,te.jsx)(mi.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Uf=({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)(ra,{message:o,type:"error",icon:(0,te.jsx)(mi.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),qf=({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)(ra,{message:o,type:"neutral"})]}),rd=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,te.jsx)(Qf,{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)(Uf,{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)(qf,{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 ci=require("react/jsx-runtime"),nd=(0,id.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>(0,ci.jsxs)("div",{ref:s,className:i("rounded-lg p-4",e),children:[(0,ci.jsx)(rd,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));var pi=require("react");var ca=require("react/jsx-runtime"),di=({content:e})=>(0,ca.jsxs)("picture",{children:[(0,ca.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,ca.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,ca.jsx)(Ye,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var Ro=require("react/jsx-runtime"),Xf=({template:e,content:o})=>{switch(e){case 1:return(0,Ro.jsx)(di,{content:o});default:return(0,Ro.jsx)(di,{content:o})}},sd=(0,pi.forwardRef)(({template:e,content:o},t)=>((0,pi.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,Ro.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,Ro.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,Ro.jsx)("div",{className:"content",children:Xf({template:e,content:o})})}),(0,Ro.jsx)("style",{children:`
|
|
298
298
|
.container-topbar .content {
|
|
299
299
|
width: 100%;
|
|
300
300
|
aspect-ratio: 1088/50;
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
aspect-ratio: 720/88;
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
`})]})));var Ya=v(require("react"),1),ld=require("lucide-react"),qe=require("vaul");var Fe=require("react/jsx-runtime"),gs=({shouldScaleBackground:e=!0,...o})=>(0,Fe.jsx)(qe.Drawer.Root,{shouldScaleBackground:e,...o});gs.displayName="Drawer";var md=qe.Drawer.Trigger,us=qe.Drawer.Portal,cd=qe.Drawer.Close,fi=Ya.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(qe.Drawer.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));fi.displayName=qe.Drawer.Overlay.displayName;var vs=Ya.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>(0,Fe.jsxs)(us,{children:[(0,Fe.jsx)(fi,{}),(0,Fe.jsxs)(qe.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,Fe.jsxs)(qe.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,Fe.jsx)(ld.XIcon,{className:"h-5 w-5"}),(0,Fe.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]}));vs.displayName="DrawerContent";var hs=({className:e,...o})=>(0,Fe.jsx)("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});hs.displayName="DrawerHeader";var xs=({className:e,...o})=>(0,Fe.jsx)("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});xs.displayName="DrawerFooter";var bs=Ya.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(qe.Drawer.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));bs.displayName=qe.Drawer.Title.displayName;var ys=Ya.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(qe.Drawer.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));ys.displayName=qe.Drawer.Description.displayName;var Ns=({children:e,className:o,...t})=>(0,Fe.jsx)("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});Ns.displayName="DrawerBody";var Wo=v(require("react"),1),gi=require("input-otp"),dd=require("lucide-react");var
|
|
315
|
+
`})]})));var Ya=v(require("react"),1),ld=require("lucide-react"),qe=require("vaul");var Fe=require("react/jsx-runtime"),gs=({shouldScaleBackground:e=!0,...o})=>(0,Fe.jsx)(qe.Drawer.Root,{shouldScaleBackground:e,...o});gs.displayName="Drawer";var md=qe.Drawer.Trigger,us=qe.Drawer.Portal,cd=qe.Drawer.Close,fi=Ya.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(qe.Drawer.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));fi.displayName=qe.Drawer.Overlay.displayName;var vs=Ya.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>(0,Fe.jsxs)(us,{children:[(0,Fe.jsx)(fi,{}),(0,Fe.jsxs)(qe.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,Fe.jsxs)(qe.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,Fe.jsx)(ld.XIcon,{className:"h-5 w-5"}),(0,Fe.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]}));vs.displayName="DrawerContent";var hs=({className:e,...o})=>(0,Fe.jsx)("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});hs.displayName="DrawerHeader";var xs=({className:e,...o})=>(0,Fe.jsx)("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});xs.displayName="DrawerFooter";var bs=Ya.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(qe.Drawer.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));bs.displayName=qe.Drawer.Title.displayName;var ys=Ya.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(qe.Drawer.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));ys.displayName=qe.Drawer.Description.displayName;var Ns=({children:e,className:o,...t})=>(0,Fe.jsx)("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});Ns.displayName="DrawerBody";var Wo=v(require("react"),1),gi=require("input-otp"),dd=require("lucide-react");var $t=require("react/jsx-runtime"),ws=Wo.forwardRef(({className:e,containerClassName:o,...t},a)=>(0,$t.jsx)(gi.OTPInput,{ref:a,containerClassName:i("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:i("disabled:cursor-not-allowed",e),...t}));ws.displayName="InputOTP";var Ps=Wo.forwardRef(({className:e,...o},t)=>(0,$t.jsx)("div",{ref:t,className:i("flex items-center",e),...o}));Ps.displayName="InputOTPGroup";var Cs=Wo.forwardRef(({index:e,className:o,...t},a)=>{let r=Wo.useContext(gi.OTPInputContext),{char:n,hasFakeCaret:s,isActive:l}=r.slots[e]??{};return(0,$t.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,$t.jsxs)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[(0,$t.jsx)("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),(0,$t.jsx)("style",{children:`
|
|
316
316
|
@keyframes caret-blink {
|
|
317
317
|
0%, 70%, 100% {
|
|
318
318
|
opacity: 1;
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
.animate-caret-blink {
|
|
326
326
|
animation: caret-blink 1.25s ease-out infinite;
|
|
327
327
|
}
|
|
328
|
-
`})]})]})});Cs.displayName="InputOTPSlot";var Rs=Wo.forwardRef(({...e},o)=>(0
|
|
328
|
+
`})]})]})});Cs.displayName="InputOTPSlot";var Rs=Wo.forwardRef(({...e},o)=>(0,$t.jsx)("div",{ref:o,role:"separator",...e,children:(0,$t.jsx)(dd.Minus,{className:"text-gray-400"})}));Rs.displayName="InputOTPSeparator";var ko=require("react"),hd=require("html-to-image");var da=v(require("react"),1),gd=require("lucide-react"),ud=require("qrcode.react");async function pd(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 fd=v(require("html-react-parser"),1),_=require("react/jsx-runtime"),Yf=()=>{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,_.jsx)("ul",{className:"grid grid-cols-1 gap-y-6 -ml-3 list-decimal md:hidden",children:e.map((o,t)=>(0,_.jsxs)("li",{className:"flex relative gap-4 items-center",children:[(0,_.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,_.jsxs)("div",{className:"flex flex-1 gap-2 items-start",children:[(0,_.jsx)("p",{className:"text-sm leading-relaxed text-gray-700",children:(0,fd.default)(o.text)}),t<e.length-1&&(0,_.jsx)("div",{className:"absolute left-4 top-8 w-px h-12 bg-gray-400 transform -translate-x-1/2"})]})]},t))})},Zf=({isQrForAll:e,shortTitle:o,className:t})=>(0,_.jsxs)("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[(0,_.jsxs)("div",{className:"flex flex-nowrap items-start",children:[(0,_.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,_.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,_.jsxs)("div",{className:"flex-1 pl-4",children:[(0,_.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,_.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,_.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,_.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,_.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,_.jsxs)("div",{className:"flex-1 pl-4",children:[(0,_.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,_.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,_.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,_.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,_.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,_.jsxs)("div",{className:"flex-1 pl-4",children:[(0,_.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,_.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"]})]})]})]}),Kf=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Zf,{isQrForAll:e,shortTitle:o,className:t}),(0,_.jsx)(Yf,{})]}),ui=Kf;var mo=require("react/jsx-runtime"),Jf=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:r,onOpenChange:n})=>(0,mo.jsxs)(ze,{open:r,onOpenChange:n,children:[(0,mo.jsx)(jo,{asChild:!0,children:e}),(0,mo.jsxs)(Ae,{position:"bottom",children:[(0,mo.jsx)(qt,{children:(0,mo.jsx)(Xt,{children:o})}),(0,mo.jsx)(We,{children:(0,mo.jsx)(ui,{isQrForAll:t,shortTitle:a})})]})]}),vi=Jf;var h=require("react/jsx-runtime"),eg=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,isHideGuidePayment:s})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"qrcode__scan__container relative select-none",children:[t&&(0,h.jsxs)("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[(0,h.jsx)("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"shrink-0 select-none"}),(0,h.jsx)("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"shrink-0 select-none"})]}),(0,h.jsxs)("div",{className:"qrcode__scan select-none",children:[(0,h.jsx)("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:(0,h.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,h.jsx)("div",{className:"qrcode__border invisible select-none opacity-0 md:visible md:opacity-100",children:(0,h.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,h.jsx)("div",{className:"qrcode__image select-none p-4",children:e?(0,h.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy",onLoad:a}):da.default.Children.map(o,l=>(da.default.isValidElement(l),l))})]}),n&&(0,h.jsxs)("div",{className:"text-sm text-gray-900 md:hidden",children:[(0,h.jsx)("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),(0,h.jsx)("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),r&&(0,h.jsxs)("div",{className:i("mt-3 text-sm text-gray-900 md:hidden"),children:[(0,h.jsx)("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),(0,h.jsx)("span",{className:"font-semibold",children:r})]}),(0,h.jsx)("div",{className:"mt-4 hidden text-sm font-semibold text-gray-900 md:block",children:t?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/frame-1-1-251120093929.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),(0,h.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"})]}):!s&&(0,h.jsxs)("div",{className:"text-xs text-gray-700",children:[(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,h.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,h.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),tg=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,className:s="",isHideGuidePayment:l})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:i(s),children:(0,h.jsx)(eg,{dateExpired:r,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,isHideGuidePayment:l,children:o})}),(0,h.jsx)("style",{children:`
|
|
329
329
|
.qrcode__scan__container {
|
|
330
330
|
padding: 15px;
|
|
331
331
|
background-color: white;
|
|
@@ -393,7 +393,7 @@
|
|
|
393
393
|
transform: translate3d(0, 30%, 0);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
`})]}),og=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:r,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:c,dateExpired:
|
|
396
|
+
`})]}),og=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:r,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:c,dateExpired:d,priceOrder:p,titleOrder:f,isHideGuidePayment:u})=>{let[x,R]=da.default.useState(void 0);return da.default.useEffect(()=>{a?pd(a).then(R).catch(()=>R(void 0)):R(void 0)},[a]),da.default.useEffect(()=>{t&&x&&typeof s=="function"&&!o&&s()},[t,x,s,o]),(0,h.jsxs)("div",{className:"relative z-[1]",children:[(0,h.jsxs)("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:c,children:[(0,h.jsx)("img",{className:"pointer-events-none absolute right-6 top-14 hidden select-none md:flex",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250821154232-638913877527374430.png",alt:"pattern-qr"}),(0,h.jsx)("div",{className:i("mb-2 hidden text-base font-bold text-gray-900 md:block",l&&"opacity-0 md:opacity-100"),children:f||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),l&&(0,h.jsx)("div",{className:"visible absolute left-0 right-0 top-0 z-20 h-full w-full cursor-pointer overflow-hidden opacity-100 md:hidden md:select-none",children:(0,h.jsx)("img",{src:l,alt:"QR Code",className:"absolute left-1/2 top-1/2 max-h-full max-w-none -translate-x-1/2 -translate-y-1/2"})}),(0,h.jsxs)(tg,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:d,priceOrder:p,isHideGuidePayment:u,children:[t&&x&&!o&&(0,h.jsx)(ud.QRCodeSVG,{value:t,size:215,imageSettings:{src:`${x}`,height:40,width:40,excavate:!0},level:"H"}),r&&(0,h.jsx)("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:(0,h.jsx)("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&(0,h.jsx)("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:(0,h.jsx)(Vr,{size:"lg"})})]})]}),(0,h.jsxs)("div",{className:"qrcode__guide relative z-10 select-none bg-pink-50 bg-repeat-y px-5 pb-5 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[(0,h.jsxs)("div",{className:i("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[(0,h.jsxs)("div",{className:"ripple size-5 rounded-full",children:[(0,h.jsx)("div",{className:"ripple-1"}),(0,h.jsx)("div",{className:"ripple-2"})]}),(0,h.jsx)("img",{className:"qrcode__hand relative z-10 -mt-1 size-7 select-none object-contain drop-shadow-lg",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),!u&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),(0,h.jsx)(vi,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:(0,h.jsxs)("div",{className:"flex cursor-pointer items-center justify-center space-x-1 text-center text-sm font-semibold text-pink-600",children:[(0,h.jsx)("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",(0,h.jsx)(gd.LucideMessageCircleQuestion,{className:"size-4"})," "]})})]}),(0,h.jsx)("style",{children:`
|
|
397
397
|
.ripple {
|
|
398
398
|
box-sizing: border-box;
|
|
399
399
|
position: relative;
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
transform: scale(1) translateY(0);
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
`})]})]})},vd=og;var pa=require("react/jsx-runtime"),ag="https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",rg=["qrcode__gradient","qrcode__guide","qrcode__title"],ig=e=>!rg.some(o=>e.classList?.contains(o)),xd=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:c,isAIOQR:p=!0,isHideGuidePayment:d=!1})=>{let f=(0,ko.useRef)(null),[u,b]=(0,ko.useState)(null),[R,I]=(0,ko.useState)(!1);return(0,ko.useEffect)(()=>{if(R&&f.current){let T=setTimeout(()=>{f.current&&(0,hd.toPng)(f.current,{filter:ig}).then(B=>{b(B)}).catch(B=>{console.error("Error generating QR image:",B)})},2e3);return()=>clearTimeout(T)}},[R,t]),(0,ko.useEffect)(()=>{e&&I(!1)},[e]),(0,pa.jsx)(pa.Fragment,{children:(0,pa.jsx)("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",c),children:(0,pa.jsx)(vd,{isQrForAll:p,qrImage:a,qrLink:t,logoQr:p?r:ag,expired:o,loading:e,qrCodeRef:f,titleOrder:l,onQrLoaded:()=>{I(!0)},qrImageBase64:u,dateExpired:n,priceOrder:s,isHideGuidePayment:d})})})};var Ve=require("react/jsx-runtime"),ng=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"}}},bd=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return(0,Ve.jsx)(Sr,{placeholder:e.placeholder,value:n||"",onChange:d=>s(d.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,Ve.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ve.jsx)(za,{checked:c,onCheckedChange:d=>{s(d)},disabled:e.disabled,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"}),e.switchLabel&&(0,Ve.jsx)("span",{className:"text-sm text-gray-700",children:e.switchLabel})]});default:let p=ng(e.type);return(0,Ve.jsx)(Lr,{...p,placeholder:e.placeholder,value:n||"",isError:r.error,onChange:d=>{let f=d.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,Ve.jsx)(Qr,{control:o,name:e.name,render:({field:r,fieldState:n})=>(0,Ve.jsxs)(Ga,{className:e.className,children:[e.label&&(0,Ve.jsxs)($a,{htmlFor:e.name,children:[e.label,e.required&&(0,Ve.jsx)("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),(0,Ve.jsx)(ja,{children:a({...r,error:n.error})}),e.description&&(0,Ve.jsx)(Qa,{id:`${e.name}-description`,children:e.description}),(0,Ve.jsx)(Ua,{})]})})};var ks=require("react"),Nd=require("@hookform/resolvers/zod"),wd=require("react-hook-form");var fa=require("zod"),yd=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=fa.z.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=fa.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=fa.z.boolean();break;case"phone":case"number":case"password":case"textarea":default:a=fa.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}),fa.z.object(o)};var Pd=e=>{let o=(0,ks.useMemo)(()=>yd(e),[e]),t=(0,ks.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,wd.useForm)({resolver:(0,Nd.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 ce=require("react/jsx-runtime"),sg=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,lg=({dataHeading:e,dataMedia:o,captchaComponent:t,onSubmit:a,fieldsSchema:r,loading:n=!1,onFieldChange:s,onValidationError:l,dataButtons:c,classNameMedia:p,classNameFormLead:d,classNameWrapper:f,classNameCaptcha:u})=>{let{form:b,errors:R,reset:I}=Pd(r),T=async J=>{try{s&&Object.entries(J).forEach(([W,nt])=>{s(W,nt)}),a&&await a(J,I)}catch(W){if(console.error("Form submission error:",W),l){let nt={};Object.entries(R).forEach(([st,Za])=>{nt[st]={message:Za?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(nt)}}},B=()=>{b?.handleSubmit(T)()},K=()=>{let J=(c?.buttons||[]).map((W,nt)=>{let st=W?.variant==="primary";return nt===0||st?{...W,action:B,isLoading:n,isDisabled:n}:W});return{...c,buttons:J}},X=()=>"space-y-4",jt=()=>(0,ce.jsx)(ce.Fragment,{children:o&&(0,ce.jsx)($,{className:i("mb-6 shrink-0",p),ratio:sg(o?.ratio),children:(0,ce.jsx)("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})}),S=()=>(0,ce.jsxs)("div",{className:i("shadow-small bg-white p-8",d),children:[e&&(0,ce.jsx)(y,{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,ce.jsx)(jr,{...b,children:(0,ce.jsxs)("form",{onSubmit:b.handleSubmit(T),className:"space-y-6",children:[(0,ce.jsx)("div",{className:X(),children:r?.map(J=>(0,ce.jsx)(bd,{field:J,control:b.control},J.name))}),t&&(0,ce.jsx)("div",{className:i("flex",u),children:t}),c&&(0,ce.jsx)(w,{...K()})]})})]});return(0,ce.jsx)(ce.Fragment,{children:(0,ce.jsxs)("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",f),children:[o&&(0,ce.jsx)("div",{className:"shrink-0",children:jt()}),(0,ce.jsx)("div",{className:"relative mx-auto max-w-xl overflow-hidden rounded-lg",children:S()})]})})},Cd=({idSection:e,background:o,className:t,...a})=>(0,ce.jsx)(Y,{className:t,idSection:e,background:o,children:(0,ce.jsx)(lg,{...a})});var Wd=v(require("color"),1),Gd=v(require("tailwindcss/plugin.js"),1);var Rd={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 kd={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Td={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Sd={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Dd={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Md={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Id={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Ad={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Ld={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Fd={white:"#ffffff",black:"#000000",blue:kd,green:Td,pink:Sd,purple:Dd,red:Md,yellow:Id,gray:Ld,orange:Ad};var Ts={...Fd};var Ed={"disabled-opacity":.5,"box-shadow":{small:"0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",medium:"0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",large:"0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"},radius:{none:"0px",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"font-size":{xxs:"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},"line-height":{xxs:"1rem",xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"1","6xl":"1","7xl":"1","8xl":"1","9xl":"1"}};var $t="250ms",zd={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":$t},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":$t},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":$t},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":$t},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":$t},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":$t},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":$t},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":$t},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":$t},".transition-transform-colors-opacity":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":$t}};var Hd={".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 _d={".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 Bd={...Hd,...zd,..._d};var Od=require("flat");function mg(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 Vd=e=>mg((0,Od.flatten)(e,{safe:!0,delimiter:"-"}));var cg=e=>{let o={utilities:{},colors:{}},t=Vd(Ts),a=Ed,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,c,p]=(0,Wd.default)(s).rgb().array(),d=`--${e}-${n}`;o.utilities[r][d]=`${l} ${c} ${p}`,o.colors[n]=`rgb(var(${d}) / <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,p])=>{let d=`${l}-${c}`;o.utilities[r][d]=p});else{let c=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][l]=c}}),o},$d=()=>{let e="mobase",o=cg(e);return(0,Gd.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({...Bd})},{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:{...Ts,...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)`},...Rd}}})};var F=require("react/jsx-runtime"),jd=(0,F.jsxs)(F.Fragment,{children:[(0,F.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,F.jsx)("meta",{name:"distribution",content:"Global"}),(0,F.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,F.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,F.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,F.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,F.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,F.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,F.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,F.jsx)("meta",{name:"language",content:"vietnamese"}),(0,F.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,F.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,F.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,F.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,F.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,F.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,F.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,F.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,F.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,F.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,F.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,F.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,F.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
452
|
+
`})]})]})},vd=og;var pa=require("react/jsx-runtime"),ag="https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",rg=["qrcode__gradient","qrcode__guide","qrcode__title"],ig=e=>!rg.some(o=>e.classList?.contains(o)),xd=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:c,isAIOQR:d=!0,isHideGuidePayment:p=!1})=>{let f=(0,ko.useRef)(null),[u,x]=(0,ko.useState)(null),[R,A]=(0,ko.useState)(!1);return(0,ko.useEffect)(()=>{if(R&&f.current){let k=setTimeout(()=>{f.current&&(0,hd.toPng)(f.current,{filter:ig}).then(oe=>{x(oe)}).catch(oe=>{console.error("Error generating QR image:",oe)})},2e3);return()=>clearTimeout(k)}},[R,t]),(0,ko.useEffect)(()=>{e&&A(!1)},[e]),(0,pa.jsx)(pa.Fragment,{children:(0,pa.jsx)("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",c),children:(0,pa.jsx)(vd,{isQrForAll:d,qrImage:a,qrLink:t,logoQr:d?r:ag,expired:o,loading:e,qrCodeRef:f,titleOrder:l,onQrLoaded:()=>{A(!0)},qrImageBase64:u,dateExpired:n,priceOrder:s,isHideGuidePayment:p})})})};var Ve=require("react/jsx-runtime"),ng=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"}}},bd=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return(0,Ve.jsx)(Sr,{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,Ve.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ve.jsx)(za,{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,Ve.jsx)("span",{className:"text-sm text-gray-700",children:e.switchLabel})]});default:let d=ng(e.type);return(0,Ve.jsx)(Lr,{...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,Ve.jsx)(Qr,{control:o,name:e.name,render:({field:r,fieldState:n})=>(0,Ve.jsxs)(Ga,{className:e.className,children:[e.label&&(0,Ve.jsxs)($a,{htmlFor:e.name,children:[e.label,e.required&&(0,Ve.jsx)("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),(0,Ve.jsx)(ja,{children:a({...r,error:n.error})}),e.description&&(0,Ve.jsx)(Qa,{id:`${e.name}-description`,children:e.description}),(0,Ve.jsx)(Ua,{})]})})};var ks=require("react"),Nd=require("@hookform/resolvers/zod"),wd=require("react-hook-form");var fa=require("zod"),yd=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=fa.z.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=fa.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=fa.z.boolean();break;case"phone":case"number":case"password":case"textarea":default:a=fa.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}),fa.z.object(o)};var Pd=e=>{let o=(0,ks.useMemo)(()=>yd(e),[e]),t=(0,ks.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,wd.useForm)({resolver:(0,Nd.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 ce=require("react/jsx-runtime"),sg=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,lg=({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:x,errors:R,reset:A}=Pd(r),k=async Z=>{try{s&&Object.entries(Z).forEach(([W,st])=>{s(W,st)}),a&&await a(Z,A)}catch(W){if(console.error("Form submission error:",W),l){let st={};Object.entries(R).forEach(([lt,Za])=>{st[lt]={message:Za?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(st)}}},oe=()=>{x?.handleSubmit(k)()},B=()=>{let Z=(c?.buttons||[]).map((W,st)=>{let lt=W?.variant==="primary";return st===0||lt?{...W,action:oe,isLoading:n,isDisabled:n}:W});return{...c,buttons:Z}},Y=()=>"space-y-4",nt=()=>(0,ce.jsx)(ce.Fragment,{children:o&&(0,ce.jsx)($,{className:i("mb-6 shrink-0",d),ratio:sg(o?.ratio),children:(0,ce.jsx)("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})}),M=()=>(0,ce.jsxs)("div",{className:i("shadow-small bg-white p-8",p),children:[e&&(0,ce.jsx)(y,{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,ce.jsx)(jr,{...x,children:(0,ce.jsxs)("form",{onSubmit:x.handleSubmit(k),className:"space-y-6",children:[(0,ce.jsx)("div",{className:Y(),children:r?.map(Z=>(0,ce.jsx)(bd,{field:Z,control:x.control},Z.name))}),t&&(0,ce.jsx)("div",{className:i("flex",u),children:t}),c&&(0,ce.jsx)(w,{...B()})]})})]});return(0,ce.jsx)(ce.Fragment,{children:(0,ce.jsxs)("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",f),children:[o&&(0,ce.jsx)("div",{className:"shrink-0",children:nt()}),(0,ce.jsx)("div",{className:"relative mx-auto max-w-xl overflow-hidden rounded-lg",children:M()})]})})},Cd=({idSection:e,background:o,className:t,...a})=>(0,ce.jsx)(X,{className:t,idSection:e,background:o,children:(0,ce.jsx)(lg,{...a})});var Wd=v(require("color"),1),Gd=v(require("tailwindcss/plugin.js"),1);var Rd={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 kd={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Td={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Sd={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Dd={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Md={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Id={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Ad={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Ld={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Fd={white:"#ffffff",black:"#000000",blue:kd,green:Td,pink:Sd,purple:Dd,red:Md,yellow:Id,gray:Ld,orange:Ad};var Ts={...Fd};var Ed={"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 jt="250ms",zd={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":jt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":jt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":jt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":jt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":jt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":jt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":jt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":jt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":jt},".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":jt}};var Hd={".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 _d={".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 Bd={...Hd,...zd,..._d};var Od=require("flat");function mg(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 Vd=e=>mg((0,Od.flatten)(e,{safe:!0,delimiter:"-"}));var cg=e=>{let o={utilities:{},colors:{}},t=Vd(Ts),a=Ed,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,c,d]=(0,Wd.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},$d=()=>{let e="mobase",o=cg(e);return(0,Gd.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({...Bd})},{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:{...Ts,...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)`},...Rd}}})};var F=require("react/jsx-runtime"),jd=(0,F.jsxs)(F.Fragment,{children:[(0,F.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,F.jsx)("meta",{name:"distribution",content:"Global"}),(0,F.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,F.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,F.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,F.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,F.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,F.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,F.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,F.jsx)("meta",{name:"language",content:"vietnamese"}),(0,F.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,F.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,F.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,F.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,F.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,F.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,F.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,F.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,F.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,F.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,F.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,F.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,F.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,F.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
453
453
|
"@context": "https://schema.org/",
|
|
454
454
|
"@type": "WebSite",
|
|
455
455
|
"@id":"https://www.momo.vn/#website",
|