@momo-webplatform/mobase 0.2.51 → 0.2.53
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 +17 -17
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +118 -18
- package/dist/esm/index.d.ts +118 -18
- package/dist/esm/index.js +16 -16
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var _l=Object.create;var Ro=Object.defineProperty;var Fl=Object.getOwnPropertyDescriptor;var zl=Object.getOwnPropertyNames;var Bl=Object.getPrototypeOf,Vl=Object.prototype.hasOwnProperty;var Ol=(e,t)=>{for(var o in t)Ro(e,o,{get:t[o],enumerable:!0})},mr=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zl(t))!Vl.call(e,i)&&i!==o&&Ro(e,i,{get:()=>t[i],enumerable:!(a=Fl(t,i))||a.enumerable});return e};var g=(e,t,o)=>(o=e!=null?_l(Bl(e)):{},mr(t||!e||!e.__esModule?Ro(o,"default",{value:e,enumerable:!0}):o,e)),Wl=e=>mr(Ro({},"__esModule",{value:!0}),e);var cc={};Ol(cc,{Accordion:()=>lt,AccordionContent:()=>dt,AccordionItem:()=>mt,AccordionTrigger:()=>ct,ActionButton:()=>ut,AlertDialog:()=>$r,AlertDialogAction:()=>Va,AlertDialogCancel:()=>Oa,AlertDialogContent:()=>Ha,AlertDialogDescription:()=>Ba,AlertDialogFooter:()=>Fa,AlertDialogHeader:()=>_a,AlertDialogOverlay:()=>Uo,AlertDialogPortal:()=>Ea,AlertDialogTitle:()=>za,AlertDialogTrigger:()=>Gr,AspectRatio:()=>he,Badge:()=>Kn,BlogSection:()=>Lr,Breadcrumb:()=>Na,BreadcrumbEllipsis:()=>Sa,BreadcrumbItem:()=>Ca,BreadcrumbLink:()=>Ra,BreadcrumbList:()=>Pa,BreadcrumbPage:()=>Ta,BreadcrumbSeparator:()=>ka,Button:()=>ge,CTASection:()=>fl,Calendar:()=>ro,Callout:()=>_n,Card:()=>ui,CardContent:()=>hi,CardDescription:()=>xi,CardFooter:()=>yi,CardHeader:()=>vi,CardTitle:()=>bi,Carousel:()=>no,CarouselContent:()=>so,CarouselItem:()=>lo,CarouselNext:()=>co,CarouselPrevious:()=>mo,Checkbox:()=>io,ChoiceboxGroup:()=>Di,ChoiceboxGroupItem:()=>Mi,ChoiceboxMultiItem:()=>Ii,Combobox:()=>Ln,ComboboxContent:()=>An,ComboboxTrigger:()=>In,Command:()=>ra,CommandDialog:()=>Dn,CommandEmpty:()=>Pi,CommandGroup:()=>Ci,CommandInput:()=>wi,CommandItem:()=>Ti,CommandList:()=>Ni,CommandSeparator:()=>Ri,CommandShortcut:()=>ki,Comment:()=>ps,DatePicker:()=>Wr,Dialog:()=>ft,DialogBody:()=>to,DialogClose:()=>br,DialogContent:()=>Ze,DialogDescription:()=>wa,DialogFooter:()=>ha,DialogHeader:()=>xa,DialogOverlay:()=>ko,DialogPortal:()=>ba,DialogQr:()=>gt,DialogTitle:()=>ya,DialogTrigger:()=>To,DropdownMenu:()=>Ss,DropdownMenuCheckboxItem:()=>qi,DropdownMenuContent:()=>Qi,DropdownMenuGroup:()=>Ms,DropdownMenuItem:()=>Xi,DropdownMenuLabel:()=>Ki,DropdownMenuPortal:()=>Is,DropdownMenuRadioGroup:()=>Ls,DropdownMenuRadioItem:()=>Zi,DropdownMenuSeparator:()=>Yi,DropdownMenuShortcut:()=>Ji,DropdownMenuSub:()=>As,DropdownMenuSubContent:()=>Ui,DropdownMenuSubTrigger:()=>ji,DropdownMenuTrigger:()=>Ds,FAQSection:()=>ll,FeatureSection:()=>ol,Footer:()=>Sn,Form:()=>Cs,FormControl:()=>Wi,FormDescription:()=>$i,FormField:()=>Ts,FormItem:()=>Vi,FormLabel:()=>Oi,FormMessage:()=>Gi,HeaderNavigation:()=>fi,Heading:()=>Mo,HeadingGroup:()=>Ao,HeadingSub:()=>Io,HeadingTagline:()=>Do,HeroSection:()=>$s,HorizontalContent:()=>Ot,HorizontalNext:()=>$t,HorizontalPrevious:()=>Wt,HorizontalScroll:()=>Vt,HowItWorksSection:()=>Hs,IconButton:()=>Re,LightBoxGalleryContent:()=>sa,LightboxGallery:()=>na,LightboxThumbnail:()=>jn,NavigationMenu:()=>go,NavigationMenuContent:()=>ho,NavigationMenuItem:()=>vo,NavigationMenuLink:()=>Qt,NavigationMenuList:()=>uo,NavigationMenuTrigger:()=>xo,NewsSection:()=>dl,Pagination:()=>Wa,Popover:()=>Gt,PopoverContent:()=>St,PopoverTrigger:()=>jt,ProgressSteps:()=>hs,ProgressStepsItem:()=>xs,ProgressStepsItemTrigger:()=>bs,Progressbar:()=>Hi,RadioGroup:()=>ci,RadioGroupItem:()=>di,ReadMoreLite:()=>la,SearchBar:()=>Bn,Select:()=>rn,SelectContent:()=>ii,SelectGroup:()=>sn,SelectItem:()=>ln,SelectLabel:()=>ri,SelectScrollDownButton:()=>ta,SelectScrollUpButton:()=>ea,SelectSeparator:()=>ni,SelectTrigger:()=>ai,SelectValue:()=>nn,SiteMeta:()=>El,Skeleton:()=>es,Slider:()=>_i,SocialProofSection:()=>js,Spinner:()=>os,Stepper:()=>oi,Switch:()=>li,Tabs:()=>vt,TabsContent:()=>et,TabsList:()=>Ye,TabsTrigger:()=>Je,TestimonialSection:()=>nl,TextArea:()=>Xr,TextButton:()=>Ce,TextInput:()=>on,ToastAction:()=>Xa,Toaster:()=>Yr,Tooltip:()=>en,TooltipArrow:()=>Ja,TooltipContent:()=>ei,TooltipProvider:()=>Jr,TooltipTrigger:()=>tn,badgeVariants:()=>Ai,buttonVariants:()=>Me,mobaseTW:()=>Ll,navigationMenuTriggerStyle:()=>bo,textButtonVariants:()=>Ma,toast:()=>ja,useFormField:()=>Kt,useToast:()=>Ko});module.exports=Wl(cc);var Jt=g(require("react"),1),Ne=g(require("@radix-ui/react-accordion"),1),pr=require("@heroicons/react/20/solid");var $l=g(require("react"),1),dr=require("tailwind-merge");var Xe={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var cr={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 Yt=[{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"}],va=[{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 re={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};function r(...e){return(0,dr.twMerge)(e)}var qe=require("react/jsx-runtime"),lt=Jt.forwardRef(({className:e,...t},o)=>(0,qe.jsx)(Ne.Root,{ref:o,...t}));lt.displayName="AccordionRoot";var mt=Jt.forwardRef(({className:e,...t},o)=>(0,qe.jsx)(Ne.Item,{ref:o,className:r("border-b border-gray-200",e),...t}));mt.displayName="AccordionItem";var ct=Jt.forwardRef(({className:e,children:t,...o},a)=>(0,qe.jsx)(Ne.Header,{className:"flex",children:(0,qe.jsxs)(Ne.Trigger,{ref:a,className:r("flex flex-1 items-center text-left justify-between py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 text-gray-900",e),...o,children:[t,(0,qe.jsx)(pr.ChevronDownIcon,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));ct.displayName=Ne.Trigger.displayName;var dt=Jt.forwardRef(({className:e,children:t,...o},a)=>(0,qe.jsx)(Ne.Content,{ref:a,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...o,children:(0,qe.jsx)("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:t})}));dt.displayName=Ne.Content.displayName;var fr=g(require("react"),1),gr=require("@radix-ui/react-slot"),ur=require("class-variance-authority");var ne=require("react/jsx-runtime"),Gl=({className:e})=>(0,ne.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,ne.jsx)("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),(0,ne.jsx)("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),(0,ne.jsx)("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),(0,ne.jsx)("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),(0,ne.jsx)("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),(0,ne.jsx)("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),(0,ne.jsx)("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),(0,ne.jsx)("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),(0,ne.jsx)("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),(0,ne.jsx)("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),(0,ne.jsx)("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),(0,ne.jsx)("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),_t=Gl;var pt=require("react/jsx-runtime"),Me=(0,ur.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),ge=fr.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},c)=>{let p=a?gr.Slot:"button",f=r(Me({variant:t,size:o,className:e}),{"cursor-wait":i});return(0,pt.jsx)(pt.Fragment,{children:a?(0,pt.jsx)(p,{className:f,type:"button",disabled:n,ref:c,...s,children:s.children}):(0,pt.jsxs)(p,{className:f,type:"button",disabled:n,ref:c,...s,children:[i&&(0,pt.jsx)(_t,{className:`${o==="default"||o==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});ge.displayName="Button";var eo=g(require("react"),1),z=g(require("@radix-ui/react-dialog"),1);var vr=require("@heroicons/react/16/solid"),le=require("react/jsx-runtime"),ft=z.Root,To=z.Trigger,ba=z.Portal,br=z.Close,ko=eo.forwardRef(({className:e,...t},o)=>(0,le.jsx)(z.Overlay,{ref:o,className:r("fixed inset-0 z-50 bg-black/60 !duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ko.displayName=z.Overlay.displayName;var Ze=eo.forwardRef(({className:e,positionRightCloseBtn:t,hideCloseBtn:o=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:c,...p},f)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(-32px_+_100vh)] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},u={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},x={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},D=[d.base,d[i],u[a],x[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,le.jsxs)(ba,{children:[(0,le.jsx)(ko,{}),(0,le.jsxs)(z.Content,{ref:f,className:r(...D),...p,children:[c,!o&&(0,le.jsxs)(z.Close,{className:r("absolute md:top-4 top-2 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 text-gray-900 w-8 h-8 flex justify-center items-center rounded-full before:opacity-0 hover:before:opacity-100 before:transition-opacity before:z-[-1] before:content-[''] before:absolute before:inset-0 before:rounded-full before:select-none before:left-0 before:top-0 before:bg-gray-200 left-3 md:left-auto md:right-4",t&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[(0,le.jsx)(vr.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,le.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Ze.displayName=z.Content.displayName;var xa=({className:e,...t})=>(0,le.jsx)("div",{className:r("dialog-header py-2 md:py-4 h-12 md:h-16 px-10 md:px-12 items-center justify-center flex border-b border-gray-200 w-full shrink-0",e),...t});xa.displayName="DialogHeader";var to=({className:e,isCondensed:t=!1,...o})=>(0,le.jsx)("div",{className:r("dialog-body p-6 flex-1 overflow-y-auto",t&&"p-5",e),...o});to.displayName="DialogBody";var ha=({className:e,isDivider:t=!0,...o})=>(0,le.jsx)("div",{className:r("dialog-footer flex sm:flex-row justify-center [&>*]:basis-1/2 [&>*]:sm:basis-auto sm:justify-end space-x-2 px-6 pb-4 shrink-0",t&&"border-gray-200 border-t py-4",e),...o});ha.displayName="DialogFooter";var ya=eo.forwardRef(({className:e,...t},o)=>(0,le.jsx)(z.Title,{ref:o,className:r("text-base font-semibold line-clamp-1 max-w-full",e),...t}));ya.displayName=z.Title.displayName;var wa=eo.forwardRef(({className:e,...t},o)=>(0,le.jsx)(z.Description,{ref:o,className:r("text-sm text-gray-700",e),...t}));wa.displayName=z.Description.displayName;var xr=require("qrcode.react"),v=require("react/jsx-runtime"),jl=({img:e="",children:t,isQrForAll:o})=>(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"qrcode__scan__container",children:(0,v.jsxs)("div",{className:"qrcode__scan",children:[(0,v.jsx)("div",{className:"qrcode__gradient",children:(0,v.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,v.jsx)("div",{className:"qrcode__border",children:(0,v.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,v.jsx)("div",{className:"qrcode__image p-4",children:e?(0,v.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):t})]})}),(0,v.jsx)("div",{className:"mt-4 text-sm text-white",children:o?(0,v.jsxs)(v.Fragment,{children:[(0,v.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,v.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,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,v.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,v.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,v.jsx)("style",{children:`
|
|
1
|
+
"use strict";var am=Object.create;var Eo=Object.defineProperty;var im=Object.getOwnPropertyDescriptor;var rm=Object.getOwnPropertyNames;var nm=Object.getPrototypeOf,sm=Object.prototype.hasOwnProperty;var lm=(e,o)=>{for(var t in o)Eo(e,t,{get:o[t],enumerable:!0})},wr=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of rm(o))!sm.call(e,i)&&i!==t&&Eo(e,i,{get:()=>o[i],enumerable:!(a=im(o,i))||a.enumerable});return e};var u=(e,o,t)=>(t=e!=null?am(nm(e)):{},wr(o||!e||!e.__esModule?Eo(t,"default",{value:e,enumerable:!0}):t,e)),mm=e=>wr(Eo({},"__esModule",{value:!0}),e);var zc={};lm(zc,{Accordion:()=>Et,AccordionContent:()=>Ft,AccordionItem:()=>zt,AccordionTrigger:()=>_t,ActionButton:()=>Nt,AlertDialog:()=>an,AlertDialogAction:()=>Za,AlertDialogCancel:()=>Ka,AlertDialogContent:()=>ja,AlertDialogDescription:()=>Xa,AlertDialogFooter:()=>Qa,AlertDialogHeader:()=>Ua,AlertDialogOverlay:()=>aa,AlertDialogPortal:()=>Ga,AlertDialogTitle:()=>qa,AlertDialogTrigger:()=>rn,AspectRatio:()=>j,Badge:()=>vs,BlogSection:()=>Qr,Breadcrumb:()=>Aa,BreadcrumbEllipsis:()=>Fa,BreadcrumbItem:()=>Ha,BreadcrumbLink:()=>Ea,BreadcrumbList:()=>La,BreadcrumbPage:()=>za,BreadcrumbSeparator:()=>_a,Button:()=>he,CTASection:()=>Hl,Calendar:()=>ho,Callout:()=>os,Card:()=>Di,CardContent:()=>Li,CardDescription:()=>Ai,CardFooter:()=>Hi,CardHeader:()=>Mi,CardTitle:()=>Ii,Carousel:()=>Ze,CarouselContent:()=>Ke,CarouselItem:()=>Ye,CarouselNext:()=>Wt,CarouselPrevious:()=>Ot,Checkbox:()=>xo,ChoiceboxGroup:()=>$i,ChoiceboxGroupItem:()=>Gi,ChoiceboxMultiItem:()=>ji,Combobox:()=>Jn,ComboboxContent:()=>Yn,ComboboxTrigger:()=>Kn,Command:()=>ba,CommandDialog:()=>Xn,CommandEmpty:()=>_i,CommandGroup:()=>Fi,CommandInput:()=>Ei,CommandItem:()=>Vi,CommandList:()=>zi,CommandSeparator:()=>Bi,CommandShortcut:()=>Oi,Comment:()=>Is,DatePicker:()=>on,Dialog:()=>$e,DialogBody:()=>Bt,DialogClose:()=>Ir,DialogContent:()=>He,DialogDescription:()=>Ia,DialogFooter:()=>Ma,DialogHeader:()=>go,DialogOverlay:()=>Fo,DialogPortal:()=>Da,DialogQr:()=>wt,DialogTitle:()=>uo,DialogTrigger:()=>_o,DropdownMenu:()=>Qs,DropdownMenuCheckboxItem:()=>mr,DropdownMenuContent:()=>sr,DropdownMenuGroup:()=>Xs,DropdownMenuItem:()=>lr,DropdownMenuLabel:()=>dr,DropdownMenuPortal:()=>Zs,DropdownMenuRadioGroup:()=>Ys,DropdownMenuRadioItem:()=>cr,DropdownMenuSeparator:()=>pr,DropdownMenuShortcut:()=>fr,DropdownMenuSub:()=>Ks,DropdownMenuSubContent:()=>nr,DropdownMenuSubTrigger:()=>rr,DropdownMenuTrigger:()=>qs,FAQSection:()=>Dl,FeatureSection:()=>Nl,Footer:()=>qn,Form:()=>$s,FormControl:()=>or,FormDescription:()=>ar,FormField:()=>js,FormItem:()=>er,FormLabel:()=>tr,FormMessage:()=>ir,GuideSection:()=>dn,HeaderNavigation:()=>ki,Heading:()=>Oo,HeadingGroup:()=>$o,HeadingSub:()=>Wo,HeadingTagline:()=>Vo,HeroSection:()=>ml,HorizontalContent:()=>Ue,HorizontalNext:()=>qe,HorizontalPrevious:()=>Qe,HorizontalScroll:()=>je,HowItWorksSection:()=>el,IconButton:()=>Se,LightBoxGalleryContent:()=>ha,LightboxGallery:()=>xa,LightboxThumbnail:()=>cs,NavigationMenu:()=>Co,NavigationMenuContent:()=>Do,NavigationMenuItem:()=>To,NavigationMenuLink:()=>ro,NavigationMenuList:()=>Ro,NavigationMenuTrigger:()=>So,NewsSection:()=>Al,Pagination:()=>oi,Popover:()=>oo,PopoverContent:()=>$t,PopoverTrigger:()=>ao,ProgressSteps:()=>Fs,ProgressStepsItem:()=>_s,ProgressStepsItemTrigger:()=>zs,Progressbar:()=>Xi,RadioGroup:()=>Ci,RadioGroupItem:()=>Ri,ReadMoreLite:()=>ya,SearchBar:()=>rs,Select:()=>Rn,SelectContent:()=>xi,SelectGroup:()=>kn,SelectItem:()=>Sn,SelectLabel:()=>hi,SelectScrollDownButton:()=>fa,SelectScrollUpButton:()=>pa,SelectSeparator:()=>yi,SelectTrigger:()=>bi,SelectValue:()=>Tn,SiteMeta:()=>tm,Skeleton:()=>hs,Slider:()=>Zi,SocialProofSection:()=>dl,Spinner:()=>ws,Stepper:()=>vi,Switch:()=>Ni,Tabs:()=>Xe,TabsContent:()=>Fe,TabsList:()=>ze,TabsTrigger:()=>_e,TestimonialSection:()=>Tl,TextArea:()=>un,TextButton:()=>ue,TextInput:()=>Pn,ToastAction:()=>li,Toaster:()=>hn,Tooltip:()=>wn,TooltipArrow:()=>fi,TooltipContent:()=>gi,TooltipProvider:()=>yn,TooltipTrigger:()=>Nn,badgeVariants:()=>Ui,buttonVariants:()=>Le,mobaseTW:()=>em,navigationMenuTriggerStyle:()=>ko,textButtonVariants:()=>Va,toast:()=>ri,useFormField:()=>mo,useToast:()=>ma});module.exports=mm(zc);var po=u(require("react"),1),Te=u(require("@radix-ui/react-accordion"),1),Tr=require("@heroicons/react/20/solid");var cm=u(require("react"),1),Pr=require("tailwind-merge");var ct={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 Nr={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 co=[{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"}],Sa=[{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 me={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 Cr=require("@artsy/fresnel");function r(...e){return(0,Pr.twMerge)(e)}var Rr=(0,Cr.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Bc=Rr.createMediaStyle(),{Media:Kt,MediaContextProvider:zo}=Rr;var dt=require("react/jsx-runtime"),Et=po.forwardRef(({className:e,...o},t)=>(0,dt.jsx)(Te.Root,{ref:t,...o}));Et.displayName="AccordionRoot";var zt=po.forwardRef(({className:e,...o},t)=>(0,dt.jsx)(Te.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));zt.displayName="AccordionItem";var _t=po.forwardRef(({className:e,children:o,...t},a)=>(0,dt.jsx)(Te.Header,{className:"flex",children:(0,dt.jsxs)(Te.Trigger,{ref:a,className:r("flex flex-1 items-center text-left py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 justify-between text-gray-900",e),...t,children:[o,(0,dt.jsx)(Tr.ChevronDownIcon,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));_t.displayName=Te.Trigger.displayName;var Ft=po.forwardRef(({className:e,children:o,...t},a)=>(0,dt.jsx)(Te.Content,{ref:a,className:" text-sm overflow-hidden transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...t,children:(0,dt.jsx)("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));Ft.displayName=Te.Content.displayName;var kr=u(require("react"),1),Sr=require("@radix-ui/react-slot"),Dr=require("class-variance-authority");var ce=require("react/jsx-runtime"),dm=({className:e})=>(0,ce.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,ce.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,ce.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,ce.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,ce.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,ce.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,ce.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,ce.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,ce.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,ce.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,ce.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,ce.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,ce.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"})]}),Yt=dm;var yt=require("react/jsx-runtime"),Le=(0,Dr.cva)("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),he=kr.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},m)=>{let f=a?Sr.Slot:"button",p=r(Le({variant:o,size:t,className:e}),{"cursor-wait":i});return(0,yt.jsx)(yt.Fragment,{children:a?(0,yt.jsx)(f,{className:p,type:"button",disabled:n,ref:m,...s,children:s.children}):(0,yt.jsxs)(f,{className:p,type:"button",disabled:n,ref:m,...s,children:[i&&(0,yt.jsx)(Yt,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});he.displayName="Button";var fo=u(require("react"),1),Mr=require("@heroicons/react/16/solid"),$=u(require("@radix-ui/react-dialog"),1);var pe=require("react/jsx-runtime"),$e=$.Root,_o=$.Trigger,Da=$.Portal,Ir=$.Close,Fo=fo.forwardRef(({className:e,...o},t)=>(0,pe.jsx)($.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));Fo.displayName=$.Overlay.displayName;var He=fo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:m,...f},p)=>{let c={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},g={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},b={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},H=[c.base,c[i],g[a],b[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,pe.jsxs)(Da,{children:[(0,pe.jsx)(Fo,{}),(0,pe.jsxs)($.Content,{ref:p,className:r(...H),...f,children:[m,!t&&(0,pe.jsxs)($.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[(0,pe.jsx)(Mr.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,pe.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});He.displayName=$.Content.displayName;var go=({className:e,...o})=>(0,pe.jsx)("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});go.displayName="DialogHeader";var Bt=({className:e,isCondensed:o=!1,...t})=>(0,pe.jsx)("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Bt.displayName="DialogBody";var Ma=({className:e,isDivider:o=!0,...t})=>(0,pe.jsx)("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});Ma.displayName="DialogFooter";var uo=fo.forwardRef(({className:e,...o},t)=>(0,pe.jsx)($.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));uo.displayName=$.Title.displayName;var Ia=fo.forwardRef(({className:e,...o},t)=>(0,pe.jsx)($.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));Ia.displayName=$.Description.displayName;var Ar=require("qrcode.react"),x=require("react/jsx-runtime"),pm=({img:e="",children:o,isQrForAll:t})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"qrcode__scan__container",children:(0,x.jsxs)("div",{className:"qrcode__scan",children:[(0,x.jsx)("div",{className:"qrcode__gradient",children:(0,x.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,x.jsx)("div",{className:"qrcode__border",children:(0,x.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,x.jsx)("div",{className:"qrcode__image p-4",children:e?(0,x.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),(0,x.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),(0,x.jsx)("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,x.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",(0,x.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,x.jsx)("style",{children:`
|
|
2
2
|
.qrcode__scan__container {
|
|
3
3
|
padding: 15px;
|
|
4
4
|
background-color: white;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
transform: translate3d(0, 30%, 0);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
`})]}),gt=({className:e,children:t,title:o,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:c=!1,...p})=>(0,v.jsx)(ft,{...p,children:(0,v.jsx)(Ze,{className:r("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:(0,v.jsx)(to,{className:"p-0",children:(0,v.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,v.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:t||(0,v.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,v.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,v.jsx)("div",{className:"flex-none",children:(0,v.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,v.jsxs)("div",{className:"flex-1 pl-4",children:[(0,v.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,v.jsx)("div",{className:"mt-1 text-gray-500 ",children:c?"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,v.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,v.jsx)("div",{className:"flex-none",children:(0,v.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,v.jsxs)("div",{className:"flex-1 pl-4",children:[(0,v.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,v.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,v.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,v.jsx)("div",{className:"flex-none",children:(0,v.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,v.jsxs)("div",{className:"flex-1 pl-4",children:[(0,v.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,v.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,v.jsx)("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,v.jsxs)("div",{className:"px-5 py-10 text-center",children:[o&&(0,v.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:o}),(0,v.jsxs)("div",{className:"relative",children:[c&&(0,v.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,v.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,v.jsx)(jl,{img:i,isQrForAll:c,children:n&&(0,v.jsx)(xr.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 wr=require("react");var Ft=require("react"),hr=g(require("ua-parser-js"),1),Ul=()=>(0,hr.default)().device.type==="mobile",Ql=typeof window<"u"?Ft.useLayoutEffect:Ft.useEffect,yr=()=>{let[e,t]=(0,Ft.useState)(!1);return Ql(()=>{t(Ul())},[]),e};var Ke=require("react/jsx-runtime"),ut=({action:e,newTab:t,offset:o,dialogQrProps:a,className:i,children:n,...s})=>{let[c,p]=(0,wr.useState)(!1),f=yr(),d=!!a?.qrLink,u=()=>{let Z=d?a?.qrLink:e;return typeof Z=="string"?Z.trim():""},x=()=>{let Z=u();!Z&&typeof e!="function"||(typeof e=="function"?e():window.open(Z,t?"_blank":"_self"))},D=(Z,K=0)=>{let W=document.querySelector(Z);if(!W)return;let ua=W.getBoundingClientRect().top+window.scrollY-K;window.scrollTo({top:ua,behavior:"smooth"})},E=()=>{typeof e=="string"&&e.startsWith("#")?D(e,o):x()},ie=()=>(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(ge,{...s,className:i,onClick:()=>p(!0),"data-name":"button-action-with-qr",children:n}),(0,Ke.jsx)(gt,{...a,open:c,onOpenChange:()=>p(!1),qrLink:a?.qrLink||""})]});return d?f?a?.isQrForAll?ie():(0,Ke.jsx)(ge,{...s,className:i,onClick:x,"data-name":"button-action-with-qr",children:n}):ie():(0,Ke.jsx)(ge,{...s,onClick:E,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var zt=g(require("react"),1),So=require("@radix-ui/react-icons"),Nr=require("@radix-ui/react-slot");var Pe=require("react/jsx-runtime"),Na=zt.forwardRef(({className:e,...t},o)=>(0,Pe.jsx)("nav",{ref:o,"aria-label":"breadcrumb",className:r("",e),...t}));Na.displayName="Breadcrumb";var Pa=zt.forwardRef(({className:e,...t},o)=>(0,Pe.jsx)("ol",{ref:o,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...t}));Pa.displayName="BreadcrumbList";var Ca=zt.forwardRef(({className:e,...t},o)=>(0,Pe.jsx)("li",{ref:o,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...t}));Ca.displayName="BreadcrumbItem";var Ra=zt.forwardRef(({asChild:e,className:t,...o},a)=>(0,Pe.jsx)(e?Nr.Slot:"a",{ref:a,className:r("transition-colors hover:text-foreground",t),...o}));Ra.displayName="BreadcrumbLink";var Ta=zt.forwardRef(({className:e,...t},o)=>(0,Pe.jsx)("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...t}));Ta.displayName="BreadcrumbPage";var ka=({children:e,className:t,...o})=>(0,Pe.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",t),...o,children:e??(0,Pe.jsx)(So.ChevronRightIcon,{className:"w-2 h-2"})});ka.displayName="BreadcrumbSeparator";var Sa=({className:e,...t})=>(0,Pe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...t,children:[(0,Pe.jsx)(So.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Pe.jsx)("span",{className:"sr-only",children:"More"})]});Sa.displayName="BreadcrumbElipssis";var oo=require("react");var Bt=require("react/jsx-runtime"),Da=(0,oo.createContext)({align:"center"}),Do=({color:e="pink",size:t="small",isTruncated:o=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return(0,Bt.jsx)("div",{className:r("mb-1 font-semibold",n[e],s[t],o&&"truncate",a),children:i})},Mo=({tagHeading:e="h2",size:t="small",color:o="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,c={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},p={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:f}=(0,oo.useContext)(Da);return(0,Bt.jsx)(s,{className:r("font-bold max-w-4xl",f==="center"?"mx-auto":f==="right"?"ml-auto":"",c[o],p[t],a&&"truncate","text-balance md:text-wrap",i),children:n})},Io=({color:e="regular",size:t="small",marginTop:o="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},c={small:"md:text-base text-sm",large:"md:text-lg text-base"},p={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:f}=(0,oo.useContext)(Da);return(0,Bt.jsx)("div",{className:r(f==="center"?"mx-auto max-w-2xl":f==="right"?"max-w-4xl ml-auto":"max-w-4xl",s[e],c[t],p[o],a&&"truncate",i),children:n})},Ao=({className:e,align:t="center",children:o})=>(0,Bt.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[t],e),children:(0,Bt.jsx)(Da.Provider,{value:{align:t},children:o})});var Lo=g(require("html-react-parser"),1);var _e=require("react/jsx-runtime"),Y=({idSection:e,className:t,background:o,children:a})=>(0,_e.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",t),style:{background:o},children:(0,_e.jsx)("div",{className:"wrapper relative",children:a})}),R=({align:e="center",tagline:t,title:o,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:c})=>{let p=n==="black"?"pink":n==="pink"?"regular":"white",f=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return(0,_e.jsxs)(Ao,{align:e,className:c,children:[t&&(0,_e.jsx)(Do,{color:p,children:t}),o&&(0,_e.jsx)(Mo,{tagHeading:i,color:f,size:s,children:(0,Lo.default)(o)}),a&&(0,_e.jsx)(Io,{color:d,marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,Lo.default)(a)})]})},M=({align:e,isFullInMobile:t=!1,buttons:o,className:a})=>o?.length===0?null:(0,_e.jsx)("div",{className:r("buttons-block mt-8 md:mt-10 flex gap-4 w-full",e==="center"&&"justify-center",e==="right"&&"justify-end",t&&"flex-wrap md:flex-nowrap",a),children:o?.slice(0,2).map((i,n)=>{let{btnName:s,...c}=i;return(0,_e.jsx)(ut,{...c,className:r(t&&"w-full md:w-auto",i?.className),children:(0,Lo.default)(s)},n)})});var zo=g(require("react"),1);var Eo=g(require("react"),1),Ie=g(require("@radix-ui/react-tabs"),1);var Ho=require("react/jsx-runtime"),vt=Ie.Root,Ye=Eo.forwardRef(({className:e,size:t="sm",isDivider:o=!1,...a},i)=>(0,Ho.jsx)(Ie.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${t}`,o&&"border-b border-gray-200",e),...a}));Ye.displayName=Ie.List.displayName;var Je=Eo.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(Ie.Trigger,{ref:o,className:r("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...t}));Je.displayName=Ie.Trigger.displayName;var et=Eo.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(Ie.Content,{ref:o,className:r("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...t}));et.displayName=Ie.Content.displayName;var Ir=g(require("html-react-parser"),1);var Pr=g(require("react"),1),Cr=require("@radix-ui/react-slot"),Rr=require("class-variance-authority");var Tr=require("react/jsx-runtime"),Ma=(0,Rr.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"}}),Ce=Pr.forwardRef(({className:e,variant:t="default",size:o="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let c=a?Cr.Slot:"button",p=r(Ma({variant:t,size:o,className:e}));return(0,Tr.jsx)(c,{className:p,disabled:i,ref:s,...n,children:n.children})});Ce.displayName="TextButton";var ce=require("react"),_o=require("lucide-react");var kr=g(require("react"),1),Sr=require("@radix-ui/react-slot"),Dr=require("class-variance-authority");var Mr=require("react/jsx-runtime"),kt=(0,Dr.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"}}),Re=kr.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let c=a?Sr.Slot:"button",p=r(kt({variant:t,size:o,className:e}));return(0,Mr.jsx)(c,{className:p,disabled:i,ref:s,...n,children:n.children})});Re.displayName="IconButton";var me=require("react/jsx-runtime"),Fo=(0,ce.createContext)(void 0),Vt=({showGradientOverlay:e=!0,gradientOverlayColor:t="255, 255, 255",className:o,children:a})=>{let i=(0,ce.useRef)(null),[n,s]=(0,ce.useState)({left:!1,right:!1}),c=(0,ce.useCallback)(()=>{let f=i.current;if(f){let{scrollLeft:d,scrollWidth:u,clientWidth:x}=f;s({left:d>0,right:d+x<u})}},[]);(0,ce.useEffect)(()=>{let f=i.current;if(f)return c(),window.addEventListener("resize",c),f.addEventListener("scroll",c),()=>{window.removeEventListener("resize",c),f.removeEventListener("scroll",c)}},[c]);let p=f=>{let d=i.current;if(d){let u=d.clientWidth*.7*(f==="left"?-1:1);d.scrollBy({left:u,behavior:"smooth"})}};return(0,me.jsx)(Fo.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:p,gradientOverlayColor:t},children:(0,me.jsxs)("div",{className:r("relative w-full",o),children:[e&&(0,me.jsxs)(me.Fragment,{children:[n.left&&(0,me.jsx)("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${t}),rgb(${t}))`}}),n.right&&(0,me.jsx)("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${t}),rgb(${t}))`}})]}),a]})})},Ot=({className:e,children:t})=>{let o=(0,ce.useContext)(Fo);if(!o)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,me.jsx)("div",{ref:o.scrollContainerRef,className:r("overflow-x-auto scrollbar-hide scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:t})},Wt=({className:e,children:t,...o})=>{let a=(0,ce.useContext)(Fo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,me.jsx)(Re,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute left-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:o.size||"sm",variant:o.variant||"secondary",...o,children:t||(0,me.jsx)(_o.ChevronLeft,{className:"h-4 w-4"})}):null},$t=({className:e,children:t,...o})=>{let a=(0,ce.useContext)(Fo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,me.jsx)(Re,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute right-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:o.size||"sm",variant:o.variant||"secondary",...o,children:t||(0,me.jsx)(_o.ChevronRight,{className:"h-4 w-4"})}):null};var Ar=require("@heroicons/react/20/solid"),y=require("react/jsx-runtime"),Xl=({news:e})=>{let t=(o,a)=>{o?.preventDefault(),o?.stopPropagation(),window.open(a,"_blank")};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"basis-1/2 md:basis-full flex-none pr-3 md:pr-0",children:(0,y.jsx)("div",{className:"rounded-md aspect-[16/9] w-full relative overflow-hidden block bg-gray-100",children:(0,y.jsxs)("picture",{children:[(0,y.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,y.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,y.jsxs)("div",{className:"md:mt-3 basis-1/2 md:basis-full overflow-hidden",children:[e?.category&&e?.categoryUrl&&(0,y.jsx)(Ce,{variant:"default",className:"text-xs block md:hidden line-clamp-1 shink-0 justify-start text-left whitespace-normal mb-0.5",onClick:o=>t(o,e?.categoryUrl||""),children:e?.category}),(0,y.jsx)("div",{className:"text-gray-900 font-medium text-sm md:text-base group-hover:text-pink-500 line-clamp-3 md:line-clamp-none",children:e?.title}),(0,y.jsxs)("div",{className:"flex items-center md:space-x-1 mt-2",children:[e?.category&&e?.categoryUrl&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Ce,{variant:"default",className:"text-xs hidden md:block md:line-clamp-1 shink-0 justify-start text-left whitespace-normal",onClick:o=>t(o,e?.categoryUrl||""),children:e?.category}),(0,y.jsx)("span",{className:"flex-none leading-none hidden md:block",children:"\xB7"})]}),e?.totalViews&&(0,y.jsx)("div",{className:"text-gray-500 text-xs flex-none",children:e.totalViews})]})]})]})},Ia=(0,zo.memo)(({dataHeading:e,dataHorizontalScroll:t,dataBlog:o,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:c}=t||{},p=(d,u,x)=>{d?.preventDefault(),d?.stopPropagation(),a?a(u):window.open(x,"_blank")},f=(d,u)=>(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:r("flex flex-row flex-wrap -mx-3 gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((x,D)=>(0,y.jsx)("div",{className:"px-3 basis-full md:basis-1/2 lg:basis-1/3 min-w-0",children:(0,y.jsx)("div",{onClick:E=>p(E,x?.id,x?.url),className:r("cursor-pointer group flex flex-row md:flex-col",d?.classNameItem),children:(0,y.jsx)(Xl,{news:x})},x?.id)},D))}),d?.isShowBtn&&(0,y.jsx)("div",{className:"w-full flex items-center justify-center mt-8",children:(0,y.jsxs)(ut,{action:i?()=>i?.(u):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[(0,Ir.default)(d.btnName||"Xem th\xEAm"),d?.isLoading?(0,y.jsx)(_t,{className:"animate-spin-loading ml-2 w-5 h-5"}):i&&!d?.btnUrl&&(0,y.jsx)(Ar.ArrowDownIcon,{className:"w-5 h-5 animate-bounce ml-2 -mb-1"})]})})]},d?.title||u);return(0,y.jsxs)(zo.default.Fragment,{children:[e&&(0,y.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),o?.length>1?(0,y.jsxs)(vt,{defaultValue:o[0]?.title,children:[(0,y.jsxs)(Vt,{showGradientOverlay:n,gradientOverlayColor:s,className:c,children:[(0,y.jsx)(Ot,{className:"mb-6 text-center",children:(0,y.jsx)(Ye,{className:"inline-flex mx-auto items-center mb-6 overflow-visible w-auto mb-0",children:o.map((d,u)=>(0,y.jsx)(Je,{value:d.title,children:d.title},d.title+u))})}),(0,y.jsx)(Wt,{}),(0,y.jsx)($t,{})]}),o.map((d,u)=>(0,y.jsx)(et,{value:d.title,children:f(d,u)},d.title+u))]}):o?.length===1&&o[0]&&f(o[0],0)]})});var bt=require("react/jsx-runtime"),ql=({template:e,dataBlog:t,dataHeading:o,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,bt.jsx)(Ia,{dataBlog:t,dataHeading:o,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,bt.jsx)(Ia,{dataBlog:t,dataHeading:o,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Zl=({dataHeading:e,dataHorizontalScroll:t,dataBlog:o,template:a,onClickModal:i,onClickLoadMore:n})=>(0,bt.jsx)(bt.Fragment,{children:ql({dataHeading:e,dataHorizontalScroll:t,dataBlog:o,template:a,onClickModal:i,onClickLoadMore:n})}),Lr=({dataHeading:e,dataHorizontalScroll:t,dataBlog:o=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:c})=>(0,bt.jsx)(Y,{className:r(a),background:i,children:(0,bt.jsx)(Zl,{dataHeading:e,dataHorizontalScroll:t,dataBlog:o,template:n,onClickModal:s,onClickLoadMore:c})});var Vo=g(require("react"),1);var Oo=require("date-fns/locale"),_r=require("react-day-picker"),Wo=require("lucide-react"),Fr=g(require("lunisolar"),1);var Er=g(require("react"),1),ao=g(require("@radix-ui/react-checkbox"),1),Hr=require("@heroicons/react/16/solid"),Aa=require("class-variance-authority");var Bo=require("react/jsx-runtime"),Kl=(0,Aa.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"}}),Yl=(0,Aa.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),io=Er.forwardRef(({className:e,size:t,...o},a)=>(0,Bo.jsx)(ao.Root,{ref:a,className:r(Kl({size:t}),e),...o,children:(0,Bo.jsx)(ao.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Bo.jsx)(Hr.CheckIcon,{className:r(Yl({size:t}))})})}));io.displayName=ao.Root.displayName;var te=require("react/jsx-runtime"),Jl=({date:e,cusContent:t})=>{let o=null;return o=(0,Fr.default)(e).lunar,(0,te.jsxs)(te.Fragment,{children:[t?t(e):e.getDate(),o&&(0,te.jsx)("span",{className:"text-[8px] absolute top-1 right-0.5 leading-none luna-date hidden group-[.show-luna]:block",children:o.day})]})},em={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let t=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][t]}};function tm({isShow:e,setIsShow:t,lang:o}){let a=Vo.useId();return(0,te.jsx)("div",{className:"w-full p-3 pt-0",children:(0,te.jsxs)("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[(0,te.jsx)(io,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&t(i)}}),(0,te.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"text-sm text-gray-900 peer-disabled:text-gray-400 leading-none peer-disabled:cursor-default cursor-pointer",children:o==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var om=e=>e.getDay()===0||e.getDay()===6;function ro({className:e,classNames:t,showOutsideDays:o=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[c,p]=Vo.useState(!0);return(0,te.jsx)(_r.DayPicker,{locale:i==="vi"?Oo.vi:Oo.enUS,showOutsideDays:o,className:r("border border-gray-200 rounded-b-md b bg-white shadow-md w-fit",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(Me({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("font-medium rounded-md w-11 text-xs text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(Me({variant:"transparent"}),"h-11 w-11 text-center text-sm p-0 aria-selected:opacity-100 aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white [&.day-range-end.day-range-start]:rounded-md focus-within:relative focus-within:z-20 font-semibold relative group",a&&c&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("text-gray-900 !bg-pink-50 !rounded-none group/mid [&:nth-child(7)]:!text-red-600 day-range-middle",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...t},modifiers:{weekend:om},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,te.jsx)(Wo.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,te.jsx)(Wo.ChevronRight,{className:"h-6 w-6"}),DayContent:f=>(0,te.jsx)(Jl,{date:f.date,cusContent:n}),Months:({children:f})=>(0,te.jsxs)("div",{className:"w-full",children:[(0,te.jsx)("div",{className:r("flex flex-col sm:flex-row months-wrapper"),children:f}),a&&(0,te.jsx)(tm,{isShow:c,setIsShow:p,lang:i})]})},formatters:i==="vi"?em:{},...s})}ro.displayName="Calendar";var B=g(require("react"),1),zr=g(require("embla-carousel-react"),1);var $o=require("@heroicons/react/16/solid");var ue=require("react/jsx-runtime"),Br=B.createContext(null);function Go(){let e=B.useContext(Br);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var no=B.forwardRef(({orientation:e="horizontal",opts:t,setApi:o,plugins:a,className:i,children:n,...s},c)=>{let[p,f]=(0,zr.default)({...t,axis:e==="horizontal"?"x":"y"},a),[d,u]=B.useState(!1),[x,D]=B.useState(!1),E=B.useCallback(K=>{K&&(u(K.canScrollPrev()),D(K.canScrollNext()))},[]),ie=B.useCallback(()=>{f?.scrollPrev()},[f]),H=B.useCallback(()=>{f?.scrollNext()},[f]),Z=B.useCallback(K=>{K.key==="ArrowLeft"?(K.preventDefault(),ie()):K.key==="ArrowRight"&&(K.preventDefault(),H())},[ie,H]);return B.useEffect(()=>{!f||!o||o(f)},[f,o]),B.useEffect(()=>{if(f)return E(f),f.on("reInit",E),f.on("select",E),()=>{f?.off("select",E)}},[f,E]),(0,ue.jsx)(Br.Provider,{value:{carouselRef:p,api:f,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:ie,scrollNext:H,canScrollPrev:d,canScrollNext:x},children:(0,ue.jsx)("div",{ref:c,onKeyDownCapture:Z,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});no.displayName="Carousel";var so=B.forwardRef(({className:e,...t},o)=>{let{carouselRef:a,orientation:i}=Go();return(0,ue.jsx)("div",{ref:a,className:"overflow-hidden",children:(0,ue.jsx)("div",{ref:o,className:r("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});so.displayName="CarouselContent";var lo=B.forwardRef(({className:e,...t},o)=>{let{orientation:a}=Go();return(0,ue.jsx)("div",{ref:o,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...t})});lo.displayName="CarouselItem";var mo=B.forwardRef(({className:e,variant:t="secondary",size:o="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:c}=Go();return(0,ue.jsxs)(Re,{ref:i,variant:t,size:o,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!c,onClick:s,...a,children:[(0,ue.jsx)($o.ChevronLeftIcon,{className:"h-6 w-6"}),(0,ue.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});mo.displayName="CarouselPrevious";var co=B.forwardRef(({className:e,variant:t="secondary",size:o="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:c}=Go();return(0,ue.jsxs)(Re,{ref:i,variant:t,size:o,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!c,onClick:s,...a,children:[(0,ue.jsx)($o.ChevronRightIcon,{className:"h-6 w-6"}),(0,ue.jsx)("span",{className:"sr-only",children:"Next slide"})]})});co.displayName="CarouselNext";var Vr=g(require("react"),1),tt=g(require("@radix-ui/react-popover"),1);var La=require("react/jsx-runtime"),Gt=tt.Root,jt=tt.Trigger,St=Vr.forwardRef(({className:e,align:t="center",sideOffset:o=4,...a},i)=>(0,La.jsx)(tt.Portal,{children:(0,La.jsx)(tt.Content,{ref:i,align:t,sideOffset:o,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));St.displayName=tt.Content.displayName;var po=require("date-fns");var Or=require("lucide-react");var jo=require("@heroicons/react/16/solid"),L=require("react/jsx-runtime"),Wr=({label:e,placeholder:t="Select a value",size:o=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:c,popoverProps:p,calendarProps:f})=>{let d=f?.selected||null;return(0,L.jsxs)("div",{children:[(0,L.jsxs)(Gt,{...p,children:[(0,L.jsx)(jt,{asChild:!0,children:(0,L.jsxs)(ge,{variant:"secondary",className:r("w-full justify-between text-left text-sm font-normal h-11 text-gray-900 overflow-visible hover:ring-1 focus:ring-1 hover:ring-gray-400 focus:ring-gray-400 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-pink-500 [&[data-state=open]]:ring-1 relative disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none disabled:text-gray-500",o===2&&"h-12 text-base",(!d||!(d instanceof Date)&&typeof d=="object"&&(!("from"in d)||!d.from))&&"text-gray-500",i&&"border-red-500 ring-red-500 ring-1"),disabled:n,...c,children:[(0,L.jsx)("div",{className:"line-clamp-1 flex-1",children:d instanceof Date?(0,po.format)(d,s):d&&typeof d=="object"&&"from"in d&&"to"in d?(0,L.jsx)(L.Fragment,{children:d.from?d.to?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{className:"date-from",children:(0,po.format)(d.from,s)})," ",(0,L.jsx)("span",{className:"date-separator",children:"-"}),(0,L.jsx)("span",{className:"date-to",children:(0,po.format)(d.to,s)})]}):(0,po.format)(d.from,s):t}):t}),e&&(0,L.jsx)("span",{className:r("absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",o===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),(0,L.jsx)(Or.Calendar,{className:"ml-2 h-4 w-4 text-gray-500 flex-none"})]})}),(0,L.jsx)(St,{className:"w-auto !p-0 border-none",children:(0,L.jsx)(ro,{...f})})]}),a&&(0,L.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[i?(0,L.jsx)(jo.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,L.jsx)(jo.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,L.jsx)("span",{className:r(i?"text-red-500":"text-gray-500",o===2?"text-sm":"text-xs"),children:a})]})]})};var Dt=g(require("react"),1),A=g(require("@radix-ui/react-alert-dialog"),1);var Te=require("react/jsx-runtime"),$r=A.Root,Gr=A.Trigger,Ea=A.Portal,Uo=Dt.forwardRef(({className:e,...t},o)=>(0,Te.jsx)(A.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:o}));Uo.displayName=A.Overlay.displayName;var Ha=Dt.forwardRef(({className:e,...t},o)=>(0,Te.jsxs)(Ea,{children:[(0,Te.jsx)(Uo,{}),(0,Te.jsx)(A.Content,{ref:o,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...t})]}));Ha.displayName=A.Content.displayName;var _a=({className:e,...t})=>(0,Te.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...t});_a.displayName="AlertDialogHeader";var Fa=({className:e,...t})=>(0,Te.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...t});Fa.displayName="AlertDialogFooter";var za=Dt.forwardRef(({className:e,...t},o)=>(0,Te.jsx)(A.Title,{ref:o,className:r("text-lg text-gray-900 font-semibold",e),...t}));za.displayName=A.Title.displayName;var Ba=Dt.forwardRef(({className:e,...t},o)=>(0,Te.jsx)(A.Description,{ref:o,className:r("text-sm text-muted-foreground",e),...t}));Ba.displayName=A.Description.displayName;var Va=Dt.forwardRef(({className:e,...t},o)=>(0,Te.jsx)(A.Action,{ref:o,className:r(Me({variant:"primary"}),"",e),...t}));Va.displayName=A.Action.displayName;var Oa=Dt.forwardRef(({className:e,...t},o)=>(0,Te.jsx)(A.Cancel,{ref:o,className:r(Me({variant:"secondary"}),e),...t}));Oa.displayName=A.Cancel.displayName;var Qo=require("lucide-react");var J=require("react/jsx-runtime");function Wa({current:e,total:t,onChange:o}){let a=i=>(0,J.jsx)("li",{children:(0,J.jsx)("button",{className:r(kt({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>o(i),children:i})},i);return(0,J.jsx)("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:(0,J.jsxs)("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[t>1&&(0,J.jsx)("li",{children:(0,J.jsx)("button",{className:r(kt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&o(e-1),children:(0,J.jsx)(Qo.ChevronLeft,{className:"h-4 w-4"})})}),t<=6?Array(t).fill(0).map((i,n)=>a(n+1)):(0,J.jsxs)(J.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,J.jsx)("li",{children:(0,J.jsx)("button",{className:r(kt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>o(e-3),children:"..."})}),e>2&&e!==1&&e!==t&&a(e-1),e>1&&e<t&&a(e),e<t-1&&e!==1&&a(e+1),e===t&&[a(t-2),a(t-1)],e<t-2&&e!==t&&(0,J.jsx)("button",{className:r(kt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>o(e+3),children:"..."}),a(t)]}),t>1&&(0,J.jsx)("li",{children:(0,J.jsx)("button",{className:r(kt({variant:"secondary",size:"sm"})),disabled:e===t,onClick:()=>e<t&&o(e+1),children:(0,J.jsx)(Qo.ChevronRight,{className:"h-4 w-4"})})})]})})}var jr=require("react"),Ur=require("@heroicons/react/24/outline"),Qr=require("@heroicons/react/24/solid");var Fe=require("react/jsx-runtime"),Xr=(0,jr.forwardRef)(({disabled:e,isError:t,message:o,label:a,className:i,inputClassName:n,size:s,rows:c=3,...p},f)=>(0,Fe.jsxs)("div",{className:r("relative",i,t&&"mobase-text-area-error"),children:[a&&(0,Fe.jsx)("span",{className:r("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,Fe.jsx)("textarea",{disabled:e,ref:f,className:r("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:c,...p}),o&&(0,Fe.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[t?(0,Fe.jsx)(Qr.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Fe.jsx)(Ur.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Fe.jsx)("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:o})]}),(0,Fe.jsx)("style",{children:`
|
|
70
|
+
`})]}),wt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:m=!1,...f})=>(0,x.jsx)($e,{...f,children:(0,x.jsx)(He,{className:r("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:(0,x.jsx)(Bt,{className:"p-0",children:(0,x.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,x.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||(0,x.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,x.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,x.jsx)("div",{className:"flex-none",children:(0,x.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,x.jsxs)("div",{className:"flex-1 pl-4",children:[(0,x.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,x.jsx)("div",{className:"mt-1 text-gray-500 ",children:m?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,x.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,x.jsx)("div",{className:"flex-none",children:(0,x.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,x.jsxs)("div",{className:"flex-1 pl-4",children:[(0,x.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,x.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,x.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,x.jsx)("div",{className:"flex-none",children:(0,x.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,x.jsxs)("div",{className:"flex-1 pl-4",children:[(0,x.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,x.jsxs)("div",{className:"mt-1 text-gray-500 ",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),(0,x.jsx)("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,x.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,x.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,x.jsxs)("div",{className:"relative",children:[m&&(0,x.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,x.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,x.jsx)(pm,{img:i,isQrForAll:m,children:n&&(0,x.jsx)(Ar.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 Er=require("react");var Jt=require("react"),Lr=u(require("ua-parser-js"),1),fm=()=>(0,Lr.default)().device.type==="mobile",gm=typeof window<"u"?Jt.useLayoutEffect:Jt.useEffect,Hr=()=>{let[e,o]=(0,Jt.useState)(!1);return gm(()=>{o(fm())},[]),e};var pt=require("react/jsx-runtime"),Nt=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[m,f]=(0,Er.useState)(!1),p=Hr(),c=!!a?.qrLink,g=()=>{let oe=c?a?.qrLink:e;return typeof oe=="string"?oe.trim():""},b=()=>{let oe=g();!oe&&typeof e!="function"||(typeof e=="function"?e():window.open(oe,o?"_blank":"_self"))},H=(oe,ae=0)=>{let q=document.querySelector(oe);if(!q)return;let ka=q.getBoundingClientRect().top+window.scrollY-ae;window.scrollTo({top:ka,behavior:"smooth"})},z=()=>{typeof e=="string"&&e.startsWith("#")?H(e,t):b()},le=()=>(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(he,{...s,className:i,onClick:()=>f(!0),"data-name":"button-action-with-qr",children:n}),(0,pt.jsx)(wt,{...a,open:m,onOpenChange:()=>f(!1),qrLink:a?.qrLink||""})]});return c?p?a?.isQrForAll?le():(0,pt.jsx)(he,{...s,className:i,onClick:b,"data-name":"button-action-with-qr",children:n}):le():(0,pt.jsx)(he,{...s,onClick:z,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var eo=u(require("react"),1),Bo=require("@radix-ui/react-icons"),zr=require("@radix-ui/react-slot");var ke=require("react/jsx-runtime"),Aa=eo.forwardRef(({className:e,...o},t)=>(0,ke.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Aa.displayName="Breadcrumb";var La=eo.forwardRef(({className:e,...o},t)=>(0,ke.jsx)("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));La.displayName="BreadcrumbList";var Ha=eo.forwardRef(({className:e,...o},t)=>(0,ke.jsx)("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Ha.displayName="BreadcrumbItem";var Ea=eo.forwardRef(({asChild:e,className:o,...t},a)=>(0,ke.jsx)(e?zr.Slot:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Ea.displayName="BreadcrumbLink";var za=eo.forwardRef(({className:e,...o},t)=>(0,ke.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));za.displayName="BreadcrumbPage";var _a=({children:e,className:o,...t})=>(0,ke.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??(0,ke.jsx)(Bo.ChevronRightIcon,{className:"w-2 h-2"})});_a.displayName="BreadcrumbSeparator";var Fa=({className:e,...o})=>(0,ke.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,ke.jsx)(Bo.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,ke.jsx)("span",{className:"sr-only",children:"More"})]});Fa.displayName="BreadcrumbElipssis";var vo=require("react");var to=require("react/jsx-runtime"),Ba=(0,vo.createContext)({align:"center"}),Vo=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return(0,to.jsx)("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},Oo=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,m={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},f={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:p}=(0,vo.useContext)(Ba);return(0,to.jsx)(s,{className:r("font-bold max-w-4xl",p==="center"?"mx-auto":p==="right"?"ml-auto":"",m[t],f[o],a&&"truncate","text-balance md:text-wrap",i),children:n})},Wo=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},m={small:"md:text-base text-sm",large:"md:text-lg text-base"},f={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:p}=(0,vo.useContext)(Ba);return(0,to.jsx)("div",{className:r(p==="center"?"mx-auto max-w-2xl":p==="right"?"max-w-4xl ml-auto":"max-w-4xl",s[e],m[o],f[t],a&&"truncate",i),children:n})},$o=({className:e,align:o="center",children:t})=>(0,to.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,to.jsx)(Ba.Provider,{value:{align:o},children:t})});var Go=u(require("html-react-parser"),1);var Ge=require("react/jsx-runtime"),X=({idSection:e,className:o,background:t,children:a})=>(0,Ge.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,Ge.jsx)("div",{className:"wrapper relative",children:a})}),R=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:m})=>{let f=n==="black"?"pink":n==="pink"?"regular":"white",p=n==="pink"?"pink":n==="white"?"white":"regular",c=n==="white"?"white":"regular";return(0,Ge.jsxs)($o,{align:e,className:m,children:[o&&(0,Ge.jsx)(Vo,{color:f,children:o}),t&&(0,Ge.jsx)(Oo,{tagHeading:i,color:p,size:s,children:(0,Go.default)(t)}),a&&(0,Ge.jsx)(Wo,{color:c,marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,Go.default)(a)})]})},S=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,Ge.jsx)("div",{className:r("buttons-block mt-8 md:mt-10 flex gap-4 w-full",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{let{btnName:s,...m}=i;return(0,Ge.jsx)(Nt,{...m,className:r(o&&"w-full md:w-auto",i?.className),children:(0,Go.default)(s)},n)})});var Xo=u(require("react"),1),jr=require("@heroicons/react/20/solid"),Ur=u(require("html-react-parser"),1);var ge=require("react"),jo=require("lucide-react");var _r=u(require("react"),1),Fr=require("@radix-ui/react-slot"),Br=require("class-variance-authority");var Vr=require("react/jsx-runtime"),Vt=(0,Br.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"}}),Se=_r.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?Fr.Slot:"button",f=r(Vt({variant:o,size:t,className:e}));return(0,Vr.jsx)(m,{className:f,disabled:i,ref:s,...n,children:n.children})});Se.displayName="IconButton";var fe=require("react/jsx-runtime"),Uo=(0,ge.createContext)(void 0),je=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=(0,ge.useRef)(null),[n,s]=(0,ge.useState)({left:!1,right:!1}),m=(0,ge.useCallback)(()=>{let p=i.current;if(p){let{scrollLeft:c,scrollWidth:g,clientWidth:b}=p;s({left:c>0,right:c+b<g})}},[]);(0,ge.useEffect)(()=>{let p=i.current;if(p)return m(),window.addEventListener("resize",m),p.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),p.removeEventListener("scroll",m)}},[m]);let f=p=>{let c=i.current;if(c){let g=c.clientWidth*.7*(p==="left"?-1:1);c.scrollBy({left:g,behavior:"smooth"})}};return(0,fe.jsx)(Uo.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:f,gradientOverlayColor:o},children:(0,fe.jsxs)("div",{className:r("relative w-full",t),children:[e&&(0,fe.jsxs)(fe.Fragment,{children:[n.left&&(0,fe.jsx)("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&(0,fe.jsx)("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},Ue=({className:e,children:o})=>{let t=(0,ge.useContext)(Uo);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,fe.jsx)("div",{ref:t.scrollContainerRef,className:r("overflow-x-auto scrollbar-hide scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},Qe=({className:e,children:o,...t})=>{let a=(0,ge.useContext)(Uo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,fe.jsx)(Se,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute left-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,fe.jsx)(jo.ChevronLeft,{className:"h-4 w-4"})}):null},qe=({className:e,children:o,...t})=>{let a=(0,ge.useContext)(Uo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,fe.jsx)(Se,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute right-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,fe.jsx)(jo.ChevronRight,{className:"h-4 w-4"})}):null};var Qo=u(require("react"),1),Ee=u(require("@radix-ui/react-tabs"),1);var qo=require("react/jsx-runtime"),Xe=Ee.Root,ze=Qo.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>(0,qo.jsx)(Ee.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));ze.displayName=Ee.List.displayName;var _e=Qo.forwardRef(({className:e,...o},t)=>(0,qo.jsx)(Ee.Trigger,{ref:t,className:r("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));_e.displayName=Ee.Trigger.displayName;var Fe=Qo.forwardRef(({className:e,...o},t)=>(0,qo.jsx)(Ee.Content,{ref:t,className:r("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Fe.displayName=Ee.Content.displayName;var Or=u(require("react"),1),Wr=require("@radix-ui/react-slot"),$r=require("class-variance-authority");var Gr=require("react/jsx-runtime"),Va=(0,$r.cva)("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),ue=Or.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?Wr.Slot:"button",f=r(Va({variant:o,size:t,className:e}));return(0,Gr.jsx)(m,{className:f,disabled:i,ref:s,...n,children:n.children})});ue.displayName="TextButton";var w=require("react/jsx-runtime"),um=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"flex-none basis-1/2 pr-3 md:basis-full md:pr-0",children:(0,w.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,w.jsxs)("picture",{children:[(0,w.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,w.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,w.jsxs)("div",{className:"basis-1/2 overflow-hidden md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,w.jsx)(ue,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),(0,w.jsx)("div",{className:"line-clamp-3 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,w.jsxs)("div",{className:"mt-2 flex items-center md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(ue,{variant:"default",className:"shink-0 hidden justify-start whitespace-normal text-left text-xs md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),(0,w.jsx)("span",{className:"hidden flex-none leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,w.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Oa=(0,Xo.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},f=(c,g,b)=>{c?.preventDefault(),c?.stopPropagation(),a?a(g):window.open(b,"_blank")},p=(c,g)=>(0,w.jsxs)("div",{children:[(0,w.jsx)("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",c?.blogList?.length<3?"md:justify-center":""),children:c?.blogList?.map((b,H)=>(0,w.jsx)("div",{className:"min-w-0 basis-full px-3 md:basis-1/2 lg:basis-1/3",children:(0,w.jsx)("div",{onClick:z=>f(z,b?.id,b?.url),className:r("group flex cursor-pointer flex-row md:flex-col",c?.classNameItem),children:(0,w.jsx)(um,{news:b})},b?.id)},H))}),c?.isShowBtn&&(0,w.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,w.jsxs)(Nt,{action:i?()=>i?.(g):c?.btnUrl,newTab:c?.isNewTab,variant:"outline",children:[(0,Ur.default)(c.btnName||"Xem th\xEAm"),c?.isLoading?(0,w.jsx)(Yt,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!c?.btnUrl&&(0,w.jsx)(jr.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},c?.title||g);return(0,w.jsxs)(Xo.default.Fragment,{children:[e&&(0,w.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?(0,w.jsxs)(Xe,{defaultValue:t[0]?.title,children:[(0,w.jsxs)(je,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,w.jsx)(Ue,{className:"mb-6 text-center",children:(0,w.jsx)(ze,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((c,g)=>(0,w.jsx)(_e,{value:c.title,children:c.title},c.title+g))})}),(0,w.jsx)(Qe,{}),(0,w.jsx)(qe,{})]}),t.map((c,g)=>(0,w.jsx)(Fe,{value:c.title,children:p(c,g)},c.title+g))]}):t?.length===1&&t[0]&&p(t[0],0)]})});var Pt=require("react/jsx-runtime"),vm=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Pt.jsx)(Oa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Pt.jsx)(Oa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},bm=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Pt.jsx)(Pt.Fragment,{children:vm({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Qr=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,Pt.jsx)(X,{className:r(a),background:i,children:(0,Pt.jsx)(bm,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:m})});var Ko=u(require("react"),1);var Yo=require("date-fns/locale"),Zr=require("react-day-picker"),Jo=require("lucide-react"),Kr=u(require("lunisolar"),1);var qr=u(require("react"),1),bo=u(require("@radix-ui/react-checkbox"),1),Xr=require("@heroicons/react/16/solid"),Wa=require("class-variance-authority");var Zo=require("react/jsx-runtime"),xm=(0,Wa.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"}}),hm=(0,Wa.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),xo=qr.forwardRef(({className:e,size:o,...t},a)=>(0,Zo.jsx)(bo.Root,{ref:a,className:r(xm({size:o}),e),...t,children:(0,Zo.jsx)(bo.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Zo.jsx)(Xr.CheckIcon,{className:r(hm({size:o}))})})}));xo.displayName=bo.Root.displayName;var re=require("react/jsx-runtime"),ym=({date:e,cusContent:o})=>{let t=null;return t=(0,Kr.default)(e).lunar,(0,re.jsxs)(re.Fragment,{children:[o?o(e):e.getDate(),t&&(0,re.jsx)("span",{className:"text-[8px] absolute top-1 right-0.5 leading-none luna-date hidden group-[.show-luna]:block",children:t.day})]})},wm={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 Nm({isShow:e,setIsShow:o,lang:t}){let a=Ko.useId();return(0,re.jsx)("div",{className:"w-full p-3 pt-0",children:(0,re.jsxs)("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[(0,re.jsx)(xo,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),(0,re.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"text-sm text-gray-900 peer-disabled:text-gray-400 leading-none peer-disabled:cursor-default cursor-pointer",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Pm=e=>e.getDay()===0||e.getDay()===6;function ho({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[m,f]=Ko.useState(!0);return(0,re.jsx)(Zr.DayPicker,{locale:i==="vi"?Yo.vi:Yo.enUS,showOutsideDays:t,className:r("border border-gray-200 rounded-b-md b bg-white shadow-md w-fit",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(Le({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("font-medium rounded-md w-11 text-xs text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(Le({variant:"transparent"}),"h-11 w-11 text-center text-sm p-0 aria-selected:opacity-100 aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white [&.day-range-end.day-range-start]:rounded-md focus-within:relative focus-within:z-20 font-semibold relative group",a&&m&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("text-gray-900 !bg-pink-50 !rounded-none group/mid [&:nth-child(7)]:!text-red-600 day-range-middle",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Pm},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,re.jsx)(Jo.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,re.jsx)(Jo.ChevronRight,{className:"h-6 w-6"}),DayContent:p=>(0,re.jsx)(ym,{date:p.date,cusContent:n}),Months:({children:p})=>(0,re.jsxs)("div",{className:"w-full",children:[(0,re.jsx)("div",{className:r("flex flex-col sm:flex-row months-wrapper"),children:p}),a&&(0,re.jsx)(Nm,{isShow:m,setIsShow:f,lang:i})]})},formatters:i==="vi"?wm:{},...s})}ho.displayName="Calendar";var G=u(require("react"),1),Yr=u(require("embla-carousel-react"),1);var ea=require("@heroicons/react/16/solid");var ye=require("react/jsx-runtime"),Jr=G.createContext(null);function ta(){let e=G.useContext(Jr);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Ze=G.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},m)=>{let[f,p]=(0,Yr.default)({...o,axis:e==="horizontal"?"x":"y"},a),[c,g]=G.useState(!1),[b,H]=G.useState(!1),z=G.useCallback(ae=>{ae&&(g(ae.canScrollPrev()),H(ae.canScrollNext()))},[]),le=G.useCallback(()=>{p?.scrollPrev()},[p]),V=G.useCallback(()=>{p?.scrollNext()},[p]),oe=G.useCallback(ae=>{ae.key==="ArrowLeft"?(ae.preventDefault(),le()):ae.key==="ArrowRight"&&(ae.preventDefault(),V())},[le,V]);return G.useEffect(()=>{!p||!t||t(p)},[p,t]),G.useEffect(()=>{if(p)return z(p),p.on("reInit",z),p.on("select",z),()=>{p?.off("select",z)}},[p,z]),(0,ye.jsx)(Jr.Provider,{value:{carouselRef:f,api:p,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:le,scrollNext:V,canScrollPrev:c,canScrollNext:b},children:(0,ye.jsx)("div",{ref:m,onKeyDownCapture:oe,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Ze.displayName="Carousel";var Ke=G.forwardRef(({className:e,...o},t)=>{let{carouselRef:a,orientation:i}=ta();return(0,ye.jsx)("div",{ref:a,className:"overflow-hidden",children:(0,ye.jsx)("div",{ref:t,className:r("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...o})})});Ke.displayName="CarouselContent";var Ye=G.forwardRef(({className:e,...o},t)=>{let{orientation:a}=ta();return(0,ye.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});Ye.displayName="CarouselItem";var Ot=G.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:m}=ta();return(0,ye.jsxs)(Se,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!m,onClick:s,...a,children:[(0,ye.jsx)(ea.ChevronLeftIcon,{className:"h-6 w-6"}),(0,ye.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});Ot.displayName="CarouselPrevious";var Wt=G.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:m}=ta();return(0,ye.jsxs)(Se,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!m,onClick:s,...a,children:[(0,ye.jsx)(ea.ChevronRightIcon,{className:"h-6 w-6"}),(0,ye.jsx)("span",{className:"sr-only",children:"Next slide"})]})});Wt.displayName="CarouselNext";var en=u(require("react"),1),ft=u(require("@radix-ui/react-popover"),1);var $a=require("react/jsx-runtime"),oo=ft.Root,ao=ft.Trigger,$t=en.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>(0,$a.jsx)(ft.Portal,{children:(0,$a.jsx)(ft.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));$t.displayName=ft.Content.displayName;var yo=require("date-fns");var tn=require("lucide-react");var oa=require("@heroicons/react/16/solid"),B=require("react/jsx-runtime"),on=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:m,popoverProps:f,calendarProps:p})=>{let c=p?.selected||null;return(0,B.jsxs)("div",{children:[(0,B.jsxs)(oo,{...f,children:[(0,B.jsx)(ao,{asChild:!0,children:(0,B.jsxs)(he,{variant:"secondary",className:r("w-full justify-between text-left text-sm font-normal h-11 text-gray-900 overflow-visible hover:ring-1 focus:ring-1 hover:ring-gray-400 focus:ring-gray-400 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-pink-500 [&[data-state=open]]:ring-1 relative disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none disabled:text-gray-500",t===2&&"h-12 text-base",(!c||!(c instanceof Date)&&typeof c=="object"&&(!("from"in c)||!c.from))&&"text-gray-500",i&&"border-red-500 ring-red-500 ring-1"),disabled:n,...m,children:[(0,B.jsx)("div",{className:"line-clamp-1 flex-1",children:c instanceof Date?(0,yo.format)(c,s):c&&typeof c=="object"&&"from"in c&&"to"in c?(0,B.jsx)(B.Fragment,{children:c.from?c.to?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("span",{className:"date-from",children:(0,yo.format)(c.from,s)})," ",(0,B.jsx)("span",{className:"date-separator",children:"-"}),(0,B.jsx)("span",{className:"date-to",children:(0,yo.format)(c.to,s)})]}):(0,yo.format)(c.from,s):o}):o}),e&&(0,B.jsx)("span",{className:r("absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),(0,B.jsx)(tn.Calendar,{className:"ml-2 h-4 w-4 text-gray-500 flex-none"})]})}),(0,B.jsx)($t,{className:"w-auto !p-0 border-none",children:(0,B.jsx)(ho,{...p})})]}),a&&(0,B.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[i?(0,B.jsx)(oa.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,B.jsx)(oa.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,B.jsx)("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var Gt=u(require("react"),1),F=u(require("@radix-ui/react-alert-dialog"),1);var De=require("react/jsx-runtime"),an=F.Root,rn=F.Trigger,Ga=F.Portal,aa=Gt.forwardRef(({className:e,...o},t)=>(0,De.jsx)(F.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));aa.displayName=F.Overlay.displayName;var ja=Gt.forwardRef(({className:e,...o},t)=>(0,De.jsxs)(Ga,{children:[(0,De.jsx)(aa,{}),(0,De.jsx)(F.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));ja.displayName=F.Content.displayName;var Ua=({className:e,...o})=>(0,De.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...o});Ua.displayName="AlertDialogHeader";var Qa=({className:e,...o})=>(0,De.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...o});Qa.displayName="AlertDialogFooter";var qa=Gt.forwardRef(({className:e,...o},t)=>(0,De.jsx)(F.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));qa.displayName=F.Title.displayName;var Xa=Gt.forwardRef(({className:e,...o},t)=>(0,De.jsx)(F.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Xa.displayName=F.Description.displayName;var Za=Gt.forwardRef(({className:e,...o},t)=>(0,De.jsx)(F.Action,{ref:t,className:r(Le({variant:"primary"}),"",e),...o}));Za.displayName=F.Action.displayName;var Ka=Gt.forwardRef(({className:e,...o},t)=>(0,De.jsx)(F.Cancel,{ref:t,className:r(Le({variant:"secondary"}),e),...o}));Ka.displayName=F.Cancel.displayName;var ia=require("react");var wo=require("react"),sn=require("framer-motion"),Ya=u(require("html-react-parser"),1);var nn=u(require("@radix-ui/react-aspect-ratio"),1),j=nn.Root;var I=require("react/jsx-runtime"),Cm=({guideGroup:e,mockup:o})=>{let[t,a]=(0,wo.useState)(),[i,n]=(0,wo.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,wo.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,I.jsx)(I.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,I.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,I.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,I.jsxs)("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,I.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,I.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,I.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,I.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,I.jsxs)(Ze,{setApi:a,children:[(0,I.jsx)(Ke,{className:"ml-0",children:e?.stepList.map((m,f)=>(0,I.jsx)(Ye,{className:"pl-0",children:(0,I.jsx)(j,{ratio:o==="small"?540/960:540/1168,children:(0,I.jsx)("img",{src:m.image,className:"size-full object-contain",alt:m.title})})},f))}),(0,I.jsx)(Ot,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,I.jsx)(Wt,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,I.jsx)("div",{className:"flex flex-auto py-4 pl-12",children:(0,I.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((m,f)=>(0,I.jsxs)("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",f+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(f),children:[(0,I.jsx)("div",{className:r("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",f+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:f+1}),(0,I.jsx)("div",{className:r(" text-sm font-medium",f+1===i?"text-pink-500":"text-gray-900"),children:(0,Ya.default)(m.title)}),m.content&&(0,I.jsx)(sn.motion.div,{initial:"closed",animate:f+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,I.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,Ya.default)(m.content)})})]},f))})})]})})},Ja=Cm;var gt=require("react"),ei=require("@heroicons/react/20/solid"),ln=u(require("embla-carousel-autoplay"),1),No=u(require("html-react-parser"),1);var v=require("react/jsx-runtime"),Rm=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=(0,gt.useState)(0),[s,m]=(0,gt.useState)();return(0,gt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,v.jsx)($e,{open:e,onOpenChange:o,children:(0,v.jsxs)(He,{position:"bottom",height:"full",children:[(0,v.jsx)(go,{children:(0,v.jsx)(uo,{className:"line-clamp-1",children:t?.title})}),(0,v.jsxs)(Bt,{className:"grid overflow-hidden p-0 ",children:[(0,v.jsx)(Ze,{setApi:m,className:" grid overflow-hidden",children:(0,v.jsx)(Ke,{className:"ml-0 h-full",children:t.stepList.map((f,p)=>(0,v.jsx)(Ye,{className:"h-full w-full pl-0",children:(0,v.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,v.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,v.jsx)("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:(0,v.jsxs)("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,v.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,v.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,v.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,v.jsx)("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,v.jsx)(j,{ratio:a==="small"?540/960:540/1168,children:(0,v.jsx)("img",{src:f.image,className:"size-full object-contain",alt:f.title})})})]})})}),(0,v.jsxs)("div",{className:"p-5 pb-12",children:[(0,v.jsx)("div",{className:"font-semibold",children:(0,No.default)(f.title)}),f?.content&&(0,v.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,No.default)(f.content)})]})]})},p))})}),(0,v.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((f,p)=>(0,v.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${p+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(p)},p))})]})]})})},Tm=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=(0,gt.useState)(!1),[n,s]=(0,gt.useState)(null),m=(0,gt.useRef)((0,ln.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),f=p=>{s(e?.[p]||null),i(!0)};return e?.length===0?null:(0,v.jsxs)(v.Fragment,{children:[e?.length>1?(0,v.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((p,c)=>(0,v.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>f(c),children:[(0,v.jsx)("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:(0,v.jsx)(j,{ratio:1,children:(0,v.jsx)("img",{src:p.avatar,className:"object-cover",alt:p.title})})}),(0,v.jsxs)("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",c+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[(0,v.jsxs)("div",{className:"py-2",children:[t&&(0,v.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${c+1}`}),(0,v.jsx)("div",{className:"font-semibold",children:(0,No.default)(p.title)}),p?.description&&(0,v.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,No.default)(p.description)})]}),(0,v.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,v.jsx)(ei.ChevronRightIcon,{className:"h-6 w-6"})})]})]},c))}):e?.[0]&&e[0].stepList?.length>0&&(0,v.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,v.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,v.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,v.jsxs)("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,v.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,v.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,v.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,v.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,v.jsx)(Ze,{plugins:[m.current],children:(0,v.jsx)(Ke,{className:"ml-0",children:e[0]?.stepList.map((p,c)=>(0,v.jsx)(Ye,{className:"pl-0",onClick:()=>f(0),children:(0,v.jsx)(j,{ratio:o==="small"?540/960:540/1168,children:(0,v.jsx)("img",{src:p.image,className:"size-full object-contain",alt:p.title})})},c))})})})]})})}),(0,v.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,v.jsxs)(ue,{size:"lg",variant:"primary",onClick:()=>f(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,v.jsx)(ei.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,v.jsx)(Rm,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},mn=Tm;var _=require("react/jsx-runtime"),cn=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return(0,_.jsx)("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:(0,_.jsx)("path",{d:t.d,fill:"currentColor"})})},ti=(0,ia.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:m,className:f}=o||{},[p,c]=(0,ia.useState)(t?.[0]?.title||"");return(0,_.jsxs)(_.Fragment,{children:[e&&(0,_.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&(0,_.jsxs)(zo,{children:[(0,_.jsx)(Kt,{lessThan:"md",children:(0,_.jsx)(mn,{dataGuide:t,mockup:i,isStep:n})}),(0,_.jsx)(Kt,{greaterThan:"sm",children:t?.length>1?(0,_.jsxs)(Xe,{defaultValue:t[0]?.title,onValueChange:g=>c(g),children:[(0,_.jsxs)(je,{showGradientOverlay:s,gradientOverlayColor:m,className:f,children:[(0,_.jsx)(Ue,{className:"mb-6 text-center",children:(0,_.jsx)(ze,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((g,b)=>{let H=b===t.length-1,z=p===g?.title||"";return(0,_.jsxs)(_e,{value:g.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",z&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&b!==0&&(0,_.jsx)(cn,{direction:"left",className:r("right-full top-0",z?"text-pink-500":"text-pink-100")}),g.title,n&&!H&&(0,_.jsx)(cn,{direction:"right",className:r("left-full top-0",z?"text-pink-500":"text-pink-100")})]},g.title+b)})})}),(0,_.jsx)(Qe,{}),(0,_.jsx)(qe,{})]}),t.map((g,b)=>(0,_.jsx)(Fe,{value:g.title,children:(0,_.jsx)(Ja,{guideGroup:g,mockup:i})},g.title+b))]}):t?.length===1&&t[0]&&(0,_.jsx)(Ja,{guideGroup:t[0],mockup:i})})]}),a&&(0,_.jsx)(S,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var Ct=require("react/jsx-runtime"),km=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return(0,Ct.jsx)(ti,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return(0,Ct.jsx)(ti,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},Sm=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>(0,Ct.jsx)(Ct.Fragment,{children:km({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),dn=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:i,background:n,template:s=1,mockup:m="default",isStep:f=!1})=>(0,Ct.jsx)(X,{className:r(i),background:n,children:(0,Ct.jsx)(Sm,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:m,isStep:f})});var ra=require("lucide-react");var ie=require("react/jsx-runtime");function oi({current:e,total:o,onChange:t}){let a=i=>(0,ie.jsx)("li",{children:(0,ie.jsx)("button",{className:r(Vt({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return(0,ie.jsx)("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:(0,ie.jsxs)("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,ie.jsx)("li",{children:(0,ie.jsx)("button",{className:r(Vt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ie.jsx)(ra.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):(0,ie.jsxs)(ie.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,ie.jsx)("li",{children:(0,ie.jsx)("button",{className:r(Vt({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,ie.jsx)("button",{className:r(Vt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,ie.jsx)("li",{children:(0,ie.jsx)("button",{className:r(Vt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ie.jsx)(ra.ChevronRight,{className:"h-4 w-4"})})})]})})}var pn=require("react"),fn=require("@heroicons/react/24/outline"),gn=require("@heroicons/react/24/solid");var Je=require("react/jsx-runtime"),un=(0,pn.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:m=3,...f},p)=>(0,Je.jsxs)("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&(0,Je.jsx)("span",{className:r("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,Je.jsx)("textarea",{disabled:e,ref:p,className:r("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:m,...f}),t&&(0,Je.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?(0,Je.jsx)(gn.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Je.jsx)(fn.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Je.jsx)("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,Je.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
|
|
97
|
+
`})]}));var la=u(require("react"),1),Dm=1,Mm=1e6;var ai=0;function Im(){return ai=(ai+1)%Number.MAX_SAFE_INTEGER,ai.toString()}var ii=new Map,vn=e=>{if(ii.has(e))return;let o=setTimeout(()=>{ii.delete(e),Po({type:"REMOVE_TOAST",toastId:e})},Mm);ii.set(e,o)},Am=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Dm)};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?vn(t):e.toasts.forEach(a=>{vn(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}},na=[],sa={toasts:[]};function Po(e){sa=Am(sa,e),na.forEach(o=>{o(sa)})}function ri({...e}){let o=Im(),t=i=>Po({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>Po({type:"DISMISS_TOAST",toastId:o});return Po({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function ma(){let[e,o]=la.useState(sa);return la.useEffect(()=>(na.push(o),()=>{let t=na.indexOf(o);t>-1&&na.splice(t,1)}),[e]),{...e,toast:ri,dismiss:t=>Po({type:"DISMISS_TOAST",toastId:t})}}var jt=u(require("react"),1),Z=u(require("@radix-ui/react-toast"),1),bn=require("class-variance-authority");var Rt=require("@heroicons/react/20/solid"),we=require("react/jsx-runtime"),xn=Z.Provider,ni=jt.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Z.Viewport,{ref:t,className:r("fixed bottom-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 left-0 sm:right-0 sm:left-auto sm:top-0 sm:bottom-auto sm:flex-col md:max-w-[420px]",e),...o}));ni.displayName=Z.Viewport.displayName;var Lm=(0,bn.cva)("group pointer-events-auto relative w-full overflow-hidden rounded-md border py-4 pr-10 pl-10 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full bg-white text-gray-900 border border-gray-200 border-l-4",{variants:{variant:{sucess:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"sucess"}}),si=jt.forwardRef(({className:e,variant:o="sucess",children:t,...a},i)=>(0,we.jsxs)(Z.Root,{ref:i,className:r(Lm({variant:o}),e),...a,children:[(0,we.jsxs)("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[o==="sucess"&&(0,we.jsx)(Rt.CheckCircleIcon,{className:"w-5 h-5 text-green-500"}),o==="warning"&&(0,we.jsx)(Rt.ExclamationTriangleIcon,{className:"w-5 h-5 text-yellow-500"}),o==="error"&&(0,we.jsx)(Rt.InformationCircleIcon,{className:"w-5 h-5 text-red-500"})]}),t]}));si.displayName=Z.Root.displayName;var li=jt.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Z.Action,{ref:t,className:r("inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-0 focus:ring-ring focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 text-blue-600 hover:underline mt-2",e),...o}));li.displayName=Z.Action.displayName;var mi=jt.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Z.Close,{ref:t,className:r("absolute right-2 top-2 rounded-md transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2 text-gray-800 w-8 h-8 flex items-center justify-center",e),"toast-close":"",...o,children:(0,we.jsx)(Rt.XMarkIcon,{className:"h-5 w-5"})}));mi.displayName=Z.Close.displayName;var ci=jt.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Z.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));ci.displayName=Z.Title.displayName;var di=jt.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Z.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));di.displayName=Z.Description.displayName;var ut=require("react/jsx-runtime");function hn(){let{toasts:e}=ma();return(0,ut.jsxs)(xn,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return(0,ut.jsxs)(si,{...n,children:[(0,ut.jsxs)("div",{className:"grid gap-2",children:[t&&(0,ut.jsx)(ci,{children:t}),a&&(0,ut.jsx)(di,{children:a})]}),i,(0,ut.jsx)(mi,{})]},o)}),(0,ut.jsx)(ni,{})]})}var pi=u(require("react"),1),Me=u(require("@radix-ui/react-tooltip"),1);var ui=require("react/jsx-runtime"),yn=Me.Provider,wn=Me.Root,Nn=Me.Trigger,fi=pi.forwardRef((e,o)=>(0,ui.jsx)(Me.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));fi.displayName=Me.Arrow.displayName;var gi=pi.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>(0,ui.jsx)(Me.Content,{ref:i,sideOffset:t,className:r("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));gi.displayName=Me.Content.displayName;var Tt=require("react"),io=require("@heroicons/react/16/solid");var Ne=require("react/jsx-runtime"),Pn=(0,Tt.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:m,onChange:f,onFocus:p,onClickClear:c,value:g,defaultValue:b,type:H="text",...z},le)=>{let[V,oe]=(0,Tt.useState)(!1),ae=(0,Tt.useRef)(null),q=xe=>{xe&&!V&&oe(!0),!xe&&V&&oe(!1)},yr=xe=>{s&&q(xe.target.value),f?.(xe)},ka=xe=>{s&&q(xe.target.value),p?.(xe)},om=()=>{let xe=ae.current?.querySelector("input");xe&&(c?.(xe.value),xe.value="",xe.focus(),oe(!1))};return(0,Tt.useEffect)(()=>{q(b||g)},[g,b]),(0,Ne.jsxs)("div",{className:r(i,o&&"mobase-text-input-error"),ref:ae,children:[(0,Ne.jsxs)("div",{className:"relative",children:[a&&(0,Ne.jsx)("span",{className:r("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",m===2&&" -top-2.5 text-sm"),children:a}),(0,Ne.jsx)("input",{disabled:e,type:H,ref:le,className:r("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",m===2&&"h-12 text-base",n),onChange:yr,onFocus:ka,value:g,defaultValue:b,...z}),s&&V&&(0,Ne.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:om,children:(0,Ne.jsx)(io.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,Ne.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?(0,Ne.jsx)(io.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Ne.jsx)(io.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Ne.jsx)("span",{className:r("text-gray-500 ",m===2?"text-sm":"text-xs"),children:t})]}),(0,Ne.jsx)("style",{children:`
|
|
98
98
|
.mobase-text-input-box:hover {
|
|
99
99
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
100
100
|
}
|
|
@@ -117,26 +117,26 @@
|
|
|
117
117
|
color: rgb(var(--mobase-red-500) / 1);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`})]})});var Yo=require("@heroicons/react/24/outline");var Jo=require("react");var ze=require("react/jsx-runtime"),oi=(0,Jo.forwardRef)(({className:e,min:t=0,max:o=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:c,disabled:p=!1,...f},d)=>{let[u,x]=(0,Jo.useState)(i),D=()=>{let H=Math.min(u+a,o);x(H),n?.(H),c?.(H)},E=()=>{let H=Math.max(u-a,t);x(H),n?.(H),s?.(H)},ie=H=>{let Z=parseFloat(H.target.value);if(!isNaN(Z)){let K=Math.max(Math.min(Z,o),t);x(K),n?.(K)}};return(0,ze.jsxs)("div",{ref:d,className:r("flex items-center ",e),children:[(0,ze.jsxs)(Re,{className:r(" text-pink-500 cursor-pointer w-9 h-9",p&&"text-gray-400 cursor-default"),variant:"transparent",onClick:E,disabled:p||u<=t,children:[(0,ze.jsx)(Yo.MinusCircleIcon,{className:"w-7 h-7 "}),(0,ze.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,ze.jsx)("input",{type:"number",value:u,onChange:ie,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:t,max:o,step:a,disabled:p,...f}),(0,ze.jsxs)(Re,{className:r(" text-pink-500 cursor-pointer w-9 h-9",p&&"text-gray-400 cursor-default"),variant:"transparent",onClick:D,disabled:p||u>=o,children:[(0,ze.jsx)(Yo.PlusCircleIcon,{className:"w-7 h-7 "}),(0,ze.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});oi.displayName="Stepper";var Be=g(require("react"),1),at=require("@heroicons/react/16/solid"),an=require("@heroicons/react/24/outline"),N=g(require("@radix-ui/react-select"),1);var k=require("react/jsx-runtime"),rn=Be.forwardRef(({className:e,children:t,label:o,message:a,size:i,isError:n,disabled:s,...c},p)=>(0,k.jsxs)("div",{ref:p,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[o&&(0,k.jsx)("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:o}),(0,k.jsx)(N.Root,{disabled:s,...c,children:t}),a&&(0,k.jsxs)("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?(0,k.jsx)(at.XCircleIcon,{width:16,height:16}):(0,k.jsx)(an.QuestionMarkCircleIcon,{width:16,height:16}),(0,k.jsx)("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),nn=N.Value,ai=Be.forwardRef(({className:e,children:t,...o},a)=>(0,k.jsxs)(N.Trigger,{ref:a,className:r("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...o,children:[(0,k.jsx)("div",{className:"line-clamp-1 text-left",children:t}),(0,k.jsx)(N.Icon,{asChild:!0,children:(0,k.jsx)(at.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));ai.displayName=N.Trigger.displayName;var ea=Be.forwardRef(({className:e,...t},o)=>(0,k.jsx)(N.ScrollUpButton,{ref:o,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:(0,k.jsx)(at.ChevronUpIcon,{className:"h-5 w-5"})}));ea.displayName=N.ScrollUpButton.displayName;var ta=Be.forwardRef(({className:e,...t},o)=>(0,k.jsx)(N.ScrollDownButton,{ref:o,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...t,children:(0,k.jsx)(at.ChevronDownIcon,{className:"h-5 w-5"})}));ta.displayName=N.ScrollDownButton.displayName;var ii=Be.forwardRef(({className:e,children:t,position:o="popper",...a},i)=>(0,k.jsx)(N.Portal,{children:(0,k.jsxs)(N.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="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:o,...a,children:[(0,k.jsx)(ea,{}),(0,k.jsx)(N.Viewport,{className:r("p-0",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,k.jsx)(ta,{})]})}));ii.displayName=N.Content.displayName;var sn=Be.forwardRef(({className:e,children:t,...o},a)=>(0,k.jsx)(N.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...o,children:t})),ri=Be.forwardRef(({className:e,...t},o)=>(0,k.jsx)(N.Label,{ref:o,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...t}));ri.displayName=N.Label.displayName;var ln=Be.forwardRef(({className:e,children:t,...o},a)=>(0,k.jsxs)(N.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,k.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,k.jsx)(N.ItemIndicator,{children:(0,k.jsx)(at.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,k.jsx)(N.ItemText,{children:t})]})),ni=Be.forwardRef(({className:e,...t},o)=>(0,k.jsx)(N.Separator,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));ni.displayName=N.Separator.displayName;var Ae=g(require("react"),1),_=g(require("@radix-ui/react-navigation-menu"),1),mn=require("class-variance-authority"),cn=require("@heroicons/react/16/solid");var xe=require("react/jsx-runtime"),dn=Ae.createContext(null),lm=({value:e,children:t})=>(0,xe.jsx)(dn.Provider,{value:e,children:t}),mm=()=>{let e=Ae.useContext(dn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},go=Ae.forwardRef(({className:e,children:t,alignDropdown:o="left",...a},i)=>(0,xe.jsx)(lm,{value:{alignDropdown:o},children:(0,xe.jsx)(_.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:t})}));go.displayName=_.Root.displayName;var uo=Ae.forwardRef(({className:e,...t},o)=>(0,xe.jsx)(_.List,{ref:o,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...t}));uo.displayName=_.List.displayName;var vo=_.Item,bo=(0,mn.cva)(Me({variant:"transparent",size:"sm"})),xo=Ae.forwardRef(({className:e,children:t,...o},a)=>(0,xe.jsxs)(_.Trigger,{ref:a,className:r(bo(),"group px-2",e),...o,children:[t," ",(0,xe.jsx)(cn.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));xo.displayName=_.Trigger.displayName;var ho=Ae.forwardRef(({className:e,...t},o)=>{let{alignDropdown:a}=mm();return(0,xe.jsx)(_.Content,{ref:o,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...t})});ho.displayName=_.Content.displayName;var Qt=_.Link,cm=Ae.forwardRef(({className:e,...t},o)=>(0,xe.jsx)("div",{className:r("absolute left-0 top-full flex justify-center"),children:(0,xe.jsx)(_.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:o,...t})}));cm.displayName=_.Viewport.displayName;var dm=Ae.forwardRef(({className:e,...t},o)=>(0,xe.jsx)(_.Indicator,{ref:o,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:(0,xe.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));dm.displayName=_.Indicator.displayName;var pn=g(require("react"),1),yo=g(require("@radix-ui/react-switch"),1);var si=require("react/jsx-runtime"),li=pn.forwardRef(({className:e,...t},o)=>(0,si.jsx)(yo.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...t,ref:o,children:(0,si.jsx)(yo.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));li.displayName=yo.Root.displayName;var It=g(require("react"),1),yt=g(require("@radix-ui/react-radio-group"),1),fn=require("lucide-react"),mi=require("class-variance-authority");var Xt=require("react/jsx-runtime"),pm=(0,mi.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"}}),fm=(0,mi.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),gn=It.createContext({size:"medium"});function gm(){let e=It.useContext(gn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var ci=It.forwardRef(({className:e,size:t,...o},a)=>(0,Xt.jsx)(gn.Provider,{value:{size:t},children:(0,Xt.jsx)(yt.Root,{className:r("grid gap-2",e),...o,ref:a})}));ci.displayName=yt.Root.displayName;var di=It.forwardRef(({className:e,...t},o)=>{let a=gm(),{size:i}=a??{};return(0,Xt.jsx)(yt.Item,{ref:o,className:r(pm({size:i}),e),...t,children:(0,Xt.jsx)(yt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,Xt.jsx)(fn.Circle,{className:r(fm({size:i}))})})})});di.displayName=yt.Item.displayName;var Ve=require("react/jsx-runtime"),um=({className:e="",icon:t="",title:o,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Ve.jsx)("li",{className:"",children:(0,Ve.jsx)(Qt,{asChild:!0,children:(0,Ve.jsxs)("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!t&&"items-center px-3"),href:i,...s,children:[t&&(0,Ve.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,Ve.jsx)("img",{src:t,loading:"lazy",className:"w-7 h-7 object-cover",alt:o})}),(0,Ve.jsxs)("div",{className:" ",children:[(0,Ve.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:o}),a&&(0,Ve.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},un=um;var Le=require("react/jsx-runtime"),vm=({data:e,alignDropdown:t})=>(0,Le.jsx)(go,{alignDropdown:t,children:(0,Le.jsx)(uo,{children:e.map(o=>{let a=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return o.hasDropdown?(0,Le.jsxs)(vo,{className:"relative",children:[(0,Le.jsx)(xo,{children:o.title}),(0,Le.jsx)(ho,{children:(0,Le.jsx)("ul",{className:r("grid w-[300px] p-2 grid-cols-1",o.dropDownCompact===!1&&o.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",o.dropDownCompact===!1&&o.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",o.dropDownCompact===!0&&o.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",o.dropDownCompact===!0&&o.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:o.subMenu&&o.subMenu.map(i=>(0,Le.jsx)(un,{title:i.title,href:i.url,newTab:i.newTab,icon:o.dropDownCompact===!0?i.icon:"",children:o.dropDownCompact===!0?i.description:""},i.title))})})]},o.id):(0,Le.jsx)(vo,{className:"relative",children:(0,Le.jsx)(Qt,{href:o.url,className:bo(),...a,children:o.title})},o.id)})})}),vn=vm;var aa=require("react");var oa=[.24,.25,.05,1];var yn=require("react-use"),pi=g(require("next/router"),1);var it=require("react/jsx-runtime"),bm=({className:e="",icon:t="",title:o,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,it.jsx)("li",{className:"min-h-8",children:(0,it.jsxs)("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[t&&(0,it.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,it.jsx)("img",{src:t,loading:"lazy",className:"w-6 h-6 object-cover",alt:o})}),(0,it.jsxs)("div",{className:" ",children:[(0,it.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:o}),a&&(0,it.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},bn=bm;var xn=require("framer-motion"),Oe=require("react/jsx-runtime"),xm={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:oa}},exit:{opacity:0,transition:{duration:.05}}},hm=({data:e})=>(0,Oe.jsx)(lt,{type:"single",collapsible:!0,children:e.map(t=>{let o=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Oe.jsx)(xn.motion.div,{variants:xm,children:t.hasDropdown?(0,Oe.jsxs)(mt,{value:t.id,children:[(0,Oe.jsx)(ct,{className:"py-3",children:t.title}),(0,Oe.jsx)(dt,{children:(0,Oe.jsx)("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:t.subMenu&&t.subMenu.map(a=>(0,Oe.jsx)(bn,{title:a.title,href:a.url,newTab:a.newTab,icon:t.dropDownCompact===!0?a.icon:"",children:t.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,Oe.jsx)("a",{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:t.url,...o,children:t.title})},t.id)})}),hn=hm;var We=require("framer-motion");var b=require("react/jsx-runtime"),ym=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,wm=({data:e,className:t})=>{let[o,a]=(0,aa.useState)(!1);(0,yn.useKey)("Escape",()=>a(!1)),(0,aa.useEffect)(()=>{if(!o)return;let s=ym();function c(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",pi.default.events.on("routeChangeComplete",c),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),pi.default.events.off("routeChangeComplete",c)}},[o]);let i={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:oa}},exit:{opacity:0,transition:{duration:.15}}};return(0,b.jsxs)("div",{className:r(t),children:[(0,b.jsxs)("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>a(!o),children:[(0,b.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,b.jsx)(We.motion.div,{animate:o?"hidden":"visible",variants:i,children:(0,b.jsx)("svg",{className:r("block w-7 h-7",o&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,b.jsx)(We.motion.div,{animate:o?"visible":"hidden",variants:i,children:(0,b.jsx)("svg",{className:r("block w-7 h-7",!o&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,b.jsx)(We.LazyMotion,{features:We.domAnimation,children:(0,b.jsx)(We.AnimatePresence,{mode:"wait",children:o&&(0,b.jsxs)(We.motion.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(t,"fixed block w-full max-w-full z-50 px-5 bg-white left-0 right-0 bottom-0 overflow-y-auto top-[calc(var(--header-height)+1px)] pb-24 "),children:[(0,b.jsx)(hn,{data:e}),(0,b.jsxs)("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[(0,b.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,b.jsxs)("div",{className:"flex flex-nowrap",children:[(0,b.jsx)("div",{className:"flex-initial",children:(0,b.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,b.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,b.jsx)("div",{className:"ml-3 flex-initial",children:(0,b.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,b.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,b.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,b.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,b.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,b.jsx)("a",{href:`tel:${Xe.Support.Hotline}`,className:"text-gray-600",children:Xe.Support.Hotline_Format})]}),(0,b.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,b.jsx)("a",{href:`mailto:${Xe.Support.Email}`,className:"text-gray-600",children:Xe.Support.Email})]})]}),(0,b.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,b.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,b.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,b.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,b.jsxs)("g",{children:[(0,b.jsx)("title",{children:"Asset 1"}),(0,b.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 ca=require("@heroicons/react/24/outline");var da=require("react");var et=require("react/jsx-runtime"),vi=(0,da.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:m,disabled:f=!1,...p},c)=>{let[g,b]=(0,da.useState)(i),H=()=>{let V=Math.min(g+a,t);b(V),n?.(V),m?.(V)},z=()=>{let V=Math.max(g-a,o);b(V),n?.(V),s?.(V)},le=V=>{let oe=parseFloat(V.target.value);if(!isNaN(oe)){let ae=Math.max(Math.min(oe,t),o);b(ae),n?.(ae)}};return(0,et.jsxs)("div",{ref:c,className:r("flex items-center ",e),children:[(0,et.jsxs)(Se,{className:r(" text-pink-500 cursor-pointer w-9 h-9",f&&"text-gray-400 cursor-default"),variant:"transparent",onClick:z,disabled:f||g<=o,children:[(0,et.jsx)(ca.MinusCircleIcon,{className:"w-7 h-7 "}),(0,et.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,et.jsx)("input",{type:"number",value:g,onChange:le,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:f,...p}),(0,et.jsxs)(Se,{className:r(" text-pink-500 cursor-pointer w-9 h-9",f&&"text-gray-400 cursor-default"),variant:"transparent",onClick:H,disabled:f||g>=t,children:[(0,et.jsx)(ca.PlusCircleIcon,{className:"w-7 h-7 "}),(0,et.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});vi.displayName="Stepper";var tt=u(require("react"),1),vt=require("@heroicons/react/16/solid"),Cn=require("@heroicons/react/24/outline"),P=u(require("@radix-ui/react-select"),1);var M=require("react/jsx-runtime"),Rn=tt.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...m},f)=>(0,M.jsxs)("div",{ref:f,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&(0,M.jsx)("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),(0,M.jsx)(P.Root,{disabled:s,...m,children:o}),a&&(0,M.jsxs)("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?(0,M.jsx)(vt.XCircleIcon,{width:16,height:16}):(0,M.jsx)(Cn.QuestionMarkCircleIcon,{width:16,height:16}),(0,M.jsx)("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Tn=P.Value,bi=tt.forwardRef(({className:e,children:o,...t},a)=>(0,M.jsxs)(P.Trigger,{ref:a,className:r("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[(0,M.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,M.jsx)(P.Icon,{asChild:!0,children:(0,M.jsx)(vt.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));bi.displayName=P.Trigger.displayName;var pa=tt.forwardRef(({className:e,...o},t)=>(0,M.jsx)(P.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:(0,M.jsx)(vt.ChevronUpIcon,{className:"h-5 w-5"})}));pa.displayName=P.ScrollUpButton.displayName;var fa=tt.forwardRef(({className:e,...o},t)=>(0,M.jsx)(P.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:(0,M.jsx)(vt.ChevronDownIcon,{className:"h-5 w-5"})}));fa.displayName=P.ScrollDownButton.displayName;var xi=tt.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>(0,M.jsx)(P.Portal,{children:(0,M.jsxs)(P.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[(0,M.jsx)(pa,{}),(0,M.jsx)(P.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,M.jsx)(fa,{})]})}));xi.displayName=P.Content.displayName;var kn=tt.forwardRef(({className:e,children:o,...t},a)=>(0,M.jsx)(P.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),hi=tt.forwardRef(({className:e,...o},t)=>(0,M.jsx)(P.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));hi.displayName=P.Label.displayName;var Sn=tt.forwardRef(({className:e,children:o,...t},a)=>(0,M.jsxs)(P.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[(0,M.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,M.jsx)(P.ItemIndicator,{children:(0,M.jsx)(vt.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,M.jsx)(P.ItemText,{children:o})]})),yi=tt.forwardRef(({className:e,...o},t)=>(0,M.jsx)(P.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));yi.displayName=P.Separator.displayName;var Be=u(require("react"),1),O=u(require("@radix-ui/react-navigation-menu"),1),Dn=require("class-variance-authority"),Mn=require("@heroicons/react/16/solid");var Pe=require("react/jsx-runtime"),In=Be.createContext(null),Hm=({value:e,children:o})=>(0,Pe.jsx)(In.Provider,{value:e,children:o}),Em=()=>{let e=Be.useContext(In);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Co=Be.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>(0,Pe.jsx)(Hm,{value:{alignDropdown:t},children:(0,Pe.jsx)(O.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Co.displayName=O.Root.displayName;var Ro=Be.forwardRef(({className:e,...o},t)=>(0,Pe.jsx)(O.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ro.displayName=O.List.displayName;var To=O.Item,ko=(0,Dn.cva)(Le({variant:"transparent",size:"sm"})),So=Be.forwardRef(({className:e,children:o,...t},a)=>(0,Pe.jsxs)(O.Trigger,{ref:a,className:r(ko(),"group px-2",e),...t,children:[o," ",(0,Pe.jsx)(Mn.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));So.displayName=O.Trigger.displayName;var Do=Be.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Em();return(0,Pe.jsx)(O.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Do.displayName=O.Content.displayName;var ro=O.Link,zm=Be.forwardRef(({className:e,...o},t)=>(0,Pe.jsx)("div",{className:r("absolute left-0 top-full flex justify-center"),children:(0,Pe.jsx)(O.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));zm.displayName=O.Viewport.displayName;var _m=Be.forwardRef(({className:e,...o},t)=>(0,Pe.jsx)(O.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:(0,Pe.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));_m.displayName=O.Indicator.displayName;var An=u(require("react"),1),Mo=u(require("@radix-ui/react-switch"),1);var wi=require("react/jsx-runtime"),Ni=An.forwardRef(({className:e,...o},t)=>(0,wi.jsx)(Mo.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:(0,wi.jsx)(Mo.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Ni.displayName=Mo.Root.displayName;var Ut=u(require("react"),1),kt=u(require("@radix-ui/react-radio-group"),1),Ln=require("lucide-react"),Pi=require("class-variance-authority");var no=require("react/jsx-runtime"),Fm=(0,Pi.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"}}),Bm=(0,Pi.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Hn=Ut.createContext({size:"medium"});function Vm(){let e=Ut.useContext(Hn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ci=Ut.forwardRef(({className:e,size:o,...t},a)=>(0,no.jsx)(Hn.Provider,{value:{size:o},children:(0,no.jsx)(kt.Root,{className:r("grid gap-2",e),...t,ref:a})}));Ci.displayName=kt.Root.displayName;var Ri=Ut.forwardRef(({className:e,...o},t)=>{let a=Vm(),{size:i}=a??{};return(0,no.jsx)(kt.Item,{ref:t,className:r(Fm({size:i}),e),...o,children:(0,no.jsx)(kt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,no.jsx)(Ln.Circle,{className:r(Bm({size:i}))})})})});Ri.displayName=kt.Item.displayName;var ot=require("react/jsx-runtime"),Om=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ot.jsx)("li",{className:"",children:(0,ot.jsx)(ro,{asChild:!0,children:(0,ot.jsxs)("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&(0,ot.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,ot.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,ot.jsxs)("div",{className:" ",children:[(0,ot.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,ot.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},En=Om;var Ve=require("react/jsx-runtime"),Wm=({data:e,alignDropdown:o})=>(0,Ve.jsx)(Co,{alignDropdown:o,children:(0,Ve.jsx)(Ro,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,Ve.jsxs)(To,{className:"relative",children:[(0,Ve.jsx)(So,{children:t.title}),(0,Ve.jsx)(Do,{children:(0,Ve.jsx)("ul",{className:r("grid w-[300px] p-2 grid-cols-1",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>(0,Ve.jsx)(En,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):(0,Ve.jsx)(To,{className:"relative",children:(0,Ve.jsx)(ro,{href:t.url,className:ko(),...a,children:t.title})},t.id)})})}),zn=Wm;var ua=require("react");var ga=[.24,.25,.05,1];var Vn=require("react-use"),Ti=u(require("next/router"),1);var bt=require("react/jsx-runtime"),$m=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,bt.jsx)("li",{className:"min-h-8",children:(0,bt.jsxs)("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&(0,bt.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,bt.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,bt.jsxs)("div",{className:" ",children:[(0,bt.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,bt.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},_n=$m;var Fn=require("framer-motion"),at=require("react/jsx-runtime"),Gm={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:ga}},exit:{opacity:0,transition:{duration:.05}}},jm=({data:e})=>(0,at.jsx)(Et,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,at.jsx)(Fn.motion.div,{variants:Gm,children:o.hasDropdown?(0,at.jsxs)(zt,{value:o.id,children:[(0,at.jsx)(_t,{className:"py-3",children:o.title}),(0,at.jsx)(Ft,{children:(0,at.jsx)("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>(0,at.jsx)(_n,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,at.jsx)("a",{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:o.url,...t,children:o.title})},o.id)})}),Bn=jm;var it=require("framer-motion");var h=require("react/jsx-runtime"),Um=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Qm=({data:e,className:o})=>{let[t,a]=(0,ua.useState)(!1);(0,Vn.useKey)("Escape",()=>a(!1)),(0,ua.useEffect)(()=>{if(!t)return;let s=Um();function m(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Ti.default.events.on("routeChangeComplete",m),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),Ti.default.events.off("routeChangeComplete",m)}},[t]);let i={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:ga}},exit:{opacity:0,transition:{duration:.15}}};return(0,h.jsxs)("div",{className:r(o),children:[(0,h.jsxs)("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,h.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,h.jsx)(it.motion.div,{animate:t?"hidden":"visible",variants:i,children:(0,h.jsx)("svg",{className:r("block w-7 h-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,h.jsx)(it.motion.div,{animate:t?"visible":"hidden",variants:i,children:(0,h.jsx)("svg",{className:r("block w-7 h-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,h.jsx)(it.LazyMotion,{features:it.domAnimation,children:(0,h.jsx)(it.AnimatePresence,{mode:"wait",children:t&&(0,h.jsxs)(it.motion.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed block w-full max-w-full z-50 px-5 bg-white left-0 right-0 bottom-0 overflow-y-auto top-[calc(var(--header-height)+1px)] pb-24 "),children:[(0,h.jsx)(Bn,{data:e}),(0,h.jsxs)("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,h.jsxs)("div",{className:"flex flex-nowrap",children:[(0,h.jsx)("div",{className:"flex-initial",children:(0,h.jsx)("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,h.jsx)("div",{className:"ml-3 flex-initial",children:(0,h.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{href:`tel:${ct.Support.Hotline}`,className:"text-gray-600",children:ct.Support.Hotline_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsx)("a",{href:`mailto:${ct.Support.Email}`,className:"text-gray-600",children:ct.Support.Email})]})]}),(0,h.jsx)("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,h.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[(0,h.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,h.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,h.jsxs)("g",{children:[(0,h.jsx)("title",{children:"Asset 1"}),(0,h.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
121
121
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
122
|
-
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,
|
|
122
|
+
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,h.jsx)("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
123
123
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
124
|
-
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,
|
|
124
|
+
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,h.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,h.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,h.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,h.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,h.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,h.jsx)("a",{className:"text-gray-600",href:`tel:${ct.Business.Phome}`,children:ct.Business.Phome_Format})]}),(0,h.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,h.jsxs)("a",{href:`mailto:${ct.Business.Email}`,className:"text-gray-600",children:[" ",ct.Business.Email]})]})]}),(0,h.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,h.jsxs)("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[(0,h.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,h.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,h.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,h.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},On=Qm;var Wn=u(require("html-react-parser"),1);var $n=require("@heroicons/react/16/solid"),Gn=require("react");var K=require("react/jsx-runtime"),ki=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left"})=>{let{logo:m,name:f,url:p}=t||{},[c,g]=(0,Gn.useState)(!1);return(0,K.jsxs)("div",{className:r(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[(0,K.jsx)("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,K.jsx)("nav",{className:r("wrapper grid grid-cols-1 items-center lg:border-0 [--header-height:64px] "),style:{minHeight:"var(--header-height)"},children:(0,K.jsxs)("div",{className:"relative flex items-center ",children:[(0,K.jsxs)("a",{href:"/",title:"MoMo",className:"mr-3 flex-none w-9 h-9 overflow-hidden rounded-none hover:opacity-80",children:[(0,K.jsx)("span",{className:"sr-only",children:"MoMo home page"}),(0,K.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"})]}),t&&(0,K.jsxs)("a",{href:p,title:f,className:" relative flex flex-none space-x-1 pl-2 items-center rounded-none hover:opacity-80 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] ",children:[(0,K.jsx)("img",{src:m,className:"w-9 h-9",alt:"MoMo"}),(0,K.jsx)("div",{className:"text-sm font-semibold leading-[1.1] text-pink-500 line-clamp-2",children:f&&(0,Wn.default)(f)})]}),(0,K.jsx)("div",{className:"relative lg:ml-2 xl:ml-4 hidden lg:flex items-center ",children:(0,K.jsx)(zn,{data:o,alignDropdown:s})}),(0,K.jsxs)("div",{className:"ml-auto flex space-x-3 flex-nowrap items-center",children:[i&&i,a&&(0,K.jsxs)("div",{className:" hidden sm:flex",children:[(0,K.jsxs)(he,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",(0,K.jsx)($n.ArrowDownTrayIcon,{className:"mr-1 w-4 h-4"})," T\u1EA3i V\xED MoMo"]}),(0,K.jsx)(wt,{open:c,onOpenChange:()=>g(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),(0,K.jsx)(On,{data:o,className:"lg:hidden "})]})]})})]})};ki.displayName="HeaderNavigation";var Un=require("react");var d=require("react/jsx-runtime"),jn=({item:e})=>(0,d.jsx)("div",{className:"mt-3 flex w-full text-sm",children:(0,d.jsxs)("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&(0,d.jsx)("span",{className:"relative flex-none h-5 w-5 md:h-6 md:w-6",children:(0,d.jsx)("img",{src:e.icon,className:"absolute inset-0"})}),(0,d.jsx)("span",{className:"block ",children:e.title})]})}),qm=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=(0,Un.useState)(null);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"footer-main order-2 py-7 text-white md:order-1 text-sm",children:(0,d.jsxs)("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[(0,d.jsxs)("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[(0,d.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((i,n)=>(0,d.jsx)(jn,{item:i},n))]}),(0,d.jsxs)("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[(0,d.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),(0,d.jsx)("div",{className:"flex flex-wrap",children:o?.lists?.map((i,n)=>(0,d.jsx)(jn,{item:i},n))})]}),(0,d.jsxs)("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[(0,d.jsxs)("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[(0,d.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),(0,d.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),(0,d.jsx)("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:Nr.Address})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${me.Support.Hotline}`,children:me.Support.Hotline_Format}),(0,d.jsxs)("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${me.Support.Email}`,children:me.Support.Email})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsxs)("span",{className:"text-white text-opacity-50",children:["T\u1ED5ng \u0111\xE0i g\u1ECDi ra :"," "]}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${me.Support.Phone_Ext_1}`,children:me.Support.Phone_Ext_1_Format}),(0,d.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${me.Support.Phone_Ext_2}`,children:me.Support.Phone_Ext_2_Format}),(0,d.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${me.Support.Phone_Ext_3}`,children:me.Support.Phone_Ext_3_Format}),(0,d.jsx)("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),(0,d.jsx)("div",{className:"mt-3 flex",children:(0,d.jsx)("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:(0,d.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[(0,d.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,d.jsx)("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,d.jsxs)("g",{children:[(0,d.jsx)("title",{children:"Asset 1"}),(0,d.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
125
125
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
126
|
-
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,
|
|
126
|
+
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,d.jsx)("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
127
127
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
128
|
-
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,m.jsx)("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,m.jsx)("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),(0,m.jsxs)("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[(0,m.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,m.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,m.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,m.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${re.Business.Phome}`,children:re.Business.Phome_Format})]}),(0,m.jsxs)("div",{className:"mt-1 text-sm",children:[(0,m.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,m.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${re.Business.Email}`,children:re.Business.Email})]}),(0,m.jsxs)("div",{className:"mt-1 text-sm",children:[(0,m.jsx)("span",{className:"text-white text-opacity-50",children:"Website : "}),(0,m.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),(0,m.jsx)("div",{className:"mt-3 flex",children:(0,m.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,m.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[(0,m.jsx)("div",{className:"absolute left-1 top-1 flex aspect-1 items-center justify-center",children:(0,m.jsxs)("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[(0,m.jsx)("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),(0,m.jsx)("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),(0,m.jsx)("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),(0,m.jsx)("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),(0,m.jsx)("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),(0,m.jsx)("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),(0,m.jsx)("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),(0,m.jsx)("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),(0,m.jsx)("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),(0,m.jsx)("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,m.jsx)("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),(0,m.jsxs)("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[(0,m.jsxs)("div",{className:"h-auto",children:[(0,m.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),(0,m.jsx)("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:(0,m.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Yt&&Yt.map((i,n)=>(0,m.jsx)("li",{className:"inline-block",children:(0,m.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:(0,m.jsx)("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),(0,m.jsxs)("div",{className:"h-auto",children:[(0,m.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),(0,m.jsxs)("div",{className:"flex items-center flex-wrap md:mt-3 md:space-x-1.5",children:[(0,m.jsx)("div",{className:"relative hidden h-24 w-24 lg:w-20 lg:h-20 grow-0 overflow-hidden rounded-sm bg-white md:block",children:(0,m.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),(0,m.jsx)("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:va&&va.map((i,n)=>(0,m.jsxs)("div",{className:"w-full md:flex md:items-center button-download",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[(0,m.jsx)(ge,{onClick:()=>a(n),className:"!bg-transparent rounded-none w-full hidden sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),(0,m.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),(0,m.jsx)(gt,{open:o===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),(0,m.jsx)("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:(0,m.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Yt&&Yt.map((i,n)=>(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:(0,m.jsx)("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),(0,m.jsxs)("div",{className:"h-auto",children:[(0,m.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),(0,m.jsxs)("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[(0,m.jsxs)("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),(0,m.jsx)("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:(0,m.jsx)("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),(0,m.jsx)("div",{className:" footer-bottom order-1 bg-gray-800 py-3.5 md:order-2 md:py-5",children:(0,m.jsxs)("div",{className:"wrapper flex flex-wrap items-end justify-between md:flex-nowrap md:space-x-3",children:[(0,m.jsxs)("div",{className:"mb-2.5 flex justify-between md:mb-0",children:[(0,m.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"}),(0,m.jsxs)("div",{className:"shrink pl-3",children:[(0,m.jsx)("div",{className:"text-sm text-white text-opacity-80 md:mb-1.5 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),(0,m.jsx)("span",{className:"hidden text-xs text-white text-opacity-50 md:block lg:text-sm lg:leading-none",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"})]})]}),(0,m.jsx)("span",{className:"block text-sm text-white text-opacity-50 md:hidden",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),(0,m.jsxs)("span",{className:"hidden w-48 flex-none text-right text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})}),(0,m.jsx)("style",{children:`
|
|
128
|
+
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,d.jsx)("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,d.jsx)("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),(0,d.jsxs)("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[(0,d.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,d.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${me.Business.Phome}`,children:me.Business.Phome_Format})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${me.Business.Email}`,children:me.Business.Email})]}),(0,d.jsxs)("div",{className:"mt-1 text-sm",children:[(0,d.jsx)("span",{className:"text-white text-opacity-50",children:"Website : "}),(0,d.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),(0,d.jsx)("div",{className:"mt-3 flex",children:(0,d.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,d.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[(0,d.jsx)("div",{className:"absolute left-1 top-1 flex aspect-1 items-center justify-center",children:(0,d.jsxs)("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[(0,d.jsx)("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),(0,d.jsx)("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),(0,d.jsx)("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,d.jsx)("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),(0,d.jsxs)("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[(0,d.jsxs)("div",{className:"h-auto",children:[(0,d.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),(0,d.jsx)("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:(0,d.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:co&&co.map((i,n)=>(0,d.jsx)("li",{className:"inline-block",children:(0,d.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:(0,d.jsx)("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),(0,d.jsxs)("div",{className:"h-auto",children:[(0,d.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),(0,d.jsxs)("div",{className:"flex items-center flex-wrap md:mt-3 md:space-x-1.5",children:[(0,d.jsx)("div",{className:"relative hidden h-24 w-24 lg:w-20 lg:h-20 grow-0 overflow-hidden rounded-sm bg-white md:block",children:(0,d.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),(0,d.jsx)("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:Sa&&Sa.map((i,n)=>(0,d.jsxs)("div",{className:"w-full md:flex md:items-center button-download",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[(0,d.jsx)(he,{onClick:()=>a(n),className:"!bg-transparent rounded-none w-full hidden sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),(0,d.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),(0,d.jsx)(wt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),(0,d.jsx)("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:(0,d.jsx)("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:co&&co.map((i,n)=>(0,d.jsx)("li",{children:(0,d.jsx)("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:(0,d.jsx)("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),(0,d.jsxs)("div",{className:"h-auto",children:[(0,d.jsx)("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),(0,d.jsxs)("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[(0,d.jsxs)("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),(0,d.jsx)("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:(0,d.jsx)("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),(0,d.jsx)("div",{className:" footer-bottom order-1 bg-gray-800 py-3.5 md:order-2 md:py-5",children:(0,d.jsxs)("div",{className:"wrapper flex flex-wrap items-end justify-between md:flex-nowrap md:space-x-3",children:[(0,d.jsxs)("div",{className:"mb-2.5 flex justify-between md:mb-0",children:[(0,d.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"}),(0,d.jsxs)("div",{className:"shrink pl-3",children:[(0,d.jsx)("div",{className:"text-sm text-white text-opacity-80 md:mb-1.5 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),(0,d.jsx)("span",{className:"hidden text-xs text-white text-opacity-50 md:block lg:text-sm lg:leading-none",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"})]})]}),(0,d.jsx)("span",{className:"block text-sm text-white text-opacity-50 md:hidden",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),(0,d.jsxs)("span",{className:"hidden w-48 flex-none text-right text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})}),(0,d.jsx)("style",{children:`
|
|
129
129
|
footer .button-download {
|
|
130
130
|
max-width: 150px;
|
|
131
131
|
}
|
|
132
|
-
`})]})},
|
|
132
|
+
`})]})},Qn=qm;var Si=require("react/jsx-runtime"),qn=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,Si.jsx)("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,Si.jsx)(Qn,{primaryMenu:o,secondaryMenu:t})});var Qt=u(require("react"),1);var qt=require("react/jsx-runtime"),Di=Qt.forwardRef(({className:e,...o},t)=>(0,qt.jsx)("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Di.displayName="Card";var Mi=Qt.forwardRef(({className:e,...o},t)=>(0,qt.jsx)("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));Mi.displayName="CardHeader";var Ii=Qt.forwardRef(({className:e,...o},t)=>(0,qt.jsx)("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));Ii.displayName="CardTitle";var Ai=Qt.forwardRef(({className:e,...o},t)=>(0,qt.jsx)("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Ai.displayName="CardDescription";var Li=Qt.forwardRef(({className:e,...o},t)=>(0,qt.jsx)("div",{ref:t,className:r("p-6 pt-0",e),...o}));Li.displayName="CardContent";var Hi=Qt.forwardRef(({className:e,...o},t)=>(0,qt.jsx)("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));Hi.displayName="CardFooter";var Ie=u(require("react"),1),de=require("cmdk");var va=require("@heroicons/react/16/solid"),se=require("react/jsx-runtime"),ba=Ie.forwardRef(({className:e,...o},t)=>(0,se.jsx)(de.Command,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ba.displayName=de.Command.displayName;var Xn=({children:e,...o})=>(0,se.jsx)($e,{...o,children:(0,se.jsx)(He,{className:"overflow-hidden p-0 shadow-lg",children:(0,se.jsx)(ba,{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})})}),Ei=Ie.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=Ie.useRef(null),[s,m]=Ie.useState(""),f=()=>{!s||s?.length<=0||(m(""),o?.(s))};return(0,se.jsxs)("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[(0,se.jsx)(va.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,se.jsx)(de.Command.Input,{ref:i,className:r("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:m,...a}),(0,se.jsx)(va.XCircleIcon,{onClick:f,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Ei.displayName=de.Command.Input.displayName;var zi=Ie.forwardRef(({className:e,...o},t)=>(0,se.jsx)(de.Command.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));zi.displayName=de.Command.List.displayName;var _i=Ie.forwardRef((e,o)=>(0,se.jsx)(de.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));_i.displayName=de.Command.Empty.displayName;var Fi=Ie.forwardRef(({className:e,...o},t)=>(0,se.jsx)(de.Command.Group,{ref:t,className:r("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));Fi.displayName=de.Command.Group.displayName;var Bi=Ie.forwardRef(({className:e,...o},t)=>(0,se.jsx)(de.Command.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));Bi.displayName=de.Command.Separator.displayName;var Vi=Ie.forwardRef(({className:e,children:o,...t},a)=>(0,se.jsx)(de.Command.Item,{ref:a,className:r("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));Vi.displayName=de.Command.Item.displayName;var Oi=({className:e,...o})=>(0,se.jsx)("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Oi.displayName="CommandShortcut";var Zn=require("@heroicons/react/16/solid");var St=require("react/jsx-runtime"),Kn=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>(0,St.jsxs)("div",{className:"relative",children:[(0,St.jsxs)(ao,{className:r("focus-visible:outline-none w-72 focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 select-mobase-button bg-white ring-0 transition-all rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",n===2&&"h-12 text-base",e),children:[o||a||i,(0,St.jsx)(Zn.ChevronDownIcon,{className:"h-4 w-4 text-gray-700 flex-none"})]}),t&&(0,St.jsx)("span",{className:"absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",children:t})]}),Yn=({children:e,className:o})=>(0,St.jsx)($t,{className:r("!p-0 border-none",o),children:e}),Jn=({open:e,onOpenChange:o,children:t})=>(0,St.jsx)(oo,{open:e,onOpenChange:o,children:t});var Wi=require("class-variance-authority"),es=require("react");var ts=require("@heroicons/react/24/outline");var Xt=require("react/jsx-runtime"),Xm=(0,Wi.cva)("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ",{variants:{typeDiv:{neutral:"bg-gray-50 border-gray-300 ",error:"bg-red-50 border-red-300",success:"bg-green-50 border-green-300",warning:"bg-yellow-50 border-yellow-300",info:"bg-blue-50 border-blue-300"},disabled:{true:"text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300"}},defaultVariants:{typeDiv:"neutral"}}),Zm=(0,Wi.cva)("w-5 h-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),os=(0,es.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:m,...f},p)=>(0,Xt.jsxs)("div",{ref:p,className:r("",i,Xm({typeDiv:e,disabled:n})),...f,children:[(0,Xt.jsxs)("div",{className:"flex items-center space-x-2",children:[m||(0,Xt.jsx)(ts.InformationCircleIcon,{className:r(Zm({typeIcon:e,disabled:n})),width:20,height:20}),o&&(0,Xt.jsx)("div",{children:o})]}),t&&(0,Xt.jsx)(ue,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));var Dt=require("react"),as=require("@heroicons/react/20/solid"),is=require("@heroicons/react/24/outline");var rt=require("react/jsx-runtime"),rs=(0,Dt.forwardRef)(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:m,defaultValue:f,type:p="text",...c},g)=>{let[b,H]=(0,Dt.useState)(!1),z=(0,Dt.useRef)(null),le=q=>{q&&!b&&H(!0),!q&&b&&H(!1)},V=q=>{le(q.target.value),i?.(q)},oe=q=>{le(q.target.value),n?.(q)},ae=()=>{let q=z.current?.querySelector("input");q&&(s?.(q.value),q.value="",q.focus(),H(!1))};return(0,Dt.useEffect)(()=>{le(f||m)},[m,f]),(0,rt.jsxs)("div",{className:r(o),ref:z,children:[(0,rt.jsxs)("div",{className:"relative flex items-center",children:[(0,rt.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,rt.jsx)(as.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,rt.jsx)("input",{disabled:e,type:p,ref:g,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:V,onFocus:oe,value:m,defaultValue:f,...c}),b&&(0,rt.jsx)("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:ae,children:(0,rt.jsx)(is.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,rt.jsx)("style",{children:`
|
|
133
133
|
.mobase-text-input-box:hover {
|
|
134
134
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
135
135
|
}
|
|
136
136
|
.mobase-text-input-box:focus {
|
|
137
137
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
|
|
138
138
|
}
|
|
139
|
-
`})]})});var
|
|
139
|
+
`})]})});var Ce=u(require("@radix-ui/react-dialog"),1),Ae=u(require("react"),1);var ns=require("lucide-react"),ss=u(require("lodash"),1);var A=require("react/jsx-runtime"),ls=Ae.default.createContext(void 0);function ms(){let e=(0,Ae.useContext)(ls);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var xa=({children:e,open:o,onOpenChange:t,className:a})=>(0,A.jsx)(ls.Provider,{value:{open:o,onOpenChange:t},children:(0,A.jsx)(Ce.Root,{open:o,onOpenChange:t,children:(0,A.jsx)("div",{className:r("lightbox-gallery",a),children:e})})}),cs=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:m}=ms(),f=()=>{n?.(),m&&m(!0)};return(0,A.jsxs)(Ce.Trigger,{className:r("",a),onClick:f,children:[e,(0,A.jsx)(j,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,A.jsx)("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},ds=Ae.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=ms(),n=()=>{i&&i(!1)};return(0,A.jsxs)(Ce.Portal,{children:[(0,A.jsx)(Ce.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,A.jsxs)(Ce.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,(0,A.jsxs)(Ce.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,A.jsx)(ns.X,{className:"h-4 w-4 mt-0.5"}),(0,A.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});ds.displayName=Ce.Content.displayName;var ha=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=(0,Ae.useState)(""),[m,f]=(0,Ae.useState)(),[p,c]=(0,Ae.useState)(0);(0,Ae.useEffect)(()=>{m&&(c(m.selectedScrollSnap()+1),m.on("select",()=>{c(m.selectedScrollSnap()+1)}))},[m]);let g=b=>{let H=ss.default.filter(e,(le,V)=>V===(b>0?b-1:b)),z=H.length>0?H[0]?.titleImage:"";s(z)};return(0,Ae.useEffect)(()=>{g(p)},[p]),(0,A.jsxs)(ds,{className:"flex py-0",children:[(0,A.jsxs)("div",{className:" flex-1 relative",children:[(0,A.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[p||1," / ",e?.length]}),(0,A.jsxs)(Ze,{opts:{startIndex:o},setApi:f,className:"w-full h-full relative",children:[(0,A.jsx)(Ke,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((b,H)=>(0,A.jsx)(Ye,{className:"pl-6 md:pl-4",children:(0,A.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,A.jsx)("div",{className:"flex-1 relative",children:(0,A.jsx)("img",{src:b.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,A.jsx)("div",{className:"flex-0",children:(0,A.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,A.jsx)("div",{className:"line-clamp-3",children:n})})})]})},H))}),(0,A.jsx)(Ot,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,A.jsx)(Wt,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&(0,A.jsx)("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};var Mt=u(require("react"),1),It=u(require("@radix-ui/react-radio-group"),1);var ps=require("lucide-react"),Io=u(require("@radix-ui/react-checkbox"),1),fs=require("@heroicons/react/16/solid"),ve=require("react/jsx-runtime"),gs=Mt.createContext({hideIndicator:!1});function Km(){let e=Mt.useContext(gs);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var $i=Mt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,ve.jsx)(gs.Provider,{value:{hideIndicator:o},children:(0,ve.jsx)(It.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));$i.displayName=It.Root.displayName;var Gi=Mt.forwardRef(({className:e,children:o,...t},a)=>{let i=Km(),{hideIndicator:n}=i??{};return(0,ve.jsxs)(It.Item,{ref:a,className:r("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[(0,ve.jsx)("div",{className:"flex-1 min-w-0",children:o}),!n&&(0,ve.jsx)("div",{className:r("flex-none aspect-square h-4 w-4 rounded-full border-2 border-gray-300 group-disabled:bg-gray-200 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:text-white group-disabled:data-[state=checked]:bg-gray-100 group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:border-none group-disabled:cursor-default has"),children:(0,ve.jsx)(It.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,ve.jsx)(ps.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Gi.displayName=It.Item.displayName;var ji=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,ve.jsxs)(Io.Root,{ref:a,className:r("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[(0,ve.jsx)("div",{className:"flex-1 min-w-0",children:o}),(0,ve.jsx)("div",{className:"h-4 w-4 shrink-0 rounded border-2 group-disabled:bg-gray-300 border-gray-300 ring-offset-background group-disabled:cursor-default group-disabled:bg-gray-100 group-data-[state=checked]:border-none group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:(0,ve.jsx)(Io.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,ve.jsx)(fs.CheckIcon,{className:"h-4 w-4"})})})]}));ji.displayName=Io.Root.displayName;var us=require("class-variance-authority");var bs=require("react/jsx-runtime"),Ui=(0,us.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 vs({className:e,variant:o,...t}){return(0,bs.jsx)("div",{className:r(Ui({variant:o}),e),...t})}var xs=u(require("react"),1),Ao=u(require("@radix-ui/react-progress"),1),qi=require("class-variance-authority");var Qi=require("react/jsx-runtime"),Ym=(0,qi.cva)("h-full w-full rounded-full flex-1 transition-all",{variants:{variant:{progress:"bg-pink-500",success:"bg-green-600",disabled:"bg-gray-400",empty:"bg-gray-200"}},defaultVariants:{variant:"progress"}}),Jm=(0,qi.cva)("relative h-4 w-full overflow-hidden rounded-full bg-gray-200",{variants:{size:{small:"h-[6px]",medium:"h-2",large:"h-[10px]"}},defaultVariants:{size:"medium"}}),Xi=xs.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>(0,Qi.jsx)(Ao.Root,{ref:s,className:r("",Jm({size:a}),e),...n,children:(0,Qi.jsx)(Ao.Indicator,{className:r("",Ym({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Xi.displayName=Ao.Root.displayName;var ys=require("react/jsx-runtime");function hs({className:e,...o}){return(0,ys.jsx)("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}var Re=require("react/jsx-runtime");function ws({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return(0,Re.jsx)("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return(0,Re.jsxs)("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((m,f)=>(0,Re.jsx)("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},f)),(0,Re.jsx)("style",{children:`
|
|
140
140
|
.spinner_dots span {
|
|
141
141
|
animation-name: spinner-dots;
|
|
142
142
|
animation-duration: 1.4s;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
opacity: .2;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
`})]});case"default":default:return(0,
|
|
166
|
+
`})]});case"default":default:return(0,Re.jsxs)(Re.Fragment,{children:[(0,Re.jsx)("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:(0,Re.jsx)("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e],t),children:[...Array(12)].map((m,f)=>(0,Re.jsx)("div",{className:r(`spinner_bar child-${f+1}`,o)},f))})}),(0,Re.jsx)("style",{children:`
|
|
167
167
|
.spinner_bar {
|
|
168
168
|
animation: spinner_spin 1.2s linear infinite;
|
|
169
169
|
border-radius: 20px;
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
opacity: 0.15;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
`})]})}})()})}var as=g(require("react"),1),Ge=g(require("@radix-ui/react-slider"),1);var Ee=require("react/jsx-runtime"),_i=as.forwardRef(({className:e,showIndicatorValue1:t,showIndicatorValue2:o,...a},i)=>(0,Ee.jsxs)(Ge.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,Ee.jsx)(Ge.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,Ee.jsx)(Ge.Range,{className:"absolute h-full bg-pink-500"})}),(0,Ee.jsx)(Ge.Thumb,{className:"group relative",children:(0,Ee.jsx)("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:t&&(0,Ee.jsx)("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-sm rounded-lg px-2.5 py-1.5 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-2 whitespace-nowrap",children:t})})}),(0,Ee.jsx)(Ge.Thumb,{className:"group relative",children:(0,Ee.jsx)("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:o&&(0,Ee.jsx)("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-sm rounded-lg px-2.5 py-1.5 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-2 whitespace-nowrap",children:o})})})]}));_i.displayName=Ge.Root.displayName;var ds=require("react");var j=require("react/jsx-runtime"),Sm=({author:e=""})=>(0,j.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Dm=({author:e,avatar:t})=>(0,j.jsx)("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:t?(0,j.jsx)("img",{src:t,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,j.jsx)(Sm,{author:e})});function Mm({avatar:e="",author:t="",time:o,statusMessage:a,isOutStanding:i}){return(0,j.jsx)(j.Fragment,{children:(0,j.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,j.jsx)(Dm,{avatar:e,author:t}),(0,j.jsxs)("div",{className:"flex flex-col",children:[t&&(0,j.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:t}),(0,j.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[o&&(0,j.jsx)("div",{className:"text-gray-400",children:o}),a&&(0,j.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,j.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,j.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&(0,j.jsx)("div",{className:"absolute right-1 top-0",children:(0,j.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var is=Mm;var zi=require("react");var rs=require("@heroicons/react/20/solid"),qt=require("react/jsx-runtime"),Im={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!"},Am={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 Lm({point:e,max:t,className:o}){let a=t>5?Im[e||10]:Am[e||5];return(0,qt.jsxs)("div",{className:r("flex items-center space-x-1",o),children:[(0,qt.jsx)(rs.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,qt.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${t}`}),(0,qt.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var ns=Lm;var ss=require("react"),Fi=g(require("html-react-parser"),1);var ma=require("react/jsx-runtime"),la=({children:e,maxChar:t=260,textMore:o="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,c]=(0,ss.useState)(!0),p=()=>{c(!s)},f=(d,u,x=" ")=>d.length<=u?d:d.substring(0,d.lastIndexOf(x,u));return(0,ma.jsxs)("div",{className:r(n),children:[s?(0,Fi.default)(f(e,t)):(0,Fi.default)(e),e.length>t&&(0,ma.jsx)("span",{onClick:p,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?o:a})]})};var He=require("react/jsx-runtime");function Em({content:e,thumbnails:t=[],tags:o=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,c]=(0,zi.useState)(0),[p,f]=(0,zi.useState)(!1),d=u=>{f(!0),c(u)};return(0,He.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&(0,He.jsx)(ns,{className:"mb-0.5",point:i.point,max:i.max}),e&&(0,He.jsx)(la,{className:"text-sm",maxChar:n,children:e}),o?.length>0&&(0,He.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:o?.map(u=>(0,He.jsx)("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:u}))}),t?.length>0&&(0,He.jsxs)(na,{open:p,onOpenChange:f,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[t?.map((u,x)=>(0,He.jsx)(he,{onClick:()=>d(x),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,He.jsx)("img",{src:u.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},x)),(0,He.jsx)(sa,{activeSlideIndex:s,images:t?.map((u,x)=>({url:u.url,titleImage:u.titleImage,idx:x})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var ls=Em;var cs=require("react/jsx-runtime");function Hm({actions:e=[]}){return(0,cs.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var ms=Hm;var Ht=require("react/jsx-runtime"),ps=(0,ds.forwardRef)(({avatar:e,author:t,time:o,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:c=[],statusMessage:p,isReply:f,children:d,commentSideBar:u,isOutStanding:x,limitContent:D=260},E)=>(0,Ht.jsxs)("div",{ref:E,className:r("",f?"ml-4 py-4":"py-5"),children:[(0,Ht.jsx)(is,{avatar:e,author:t,time:o,statusMessage:p,isOutStanding:x}),(0,Ht.jsx)(ls,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:u,limitContent:D}),c&&c?.filter(Boolean)?.length>0&&(0,Ht.jsx)(ms,{actions:c.filter(Boolean)}),d&&(0,Ht.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 Rt=g(require("react"),1),fs=require("class-variance-authority");var gs=require("@heroicons/react/16/solid"),us=require("lucide-react"),U=require("react/jsx-runtime"),_m=(0,fs.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"}}),vs=Rt.createContext("default");function Fm(){let e=Rt.useContext(vs);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var zm=Rt.memo(({type:e,icon:t,stepNumber:o,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?(0,U.jsx)(us.XIcon,{className:s}):(0,U.jsxs)("div",{children:[e==="iconStep"&&(0,U.jsx)("div",{className:s,children:t}),e==="numberStep"&&(0,U.jsx)("div",{children:o}),e==="default"&&(n==="completed"?(0,U.jsx)(gs.CheckIcon,{className:s}):(0,U.jsx)("div",{children:o}))]})}),bs=({step:e,currentStep:t,onValueChangeStep:o,children:a})=>{let i=Rt.useCallback(()=>{e!==t&&o(e)},[e,t,o]);return(0,U.jsx)("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},xs=({step:e,state:t="default",size:o="default",placement:a="default",className:i,title:n,description:s,lastStep:c,fristStep:p,icon:f,isError:d,onValueChangeStep:u,...x})=>{let D=Fm();return(0,U.jsxs)("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[(0,U.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,U.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",p&&"opacity-0",a=="left"&&"hidden",t==="active"&&"bg-pink-300",t==="completed"&&"bg-pink-300")}),(0,U.jsx)("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",_m({state:t,size:o}),d&&"bg-red-500 text-white shadow-none",i),...x,children:(0,U.jsx)(zm,{type:D,icon:f,stepNumber:e,size:o,isError:d,state:t})}),(0,U.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",t==="completed"&&"bg-pink-300")})]}),(0,U.jsxs)("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&(0,U.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,U.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},hs=({children:e,className:t,type:o="numberStep",...a})=>(0,U.jsx)(vs.Provider,{value:o,children:(0,U.jsx)("div",{className:r("flex items-start justify-between w-full",t),...a,children:e})});var pe=g(require("react"),1),Ps=require("@radix-ui/react-slot"),Zt=require("react-hook-form");var ys=g(require("react"),1),Bi=g(require("@radix-ui/react-label"),1),ws=require("class-variance-authority");var Ns=require("react/jsx-runtime"),Bm=(0,ws.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ca=ys.forwardRef(({className:e,...t},o)=>(0,Ns.jsx)(Bi.Root,{ref:o,className:r(Bm(),e),...t}));ca.displayName=Bi.Root.displayName;var rt=require("react/jsx-runtime"),Cs=Zt.FormProvider,Rs=pe.createContext({}),Ts=({...e})=>(0,rt.jsx)(Rs.Provider,{value:{name:e.name},children:(0,rt.jsx)(Zt.Controller,{...e})}),Kt=()=>{let e=pe.useContext(Rs),t=pe.useContext(ks),{getFieldState:o,formState:a}=(0,Zt.useFormContext)(),i=o(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=t;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},ks=pe.createContext({}),Vi=pe.forwardRef(({className:e,...t},o)=>{let a=pe.useId();return(0,rt.jsx)(ks.Provider,{value:{id:a},children:(0,rt.jsx)("div",{ref:o,className:r("space-y-2",e),...t})})});Vi.displayName="FormItem";var Oi=pe.forwardRef(({className:e,...t},o)=>{let{error:a,formItemId:i}=Kt();return(0,rt.jsx)(ca,{ref:o,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...t})});Oi.displayName="FormLabel";var Wi=pe.forwardRef(({...e},t)=>{let{error:o,formItemId:a,formDescriptionId:i,formMessageId:n}=Kt();return(0,rt.jsx)(Ps.Slot,{ref:t,id:a,"aria-describedby":o?`${i} ${n}`:`${i}`,"aria-invalid":!!o,...e})});Wi.displayName="FormControl";var $i=pe.forwardRef(({className:e,...t},o)=>{let{formDescriptionId:a}=Kt();return(0,rt.jsx)("p",{ref:o,id:a,className:r("text-[0.8rem] text-gray-500",e),...t})});$i.displayName="FormDescription";var Gi=pe.forwardRef(({className:e,children:t,...o},a)=>{let{error:i,formMessageId:n}=Kt(),s=i?String(i?.message):t;return s?(0,rt.jsx)("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...o,children:s}):null});Gi.displayName="FormMessage";var nt=g(require("react"),1),h=g(require("@radix-ui/react-dropdown-menu"),1),da=require("lucide-react");var F=require("react/jsx-runtime"),Ss=h.Root,Ds=h.Trigger,Ms=h.Group,Is=h.Portal,As=h.Sub,Ls=h.RadioGroup,ji=nt.forwardRef(({className:e,inset:t,children:o,...a},i)=>(0,F.jsxs)(h.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a,children:[o,(0,F.jsx)(da.ChevronRight,{className:"ml-auto"})]}));ji.displayName=h.SubTrigger.displayName;var Ui=nt.forwardRef(({className:e,...t},o)=>(0,F.jsx)(h.SubContent,{ref:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...t}));Ui.displayName=h.SubContent.displayName;var Qi=nt.forwardRef(({className:e,sideOffset:t=4,...o},a)=>(0,F.jsx)(h.Portal,{children:(0,F.jsx)(h.Content,{ref:a,sideOffset:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...o})}));Qi.displayName=h.Content.displayName;var Xi=nt.forwardRef(({className:e,inset:t,...o},a)=>(0,F.jsx)(h.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",t&&"pl-8",e),...o}));Xi.displayName=h.Item.displayName;var qi=nt.forwardRef(({className:e,children:t,checked:o,...a},i)=>(0,F.jsxs)(h.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:o,...a,children:[(0,F.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[o===!1&&(0,F.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,F.jsx)(h.ItemIndicator,{children:(0,F.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,F.jsx)(da.Check,{size:16,strokeWidth:3})})})]}),t]}));qi.displayName=h.CheckboxItem.displayName;var Zi=nt.forwardRef(({className:e,children:t,...o},a)=>(0,F.jsxs)(h.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...o,children:[(0,F.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,F.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,F.jsx)(h.ItemIndicator,{children:(0,F.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),t]}));Zi.displayName=h.RadioItem.displayName;var Ki=nt.forwardRef(({className:e,inset:t,...o},a)=>(0,F.jsx)(h.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Ki.displayName=h.Label.displayName;var Yi=nt.forwardRef(({className:e,...t},o)=>(0,F.jsx)(h.Separator,{ref:o,className:r("-mx-1 my-1 h-px bg-gray-100",e),...t}));Yi.displayName=h.Separator.displayName;var Ji=({className:e,...t})=>(0,F.jsx)("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...t});Ji.displayName="DropdownMenuShortcut";var er=g(require("html-react-parser"),1),Q=require("react/jsx-runtime"),Es=({dataHeading:e,dataHowItWorks:t,dataButtons:o})=>(0,Q.jsxs)(Q.Fragment,{children:[e&&(0,Q.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&t?.length>0&&(0,Q.jsx)("div",{className:"flex flex-row flex-wrap -mx-3.5 gap-y-5",children:t.slice(0,3).map((a,i)=>(0,Q.jsx)("div",{className:"basis-full md:basis-1/3 px-3.5",children:(0,Q.jsxs)("div",{className:"px-6 md:px-4 lg:px-6 py-8 rounded-lg shadow-lg bg-white text-center border border-gray-100 h-full",children:[(0,Q.jsx)("div",{className:"w-9 h-9 bg-pink-500 rounded-full flex justify-center items-center text-white text-xl font-bold mx-auto",children:i+1}),(0,Q.jsxs)("div",{className:"w-full mt-6",children:[(0,Q.jsx)("div",{className:"w-full font-semibold text-xl",children:(0,er.default)(a.title)}),a?.description&&(0,Q.jsx)("div",{className:"text-base mt-2 text-gray-600",children:(0,er.default)(a.description)})]})]})},i))}),o&&(0,Q.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),Vm=({template:e,dataHeading:t,dataHowItWorks:o,dataButtons:a})=>{switch(e){case 1:return(0,Q.jsx)(Es,{dataHeading:t,dataHowItWorks:o,dataButtons:a});default:return(0,Q.jsx)(Es,{dataHeading:t,dataHowItWorks:o,dataButtons:a})}},Om=({template:e,dataHeading:t,dataHowItWorks:o,dataButtons:a})=>(0,Q.jsx)(Q.Fragment,{children:Vm({template:e,dataHeading:t,dataHowItWorks:o,dataButtons:a})}),Hs=({template:e=1,background:t,className:o,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>(0,Q.jsx)(Y,{className:o,idSection:a,background:t,children:(0,Q.jsx)(Om,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});var Ws=require("react");var Fs=require("class-variance-authority"),tr=g(require("html-react-parser"),1),zs=require("lucide-react"),ee=require("react/jsx-runtime"),Wm=(0,Fs.cva)("text-gray-800 list-inside mt-6",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-2 md:grid-cols-4 gap-2 w-full",3:"grid grid-cols-1 md:grid-cols-4 gap-4 md:gap-12 max-w-5xl mx-auto items-center py-8 md:py-12 text-left text-sm font-semibold space-y-1"}},defaultVariants:{template:1}}),_s=({template:e,name:t,description:o,image:a,idx:i,value:n,suffix:s,unit:c})=>(0,ee.jsx)(ee.Fragment,{children:(()=>{switch(e){case 1:case 3:return(0,ee.jsxs)("li",{className:"flex items-center space-x-4",children:[a?(0,ee.jsx)("div",{className:"w-10 h-10 flex justify-center items-center shrink-0",children:(0,ee.jsx)("img",{src:a,alt:"",className:"max-w-full"})}):(0,ee.jsx)("div",{className:"bg-pink-100 p-1 rounded-full w-5 h-5 flex items-center justify-center",children:(0,ee.jsx)(zs.CheckIcon,{className:"w-4 h-4 text-pink-500"})}),t&&(0,ee.jsx)("div",{className:"ml-2 leading-tight",children:(0,tr.default)(t)})]});case 2:return(0,ee.jsxs)("div",{className:r("odd:border-0 odd:pr-4 even:pl-4 even:border-l border-gray-200 md:border-l md:odd:border-l md:odd:pr-0",i>0?"md:pl-4":"md:!border-0"),children:[n&&(0,ee.jsxs)("div",{className:"font-bold text-gray-900 line-clamp-2",children:[n,(s||c)&&(0,ee.jsxs)("span",{children:[s," ",c]})]}),o&&(0,ee.jsx)("div",{className:"text-sm mt-1 text-gray-500 leading-tight",children:(0,tr.default)(o)})]});default:return null}})()}),pa=({dataFeatures:e,template:t=1,dataStats:o})=>(0,ee.jsxs)("ul",{className:r("",Wm({template:t})),children:[(t===1||t===3)&&e?.map((a,i)=>(0,ee.jsx)(_s,{name:a?.name,template:t,image:a?.image,idx:i},i)),t===2&&o?.map((a,i)=>(0,ee.jsx)(_s,{value:a?.value,suffix:a?.suffix,unit:a?.unit,template:t,description:a?.description,idx:i},i))]});var V=require("react/jsx-runtime"),Bs=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,$m=({src:e,ratio:t,className:o,youtubeId:a,onClickFC:i=()=>{}})=>(0,V.jsxs)(he,{className:r(""),ratio:Bs(t),children:[(0,V.jsx)("img",{src:e,className:r("w-full h-full object-cover md:block hidden",o,e?"":"bg-gray-200"),alt:""}),a&&(0,V.jsx)("div",{className:"aspect-[16/9] realtive overflow-hidden w-full md:hidden",children:(0,V.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"w-full h-full object-cover md:hidden"})}),a&&(0,V.jsxs)(ft,{children:[(0,V.jsx)(To,{onClick:i,children:(0,V.jsx)("div",{className:"w-full hidden md:flex h-full cursor-pointer transition-transform group-hover:scale-105 top-0 absolute z-10 items-center justify-center",children:(0,V.jsx)("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,V.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,V.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,V.jsx)("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),(0,V.jsx)(Ze,{hideCloseBtn:!0,className:"w-full h-full !shadow-none !bg-transparent flex items-center justify-center bg-gray-900 p-0",children:(0,V.jsx)("iframe",{width:738,height:439,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:""})})]})]}),Po=({type:e=1,src:t,ratio:o,className:a,youtubeId:i,onClickFC:n=()=>{}})=>(0,V.jsx)(V.Fragment,{children:i?(0,V.jsx)($m,{type:e,src:t,ratio:o,youtubeId:i,onClickFC:n}):(0,V.jsx)(he,{className:r(""),ratio:Bs(o),children:(0,V.jsx)("img",{src:t,className:r("w-full h-full object-cover",a,t?"":"bg-gray-200"),alt:""})})});var I=require("react/jsx-runtime"),or=({dataHeading:e,dataButtons:t,dataFeatures:o,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,I.jsxs)("div",{className:r("grid grid-cols-1 md:grid-cols-2 md:gap-6 gap-8 items-center"),children:[(0,I.jsxs)("div",{className:"col-span-1 ",children:[(0,I.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:`${e?.className} mb-0 md:mb-0`}),(0,I.jsx)(pa,{dataFeatures:o,template:a,dataStats:i}),t&&(0,I.jsx)(M,{align:"left",isFullInMobile:t?.isFullInMobile,buttons:t?.buttons})]}),(0,I.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,I.jsx)(Po,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Vs=({dataHeading:e,dataButtons:t,dataFeatures:o,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,I.jsxs)("div",{className:r("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[(0,I.jsx)("div",{className:"col-span-1 hidden md:block",children:s||(0,I.jsx)(Po,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,I.jsxs)("div",{className:"col-span-1",children:[(0,I.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:e?.className}),(0,I.jsx)(pa,{dataFeatures:o,template:a,dataStats:i}),(0,I.jsx)("div",{className:"md:hidden mt-10",children:s||(0,I.jsx)(Po,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),t&&(0,I.jsx)("div",{className:"w-full flex items-center justify-center md:justify-start",children:(0,I.jsx)(M,{align:"left",isFullInMobile:t?.isFullInMobile,buttons:t?.buttons})})]})]}),Os=({dataHeading:e,dataButtons:t,dataFeatures:o,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:`${e?.className||""} mb-0 md:mb-0`}),t&&(0,I.jsx)(M,{align:"center",isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:"w-full md:w-full inline-flex items-center justify-center text-base font-semibold text-center"}),(0,I.jsx)(pa,{dataFeatures:o,template:a,dataStats:i}),s||(0,I.jsx)(Po,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"rounded-lg"})]});var je=require("react/jsx-runtime"),Gm=`var(
|
|
246
|
+
`})]})}})()})}var Ns=u(require("react"),1),nt=u(require("@radix-ui/react-slider"),1);var Oe=require("react/jsx-runtime"),Zi=Ns.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>(0,Oe.jsxs)(nt.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,Oe.jsx)(nt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,Oe.jsx)(nt.Range,{className:"absolute h-full bg-pink-500"})}),(0,Oe.jsx)(nt.Thumb,{className:"group relative",children:(0,Oe.jsx)("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:o&&(0,Oe.jsx)("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-sm rounded-lg px-2.5 py-1.5 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-2 whitespace-nowrap",children:o})})}),(0,Oe.jsx)(nt.Thumb,{className:"group relative",children:(0,Oe.jsx)("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:t&&(0,Oe.jsx)("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-sm rounded-lg px-2.5 py-1.5 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-2 whitespace-nowrap",children:t})})})]}));Zi.displayName=nt.Root.displayName;var Ms=require("react");var Y=require("react/jsx-runtime"),ec=({author:e=""})=>(0,Y.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),tc=({author:e,avatar:o})=>(0,Y.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,Y.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,Y.jsx)(ec,{author:e})});function oc({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return(0,Y.jsx)(Y.Fragment,{children:(0,Y.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,Y.jsx)(tc,{avatar:e,author:o}),(0,Y.jsxs)("div",{className:"flex flex-col",children:[o&&(0,Y.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,Y.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,Y.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,Y.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Y.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,Y.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&(0,Y.jsx)("div",{className:"absolute right-1 top-0",children:(0,Y.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Ps=oc;var Yi=require("react");var Cs=require("@heroicons/react/20/solid"),so=require("react/jsx-runtime"),ac={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!"},ic={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 rc({point:e,max:o,className:t}){let a=o>5?ac[e||10]:ic[e||5];return(0,so.jsxs)("div",{className:r("flex items-center space-x-1",t),children:[(0,so.jsx)(Cs.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,so.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,so.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Rs=rc;var Ts=require("react"),Ki=u(require("html-react-parser"),1);var wa=require("react/jsx-runtime"),ya=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,m]=(0,Ts.useState)(!0),f=()=>{m(!s)},p=(c,g,b=" ")=>c.length<=g?c:c.substring(0,c.lastIndexOf(b,g));return(0,wa.jsxs)("div",{className:r(n),children:[s?(0,Ki.default)(p(e,o)):(0,Ki.default)(e),e.length>o&&(0,wa.jsx)("span",{onClick:f,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};var We=require("react/jsx-runtime");function nc({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,m]=(0,Yi.useState)(0),[f,p]=(0,Yi.useState)(!1),c=g=>{p(!0),m(g)};return(0,We.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&(0,We.jsx)(Rs,{className:"mb-0.5",point:i.point,max:i.max}),e&&(0,We.jsx)(ya,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,We.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>(0,We.jsx)("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:g}))}),o?.length>0&&(0,We.jsxs)(xa,{open:f,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((g,b)=>(0,We.jsx)(j,{onClick:()=>c(b),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,We.jsx)("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},b)),(0,We.jsx)(ha,{activeSlideIndex:s,images:o?.map((g,b)=>({url:g.url,titleImage:g.titleImage,idx:b})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var ks=nc;var Ds=require("react/jsx-runtime");function sc({actions:e=[]}){return(0,Ds.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Ss=sc;var Zt=require("react/jsx-runtime"),Is=(0,Ms.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:m=[],statusMessage:f,isReply:p,children:c,commentSideBar:g,isOutStanding:b,limitContent:H=260},z)=>(0,Zt.jsxs)("div",{ref:z,className:r("",p?"ml-4 py-4":"py-5"),children:[(0,Zt.jsx)(Ps,{avatar:e,author:o,time:t,statusMessage:f,isOutStanding:b}),(0,Zt.jsx)(ks,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:H}),m&&m?.filter(Boolean)?.length>0&&(0,Zt.jsx)(Ss,{actions:m.filter(Boolean)}),c&&(0,Zt.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:c})]}));var At=u(require("react"),1),As=require("class-variance-authority");var Ls=require("@heroicons/react/16/solid"),Hs=require("lucide-react"),J=require("react/jsx-runtime"),lc=(0,As.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"}}),Es=At.createContext("default");function mc(){let e=At.useContext(Es);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var cc=At.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?(0,J.jsx)(Hs.XIcon,{className:s}):(0,J.jsxs)("div",{children:[e==="iconStep"&&(0,J.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,J.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,J.jsx)(Ls.CheckIcon,{className:s}):(0,J.jsx)("div",{children:t}))]})}),zs=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=At.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,J.jsx)("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},_s=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:m,fristStep:f,icon:p,isError:c,onValueChangeStep:g,...b})=>{let H=mc();return(0,J.jsxs)("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[(0,J.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,J.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",f&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),(0,J.jsx)("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",lc({state:o,size:t}),c&&"bg-red-500 text-white shadow-none",i),...b,children:(0,J.jsx)(cc,{type:H,icon:p,stepNumber:e,size:t,isError:c,state:o})}),(0,J.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,J.jsxs)("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&(0,J.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,J.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Fs=({children:e,className:o,type:t="numberStep",...a})=>(0,J.jsx)(Es.Provider,{value:t,children:(0,J.jsx)("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});var be=u(require("react"),1),Ws=require("@radix-ui/react-slot"),lo=require("react-hook-form");var Bs=u(require("react"),1),Ji=u(require("@radix-ui/react-label"),1),Vs=require("class-variance-authority");var Os=require("react/jsx-runtime"),dc=(0,Vs.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Na=Bs.forwardRef(({className:e,...o},t)=>(0,Os.jsx)(Ji.Root,{ref:t,className:r(dc(),e),...o}));Na.displayName=Ji.Root.displayName;var xt=require("react/jsx-runtime"),$s=lo.FormProvider,Gs=be.createContext({}),js=({...e})=>(0,xt.jsx)(Gs.Provider,{value:{name:e.name},children:(0,xt.jsx)(lo.Controller,{...e})}),mo=()=>{let e=be.useContext(Gs),o=be.useContext(Us),{getFieldState:t,formState:a}=(0,lo.useFormContext)(),i=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},Us=be.createContext({}),er=be.forwardRef(({className:e,...o},t)=>{let a=be.useId();return(0,xt.jsx)(Us.Provider,{value:{id:a},children:(0,xt.jsx)("div",{ref:t,className:r("space-y-2",e),...o})})});er.displayName="FormItem";var tr=be.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=mo();return(0,xt.jsx)(Na,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});tr.displayName="FormLabel";var or=be.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=mo();return(0,xt.jsx)(Ws.Slot,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});or.displayName="FormControl";var ar=be.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=mo();return(0,xt.jsx)("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});ar.displayName="FormDescription";var ir=be.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=mo(),s=i?String(i?.message):o;return s?(0,xt.jsx)("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});ir.displayName="FormMessage";var ht=u(require("react"),1),y=u(require("@radix-ui/react-dropdown-menu"),1),Pa=require("lucide-react");var W=require("react/jsx-runtime"),Qs=y.Root,qs=y.Trigger,Xs=y.Group,Zs=y.Portal,Ks=y.Sub,Ys=y.RadioGroup,rr=ht.forwardRef(({className:e,inset:o,children:t,...a},i)=>(0,W.jsxs)(y.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,(0,W.jsx)(Pa.ChevronRight,{className:"ml-auto"})]}));rr.displayName=y.SubTrigger.displayName;var nr=ht.forwardRef(({className:e,...o},t)=>(0,W.jsx)(y.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));nr.displayName=y.SubContent.displayName;var sr=ht.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,W.jsx)(y.Portal,{children:(0,W.jsx)(y.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));sr.displayName=y.Content.displayName;var lr=ht.forwardRef(({className:e,inset:o,...t},a)=>(0,W.jsx)(y.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));lr.displayName=y.Item.displayName;var mr=ht.forwardRef(({className:e,children:o,checked:t,...a},i)=>(0,W.jsxs)(y.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[(0,W.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,W.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,W.jsx)(y.ItemIndicator,{children:(0,W.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,W.jsx)(Pa.Check,{size:16,strokeWidth:3})})})]}),o]}));mr.displayName=y.CheckboxItem.displayName;var cr=ht.forwardRef(({className:e,children:o,...t},a)=>(0,W.jsxs)(y.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[(0,W.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,W.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,W.jsx)(y.ItemIndicator,{children:(0,W.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));cr.displayName=y.RadioItem.displayName;var dr=ht.forwardRef(({className:e,inset:o,...t},a)=>(0,W.jsx)(y.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));dr.displayName=y.Label.displayName;var pr=ht.forwardRef(({className:e,...o},t)=>(0,W.jsx)(y.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));pr.displayName=y.Separator.displayName;var fr=({className:e,...o})=>(0,W.jsx)("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});fr.displayName="DropdownMenuShortcut";var Lo=u(require("html-react-parser"),1);var T=require("react/jsx-runtime"),Js=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,T.jsxs)(T.Fragment,{children:[e&&(0,T.jsx)(R,{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,T.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>(0,T.jsx)("div",{className:"basis-full px-3.5 md:basis-1/3",children:(0,T.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,T.jsx)("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),(0,T.jsxs)("div",{className:"mt-6 w-full",children:[(0,T.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,Lo.default)(a.title)}),a?.description&&(0,T.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,Lo.default)(a.description)})]})]})},i))}),t&&(0,T.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),pc=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,T.jsxs)(T.Fragment,{children:[e&&(0,T.jsx)(R,{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,T.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>(0,T.jsxs)("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[(0,T.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,T.jsx)("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&(0,T.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,T.jsx)(j,{ratio:1,children:(0,T.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,T.jsxs)("div",{className:"mt-6 w-full",children:[(0,T.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,Lo.default)(a.title)}),a?.description&&(0,T.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,Lo.default)(a.description)})]})]},i))}),t&&(0,T.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),fc=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,T.jsx)(Js,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,T.jsx)(pc,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,T.jsx)(Js,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},gc=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,T.jsx)(T.Fragment,{children:fc({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),el=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>(0,T.jsx)(X,{className:t,idSection:a,background:o,children:(0,T.jsx)(gc,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});var ll=require("react");var al=require("class-variance-authority"),gr=u(require("html-react-parser"),1),il=require("lucide-react");var U=require("react/jsx-runtime"),tl=(0,al.cva)("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid w-full grid-cols-2 gap-2 md:grid-cols-4",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 space-y-1 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),ol=({template:e,name:o,description:t,image:a,idx:i,value:n,suffix:s,unit:m})=>(0,U.jsx)(U.Fragment,{children:(()=>{switch(e){case 1:case 3:return(0,U.jsxs)("li",{className:"flex items-center space-x-4",children:[a?(0,U.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,U.jsx)("img",{src:a,alt:"",className:"max-w-full"})}):(0,U.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:(0,U.jsx)(il.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,U.jsx)("div",{className:"ml-2 leading-tight",children:(0,gr.default)(o)})]});case 2:return(0,U.jsxs)("div",{className:r("border-gray-200 odd:border-0 odd:pr-4 even:border-l even:pl-4 md:border-l md:odd:border-l md:odd:pr-0",i>0?"md:pl-4":"md:!border-0"),children:[n&&(0,U.jsxs)("div",{className:"line-clamp-2 font-bold text-gray-900",children:[n,(s||m)&&(0,U.jsxs)("span",{children:[s," ",m]})]}),t&&(0,U.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,gr.default)(t)})]});default:return null}})()}),Ca=({dataFeatures:e,template:o=1,dataStats:t})=>(0,U.jsxs)(U.Fragment,{children:[e&&e?.length>0&&(0,U.jsx)("ul",{className:r("",tl({template:o})),children:(o===1||o===3)&&e?.map((a,i)=>(0,U.jsx)(ol,{name:a?.name,template:o,image:a?.image,idx:i},i))}),o===2&&(t?.length??0)>0&&(0,U.jsx)("ul",{className:r("",tl({template:o})),children:t?.map((a,i)=>(0,U.jsx)(ol,{value:a?.value,suffix:a?.suffix,unit:a?.unit,template:o,description:a?.description,idx:i},i))})]});var te=require("react/jsx-runtime"),rl=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,uc=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>(0,te.jsxs)(j,{className:r(""),ratio:rl(o),children:[(0,te.jsx)("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,te.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,te.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"})}),a&&(0,te.jsxs)($e,{children:[(0,te.jsx)(_o,{onClick:i,children:(0,te.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,te.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,te.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,te.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,te.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,te.jsx)(He,{hideCloseBtn:!0,className:"flex h-full w-full items-center justify-center !bg-transparent bg-gray-900 p-0 !shadow-none",children:(0,te.jsx)("iframe",{width:738,height:439,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:""})})]})]}),Ho=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>(0,te.jsx)("div",{className:a,children:n?(0,te.jsx)(uc,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,te.jsx)(j,{ratio:rl(t),children:(0,te.jsx)("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});var E=require("react/jsx-runtime"),ur=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,E.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,E.jsxs)("div",{className:"col-span-1 ",children:[(0,E.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:`${e?.className} mb-0 md:mb-0`}),(0,E.jsx)(Ca,{dataFeatures:t,template:a,dataStats:i}),o&&(0,E.jsx)(S,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})]}),(0,E.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,E.jsx)(Ho,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),nl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,E.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-16 md:grid-cols-2"),children:[(0,E.jsx)("div",{className:"col-span-1 hidden md:block",children:s||(0,E.jsx)(Ho,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,E.jsxs)("div",{className:"col-span-1",children:[(0,E.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),(0,E.jsx)(Ca,{dataFeatures:t,template:a,dataStats:i}),(0,E.jsx)("div",{className:"mt-10 md:hidden",children:s||(0,E.jsx)(Ho,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),o&&(0,E.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,E.jsx)(S,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})})]})]}),sl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&(0,E.jsx)(S,{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,E.jsx)(Ca,{dataFeatures:t,template:a,dataStats:i}),s||(0,E.jsx)(E.Fragment,{children:n?.src&&(0,E.jsx)(Ho,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var st=require("react/jsx-runtime"),vc=`var(
|
|
247
247
|
--gradient-pink-1,
|
|
248
248
|
linear-gradient(
|
|
249
249
|
38deg,
|
|
@@ -265,11 +265,11 @@
|
|
|
265
265
|
rgba(255, 255, 255, 0) 80%
|
|
266
266
|
),
|
|
267
267
|
#fff
|
|
268
|
-
)`,
|
|
268
|
+
)`,bc=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,st.jsx)(ur,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return(0,st.jsx)(nl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return(0,st.jsx)(sl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return(0,st.jsx)(ur,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},xc=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,st.jsx)(st.Fragment,{children:bc({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),ml=(0,ll.forwardRef)(({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:m,background:f,advancedComponent:p=null})=>(0,st.jsx)(X,{className:m,idSection:o,background:f??vc,children:(0,st.jsx)(xc,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:p})}));var D=require("react/jsx-runtime"),cl=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return(0,D.jsxs)(D.Fragment,{children:[e&&(0,D.jsx)(R,{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,D.jsx)("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,m)=>(0,D.jsx)("div",{className:r("flex items-center justify-center md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:(0,D.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?(0,D.jsx)("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:(0,D.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):(0,D.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},m))}),t&&(0,D.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},hc=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>(0,D.jsxs)(D.Fragment,{children:[e&&(0,D.jsx)(R,{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,D.jsx)("div",{className:r("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((i,n)=>(0,D.jsx)("div",{className:r("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:i?.url?(0,D.jsx)("a",{href:i?.url,title:i?.name,target:i?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:(0,D.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,D.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):(0,D.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:(0,D.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,D.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&(0,D.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),yc=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return(0,D.jsx)(cl,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return(0,D.jsx)(hc,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return(0,D.jsx)(cl,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},wc=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>(0,D.jsx)(D.Fragment,{children:yc({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),dl=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m="20px",isScrollSnap:f})=>(0,D.jsx)(X,{className:t,idSection:a,background:o,children:(0,D.jsx)(wc,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m,isScrollSnap:f})});var Q=u(require("html-react-parser"),1);var pl=require("@heroicons/react/16/solid");var l=require("react/jsx-runtime"),lt=({btnLink:e,btnName:o,newTab:t})=>(0,l.jsx)(ue,{variant:"primary",asChild:!0,children:(0,l.jsxs)("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",(0,l.jsx)(pl.ChevronRightIcon,{className:"w-4 h-4"})]})}),vr=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full text-center flex flex-col",children:[(0,l.jsx)("div",{className:"w-16 h-16 mx-auto",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-4 flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,Q.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,Q.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),fl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features list-features-2 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item p-5 overflow-hidden border border-gray-200 rounded-md relative w-full flex flex-col",children:[(0,l.jsx)("div",{className:"w-16 h-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,Q.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,Q.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,l.jsx)("style",{children:`
|
|
269
269
|
.list-features-2 .feature-item {
|
|
270
270
|
background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
|
|
271
271
|
}
|
|
272
|
-
`})]}),Xs=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:t?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,l.jsx)("div",{className:"w-16 h-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-4 flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,O.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,O.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Ue,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&(0,l.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),qs=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-0 lg:gap-12",children:[(0,l.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("lg:mb-0",e?.className)}),o&&(0,l.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:`hidden lg:flex ${o?.className}`,align:"left"})]}),(0,l.jsxs)("div",{className:"lg:col-span-6",children:[t&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-5",children:t?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-5 bg-white",children:[(0,l.jsx)("div",{className:"w-16 h-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,O.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,O.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Ue,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&(0,l.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:`flex lg:hidden ${o?.className}`,align:"center"})]})]}),Zs=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-5 max-w-4xl mx-auto",children:t?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-7 bg-white",children:[(0,l.jsx)("div",{className:"w-12 h-12 ",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,O.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,O.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Ue,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&(0,l.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),Ks=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-7 lg:gap-y-10",children:t?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full",children:[(0,l.jsx)("div",{className:"w-12 h-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,O.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,O.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Ue,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&(0,l.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),Ys=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-6 lg:gap-y-8",children:t?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex gap-3",children:[(0,l.jsx)("div",{className:"w-12 h-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,O.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,O.default)(a.description)}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Ue,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&(0,l.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),Js=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-6",children:t?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex flex-col overflow-hidden bg-gray-100 rounded-xl",children:[(0,l.jsxs)("div",{className:"w-full flex flex-1 flex-col p-5",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,O.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,O.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Ue,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),(0,l.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})})]},i))}),o&&(0,l.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),el=({dataHeading:e,dataFeatures:t,dataButtons:o,dataBanner:a})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-10 lg:gap-14",children:[(0,l.jsx)("div",{className:"lg:col-span-6 flex items-center",children:(0,l.jsxs)("div",{className:"w-full",children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:auto-cols-auto",children:t?.map((i,n)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,l.jsx)("div",{className:"w-10 h-10",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,O.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,O.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Ue,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),o&&(0,l.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"left"})]})}),a&&(0,l.jsx)("div",{className:"lg:col-span-4 flex items-center",children:(0,l.jsx)("div",{className:"max-w-md mx-auto w-full",children:(0,l.jsx)(he,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),tl=({dataHeading:e,dataFeatures:t,dataBanner:o,dataButtons:a})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,l.jsx)("div",{className:r("relative flex items-center",o&&"lg:min-h-[590px]"),children:t&&(0,l.jsxs)("div",{className:r("list-features grid grid-cols-1 md:grid-cols-2 gap-8",o?"lg:gap-y-16 lg:gap-x-0 lg:flex-wrap lg:flex lg:flex-row":"max-w-4xl mx-auto"),children:[t?.map((i,n)=>(0,l.jsxs)("div",{className:r("feature-item relative w-full",o&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[(0,l.jsx)("div",{className:"w-12 h-12",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,O.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"text-gray-500 mt-2",children:(0,O.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(Ue,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),o&&(0,l.jsxs)("div",{className:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 hidden lg:flex lg:justify-center lg:items-end xl:p-2 lg:p-1.5 w-72 mx-auto",style:{aspectRatio:"352/721"},children:[(0,l.jsx)("div",{className:"mockup-bg absolute inset-0 w-full h-full select-none pointer-events-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),(0,l.jsx)("div",{className:"w-full h-full bg-gray-100 overflow-hidden",style:{borderRadius:"30px"},children:(0,l.jsx)("img",{src:o?.src,alt:o?.alt,className:"w-full h-full object-contain"})})]})]})}),a&&(0,l.jsx)(M,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});var oe=require("react/jsx-runtime"),Zm=({template:e,dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return(0,oe.jsx)(ar,{dataHeading:t,dataFeatures:o,dataButtons:a});case 2:return(0,oe.jsx)(Qs,{dataHeading:t,dataFeatures:o,dataButtons:a});case 3:return(0,oe.jsx)(Xs,{dataHeading:t,dataFeatures:o,dataButtons:a});case 4:return(0,oe.jsx)(qs,{dataHeading:t,dataFeatures:o,dataButtons:a});case 5:return(0,oe.jsx)(Zs,{dataHeading:t,dataFeatures:o,dataButtons:a});case 6:return(0,oe.jsx)(Ks,{dataHeading:t,dataFeatures:o,dataButtons:a});case 7:return(0,oe.jsx)(Ys,{dataHeading:t,dataFeatures:o,dataButtons:a});case 8:return(0,oe.jsx)(Js,{dataHeading:t,dataFeatures:o,dataButtons:a});case 9:return(0,oe.jsx)(el,{dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i});case 10:return(0,oe.jsx)(tl,{dataHeading:t,dataFeatures:o,dataBanner:i,dataButtons:a});default:return(0,oe.jsx)(ar,{dataHeading:t,dataFeatures:o,dataButtons:a})}},Km=({template:e,dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i})=>(0,oe.jsx)(oe.Fragment,{children:Zm({template:e,dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i})}),ol=({template:e=1,background:t,className:o,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:c})=>(0,oe.jsx)(Y,{className:o,idSection:a,background:t,children:(0,oe.jsx)(Km,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:c})});var fa=g(require("html-react-parser"),1),rl=require("@heroicons/react/24/solid");var C=require("react/jsx-runtime"),al=({testimonial:e,isHiddenOnMobile:t=!1,index:o=0,itemCount:a})=>(0,C.jsx)("div",{className:r("testimonial-item grow sm:px-0 basis-10/12 md:basis-0 px-3 snap-center shrink-0 first:pl-5 md:first:pl-0",t?"hidden sm:block":"",o+1===a?"pr-5":""),children:(0,C.jsx)("div",{className:"rounded-xl border border-gray-50 bg-white px-5 pt-4 sm:px-5 pb-10 shadow-md relative h-full",children:(0,C.jsxs)("div",{className:"testimonial-item-width",children:[(0,C.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,C.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,C.jsx)("img",{src:e?.avatar,loading:"lazy",className:"h-full w-full object-cover",alt:e.name})}),(0,C.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,C.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,C.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,fa.default)(e.position)})]})]}),(0,C.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,C.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,fa.default)(e.shortTitle)}),e?.description&&(0,C.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,fa.default)(e.description)})]}),(0,C.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[(0,C.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&(0,C.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>(0,C.jsx)(rl.StarIcon,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),il=({dataHeading:e,dataTestimonials:t,dataButtons:o})=>{let a=t?.length??0,i=a>3;return(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.jsx)(R,{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,C.jsx)("div",{className:r("testimonials-mobase scroll-hidden relative overflow-x-scroll py-2 md:overflow-hidden -my-2 -mx-5 sm:mx-0",i&&"run-animation"),children:(0,C.jsxs)("div",{className:"testimonials-slider sm:space-x-6 flex flex-row overflow-hidden overflow-x-auto sm:overflow-visible sm:pl-6 sm:pr-0 snap-x sm:snap-none snap-mandatory pb-3 sm:pb-0",children:[t?.map((n,s)=>(0,C.jsx)(al,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&t?.map((n,s)=>(0,C.jsx)(al,{testimonial:n,isHiddenOnMobile:!0},`duplicate-${s}`))]})}),o&&(0,C.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"}),i&&(0,C.jsx)("style",{children:`
|
|
272
|
+
`})]}),gl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,l.jsx)("div",{className:"w-16 h-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-4 flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,Q.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,Q.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ul=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-0 lg:gap-12",children:[(0,l.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("lg:mb-0",e?.className)}),t&&(0,l.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,l.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-5",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-5 bg-white",children:[(0,l.jsx)("div",{className:"w-16 h-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,Q.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,Q.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),vl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-5 max-w-4xl mx-auto",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-7 bg-white",children:[(0,l.jsx)("div",{className:"w-12 h-12 ",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,Q.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,Q.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),bl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full",children:[(0,l.jsx)("div",{className:"w-12 h-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,Q.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,Q.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),xl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-6 lg:gap-y-8",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex gap-3",children:[(0,l.jsx)("div",{className:"w-12 h-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,Q.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,Q.default)(a.description)}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),hl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-6",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex flex-col overflow-hidden bg-gray-100 rounded-xl",children:[(0,l.jsxs)("div",{className:"w-full flex flex-1 flex-col p-5",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,Q.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,Q.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),(0,l.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})})]},i))}),t&&(0,l.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),yl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-10 lg:gap-14",children:[(0,l.jsx)("div",{className:"lg:col-span-6 flex items-center",children:(0,l.jsxs)("div",{className:"w-full",children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:auto-cols-auto",children:o?.map((i,n)=>(0,l.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,l.jsx)("div",{className:"w-10 h-10",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,Q.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,Q.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(lt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&(0,l.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&(0,l.jsx)("div",{className:"lg:col-span-4 flex items-center",children:(0,l.jsx)("div",{className:"max-w-md mx-auto w-full",children:(0,l.jsx)(j,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),wl=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,l.jsx)("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,l.jsxs)("div",{className:r("list-features grid grid-cols-1 md:grid-cols-2 gap-8",t?"lg:gap-y-16 lg:gap-x-0 lg:flex-wrap lg:flex lg:flex-row":"max-w-4xl mx-auto"),children:[o?.map((i,n)=>(0,l.jsxs)("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[(0,l.jsx)("div",{className:"w-12 h-12",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,l.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,Q.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"text-gray-500 mt-2",children:(0,Q.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(lt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&(0,l.jsxs)("div",{className:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 hidden lg:flex lg:justify-center lg:items-end xl:p-2 lg:p-1.5 w-72 mx-auto",style:{aspectRatio:"352/721"},children:[(0,l.jsx)("div",{className:"mockup-bg absolute inset-0 w-full h-full select-none pointer-events-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),(0,l.jsx)("div",{className:"w-full h-full bg-gray-100 overflow-hidden",style:{borderRadius:"30px"},children:(0,l.jsx)("img",{src:t?.src,alt:t?.alt,className:"w-full h-full object-contain"})})]})]})}),a&&(0,l.jsx)(S,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});var ne=require("react/jsx-runtime"),Nc=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return(0,ne.jsx)(vr,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,ne.jsx)(fl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,ne.jsx)(gl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,ne.jsx)(ul,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,ne.jsx)(vl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,ne.jsx)(bl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,ne.jsx)(xl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,ne.jsx)(hl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,ne.jsx)(yl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return(0,ne.jsx)(wl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return(0,ne.jsx)(vr,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Pc=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>(0,ne.jsx)(ne.Fragment,{children:Nc({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),Nl=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})=>(0,ne.jsx)(X,{className:t,idSection:a,background:o,children:(0,ne.jsx)(Pc,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})});var Ra=u(require("html-react-parser"),1),Rl=require("@heroicons/react/24/solid");var k=require("react/jsx-runtime"),Pl=({testimonial:e,isHiddenOnMobile:o=!1,index:t=0,itemCount:a})=>(0,k.jsx)("div",{className:r("testimonial-item grow sm:px-0 basis-10/12 md:basis-0 px-3 snap-center shrink-0 first:pl-5 md:first:pl-0",o?"hidden sm:block":"",t+1===a?"pr-5":""),children:(0,k.jsx)("div",{className:"rounded-xl border border-gray-50 bg-white px-5 pt-4 sm:px-5 pb-10 shadow-md relative h-full",children:(0,k.jsxs)("div",{className:"testimonial-item-width",children:[(0,k.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,k.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,k.jsx)("img",{src:e?.avatar,loading:"lazy",className:"h-full w-full object-cover",alt:e.name})}),(0,k.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,k.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,k.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Ra.default)(e.position)})]})]}),(0,k.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,k.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Ra.default)(e.shortTitle)}),e?.description&&(0,k.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,Ra.default)(e.description)})]}),(0,k.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[(0,k.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&(0,k.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>(0,k.jsx)(Rl.StarIcon,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),Cl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsx)(R,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&(0,k.jsx)("div",{className:r("testimonials-mobase scroll-hidden relative overflow-x-scroll py-2 md:overflow-hidden -my-2 -mx-5 sm:mx-0",i&&"run-animation"),children:(0,k.jsxs)("div",{className:"testimonials-slider sm:space-x-6 flex flex-row overflow-hidden overflow-x-auto sm:overflow-visible sm:pl-6 sm:pr-0 snap-x sm:snap-none snap-mandatory pb-3 sm:pb-0",children:[o?.map((n,s)=>(0,k.jsx)(Pl,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&o?.map((n,s)=>(0,k.jsx)(Pl,{testimonial:n,isHiddenOnMobile:!0},`duplicate-${s}`))]})}),t&&(0,k.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),i&&(0,k.jsx)("style",{children:`
|
|
273
273
|
@media screen and (min-width: 640px) {
|
|
274
274
|
.testimonials-mobase.run-animation {
|
|
275
275
|
--items-count: ${a};
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
transform: translateX(calc(${a===4?"-476px":"-386px"} * var(--items-count)));
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
`})]})},Ym=({template:e,dataHeading:t,dataTestimonials:o,dataButtons:a})=>{switch(e){case 1:return(0,C.jsx)(il,{dataHeading:t,dataTestimonials:o,dataButtons:a});default:return(0,C.jsx)(il,{dataHeading:t,dataTestimonials:o,dataButtons:a})}},Jm=({template:e,dataHeading:t,dataTestimonials:o,dataButtons:a})=>(0,C.jsx)(C.Fragment,{children:Ym({template:e,dataHeading:t,dataTestimonials:o,dataButtons:a})}),nl=({template:e=1,background:t,className:o,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>(0,C.jsx)(Y,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${o||""}`,idSection:a,background:t,children:(0,C.jsx)(Jm,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});var Co=g(require("react"),1);var ir=g(require("html-react-parser"),1),q=require("react/jsx-runtime"),rr=(0,Co.memo)(({dataFAQ:e,dataHeading:t})=>(0,q.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[t&&(0,q.jsx)(R,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading||"h2",align:"left",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r("md:mb-0 mb-0 mt-2 col-span-1 text-center md:text-left",t?.className)}),e&&(0,q.jsx)("div",{className:"col-span-2",children:e[0]?.contents.map((o,a)=>(0,q.jsx)(lt,{type:"single",collapsible:!0,className:"w-full",children:(0,q.jsxs)(mt,{value:o.title,children:[(0,q.jsx)(ct,{className:"font-bold",children:o.title}),(0,q.jsx)(dt,{children:(0,ir.default)(o.description)})]})},o.title+a))})]})),sl=(0,Co.memo)(({dataFAQ:e,dataHeading:t})=>(0,q.jsxs)(Co.default.Fragment,{children:[t&&(0,q.jsx)(R,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&(0,q.jsxs)(vt,{defaultValue:e[0]?.title,children:[(0,q.jsx)(Ye,{className:"flex items-center sm:justify-center",children:e.map((o,a)=>(0,q.jsx)(Je,{value:o.title,children:o.title},o.title+a))}),e.map((o,a)=>(0,q.jsx)(et,{className:"max-w-3xl mx-auto",value:o.title,children:o.contents.map((i,n)=>(0,q.jsx)(lt,{type:"single",collapsible:!0,className:"w-full",children:(0,q.jsxs)(mt,{value:i.title,children:[(0,q.jsx)(ct,{className:"font-bold",children:i.title}),(0,q.jsx)(dt,{children:(0,ir.default)(i.description)})]})},i.title+n))},o.title+a))]})]}));var st=require("react/jsx-runtime"),ec=({template:e,dataFAQ:t,dataHeading:o})=>{switch(e){case 1:return(0,st.jsx)(rr,{dataFAQ:t,dataHeading:o});case 2:return(0,st.jsx)(sl,{dataFAQ:t,dataHeading:o});default:return(0,st.jsx)(rr,{dataFAQ:t,dataHeading:o})}},tc=({dataHeading:e,dataFAQ:t,template:o})=>(0,st.jsx)(st.Fragment,{children:ec({dataHeading:e,dataFAQ:t,template:o})}),ll=({dataHeading:e,dataFAQ:t=[],className:o="",background:a=""})=>{let i=t&&t?.length>1?2:1;return(0,st.jsx)(Y,{className:r(o),background:a,children:(0,st.jsx)(tc,{dataHeading:e,dataFAQ:t,template:i})})};var ga=g(require("react"),1);var ml=g(require("html-react-parser"),1);var cl=require("@heroicons/react/20/solid"),P=require("react/jsx-runtime"),oc=({news:e})=>{let t=(o,a)=>{o?.preventDefault(),o?.stopPropagation(),window.open(a,"_blank")};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"rounded-md md:rounded-none aspect-[1/1] md:aspect-[77/37] relative overflow-hidden block bg-gray-100",children:(0,P.jsxs)("picture",{children:[(0,P.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,P.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,P.jsxs)("div",{className:"flex flex-col flex-1 mt-3 md:mt-0 md:p-3",children:[(0,P.jsx)("div",{className:"text-gray-900 font-medium text-sm group-hover:text-pink-500 flex-1 line-clamp-2 md:line-clamp-none",children:e?.title}),(0,P.jsxs)("div",{className:"flex items-center space-x-1 mt-2",children:[e?.category&&e?.categoryUrl&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ce,{variant:"default",className:"text-xs line-clamp-1 shink-0 justify-start text-left whitespace-normal",onClick:o=>t(o,e?.categoryUrl||""),title:e?.category,children:e?.category}),(0,P.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,P.jsx)("div",{className:"text-gray-500 text-xs flex-none",children:e?.dateTime})]})]})]})},nr=(0,ga.memo)(({dataHeading:e,dataHorizontalScroll:t,dataNews:o,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:c}=t||{},p=(d,u,x)=>{d?.preventDefault(),d?.stopPropagation(),a?a(u):window.open(x,"_blank")},f=(d,u)=>(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{className:r("flex flex-row flex-wrap -mx-2 gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((x,D)=>(0,P.jsx)("div",{className:"px-2 basis-1/2 lg:basis-1/4 min-w-0",children:(0,P.jsx)("div",{onClick:E=>p(E,x?.id,x?.url),className:r("cursor-pointer group flex flex-col md:h-full md:rounded-md overflow-hidden md:shadow-md md:bg-white",d?.classNameItem),children:(0,P.jsx)(oc,{news:x})},x?.id)},D))}),d?.isShowBtn&&(0,P.jsx)("div",{className:"w-full flex items-center justify-center mt-8",children:(0,P.jsxs)(ut,{action:d?.btnUrl||i&&(()=>i?.(u)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[(0,ml.default)(d.btnName||"Xem th\xEAm"),d?.isLoading?(0,P.jsx)(_t,{className:"animate-spin-loading ml-2 w-5 h-5"}):i&&!d?.btnUrl&&(0,P.jsx)(cl.ArrowDownIcon,{className:"w-5 h-5 animate-bounce ml-2 -mb-1"})]})})]},d?.title||u);return(0,P.jsxs)(ga.default.Fragment,{children:[e&&(0,P.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),o?.length>1?(0,P.jsxs)(vt,{defaultValue:o[0]?.title,children:[(0,P.jsxs)(Vt,{showGradientOverlay:n,gradientOverlayColor:s,className:c,children:[(0,P.jsx)(Ot,{className:"mb-6 text-center",children:(0,P.jsx)(Ye,{className:"inline-flex mx-auto items-center mb-6 overflow-visible w-auto mb-0",children:o.map((d,u)=>(0,P.jsx)(Je,{value:d.title,children:d.title},d.title+u))})}),(0,P.jsx)(Wt,{}),(0,P.jsx)($t,{})]}),o.map((d,u)=>(0,P.jsx)(et,{value:d.title,children:f(d,u)},d.title+u))]}):o?.length===1&&o[0]&&f(o[0],0)]})});var Tt=require("react/jsx-runtime"),ac=({template:e,dataNews:t,dataHeading:o,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Tt.jsx)(nr,{dataNews:t,dataHeading:o,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Tt.jsx)(nr,{dataNews:t,dataHeading:o,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},ic=({dataHeading:e,dataHorizontalScroll:t,dataNews:o,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Tt.jsx)(Tt.Fragment,{children:ac({dataHeading:e,dataHorizontalScroll:t,dataNews:o,template:a,onClickModal:i,onClickLoadMore:n})}),dl=({dataHeading:e,dataHorizontalScroll:t,dataNews:o=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:c})=>(0,Tt.jsx)(Y,{className:r(a),background:i,children:(0,Tt.jsx)(ic,{dataHeading:e,dataHorizontalScroll:t,dataNews:o,template:n,onClickModal:s,onClickLoadMore:c})});var X=require("react/jsx-runtime"),pl=({dataHeading:e,dataCTA:t,dataButtons:o})=>(0,X.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:t?.background},children:[e&&(0,X.jsx)(R,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),o&&(0,X.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-0 md:mt-0"),align:"center"})]}),rc=({dataHeading:e,dataCTA:t,dataButtons:o,dataMedia:a})=>(0,X.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:t?.background?{background:t.background}:{},children:[(0,X.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,X.jsx)(R,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),o&&(0,X.jsx)(M,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,X.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,X.jsx)(he,{ratio:4/3,children:(0,X.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),nc=({template:e,dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return(0,X.jsx)(pl,{dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i});case 2:return(0,X.jsx)(rc,{dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i});default:return(0,X.jsx)(pl,{dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i})}},sc=({template:e,dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i})=>(0,X.jsx)(X.Fragment,{children:nc({template:e,dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i})}),fl=({template:e=1,background:t,className:o,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:c})=>(0,X.jsx)(Y,{className:o,idSection:a,background:t,children:(0,X.jsx)(sc,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:c})});var Il=g(require("color"),1),Al=g(require("tailwindcss/plugin.js"),1);var Qe="250ms",gl={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Qe},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Qe},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Qe},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Qe},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Qe},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Qe},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Qe},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Qe},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Qe},".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":Qe}};var ul={".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 vl={".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 bl={...ul,...gl,...vl};var xl=require("flat");function lc(e){let t={};for(let o in e){if(o.endsWith("-DEFAULT")){t[o.replace("-DEFAULT","")]=e[o];continue}t[o]=e[o]}return t}var hl=e=>lc((0,xl.flatten)(e,{safe:!0,delimiter:"-"}));var yl={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var wl={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Nl={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Pl={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Cl={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Rl={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Tl={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var kl={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var Sl={white:"#ffffff",black:"#000000",blue:yl,green:wl,pink:Nl,purple:Pl,red:Cl,yellow:Rl,gray:kl,orange:Tl};var sr={...Sl};var Dl={"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 Ml={animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out","spin-loading":"spin 1s steps(12, end) infinite","fade-in":"fade-in 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}},"fade-in":{"0%":{opacity:"0"},"100%":{opacity:"1"}}}};var mc=e=>{let t={utilities:{},colors:{}},o=hl(sr),a=Dl,i=":root";return t.utilities[i]={},Object.entries(o).forEach(([n,s])=>{if(s)try{let[c,p,f]=(0,Il.default)(s).rgb().array(),d=`--${e}-${n}`;t.utilities[i][d]=`${c} ${p} ${f}`,t.colors[n]=`rgb(var(${d}) / <alpha-value>)`}catch(c){console.log("error",c?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let c=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([p,f])=>{let d=`${c}-${p}`;t.utilities[i][d]=f});else{let p=c.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;t.utilities[i][c]=p}}),t},Ll=()=>{let e="mobase",t=mc(e);return(0,Al.default)(({addBase:o,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}}}),o({":root":{"font-smooth--webkit":"antialiased"},...t?.utilities}),a({...bl})},{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:{...sr,...t?.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)`},...Ml}}})};var w=require("react/jsx-runtime"),El=(0,w.jsxs)(w.Fragment,{children:[(0,w.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,w.jsx)("meta",{name:"distribution",content:"Global"}),(0,w.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,w.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,w.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,w.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,w.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,w.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,w.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,w.jsx)("meta",{name:"language",content:"vietnamese"}),(0,w.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,w.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,w.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,w.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,w.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,w.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,w.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,w.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,w.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,w.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,w.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,w.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,w.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,w.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,w.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,w.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,w.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,w.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,w.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,w.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,w.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,w.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
296
|
+
`})]})},Cc=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,k.jsx)(Cl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,k.jsx)(Cl,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Rc=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,k.jsx)(k.Fragment,{children:Cc({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Tl=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>(0,k.jsx)(X,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${t||""}`,idSection:a,background:o,children:(0,k.jsx)(Rc,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});var kl=require("react"),Sl=u(require("html-react-parser"),1);var L=require("react/jsx-runtime"),br=(0,kl.memo)(({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},m=e?.length>1,f=p=>(0,L.jsx)(Et,{type:"single",collapsible:!0,defaultValue:p?.isActiveFistQuestion&&p?.contents?.[0]?.title||"",className:"w-full",children:p?.contents?.map((c,g)=>(0,L.jsxs)(zt,{value:c.title,className:"last:border-none",children:[(0,L.jsx)(_t,{className:"font-bold",children:c.title}),(0,L.jsx)(Ft,{children:(0,Sl.default)(c.description)})]},g))});return(0,L.jsx)(zo,{children:m?(0,L.jsxs)(L.Fragment,{children:[o&&(0,L.jsx)(R,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&(0,L.jsxs)(Xe,{defaultValue:e[0]?.title,children:[(0,L.jsxs)(je,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[(0,L.jsx)(Ue,{className:"mb-3 text-center",children:(0,L.jsx)(ze,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:e.map((p,c)=>(0,L.jsx)(_e,{value:p.title,children:p.title},p.title+c))})}),(0,L.jsx)(Qe,{}),(0,L.jsx)(qe,{})]}),e.map((p,c)=>(0,L.jsx)(Fe,{className:"mx-auto mt-0 max-w-3xl",value:p.title,children:f(p)},p.title+c))]}),t&&(0,L.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]}):(0,L.jsxs)("div",{className:"grid grid-cols-1 gap-y-5 sm:grid-cols-3 md:gap-x-6",children:[(0,L.jsx)("div",{className:"relative",children:(0,L.jsxs)("div",{className:"md:sticky md:top-20",children:[o&&(0,L.jsx)(R,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&(0,L.jsx)(Kt,{greaterThan:"sm",children:(0,L.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("md:mt-6",t?.className),align:"left"})})]})}),e&&e.length>0&&e[0]&&(0,L.jsx)("div",{className:"col-span-2",children:f(e[0])}),t&&(0,L.jsx)(Kt,{lessThan:"md",children:(0,L.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3",t?.className),align:"center"})})]})})});var Lt=require("react/jsx-runtime"),Tc=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return(0,Lt.jsx)(br,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return(0,Lt.jsx)(br,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},kc=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>(0,Lt.jsx)(Lt.Fragment,{children:Tc({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),Dl=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:m=1})=>(0,Lt.jsx)(X,{className:t,idSection:i,background:a,children:(0,Lt.jsx)(kc,{dataHeading:e,dataFAQ:o,template:m,dataHorizontalScroll:s,dataButtons:n})});var Ta=u(require("react"),1),Ml=require("@heroicons/react/20/solid"),Il=u(require("html-react-parser"),1);var C=require("react/jsx-runtime"),Sc=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,C.jsxs)("picture",{children:[(0,C.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,C.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,C.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,C.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,C.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(ue,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),(0,C.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,C.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},xr=(0,Ta.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},f=(c,g,b)=>{c?.preventDefault(),c?.stopPropagation(),a?a(g):window.open(b,"_blank")},p=(c,g)=>(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",c?.newsList?.length<4?"md:justify-center":""),children:c?.newsList?.map((b,H)=>(0,C.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,C.jsx)("div",{onClick:z=>f(z,b?.id,b?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",c?.classNameItem),children:(0,C.jsx)(Sc,{news:b})},b?.id)},H))}),c?.isShowBtn&&(0,C.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,C.jsxs)(Nt,{action:c?.btnUrl||i&&(()=>i?.(g)),newTab:c?.isNewTab,variant:"outline",disabled:c?.isLoading,children:[(0,Il.default)(c.btnName||"Xem th\xEAm"),c?.isLoading?(0,C.jsx)(Yt,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!c?.btnUrl&&(0,C.jsx)(Ml.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},c?.title||g);return(0,C.jsxs)(Ta.default.Fragment,{children:[e&&(0,C.jsx)(R,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?(0,C.jsxs)(Xe,{defaultValue:t[0]?.title,children:[(0,C.jsxs)(je,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,C.jsx)(Ue,{className:"mb-6 text-center",children:(0,C.jsx)(ze,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((c,g)=>(0,C.jsx)(_e,{value:c.title,children:c.title},c.title+g))})}),(0,C.jsx)(Qe,{}),(0,C.jsx)(qe,{})]}),t.map((c,g)=>(0,C.jsx)(Fe,{value:c.title,children:p(c,g)},c.title+g))]}):t?.length===1&&t[0]&&p(t[0],0)]})});var Ht=require("react/jsx-runtime"),Dc=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Ht.jsx)(xr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Ht.jsx)(xr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Mc=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Ht.jsx)(Ht.Fragment,{children:Dc({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),Al=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,Ht.jsx)(X,{className:r(a),background:i,children:(0,Ht.jsx)(Mc,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:m})});var ee=require("react/jsx-runtime"),Ll=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,ee.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,ee.jsx)(R,{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,ee.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Ic=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,ee.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,ee.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,ee.jsx)(R,{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,ee.jsx)(S,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,ee.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,ee.jsx)(j,{ratio:4/3,children:(0,ee.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Ac=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return(0,ee.jsx)(Ll,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return(0,ee.jsx)(Ic,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return(0,ee.jsx)(Ll,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},Lc=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>(0,ee.jsx)(ee.Fragment,{children:Ac({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),Hl=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})=>(0,ee.jsx)(X,{className:t,idSection:a,background:o,children:(0,ee.jsx)(Lc,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})});var Yl=u(require("color"),1),Jl=u(require("tailwindcss/plugin.js"),1);var mt="250ms",El={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":mt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":mt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":mt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":mt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":mt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":mt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":mt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":mt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":mt},".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":mt}};var zl={".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 _l={".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 Fl={...zl,...El,..._l};var Bl=require("flat");function Hc(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 Vl=e=>Hc((0,Bl.flatten)(e,{safe:!0,delimiter:"-"}));var Ol={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Wl={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var $l={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Gl={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var jl={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Ul={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Ql={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var ql={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var Xl={white:"#ffffff",black:"#000000",blue:Ol,green:Wl,pink:$l,purple:Gl,red:jl,yellow:Ul,gray:ql,orange:Ql};var hr={...Xl};var Zl={"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 Kl={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 Ec=e=>{let o={utilities:{},colors:{}},t=Vl(hr),a=Zl,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[m,f,p]=(0,Yl.default)(s).rgb().array(),c=`--${e}-${n}`;o.utilities[i][c]=`${m} ${f} ${p}`,o.colors[n]=`rgb(var(${c}) / <alpha-value>)`}catch(m){console.log("error",m?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let m=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([f,p])=>{let c=`${m}-${f}`;o.utilities[i][c]=p});else{let f=m.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][m]=f}}),o},em=()=>{let e="mobase",o=Ec(e);return(0,Jl.default)(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Fl})},{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:{...hr,...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)`},...Kl}}})};var N=require("react/jsx-runtime"),tm=(0,N.jsxs)(N.Fragment,{children:[(0,N.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,N.jsx)("meta",{name:"distribution",content:"Global"}),(0,N.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,N.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,N.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,N.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,N.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,N.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,N.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,N.jsx)("meta",{name:"language",content:"vietnamese"}),(0,N.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,N.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,N.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,N.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,N.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,N.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,N.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,N.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,N.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,N.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,N.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,N.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,N.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,N.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,N.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,N.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,N.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,N.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,N.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,N.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,N.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,N.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
297
297
|
"@context": "https://schema.org/",
|
|
298
298
|
"@type": "WebSite",
|
|
299
299
|
"@id":"https://www.momo.vn/#website",
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
"@type": "SearchAction",
|
|
304
304
|
"target": "https://www.momo.vn/tim-kiem?q={search_term_string}",
|
|
305
305
|
"query-input": "required name=search_term_string"
|
|
306
|
-
}}`}}),(0,
|
|
306
|
+
}}`}}),(0,N.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
307
307
|
"@context": "https://schema.org",
|
|
308
308
|
"@type": "Organization",
|
|
309
309
|
"name": "Si\xEAu \u1EE9ng d\u1EE5ng MoMo",
|
|
@@ -338,5 +338,5 @@
|
|
|
338
338
|
"https://www.linkedin.com/company/momo-mservice/",
|
|
339
339
|
"https://github.com/momo-wallet"
|
|
340
340
|
]
|
|
341
|
-
}`}})]});0&&(module.exports={Accordion,AccordionContent,AccordionItem,AccordionTrigger,ActionButton,AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogOverlay,AlertDialogPortal,AlertDialogTitle,AlertDialogTrigger,AspectRatio,Badge,BlogSection,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Button,CTASection,Calendar,Callout,Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle,Carousel,CarouselContent,CarouselItem,CarouselNext,CarouselPrevious,Checkbox,ChoiceboxGroup,ChoiceboxGroupItem,ChoiceboxMultiItem,Combobox,ComboboxContent,ComboboxTrigger,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Comment,DatePicker,Dialog,DialogBody,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogQr,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,FAQSection,FeatureSection,Footer,Form,FormControl,FormDescription,FormField,FormItem,FormLabel,FormMessage,HeaderNavigation,Heading,HeadingGroup,HeadingSub,HeadingTagline,HeroSection,HorizontalContent,HorizontalNext,HorizontalPrevious,HorizontalScroll,HowItWorksSection,IconButton,LightBoxGalleryContent,LightboxGallery,LightboxThumbnail,NavigationMenu,NavigationMenuContent,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,NewsSection,Pagination,Popover,PopoverContent,PopoverTrigger,ProgressSteps,ProgressStepsItem,ProgressStepsItemTrigger,Progressbar,RadioGroup,RadioGroupItem,ReadMoreLite,SearchBar,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,SiteMeta,Skeleton,Slider,SocialProofSection,Spinner,Stepper,Switch,Tabs,TabsContent,TabsList,TabsTrigger,TestimonialSection,TextArea,TextButton,TextInput,ToastAction,Toaster,Tooltip,TooltipArrow,TooltipContent,TooltipProvider,TooltipTrigger,badgeVariants,buttonVariants,mobaseTW,navigationMenuTriggerStyle,textButtonVariants,toast,useFormField,useToast});
|
|
341
|
+
}`}})]});0&&(module.exports={Accordion,AccordionContent,AccordionItem,AccordionTrigger,ActionButton,AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogOverlay,AlertDialogPortal,AlertDialogTitle,AlertDialogTrigger,AspectRatio,Badge,BlogSection,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Button,CTASection,Calendar,Callout,Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle,Carousel,CarouselContent,CarouselItem,CarouselNext,CarouselPrevious,Checkbox,ChoiceboxGroup,ChoiceboxGroupItem,ChoiceboxMultiItem,Combobox,ComboboxContent,ComboboxTrigger,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Comment,DatePicker,Dialog,DialogBody,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogQr,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,FAQSection,FeatureSection,Footer,Form,FormControl,FormDescription,FormField,FormItem,FormLabel,FormMessage,GuideSection,HeaderNavigation,Heading,HeadingGroup,HeadingSub,HeadingTagline,HeroSection,HorizontalContent,HorizontalNext,HorizontalPrevious,HorizontalScroll,HowItWorksSection,IconButton,LightBoxGalleryContent,LightboxGallery,LightboxThumbnail,NavigationMenu,NavigationMenuContent,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,NewsSection,Pagination,Popover,PopoverContent,PopoverTrigger,ProgressSteps,ProgressStepsItem,ProgressStepsItemTrigger,Progressbar,RadioGroup,RadioGroupItem,ReadMoreLite,SearchBar,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,SiteMeta,Skeleton,Slider,SocialProofSection,Spinner,Stepper,Switch,Tabs,TabsContent,TabsList,TabsTrigger,TestimonialSection,TextArea,TextButton,TextInput,ToastAction,Toaster,Tooltip,TooltipArrow,TooltipContent,TooltipProvider,TooltipTrigger,badgeVariants,buttonVariants,mobaseTW,navigationMenuTriggerStyle,textButtonVariants,toast,useFormField,useToast});
|
|
342
342
|
//# sourceMappingURL=index.cjs.map
|